This repository was archived by the owner on Sep 16, 2024. It is now read-only.
Fixed Health Bar color functionality#2103
Open
ChillsCD wants to merge 2 commits intoKadeArchive:masterfrom
Open
Fixed Health Bar color functionality#2103ChillsCD wants to merge 2 commits intoKadeArchive:masterfrom
ChillsCD wants to merge 2 commits intoKadeArchive:masterfrom
Conversation
## 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).
|
do not merge to stable- |
EliteMasterEric
suggested changes
Sep 10, 2021
| class PlayState extends MusicBeatState | ||
| { | ||
| public static var instance:PlayState = null; | ||
| public var colorOne:Int; |
There was a problem hiding this comment.
colorOne and colorTwo could be local variables.
Member
|
resolve conflicts pls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).