Gamemaker Studio 2 Gml
// Constructor function Character(_name, _health) constructor name = _name; health = _health; attack = function() show_debug_message(name + " attacks!");
// 2. DRAW THE EDGES (The "Thickness") // We use primitives to draw a band connecting the top and bottom faces. draw_primitive_begin_texture(pr_trianglestrip, -1); gamemaker studio 2 gml
// Direct coordinates x += 5; // Move right y -= 4; // Move up // Constructor function Character(_name