Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --tfm.exec.newGame("0")
- local x, y, r = 200, 200, 60
- ARALIK=30
- for i = 1, 360/ARALIK do
- local angle = i*ARALIK * math.pi / 180
- local ptx, pty = x + r * math.cos( angle ), y + r * math.sin( angle )
- vx=x-ptx
- vy=y-pty
- len=math.sqrt(math.pow(vx,2)+math.pow(vy,2))
- vx=vx/len
- vy=vy/len
- tfm.exec.displayParticle(2,ptx,pty,0,0,vx*0.1,vy*0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement