Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Event walking from under player.
Armanic
post Dec 18 2012, 02:53 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 11
Type: None
RM Skill: Undisclosed




I know how to make an event walk from under a player but for that special location, it can be accessed by 3 sides.

Is there a way to make it like:
If player comes from X1 Y1 event walks north
If player comes from X2 Y2 event walks south
If player comes from X3 Y3 event walks west

?

I'm looking through the options but I don't see anything close to that so I guess that if it's possible it might be some complicated coding lol.

This post has been edited by Armanic: Dec 18 2012, 02:53 PM
Go to the top of the page
 
+Quote Post
   
Jens of Zanicuud
post Dec 19 2012, 07:58 AM
Post #2


Dark Jentleman
Group Icon

Group: Local Mod
Posts: 904
Type: Scripter
RM Skill: Skilled
Rev Points: 120




I'll give you a hint: set two variables as you can see here:

Variable[0001] = Player X
Variable[0001] -= This Event X


Variable[0002] = Player Y
Variable[0002] -= This Event Y


Variable[0001] will be lesser than zero if the player comes from the left, greater than zero if it comes from the right;
Variable[0002] will be lesser than zero if the player comes from above, greater than zero if it comes from below;

Put it in a couple of conditional branches and here you go smile.gif

I hope this can help, feel free to ask if I wasn't clear enough,

Jens


__________________________
"Thorns are the rose's sweetest essence..."
-Jens of Zanicuud


Games I'm working on:
>

official website: TryAdIne eFfeCt

>

Games I worked on (mainly as a scripter):
>
(Warning: it's a 3rr3's project and it's in Italian!)


Awards

Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 07:56 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker