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!
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