The Daily Click ::. Forums ::. Klik Coding Help ::. Blood Particles
 

Post Reply  Post Oekaki 
 

Posted By Message

Xiao



Registered
  29/01/2005
Points
  59
13th July, 2006 at 21:24:57 -

Anyone have a good MMF2 / MMF / TGF / Whatever blood particle effect engine? I try makin' my own but I figure that someone else could probably do it better.

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
13th July, 2006 at 21:26:37 -

Oh yeah, also a good...err....decapitation engine, where a body part (or active object) will fly away from another active object, while spewing blood particles?

 
n/a

Muffin Batel [neonair games]



Registered
  09/08/2002
Points
  900
13th July, 2006 at 21:32:47 -

i think i've got what you need:

http://mentalhelp.net/

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
13th July, 2006 at 21:36:35 -

I think I've got what YOU need:

http://secure.hop.com/

 
n/a

Muffin Batel [neonair games]



Registered
  09/08/2002
Points
  900
13th July, 2006 at 21:40:35 -

wow, thanks
Image

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
13th July, 2006 at 22:20:20 -

I don't know that anyone would have done a dedicated engine for that since it's not something you can really just apply to everything. I've done some pretty detailed ones before but there's no way I could pull an engine out of them.

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
13th July, 2006 at 22:51:53 -

Radix - I don't really need an engine, just a line of code, really anything I can implement into it, that isn't just the simple particle effect and actually looks good.

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
13th July, 2006 at 23:05:39 -

IM AFRAAD DAT DOEZT HLEP MUCH. :<

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
13th July, 2006 at 23:41:46 -

It's kind of hard to help with something that's so simple and so variable. Exactly how you implement it differs depending on the game and what you want it to look like. If you can tell us the specific problem you're having with it we can help with that, but 'blood particle effect engine' is pretty general.

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
13th July, 2006 at 23:49:48 -

Well, I'm making a platformer hack'n'slash, it's sidescrolling and fairly realistic. So I need just a general blood (and decapitation, WOOT) engine, just a bit of particles.

Here's the trouble: I make particles, but they all disappear at the same distance, and the sprites are bad, and they don't go up in the air and then arch down, they just fly straight, and overall it just looks terrible.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
14th July, 2006 at 00:02:45 -

but they all disappear at the same distance
always
--add random(2)+1 to alterable value A(bloodparticle)

alterable value A(bloodparticle) > 50
--bloodparticle: destroy

bloodparticle collides with the backdrop
--bloodparticle: paste into background
--bloodparticle: destroy

Adjust the values as needed.

and the sprites are bad
Can't help you with that. Well, I could, but I'm not going to.


and they don't go up in the air and then arch down, they just fly straight
Well the easiest way to do that is to make them bouncing ball objects and use the direction calculator to rotate them towards direction 24.
A better way would be to give them the same gravity coding that you would for a custom platform movement, and give them all a random initial 'up velocity' value.
And horizontal randomness of some sort would be a good idea too, but that would require some fine-tuning. The easiest way to do that would just be to make them a bouncing ball object (but with custom gravity), but ONLY set them to either left(16) or right(0) initially (preferably the opposite direction to where the player is standing for realism), and give them random speeds. Maybe.

and overall it just looks terrible
Fix it then.


 
n/a

Xiao



Registered
  29/01/2005
Points
  59
14th July, 2006 at 11:37:51 -

I can't seem to get the direction calculator to work with MMF2 for some reason. Nor the fast loop.

 
n/a

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
14th July, 2006 at 12:50:54 -

I haven't tried MMF2 since that horrible beta, but I assume the built-in fastloop should work fine. Direction calculator, if it hasn't got a built-in equivalent by now, might not be ported yet. Like I said direction calculator is a cheap way to do it though.

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
14th July, 2006 at 13:15:50 -

Could you perhaps do a MMF 1.5 example and I could see if it would port to 2?

 
n/a

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
25th July, 2006 at 03:20:18 -

I forgot how I did blood/sparks, but I think all I did was use the particle spray thing, then adjusted the wind/grav stuff according to direction of shot. And for blood sticking to things, just paste to background.

Not sure about flying parts, but maybe you can stick a particle spray when moving a part out. I'm wondering how to get a sprite to walk around with a severed body part though without drawing multiple sprites.

I could probably make an example if you really insist, but I don't have my comp right now and university's making me sleep at > 12 AM and waking up at 6 AM . Maybe next week at best, as seeing 350 ml of blood coming from my arm 2 hours ago put me out of the mood for gore. But as it is, making a 360 deg bullet engine & a blood engine in MMF2's kinda high on my list this month.

 
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.

Image

markno2



Registered
  06/06/2006
Points
  865

Game of the Week WinnerVIP MemberPicture Me This Round 30 Winner!Weekly Picture Me This Round 39 Winner!Kliktober Special Award Tag
25th July, 2006 at 11:10:46 -

I just let the blood fly all over the place without gravity in my games.

 
Discarded pizza boxes are an indispensable source of cheese.

Werbad



Registered
  18/09/2002
Points
  235
25th July, 2006 at 14:59:54 -

I made a blood engine with gravity including the abillity to blow the character to pieces. Bodyparts bounce on the ground
http://rapidshare.de/files/26995448/blood_engine.zip.html

 
n/a

Xiao



Registered
  29/01/2005
Points
  59
25th July, 2006 at 22:36:16 -

Wow, that's actually pretty good.

 
n/a

Dustin Gunn

Gnarly Tubular Way Cool Awesome Groovy Mondo

Registered
  15/12/2004
Points
  2659

Game of the Week WinnerKlikCast StarVIP MemberI'm on a BoatGOTW Winner Oct 2010Kliktober Special Award Tag
25th July, 2006 at 22:42:44 -

The coding in that example is really good

 
n/a

DanielRehn



Registered
  18/09/2002
Points
  139
26th July, 2006 at 13:49:46 -

Nice work bro!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click