Array For Level Attempts
-
I am trying to create an array that saves each level and the number of attempts it takes to complete. If the level is 1, for example, it saves the value at 0; 2 at 1; 3 at 2; and so forth.
I am not sure what's not working; it simply is not displaying the right number of attempts for the first level because I am getting a null in the label.
I think it has something to do with the way I save the arrays, because I have been trying some debugging techniques such as outputting each behavior on a label.
With each restart of the level (lvl 1), you get new attempts:
It's supposed to output in this overlay (lvl 1 -)
You can find the behaviors in the character (upper-left corner) in level 1, and the blank label in the overlay. The link is as follows: http://bit.ly/2CKplXp
Please help!
-
When I try to open it, it says I don’t have permission.
-
-
Maybe because I published closed source?
-
@GameCRAZY that’s my guess...you could branch it and send that maybe?
-
@GameCRAZY Dont ask me why, but when I edited the file, one of the files inside it had something like IsEditable: false. I’m trying to change it to true (just need to figure out how to make a txt file from iPad, otherwise I’ll have to try transfer it to my PC lol).
-
Well that sucks. Still can’t edit it even after setting it to true. Maybe there’s something else automatically setting it to false.
-
This post is deleted! -
@GameCRAZY A player that’s never played before should get a null value for the first time until they somehow get it to save an array. I played your first level and killed myself twice, here’s what I got:
Maybe you could try setting the Default Value of the Load From File to zero? -
@Aidan-Oxley haha I forgot about that. But it works😃
-
@Aidan-Oxley That's really good news. I'll go back and I'll let you know in about an hour from now.
-
@Aidan-Oxley Yup, got it working.