Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Khristian Cammilleri on Sat 18/07/2009 15:52:49

Title: Making Zombies
Post by: Khristian Cammilleri on Sat 18/07/2009 15:52:49
Hi!  ;D This Is My First Post...
I need Help in Creating a good System for zombies..

Any Ideas?

This is What i Did But It's Not Nice At All  :-\
First I Make them follow me (FollowCharacter) And Then Attack If They Are Very close...(IsCollidingWithChar)

But How Can I Do To Finish Them?
I Made A New Function (smash) :o
So..when I Call that function..Character Animates Smashing The zombie...

Please If You Have Any Ideas Answer...
Thanks For All
Title: Re: Making Zombies
Post by: Khristian Cammilleri on Sat 18/07/2009 15:54:28
Oh! One More Thing...
Where Should I Put All This Script?
Global Script? ???
Title: Re: Making Zombies
Post by: TerranRich on Sat 18/07/2009 16:14:14
All custom functions should be put into the global script, with an import statement for it in the global header. Search for "function" in the AGS manual.

If you mean where should you call the actual function to make it work... wherever you need it to run. This is a question that gets asked all the time and is really very simple... if you want to run a command whenever the player enters a room after fade-in, then put it in the function that runs when the player enters a room after fade-in. Simple as that.
Title: Re: Making Zombies
Post by: Khristian Cammilleri on Sat 18/07/2009 16:20:36
Ok ;)
I Will Try How It Works
Thanks! ;D