File: checkpoint_controller.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 (53 lines) | stat: -rw-r--r-- 849 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
[object_type]
id=checkpoint_controller
ignore_collide=true

on_create="set(alpha, 0)"
timer_frequency=10
on_timer="if(level.player.midpoint_x > vars.zone_x1 and level.player.midpoint_x < vars.zone_x2 and level.player.midpoint_y > vars.zone_y1 and level.player.midpoint_y < vars.zone_y2 and level.player.hitpoints > 0,
             [checkpoint_game(), die()])"

	[vars]
	zone_x1=0
	zone_x2=0
	zone_y1=0
	zone_y2=0
	[/vars]

	[editor_info]
	category=controllers
		[var]
		name=zone_x1
		type=x
		value="x-70"
		[/var]
		[var]
		name=zone_x2
		type=x
		value="x+130"
		[/var]
		[var]
		name=zone_y1
		type=y
		value="y-200"
		[/var]
		[var]
		name=zone_y2
		type=y
		value="y+200"
		[/var]
	[/editor_info]

	zorder=50
	[animation]
	id=normal
	image=effects/particles.png
	x=86
	y=11
	w=28
	h=28
	frames=1
	duration=100000
	[/animation]

[/object_type]