Question about Passing the interaction of an object to another

T

Trium

Guest
While I'm trying to make a clicker game, i found out that 'set health' function does not have an option to pass this interation to another obejct.

What I want to do is to click on the background to reduce the health of the monster.
Wherever I click, monster gets damage. this is what i want to implement. But i can't find how to do this.

Is there anyway to implement this function?
 
T

TimothyAllen

Guest
This is because health is a global variable (its depreciated in GMS2). You will need to implement your own health system for the enemies.
 
Top