Repeat or loop groups every x time

Get help using Construct 2

Post » Tue Dec 03, 2013 11:26 am

Hi all
I can't find how to to this :

I want to make a level that have a gravity field activated for 5 seconds then deactivated for 5 seconds and repeat this all the level.

plyer will go up when gravity not working for x time then will go down when gravity activated, and loop this all the level

Can i make it with groups, or any other way.
I have see example Loop event 100 times, Is there Loop every 5 seconds or so?

Thanks for help.
Have a nice day.
B
7
S
1
Posts: 65
Reputation: 586

Post » Tue Dec 03, 2013 11:43 am

Create a global variable GRAVITY

every 5 seconds set GRAVITY : 1-GRAVITY

if gravity is 0 - turn of gravity
trigger once

if gravity is 1 - turn on gravity
trigger once
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Dec 03, 2013 12:28 pm

Thank's alot LittleStain

My 3 day's problem gone forever.
B
7
S
1
Posts: 65
Reputation: 586


Return to How do I....?

Who is online

Users browsing this forum: ALLMarkMade and 22 guests