Fireball travel -
08-20-2010, 01:00 PM
Would it be possible to have a fireball continuously moving -until- it hits the enemy, then disappears?
The way I have it now is that the fireball will move forward 10 meters and then disappear. I also have the enemy detecting whether the fireball is within 5 meters of it to take damage. However, this only works when the fireball -stops moving- within the 5 meters. If I'm right up next to the enemy, the fireball will go through him and continue the 10 meters, and not hurt the enemy.
How can I fix this so that if the fireball hits the enemy it will stop moving, or if it doesn't hit it will continue the 10 meters?
|