Skip to content

[ENHANCEMENT] Add a PlayState check to initHealthIcon() and playAnimation()#7646

Open
zxcksharks wants to merge 1 commit into
FunkinCrew:developfrom
zxcksharks:for-the-stages
Open

[ENHANCEMENT] Add a PlayState check to initHealthIcon() and playAnimation()#7646
zxcksharks wants to merge 1 commit into
FunkinCrew:developfrom
zxcksharks:for-the-stages

Conversation

@zxcksharks
Copy link
Copy Markdown

Linked Issues

None I could find

Description

Before this PR, stages were unable to be utilized to their full potential outside PlayState (addCharacter() would call initHealthIcon() which promptly throws an error outside of PlayState)
By adding checks here, we allow both stages and characters to function independently from PlayState.

Screenshots/Videos

(Shown: bf in mainStage with characterType = BF in a custom state)
screenshot-2026-05-28-21-41-18

This allows stages to be fully utilized outside of PlayState.
@github-actions github-actions Bot added status: pending triage Awaiting review. size: small A small pull request with 10 or fewer changes. pr: haxe PR modifies game code. and removed size: small A small pull request with 10 or fewer changes. labels May 28, 2026
@NotHyper-474 NotHyper-474 added type: enhancement Involves an enhancement or new feature. size: tiny A tiny pull request with 4 or fewer changes. size: small A small pull request with 10 or fewer changes. and removed size: tiny A tiny pull request with 4 or fewer changes. labels May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: small A small pull request with 10 or fewer changes. status: pending triage Awaiting review. type: enhancement Involves an enhancement or new feature.

Development

Successfully merging this pull request may close these issues.

2 participants