Animate character

Started by Candle, Sat 15/07/2006 07:45:10

Previous topic - Next topic

Candle

I use to animate character  but if you click on him to talk when he is done talking he does not start to animate I think he is going back to the standard idle view?
How can I make him start doing his animate again.
Code: ags
character[FAMER].Animate(0, 1,eRepeat, eNoBlock, eForwards); 

monkey0506

Hmm...is that the exact code you used?

Quote from: The ManualBefore using this command, you should use LockView in order to select the view you want to animate with and prevent any automatic animations (eg. walking or idle animations) from playing.

So try doing something like this:

Code: ags
cFamer.LockView(VIEW_NUM);
cFamer.Animate(0, 1, eRepeat, eNoBlock, eForwards);
Wait(80);
cFamer.UnlockView();


That would animate Famer for two seconds...just an example since I don't know the exact situation...but just make sure when you're done animating Famer you release his view with cFamer.UnlockView() (character[FAMER].UnlockView() is the same thing).

Candle

Well I want him to run all the time as he is just working a hoe in a field so when you talk to him he talks and when done he goes back to work .

Ashen

#3
BFAQ: Having a character continuously animated in the background.

If there's some reason you're not using the idle anim: Where are you calling Character.Animate? Perhaps you need to call it again, after talking to the character, since the speaking view is one of those 'automatic animations' (I think) that will stop any previous Animate commands.
I know what you're thinking ... Don't think that.

Candle

Thanks Ashen,
QuotePerhaps you need to call it again
How do I call it again?

Ashen

Just put it in the script again, e.g.:
Code: ags

cFamer.Say("Goodbye, then.");
player.Say ("Yeah, bye.");
cFamer.Animate(0, 1, eRepeat, eNoBlock, eForwards);


If you're using a dialog, you're probably better calling it using run_script in the last dialog option.
I know what you're thinking ... Don't think that.

Candle


Hammerite

Quote from: Candle on Sat 15/07/2006 07:56:59
Well I want him to run all the time as he is just working a hoe in a field .

hehehehe ;)
i used to be indeceisive but now im not so sure!

SMF spam blocked by CleanTalk