Something went wrong. Try again.
Bring back the colours and save the world!
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--><object> <spriteName>sTorch</spriteName> <solid>0</solid> <visible>-1</visible> <depth>2</depth> <persistent>0</persistent> <parentName>Lightbulb</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>///Initializelit = false;beenlit = false;timer = 3;frame = 0;angle = 10;image_speed = 0;smoke = ds_list_create();smokeTimer = 0;</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>///Create smokeif(lit) { if(Controller.colours[RED] && Controller.colours[BLACK]) { if(!--smokeTimer) { ds_list_insert(smoke, 0, irandom_range(-2, 2)); smokeTimer = 8; } while(ds_list_size(smoke) > 8) { ds_list_delete(smoke, 8); } }}</string> </argument> </arguments> </action> </event> <event eventtype="4" ename="Water"> <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>///Go outlit = false;</string> </argument> </arguments> </action> </event> <event eventtype="4" ename="Player"> <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>///Pick up the fireif(Mobile) { with(Controller) { virtual_key_delete(virt_key_down); virt_key_down = virtual_key_add(other.x - view_xview[0], other.y - view_yview[0], other.sprite_width, other.sprite_height, vk_down); }}if(input_check_pressed(I_ACTION)) { if(lit) { if(Controller.colours[RED]) { Player.fireTimer = room_speed * 8; } }}</string> </argument> </arguments> </action> </event> <event eventtype="7" enumb="5"> <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>///Destroy the smokeds_list_destroy(smoke);</string> </argument> </arguments> </action> </event> <event eventtype="8" enumb="64"> <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>///Draw the controls when touching the playerif(lit) { if(Controller.colours[RED]) { if(place_meeting(x, y, Player)) { angle = (angle + 8) % 360; if(background_color != c_white) { draw_set_color(c_white); } else { draw_set_color(c_black); } draw_set_font(fControls); draw_set_halign(fa_center); draw_text(x - view_xview[0], y - view_yview[0] - 32 + floor(sin(degtorad(angle)) * 5), DOWN_CHAR); draw_set_halign(fa_left); } }}</string> </argument> </arguments> </action> </event> <event eventtype="8" 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>///Draw self and fireif(Controller.colours[BROWN]) { image_blend = Controller.c_brown; if(background_color == Controller.c_brown) { image_blend = make_color_hsv(color_get_hue(Controller.c_brown), color_get_saturation(Controller.c_brown), color_get_value(Controller.c_brown) / 2); } }draw_self();if(lit) { if(Controller.colours[RED]) { if(!--timer) { frame = (frame + 1) % sprite_get_number(sFire); timer = 3; } draw_sprite(sFire, frame, x, y); draw_set_color(c_black); for(var i = 0; i < ds_list_size(smoke); i++) { if(i > 0) { draw_set_alpha(4 / (i * 8 + smokeTimer)); } else { draw_set_alpha((8 - smokeTimer) / 16); } draw_circle(x + smoke[| i] + i * 2, y - i * 8 + smokeTimer - 4, 2, false); } draw_set_alpha(1); event_inherited(); }}</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> <point>0,0</point> <point>16,16</point> </PhysicsShapePoints></object>