Overlay Conditions

Started by KoolKats1 on

Topic category: User side tutorials

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Overlay Conditions
Wed, 02/24/2021 - 19:07 (edited)

Hello! I have been making a thirst bar overlay with the 2020.5 MCreator. I have a playerlifetime variable that decreases about 0.005 every player tick (as a way to space out the decreases) and I have it so that when the variable is less than 0, it decreases player health the same way. That all works fine. 

The issue I am having is using the condition for the thirst bar overlay. I set up 10 individual water drop images that are supposed to go away as thirst decreases, but I cannot get the conditions to work. 

I currently have a condition for each image that looks a little like below. I have tried a bunch of different options but I dont know why this one doesnt work. I have also looked everywhere else for a tutorial (including the youtube) but I still havent been able to fix it. Essentially I just want the image to not be displayed if the variable is less than the corresponding number. Thank you!

 

Procedure Using return & Condition

https://ibb.co/RvxrTVT

Procedure for thirst decline and player health decline
Procedure for thirst decline and health decline

https://ibb.co/GFfQhHc

Here is my overlay format as well

https://ibb.co/7yG1XCN

Edited by KoolKats1 on Wed, 02/24/2021 - 19:07
Joined Feb 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm having the same issue…
Sun, 12/19/2021 - 06:13

I'm having the same issue but i cannot find anything that can help to solve it. I hope someone can comment here anytime soon

Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Two things...   1, Your…
Sun, 12/19/2021 - 09:03

Two things...

 

1, Your first condition procedure needs the "return false blocks" under the "return true block".

2, Use the Player Persistent Var. The player lifetime var only happens one time during game play of that map/seed.

 

Chew