Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: Talking and playing an animation at the same time...  (Read 3997 times)

0 Members and 1 Guest are viewing this topic.

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Talking and playing an animation at the same time...
« on: February 24, 2009, 11:10:19 PM »

Hi!

I want to play a certain animation when my character talks something, but I don´t want ot use the standard "talk" animation, because it´s too random, if you know what I mean.

I´ve tried:

Code: WME Script
  1. actor.PlayAnimAsync("talkGesture02");
  2. actor.Talk("I now am talking something. I don´t really know what to say. I´m really quite dumb.");

But my animation gets cut off as soon as my character starts to talk.

I thought thiswould work..

Code: WME Script
  1. actor.TalkAsync("I now am talking something. I don´t really know what to say. I´m really quite dumb.");
  2. actor.PlayAnim("talkGesture02");
  3.  

.. but he doesn´t want to talk to me.

Then I tried this..

Code: WME Script
  1. actor.PlayAnimChannelAsync(1,"talkGesture02");
  2. actor.Talk("I now am talking something. I don´t really know what to say. I´m really quite dumb.");

.. and that works, but after playing the animation it "jumps" back to the idle animation. Setting the transitiontime didn´t work, because of the different channels (?).

Thankful for any help,
Oli
« Last Edit: February 25, 2009, 07:05:12 AM by FogGobbler »
Logged

Jyujinkai

  • Global Moderator
  • Frequent poster
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 352
    • View Profile
    • Jyujinkai's WME Development Blog
Re: Talking and playing an animation at the same time...
« Reply #1 on: February 25, 2009, 03:44:02 AM »

Please conform to forum posting rules and use the CODE bbcode around your code snips as described in this thread
http://forum.dead-code.org/index.php?topic=2013.0
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: Talking and playing an animation at the same time...
« Reply #2 on: February 25, 2009, 07:35:18 AM »

You may want to use the TalkAnimName property.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

FogGobbler

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 228
    • View Profile
Re: Talking and playing an animation at the same time...
« Reply #3 on: February 25, 2009, 08:16:12 AM »

Yes, I´ve tried that, too. The problem with this is that the animation is repeated as long as the character talks.
I just want to play a certain animation once whilst he is talking.
Logged
 

Page created in 0.047 seconds with 24 queries.