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

another question #2883

Answered by hifishlol
RealDealJinx asked this question in Q&A
Mar 10, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote
  1. look at options.hx and playstate.hx for reference
  2. change
    if (healthBar.percent < 20)
    iconP1.animation.curAnim.curFrame = 1;
    else
    iconP1.animation.curAnim.curFrame = 0;

in Playstate.hx to

            iconP1.animation.curAnim.curFrame = 1;
            iconP2.animation.curAnim.curFrame = 3;
		}
		else if (healthBar.percent > 80){
            	iconP2.animation.curAnim.curFrame = 1;
            	iconP1.animation.curAnim.curFrame = 3;
		}
		else{
            	iconP1.animation.curAnim.curFrame = 0;
            	iconP2.animation.curAnim.curFrame = 0;
		}

and add a third number in HealthIcon.hx for your character

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RealDealJinx
Comment options

@RealDealJinx
Comment options

Answer selected by RealDealJinx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants