How do I toggle "Slow Motion"?

Get help using Construct 2

Post » Thu May 05, 2016 10:13 am

I'm looking to create a slow motion effect for my game. Anyone know how to go about this?
B
24
S
10
G
1
Posts: 153
Reputation: 2,660

Post » Thu May 05, 2016 10:51 am

Use the timescale.

Add this action: Set timescale to 0.5
B
103
S
24
G
11
Posts: 695
Reputation: 12,884

Post » Thu May 05, 2016 11:52 am

create a global variable isSlowMo = 0

Suppose you wanna toggle slowmotion with spacebar.

if keypress spacebar:
> if isSlowMo = 0
> > set global variable isSlowMo to 1
> > set time scale to 0.5.
> else
> > set global variable isSlowMo to 0
> > set time scale to 1

This event will toggle between normal time and slow motion by pressing spacebar.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,459

Post » Sun May 22, 2016 9:43 am

The first timescale idea worked well for me :)
B
24
S
10
G
1
Posts: 153
Reputation: 2,660


Return to How do I....?

Who is online

Users browsing this forum: ivanski1983, KTML5, Yahoo [Bot] and 3 guests