Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> [Help] How to get coordinates of event?
Hedgehog
post Apr 18 2010, 10:05 AM
Post #1



Group Icon

Group: Member
Posts: 1
Type: None
RM Skill: Beginner




Hello everyone.

Basically I have event movable by player and want to know its current position. I already know about "x" and "y" members of event class but how can I get them while processing the event?
I need them inside the conditional branch. Of course I can write custom condition checking them but I don't know how to get a pointer (or what else ruby has for this case) to this event. "Self" returns only the interpreter.
Another way to solve the problem is tracing movement of event and storing its position in variables. It is possible but I wanted to avoid such a solution.

So, what should I do?

P.S. Sorry for uneven handwriting.
Go to the top of the page
 
+Quote Post
   

Posts in this topic


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: 18th May 2013 - 07:43 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker