Help with player stuck in a room

Started by AdamBa17, Mon 22/09/2003 19:02:02

Previous topic - Next topic

AdamBa17

Hi,

sorry, i know this might be a bit basic, but i have done a search and read the ags help file and i cant seem to find out whats happenin.

i made a new game and from the first room i go into an elevator and are transported into a new room, but when i start in the new room, the player doesnt go str8 to a walkable area so i cant move him.
i know how to set the co-ordinates of the room he starts in, but not all the other rooms, and i dont really understand the scripting at all.

Thanks in advance for any replies.

Privateer Puddin'

NewRoomEx (int room_number, int x, int y)

Identical to NewRoom, except that the player character is placed at co-ordinates (X,Y) in the new room.
Example:

NewRoomEx(4,100,50);

will move the player character to room 4 and also place him at coordinates 100,50.

Isegrim

Or: In the new room, under "Player enters screen, after fadein" add the action "execute script", and write "MoveToWalkableArea(EGO); " (or any other char-ID instead of EGO)
Makes sure he always lands on a walkable and you needn't always measure out your walkables.
This post was generated automatically and therefore bears no signature.

AdamBa17

#3
Thanks!

SMF spam blocked by CleanTalk