Gamemaker: Studio Course Level 2 Online

Why should the "Take Damage" code be placed in the obj_enemy_parent rather than in each individual enemy object?

GameMaker uses Groups to organize sprites and objects into subfolders like "Level 1" or "Level 2". if keyboard_check(vk_right) { x += 5; } Standard conditional movement logic. 5 Layer vs Depth GameMaker: Studio Course Level 2

You are creating a top-down shooter. You have a obj_enemy_parent and three specific enemies: obj_enemy_fast , obj_enemy_tank , and obj_enemy_boss . Why should the "Take Damage" code be placed

A) Folders B) Directories C) Bundles Part 2: GML Scripting & Logic (Short Answer) 5 Layer vs Depth You are creating a top-down shooter

B) To share code and events from a "Parent" to multiple "Child" objects. C) To increase the resolution of a sprite. D) To delete multiple objects at once.

Local variables use the var keyword and are discarded after the script ends. B

Layers refer to specific named editor layers; Depth uses a numeric Z-axis value. Efficiency