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
|
[object_type]
friction="5"
hitpoints="1"
id="wartfly"
mass="5"
on_collide="[facing(-facing), animation('turn')]"
on_create="set_var('base_y', y)"
on_die="[score(level,20), spawn_item(me), spawn('die_cloud', midpoint_x, midpoint_y, facing)]"
on_end_anim="[if(facing < 0 and x < vars.x_bound or
facing > 0 and x2 > vars.x2_bound,
[facing(-facing), animation('turn')],
animation('fly'))]"
on_hit_by_player="die()"
on_jumped_on="animation('spring')"
on_process="[if(solid(level, front + facing*50, y, 1, y2 - y),
[facing(-facing), animation('turn')], null()),
set(y, vars.base_y + (wave(cycle*5+1000)/15))]"
springiness="100"
[animation]
accel_x="20"
collide_h="16"
collide_w="28"
collide_x="2"
collide_y="12"
duplicates="12"
duration="6"
feet_x="10"
feet_y="18"
frame_info="3,8,2,4,0,302,26,19,7,7,2,1,26,302,22,23"
frames="2"
id="fly"
image="compiled-2.png"
rect="-3,294,27,324"
[/animation]
[animation]
accel_x="20"
collide_h="16"
collide_w="28"
collide_x="2"
collide_y="12"
duration="6"
feet_x="10"
feet_y="18"
frame_info="3,8,2,4,940,277,26,19,7,7,2,1,966,277,22,23"
frames="2"
id="fly"
image="compiled-2.png"
rect="937,269,967,299"
reverse="yes"
[/animation]
[animation]
collide_h="16"
collide_w="28"
collide_x="2"
collide_y="12"
duration="3"
feet_x="10"
feet_y="18"
frame_info="3,8,2,4,230,348,26,19,0,9,2,4,256,348,29,18,0,12,1,4,285,348,30,15,3,8,2,4,315,348,26,19,5,6,3,4,341,348,23,21"
frames="5"
id="spring"
image="compiled-2.png"
rect="227,340,257,370"
[/animation]
[animation]
collide_h="16"
collide_w="28"
collide_x="2"
collide_y="12"
duration="10"
feet_x="10"
feet_y="18"
frame_info="5,9,5,4,995,369,21,18"
frames="1"
id="turn"
image="compiled-2.png"
rect="990,360,1020,390"
[/animation]
[/object_type]
|