Location events

causalgaming

Warper
Member
Joined
Aug 30, 2013
Messages
3
Reaction score
0
First Language
english
Primarily Uses
I'm trying to make it so that when a object is moved into the correct position the character can then activate a new event.  I just can't figure out how to do it.
 

Geekman

Veteran
Veteran
Joined
Feb 22, 2013
Messages
73
Reaction score
7
First Language
English
Primarily Uses
Use a parallel process event to set two variables to the event's position, and then use conditional branches that check for the event's x to match the required spot, and for the y to be matched too.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
that or when the object is moved (via events too right?) then make it activate a switch... then use that switch as a condition for your other event...
 

causalgaming

Warper
Member
Joined
Aug 30, 2013
Messages
3
Reaction score
0
First Language
english
Primarily Uses
Use a parallel process event to set two variables to the event's position, and then use conditional branches that check for the event's x to match the required spot, and for the y to be matched too.
I'm trying to find a way to find the x and y but I don't know how to check the x and y
 

Espon

Lazy Creator
Veteran
Joined
Mar 20, 2012
Messages
1,810
Reaction score
192
First Language
Gibberish
Primarily Uses
RMMV
It's in Game Data of the Control Variables command.

Note you don't have to use a parallel process, you can just have it check the X and Y after the object is moved in the event itself.
 

causalgaming

Warper
Member
Joined
Aug 30, 2013
Messages
3
Reaction score
0
First Language
english
Primarily Uses
Event-->Control Variable-->Game Data-->Character-->MapX/Y
not asking you to write it, but could you write a example, since i've done everything but I can't get it to work :(
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,671
First Language
German
Primarily Uses
RMMV
not asking you to write it, but could you write a example, since i've done everything but I can't get it to work :(
You do not write that, it's the sequence how you click on it with the mouse.

Open the event, click in the command area, then click on the control variable command, then click on the option "game data" in the next window, then click on the selector ... to the right of that data and choose character, then change to the coordinates as the data source.

Then after you got that data into two variables, use conditional branches to check those variables current values.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
On the event to be moved, activated via player touch:

Set Move Route (this event): (Skip if Can't Move) Move Away From PlayerControl Variables [0001: X]: Game Data > Character > This Event's Map XConditional Branch: Variable [0001: X] == final x position Control Variables [0002: Y]: Game Data > Character > This Event's Map Y Conditional Branch: Variable [0002: Y] == final Y position Control Switches [0001: Moved to Correct Place] = ON Branch EndBranch EndAdd a second page to the same event with the same graphic, conditioned by switch 0001, and with no commands. This will stop the player being able to move the object again once it's already in the correct place.Now add the same switch as a condition on the other event. So once the object is moved into place, the other event will become active and the player can interact with it.

Note, I used variables 1 and 2 and switch 1 in the example above. Don't copy that. Use whatever variables you have already allocated for this (or allocate new ones, and use the correct ones in the commands above).
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,854
Messages
1,017,004
Members
137,562
Latest member
tamedeathman
Top