<undefined> 0 -1 0 -1 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 global.debug = false global.hide = false; draw_set_font(fnt_main); 1 603 7 0 0 -1 2 self 0 0 1 /// Draw HUD if(!global.hide){ if(!global.debug) { draw_set_color(c_white); draw_healthbar(10,10,500,30,(obj_player.energy/obj_player.energy_max)*100,c_gray,c_blue,c_navy,0,true,false); draw_text(11,13,string(obj_player.energy)+" / "+string(obj_player.energy_max)); draw_healthbar(10,40,300,60,(obj_player.hp/obj_player.hp_max)*100,c_gray,c_red,c_green,0,true,false); draw_text(11,43,string(obj_player.hp)+" / "+string(obj_player.hp_max)); } } 1 603 7 0 0 -1 2 self 0 0 1 /// Draw Debug Screen if(global.debug){ var chunk_total_size = (CHUNK_SIZE*TILE_SIZE); var playX = obj_player.x; var playY = obj_player.y; var chunkRelX = obj_player.x % chunk_total_size; var chunkRelY = obj_player.y % chunk_total_size; var chunkX = (obj_player.x - chunkRelX) / chunk_total_size; var chunkY = (obj_player.y - chunkRelY) / chunk_total_size; if(chunkX < 0) { chunkX -= 1; } if(chunkY < 0) { chunkY -= 1; } if(chunkY == 0 && (playY < 0 && playY >= chunk_total_size/-1)) { chunkY = -1; } if(chunkX == 0 && (playX < 0 && playX >= chunk_total_size/-1)) { chunkX = -1; } draw_text(10,10,"X: "+string(obj_player.x)+"#Y: "+string(obj_player.y)); draw_text(10,40,"CrX: "+string(chunkRelX)+"#CrY: "+string(chunkRelY)); draw_text(10,70,"CX: "+string(chunkX)+"#CY: "+string(chunkY)); draw_text(10,100,"Invuln: "+string(obj_player.invuln_counter)); draw_text(10,120,"World Seed: "+string(obj_controller_world_gen.WorldSeed)); } 1 603 7 0 0 -1 2 self 0 0 1 /// Set fullscreen if(window_get_fullscreen()) { window_set_fullscreen(0); } else { window_set_fullscreen(1); } 1 603 7 0 0 -1 2 self 0 0 1 if(!global.debug) { global.debug = true; } else { global.debug = false } 1 603 7 0 0 -1 2 self 0 0 1 if(!global.hide) { global.hide = true; instance_destroy(obj_hotbar); } else { global.hide = false instance_create(0,0,obj_hotbar); } 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0