Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_box_hit_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 0)
2
{
3
    timer++;
4
    if (timer > 16 && image_index < 5)
5
        image_index += 0.5;
6
    if (timer == 18)
7
        snd_play(motor_upper_quick_mid);
8
    if (timer == 20)
9
    {
10
        con = 1;
11
        timer = 0;
12
        snd_play(snd_queen_punched_lower);
13
        
scr_shakeobj
scr_shakeobj

function
scr_shakeobj()
{ var _shakeobj = instance_create(x, y, obj_shakeobj); _shakeobj.target = id; if (argument_count >= 1) { if (i_ex(argument0)) _shakeobj.target = argument0; } if (argument_count >= 2) { if (argument1 != -1) _shakeobj.shakeamt = argument1; } if (argument_count >= 3) { if (argument2 != -1) _shakeobj.shakereduct = argument2; } with (_shakeobj) event_user(0); }
();
14
        var slowbullet1 = irandom(8);
15
        var slowbullet2 = slowbullet1 + 1;
16
        var slowbullet3 = slowbullet1 + 5;
17
        if (slowbullet3 > 8)
18
            slowbullet3 -= 10;
19
        var slowbullet4 = slowbullet3 + 1;
20
        var side_x = 80;
21
        var dir = 0;
22
        if (image_xscale > 0)
23
        {
24
            dir = 180;
25
            with (obj_growtangle)
26
            {
27
                shakeobj = instance_create(x, y, obj_shakedirectional);
28
                shakeobj.target = id;
29
                shakeobj.dir = 180;
30
            }
31
        }
32
        else
33
        {
34
            side_x = -80;
35
            with (obj_growtangle)
36
            {
37
                shakeobj = instance_create(x, y, obj_shakedirectional);
38
                shakeobj.target = id;
39
                shakeobj.dir = 0;
40
            }
41
        }
42
        var rand = choose(1, 2, 3, 4, 5, 6);
43
        if (rand == 0)
44
        {
45
            for (i = 0; i < 10; i++)
46
            {
47
                bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * i), obj_box_hit_bullet);
48
                with (bulletshot)
49
                    
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
50
                bulletshot.direction = dir;
51
                bulletshot.speed = 5.6 + random(2);
52
                bulletshot.friction = 0.14;
53
                bulletshot.depth = depth - 1;
54
                if (i == slowbullet1 || i == slowbullet2 || i == slowbullet3 || i == slowbullet4)
55
                {
56
                    bulletshot.speed = 2 + random(1.5);
57
                    bulletshot.friction = 0.08;
58
                }
59
            }
60
        }
61
        if (rand == 1)
62
        {
63
            var aa = 0;
64
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
65
            with (bulletshot)
66
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
67
            bulletshot.direction = dir;
68
            bulletshot.speed = 7.2;
69
            bulletshot.friction = 0.14;
70
            bulletshot.depth = depth - 1;
71
            aa++;
72
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
73
            with (bulletshot)
74
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
75
            bulletshot.direction = dir;
76
            bulletshot.speed = 6.8;
77
            bulletshot.friction = 0.14;
78
            bulletshot.depth = depth - 1;
79
            aa++;
80
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
81
            with (bulletshot)
82
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
83
            bulletshot.direction = dir;
84
            bulletshot.speed = 6.4;
85
            bulletshot.friction = 0.14;
86
            bulletshot.depth = depth - 1;
87
            aa++;
88
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
89
            with (bulletshot)
90
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
91
            bulletshot.direction = dir;
92
            bulletshot.speed = 6;
93
            bulletshot.friction = 0.14;
94
            bulletshot.depth = depth - 1;
95
            aa++;
96
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
97
            with (bulletshot)
98
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
99
            bulletshot.direction = dir;
100
            bulletshot.speed = 4.4;
101
            bulletshot.friction = 0.14;
102
            bulletshot.depth = depth - 1;
103
            aa++;
104
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
105
            with (bulletshot)
106
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
107
            bulletshot.direction = dir;
108
            bulletshot.speed = 4.4;
109
            bulletshot.friction = 0.14;
110
            bulletshot.depth = depth - 1;
111
            aa++;
112
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
113
            with (bulletshot)
114
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
115
            bulletshot.direction = dir;
116
            bulletshot.speed = 6;
117
            bulletshot.friction = 0.14;
118
            bulletshot.depth = depth - 1;
119
            aa++;
120
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
121
            with (bulletshot)
122
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
123
            bulletshot.direction = dir;
124
            bulletshot.speed = 6.4;
125
            bulletshot.friction = 0.14;
126
            bulletshot.depth = depth - 1;
127
            aa++;
128
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
129
            with (bulletshot)
130
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
131
            bulletshot.direction = dir;
132
            bulletshot.speed = 6.8;
133
            bulletshot.friction = 0.14;
134
            bulletshot.depth = depth - 1;
135
            aa++;
136
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
137
            with (bulletshot)
138
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
139
            bulletshot.direction = dir;
140
            bulletshot.speed = 7.2;
141
            bulletshot.friction = 0.14;
142
            bulletshot.depth = depth - 1;
143
            aa++;
144
        }
145
        if (rand == 2)
146
        {
147
            var aa = 0;
148
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
149
            with (bulletshot)
150
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
151
            bulletshot.direction = dir;
152
            bulletshot.speed = 4.8;
153
            bulletshot.friction = 0.14;
154
            bulletshot.depth = depth - 1;
155
            aa++;
156
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
157
            with (bulletshot)
158
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
159
            bulletshot.direction = dir;
160
            bulletshot.speed = 4.8;
161
            bulletshot.friction = 0.14;
162
            bulletshot.depth = depth - 1;
163
            aa++;
164
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
165
            with (bulletshot)
166
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
167
            bulletshot.direction = dir;
168
            bulletshot.speed = 4.8;
169
            bulletshot.friction = 0.14;
170
            bulletshot.depth = depth - 1;
171
            aa++;
172
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
173
            with (bulletshot)
174
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
175
            bulletshot.direction = dir;
176
            bulletshot.speed = 7;
177
            bulletshot.friction = 0.14;
178
            bulletshot.depth = depth - 1;
179
            aa++;
180
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
181
            with (bulletshot)
182
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
183
            bulletshot.direction = dir;
184
            bulletshot.speed = 7;
185
            bulletshot.friction = 0.14;
186
            bulletshot.depth = depth - 1;
187
            aa++;
188
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
189
            with (bulletshot)
190
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
191
            bulletshot.direction = dir;
192
            bulletshot.speed = 7;
193
            bulletshot.friction = 0.14;
194
            bulletshot.depth = depth - 1;
195
            aa++;
196
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
197
            with (bulletshot)
198
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
199
            bulletshot.direction = dir;
200
            bulletshot.speed = 7;
201
            bulletshot.friction = 0.14;
202
            bulletshot.depth = depth - 1;
203
            aa++;
204
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
205
            with (bulletshot)
206
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
207
            bulletshot.direction = dir;
208
            bulletshot.speed = 4.8;
209
            bulletshot.friction = 0.14;
210
            bulletshot.depth = depth - 1;
211
            aa++;
212
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
213
            with (bulletshot)
214
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
215
            bulletshot.direction = dir;
216
            bulletshot.speed = 4.8;
217
            bulletshot.friction = 0.14;
218
            bulletshot.depth = depth - 1;
219
            aa++;
220
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
221
            with (bulletshot)
222
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
223
            bulletshot.direction = dir;
224
            bulletshot.speed = 7;
225
            bulletshot.friction = 0.14;
226
            bulletshot.depth = depth - 1;
227
            aa++;
228
        }
229
        if (rand == 3)
230
        {
231
            var aa = 0;
232
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
233
            with (bulletshot)
234
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
235
            bulletshot.direction = dir;
236
            bulletshot.speed = 4.8;
237
            bulletshot.friction = 0.14;
238
            bulletshot.depth = depth - 1;
239
            aa++;
240
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
241
            with (bulletshot)
242
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
243
            bulletshot.direction = dir;
244
            bulletshot.speed = 4.8;
245
            bulletshot.friction = 0.14;
246
            bulletshot.depth = depth - 1;
247
            aa++;
248
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
249
            with (bulletshot)
250
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
251
            bulletshot.direction = dir;
252
            bulletshot.speed = 4.8;
253
            bulletshot.friction = 0.14;
254
            bulletshot.depth = depth - 1;
255
            aa++;
256
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
257
            with (bulletshot)
258
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
259
            bulletshot.direction = dir;
260
            bulletshot.speed = 7;
261
            bulletshot.friction = 0.14;
262
            bulletshot.depth = depth - 1;
263
            aa++;
264
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
265
            with (bulletshot)
266
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
267
            bulletshot.direction = dir;
268
            bulletshot.speed = 7;
269
            bulletshot.friction = 0.14;
270
            bulletshot.depth = depth - 1;
271
            aa++;
272
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
273
            with (bulletshot)
274
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
275
            bulletshot.direction = dir;
276
            bulletshot.speed = 7;
277
            bulletshot.friction = 0.14;
278
            bulletshot.depth = depth - 1;
279
            aa++;
280
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
281
            with (bulletshot)
282
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
283
            bulletshot.direction = dir;
284
            bulletshot.speed = 4.8;
285
            bulletshot.friction = 0.14;
286
            bulletshot.depth = depth - 1;
287
            aa++;
288
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
289
            with (bulletshot)
290
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
291
            bulletshot.direction = dir;
292
            bulletshot.speed = 4.8;
293
            bulletshot.friction = 0.14;
294
            bulletshot.depth = depth - 1;
295
            aa++;
296
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
297
            with (bulletshot)
298
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
299
            bulletshot.direction = dir;
300
            bulletshot.speed = 7.6;
301
            bulletshot.friction = 0.14;
302
            bulletshot.depth = depth - 1;
303
            aa++;
304
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
305
            with (bulletshot)
306
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
307
            bulletshot.direction = dir;
308
            bulletshot.speed = 7;
309
            bulletshot.friction = 0.14;
310
            bulletshot.depth = depth - 1;
311
            aa++;
312
        }
313
        if (rand == 4)
314
        {
315
            var aa = 0;
316
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
317
            with (bulletshot)
318
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
319
            bulletshot.direction = dir;
320
            bulletshot.speed = 7;
321
            bulletshot.friction = 0.14;
322
            bulletshot.depth = depth - 1;
323
            aa++;
324
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
325
            with (bulletshot)
326
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
327
            bulletshot.direction = dir;
328
            bulletshot.speed = 7;
329
            bulletshot.friction = 0.14;
330
            bulletshot.depth = depth - 1;
331
            aa++;
332
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
333
            with (bulletshot)
334
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
335
            bulletshot.direction = dir;
336
            bulletshot.speed = 7;
337
            bulletshot.friction = 0.14;
338
            bulletshot.depth = depth - 1;
339
            aa++;
340
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
341
            with (bulletshot)
342
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
343
            bulletshot.direction = dir;
344
            bulletshot.speed = 4.8;
345
            bulletshot.friction = 0.14;
346
            bulletshot.depth = depth - 1;
347
            aa++;
348
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
349
            with (bulletshot)
350
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
351
            bulletshot.direction = dir;
352
            bulletshot.speed = 4.8;
353
            bulletshot.friction = 0.14;
354
            bulletshot.depth = depth - 1;
355
            aa++;
356
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
357
            with (bulletshot)
358
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
359
            bulletshot.direction = dir;
360
            bulletshot.speed = 4.8;
361
            bulletshot.friction = 0.14;
362
            bulletshot.depth = depth - 1;
363
            aa++;
364
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
365
            with (bulletshot)
366
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
367
            bulletshot.direction = dir;
368
            bulletshot.speed = 4.8;
369
            bulletshot.friction = 0.14;
370
            bulletshot.depth = depth - 1;
371
            aa++;
372
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
373
            with (bulletshot)
374
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
375
            bulletshot.direction = dir;
376
            bulletshot.speed = 4.8;
377
            bulletshot.friction = 0.14;
378
            bulletshot.depth = depth - 1;
379
            aa++;
380
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
381
            with (bulletshot)
382
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
383
            bulletshot.direction = dir;
384
            bulletshot.speed = 7;
385
            bulletshot.friction = 0.14;
386
            bulletshot.depth = depth - 1;
387
            aa++;
388
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
389
            with (bulletshot)
390
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
391
            bulletshot.direction = dir;
392
            bulletshot.speed = 7;
393
            bulletshot.friction = 0.14;
394
            bulletshot.depth = depth - 1;
395
            aa++;
396
        }
397
        if (rand == 5)
398
        {
399
            var aa = 0;
400
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
401
            with (bulletshot)
402
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
403
            bulletshot.direction = dir;
404
            bulletshot.speed = 7;
405
            bulletshot.friction = 0.14;
406
            bulletshot.depth = depth - 1;
407
            aa++;
408
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
409
            with (bulletshot)
410
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
411
            bulletshot.direction = dir;
412
            bulletshot.speed = 7;
413
            bulletshot.friction = 0.14;
414
            bulletshot.depth = depth - 1;
415
            aa++;
416
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
417
            with (bulletshot)
418
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
419
            bulletshot.direction = dir;
420
            bulletshot.speed = 7;
421
            bulletshot.friction = 0.14;
422
            bulletshot.depth = depth - 1;
423
            aa++;
424
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
425
            with (bulletshot)
426
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
427
            bulletshot.direction = dir;
428
            bulletshot.speed = 4.8;
429
            bulletshot.friction = 0.14;
430
            bulletshot.depth = depth - 1;
431
            aa++;
432
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
433
            with (bulletshot)
434
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
435
            bulletshot.direction = dir;
436
            bulletshot.speed = 4.8;
437
            bulletshot.friction = 0.14;
438
            bulletshot.depth = depth - 1;
439
            aa++;
440
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
441
            with (bulletshot)
442
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
443
            bulletshot.direction = dir;
444
            bulletshot.speed = 4.8;
445
            bulletshot.friction = 0.14;
446
            bulletshot.depth = depth - 1;
447
            aa++;
448
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
449
            with (bulletshot)
450
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
451
            bulletshot.direction = dir;
452
            bulletshot.speed = 4.8;
453
            bulletshot.friction = 0.14;
454
            bulletshot.depth = depth - 1;
455
            aa++;
456
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
457
            with (bulletshot)
458
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
459
            bulletshot.direction = dir;
460
            bulletshot.speed = 6.2;
461
            bulletshot.friction = 0.14;
462
            bulletshot.depth = depth - 1;
463
            aa++;
464
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
465
            with (bulletshot)
466
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
467
            bulletshot.direction = dir;
468
            bulletshot.speed = 6.2;
469
            bulletshot.friction = 0.14;
470
            bulletshot.depth = depth - 1;
471
            aa++;
472
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
473
            with (bulletshot)
474
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
475
            bulletshot.direction = dir;
476
            bulletshot.speed = 7;
477
            bulletshot.friction = 0.14;
478
            bulletshot.depth = depth - 1;
479
            aa++;
480
        }
481
        if (rand == 6)
482
        {
483
            var aa = 0;
484
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
485
            with (bulletshot)
486
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
487
            bulletshot.direction = dir;
488
            bulletshot.speed = 4.6;
489
            bulletshot.friction = 0.14;
490
            bulletshot.depth = depth - 1;
491
            aa++;
492
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
493
            with (bulletshot)
494
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
495
            bulletshot.direction = dir;
496
            bulletshot.speed = 4;
497
            bulletshot.friction = 0.14;
498
            bulletshot.depth = depth - 1;
499
            aa++;
500
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
501
            with (bulletshot)
502
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
503
            bulletshot.direction = dir;
504
            bulletshot.speed = 3.4;
505
            bulletshot.friction = 0.14;
506
            bulletshot.depth = depth - 1;
507
            aa++;
508
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
509
            with (bulletshot)
510
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
511
            bulletshot.direction = dir;
512
            bulletshot.speed = 5.4;
513
            bulletshot.friction = 0.14;
514
            bulletshot.depth = depth - 1;
515
            aa++;
516
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
517
            with (bulletshot)
518
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
519
            bulletshot.direction = dir;
520
            bulletshot.speed = 5.5;
521
            bulletshot.friction = 0.14;
522
            bulletshot.depth = depth - 1;
523
            aa++;
524
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
525
            with (bulletshot)
526
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
527
            bulletshot.direction = dir;
528
            bulletshot.speed = 5.6;
529
            bulletshot.friction = 0.14;
530
            bulletshot.depth = depth - 1;
531
            aa++;
532
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
533
            with (bulletshot)
534
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
535
            bulletshot.direction = dir;
536
            bulletshot.speed = 6;
537
            bulletshot.friction = 0.14;
538
            bulletshot.depth = depth - 1;
539
            aa++;
540
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
541
            with (bulletshot)
542
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
543
            bulletshot.direction = dir;
544
            bulletshot.speed = 6.4;
545
            bulletshot.friction = 0.14;
546
            bulletshot.depth = depth - 1;
547
            aa++;
548
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
549
            with (bulletshot)
550
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
551
            bulletshot.direction = dir;
552
            bulletshot.speed = 6.8;
553
            bulletshot.friction = 0.14;
554
            bulletshot.depth = depth - 1;
555
            aa++;
556
            bulletshot = instance_create(obj_growtangle.x + side_x, (obj_growtangle.y - 70) + (15 * aa), obj_box_hit_bullet);
557
            with (bulletshot)
558
                
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
559
            bulletshot.direction = dir;
560
            bulletshot.speed = 7.2;
561
            bulletshot.friction = 0.14;
562
            bulletshot.depth = depth - 1;
563
            aa++;
564
        }
565
    }
566
}
567
if (con == 1)
568
{
569
    timer++;
570
    if (timer == 6)
571
    {
572
        timer = 0;
573
        con = 2;
574
    }
575
}
576
if (con == 2)
577
{
578
    timer++;
579
    if (timer == 1)
580
    {
581
        if (image_xscale == -2)
582
            instance_create(x - 60, y + 20, obj_gerson_teleport);
583
        else
584
            instance_create(x + 60, y + 20, obj_gerson_teleport);
585
        instance_destroy();
586
    }
587
}