|
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.
|