Author Topic: remembering ego's x, y position  (Read 2020 times)

0 Members and 1 Guest are viewing this topic.

Offline robingravel

remembering ego's x, y position
« on: January 12, 2003, 08:12:36 PM »
How to make ego's either x or y position when it changes rooms from left or from right or from up or from down?

Robin Gravel



Offline Lightfoot

Re:remembering ego's x, y position
« Reply #1 on: January 13, 2003, 10:42:18 AM »
Code: [Select]
(switch (gPreviousRoomNumber)
            (case 1
                     (send gEgo:
                                posn(110 100)
                                loop(0)
                     )
            )
)

It's in the SCI tutorials.
Ich lerne deutsch

Offline robingravel

Re:remembering ego's x, y position
« Reply #2 on: January 13, 2003, 11:03:49 AM »
No. It's not that.

I'm looking to make to remember the ego's x or y when he goes to the right/left/up/down screen and goes to the next room.

Using posn(110 100) tells the ego to position to x=110 and y=100 when he's entering to the room.

I want to tell  the program to remember the x/y position
like Sierra did.

Ex: the ego goes to the right screen at y=60. I want
at the next room, the ego is positioned to 10,ego(y).

Ho I can do that?

Robin Gravel


Offline Lightfoot

Re:remembering ego's x, y position
« Reply #3 on: January 15, 2003, 02:50:37 PM »
You can probably modify the Ego class to remember old position. Or make the xy global variables, I don't know how else to pass it from each room to the next.
Ich lerne deutsch

Offline robingravel

Re:remembering ego's x, y position
« Reply #4 on: January 15, 2003, 05:40:25 PM »
I DID IT!

Thanks for the clue Lightfoot. My game looks professional now.

Robin Gravel


Offline Lightfoot

Re:remembering ego's x, y position
« Reply #5 on: January 16, 2003, 09:44:53 AM »
Not a problem  8)

I've been stuck on one thing for the last week, and it is holding me back from doing anything else. So I have plenty of time to assist, untill I get it working.

Then I get back into it and I won't return untill another major problem or it's finished.

Either way I hope it's a long time before I have to spend this amount of time cracking one error.
Ich lerne deutsch


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

Page created in 0.019 seconds with 16 queries.