NED
Well-known member
For some chair obstacle.
I have this problem in mind for some time now.
When the obstacle is hit, it slide out of screen (just like usual barels)
But I would like it to slide when it's "alive", then slowdown, then stop moving to go back to idle animation.
and only when it's "dead" (hit many times), it should break.
any suggestion?
thanks
The actual code
I have this problem in mind for some time now.
When the obstacle is hit, it slide out of screen (just like usual barels)
But I would like it to slide when it's "alive", then slowdown, then stop moving to go back to idle animation.
and only when it's "dead" (hit many times), it should break.
any suggestion?
thanks
The actual code
Code:
name chaira
type obstacle
subtype flydie
cantgrab 1
shadow 0
gfxshadow 1
health 1#30#20
diesound data/sounds/drumb.wav#drum.wav
nolife 1
#flash obfla
noatflash 1
offscreenkill 2000
anim idle
loop 0
delay 5
offset 31 72#26 73#38 52#58#52
bbox 7 16 50 65 #2 1 75 57
platform 15 80 0 -7 48 56 7 32#13 58 0 0 52 52 13 49#10 52
frame data/chars/misc/chaira.gif
anim fall
loop 1#0
delay 9999#5#10#5
offset 31 72#26 73#38 52#58#52
sound data/sounds/chairslide.wav
hitfx data/sounds/indirect.wav
bbox 7 16 50 65 #2 1 75 57
platform 15 80 0 -7 48 56 7 32#13 58 0 0 52 52 13 49#10 52
attack 27 61 12 18 5 1 1 0 6 30#20#assez fin et bas
frame data/chars/misc/chaira.gif