Started by Snarky, Tue 06/12/2022 10:12:17
QuoteCode: agsCharacter.ChangeRoomAutoPosition(int room_number, optional int newPosition)Changes the room that the character is in, and positions him along one of the room edges.This command simulates the behavior of the old "Go to room" interaction command from AGS 2.72 and previous versions. If newPosition is not specified or is 0, the character will be placed on the opposite side of the new room, if he is within 10 pixels of a room edge in the current room.Alternatively, you can specify the position where he will get placed in the new room. newPosition can be 1000 for the left edge, 2000 for the right edge, 3000 for the bottom edge and 4000 for the top edge. Then, add on the offset within that edge where you want to place the character, in normal room co-ordinates.
Character.ChangeRoomAutoPosition(int room_number, optional int newPosition)
Quote from: Khris on Sun 27/11/2022 20:36:44ChangeRoomAutoPosition is buggy apparently, the Tumbleweed template's 2nd room is twice as wide and Roger ended up halfway between the room's center and edge, suggesting that AGS uses the distance from the center to calculate the new position, not the distance from the edge.
Character.ChangeRoomEdge(int room_number, optional RoomEdge edge, optional int edgePosition)
Page created in 0.045 seconds with 26 queries.