How do I create wind blowing an object

Get help using Construct 2

Post » Thu Apr 10, 2014 2:16 pm

It is my understanding that everything or mostly everything gets reset when you restart layouts however for cases (like in the game I'm making) in which i want to have absolute certainty and control I usually have something like this setup:
Global variables:
MyTimer = 0 (original value of the variable)
Events:
On start layout | set MyTimer = 0
...
This way I make sure that it's always 0 when I restart that layout.
Remember if you have a text field or something displaying your time value you have to check that is correct too.
I hope this helps you a bit its not much different than what i posted in the capx originally.
You do not have the required permissions to view the files attached to this post.
Freefall Bird
B
47
S
9
G
5
Posts: 281
Reputation: 5,803

Post » Thu Apr 10, 2014 5:20 pm

Their is a option to reset global variables when your layout restarts in the system section of the events. It is under add action, Global & local variables, reset global variables
B
29
S
6
G
1
Posts: 93
Reputation: 3,020

Post » Fri Apr 11, 2014 2:20 am

Ok thanks guys! ^^
B
5
Posts: 35
Reputation: 331

Previous

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 7 guests