forked from fachinformatiker/undertale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblt_topbone.object.gmx
110 lines (110 loc) · 3.39 KB
/
blt_topbone.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
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>spr_bonebottom</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>-1</depth>
<persistent>0</persistent>
<parentName>blt_sizebone</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>dmg= 6;
image_speed= 0;
blue= 0;
osc= 0;
oscmax= 20;
oscmin= 20;
drawn= 0;
active= 1;
captured= 0;
</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>l= 0;
t= 0;
w= sprite_width;
h= sprite_height;
ll= global.idealborder[0] - x + 1;
tt= global.idealborder[2] - y + 1;
ww= x + w - global.idealborder[1] - 1;
hh= y + h - global.idealborder[3] - 1;
if(ll > 0) l+= ll;
if(tt > 0) t+= tt;
if(ww > 0) w-= ww;
if(hh > 0) h-= hh;
w= round(w);
h= round(h);
l= round(l);
t= round(t);
if(w > 0 && h > 0 && l < w && t < h) {
if(blue == 1) image_index= 1;
draw_sprite_part(105, image_index, l, t, w - l, h - t, x + l, y + t);
draw_sprite_part(106, image_index, l, t, w - l, h - t, x + l, global.idealborder[2] + 6);
}
if(x > global.idealborder[0] - 5 && x < global.idealborder[1] - 4) {
drawn= 1;
draw_set_color(16777215);
if(blue == 1) draw_set_color(16754964);
draw_rectangle(x + 3, y, x + 9, global.idealborder[2] + 10, 0);
}
if(abs(obj_heart.x - x) < 15 && global.invc < 1 && collision_rectangle(x + 3, y, x + 9, global.idealborder[2] + 10, 743, 0, 1))
event_user(1);
if(x < global.idealborder[0] - 10 && hspeed < 0)
instance_destroy();
if(x > global.idealborder[1] + 10 && hspeed > 0)
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>