Creating acceleration for objects

Get help using Construct 2

Post » Mon Apr 08, 2013 10:30 am

Hey guys!

I'm having a bit of trouble with a game that I have created,

Basically its abit of a silly money drop game, but I want the objects dropping to gradually increase the longer the game goes on to make it harder.

I can think of a few ways to do this, like making the game wait 15 seconds and then starting a whole new script event to make new objects. But I think this seems like the wrong way of going about it. But I'm sure there is a way which In which to gradually increase the system spawn speed. I have looked all over tutorials and the forum to get some advice but I cant really find anything on this specifically.

Basically so far I Have
System > Wait 1.5 second > system > Create object.

Im sure there is an expression that I can use in here which will gradually increase the spawn time, I just cant figure out what it is.

Can anyone help? I've tried just putting a *1 on the system time to see if it will gradually increase, but its not working.

Here is my CAPX file.

Many thanks,
Lewis
B
2
Posts: 3
Reputation: 281

Post » Mon Apr 08, 2013 12:06 pm

Hi,

no capx shown.
B
44
S
15
G
9
Posts: 1,096
Reputation: 11,013

Post » Mon Apr 08, 2013 1:11 pm

Maybe create a global variable called difficulty, increase it in every 30 seconds or every x waves or whatever.

And then when you call System.Wait, you can pass in something like this:

System.Wait (30-difficulty) seconds. Of course you should use something to limit it to a minimum. Here are some expressions to help you with such things: https://www.scirra.com/manual/126/system-expressions
B
16
S
4
G
1
Posts: 332
Reputation: 3,016


Return to How do I....?

Who is online

Users browsing this forum: flemmig, Matthew de, semaso, Skebab, Virpoja and 20 guests