Hello everyone!
I am making an endless jumper game at the moment and i got pretty far.
I want to make the following :
- When my player hits a certain power up item, i want it to spawn a rocket on top of the player.
- When the rocket has spawned on to the player, i want it to travel up for an "x" amount of seconds before it throws it self off.
- After the rocket ship has fallen off the player, i want it to destroy it self and continue the game as normal.
Any tips on how i can do the above ?
I have come so far that when my player hits my power up, that it spawns the rocket and travels up.
The only problem is that it does not stop going upwards.
Any help is apprectiated!
Thanks in advance