Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventKeyboard(name,key,down,x,y)
- shoot = (key == 32 and true or false)
- id = (shoot and tfm.exec.addShamanObject(34, x + (tfm.get.room.playerList[name].isFacingRight and 10 or -10), y, 0,tfm.get.room.playerList[name].isFacingRight and 20 or -20) or nil)
- end
- function eventNewPlayer(name)system.bindKeyboard(name,32,true)end
- table.foreach(tfm.get.room.playerList,eventNewPlayer)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement