How to create an energy to move system

Hi! This is my first tutorial and I’ll be showing you how to make a system where you need energy(or another item) to move.

  1. First place a questioner on the map and then place an item granter right beside it.
  2. Connect the questioner to the item granter with a wire and set it to “Question answer correctly” → “grant item.”
  3. Click on the item granter and set the item to grant to “Energy”(or your preferred item). Change the amount to grant to the amount of the item you want to give the player after they answer correctly; I’ll set it to 1000.
  4. You want to let the player see how much energy they have, so we will use a “game overlay” device. Place it behind the questioner and set the overlay type to tracked item. Then change the tracked item to energy(or whatever item you are using) and change the overlay position to top left.
  5. Next, you want to actually use energy when the player moves. Place a movement meter behind the questioner and set the tracked item to energy(or a different item you are using). After that, set the item drain per tick. I used 17, but you can make it higher and have the player use more energy when moving or vise versa.
  6. Another thing you want to do is give the player energy at the starting of the game. Place a “starting inventory” device behind the questioner and set the item to grant to energy and the amount to 1000.

    NOTE: The energy system already works at this point, and the rest of the tutorial focus on extra features
  7. You want to allow the player to answer questions while they are away from the questioner, which can be accomplished with a “game overlay.” Place it behind the item granter and set the overlay type to button. Then, adjust its position on the screen(I’m putting it in the bottom left) and change the overlay text to “Answer Questions.”
  8. At this point, clicking the button will not do anything. To make it open the question answering screen, wire it to the questioner and choose “button pressed” → “Open question answering screen.”
  9. Another feature you can add is a popup when a player runs out of energy. To do this, add a “popup” device on the right of all the other devices and change the header and content to say “out of energy!” Then wire the movement meter to the “popup” and set it to “Player runs out of movement resource” → “open popup.” You can optionally change the popup type to banner, depending on whether you think it looks better than a modal.
  10. To make the no energy popup a bit better, I added a “answer questions” button to it. You can do this by going to the popup settings, to the “Call to Action” tab and change the call to action label to “Answer Questions.”
  11. Now the button appears on the popup, but doesn’t do anything. To make it open the question answering screen, wire it to the questioner and choose “Primary call to action clicked” → “Open question answering screen”
  12. That’s all! You now have a working a energy to move system. The final project should look like this:

EDIT: I couldn’t find any other guides about this topic before posting, so I did figure this all out myself after playing around with gimkit creative for a bit

12 Likes

Nice guide, but you might want to credit this guide:

1 Like

Good job, and welcome to the forums, @justiniscoding !

1 Like

Good First guide and welcome to the forums!

-J, Welcoming You

welcome to the forums bro (prepare for ur notifications to blow up if u have them turned on)

I actually didn’t use any guides for this project, and couldn’t find this one while checking if there were any similar ones to mine. I figured it all out myself after reading through the docs!

1 Like

Nice first guide and welcome to the forum, @justiniscoding! I think you’ll have to credit another guide:

1 Like

Welcome to the forum, @justiniscoding!

Ty! I couldn’t find out how to do that! :sweat:

1 Like

Super helpful for beginners! 2/10

Oof! I BUMPED into some energy bars!!! hmmm ig im rlly short

But wouldn’t you go through them? Nevermind, I won’t question people’s bumping ways

2 Likes

Welcome to the comunity @justiniscoding , also nice first tut. So what do you think your gonna do next?

  • Tag
  • Plattformer
  • Smash bros?
0 voters

Umm… This post is like 8 months old and the last time he posted was in November. I don’t think he’s doing anything next.

No clue tbh. And guess who’s back @GlM You tell me what I should do next XD. Gimscript would be cool, something that converts code to gimkit creative :thinking:

It’s the man, the myth, the legend himself!

I made one thread, am I that famous :rofl:

Nah, you just left for like a really long time lol.

Welcome to the forums, @justiniscoding!

Yeah, I mean It could be a python library! it would also make gimkit creative a bit more educational to use!