Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: funnyboy044 on Sat 15/04/2017 21:35:18

Title: Character help on putting a character in a room and moving him.
Post by: funnyboy044 on Sat 15/04/2017 21:35:18
I want to do this thing where I need to move a character to a room that isn't his starting room(this isn't about the playable character) and I would like to make move around in a cut scene, then stay in that room in that place.

Here's sort of an example of what I want to do:

Code (ags) Select

cLord.Say("Hold on, ladies and genetlemen! I'll go figure out what's the problem, everyone stay here.");
Display("You here the door quickly open and shut. It must be Lord Stickington!");
INSERT ACTION HERE THAT MOVES cLord TO THE ROOM, INCLUDING STARTING POINT(950,528)
cLord.Walk(436, 528, eBlock);
cLord.Say("I can't see a thing in here!");


In case you're wondering, he's moving from room 4 to room 6.
Title: Re: Character help on putting a character in a room and moving him.
Post by: Crimson Wizard on Sat 15/04/2017 21:41:28
Same as with player:
cLord.ChangeRoom(roomnumber, x, y);
Title: Re: Character help on putting a character in a room and moving him.
Post by: funnyboy044 on Sat 15/04/2017 22:23:25
I should've known it'd be that simple.:sad:

Thanks anyway.:)