Jump to content


nh_99

Member Since 31 Jan 2012
Offline Last Active Oct 21 2012 07:31 PM

Posts I've Made

In Topic: COD Blood Effect

03 February 2012 - 02:25 PM

Can I make it so when the screen flashes it also pops up an image around the edge of the screen?

In Topic: COD Blood Effect

02 February 2012 - 01:45 PM

If you want it to work in 3d then just put this around the draw code for the blood sprite.

d3d_set_hidden(true);
d3d_set_projection_ortho(0,0,screen_width,screen_height,0);

//drawing stuff

d3d_set_hidden(false);

the set d3d_set_hidden's might be reversed with the false a the start and the true at the end. I don't really remember.

Thank you for the info. I just assumed the script would be 3d but this will help.

In Topic: COD Blood Effect

02 February 2012 - 12:43 PM

Took it upon myself to make a nice transparent texture   :thumbsup: Feel free to use without credit and it is already scaled to a power of 2 (512x512).

Spoiler

Can you email that picture to me? My email is nhgames9@gmail.com. I can't see the image.

In Topic: COD Blood Effect

02 February 2012 - 12:39 PM



<snip>

With the first code I put it in the draw event right?


Yes, you got it. Hope it works!  Make sure that if the instance that is drawing it is not the player, use
insertdrawingobjectnamehere.blood_alpha = 0.4

Thank you so much for the help.

In Topic: COD Blood Effect

01 February 2012 - 08:50 PM

var xx yy; xx = view_xview[0]; yy = view_yview[0];
draw_set_alpha(0.2);
draw_rectangle(xx,yy,xx+view_wview[0],yy+view_hview[0],false);

If you want it to fade out, use this code instead:
var xx yy; xx = view_xview[0]; yy = view_yview[0];
draw_set_alpha(blood_alpha); blood_alpha -= 0.01;
draw_rectangle(xx,yy,xx+view_wview[0],yy+view_hview[0],false);

And in the create event put:
blood_alpha = 0;

When the player is hurt, make the blood_alpha 0.4 or so...

With the first code I put it in the draw event right?