[SOLVED] Help with explosive bullets

AngelAC

New member
Hello guys!, i hope you are doing well.

Recently i was reworking on my mod and i need some little help :v. Some enemies launch a kind of "explosive shoots" but honestly i don't now how to make it, so it's like a bullet that is launched as a "knife", here is the code:

Code:
anim	attack
	loop	        0
	delay	7
	range	30 123
	bbox	8 9 32 33
	offset	21 43
	sound	Data/sounds/plasmapistolshoot2.wav
	@cmd	projectile 1 "fuel_shoot" 2 0 14 1 0
	frame	Data/chars/grunt/grunt_cannon/attack.png

But i need that when it hits the player or an obstacle, it explodes, iow plays the attack animation of the explosion, i already tried to make an attack animation in the "shoot" but it didn't worked so i guess is not the proper way. So if you know a proper way or easier way to do it, it will be very helpfull, thank you so much in advance.
 
Have you tried to use flash as an explosion?


http://www.chronocrash.com/forum/index.php?topic=4301.msg59974#msg59974

Typically the code looks like this

(Notice the hitflash blood2?)
That can be whatever you want instead of blood.

Code:
     anim   freespecial
                cancel   3 6 0     U A          freespecial2
   hitflash   blood2
   loop   0
   delay   6
   offset   67 114
        bbox   55 53 28 61
        frame   data/chars/logan/logan2/ka1-1.png
        frame   data/chars/logan/logan2/ka1-2.png
        attack   74 56 61 46 5 0 0 0 0 0
        delay   5
        frame   data/chars/logan/logan2/ka1-3.png
        frame   data/chars/logan/logan2/ka1-3.png
        frame   data/chars/logan/logan2/ka1-3.png
        attack   0 0 0 0 0 0 0 0 0 0
        delay   6
        frame   data/chars/logan/logan2/ka1-4.png
 
Back
Top Bottom