Computer Science Canada Blood Splatter =P |
Author: | Flikerator [ Sun Dec 25, 2005 12:43 am ] | ||
Post subject: | Blood Splatter =P | ||
Yarr im working on blood splatter. Heres what I like and what I dont like about my current blood splatter I have; http://www.deviantart.com/view/26820432/ This is the code I have for it. This is just my test program I use to figure things out, before I add it into the main prog. I could easily make this program work correctly with a few if statements, but I would prefer to just have a working formula ^_^
I cut a lot out, and its basically all you need. In the prog im using it shows the bullet and knocks the unit back and all that good stuff! Here though is just the stuff that lets you help me! 40 Bits to whoever can fix it to look normal! XD |
Author: | Martin [ Sun Dec 25, 2005 2:24 am ] |
Post subject: | |
Looks cool. What it looks like you want though is to just draw them from the centre of what you hit. So use angles. Figure out the angle of the bullet, and then just draw n lines coming out of the centre of the zombie with deviation of about 5 - 10 degrees |
Author: | Flikerator [ Tue Dec 27, 2005 11:02 pm ] |
Post subject: | |
I decided instead, to draw the blood from where the unit got hit. I could do it out the back, but the end result looks a tad better from the hit location. Anyways here's the end result. Im working on a way to keep the blood permenantly on the map WITHOUT redrawing it each time. Wont be too hard. Anyways, heres the end result; |