Vertical shoot em up , speed up over time and enemies spawn increase.... HELP!!!
Guys im working on a vertical shoot em up game and i want to know how can i make it go faster over time.
for example: i start the game then start to appear some enemies (20 seconds later) the game is a little more faster and more enemies are coming something like that.
Thanks a lot!!!
for example: i start the game then start to appear some enemies (20 seconds later) the game is a little more faster and more enemies are coming something like that.
Thanks a lot!!!
Answers
So you should unlock a special actor thats spawning enemies so you can access "Current Scene". Then go to Current Scene > Time. This displays in seconds how long that scene has been running.
I'd suggest constraining the Current Scene's time in a global attribute if you need it later.
So lets say you have "Every 3 seconds" -> "Spawn Enemy". Try to do this:
"Every (3-(Current_Scene.Time/x)" -> "Spawn Enemy".
What is x? Its the number of seconds it takes to go from 3 to 2. After, the same number of seconds for 2 to 1 and 1 to 0.
How does this work? We're starting off with 3 and subtracting current scene time over x. This means that current scene time has to be 20 in order for it to equal 1 if x is 20 (20/20). This means its 3-1.
Hope I could help a lot!
- 5227
PS: If you want to feel like the game is really getting intense, put the current scene time in a global attribute. Then, make the enemies speed be: x+(3*Current_Scene_Time). X being the original speed. Play around with the number 3. Remember, after 10 seconds the speed will be 30 higher (so you might want more around 2 or 1.5). Speeding up spawning AND having the enemies speed up will really get the player paying attention. Have fun making your game!
EDIT: I'm assuming you already know (like Hapiapps said) that the X axis of the player (horizontal) always stays the same and the enemies come from the top of the screen down. Example here: http://gsa.gamesalad.com/games/minishmup.html
-lukey5227 wow Thanks a lot dude, thanks for taking the time to explain me , its helped me a lot :-bd
-Thanks hapiapps this way is more easy to work