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: How to auto move an actor across a room and laod a new scene.  (Read 2280 times)

0 Members and 1 Guest are viewing this topic.

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
How to auto move an actor across a room and laod a new scene.
« on: September 23, 2007, 08:01:51 AM »

I have a room that is needed for continuity but it is just a hallway and i see no reason for the player to both with it.. so I am trying to make the actor automatically move though the scene and then load the new scene while stopping the player from having any way to interacted or stop the movement.


I have almost got it working....

Code: [Select]
scene_int.script
actor.Active = true;


if(Scene.Name=="kitchen_enter")
{
Game.Interactive = false;
  actor.SkipTo(684, 883);
  actor.Direction = DI_UP;
  actor.GoTo(493, 644);
}

So the actor is loaded up
Positioned
turned
then walks to the cords
I then have a region in the scene that as the actor walks though it it will auto load the new scene.

So everythign works...

BUT for some wierd reason the actor is always facing the wrong position when the scene loads.
It is suposed to come in @   
actor.SkipTo(684, 883);
actor.Direction = DI_UP; (and if i comment out the goto line it IS)

but it the goto line is not commented out then the toon apears facing the wrong way so it needs to do a 180 degree spin before it starts moving.

Any ideas?
Logged
<Antoine de Saint-Exupéry> In any thing at all, perfection is finally attained not when there is no longer anything to add, but when there is no longer anything to take away...
<Carl Sagan> If you want to make a apple pie from scratch. You must first... invent the universe

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: How to auto move an actor across a room and laod a new scene.
« Reply #1 on: September 23, 2007, 08:32:46 AM »

Umm, no, no idea. Normally this works. There must be something different about your setup, but it's hard to say without seeing it.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.043 seconds with 23 queries.