Wombat2112
Banned
In theory how would I make an enemy that is shot splatter into pieces and blood and when you kill them?
Paulo HP Bender said:You would need to create gibs for each enemy and make it spawn those gibs (probably with random velocities) in it's DEATH animation.
Paulo HP Bender said:It depends. Do you want the pieces of flesh to be thrown away in the screen? Just the blood splatter as a hitflash? Particles dripping blood everywhere? It all depends on how much work you're willing to put in your project.
Bloodbane said:I'm not sure what exactly you meant.... but I can imagine all sort of mess.
Anyways, it's best to start with one animated blood explosion. Code this as seperate entity so when entity dies, it spawns this explosion while playing blank frames. That way you get nice death effect without palette issues![]()
name XplosX
type none
lifespan 2
nolife 1
setlayer 100000
candamage player enemy obstacle npc
subject_to_gravity 0
anim idle
delay 5
offset 76 105
quakeframe 0 4 1
sound data/sounds/granat.wav
frame data/chars/misc/xplos/d01
frame data/chars/misc/xplos/d02
burn 12 30 124 91 50 1 0 0 0 10
dropv 3 4 0
frame data/chars/misc/xplos/d03
frame data/chars/misc/xplos/d04
frame data/chars/misc/xplos/d05
frame data/chars/misc/xplos/d06
frame data/chars/misc/xplos/d07
burn 0 0 0 0
frame data/chars/misc/xplos/d08
frame data/chars/misc/xplos/d09
frame data/chars/misc/xplos/d10
frame data/chars/misc/xplos/d11
frame data/chars/misc/xplos/d12
frame data/chars/misc/empty
do you think if I only used a single pic like this one (see below) since the color is limited I might be able to avoid a palette nightmare?
Bloodbane said:Hmmm.... have you made simple explosion entity like this:
Code:name XplosX type none lifespan 2 nolife 1 setlayer 100000 candamage player enemy obstacle npc subject_to_gravity 0 anim idle delay 5 offset 76 105 quakeframe 0 4 1 sound data/sounds/granat.wav frame data/chars/misc/xplos/d01 frame data/chars/misc/xplos/d02 burn 12 30 124 91 50 1 0 0 0 10 dropv 3 4 0 frame data/chars/misc/xplos/d03 frame data/chars/misc/xplos/d04 frame data/chars/misc/xplos/d05 frame data/chars/misc/xplos/d06 frame data/chars/misc/xplos/d07 burn 0 0 0 0 frame data/chars/misc/xplos/d08 frame data/chars/misc/xplos/d09 frame data/chars/misc/xplos/d10 frame data/chars/misc/xplos/d11 frame data/chars/misc/xplos/d12 frame data/chars/misc/empty
The blood explosion could work similar to that minus attacking stuffs
do you think if I only used a single pic like this one (see below) since the color is limited I might be able to avoid a palette nightmare?
Up to you. One frame is simpler but bad for the eye.