Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Array For Level Attempts

Array For Level Attempts

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

    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
    0
    • iTap DevelopmentI Offline
      iTap DevelopmentI Offline
      iTap Development
      wrote on last edited by
      #2

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

      Michael KhalfinG 1 Reply Last reply
      0
      • iTap DevelopmentI iTap Development

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

        Michael KhalfinG Offline
        Michael KhalfinG Offline
        Michael Khalfin
        wrote on last edited by
        #3

        @Murtaza @Hamed Why is this?

        Michael KhalfinG 1 Reply Last reply
        0
        • Michael KhalfinG Michael Khalfin

          @Murtaza @Hamed Why is this?

          Michael KhalfinG Offline
          Michael KhalfinG Offline
          Michael Khalfin
          wrote on last edited by
          #4

          Maybe because I published closed source?

          iTap DevelopmentI Aidan_FireA 2 Replies Last reply
          0
          • Michael KhalfinG Michael Khalfin

            Maybe because I published closed source?

            iTap DevelopmentI Offline
            iTap DevelopmentI Offline
            iTap Development
            wrote on last edited by
            #5

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

            1 Reply Last reply
            0
            • Michael KhalfinG Michael Khalfin

              Maybe because I published closed source?

              Aidan_FireA Offline
              Aidan_FireA Offline
              Aidan_Fire
              wrote on last edited by
              #6

              @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
              0
              • Aidan_FireA Offline
                Aidan_FireA Offline
                Aidan_Fire
                wrote on last edited by
                #7

                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
                0
                • Aidan_FireA Offline
                  Aidan_FireA Offline
                  Aidan_Fire
                  wrote on last edited by
                  #8
                  This post is deleted!
                  iTap DevelopmentI 1 Reply Last reply
                  0
                  • Michael KhalfinG Michael Khalfin

                    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 Offline
                    Aidan_FireA Offline
                    Aidan_Fire
                    wrote on last edited by
                    #9

                    @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
                    0
                    • Aidan_FireA Aidan_Fire

                      This post is deleted!

                      iTap DevelopmentI Offline
                      iTap DevelopmentI Offline
                      iTap Development
                      wrote on last edited by
                      #10

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

                      1 Reply Last reply
                      0
                      • Aidan_FireA Aidan_Fire

                        @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 Offline
                        Michael KhalfinG Offline
                        Michael Khalfin
                        wrote on last edited by
                        #11

                        @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
                        0
                        • Michael KhalfinG Michael Khalfin

                          @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 Offline
                          Michael KhalfinG Offline
                          Michael Khalfin
                          wrote on last edited by
                          #12

                          @Aidan-Oxley Yup, got it working.

                          1 Reply Last reply
                          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
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Search