I've created a character to talk to, but his animation doesn't show in the game!

Started by Indosity, Fri 28/08/2009 13:45:54

Previous topic - Next topic

Indosity

I don't know how to make his animation show, does anyone else know :'(. If I can find this out, I can then finaly move on! :o

Dualnames

Oh, well, you need to:
1)Create a view
2)Name of the view or remember its number
3)put this code below when you want your character to animate.

Code: ags

cEgo.LockView(viewnumber or viewname here);
cEgo.Animate(parameters here (see manual for parameters (search Character.Animate));
cEgo.UnlockView();
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Matti

Go through the tutorial in the manual, step-by-step. The basics (like dialogs, views etc.) are all in there. Then try to do some simple stuff and get used to AGS.

Regarding your question: You have to put the sprites into views and then assign these views to the character.

Edit: Beat by Dualnames. But I don't think he wants to actually animate the character, he just wants him to be shown, according to this: http://www.adventuregamestudio.co.uk/yabb/index.php?topic=38680.0

Dualnames

I think he wants animation to show, but perhaps he talks about talking view/walking view or something..anyway, I'm answering, but it would be nice if I knew the ACTUAL question indeed.

The tutorial and attempting things on your own is the way to go!
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Indosity

Thanks guy's, what I was saying was that I have created a view and animation, but when I play the game, he dosen't move as the view should, it is locked on one image. Only when I talk to him, dose the view play. Any way, thanks, -Indosity-

SMF spam blocked by CleanTalk