Continuously changing attribute while overlapped. Help?
foldi
Member Posts: 21
I'm trying to continuously change an actor A's health value while it's touching actor B. However, I can only get health to decrement once when the collision is first detected. How can I keep decrementing and stop decrementing if the actors separate before actor A's health equals 0?
Thanks!
Thanks!
Comments
Then...
When enemy overlaps with laser:
Timer (run to completion checked)
every .2 seconds
Change attribute self.life to self.life-1
That should do it - works on my project just fine.
Hope that helps,
QS
Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io
*Rough estimate, might be as low as 2 or 3