View Single Post
  #8  
Old 08-13-2010, 08:52 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by Switch View Post
testplayer(x, y)
Or you could use the built-in shoot() or my custom projectile system.

getangle(vecx, vecy) gets the angle from the vecx and vecy in radian form. You can use radtodeg(angle) to get it to degree form.
By the way, 90 (deg) is pi*0.5 (rad), 180 is pi, 270 is pi*1.5, 360 is pi*2 which is also 0.
I never could get that to work.. No matter what I tried, the projectiles flew to the southeast about 2 tiles and 'dropped' like a stone.
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote