fireball

Non-platform specific questions.

fireball

Postby praaab » Sat May 19, 2012 5:34 pm

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.
praaab
 
Posts: 82
Joined: Sat Jun 18, 2011 2:14 pm
Score: 1 Give a positive score

Re: fireball

Postby skydereign » Sat May 19, 2012 7:25 pm

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).
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron