/// @description go on switch (state) { // Init lifebar position at instance creation case 0: _bar_x = center_2width(x, sprite_width, _bar_w); _bar_y = y - 40; state = 1; break; case 1: // break; case 2: // break; default: // break; }