Well we need to see the events really, did you use touch or mouse? Do you have events true for both touch and click so it runs twice?
Isn't it IID 0 ?
Where do you call the death function? That's where the problem is
No problem, good luck :)
There you go dropbox.com/s/rlza4klscnu8ggj/arraycoins.c3p
Develop games in your browser. Powerful, performant & highly capable.
I can send an example screenshot if you tell me exactly what you're doing with the array in the actions. 'Set a global variable to that' means?
You could use a system for loop, for 0 to 9 and then on the array actions you use 'loopindex' for X position.
What a lovely story :)
Global variables will always persist between layouts. For objects you can use the Persist behaviour and they will keep their same instance variable values when go between layouts.
For all these behaviours you can untick Set Angle so it only changes the movement angle. Or you can have images on a separate object and pin it to the movement one.
Try the Car behaviour
Sounds like you're doing the right thing, must be a problem with the structure of the events so let's see a screenshot :) or alternatively make sure in debug view that those variables are definitely set correctly and not for example all set to 1.
You do not have permission to view this post
Because the data already exists it won't load those default values. If you really want to overwrite them for testing purposes just alter your events for a moment to call DataDefault on item exists. Or you could use 'Clear' to get rid of the old key data.