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
|
[object_prototype]
id="pato_npc"
on_create="animation('stand')"
on_end_stand_anim="[if(turn_to_face_player,set(facing, if(level.player.x < x, -1, 1))), animation('stand')]"
on_have_distance="[set(level.player.control_lock, ['ctrl_right']), schedule(2, fire_event('start_talking'))]"
on_interact="[set(level.zoom, 2), set(level.player.control_lock, ['ctrl_left']), set(level.player.tmp.running, 0), schedule(20, fire_event('have_distance'))]"
on_start_talking="[set(level.player.control_lock, null()), fire_event('talk'), set(level.zoom, 1)]"
solid_area="8,8,24,36"
solid_dimensions="npc"
zorder="-2"
[animation]
accel_x="0"
accel_y="80"
duration="6"
frame_info="2,6,3,3,482,902,36,32,2,7,3,3,518,902,36,31,2,8,2,3,554,902,37,30"
frames="3"
id="stand"
image="compiled-1.png"
interact_area="all"
rect="480,896,520,936"
reverse="yes"
[/animation]
[animation]
accel_x="1600"
accel_y="80"
duration="5"
frame_info="7,12,14,5,422,966,27,31,6,12,13,6,449,966,29,30,5,15,15,5,478,966,28,28"
frames="3"
id="walk"
image="compiled-1.png"
interact_area="all"
rect="415,954,462,1001"
reverse="yes"
solid_area="16,18,32,46"
[/animation]
[animation]
accel_x="0"
accel_y="80"
duration="5"
frame_info="6,6,7,1,979,145,20,27"
frames="1"
id="turn"
image="compiled-2.png"
interact_area="all"
rect="973,139,1005,172"
[/animation]
[animation]
accel_x="0"
accel_y="80"
frame_info="2,6,4,0,446,902,36,32"
id="portrait"
image="compiled-1.png"
interact_area="all"
rect="444,896,485,933"
scale="4"
[/animation]
[/object_prototype]
|