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

    Loading an Array index from a File

    Scheduled Pinned Locked Moved Help and Support
    4 Posts 2 Posters 905 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.
    • TutorialDoctorT Offline
      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 Offline
        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 Offline
          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 Offline
            iTap Development @TutorialDoctor
            last edited by

            @TutorialDoctor huh cool!

            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