Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: DocBass on June 22, 2007, 04:58:18 AM

Title: 2D actor's position during a scene change
Post by: DocBass on June 22, 2007, 04:58:18 AM
Hey all-

We're trying to make scenes transition with the Game.ChangeScene("...", false, false) method so that scene changes look "instantaneous." However when we have an actor walk to a certain position for this exit he will stop in the idle position for a split second before the scene changes. However when the next scene loads we make it look as if he is "walking into" the scene. This has the odd effect of the actor walking, stopping, the scene changes, then he is walking again. Is it possible to get the actor to stop just on his current walk frame instead of reverting to the standing still pose? Even if it freezes on the walking frame it will look as if the game is simply loading the next scene and that the action of walking is not stopped. Thanks!
Title: Re: 2D actor's position during a scene change
Post by: Mnemonic on June 22, 2007, 09:22:36 AM
Is that only one place or are you intending to use this approach in multiple scenes? I can think of a workaround: create a scene region around the scene exit point, and in the region script do something like:

Code: [Select]
on "ActorEntry"
{
   Game.ChangeScene("path", false, false);
}

That way the scene transition will happen while the actor is still walking towards the target point.
Title: Re: 2D actor's position during a scene change
Post by: DocBass on June 22, 2007, 09:29:29 AM
Thanks as usual.  :) If only I could think of these clever things before I posted.  :P Although I can see how this might not be so easy to implement well (if someone walks over the region accidentally, off they go).

And yeah the idea is to use this a lot.