Setting a fire rate without using dt?

Get help using Construct 2

Post » Sat Mar 23, 2013 2:53 pm

Hello everyone, first post and glad to be here. I've nearly completed my first game, but I've ran into an issue that I can't solve. Is there a way to set a fire rate when a button is down without using dt (or frame rate for that matter)?

My game features a slow down/pause time control which works great if my fire event is based on clicking a button, but if I set a fire rate based on dt then my fire rate slows down/pauses with the time scale for obvious reasons.

So, I'm wondering if it's possible to set a fire rate without using dt on a button down event? Can it be done? Is there an example somewhere that i could look at?

Thanks in advanced for the help!
B
3
Posts: 5
Reputation: 335

Post » Sat Mar 23, 2013 5:31 pm

Workaround would be to set one object in game to use timescale 1 even when slow effect is going on, and take reload dt from object.dt
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Sat Mar 23, 2013 8:39 pm

[QUOTE=vee41] Workaround would be to set one object in game to use timescale 1 even when slow effect is going on, and take reload dt from object.dt[/QUOTE]

Hey, that worked like a charm! Thank you very much for the help, I never considered using an object's dt.
B
3
Posts: 5
Reputation: 335


Return to How do I....?

Who is online

Users browsing this forum: NRABrazil, PixelatedTrip, totoe and 28 guests