Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Jyujinkai on October 15, 2007, 08:47:34 AM

Title: 3D Actor dose wierd turns at start of scene.
Post by: Jyujinkai on October 15, 2007, 08:47:34 AM
Hi my 3dactor seasm to be working fine when you are controling it with the mouse. Though for real-time renered cut sequences i wish to control the actor using script...

This has worked fine in a number of scenes. Though in this one scene somthing wierd is happening and I do not know how to fix it.....

This is the actor code...

Code: WME Script
  1. var introactor = Scene.LoadActor3D("actors\sandra\sandra.act3d");
  2. actor.Active = false;
  3.  
  4. introactor.SkipTo(554, 748);
  5. introactor.Direction = DI_UP;
  6.  
  7. introactor.GoTo(554, 648);
  8. introactor.TurnTo(DI_UP);
  9.  
  10. introactor.GoTo(843, 640);
  11. introactor.TurnTo(DI_RIGHT);
  12.  

Pretty simple stuff. I just want the actor to apear and walk around teh sceen a bit. You can see that the initial actor placement used the .Direction thing so should be instant. Also not that i have made the 2nd x.y thing to walk to very sim as well... as in it dose NOT change direction, nor dose it change at all in the X.. it is simply moving upthe screen in Y by 100 units.

Sill when i add the goto lines she dose a wierd rotate.... to show you want i mean here is a vid of what is happening.... the first one is this code....

Code: WME Script
  1. var introactor = Scene.LoadActor3D("actors\sandra\sandra.act3d");
  2. actor.Active = false;
  3.  
  4. introactor.SkipTo(554, 748);
  5. introactor.Direction = DI_UP;
  6.  
  7. //introactor.GoTo(554, 648);
  8. //introactor.TurnTo(DI_UP);
  9.  
  10. //introactor.GoTo(843, 640);
  11. //introactor.TurnTo(DI_RIGHT);
  12.  

The 2nd one is this code

Code: WME Script
  1. var introactor = Scene.LoadActor3D("actors\sandra\sandra.act3d");
  2. actor.Active = false;
  3.  
  4. introactor.SkipTo(554, 748);
  5. introactor.Direction = DI_UP;
  6.  
  7. introactor.GoTo(554, 648);
  8. introactor.TurnTo(DI_UP);
  9.  
  10. //introactor.GoTo(843, 640);
  11. //introactor.TurnTo(DI_RIGHT);
  12.  

example of error
http://www.youtube.com/watch?v=yUet7lVidps