How do I set a variable in other layout

Get help using Construct 2

Post » Mon Mar 02, 2015 12:58 pm

In my game,I have 2 layouts:Open layout and Main layout.In Open layout,i have a button and i want to use this button to set acceleration of a sprite.(i have "speed" global variable in Open layout).So how can i do it?
B
6
Posts: 31
Reputation: 312

Post » Mon Mar 02, 2015 1:12 pm

I am not sure what you mean, but global variable will carry on in every layout.

In Open Layout
On pressed button, set GlobalVariable-Speed to [value x]

In Main layout
On start of layout, set sprite acceleration to GlobalVariable-Speed
It's time for me to return the favor :)
B
32
S
9
G
8
Posts: 132
Reputation: 4,870


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, dokthor, ilyaTyl and 11 guests