Question about coding for adding and removing health

I’m curious if you would have to code a button to heal the player is health bar how would it be written?

Also to remove the enemy is health by 50 to 75% value with two other buttons.

Going with simple coding.

I built three video games in Ready Maker already and I’m always curious whats happening behind the behaviors & events we select.

1 Like

Hi @James! Maybe this solution:
For example, you picked up a bonus (Life). You could use a counter for this. The events example:


 Player/Sensing/Collided with Object/Bonus

 Button Life/Sensing/Touch Down

 Life Meter/Life Meter/Add/10

Is this how it looks like in Unity?

I need to start coding my health logic in Unity first. Once that is working, add the buttons. Once that is working, I’ll be hooking up IAP to the button clicks.

Image of current UI.

1 Like