Simple (stupit) question

Started by Oliver, Tue 29/06/2004 17:10:43

Previous topic - Next topic

Oliver

ok, question is:

When I come from one room to another, then how do IÃ,  put my characther view correct, so if the door where the EGO comes is below then the EGO's back would be faceing the door.

Couldn't find it in the help, or maybe I just didn't look right :-\
You got it!

Coming Soon!

Barbarian

One way to do it would be by using the AGS room Interaction editor:

As an example: From the room you are in before going through the door, and let's say the door is at the Top edge of your room, then from the room's Interaction editor, add a new action in the "Walk off top screen edge" option, then choose "Player - go to a room at specific co-ordinates" and enter in the according information, example, "2, 150, 190" (which is room 2, at X position 150, and Y position 190).

Then in the room's Interaction editor for room 2, select "Player enters screen (before fadein), and then add action of "Character - face location", example: "Ego, 150, 180". Then when the room comes into view, your character should be facing looking upwards with back facing you.

There's other ways to go about it, but that is one simple way you could do it without getting into scripting.
Good luck.
Conan: "To crush your enemies, see them driven before you, and to hear the lamentation of the women!"
Mongol General: "That is good."

Blade of Rage: www.BladeOfRage.com

LordHart

#2
In the "Before Fade In" part of the room script, you would put the location that you want the play facing. So, lets say that you are going up, and it switches to a new room and you want the character facing a direction to the right. So, it appears that the camera is in a direction direction than what it was originally at...

You would have:
FaceLocation(EGO, 320, character[EGO].y);
That way, you would look to the right of the screen and no matter what Y position coordinates you are at, it would always face directly right.

The same could be done with the Y coordinates as well, but lets say you want you character going from a room where he exited it from the right, and then came into the next room from the bottom and wanted to face the top, you would put:
FaceLocation(EGO, character[EGO].x, 0);

Oliver

Ok, thanks guys, it worked  :)
You got it!

Coming Soon!

Davimee

My question is very similar to this one, so rather than starting a new thread I'll just add on to this one.  I understand how to make the character face a specific direction before the fade-in, but I have four doors in my room.  Is it possible to have him facing a different direction from each door?  For example, room 1 leads to room two, and room three also leads to room two, but one door is at the top of the screen, the other door is at the bottom.  When my character enters room two from room one I want him to be facing south, when he enters room two from room three I want him to be facing north.  Is there a way to do this? 

Davimee

Nevermind, I figured it out.  :-)  I just made the Character face location to the center of the screen, so where ever my character is coming from, he's always facing the correct direction.

strazer

What a great idea! Just putting that in on_event saves a lot of script.

SMF spam blocked by CleanTalk