Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: KrisMacDee on Wed 29/12/2004 14:50:49

Title: Snake killing problem
Post by: KrisMacDee on Wed 29/12/2004 14:50:49
I have started work on a game and in a bit set in a jungle(the backround of  mi3 when Guybrush gets eaten by a snake) and there is a familiar cobra wearing a hat and I want to be able to throw a stone at the snake to K.O it and nick the hat. I'm having problems doing the animation for it.Would I have EGO
and the cobra in one animation or do it one after the other?And how do I do it fluidly?
Thanks for any replies!
Bigmac

Title: Re: Snake killing problem
Post by: strazer on Wed 29/12/2004 15:09:34
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=17723

You could also make the stone an object, then

- Animate EGO throwing (AnimateCharacterEx blocking)
- Turn on stone (ObjectOn)
- Move stone toward snake (MoveObject blocking (example in manual))
- When move over/stone reached snake, turn off stone/move to ground and animate Snake getting hit (AnimateCharacterEx)

There are many possibilities.
I haven't actually done anything of the sort yet, so someone else has to tell you what the easiest/best solution is.