Loading an Array index from a File
-
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!
-
@TutorialDoctor just curious, how did you get that "answer" text to be big and blue?
-
@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).
-
@TutorialDoctor huh cool!