File: berd_npc.cfg

package info (click to toggle)
frogatto-data 1.0-2
  • links: PTS, VCS
  • area: non-free
  • in suites: squeeze
  • size: 155,116 kB
  • sloc: makefile: 1
file content (67 lines) | stat: -rw-r--r-- 1,886 bytes parent folder | download
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
[object_prototype]
id="berd_npc"
on_become_active="if(animation != 'stand', die())"
on_create="animation('stand')"
on_end_fly_up_anim="animation('fly_up')"
on_end_stand_anim="[if(turn_to_face_player,set(facing, if(level.player.x < x, -1, 1))), animation('stand')]"
on_flap="set(velocity_y,-400)"
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="9,10,29,33"
solid_dimensions="npc"
zorder="-2"
	[animation]
	accel_y="80"
	collide="9,10,29,33"
	duplicates="3"
	duration="7"
	frame_info="6,4,2,2,787,0,28,30,6,5,2,2,815,0,28,29,6,6,2,2,843,0,28,28"
	frames="3"
	id="stand"
	image="compiled-2.png"
	interact_area="all"
	play_backwards="yes"
	rect="781,-4,816,31"
	reverse="yes"
	[/animation]

	[animation]
	accel_y="80"
	duration="7"
	frame_info="6,6,2,2,871,0,28,28,6,5,2,2,899,0,28,29,6,4,2,2,927,0,28,30"
	frames="3"
	id="stand"
	image="compiled-2.png"
	interact_area="all"
	rect="865,-6,900,29"
	reverse="yes"
	[/animation]

	[animation]
	accel_y="20"
	duration="3"
	events="1:13:flap"
	frame_info="7,5,11,1,159,683,29,39,1,6,1,6,188,683,45,33,0,7,0,16,233,683,47,22,5,1,4,15,280,683,38,29,0,7,0,16,318,683,47,22,1,6,0,8,365,683,46,31"
	frames="6"
	id="fly_up"
	image="compiled-1.png"
	interact_area="all"
	rect="152,678,198,722"
	velocity_x="300"
	[/animation]

	[animation]
	accel_y="60"
	duration="6"
	events="1:13:flap"
	frame_info="7,5,11,1,0,683,29,39,1,6,1,6,29,683,45,33,0,7,0,16,74,683,47,22,5,1,4,15,121,683,38,29"
	frames="4"
	id="fly_down"
	image="compiled-1.png"
	interact_area="all"
	rect="-7,678,39,722"
	[/animation]

[/object_prototype]