Author Topic: Custom HUD  (Read 1092 times)

Fi

  • Level 3: Plugger
  • *
  • Posts: 41
    • View Profile
Custom HUD
« on: August 27, 2020, 08:33:02 PM »
I'm trying to change the coin HUD for PB and when i do its a mess how do i change the coin icon?

Antikore

  • Developing Mortal Theater at day, developing depression at night.
  • Level 22: Trex
  • *
  • Posts: 2020
  • Enjoying Platform Builder from the very start
    • View Profile
    • PBuilder Resources
Re: Custom HUD
« Reply #1 on: September 16, 2020, 02:14:13 PM »
I'm trying to change the coin HUD for PB and when i do its a mess how do i change the coin icon?
There are multiple ways to do that.
To modify the hud you need an sprite, I would recommend you to use an sprite with the size of the screen so you can put in the sprite whatever stuff you need.

When you use a custom sprite for hud, the hud stuff such as money, health and other indicators appears in the screen and may look like a mess. You can disable each one by using
Code: [Select]
hud sprite = 1 //Changes hud to sprite 1
hud show money = false //Turns off money indicator
hud show lives = false //Turns off lives indicator
hud show health = false //Turns off health indicator

However, if you want to use the default indicator but change the money icon, you should use the sprite sheets, find the one with the coin (Probably its in grayscale, this could cause problems because PB automatically blends the yellow on it)
You can change a spritesheet by going to Game Setup > Sprite Sheets
Find the spritesheet where the coin is in, then click download or template or something like that. Modify the sprites there. Afterwards, return and upload it to the place where the original was, and that's it.
You can move the default indicator by using
Code: [Select]
hud player (1 or 2) money = x, y replace x and y with the coordinates on the screen.

Hope this helps you :)
Sorry because my English is not very good because I'm Spanish ;) :P