Gamemaker Studio 2 Gml [new] Today
You forgot to initialize health in the Create Event. You fix it. You press . The window turns black, then colorful. Your goblin jumps again.
: The language is built on a massive library of pre-made functions for movement, collisions, and drawing, allowing you to get a character moving in minutes. Key Strengths Why I Chose Gamemaker For My Indie Game gamemaker studio 2 gml
// Save game var _save_map = { player_x : obj_player.x, player_y : obj_player.y, inventory : inventory_array, score : global.score }; var _json = json_stringify(_save_map); save_text_to_file(_json, "save.sav"); You forgot to initialize health in the Create Event
Your game starts now.
Now go make something that moves.
In GML, you do not have a traditional main() loop. Instead, you write code inside . player_y : obj_player.y