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. Loading an Array index from a File

Loading an Array index from a File

Scheduled Pinned Locked Moved Help and Support
4 Posts 2 Posters 933 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.
  • TutorialDoctorT Offline
    TutorialDoctorT Offline
    TutorialDoctor
    wrote on last edited by TutorialDoctor
    #1

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

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

      TutorialDoctorT 1 Reply Last reply
      0
      • iTap DevelopmentI iTap Development

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

        TutorialDoctorT Offline
        TutorialDoctorT Offline
        TutorialDoctor
        wrote on last edited by
        #3

        @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
        0
        • TutorialDoctorT TutorialDoctor

          @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 Offline
          iTap DevelopmentI Offline
          iTap Development
          wrote on last edited by
          #4

          @TutorialDoctor huh cool!

          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