~ubuntu-branches/ubuntu/utopic/frogatto-data/utopic

« back to all changes in this revision

Viewing changes to data/objects/props-interactive/pressure_plate.cfg

  • Committer: Bazaar Package Importer
  • Author(s): Dmitry E. Oboukhov
  • Date: 2010-07-16 12:14:11 UTC
  • Revision ID: james.westby@ubuntu.com-20100716121411-tobhfbyxrrz46dwz
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[object_type]
 
2
        id=pressure_plate
 
3
        zorder=10
 
4
        solid_area=2,3,42,7
 
5
 
 
6
        [editor_info]
 
7
        category=props
 
8
                [var]
 
9
                name=linked_object
 
10
                type=label
 
11
                [/var]
 
12
        [/editor_info]
 
13
 
 
14
        [vars]
 
15
        objects_standing_on="[]"
 
16
        linked_object="''"
 
17
        [/vars]
 
18
 
 
19
        on_enter_pushed_anim="if(get_object(level, linked_object), fire_event(get_object(level, linked_object), 'button_pressed'))"
 
20
        on_leave_pushed_anim="if(get_object(level, linked_object), fire_event(get_object(level, linked_object), 'button_released'))"
 
21
        
 
22
        on_jumped_on="[animation('pushed'),
 
23
                       set(vars.objects_standing_on, vars.objects_standing_on + [jumped_on_by])]"
 
24
        
 
25
        on_process_pushed="[set(vars.objects_standing_on, filter(vars.objects_standing_on, 'obj', obj.standing_on = context.me and (not obj.destroyed) and (not obj.vars.removed_from_play))), if(vars.objects_standing_on.size = 0, animation('normal'))]"
 
26
        
 
27
                [animation]
 
28
                id=normal
 
29
                image=props/interactive-props.png
 
30
                rect=1,120,46,127
 
31
                accel_y=100
 
32
                [/animation]
 
33
                
 
34
                [animation]
 
35
                id=pushed
 
36
                image=props/interactive-props.png
 
37
                rect=49,120,94,127
 
38
                accel_y=100
 
39
                [/animation]
 
40
[/object_type]