Hey everyone, what's going on?
I'm making a galaga game (Like space invaders) the game is now nearing completion, and I want to make it so that when all the enemies are defeated a new level begins. I want to do this by using a variable. I dont know what to do with the variable, but I want some things to happen in the levels after
1. Faster moving enemies
2. More enemies
3. Possibly make them fire back.
I can upload, and you can download the code if you would like to see what I have so far.
Thanks in advance,
Linerz
Offline
This would be much simpler using a broadcast.
In what senses if your levels over:
code for winning
<broadcast[ levelover
The enemies:
<when I receive[ levelover
code
Offline
Linerz wrote:
1. Faster moving enemies
2. More enemies
3. Possibly make them fire back.
Hmm... try this:
1. Use a variable that changes over time. The variable used in the blocks that move the enemies, something like:
[move ((variable)) steps]
Change the variable as required.
2. Are you having a sprite for every enemy, rather than multiple sprite use? If so, give each sprite a level requirement. It can check what the current level is and see if it's needed in the level preparation.
3. Make laser sprites for each spaceship. Give each of them some scripting like this:
[repeat until <<touching [your spaceship]>>]
[//[change y by (10)]
[endrepeat]
:)
Offline