Gradually speeding up game after certain peroid?

Get help using Construct 2

Post » Tue Jun 24, 2014 5:11 pm

I'm creating an Autorunner game and i wanted to add a feature where the game speeds up gradually after a certain period of time.

What i'm looking for is something like after 15 seconds into the game, the gameplay will start to slowly increase in speed and will continue to increase until a certain period of time or speed, at which point the game will continue at that set speed.

Is this possible to do? I would appriciate an help on this matter.

Thanks
Image ImageImage
B
7
S
2
G
1
Posts: 93
Reputation: 1,243

Post » Tue Jun 24, 2014 7:31 pm

You could use the System Event "Compare Time", two constants (START_TIME and END_TIME) and a number global variable as state (increaseDifficulty).

Set increaseDifficulty to 0.
Add a Compare Time event to check current time against START_TIME. If it is equal to START_TIME, you would set increaseDifficulty to 1.
Add a Compare Time event to check current time against END_TIME. If it is equal to END_TIME, you would set increaseDifficulty back to 0.

Also, you must set actions that increase game elements speed acording to the rule you want to be taken Every X Seconds if increaseDifficulty is 1.

B.
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
20
S
6
G
3
Posts: 632
Reputation: 3,766


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 27 guests