2 Gml ((hot)) | Gamemaker Studio

// If statement if (hp <= 0) instance_destroy(); else if (hp < 30) audio_play_sound(snd_lowhealth, 0, false);

place_meeting(x, y, obj)

If you know the specific instance ID, you use a dot. gamemaker studio 2 gml

;

// 4. DRAW THE TOP FACE (The "Front") // Draw the main sprite. draw_set_color(_col_top); draw_sprite_ext(_sprite, _frame, _x, _y, 1, 1, 0, _col_top, 1); // If statement if (hp &lt;= 0) instance_destroy();

Recent updates have modernized GML significantly. It now supports Method Variables // If statement if (hp &lt

// Create Event enum states IDLE, WALK, JUMP, ATTACK state = states.IDLE;