[Tutorial]How to make a Togglable Overlay

Started by Seshua on

Topic category: User side tutorials

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Tutorial]How to make a Togglable Overlay
Mon, 03/29/2021 - 05:58 (edited)

Hello All,

Today I will teach you how to make a overlay that displays variables, that only appears on screen when you press and hold a keybinding.

First off, and this goes without saying, you need to have your systems up and running before hand if your using this tutorial to display your system.

Secondly this is applicable to images and any other elements that can be used on an overlay.

Thirdly, I'm open to questions, but please, I am just one person, I don't know everything about everything there is know about overlays or anything else mcreator/modding related. I'm just sharing what I've learned through trial and error process. Anyways on with the tutorial :)

 

For this tutorial I've made a Timer system, that keeps track of how long you've been playing (In real time) a world.

Here is that Procedure

Link


Okay so now that you have your system, add a new Procedure, call it what you want, inside add this

Link

you can find the Return block under "Flow Control"


This procedure is what you will put on every Text Label, Image, etc.. in your overlay for the "Display Condition"

LInk


Make a procedure call it what you want, inside it will look like this

Link

also make a second procedure, make it like this one, except make it false.


Now that, that's done, make a new Key Binding and add the procedure that sets your variable to true in the box "On key pressed"

and in the "On key released" put the false procedure

LInk


Here is what my overlay looks like (in Mcreator)

Link


There you go, If you go in-game and press and hold the key you selected it will display the "Other" variables you've setup to display.

Final thoughts: Is this the end all be all to displaying info/images with a keybind? No, probably not, this is just a way I've found that works. Thanks all for viewing and happy modding! <3

Edited by Seshua on Mon, 03/29/2021 - 05:58
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Man the post editor awesome,…
Mon, 03/29/2021 - 06:01

Man the post editor awesome, but man I pretty'd up my post and then posted it, looked at it all the text that I wrote below the pictures ended up on the side of them, so i re-edited the entire post and turned them into links instead. :D

Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, I have a little problem…
Sat, 06/19/2021 - 16:07
Hi,
I have a little problem
I can't find the correct variable can you help me please?
Here is a small picture 
https://imgur.com/85zKUyj
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is awesome. TY!
Mon, 06/21/2021 - 12:35

This is awesome. TY!

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cruel, you need to make your…
Tue, 11/28/2023 - 07:16

Cruel, you need to make your own variable
You need to go in work space, and then open a variable window, (this window is on the left)