Please login or register.

Login with username, password and session length
Advanced search  

News:

For WME related articles and tutorials visit WME Resource Center.

Author Topic: 2D actor's position during a scene change  (Read 1398 times)

0 Members and 1 Guest are viewing this topic.

DocBass

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 136
    • View Profile
2D actor's position during a scene change
« 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!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5677
    • View Profile
    • Dead:Code Site
Re: 2D actor's position during a scene change
« Reply #1 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.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

DocBass

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 136
    • View Profile
Re: 2D actor's position during a scene change
« Reply #2 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.
« Last Edit: June 22, 2007, 09:31:22 AM by DocBass »
Logged
 

Page created in 0.132 seconds with 22 queries.