obj_new_track obj_new_track_Create_1 track_count=1; //current total number of tracks total_tracks=1; //total number of tracks created obj_new_track_Left Pressed_1 new_track=instance_create(128, 192+(70*track_count), obj_track); //create new track track_count+=1; //increment track counts total_tracks+=1; global.points = global.points + 1; if(global.points > 60) room_goto(room_end); obj_remove_track obj_remove_track_Create_1 i=0; //used for loops obj_remove_track_Left Pressed_1 with(obj_track){ if(track_id==other.track_id){ //delete track, note slots, and metronome other.i=0; while(other.iother.track_id){ //reposition remaining tracks y-=70; metro.y-=70; other.i=0; while(other.i=end_pos){ //at the end, move to start and untag all played notes x=start_pos; with(obj_note_base){ played=false; } } } obj_metronome_obj_note_base_1 if(other.held==0){ //only play placed notes if(!other.played){ //only play if note is not tagged as already played if(previous!=noone){ //if a note has been played previous to the current one previous.played=false; //untag previous note } temp_id=other.track_id; //a temporary id based on the note with(obj_track){ //get track's instrument type if(track_id==other.temp_id){ other.instrument=instrument_type; } } audio_play_sound(asset_get_index("snd_"+string(instrument)+"_"+string(other.note)), 10, false); //play note other.played=true; //tag note as played previous = other; //set note as last played note } } obj_scroll obj_scroll_Create_1 held = 0; //variable for drag and drop obj_scroll_Step_1 if(held == 1){ //if being dragged, can be dragged on y axis (up and down) y=mouse_y; } obj_scroll_Left Pressed_1 held = 1; //drag obj_scroll_Glob Left Released_1 held = 0; //let go of drag obj_scroll_Mouse Wheel Up_1 y-=50; //scroll wheel scrolling obj_scroll_Mouse Wheel Down_1 y+=50; //scroll wheel scrolling obj_lower_window_Step_1 y=view_yview[0]+672; //stay in place when screen scrolls obj_upper_window_Step_1 y=view_yview[0]+672; //stay in place when screen scrolls obj_score_Create_1 global.points = 0; obj_score_Draw_1 draw_set_color(c_red); draw_text(384,32,"score: "); draw_text(444,32,global.points); obj_dialog1_Draw_1 draw_set_color(c_lime); draw_text(0,695,"Hey! Welcome to our little recording studio"); obj_dialog2_Draw_1 draw_set_color(c_lime); draw_text(0,700,"As you can probably tell, I messed up my arm pretty bad."); obj_dialog3_Draw_1 draw_set_color(c_lime); draw_text(0,700,"I was hoping you might help me finish up this track I have been working on!"); obj_dialog4_Draw_1 draw_set_color(c_lime); draw_text(0,700,"Great, thanks man!");