Lock Down Data in an Array?

Get help using Construct 2

Post » Mon Sep 09, 2013 6:29 pm

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?NECROKRIEG2013-09-10 13:46:29
Posts: 87
Reputation: 4,304

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests