How do I up the fire rate of bullets after some time

Get help using Construct 2

Post » Fri Oct 14, 2016 4:15 pm

Hello everyone.

I'm making this game where bullets are rain drops and if they touch you it's game over.

Now obviously it should be raining more after some time has passed so that the game becomes more difficult.

Is there any possibility to up the fire rate of bullets while the time is passing?
B
14
S
2
Posts: 47
Reputation: 751

Post » Fri Oct 14, 2016 4:28 pm

Are you talking about the quantity or speed?

Either way you could make a global variable for the fire rate. Every x seconds alter the fire rate.

Multiple ways to set this up—what is your event for creating the rain drops?
ImageImageImage
B
39
S
22
G
11
Posts: 486
Reputation: 9,913

Post » Fri Oct 14, 2016 6:03 pm

@badmoodtaylor I'm talking about the quantity.
It's: Every 1 second - Create Object.
B
14
S
2
Posts: 47
Reputation: 751

Post » Fri Oct 14, 2016 6:38 pm

Global Variable "FireRate" initially set to 1

Every "FireRate" seconds - create object

Every 10 seconds - Subtract 0.02 from FireRate (or better yet) Set FireRate to FireRate*0.9
ImageImageImage
B
39
S
22
G
11
Posts: 486
Reputation: 9,913


Return to How do I....?

Who is online

Users browsing this forum: stevenode, tarek2 and 9 guests