Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Fixed Health Bar color functionality #2103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChillsCD
Copy link

@ChillsCD ChillsCD commented Sep 1, 2021

What's wrong with the heath bar color functionality?

You may have noticed that changing the player in debug does not change the player health bar color (i.e changing to say pico still has the blue color on the health bar). This does work with the opponents though, as it changes based on the opponent.

What I did

I created two variables colorOne and colorTwo as Ints, and where the health bar is drawn, I made it 1st check the player, and changes colorOne to what character is being played (being bf makes it blue, changing to say dad will turn it purple). Then, it checks the opponent and changes colorTwo to the right color (if senpai was the opponent, the other side would be peach, or being pico makes it green).

## What's wrong with the heath bar color functionality?
You may have noticed that changing the player in debug does not change the player health bar color (i.e changing to say pico still has the blue color on the health bar). This does work with the opponents though, as it changes based on the opponent.

## What I did
I created two variables colorOne and colorTwo as Ints, and where the health bar is drawn, I made it 1st check the player, and changes colorOne to what character is being played (being bf makes it blue, changing to say dad will turn it purple). Then, it checks the opponent and changes colorTwo to the right color (if senpai was the opponent, the other side would be peach, or being pico makes it green).
@somefnfplayerlol
Copy link

do not merge to stable-

@Kade-github Kade-github changed the base branch from stable to master September 4, 2021 00:47
@@ -87,6 +87,8 @@ using StringTools;
class PlayState extends MusicBeatState
{
public static var instance:PlayState = null;
public var colorOne:Int;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

colorOne and colorTwo could be local variables.

@Kade-github
Copy link
Collaborator

resolve conflicts pls

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants