Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function eventNewGame()
- id=0
- for i, v in pairs(tfm.get.room.playerList) do
- if v.isShaman then
- system.bindMouse(i,true)
- else
- system.bindMouse(i,false)
- end
- end
- end
- function eventMouse(j,x,y)
- tfm.exec.addPhysicObject(id,x,y,{height=math.random(10,100),width=math.random(10,100),friction=0.3,retitution=0.2})
- id=(id+1)%5 -- limite de 5 pisos
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement