Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2. --tfm.exec.newGame("0")
  3. local x, y, r = 200, 200, 60
  4. ARALIK=30
  5. for i = 1, 360/ARALIK do
  6. local angle = i*ARALIK * math.pi / 180
  7. local ptx, pty = x + r * math.cos( angle ), y + r * math.sin( angle )
  8. vx=x-ptx
  9. vy=y-pty
  10. len=math.sqrt(math.pow(vx,2)+math.pow(vy,2))
  11. vx=vx/len
  12. vy=vy/len
  13. tfm.exec.displayParticle(2,ptx,pty,0,0,vx*0.1,vy*0.1)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement