logo hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    Array For Level Attempts

    Scheduled Pinned Locked Moved
    Help and Support
    3
    12
    379
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • GameCRAZYG
      GameCRAZY
      last edited by

      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:

      0_1513520520236_IMG_0571.PNG

      It's supposed to output in this overlay (lvl 1 -)

      0_1513520897355_IMG_0572.PNG

      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!

      Aidan_FireA 1 Reply Last reply Reply Quote 0
      • iTap DevelopmentI
        iTap Development
        last edited by

        When I try to open it, it says I don’t have permission.

        GameCRAZYG 1 Reply Last reply Reply Quote 0
        • GameCRAZYG
          GameCRAZY @iTap Development
          last edited by

          @Murtaza @Hamed Why is this?

          GameCRAZYG 1 Reply Last reply Reply Quote 0
          • GameCRAZYG
            GameCRAZY @GameCRAZY
            last edited by

            Maybe because I published closed source?

            iTap DevelopmentI Aidan_FireA 2 Replies Last reply Reply Quote 0
            • iTap DevelopmentI
              iTap Development @GameCRAZY
              last edited by

              @GameCRAZY that’s my guess...you could branch it and send that maybe?

              1 Reply Last reply Reply Quote 0
              • Aidan_FireA
                Aidan_Fire @GameCRAZY
                last edited by

                @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).

                1 Reply Last reply Reply Quote 0
                • Aidan_FireA
                  Aidan_Fire
                  last edited by

                  Well that sucks. Still can’t edit it even after setting it to true. Maybe there’s something else automatically setting it to false.

                  1 Reply Last reply Reply Quote 0
                  • Aidan_FireA
                    Aidan_Fire
                    last edited by

                    This post is deleted!
                    iTap DevelopmentI 1 Reply Last reply Reply Quote 0
                    • Aidan_FireA
                      Aidan_Fire @GameCRAZY
                      last edited by

                      @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:
                      0_1513539710440_521C1EDD-475A-4AE0-B0B1-6DECB41CE2CD.png
                      Maybe you could try setting the Default Value of the Load From File to zero?

                      GameCRAZYG 1 Reply Last reply Reply Quote 0
                      • iTap DevelopmentI
                        iTap Development @Aidan_Fire
                        last edited by

                        @Aidan-Oxley haha I forgot about that. But it works😃

                        1 Reply Last reply Reply Quote 0
                        • GameCRAZYG
                          GameCRAZY @Aidan_Fire
                          last edited by

                          @Aidan-Oxley That's really good news. I'll go back and I'll let you know in about an hour from now.

                          GameCRAZYG 1 Reply Last reply Reply Quote 0
                          • GameCRAZYG
                            GameCRAZY @GameCRAZY
                            last edited by

                            @Aidan-Oxley Yup, got it working.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post