Global variables, Character selection?

Get help using Construct 2

Post » Fri Oct 02, 2015 11:29 pm

So I'm trying to make a game where you select a character on the menu before starting, and the character is just a animation of the original sprite, simply changing its color. Though I want this character to have different abilities as the original. My plan was to use global variables and compare the variable when using different actions to have different outcomes. All would work fine, except for the global variable. I have the menu on a separate layout, and when a button is clicked I was ganna have it select the character, by setting the variable. But the Global variable is on the other layout....

Should I just make the menu over the first layout and destroy it after starting? Any ways around this issue?


EDIT The Global variable was on constant.... Wow. Nevermind guys.
Last edited by Uglypenguin on Sat Oct 03, 2015 12:28 am, edited 1 time in total.
B
13
S
4
Posts: 87
Reputation: 1,053

Post » Fri Oct 02, 2015 11:33 pm

Globals are global to the project, not the layout.
ImageImageImage
B
71
S
22
G
248
Posts: 3,758
Reputation: 138,067


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Felipiwi, Yahoo [Bot] and 22 guests