May seem like a stupid question but its been bugging me for ages and I need it sorting.
Basically I have 3 active system boxes which are all the same, and the user can add a system box by clicking a button. I also have a counter, and 1 is added to it every time a box is created. When a box is created, the alterable value A of the box just created needs to be set to the value of the counter (so each box has its own unique ID). I know I can use "Spread value" but I don't want to as the counter can be used for something else later.
So far I have this event -
+ Button is clicked
- Create object "box"
- Set value A to "counter"
However, this sets value A to the counter value for ALL of the boxes in the player. I have tried everything to fix this - I even made it like this:
+ Button is clicked
+ Value B = 0
- Create object "box"
- Set value A to "counter"
- Set value B to 1
Yet it still sets all the boxes value's A to the counter. How can I make it so that it only sets the value of the box that has just been created? Any help would be appreciated as it has me baffled.