#8773 - Snoobab - Sat Jul 19, 2003 1:50 pm
Hi. I'm having a bit of trouble with a game I'm working on.
At the moment my main space ship can shoot missiles, the problem is it can only shoot one at a time. i.e. only one missile can be on screen at once. If I push the fire button twice quickly the same missile is re-spawned at its original launch possition. What I would really like is more than one missiles to be on screen at once. How would I do this ? How would I keep track of the different missiles ? Would a struct containing all the missile properties(position, velicity, id?) be best ? Any ideas ?
Thanks,
- Ed.
At the moment my main space ship can shoot missiles, the problem is it can only shoot one at a time. i.e. only one missile can be on screen at once. If I push the fire button twice quickly the same missile is re-spawned at its original launch possition. What I would really like is more than one missiles to be on screen at once. How would I do this ? How would I keep track of the different missiles ? Would a struct containing all the missile properties(position, velicity, id?) be best ? Any ideas ?
Thanks,
- Ed.