|
1 | | -<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> |
2 | | -<object> |
3 | | - <spriteName>spr_qblock_large</spriteName> |
4 | | - <solid>0</solid> |
5 | | - <visible>-1</visible> |
6 | | - <depth>1</depth> |
7 | | - <persistent>0</persistent> |
8 | | - <parentName>obj_blockparent</parentName> |
9 | | - <maskName><undefined></maskName> |
10 | | - <events> |
11 | | - <event eventtype="0" enumb="0"> |
12 | | - <action> |
13 | | - <libid>1</libid> |
14 | | - <id>603</id> |
15 | | - <kind>7</kind> |
16 | | - <userelative>0</userelative> |
17 | | - <isquestion>0</isquestion> |
18 | | - <useapplyto>-1</useapplyto> |
19 | | - <exetype>2</exetype> |
20 | | - <functionname></functionname> |
21 | | - <codestring></codestring> |
22 | | - <whoName>self</whoName> |
23 | | - <relative>0</relative> |
24 | | - <isnot>0</isnot> |
25 | | - <arguments> |
26 | | - <argument> |
27 | | - <kind>1</kind> |
28 | | - <string>///Large 1up block |
29 | | - |
30 | | -//Do not animate |
31 | | -image_speed = 0 |
32 | | - |
33 | | -//Whether this block can be hit |
34 | | -ready = 0 |
35 | | - |
36 | | -//Create a large solid |
37 | | -mysolid = instance_create(x,y,obj_solid) |
38 | | -mysolid.image_xscale = 2 |
39 | | -mysolid.image_yscale = 2 |
40 | | -</string> |
41 | | - </argument> |
42 | | - </arguments> |
43 | | - </action> |
44 | | - </event> |
45 | | - <event eventtype="2" enumb="2"> |
46 | | - <action> |
47 | | - <libid>1</libid> |
48 | | - <id>603</id> |
49 | | - <kind>7</kind> |
50 | | - <userelative>0</userelative> |
51 | | - <isquestion>0</isquestion> |
52 | | - <useapplyto>-1</useapplyto> |
53 | | - <exetype>2</exetype> |
54 | | - <functionname></functionname> |
55 | | - <codestring></codestring> |
56 | | - <whoName>self</whoName> |
57 | | - <relative>0</relative> |
58 | | - <isnot>0</isnot> |
59 | | - <arguments> |
60 | | - <argument> |
61 | | - <kind>1</kind> |
62 | | - <string>///Make three bouncy 1ups |
63 | | -if ready < 4 |
64 | | -{ |
65 | | - ready++ |
66 | | - with instance_create(x+8,y,obj_powerupsprout) |
67 | | - { |
68 | | - sprite_index = spr_1up |
69 | | - bounce = 1 |
70 | | - } |
71 | | - alarm[2] = 48 |
72 | | -} |
73 | | -</string> |
74 | | - </argument> |
75 | | - </arguments> |
76 | | - </action> |
77 | | - </event> |
78 | | - <event eventtype="2" enumb="1"> |
79 | | - <action> |
80 | | - <libid>1</libid> |
81 | | - <id>603</id> |
82 | | - <kind>7</kind> |
83 | | - <userelative>0</userelative> |
84 | | - <isquestion>0</isquestion> |
85 | | - <useapplyto>-1</useapplyto> |
86 | | - <exetype>2</exetype> |
87 | | - <functionname></functionname> |
88 | | - <codestring></codestring> |
89 | | - <whoName>self</whoName> |
90 | | - <relative>0</relative> |
91 | | - <isnot>0</isnot> |
92 | | - <arguments> |
93 | | - <argument> |
94 | | - <kind>1</kind> |
95 | | - <string>///Finish block bump |
96 | | -vspeed = 0 |
97 | | -y = ystart |
98 | | - |
99 | | -//Make the block look empty |
100 | | -image_index = 1 |
101 | | - |
102 | | -//Create three 1ups |
103 | | -alarm[2] = 1 |
104 | | -</string> |
105 | | - </argument> |
106 | | - </arguments> |
107 | | - </action> |
108 | | - </event> |
109 | | - <event eventtype="7" enumb="10"> |
110 | | - <action> |
111 | | - <libid>1</libid> |
112 | | - <id>603</id> |
113 | | - <kind>7</kind> |
114 | | - <userelative>0</userelative> |
115 | | - <isquestion>0</isquestion> |
116 | | - <useapplyto>-1</useapplyto> |
117 | | - <exetype>2</exetype> |
118 | | - <functionname></functionname> |
119 | | - <codestring></codestring> |
120 | | - <whoName>self</whoName> |
121 | | - <relative>0</relative> |
122 | | - <isnot>0</isnot> |
123 | | - <arguments> |
124 | | - <argument> |
125 | | - <kind>1</kind> |
126 | | - <string>///Play the thwomp sound |
127 | | -audio_play_sound(snd_thwomp,0,0) |
128 | | -</string> |
129 | | - </argument> |
130 | | - </arguments> |
131 | | - </action> |
132 | | - </event> |
133 | | - </events> |
134 | | - <PhysicsObject>0</PhysicsObject> |
135 | | - <PhysicsObjectSensor>0</PhysicsObjectSensor> |
136 | | - <PhysicsObjectShape>0</PhysicsObjectShape> |
137 | | - <PhysicsObjectDensity>0.5</PhysicsObjectDensity> |
138 | | - <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution> |
139 | | - <PhysicsObjectGroup>0</PhysicsObjectGroup> |
140 | | - <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping> |
141 | | - <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping> |
142 | | - <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction> |
143 | | - <PhysicsObjectAwake>-1</PhysicsObjectAwake> |
144 | | - <PhysicsObjectKinematic>0</PhysicsObjectKinematic> |
145 | | - <PhysicsShapePoints> |
146 | | - <point>0,0</point> |
147 | | - <point>16,16</point> |
148 | | - </PhysicsShapePoints> |
149 | | -</object> |
| 1 | +<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!--> |
| 2 | +<object> |
| 3 | + <spriteName>spr_qblock_large</spriteName> |
| 4 | + <solid>0</solid> |
| 5 | + <visible>-1</visible> |
| 6 | + <depth>1</depth> |
| 7 | + <persistent>0</persistent> |
| 8 | + <parentName>obj_blockparent</parentName> |
| 9 | + <maskName><undefined></maskName> |
| 10 | + <events> |
| 11 | + <event eventtype="0" enumb="0"> |
| 12 | + <action> |
| 13 | + <libid>1</libid> |
| 14 | + <id>603</id> |
| 15 | + <kind>7</kind> |
| 16 | + <userelative>0</userelative> |
| 17 | + <isquestion>0</isquestion> |
| 18 | + <useapplyto>-1</useapplyto> |
| 19 | + <exetype>2</exetype> |
| 20 | + <functionname></functionname> |
| 21 | + <codestring></codestring> |
| 22 | + <whoName>self</whoName> |
| 23 | + <relative>0</relative> |
| 24 | + <isnot>0</isnot> |
| 25 | + <arguments> |
| 26 | + <argument> |
| 27 | + <kind>1</kind> |
| 28 | + <string>///Large Question Mark Block |
| 29 | + |
| 30 | +/* |
| 31 | +** This item uses creation code! |
| 32 | +** |
| 33 | +** sprout = Pick from below: |
| 34 | +** cs_big |
| 35 | +** cs_fire |
| 36 | +** cs_hammer |
| 37 | +** cs_leaf |
| 38 | +** cs_tanooki |
| 39 | +** cs_frog |
| 40 | +** cs_bomb |
| 41 | +** cs_ice |
| 42 | +** cs_super |
| 43 | +** cs_carrot |
| 44 | +** cs_ninja |
| 45 | +** cs_bee |
| 46 | +** cs_shell |
| 47 | +** cs_penguin |
| 48 | +** cs_propeller |
| 49 | +** cs_boomerang |
| 50 | +** cs_walljump |
| 51 | +** cs_squirrel |
| 52 | +** cs_cloud |
| 53 | +** cs_rock |
| 54 | +** cs_pyre |
| 55 | +** cs_swooper |
| 56 | +** cs_karate |
| 57 | +** cs_crown |
| 58 | +** cs_greenyoshi |
| 59 | +** cs_redyoshi |
| 60 | +** cs_yellowyoshi |
| 61 | +** cs_blueyoshi |
| 62 | +** cs_kuriboshoe |
| 63 | +** cs_baburushoe |
| 64 | +** cs_dossunshoe |
| 65 | +** cs_jugemushoe |
| 66 | +** cs_1up |
| 67 | +** cs_3up |
| 68 | +** cs_poison |
| 69 | +** cs_star |
| 70 | +** cs_key |
| 71 | +** cs_spring |
| 72 | +** cs_superspring |
| 73 | +** cs_pswitch |
| 74 | +** cs_eswitch |
| 75 | +** cs_propellerblock |
| 76 | +** cs_beanstalk |
| 77 | +** |
| 78 | +*/ |
| 79 | + |
| 80 | +//Default Value: |
| 81 | +sprout = cs_coin |
| 82 | + |
| 83 | +//Do not animate |
| 84 | +image_speed = 0 |
| 85 | + |
| 86 | +//Whether this block can be hit |
| 87 | +ready = 0 |
| 88 | + |
| 89 | +//Create a large solid |
| 90 | +mysolid = instance_create(x,y,obj_solid) |
| 91 | +mysolid.image_xscale = 2 |
| 92 | +mysolid.image_yscale = 2 |
| 93 | +</string> |
| 94 | + </argument> |
| 95 | + </arguments> |
| 96 | + </action> |
| 97 | + </event> |
| 98 | + <event eventtype="2" enumb="2"> |
| 99 | + <action> |
| 100 | + <libid>1</libid> |
| 101 | + <id>603</id> |
| 102 | + <kind>7</kind> |
| 103 | + <userelative>0</userelative> |
| 104 | + <isquestion>0</isquestion> |
| 105 | + <useapplyto>-1</useapplyto> |
| 106 | + <exetype>2</exetype> |
| 107 | + <functionname></functionname> |
| 108 | + <codestring></codestring> |
| 109 | + <whoName>self</whoName> |
| 110 | + <relative>0</relative> |
| 111 | + <isnot>0</isnot> |
| 112 | + <arguments> |
| 113 | + <argument> |
| 114 | + <kind>1</kind> |
| 115 | + <string>///Make up to three bouncy items |
| 116 | +if ready < 4 |
| 117 | +{ |
| 118 | + ready++ |
| 119 | + with instance_create(x+8,y,obj_powerupsprout) |
| 120 | + { |
| 121 | + sprite_index = scr_constant_get_sprite(other.sprout) |
| 122 | + bounce = 1 |
| 123 | + } |
| 124 | + alarm[2] = 48 |
| 125 | +} |
| 126 | +</string> |
| 127 | + </argument> |
| 128 | + </arguments> |
| 129 | + </action> |
| 130 | + </event> |
| 131 | + <event eventtype="2" enumb="1"> |
| 132 | + <action> |
| 133 | + <libid>1</libid> |
| 134 | + <id>603</id> |
| 135 | + <kind>7</kind> |
| 136 | + <userelative>0</userelative> |
| 137 | + <isquestion>0</isquestion> |
| 138 | + <useapplyto>-1</useapplyto> |
| 139 | + <exetype>2</exetype> |
| 140 | + <functionname></functionname> |
| 141 | + <codestring></codestring> |
| 142 | + <whoName>self</whoName> |
| 143 | + <relative>0</relative> |
| 144 | + <isnot>0</isnot> |
| 145 | + <arguments> |
| 146 | + <argument> |
| 147 | + <kind>1</kind> |
| 148 | + <string>///Finish block bump |
| 149 | +vspeed = 0 |
| 150 | +y = ystart |
| 151 | + |
| 152 | +//Make an item come out, if there is one |
| 153 | +if sprout != cs_coin |
| 154 | +{ |
| 155 | + |
| 156 | + //Only create one item instead of three, except for these |
| 157 | + if sprout != cs_big |
| 158 | + and sprout != cs_1up |
| 159 | + and sprout != cs_poison |
| 160 | + and sprout != cs_star |
| 161 | + ready = 3 |
| 162 | + |
| 163 | + //Make bouncy item(s) |
| 164 | + alarm[2] = 1 |
| 165 | + |
| 166 | +} |
| 167 | + |
| 168 | +//Make the block look empty |
| 169 | +image_index = 1 |
| 170 | + |
| 171 | +//Create three 1ups |
| 172 | +alarm[2] = 1 |
| 173 | +</string> |
| 174 | + </argument> |
| 175 | + </arguments> |
| 176 | + </action> |
| 177 | + </event> |
| 178 | + <event eventtype="7" enumb="10"> |
| 179 | + <action> |
| 180 | + <libid>1</libid> |
| 181 | + <id>603</id> |
| 182 | + <kind>7</kind> |
| 183 | + <userelative>0</userelative> |
| 184 | + <isquestion>0</isquestion> |
| 185 | + <useapplyto>-1</useapplyto> |
| 186 | + <exetype>2</exetype> |
| 187 | + <functionname></functionname> |
| 188 | + <codestring></codestring> |
| 189 | + <whoName>self</whoName> |
| 190 | + <relative>0</relative> |
| 191 | + <isnot>0</isnot> |
| 192 | + <arguments> |
| 193 | + <argument> |
| 194 | + <kind>1</kind> |
| 195 | + <string>///Play the thwomp sound |
| 196 | +audio_play_sound(snd_thwomp,0,0) |
| 197 | + |
| 198 | +//Make a coin come out if this is a coin block |
| 199 | +if sprout = cs_coin |
| 200 | + instance_create(x+8,y,obj_blockcoin) |
| 201 | +</string> |
| 202 | + </argument> |
| 203 | + </arguments> |
| 204 | + </action> |
| 205 | + </event> |
| 206 | + </events> |
| 207 | + <PhysicsObject>0</PhysicsObject> |
| 208 | + <PhysicsObjectSensor>0</PhysicsObjectSensor> |
| 209 | + <PhysicsObjectShape>0</PhysicsObjectShape> |
| 210 | + <PhysicsObjectDensity>0.5</PhysicsObjectDensity> |
| 211 | + <PhysicsObjectRestitution>0.100000001490116</PhysicsObjectRestitution> |
| 212 | + <PhysicsObjectGroup>0</PhysicsObjectGroup> |
| 213 | + <PhysicsObjectLinearDamping>0.100000001490116</PhysicsObjectLinearDamping> |
| 214 | + <PhysicsObjectAngularDamping>0.100000001490116</PhysicsObjectAngularDamping> |
| 215 | + <PhysicsObjectFriction>0.200000002980232</PhysicsObjectFriction> |
| 216 | + <PhysicsObjectAwake>-1</PhysicsObjectAwake> |
| 217 | + <PhysicsObjectKinematic>0</PhysicsObjectKinematic> |
| 218 | + <PhysicsShapePoints> |
| 219 | + <point>0,0</point> |
| 220 | + <point>16,16</point> |
| 221 | + </PhysicsShapePoints> |
| 222 | +</object> |
0 commit comments