Thread: On "if"s
View Single Post
Old
Lordelwood
Senior Member
 
Lordelwood's Avatar
 
Status: Offline
Posts: 43
Join Date: Oct 2010
Default 04-05-2011, 09:05 PM

Quote:
Originally Posted by Matchewawa View Post
I made the variable for the enemy's damage, set it to increment by one when you hit him, and then I set a seperate if saying that if the variable equals 3, then I set his visibility to false. (And thanks to something in his AI method, he will stop following me and get out of the way of the level) This makes perfect sense to me, but it's just NOT WORKING. I don't know why, but I've arranged it in like 10000 different ways and nothing seems to work. It seems that the "if KnightDamage == 3" is not reading the KnightDamage variable's value.
try the damage is >= 3
that way if the value goes over it will still register
umm, its really hard to say what the problem is without seeing it, if you wouldn't mind could you post it? so we can see where the issue is... i dont know if thats a fair question
   
Reply With Quote