11
set_pos_len="def(pos, len) [set(vars.length, len), set(vars.start_pos, pos%5), fire_event(me, 'calculate_segments')]"
12
move_pos="def(amount) [set(vars.start_pos, (vars.start_pos+amount)%5), fire_event(me, 'calculate_segments')]"
14
set_x="def(new_x) [set(x, x + diff), fire_event('calculate_segments')]"
18
on_spawned="fire_event('calculate_segments')"
19
on_calculate_segments="set(draw_area, [vars.start_pos, 0, vars.length/2, 4])"
21
#we don't want to compile the image since we rely on it tiling.
22
no_compile_image="props/rope-horizontal.png"
25
image=props/rope-horizontal.png