• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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