Skip to content
This repository was archived by the owner on Sep 21, 2024. It is now read-only.

Commit ad87833

Browse files
Fixed pokey deactivation problems.
Fixed jumping out of quicksand.
1 parent f660b2d commit ad87833

File tree

3 files changed

+73
-9
lines changed

3 files changed

+73
-9
lines changed

objects/obj_pokey.object.gmx

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,41 @@ if offsetnext = 4
100100

101101
//Keep changing offset values
102102
alarm[0] = 10
103+
</string>
104+
</argument>
105+
</arguments>
106+
</action>
107+
</event>
108+
<event eventtype="3" enumb="1">
109+
<action>
110+
<libid>1</libid>
111+
<id>603</id>
112+
<kind>7</kind>
113+
<userelative>0</userelative>
114+
<isquestion>0</isquestion>
115+
<useapplyto>-1</useapplyto>
116+
<exetype>2</exetype>
117+
<functionname></functionname>
118+
<codestring></codestring>
119+
<whoName>self</whoName>
120+
<relative>0</relative>
121+
<isnot>0</isnot>
122+
<arguments>
123+
<argument>
124+
<kind>1</kind>
125+
<string>///Make sure pokey parts do not get lost
126+
if not instance_exists(mebelow)
127+
{
128+
var next = mebelow
129+
while next != noone
130+
{
131+
instance_activate_object(next)
132+
if instance_exists(next)
133+
next = next.mebelow
134+
else
135+
next = noone
136+
}
137+
}
103138
</string>
104139
</argument>
105140
</arguments>
@@ -152,10 +187,7 @@ if mebelow = noone
152187
else
153188
{
154189

155-
//Activate the below pokey
156-
instance_activate_object(mebelow)
157-
158-
//If it exist, snap to its position
190+
//If it exists, snap to its position
159191
if instance_exists(mebelow)
160192
{
161193
x = mebelow.x

objects/obj_pokey_green.object.gmx

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,41 @@ if offsetnext = 4
106106

107107
//Keep changing offset values
108108
alarm[0] = 10
109+
</string>
110+
</argument>
111+
</arguments>
112+
</action>
113+
</event>
114+
<event eventtype="3" enumb="1">
115+
<action>
116+
<libid>1</libid>
117+
<id>603</id>
118+
<kind>7</kind>
119+
<userelative>0</userelative>
120+
<isquestion>0</isquestion>
121+
<useapplyto>-1</useapplyto>
122+
<exetype>2</exetype>
123+
<functionname></functionname>
124+
<codestring></codestring>
125+
<whoName>self</whoName>
126+
<relative>0</relative>
127+
<isnot>0</isnot>
128+
<arguments>
129+
<argument>
130+
<kind>1</kind>
131+
<string>///Make sure pokey parts do not get lost
132+
if not instance_exists(mebelow)
133+
{
134+
var next = mebelow
135+
while next != noone
136+
{
137+
instance_activate_object(next)
138+
if instance_exists(next)
139+
next = next.mebelow
140+
else
141+
next = noone
142+
}
143+
}
109144
</string>
110145
</argument>
111146
</arguments>
@@ -169,10 +204,7 @@ if mebelow = noone
169204
else
170205
{
171206

172-
//Activate the below pokey
173-
instance_activate_object(mebelow)
174-
175-
//If it exist, snap to its position
207+
//If it exists, snap to its position
176208
if instance_exists(mebelow)
177209
{
178210
x = mebelow.x

objects/obj_quicksand.object.gmx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ and keyboard_check_pressed(vk_shift)
6969
audio_play_sound(snd_jump,0,0)
7070

7171
//Make Mario move upwards
72-
other.vspeed = -2.85
72+
other.vspeed = -3.85
7373

7474
//Enable variable jumping
7575
other.jumpnow = 1

0 commit comments

Comments
 (0)