File: button_giant.cfg

package info (click to toggle)
frogatto-data 1.2%2Bdfsg-1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy
  • size: 201,844 kB
  • sloc: python: 302; xml: 223; perl: 139; sh: 48; makefile: 13; ruby: 4
file content (37 lines) | stat: -rw-r--r-- 835 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
[object_type]
adjust_feet_on_animation_change="false"
always_active="yes"
has_feet="no"
id="button_giant"
on_create="spawn('button_giant.pad',midpoint_x, midpoint_y-40, facing)"
zorder="-3"
	[editor_info]
	category="keys_&_triggers"
	[/editor_info]

	[animation]
	frame_info="8,15,8,15,450,698,64,18"
	id="normal"
	image="compiled-2.png"
	rect="442,683,521,730"
	[/animation]

	[object_type]
	has_feet="no"
	id="pad"
	on_bounced_on="[fire_event('button_pressed')]"
	on_button_pressed="if(vars.triggered = 0,
								[set(velocity_y,200), schedule(10,[set(velocity_y,0), set(vars.triggered, 1), sound('switch.wav')])])"
	on_jumped_on="[fire_event('button_pressed')]"
	platform_area="18,7,62,8"
	zorder="-4"
		[animation]
		id="normal"
		image="props/button-giant.png"
		rect="0,0,79,47"
		[/animation]

	[/object_type]

[/object_type]