Author Topic: hud bars and multiple hud sprites at once?  (Read 1608 times)

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
hud bars and multiple hud sprites at once?
« on: November 03, 2020, 08:14:33 PM »
I was thinking about creating hud bars when I realized some cool additions for the hud system, so I decided to share them with you. (not that I hope to have them for 9.0, but having them later would be cool)

As of now, it is THEORICALLY possible to create custom hud bars in Platform Builder by using sprites of the bar for multiple stages and using a command to set the hud sprite to one of the sprites depending on the value the bar is supposed to represent (of course, the set bar to value script would be shortenable by making the bar sprites follow each other in order and use something like "hud sprite = [id of the first sprite - 1]+value"). However, this method has several downsides.
-It's complicated.
-You need to make a sprite for every value possible.
-You can't have this and other hud sprites at the same time (unless the sprites are straight-up the full hud but the bar has a different value, or to edit the lives/star/ammo hud sprites for representing elements).
-You can have only 1 bar a time. (unless you use 2P at your advantage or make in total [howmanypossiblevalues]² which is kinda big)
So, my suggestions are:

1) Being able to create custom hud bars with different settings: a setting to make a smooth value changing (with setting manually the speed of course), a setting to choose between a simple bar where we can change colors and size OR to select sprites to use for the bar (1 for the bar background and 1 for the filling bar itself), and a setting to choose the bar filling direction.

2) Having multiple hud sprites possible at the same time (for each player). Self explaining.

Let me know what do you think.
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: hud bars and multiple hud sprites at once?
« Reply #1 on: November 09, 2020, 10:30:43 AM »
Bumping this in case nobody noticed it and because i'm doing something that would require both suggestions.
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

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: hud bars and multiple hud sprites at once?
« Reply #2 on: November 09, 2020, 11:34:35 AM »
I was thinking about creating hud bars when I realized some cool additions for the hud system, so I decided to share them with you. (not that I hope to have them for 9.0, but having them later would be cool)

As of now, it is THEORICALLY possible to create custom hud bars in Platform Builder by using sprites of the bar for multiple stages and using a command to set the hud sprite to one of the sprites depending on the value the bar is supposed to represent (of course, the set bar to value script would be shortenable by making the bar sprites follow each other in order and use something like "hud sprite = [id of the first sprite - 1]+value"). However, this method has several downsides.
-It's complicated.
-You need to make a sprite for every value possible.
-You can't have this and other hud sprites at the same time (unless the sprites are straight-up the full hud but the bar has a different value, or to edit the lives/star/ammo hud sprites for representing elements).
-You can have only 1 bar a time. (unless you use 2P at your advantage or make in total [howmanypossiblevalues]² which is kinda big)
So, my suggestions are:

1) Being able to create custom hud bars with different settings: a setting to make a smooth value changing (with setting manually the speed of course), a setting to choose between a simple bar where we can change colors and size OR to select sprites to use for the bar (1 for the bar background and 1 for the filling bar itself), and a setting to choose the bar filling direction.

2) Having multiple hud sprites possible at the same time (for each player). Self explaining.

Let me know what do you think.
I didn't notice, but its a pretty good suggestion ngl. I've been asking for more custom sprites in huds from a lot ago.
Sorry because my English is not very good because I'm Spanish ;) :P

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: hud bars and multiple hud sprites at once?
« Reply #3 on: November 09, 2020, 05:21:55 PM »
Lets all leave likes on this post. It's a good idea.

War

  • "The top player is here!"
  • Level 20: Nobom
  • *
  • Posts: 1490
    • View Profile
    • My website
Re: hud bars and multiple hud sprites at once?
« Reply #4 on: November 09, 2020, 05:46:09 PM »
Lets all leave likes on this post. It's a good idea.
Thats right, @TingThing should have something to sort the last suggestions by the like amount to see what suggestion he should comment.
« Last Edit: November 09, 2020, 05:46:37 PM by warrior »
Hey, wassup wassup? My name is Warrior555MainsGanon (but just call me War) and I'm the main guy behind Megaman Zero Online and the upcoming Matt's Adventure! I don't speak often here but I'm a very friendly lad so if you wanna talk, don't hesitate!

CGM

  • Christian, 3D artist, former Platform Builder gamdev
  • Master Builder
  • *
  • Posts: 3836
    • View Profile
Re: hud bars and multiple hud sprites at once?
« Reply #5 on: November 10, 2020, 02:11:08 AM »
Good idea. @warrior @TingThing