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

    Array For Level Attempts

    Scheduled Pinned Locked Moved Help and Support
    12 Posts 3 Posters 2.0k Views 2 Watching
    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.
    • Michael KhalfinG Offline
      Michael Khalfin
      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 Offline
        iTap Development
        last edited by

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

        Michael KhalfinG 1 Reply Last reply Reply Quote 0
        • Michael KhalfinG Offline
          Michael Khalfin @iTap Development
          last edited by

          @Murtaza @Hamed Why is this?

          Michael KhalfinG 1 Reply Last reply Reply Quote 0
          • Michael KhalfinG Offline
            Michael Khalfin @GameCRAZY
            last edited by

            Maybe because I published closed source?

            iTap DevelopmentI Aidan_FireA 2 Replies Last reply Reply Quote 0
            • iTap DevelopmentI Offline
              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 Offline
                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 Offline
                  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 Offline
                    Aidan_Fire
                    last edited by

                    This post is deleted!
                    iTap DevelopmentI 1 Reply Last reply Reply Quote 0
                    • Aidan_FireA Offline
                      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?

                      Michael KhalfinG 1 Reply Last reply Reply Quote 0
                      • iTap DevelopmentI Offline
                        iTap Development @Aidan_Fire
                        last edited by

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

                        1 Reply Last reply Reply Quote 0
                        • Michael KhalfinG Offline
                          Michael Khalfin @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.

                          Michael KhalfinG 1 Reply Last reply Reply Quote 0
                          • Michael KhalfinG Offline
                            Michael Khalfin @GameCRAZY
                            last edited by

                            @Aidan-Oxley Yup, got it working.

                            1 Reply Last reply Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • First post
                              Last post