Pages: 1
Topic closed
When you are on the last background of a level how do you not be able to move on until all the opponents have been killed.
Offline
is there a sprite that if they touch makes them move to the next level? if so then make that sprite hide until they've killed all of the opponents, then make it show again.
hope that helps
Offline
But how do you make a script that shows how you kill all the guys then make the sprite show.
Offline
just make a variable called enemies killed and set it to zero
then when each enemy dies change it by one
then make a script that says when enemies killed equals (number of enemies) show the sprite
make sure to hid beforehand though.
Offline
one way is to use a variable. create a variable called something like EnemiesLeft. If there are 4 enemies that need to be beat, set EnemiesLeft to 4. When an enemy is beat, change EnemiesLeft by -1. If EnemiesLeft < 1 then show sprite.
Offline
Topic closed
Pages: 1