How do I make an energy regenerator?

Hi everyone! I’m back! It’s been so long. Anyways…
I am creating a new game and I’m trying to make it so that if you use an energy bar, you will get a constant stream of energy, but I don’t know how to do that. Do you know how? If you do, please post to this.

3 Likes

explain further if you don’t mind

So I have a game where you start out with 100,000 energy and it slowly decreases the more you move. I’m trying to make it so you can essentially create the energy regenerator in Tag Domination.

sorry, I haven’t played it in a while, like, it constantly gives you like a bit of energy per second?

Yeah, exactly like that.

1 Like

trigger loop with delay of whatever, then wire it to an item granter that gives you energy, do NOT use the repeater unless you absolutely have to (if you can’t figure it out ask some1 else)

2 Likes

Now how do I make the Movement Meter visible? It worked like you said it would.

1 Like

Use an overlay and property.
Set the movement meter to update the property, and use blocks to show the property in-game.
:smiling_face_with_sunglasses:

3 Likes

You can use an overlay and set the overlay type to “tracked item” for more memory efficiency

5 Likes

Here is an efficient way you can use to make energy generator:

You will need a Trigger and an Item Granter.

Trigger set on “trigger when receive on [x channel]” and “trigger on [x channel] when triggered” with a delay of 1.0 seconds (you can adjust the value to your preferred amount)

For the Item Granter, make it grant a certain amount of energy when receiving on [x channel], for example, 500 energy.


To make the Trigger start looping, wire a button/vending machine (or whatever the device you will use to start the energy generator) to it, and it will constantly send [x channel] with the interval of 1.0 seconds.

If you want to make the consumption of energy bar more realistic, use a Game Overlay (button) wire to Trigger:

Game Overlay (pressed) → Trigger (trigger)

Don’t forget to make Overlay hidden after being pressed using channels.


Additional guide in case you don’t know how to make an energy draining system:


Feel free to ask if you got any more questions.

7 Likes