Advertisement
Eliaseeg

Click y corazones *-*

Jan 18th, 2014
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.68 KB | None | 0 0
  1. function main()
  2.         for playerName in pairs(tfm.get.room.playerList) do
  3.                 eventNewPlayer(playerName)
  4.         end
  5. end
  6.  
  7. function eventNewPlayer(playerName)
  8.         system.bindMouse (playerName, true);
  9. end
  10.  
  11. function eventMouse (playerName, mx, my)
  12.         local size = 5;
  13.         local x_position = mx;
  14.         local y_position = my;
  15.  
  16.         for t=0,2*math.pi,0.1 do
  17.        
  18.                 x=(16*math.sin(t)^3)*size + x_position
  19.                 y=(13*math.cos(t)-5*math.cos(2*t)-2*math.cos(3*t)-math.cos(4*t))*size
  20.                 y=-y + y_position
  21.                
  22.     tfm.exec.displayParticle(5, x, y, 0, 0, 0, 0)              
  23.         end
  24. end
  25.  
  26. main ();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement