Need help animating player character!

Started by piraatlife4me, Wed 05/11/2003 03:26:00

Previous topic - Next topic

piraatlife4me

Hello again! I am having some serious trouble with scripting a player character to do what I want it to do.  Does anyone know the best way using AGS to run and change views and animations really fast.  The problem I am having is my character is doing things completely out of sequence.  For instance my character is sitting in a trashcan right now.  His view is changed while on a walkable area to simulate him swimming through it.  I have made an animation for him to climb out the problem is when I try to do everything I want it to do it does things completely out of order and even skips some commands.  I was reading about character variables but don't understand  the correct way to plug them into my game or if I even need to use them in a situation like this.  If anyone has any ideas please let me know thanks.

Daniel
Winebarger

Ishmael

Putting commands in the right order?

SetCharacterView(...)
AnimateCharacterEx(...) or a MoveCharacterBlocking(...)
SetCharacterView(...)
AnimateCharacterEx(...)
SetCharacterView(...)
AnimateCharacterEx(...)

To get the animations run. AnimateCharacterEx can be set to be blocking. See the manual. If you have something scripted allready, post it so we can tell you what do you need to change...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Alynn

Yeah, when it comes to character animations and timing you need to figure out what functions block and which ones dont... Also, learn to use the wait command (or waitkey/waitmousekey) to spread things out...

SMF spam blocked by CleanTalk