4
if(child.type = 'rope_platform', set(vars.platforms, vars.platforms + [child])),
5
if(child.type = 'wheel_rolling_shadow', set(vars.shadow, [child]))
9
range(vars.nplatforms),
10
spawn('rope_platform',x,y,facing)
12
spawn('wheel_rolling_shadow',midpoint_x-10,midpoint_y-4,facing, [set('zorder', zorder-2)])
15
if((cycle%inertia) = 0, set(vars.rotation_speed, vars.rotation_speed - if(vars.rotation_speed > 0, 1, if(vars.rotation_speed < 0, -1, 0)))),
19
if(level.player.standing_on = platform,
20
set(vars.rotation_speed, #vars.rotation_speed + #(platform.x - center_x)/vars.inertia)
23
set(rotate, rotate + vars.rotation_speed),
24
set(x, x + vars.rotation_speed * DISTANCE_PER_ANGLE),
25
if(x < vars.left_x, set(x, vars.left_x)),
26
if(x > vars.right_x, set(x, vars.right_x)),
27
map(vars.shadow, 'shadow', [
28
set(shadow.rotate, rotate),
31
map(vars.platforms, 'platform', [
33
set(platform.midpoint_x, context.midpoint_x + (wave((if(angle <= 180, angle, angle - vars.rotation_speed)*1000)/360 + 250)*PLATFORM_X_DISTANCE)/1000),
34
set(platform.midpoint_y, PLATFORM_Y_ADJUST + context.midpoint_y + (wave((if(angle <= 180, angle, angle - vars.rotation_speed)*1000)/360)*PLATFORM_X_DISTANCE)/1000)
36
] where angle = (rotate + (index*360/vars.nplatforms))%360
42
DISTANCE_PER_ANGLE="1"
43
PLATFORM_X_DISTANCE="72"
44
PLATFORM_Y_ADJUST="30"
54
center_x="x+CENTER_OFFSET"
58
frame_info="1,1,1,0,570,648,78,79"
60
image="compiled-0.png"
61
rect="569,647,648,726"