Something went wrong. Try again.
A game I created in a few days based off a suggestion from Orteil's game generator using GameMaker Studio
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--><object> <spriteName><undefined></spriteName> <solid>0</solid> <visible>-1</visible> <depth>-1000000000</depth> <persistent>-1</persistent> <parentName><undefined></parentName> <maskName><undefined></maskName> <events> <event eventtype="0" enumb="0"> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Initializefor(var i = 6; i >= 0; i--) { state[i] = 0;}progress[0] = 0;cutscene = false;inikey = "";</string> </argument> </arguments> </action> </event> <event eventtype="3" enumb="0"> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Update characters' current dialogswitch(state[0]) { case S_BRADINSIDE: if(instance_exists(Brad)) { dialog_import("BradInside", Brad); } break; case S_STARTEDSOLVING: if(instance_exists(Brad)) { dialog_import("StartedSolvingBrad", Brad); } break; case S_FINISHEDSOLVING: if(instance_exists(Brad)) { dialog_import("FinishedSolvingBrad", Brad); } break;}if(instance_exists(Spirit0)) { dialog_import("Spirit0." + string(state[1]), Spirit0);}if(instance_exists(Spirit1)) { dialog_import("Spirit1." + string(state[2]), Spirit1);}if(instance_exists(Spirit2)) { dialog_import("Spirit2." + string(state[3]), Spirit2);}if(instance_exists(Spirit3)) { dialog_import("Spirit3." + string(state[4]), Spirit3);}if(instance_exists(Spirit4)) { dialog_import("Spirit4." + string(state[5]), Spirit4);}if(instance_exists(Spirit5)) { dialog_import("Spirit5." + string(state[6]), Spirit5);}</string> </argument> </arguments> </action> <action> <libid>1</libid> <id>603</id> <kind>7</kind> <userelative>0</userelative> <isquestion>0</isquestion> <useapplyto>-1</useapplyto> <exetype>2</exetype> <functionname></functionname> <codestring></codestring> <whoName>self</whoName> <relative>0</relative> <isnot>0</isnot> <arguments> <argument> <kind>1</kind> <string>///Do story eventsswitch(state[0]) { case S_BEGIN: switch(progress[0]) { case 0: if(room == rHome) { if(Controller.shake == 0) { dialog_import("Wakeup"); dialog_from_array(0, 1); progress[0] = 1; cutscene = false; } else cutscene = true; } break; case 1: if(instance_exists(Player)) { if(room == rOutside && Player.vdist == 0) { dialog_import("Intro"); dialog_from_array(0); cutscene = true; progress[0] = 2; } } break; case 2: if(instance_exists(Brad)) { if(Brad.x == Player.x - 32) { dialog_from_array(1, 3); progress[0]++; } } break; case 4: if(Brad.hdist == 0 && Brad.vdist == 0) { Brad.vdist = -32; Player.facing = LEFT; progress[0] = 5; } break; case 5: if(Brad.vdist == 0) { with(Brad) instance_destroy(); dialog_from_array(9); progress[0] = 0; state[0] = S_BRADINSIDE; cutscene = false; } break; } break; case S_BRADINSIDE: if( StoryController.state[1] == 3 || StoryController.state[2] == 4 || StoryController.state[3] == 4 || StoryController.state[4] == 3 || StoryController.state[5] == 3 || StoryController.state[6] == 4 ) { state[0] = S_STARTEDSOLVING; } break; case S_STARTEDSOLVING: if( StoryController.state[1] == 3 && StoryController.state[2] == 4 && StoryController.state[3] == 4 && StoryController.state[4] == 3 && StoryController.state[5] == 3 && StoryController.state[6] == 4 ) { dialog_import("StartedSolving"); dialog_from_array(0); state[0] = S_FINISHEDSOLVING; } break; case S_FINISHEDSOLVING: dialog_import("FinishedSolving"); switch(progress[0]) { case 1: if(Player.hdist == 0) { Brad.vdist = 7 * 32; progress[0] = 2; } break; case 2: if(Brad.vdist == 0) { Brad.hdist = 4 * 32; progress[0] = 3; } break; case 3: if(Brad.hdist == 0) { Brad.vdist = 5 * 32; progress[0] = 4; } break; case 4: if(Brad.vdist == 0) { with(Brad) instance_destroy(); dialog_from_array(0); progress[0] = 5; cutscene = false; } break; case 5: if(room == rOutside) { cutscene = true; progress[0] = 6; } break; case 6: if(instance_exists(Player)) { if(Player.vdist == 0) { dialog_from_array(1); progress[0] = 7; } } break; case 9: if(instance_exists(Brad)) { if(Brad.x < 0 && Brad.hdist == 0) { with(instance_create(0, 0, TransitionController)) { rm = rEnd; door = noone; } } } break; } break;}switch(state[1]) { case 1: if(inv_has("Stuffed Cat") != -1) { state[1] = 2; } break; case 3: if(room == rOutside) { if(tile_get_left(tile_layer_find(1000000, 256, 256)) != 192) { tile_set_region(tile_layer_find(1000000, 256, 256), 192, 128, 64, 64); dialog_import("SpiritTree.alive", instance_position(256, 256, SpiritTree)); } } break;}switch(state[2]) { case 1: if(inv_has("Key 1") != -1 && inv_has("Key 2") != -1 && inv_has("Key 3") != -1 && inv_has("Key 4") != -1) { state[2] = 2; } break; case 3: if(instance_exists(Spirit1)) { if(Spirit1.vdist == 0) { with(Spirit1) dialog_from_array(0); inv_subtract(inv_has("Key 1"), 1); inv_subtract(inv_has("Key 2"), 1); inv_subtract(inv_has("Key 3"), 1); inv_subtract(inv_has("Key 4"), 1); state[2] = 4; cutscene = false; } } break; case 4: if(room == rOutside) { if(tile_get_left(tile_layer_find(1000000, 224, 384)) != 192) { tile_set_region(tile_layer_find(1000000, 224, 384), 192, 128, 64, 64); dialog_import("SpiritTree.alive", instance_position(224, 384, SpiritTree)); } } break;}switch(state[3]) { case 1: if(inv_has("Ladder") != -1) { state[3] = 2; } break; case 3: if(cutscene) { if(Player.x == 512) { Player.facing = DOWN; inv_subtract(inv_has("Ladder"), 1); instance_create(512, 512, Bridge); with(Spirit2) dialog_from_array(0); state[3] = 4; cutscene = false; } } break; case 4: if(room == rOutside) { if(tile_get_left(tile_layer_find(1000000, 352, 512)) != 192) { tile_set_region(tile_layer_find(1000000, 352, 512), 192, 128, 64, 64); dialog_import("SpiritTree.alive", instance_position(352, 512, SpiritTree)); } } else if(room == rWater) { if(!instance_exists(Bridge)) { instance_create(512, 512, Bridge); } } break;}switch(state[4]) { case 1: if(inv_has("Fish") != -1) { state[4] = 2; } break; case 3: if(room == rOutside) { if(tile_get_left(tile_layer_find(1000000, 544, 480)) != 192) { tile_set_region(tile_layer_find(1000000, 544, 480), 192, 128, 64, 64); dialog_import("SpiritTree.alive", instance_position(544, 480, SpiritTree)); } } break;}switch(state[5]) { case 1: if(inv_has("Flower") != -1) { state[5] = 2; } break; case 3: if(room == rOutside) { if(tile_get_left(tile_layer_find(1000000, 672, 416)) != 192) { tile_set_region(tile_layer_find(1000000, 672, 416), 192, 128, 64, 64); dialog_import("SpiritTree.alive", instance_position(672, 416, SpiritTree)); } } break;}switch(state[6]) { case 1: if(inv_has("Stick") != -1) { state[6] = 2; } break; case 3: with(Spirit5) dialog_from_array(0, 1); state[6] = 4; break; case 4: if(room == rOutside) { if(tile_get_left(tile_layer_find(1000000, 640, 288)) != 192) { tile_set_region(tile_layer_find(1000000, 640, 288), 192, 128, 64, 64); dialog_import("SpiritTree.alive", instance_position(640, 288, SpiritTree)); } } break;}</string> </argument> </arguments> </action> </event> </events> <PhysicsObject>0</PhysicsObject> <PhysicsObjectSensor>0</PhysicsObjectSensor> <PhysicsObjectShape>0</PhysicsObjectShape> <PhysicsObjectDensity>0.5</PhysicsObjectDensity> <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution> <PhysicsObjectGroup>0</PhysicsObjectGroup> <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping> <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping> <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction> <PhysicsObjectAwake>-1</PhysicsObjectAwake> <PhysicsObjectKinematic>0</PhysicsObjectKinematic> <PhysicsShapePoints/></object>