set life image
Problem it solves
The default heart icon for the life counter doesn't fit your game's theme, and you want a custom icon instead.
What this block does
Sets the icon used by the built-in life/health display.
The block
Block ID: spriteutilextsetlifeimage
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| im | Image | — | The icon to use for each life |
Example
spriteutils.setLifeImage(img`.`)
Add the extension
Add github:jwunderl/arcade-sprite-util to your project, or open: Import arcade-sprite-util.