Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_ceroba_red_hp_numbers_Step_0

(view raw script w/o annotations or w/e)
1
if instance_exists(obj_ceroba_body)
2
{
3
    var breath_percentage = (obj_ceroba_body.anim_stretch_current - 1) / (obj_ceroba_body.anim_stretch_max - 1)
4
    color_number_current = 200 - breath_percentage * 200
5
}