How do I make regeneration?

I’m working on my Defeat King Gimrick game (again), and I was wondering how to make regeneration. Please help me, do anyone knows?

regeneration of health?
If so, what do you plan on being the cause of the regeneration?

2 Likes

I think you might be able to connect a wire repeater to a health granter and make it so you gain 1 health per second

2 Likes

if u have low health, u can regen

add it to a screen button not in game button that you need to be at low hp to do

eah but I want it to regen forever, cuz the game is pretty long

add what to a screen button?

then do what additive_club said

Game Overlay [Button] wired to a Health Granter.
When Overlay is pressed, grant Health.

or what yoyo said wtvr >:(

1 Like

I assume you are using an overlay/button to activate the regeneration, so here’s the most memory efficient method I have for you:

1 Trigger
1 Health Granter
1 Overlay or Button

Trigger: trigger on X Channel when triggered, and trigger when receive on X Channel, delay = 5.0 seconds, feel free to adjust the interval based on your desire, set on player scope.

Health Granter: grant the amount of health you want.

Wiring: Button/Overlay (pressed) → Trigger (trigger)
Trigger (triggered) → Health Granter (grant health)

Mobile typing is hard lol

Let me know if you have any more questions!

2 Likes

make it so when the game starts it causes a repeater to always grant you one health every __ seconds

Welcome to the community Mr_Game_and_Watch and it should be simple to at game start activate a repeater and a health granter and if you want it to go to anyone use a relay this should work

1 Like

Regen for an NPC or a player?

2 Likes

@red_3 you should mark one as a solution

I assume what other people are talking about is this
(using pictures since it’s easier to understand)