You can mimic that vanilla white flash even with a Progress Bar by layering a temporary white overlay and driving it with a few variables:
- Progress Bar setup – Add a Progress Bar for health and feed it
{“placeholder”:“current_player_health_percent”} so it fills like a normal health bar. (Placeholders doc: Placeholders)
- Create the white flash overlay – Put an Image (or Rectangle) on top of the bar, tinted white with opacity controlled via a variable (you can use
Advanced Opacity with a placeholder like {"placeholder":"getvariable","values":{"name":"health_flash_alpha"}}).
- Use a Ticker to detect damage:
- Add a Ticker that runs every tick, reads the current health placeholder, compares it to a stored variable (see Variables) and when the health decreases set another variable (e.g.,
health_flash_timer) to something like 10.
- Every tick also subtracts 1 from that timer (clamp at 0) and updates both
health_flash_timer and health_flash_alpha (e.g., health_flash_timer / 10 via the Calculator placeholder) so the overlay fades out.
- Show overlay only while timer > 0 – Give the white overlay a loading requirement (Is Number checking
health_flash_timer > 0). This way it appears and fades every time damage occurs.
You’ll be combining the Progress Bar element with Placeholders + Variables + a Ticker action script—everything described in the docs above—so the overlay flashes white whenever your health drops while the main bar keeps showing the normalized value.