Enemy Doesn't Die
11clock
Member Posts: 450
http://iliveinavillage.tk/up/5f7b0f9d72d8c48ae4fe2553eba39cdb.png
These are my enemy's attributes and the rules that are supposed to kill the enemy when tapped 4 times. However, this doesn't appear to work. I don't see the problem, so can you help?
These are my enemy's attributes and the rules that are supposed to kill the enemy when tapped 4 times. However, this doesn't appear to work. I don't see the problem, so can you help?
Comments
Remove that and just have when actor is touched changed self.health to self.health -1
That should fix it.
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
The problem is that "harm" does not equal 1. Its set at 0
Just use this->
Rule when touch is pressed-
change attribute "health" to "health"-1
EDIT: DARN! too late
I'll try using Display Text.
Also, my game's FPS dropped dramatically.
Would you like me to send my game file?
After .1 second
Then put in your self.health stuff
Cheers,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
I just tested what changing Health to 0 does, seeing if the enemy will die instantly. The enemy was still alive when I ran the preview. Destroying the actor does not work is what appears to be the problem.
*link removed*
Please look at the enemy called Worm.