|
alright, last thing of the day, how to set a custom projectile? Not guns projectile. I want something for example, when we shoot it will follow the mouse x and y starting from the player.
I did try using for(a = a + 1) for every dir but it goes in angles, which made me laugh lol.
|
it can also be done with the default projectile system
PHP Code:
temp.angle = getangle(player.x - mousex, player.y - mousey);
//angle is being set so the projectile will shoot to the mouse
anyway, here is a scripted projectile system
http://forums.graalonline.com/forums...hp?t=134259144