Page 1 of 1

fireball

PostPosted: Sat May 19, 2012 5:34 pm
by praaab
i have a fireball in my game and i want it so that when i click mouse button down in a region (called region) then the fireball would follow the mouse. BUT when the fireball collides into the mouse it just sits there after, how could i make it so that when it collides into mouse it just keeps going into the direction it was heading in so it doesnt get stuck where i clicked down.

Re: fireball

PostPosted: Sat May 19, 2012 7:25 pm
by skydereign
It depends on how you are having the actor follow the mouse. If you are just updating angle, then all you need to do is stop updating angle (and since directional_velocity is constant, the fireball will continue in its last direction).