How do I make a simple animation?

Started by , Sun 18/01/2004 12:23:25

Previous topic - Next topic

Heidi

I want a little animation of someone being turned into a carrot. Don't ask. :p
Anyways, I have all the sprites I'll need (That I know of) and just need to know how to make it into an animation. Here's what I have so far:

1. I imported all of the sprites of the boy being turned into a carrot, step but step
2. I moved them all into the "views" tab. I have 2 views already of walking etc. so this "carrotchange" was number 3
3. I made a trigger - when you use an item on a piece of furniture a conversation starts between the charactor and "me" (using the narrator command).
4. After this conversation, the animation is supposed to begin, so I used the command "Play FLIC animation" after the command: "Start conversation topic 2". The conversation works fine, but the animation doesnt - it says that there IS no FLIC animation

What do I do?!? :(

Ishmael

You need the AnimateCharater function. ;)



AnimateCharacter
AnimateCharacter (CHARID, int loop, int speed, int repeat)

Starts the character named CHARID animating, using loop number LOOP of his current view. The overall speed of the animation is set with SPEED, where 0 is the fastest, and increasing numbers mean slower. The delay for each frame is worked out as SPEED + FRAME SPD, so the individual frame speeds are relative to this overall speed. The REPEAT parameter sets whether the animation will continuously repeat the cycling through the frames. If REPEAT is zero, the animation will start from the first frame of LOOP, and go through each frame in turn until the last frame, where it will stop. If REPEAT is 1, when the last frame is reached, it will go back to the first frame and start over again with the animation.
If the character is moving it will be stopped.

Example:

AnimateCharacter(EGO,3,0,0);

will animate the character using loop number 3 of his current view only once.
See Also: AnimateCharacterEx, SetCharacterView


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.

Heidi


SMF spam blocked by CleanTalk