Computer Science Canada need help spawning enemies |
| Author: | Abbas_M [ Sun Jan 17, 2010 7:14 pm ] | ||
| Post subject: | need help spawning enemies | ||
What is it you are trying to achieve? im making a game that has a spaceship avoiding zombies to score points. What is the problem you are having? problem is i can figure out the code to make more than one zombies my current code is make one zombie that is moving toward the space ship but that zombies is being spawned constantly at different locations while its moving. Describe what you have tried to solve this problem Looked for tutorials for spawning enemies but found nothing Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
Please specify what version of Turing you are using 4.1.1 That one zombie is moving toward the space ship but being spawned over and over while it moves so its like spawning top to bottom at very quick speed giving the spaceship no hope to avoid the zombie. |
|||
| Author: | Turing_Gamer [ Sun Jan 17, 2010 8:03 pm ] |
| Post subject: | Re: need help spawning enemies |
Deja vu... Anyway, have you learned about array's? That is the key to have multiple enemies. And that Rand.Int should only happen when you destroy that specific zombie. |
|