forked from fachinformatiker/undertale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobj_barriercut.object.gmx
111 lines (111 loc) · 3.28 KB
/
obj_barriercut.object.gmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!--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>-6</depth>
<persistent>0</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>shaken= 0;
bx= 0;
bx2= 0;
bxspeed= 4;
timer= 0;
image_speed= 0;
shaker= 10;
b_al= 1;
sfx1= caster_load("music/sfx/sfx_abreak.ogg");
sfx2= caster_load("music/sfx/sfx_abreak2.ogg");
caster_play(sfx1, 0.8, 0.95);
</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>shkx= shaker * choose(1, -1);
shky= shaker * choose(1, -1);
if(shaker > 0) shaker--;
draw_set_color(0);
draw_set_alpha(b_al);
draw_rectangle(-10, -10, 999, 999, 0);
draw_set_alpha(1);
draw_sprite_ext(2405/* spr_barriercut */, 0, -bx + shkx, y + shky, 1, 1, 0, 16777215, 1);
draw_sprite_ext(2405/* spr_barriercut */, 1, bx + shkx, y + shky, 1, 1, 0, 16777215, 1);
timer++;
if(timer == 60) caster_play(sfx2, 0.8, 0.95);
if(timer >= 60) {
bx+= bxspeed;
bxspeed+= 2;
}
if(timer == 110) {
global.msc= 0;
global.typer= 21;
global.facechoice= 0;
global.faceemotion= 0;
global.msg[0]= "The barrier was&destroyed^7.%%";
instance_create(50, 50, 782/* OBJ_WRITER */);
}
if(timer == 310 && instance_exists(1684/* obj_asriel_overworldanim */)) {
obj_asriel_overworldanim.powered= 0;
obj_asriel_overworldanim.con= 20;
}
if(timer >= 310) b_al-= 0.02;
if(timer >= 370) {
caster_free(-3);
instance_destroy();
}
</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>