function eventNewPlayer(name)
system.bindMouse(name,true)
tfm.exec.bindKeyboard(name,32,true,true)
end
for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
function eventMouse(name,xpos,ypos)
tfm.exec.movePlayer(name,xpos,ypos,false,0,0,false)
end
function eventKeyboard(name,keycode,boolean,xpos,ypos)
if keycode == 32 then tfm.exec.movePlayer(name,x,y,false,0,-50,true)
end
end
system.bindMouse(name,true)
tfm.exec.bindKeyboard(name,32,true,true)
end
for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end
function eventMouse(name,xpos,ypos)
tfm.exec.movePlayer(name,xpos,ypos,false,0,0,false)
end
function eventKeyboard(name,keycode,boolean,xpos,ypos)
if keycode == 32 then tfm.exec.movePlayer(name,x,y,false,0,-50,true)
end
end