Advertisement
Guest User

Madeiras aleatórias - Transformice Lua

a guest
Sep 6th, 2014
921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. function eventNewGame()
  2.     id=0
  3.     for i, v in pairs(tfm.get.room.playerList) do
  4.         if v.isShaman then
  5.             system.bindMouse(i,true)
  6.         else
  7.             system.bindMouse(i,false)
  8.         end
  9.     end
  10. end
  11. function eventMouse(j,x,y)
  12.     tfm.exec.addPhysicObject(id,x,y,{height=math.random(10,100),width=math.random(10,100),friction=0.3,retitution=0.2})
  13.     id=(id+1)%5 -- limite de 5 pisos
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement