forked from fachinformatiker/undertale
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobj_mettanchor.object.gmx
112 lines (112 loc) · 3.21 KB
/
obj_mettanchor.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
112
<!--This Document is generated by GameMaker, if you edit it by hand then you do so at your own risk!-->
<object>
<spriteName>spr_mettanchor_shufflepaper</spriteName>
<solid>0</solid>
<visible>-1</visible>
<depth>0</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>mysprite[0]= 1764;
mysprite[1]= 1761;
mysprite[2]= 1762;
mysprite[3]= 1759;
mysprite[4]= 1763;
mysprite[5]= 1765;
mysprite[6]= 1757;
mysprite[7]= 1760;
mysprite[8]= 1758;
j= 0;
stayx= xstart - view_xview[0];
stayy= ystart - view_yview[0];
on= 1;
image_speed= 0.2;
thischara= 1570;
siner= 0;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="3" enumb="2">
<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>if(global.flag[20] <= 9 && global.flag[20] > 0) j= global.flag[20];
sprite_index= mysprite[j - 1];
if(!instance_exists(184/* obj_shaker */) && on == 1) {
view_xview[0]= round(obj_mainchara.x - view_wview[0] / 2 + 10);
view_yview[0]= round(obj_mainchara.y - view_hview[0] / 2 + 10);
if(view_yview[0] <= 0) view_yview[0]= 0;
}
if(on == 1) {
x= view_xview[0] + stayx;
y= view_yview[0] + stayy;
}
if(on == 2) {
adjust= 0;
if(x > view_xview[0] + view_wview[0] - 50) {
x-= 4;
adjust= 1;
}
if(y > view_yview[0] + view_hview[0] - 80) {
y-= 4;
adjust= 1;
}
if(adjust == 0) {
siner++;
x+= cos(siner / 2) * 0.5;
y+= sin(siner / 6);
}
}
if(view_yview[0] <= 0) view_yview[0]= 0;
</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>