Animations help

Started by Mr.Trant, Sun 25/05/2003 16:33:51

Previous topic - Next topic

Mr.Trant

Ya, how do u make a character move and animating at the same time, like i have a jump animation where he dives but i cant make him move at the same time, or vice versa... i have this as my script....


   SetCharacterView (THEONE,4);
   AnimateCharacter (THEONE,1,5,0);
MoveCharacterStraight(THEONE,player.x-400,player.y);
while ((IsKeyPressed(68)>0)&&(character[THEONE].walking)) AnimateCharacter (THEONE,1,4,0);
StopMoving(THEONE);
}



HELP  ??? ??? ??? ??? ??? ??? ???

Rui 'Trovatore' Pires

#1
I had the same problem a few times, here's what I did for, say, Larry's shooting to death -

*I imagined this square |---------------|
                                     |                   |
                                     |      3    2     |
                                     |  4               |
                                     | 5          1    |
                                     |---------------|

The numbers represent the place where Larry's bottom-left pixel would have to be.

From then on, I just redrew it all, but instead of doing a neat row-and-column thing I did -

       |---------------|            |---------------|          
       |                   |            |                  |
       |                   |            |           2     |
       |                   |            |                  |
       |             1    |            |                  |
       |---------------|            |---------------|

You see? He makes an arch, going like      ------  
                                                                /        \
                                                              /            \
                                                             V            ^


And from here on, just tile those sprites and import them!

Hope I was clear enough. If you're doubtful about my system, check out at the critic's lounge my "Larry 2 teaser" - the dog jumping out of the car, the cowgirl, and his death were all made like this.

PS - in other words, include the movement in the animation :)
Reach for the moon. Even if you miss, you'll land among the stars.

Kneel. Now.

Never throw chicken at a Leprechaun.

Mr.Trant

uhhh???? idk, but i have tha animation as left run, but it wont go all the way thru??? how do i solve it
??? ??? ??? ???

Jimi

maybe if you just make him move in the same place. For example, draw it in a paint program, on the full room size, and have him actually move on the drawing, then import them into ags sprites, and into views.

Pumaman

You are calling AnimateCharacter repeatedly which keeps restarting the animation. Do this instead:

SetCharacterView (THEONE,4);
AnimateCharacter (THEONE,1,5,0);
MoveCharacterStraight(THEONE,player.x - 400,player.y);

AnimateCharacter (THEONE,1,4,1);
while ((IsKeyPressed(68)>0)&&(character[THEONE].walking)) {
Wait(1);
}
ReleaseCharacterView(THEONE);
StopMoving(THEONE);

SMF spam blocked by CleanTalk