Author Topic: How to capture Ego's X/Y into a variable?  (Read 1690 times)

0 Members and 1 Guest are viewing this topic.

Offline DaLeroy

How to capture Ego's X/Y into a variable?
« on: June 16, 2003, 11:06:25 PM »
Hi guys

I'm trying to capture Ego's X or Y position into a variable, so that when I switch rooms, I can position him at his old X or Y position.  I tried:

(= OldY Ego:y) but that doesn't work  :P (OldY being my variable)

Anyone know what the correct code is?

Thanks

Leon



Offline Eigen

Re:How to capture Ego's X/Y into a variable?
« Reply #1 on: June 17, 2003, 12:11:59 AM »
= OldY (send gEgo:y)
= OldX (send gEgo:x)


-Eigen

Artificial Intelligence Competition

Offline DaLeroy

Re:How to capture Ego's X/Y into a variable?
« Reply #2 on: June 17, 2003, 01:02:51 AM »
Thanks for that! Works fine...now to sort my dodgy code out :)


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.053 seconds with 20 queries.