Hi ! I’ve recently switched from Unity to Defold and am a bit confused about how I would go about running a health management rule set, so how to
-take damage from an enemy which would then update the current health of the player
- collide with a healing object which would heal the player by a certain amount so say a small healer would heal 1 point and a big healer would heal 5 points
-also have this health updated live on screen?
- but if the maximum health has been achieved, then to take no action and the healer object is ignored
but also make sure the code doesn’t break…in unity it would be something like "if health >= max health then health = max health "