Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: eddy on Mon 15/11/2004 06:55:54

Title: Two characters in one animation
Post by: eddy on Mon 15/11/2004 06:55:54
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
Title: Re: Two characters in one animation
Post by: Scummbuddy on Mon 15/11/2004 07:13:23
I would suggest doing it the first way. The characters would look better, plus it would be a ton easier to do.
Title: Re: Two characters in one animation
Post by: strazer on Mon 15/11/2004 15:19:15
As for synchronizing animations, I have this in my notes:


  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);
Title: Re: Two characters in one animation
Post by: eddy on Tue 16/11/2004 06:53:28
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!