Game Maker Blood Splatter Particles Game

I have been working on a Dark Souls inspired platformer for a few months now and thought it was about time I make a thread to track progress. How to add blood splash on a 2D Fighter Game? Hello, I am working on a small 2D fighter game and I want every time the player or the enemy is hit, a blood splash to appear hopefully with random red particles for a better effect. Blood Splatter Clipart #48273 - About 20 Blood Splatter Clipart.png transparent image matching SPOT Stationary Dualshock 4 Auto Repair Doubt. Two Hands Purple Background Desert Neptune Porsche Logo Kentucky Map Crayon Transparent Background Superman Jesus Being Baptised Black And White Cancer Ribbon Jackal Palm Sunday Black And White Sunflower Drawing Dark Souls Font.

  1. Game Maker Blood Splatter Particles Gamestop
Game Maker Blood Splatter Particles Game

Hi, all.

First, I’d like to apologize for slowing down these tutorial series. Things have been a little rough since my largest contract project fell through. For the most part, I’ve been scrambling to jump on something else. Sending out prototypes, replying to job offer emails, etc. No big decisions have been made, but I’m still hopeful.

Anyway, I’ve been told time and time again to do a series on all of my little ‘juice’ effects. Dust when you land from high jumps, screen shake, smoke from bullet fire, etc, etc. I’m going to start that today!

However, I’m going to start with one that’s new to me. Mostly because it’s the most interesting to me, currently. That way you’ll get to see my thought process as I piece these things together.

Blood Splatter

Recently I played through Hotline Miami 2, as I am sure that a lot of you did, as well. Each kill is accompanied with a fairly brutal blood splatter. I wanted to see if I could piece together a top-down dynamic blood splatter that achieves a similar effect.

Game Maker Blood Splatter Particles Game

Final Effect

Surfaces

Firs thing’s first, if you don’t know much about Game Maker surfaces, now is your just to go study up on them. Most of my effects are temporary. They fade away after a few frames. This blood is here to stay. We don’t want 1000 blood objects stacking up as you plow through hordes of enemies, so we’ll draw the blood to a surface, destroy the blood object, and continue to redraw the surface without clearing it (the blood will remain drawn after the objects have been cleaned up).

Game Maker Blood Splatter Particles Gamestop

I do this with an object specifically for drawing the blood. Let’s call it ‘oControllerBlood’.

Again, DirectX requires that all surfaces be destroyed when the user messes with window resizing. This will create a new surface if that happens. More can be done to make this work better. I'll return to it later, but it's not too important for now.

But that's it! That will handle our blood surface. Make sure to put one of these bad boys in your room before you start spawning blood objects.

BLOOD

Ok, now for the actual blood. What I like about Hotline Miami's blood splatters are the outliers. The long streams that should out at seemingly random angles. It's not just a pool of blood. It's a somewhat natural splatter. I don't want a blob. It shouldn't look like it was poured. It should look impactful, like you stomped in it.

Game Maker Blood Splatter Particles Game

I started by making a blood sprite. It's simply a red circle. 16x16, I believe. I have to think ahead to how I'm going to spawn this group of objects. I want the point of impact to be fairly closed. It'll be a puddle if different segments stretching out in several directions, so the sprite needs to be big enough that the initial set of objects overlap and form that puddle.

Here's what I came up with for the CREATE EVENT:

This is what I ended with. It was actually pretty close to what my first attempt was, but that's not always the case. These effects are often about trial and error. Try to picture what the effects are ACTUALLY doing. In this case, I knew that I wanted a HUGE initial impact with an equally HUGE decay. Fast moving with loads of friction.

Be sure to put SOMETHING in your draw event to stop the object from drawing itself. The blood surface will draw it. If not, it will draw twice until the object is destroyed.

Test

Lastly, I added a small test to see how we can actually use these objects. Here I pack a group of blood objects together on every mouse click. I spawn between 4 and 32 blood objects so that you can see the different shapes that we create depending on the density of the initial impact.

Hope this helps! Maybe it will be enough to get some you thinking about how to accomplish the other dynamic effects that you need.

-Z