Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventKeyboard(name, key, down, x, y)
- if key == 32 then
- for _,nome in pairs(sonic) do
- if nome == name then
- if tfm.get.room.playerList[name].isFacingRight then
- tfm.exec.movePlayer(name,0,0,true,100,0,true)
- else
- tfm.exec.movePlayer(name,0,0,true,-100,0,true)
- end
- end
- end
- end
- if key == 32 then
- for _,nome in pairs(tails) do
- if nome == name then
- table.insert(voando,name)
- end
- end
- end
- if (key == 83 or key == 87 or key == 38 or key == 40) then
- table.remove(voando)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement