View Full Version : 404'd! (again)
Noob101
2005-11-23, 10:24 AM
Hey again. Well, I'm working on my horror-zombie game, and I just finished my ABS, except everytime I attack my zombie, it always gets a hit on me. Should I just make him slower or did I do something wrong or...?
BlueCube
2005-11-23, 10:43 AM
Not quite sure what you mean. Do you mean something like "Attack Zombie -> instead of doing damage, zombie attacks you"? Check the sequence of events you have set during battle and make sure switches aren't being activated when they shouldn't be. Also, it MAY be a speed problem, if he's at 90 and you're at 91 or something, it would look like he's attacking right after you.
Noob101
2005-11-23, 11:25 AM
Well, everytime I attack, I get hurt as well as doing damage to the zombie.
BlueCube
2005-11-23, 01:48 PM
The same damage (or about the same)? My best educated guess is that you're calling a "damage" routine or something that doesn't know what it is damaging (a generic "@DAMAGE" variable or something, then it checks to see if DAMAGE > 0 and if so, damage whatever)
Or it could be something like this:
-Your Turn, select attack
-Randomize Damage (into variable HPDamage)
-Monster HP = Monster HP - HPDamage
-Monster's turn, might not be doing anything damaging but HPDamage is still there
-Your HP = Your HP - HPDamage
Noob101
2005-11-25, 04:41 PM
Well, this is an ABS.
BlueCube
2005-11-26, 01:25 PM
Yeah, but check to see that there's nothing calling the routine to damage you right after you "hit" an enemy, either via a switch or something else. Also, if you use different attacks or something, does it ALWAYS damage you as well, or only if you use a certain thing (like a sword stab and a bomb or something).
My suggestion: At the beginning of the routine you call to damage the enemy, do a quick <>Message:"I AM DEALING DAMAGE" and at the beginning of the routine to damage you, put another <>Message. That'll help you track down whether it's being called or if it's something in the Enemy Damaging section that's affecting you accidentally.
And for your sake I hope it's not as simple as a messed up copy/paste that still has you losing HP instead of the enemy, since those are horribly frustrating when they happen to you
Noob101
2005-11-26, 04:31 PM
Hrm. I got it o work, but not as I wanted it. Ahh well. Thanks, BC.
vBulletin® v3.8.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.