Community

SCI Programming => Mega Tokyo SCI Archive => Topic started by: DaLeroy on June 16, 2003, 11:06:25 PM

Title: How to capture Ego's X/Y into a variable?
Post by: DaLeroy 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
Title: Re:How to capture Ego's X/Y into a variable?
Post by: Eigen on June 17, 2003, 12:11:59 AM
= OldY (send gEgo:y)
= OldX (send gEgo:x)


-Eigen

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