hello good folks i would appreciate some help with a mechanic im struggling with in my project!
in my project there are sprites called "people".
people have the number variable "health".
when "people" overlap a certain other type of sprite, the "health" decreases by 0.X every 0.X seconds.
and when people dont overlap that sprite, the health increases by 0.X every 0.X seconds.
that part is easy enough, but it would be nice if there was a better way since "every X seconds" applying to potentially hundereds of "people" is probably not the way to do it...
the problem:
everytime a "people" sprite loses or gains health at an integer (example: 50.1->50.0 or 50.1->51) i want to spawn a popup on that "people" informing the player that that particular guy lost or gained 1 health.
how do i:
create an event that on "people" variable changed from X to an Integer (higher or lower than X, X can be an integer itself) spawns a popup sprite?
PS. i might be using the word "integer" incorrectly, but i hope i make sense anyway =)