Global variables, Character selection?

0 favourites
  • 2 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Globals are global to the project, not the layout.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)