Two characters in one animation

Started by eddy, Mon 15/11/2004 06:55:54

Previous topic - Next topic

eddy

Hi there!

I plan to do in my AGS game an animation where the first character (EGO) grabs a part of an other character and pull it.
But the question is:
Do I have to make 1 sprite for both of them and turn the second character invisible?
Or do I have to make separated sprites for each character, but in that case , how do I manage to synchronize both animations?

Thanks for the help

Scummbuddy

I would suggest doing it the first way. The characters would look better, plus it would be a ton easier to do.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

strazer

As for synchronizing animations, I have this in my notes:

Code: ags

  SetCharacterView(KILLER, 3);
  SetCharacterView(VICTIM, 6);
  AnimateCharacter(KILLER, 5, 0, 0); // draw gun and shoot animation
  while (character[KILLER].frame < 4) Wait(1); // wait for shooting frame of animation
  AnimateCharacterEx(VICTIM, 5, 0, 0, 0, 1); // hit and dying animation
  ReleaseCharacterView(KILLER);

eddy

This is cool!
Thanks to both of us!
I still didn't choose how I will do it, but the example code for synchronizing animation is really helpful!

Thank you again!

SMF spam blocked by CleanTalk