Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: sameeralord on Sat 25/06/2005 03:37:32

Title: How can you stop characters colliding!!
Post by: sameeralord on Sat 25/06/2005 03:37:32
Hi Guys,
In my previous topic I asked the oppsoite question. The problem now is In my game when a bad charcater is chasing the player character, if the player charcater uses the gun bad character would die. I did that then after that I changed bad character view to a dead view. The problem is that when the player charcater won't to explore the room the bad character died if he accidently collided with bad character's body he would get the game over screen. I hope you understand what I am saying. Please help!!
Title: Re: How can you stop characters colliding!!
Post by: Candle on Sat 25/06/2005 04:21:11
NewRoomNPC(BOB, 4, 100, 50);  (http://www.candles-weblog.us/agshtml/)
Title: Re: How can you stop characters colliding!!
Post by: Jay on Sat 25/06/2005 05:37:08
You'd need to set a global variable that keeps track of whether or not the bad character is dead. Then, when the characters collide, you should check that variable in order to determine whether the player character should get a game over.