Windows Problem with variable

F

fuzediwnl

Guest
I´ve got a problem with variables.
When i set global.enemyspeed = 2;, and then into the enemy object-step-alarm[2] = 300;
Alarm2-global.enemyspeed +=2
alarm[2] = 300;
But in the game, the speed is on +2 until next enemy spawns.
When next enemy spawns the speed is again on 2.
The game is top-down shooter based.

Sorry for my English :)
Thank you for helping me :)
fuzed
 

Slyddar

Member
If you are setting an alarm in the step event, then every step it's getting set back to 300, so it will never go off. You need to set it once via a flag variable, or in the create.
 
Top