Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Creator: Bolodefchoco
- --Made in: 29/11/2015
- --Last update: 21/05/2016
- --[[ Notes:
- Does:
- Forma um coração de partículas.
- Args:
- n --> Jogador para usar como base
- particle --> ID da partícula
- X --> Posição x para aparecer o coração
- Y --> Posição y para aparecer o coração
- Complement
- eventMouse=table.foreach(tfm.get.room.playerList,function(n) system.bindMouse(n,true) end) or function(n,x,y)
- heart(n,particle,x,y)
- end
- eventKeyboard=table.foreach(tfm.get.room.playerList,function(n) system.bindKeyboard(n,32,true,true) end) or function(n,k)
- if k == 32 then
- heart(n,particle)
- end
- end
- ]]--
- heart=function(n,particle,X,Y)
- local pi=math.pi
- local sin=math.sin
- local cos=math.cos
- local particle=particle or 2
- for size = 0,2*pi,.05 do
- x = (8 * sin(size) ^ 3) * 10 + (not X and tfm.get.room.playerList[n].x or X)
- y = - (7 * cos(size) - 4 * cos(2*size) - 2 * cos(3*size) - cos(4*size)) * 8 + (not Y and tfm.get.room.playerList[n].y or Y) - 30
- tfm.exec.displayParticle(particle,x,y)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement