Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Animation methods surprise  (Read 2123 times)

0 Members and 1 Guest are viewing this topic.

mRax

  • Occasional poster
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 55
    • View Profile
Animation methods surprise
« on: March 13, 2007, 12:38:06 PM »

Hello everyone! :)

I find out a strange situation, when .PlayAnim*() methods are working, but the object isn't playing a specified animation. That means there aren't any warnings/errors and

Code: [Select]
var t=Game.CurrentTime;
this.PlayAnim("anim");
t=Game.CurrentTime-t;

the variable t has one value only. But sometimes the object play anim animation and sometimes not (as I said, "play" means, that player see the animation. Anyway .PlayAnim() take typical t time). I guess, what is it really may be ???

...

Well, the trouble was disappeared, when I erased next line

Code: [Select]
this.PlayAnimChannelAsync(1,"start");
And the start animation wasn't played only. Then I modify it to the

Code: [Select]
this.PlayAnimAsync("start");
but the start animation isn't played again ;D The information about channels in documentation is very poor to understand this situation. So, can somebody explain it to me?

As I thought, 0-Channel is default channel for idle, walk, talk - animations. I used 1-Channel and that was all I need ;) the trouble was appeared. idle animation and the start one must play simulanteously (they describe different bones/dummies, so must work).
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Animation methods surprise
« Reply #1 on: March 13, 2007, 04:51:38 PM »

So... how exactly does your code look like in its entirety?
Standard animations are indeed played in channel 0, and the animations played in other channels can override some of the bones.
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.028 seconds with 18 queries.