kimono
Well-known member
Hello everyone,
I'd like Han to throw a fireball that transforms into a cloud of flames (a bit like the holy water weapon in Castlevania).
Here's how the throw is coded:
And here is the projectile in question:
Here's how the projectile behaves in video:
How could this projectile react immediately upon hitting the ground?
Thank you as always for your valuable advice
I'd like Han to throw a fireball that transforms into a cloud of flames (a bit like the holy water weapon in Castlevania).
Here's how the throw is coded:
Code:
anim freespecial2 #Energy Ball shot
fastattack 1
jugglecost 5
forcedirection -1
delay 10
offset 28 92
bbox 14 8 30 84
range 171 400
sound data/chars/han/voice/hanshot.wav
hitfx data/sounds/aof2-199.wav
jumpframe 0 4 0 0
frame data/chars/han/shoot1.png
frame data/chars/han/shoot2.png
frame data/chars/han/shoot3.png
frame data/chars/han/shoot4.png
delay 6
attack1 22 14 30 19 2 0 0 0 5 12
frame data/chars/han/shoot5.png
@cmd shooter2 "hanshot" 77 68 2 1
frame data/chars/han/shoot5.png
frame data/chars/han/shoot5.png
attack1 0
frame data/chars/han/shoot2.png
frame data/chars/han/shoot1.png
frame data/chars/han/jump.png
delay 20
frame data/chars/han/idle.png
frame data/chars/han/idle.png
And here is the projectile in question:
Code:
name hanshot
health 1
type npc
hostile player obstacle
candamage player obstacle
nomove 1 1
remove 0
noquake 1
falldie 1
jumpheight 2
jumpspeed 3
animationscript data/scripts/escript.c
##ANIMATIONS#############################################################################
anim idle
delay 1
offset 11 9
bbox 0 0 16 16
attack1 0 0 16 16 2 1 0 0 0 0
frame data/chars/weapons/hanshot1.png
frame data/chars/weapons/hanshot1.png
anim attack1
range 0 480
fastattack 1
delay 15
offset 1 31
attack1 1 24 15 7 2 1 0 0 0 0
frame data/chars/weapons/hanshot2.png
attack1 0
frame data/chars/weapons/hanshot3.png
attack1 0 8 47 23 2 1 0 0 0 0
frame data/chars/weapons/hanshot4.png
attack1 0
frame data/chars/weapons/hanshot5.png
attack1 0 8 64 23 2 1 0 0 0 0
frame data/chars/weapons/hanshot6.png
attack1 0
frame data/chars/weapons/hanshot7.png
attack1 0 8 64 23 2 1 0 0 0 0
frame data/chars/weapons/hanshot8.png
attack1 0
frame data/chars/weapons/hanshot9.png
attack1 32 8 30 23 2 1 0 0 0 0
frame data/chars/weapons/hanshot10.png
attack1 0
frame data/chars/weapons/hanshot11.png
attack1 46 24 15 7 2 1 0 0 0 0
frame data/chars/weapons/hanshot12.png
attack1 0
@cmd suicide
frame data/chars/misc/empty.gif
Here's how the projectile behaves in video:
Thank you as always for your valuable advice