[SOLVED] "changeRoom" before fade-in

Started by Monsieur OUXX, Sun 12/01/2014 17:12:30

Previous topic - Next topic

Monsieur OUXX

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.

  • While in room #1 in do character1.setAsPlayer();
  • Then I do character1.changeRoom(room2);
  • In room #2, BEFORE fade-in, I do : character2.setAsPlayer(); character1.changeRoom(dumpRoom); Wait(1);

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

 

Khris

Instead of changing the room yourself, call character2.setAsPlayer(); and the game will switch to the room character2 is in.

Monsieur OUXX

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.
 

SMF spam blocked by CleanTalk