So basically im trying to make it so if double or so zombies gets on top of you it will drain double or so your life... instead it only drains the amount of life one zombie can take away...please help :]
Printable View
So basically im trying to make it so if double or so zombies gets on top of you it will drain double or so your life... instead it only drains the amount of life one zombie can take away...please help :]
Might need a little more information to help you, like how is your life (I assume you mean health) setup?
Are you using Alterable values or counters????
im using both.. for example... if zombie is overlaying player subract 1 from alterbrute value a and subract 1 from counter ... if atrabute value a <= 0 destroy player.. thanks :]
Well it might be as simple as switching "zombie is overlapping player" to "player is overlapping zombie"
Are you using fast loops?
and you can do this without using the counter and just by using an Alterable value
If you want to send me an example of what your doing, I'm sure I can help you
look this is the game http://www.mediafire.com/?i5xfj24b95596vc
Ok, when I get back in about an hour I'll take a look
Try multiplying the amount you subtract by the number of zombies that are overlapping the player. You can use the select object extension to see ho many objects were selected by the "Zombie is overlapping Player" condition. EG Subtract (15 * Number of Zombies Overlapping Player) from health.
I can't use extensions :/
This may help you without using extensions
This is one way to reduce players health times the # of enemies attacking
Very nice example, gerald!