Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Sinister on Sat 14/02/2004 22:28:18

Title: How do you move NCP's to other rooms?
Post by: Sinister on Sat 14/02/2004 22:28:18
Im making a cutscene, it requires one NPC to be in two rooms, in the first room he starts out fine, then in the second room i want him to apear in a specific x,y position.

how do i do this?
Title: Re:How do you move NCP's to other rooms?
Post by: Wolfgang Abenteuer on Sun 15/02/2004 01:23:17
character[CHARID].room
character[CHARID].x
character[CHARID].y

Put that in the "before fadein" if you want it to happen without the player seeing the character appear (meaning the character's already there when the screen fades in).

~Wolfgang
Title: Re:How do you move NCP's to other rooms?
Post by: Sinister on Sun 15/02/2004 23:30:30
ok thanks,

could you tell me how i can change the apearance of the quit, windows or save or load windows?
Title: Re:How do you move NCP's to other rooms?
Post by: Sinister on Mon 16/02/2004 01:39:37
It didnt work. ???

I put it like this.

character[Diego].205
character[Diego].155
character[Diego].140

in the room interactions:
script (beforefadein)

what am i doing wrong?
Title: Re:How do you move NCP's to other rooms?
Post by: Squinky on Mon 16/02/2004 04:46:29
it should be:

character[Diego].room=1;
character[Diego].x=155;
character[Diego].y=1;

That would put him iin room 1 at those x y positions...alter it for your needs

Also, make sure not to use the x y codes if the character is moving...
Title: Re:How do you move NCP's to other rooms?
Post by: Sinister on Mon 16/02/2004 06:31:45
Oh okay ill try that.

Thanks :P