Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: 3D Actor dose wierd turns at start of scene.  (Read 2294 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
3D Actor dose wierd turns at start of scene.
« 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

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
 

Page created in 0.054 seconds with 24 queries.