Skip to content

Guide for animated health icon and new tag - xml#54

Merged
Kade-github merged 8 commits into
FunkinCrew:masterfrom
KT-Gameplay:master
May 18, 2026
Merged

Guide for animated health icon and new tag - xml#54
Kade-github merged 8 commits into
FunkinCrew:masterfrom
KT-Gameplay:master

Conversation

@KT-Gameplay
Copy link
Copy Markdown

@KT-Gameplay KT-Gameplay commented Mar 13, 2026

This my tutorial on how to add animated health icons.
No scripts included, only XMLs

Made a lot of commits trying to make it sound like explainative

@KT-Gameplay KT-Gameplay changed the title 07.CreatingAnimatedHealthIcons Guide for animated health icon and new tag - xml Mar 13, 2026
@KT-Gameplay
Copy link
Copy Markdown
Author

Yo kade, how long till you review it?

Copy link
Copy Markdown
Member

@Kade-github Kade-github left a comment

Choose a reason for hiding this comment

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

Hello, thank you for your PR.

Simple thing, I think you should go over the data part of the health icon in the character json, just to hit all bases. Since this isn't covered anywhere else.

/**
 * The JSON data schema used to define the health icon for a character.
 */
typedef HealthIconData =
{
  /**
   * The ID to use for the health icon.
   * @default The character's ID
   */
  var id:Null<String>;

  /**
   * Whether the health icon should bop or not.
   * @default true
   */
  var shouldBop:Null<Bool>;

  /**
   * The scale of the health icon.
   */
  var scale:Null<Float>;

  /**
   * Whether to flip the health icon horizontally.
   * @default false
   */
  var flipX:Null<Bool>;

  /**
   * Multiply scale by 6 and disable antialiasing
   * @default false
   */
  var isPixel:Null<Bool>;

  /**
   * The offset of the health icon, in pixels.
   * @default [0, 25]
   */
  var offsets:Null<Array<Float>>;
}
{
  "version": "1.0.0",
  "name": "Spooky Kids (Dark)",
  "assetPath": "characters/spooky_dark",
  "healthIcon": {
    "id": "spooky",
	"shouldBop": true,
	"offsets": [11,25]
  },
  // ...
}

@KT-Gameplay
Copy link
Copy Markdown
Author

Like im supposed to include the health icon json data in this?

@KT-Gameplay KT-Gameplay requested a review from Kade-github April 1, 2026 10:10
After editing the prefixes as specified above, the icon will start playing it's animation.
After editing the prefixes as specified above, we should insert the health icon data in the character's data.

```json
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should be jsonc here as it contains a c-styled comment.

@KT-Gameplay KT-Gameplay requested a review from Kade-github May 18, 2026 08:57
@Kade-github Kade-github merged commit 6c33cd7 into FunkinCrew:master May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants