File: retracting_block.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 (63 lines) | stat: -rw-r--r-- 1,161 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

	[object_type]
	id=retracting_block

	[editor_info]
	category=props
		[var]
		name=time_offset
		value="0"
		[/var]
	[/editor_info]


	has_feet=no
	on_create="[animation('retracted'), set(time_in_animation,time_offset)]"
	on_end_retracted_anim="animation('extending')"
	on_end_extending_anim="animation('extended')"
	on_end_retracting_anim="animation('retracted')"
	on_change_animation_failure="animation(previous_animation)"
	zorder=-2

	solid_dimensions=player,common
	solid_area=8,15,7,15
		[animation]
		id=retracted
		image=props/retracting-blocks.png
		rect=64,12,79,29
		frames=1
		duration=200
		[/animation]

		[animation]
		id=retracting
		image=props/retracting-blocks.png
		rect=16,12,31,29
		collide=0,0,15,15
		frames=3
		duration=10
		solid_area=0,0,15,15
		play_backwards=true
		[/animation]
		
		[animation]
		id=extending
		image=props/retracting-blocks.png
		rect=16,12,31,29
		collide=0,0,15,15
		frames=3
		duration=8
		solid_area=0,0,15,15
		[/animation]

		[animation]
		id=extended
		image=props/retracting-blocks.png
		rect=0,12,15,29
		collide=0,0,15,15
		frames=1
		duration=40
		solid_area=0,0,15,15
		[/animation]

	[/object_type]