Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Monsieur OUXX on Sun 12/01/2014 17:12:30

Title: [SOLVED] "changeRoom" before fade-in
Post by: Monsieur OUXX on Sun 12/01/2014 17:12:30
I have two versions of the same character : 1) one close-up and 2) one from further away.
I want to use the close-up in room #1 and the regular version in room #2.

Each version of the character has all 3 views: normal, idle and speech. Therefore I'm using a two different AGS characters -- one for each version (this way I don't need to save all the views and restore them after, that's a real pain, especially with the idle view and its delay).

The con of that solution is that I have to play around with the "player" character.

ISSUE: I still see character1 for one frame after the fade-in.
How can I fix that?

Title: Re: "changeRoom" before fade-in
Post by: Khris on Sun 12/01/2014 19:46:23
Instead of changing the room yourself, call character2.setAsPlayer(); and the game will switch to the room character2 is in.
Title: Re: "changeRoom" before fade-in
Post by: Monsieur OUXX on Mon 13/01/2014 11:35:29
Quote from: Khris on Sun 12/01/2014 19:46:23
call character2.setAsPlayer(); and the game will switch to the room character2 is in.

I didn't think of that. Will try asap.