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
|
[object_type]
dies_on_inactive="yes"
id="water_bubble"
ignore_collide="true"
on_create="if(underwater, animation('normal' + 1d3), die())"
on_end_normal1_anim="[set(velocity_x, somevalue),animation('normal1')] where somevalue = 1d300 - 150"
on_end_normal2_anim="[set(velocity_x, somevalue),animation('normal2')] where somevalue = 1d300 - 150"
on_end_normal3_anim="[set(velocity_x, somevalue),animation('normal3')] where somevalue = 1d300 - 150"
on_exit_water="die()"
[animation]
duration="5"
frame_info="3,3,4,4,1006,111,6,6"
frames="1"
id="normal1"
image="compiled-0.png"
rect="1003,108,1015,120"
scale="2"
velocity_y="-200"
[/animation]
[animation]
duration="5"
frame_info="4,4,5,5,1020,581,4,4"
frames="1"
id="normal2"
image="compiled-0.png"
rect="1016,577,1028,589"
scale="2"
velocity_y="-200"
[/animation]
[animation]
duration="5"
frame_info="3,3,3,3,1016,958,7,7"
frames="1"
id="normal3"
image="compiled-1.png"
rect="1013,955,1025,967"
scale="2"
velocity_y="-200"
[/animation]
[/object_type]
|