Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: How do you trigger and animation on a new actor?  (Read 2812 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 do you trigger and animation on a new actor?
« on: September 25, 2007, 03:16:03 AM »

I'm trying to trigger an animation in a actor file so the animations play at the scene load.. so far the object is loading and stuff.. but i am curious what to do to get animations to play...

Code: WME Script
  1. // Load Main Actor
  2. actor.SkipTo(581, 649 );
  3. actor.Direction = DI_UP;
  4. actor.Active = true;
  5.  
  6. //load test object
  7. var test = Scene.LoadActor3D("actors\ball_test\ball_outside_inn.act3d");
  8.   test.SkipTo(515, 587);
  9.   test.Direction = DI_DOWN;
  10.   test.PlayAnim(Animation_Move)

and the test object just sits there doing nothing... . .. .  . . .  This is teh animation bit from the act3D

Code: WME Script
  1.   ANIMATION
  2.   {
  3.     NAME="Animation_Move"
  4.     LOOPING=TRUE
  5.   }

When previewing the act3D file in project manager i can see teh animation looping.
« Last Edit: September 25, 2007, 03:18:59 AM by Jyujinkai »
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

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: How do you trigger and animation on a new actor?
« Reply #1 on: September 25, 2007, 08:20:42 AM »

test.PlayAnim("Animation_Move")
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: How do you trigger and animation on a new actor?
« Reply #2 on: September 25, 2007, 11:11:57 AM »

oh... i am retarded!!! Thanks Meta
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.051 seconds with 25 queries.