Conditional Branch - Certain Event Graphic

Status
Not open for further replies.

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ
I have a statue Event that I want to move forward only when it is facing that direction.

Is there a Conditional Branch script that can be checked to check the current graphic of the Event?

Thanks!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
please describe what you want to do, your description doesn't make any sense.


Events don't turn unless you command them, they face the player, or they are set to random.


Moving forward when they're facing the player would be blocked by the player, and could be simulated by event touch trigger.


If you command them to turn in one direction, then you know what direction they have and don't need to test that conditionally.


If you place them on random movement, you don't want them to move into one direction only...


So please describe in more detail what the statue is intended to do, then we can tell you how to achieve that effect.
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ
You Action Button the Statue. I want to check if the statue is facing the same direction as the player. If so, I want it to move that direction one space.

The point is that there is another event that changes the direction of the statue, so it will not always be facing the same direction.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
You Action Button the Statue. I want to check if the statue is facing the same direction as the player. If so, I want it to move that direction one space.


The point is that there is another event that changes the direction of the statue, so it will not always be facing the same direction.
In that case, have the other event (that changes the direction) store that direction in a variable (for example 1= north, 2=east,...) and have the statue event check that value.
And don't forget to set direction fix, or the statue will turn toward the player...
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ
Alright, I'll try it out. Thanks!
 

MasterLagger

Odder than Odd
Veteran
Joined
Dec 28, 2013
Messages
58
Reaction score
5
First Language
English
Primarily Uses
Does the Statue change to another Event Page when it 'turns around?' Just curious.
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ
No, otherwise I would have just separated the command based on the Event Page. I was thinking of it, but the variable method seems less cluttering.
 

MasterLagger

Odder than Odd
Veteran
Joined
Dec 28, 2013
Messages
58
Reaction score
5
First Language
English
Primarily Uses
Just checking. Since you use another event to change the Statue's direction, the Statue's event contents would be focused on how it's facing, how the player is facing when it collides with the event, and whether or not it moves. (At least I think, if I understand what you're trying to do correctly.)
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ
Yeah, that was my backup plan if this Variable thing doesn't work, but it looks like it is going to just fine.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Make sure in your other event that changes the direction of the statue, that you turn off direction fix, then change direction, then turn direction fix back on. :)
 

wrigty12

Just a QAer playing with Javascript
Veteran
Joined
Jan 11, 2014
Messages
624
Reaction score
159
First Language
English
Primarily Uses
RMMZ
Yep, got it!
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
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'??

Forum statistics

Threads
105,868
Messages
1,017,066
Members
137,576
Latest member
SadaSoda
Top