Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How to change stamina colors in 1.4.3!

A Tutorial for Baldi's Basics in Education and Learning

No ads for members. Membership is 100% free. Sign up!
Hello, I am a new modder with some C# experience and I want to show how to change stamina color!

1. Go to Start() in GameControllerScript

2. Put in these two lines of code:
    GameObject.Find("Hud/Slider/Background").GetComponent().color = new Color(r, g, b);
    Thats the red background
    GameObject.Find("Hud/Slider/Fill Area/Fill").GetComponent().color = new Color(r, g, b);
    Thats the green fill thing
    Replace r, g and b with the rgb color values or use Color.defaultunitycolor and replace that with a unity color!

Here's a list of default unity colors: https://docs.unity3d.com/ScriptReference/Color.html

3. You are done! Just save it and try it out!
Sign up to access this!
  • LuisRandomness avatar
    LuisRandomness username pic Joined 1y ago
    Baldi Manager
    dontMindMe
    Ruler Productions Flag Affiliation: Ruler Productions
    225 points Ranked 54745th
    15 medals 2 rare
    • Achieved Game Manager clearance Medal icon
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • Submission featured Medal icon
    • Returned 100 times Medal icon
    • Reached 10 subscribers Medal icon
    LuisRandomness avatar
    LuisRandomness
    Ruler Productions Flag
    Affiliation
    Ruler Productions
    access_time 12d edit 12d
    There's an easier way that I found out way before this tutorial existed:

    this.staminaBar.fillRect.GetComponent<Image>().color = <place colour replacing green here>;

    this.staminaBar.transform.GetChild(0).GetComponent<Image>().color = <place colour replacing red here>;

    • Helpful x 1
    Doing stuff, I guess. avatar
    Mantra
    Doing stuff, I guess.
    URL to post:
  • RealT5mpler avatar
    RealT5mpler Joined 7mo ago
    Not on right ok
    2,187 points Ranked 20516th
    13 medals 2 rare
    • Returned 1000 times Medal icon
    • 25 posts awarded Exemplary Feedback Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • 1 post awarded Exemplary Feedback Medal icon
    • 5 posts awarded Exemplary Feedback Medal icon
    access_time 13d edit 13d
    actuallllyyyyy, isn't there a way easier way to do this. "this.text.color = new Color(r, g, b);" or "this.text.color = Color.(color);"
    Never Give up on what you want avatar
    Mantra
    Never Give up on what you want
    URL to post:
  • I was gonna do the same tutorial, but... I guess you beat me to it! (I saw BarnerrorBE's tutorial on Gamejolt about changing the color of the stamina bar) Thanks, anyways!
    Bananite
    URL to post:

Embed

menu
Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
turkeybaster141
turkeybaster141 Joined 13d ago
Offline
making the tutorial
Jumpman25 avatar
Jumpman25 username pic Joined 1y ago
Offline
311 points Ranked 50412th
10 medals 2 rare
  • 10 submissions featured Medal icon
  • Returned 1000 times Medal icon
  • Submission featured Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • Reached 1,000 Points Medal icon
showing me a list of objects in the school scene

Submitter

Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 231
  • 3
  • 13d

More Scripting Tutorials