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

    Loading an Array index from a File

    Scheduled Pinned Locked Moved
    Help and Support
    2
    4
    424
    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.
    • TutorialDoctorT
      TutorialDoctor
      last edited by TutorialDoctor

      If an array is stored in a file how would I go about loading a value from that array? Which behaviors would I use to, for instance, save the position of an item in an array, which is saved by into a file, thereafter loading that array from the file and getting an index of that array?

      Edit: I think I found it. I will write the answer when I see if I am correct:

      Answer:

      Used the Load From File behavior and two Get Array Value behaviors (2 get the x and y components of the array). Then used a Move to Point behavior to move the object to the last saved position. Arrays were a long time coming!

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

        @TutorialDoctor just curious, how did you get that "answer" text to be big and blue?

        TutorialDoctorT 1 Reply Last reply Reply Quote 0
        • TutorialDoctorT
          TutorialDoctor @iTap Development
          last edited by

          @iTap-Development Most forums nowadays use Markdown

          Back in the day it use to be BBcode

          A hashtag before text makes it a title. Two hashtags before text make it a subtitle. Two ** before and after text makes them bold etc.

          I didn't change the color, although you might be able to do that using html (html works inside of markdown editors).

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

            @TutorialDoctor huh cool!

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