Lock Down Data in an Array?

0 favourites
  • 1 posts
From the Asset Store
Data+ is the best Data Management solution for Construct 3. It contains 4 Addons (Plugin & Behavior).
  • Hey Guys!

    I'm making a random Name Generator using Arrays...You press a button and it

    generates 3 names at a time.

    I want to implement a lock system where you can lock down a name you like but are

    still able to randomise the remaining 2 names that aren't locked with the padlock



    I think the best way is to have an Array that temporarily stores the Name you want to lock. . . It will require an action to Push the Current Name that is stored in the 'Name Array' to the Temp Array.

    I Tried This

    On Lock button pressed > TempArray > Push Front > ArrayName.at(0,ArrayName.width)

    Once you Unlock the Name you are then free to generate 3 new names which will clear the Temp Array.

    I can't seem to get it to work, any ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)