How can you stop characters colliding!!

Started by sameeralord, Sat 25/06/2005 03:37:32

Previous topic - Next topic

sameeralord

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!!
Friend in need is a friend indeed!!

Candle


Jay

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.

SMF spam blocked by CleanTalk