Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Using "Get location info" command

Status
Not open for further replies.

MistyDay

Adventurer
Xy$
0.00
Hello RPG world.

I am starting to be afraid to ask, because it looks like I am only one who do not understand all the time :(

Today I reached point, where I wanna transfer hero to another map and then back to the same location where hero stood (but this particular location is absolutely unpredictable due to player´s will)
I found command "Get location info" what I think should be exactelly I need.
Well:

I made 3 variables
Used that command
Gave to event before transfer command to another map

In new map set transfer command with variables

and guess what ! Not work for me :(


capture screen

Any helping comments ?
ThankY
 
Last edited:

Akod

Praised Adventurer
You misunderstand what the Get Location Info command is for.



1 is the variable the command is going to use to store the info it collects
2 is what info you are telling it to collect
3 is which tile it is going to collect the info from, whether it is from a static "direct" location or one set via variables used for X and Y coordinates

Basically, for the image above, you would be storing the Terrain Tag into variable 1 for the location found at the X and Y coordinates set through the variables in the Location box, which both happen to be variable 1 because I didn't change them for this example. =P

What you would want to do is replace this command with three Control Variable commands that set each of your variables to their corresponding piece of the player's location.

You can find the character location info in Control Variables under the Game Data option and within these sub-options.



I hope that helped. And never be afraid to ask for help, it's how you learn.
 

LTN Games

Master Mind
Resource Team
Xy$
0.01
I'm closing thread due to being solved, if for any reason you'd like it re-opened please report this post. Thank you !
 
Status
Not open for further replies.
Top