How do I keep some variables in all layouts?

Get help using Construct 2

Post » Sun Jul 05, 2015 8:26 am

I'm working on a local multiplayer game, so I need that when Gamepad 4 connects as Player 2 the variable Player2 will always equal Gamepad4 (until it disconnects of course).
But I don't know how to keep the variable Player2 from the "Lobby" Layout to the "Game" Layout.

Sorry for my bad English. :roll:
B
8
S
1
Posts: 41
Reputation: 550

Post » Sun Jul 05, 2015 8:34 am

Use global variables. They can be accessed from any layout in the project.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
284
S
109
G
91
Posts: 7,317
Reputation: 87,483

Post » Sun Jul 05, 2015 8:57 am

Thank you!
Works like I wanted.
B
8
S
1
Posts: 41
Reputation: 550


Return to How do I....?

Who is online

Users browsing this forum: Mayfly and 8 guests