- Game Maker Community
- → Viewing Profile: Posts: nh_99
nh_99
Member Since 31 Jan 2012Offline Last Active Oct 21 2012 07:31 PM
Community Stats
- Group New Member
- Active Posts 12
- Profile Views 785
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
-
Version
GM8
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
Thank you for the info. I just assumed the script would be 3d but this will help.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.
In Topic: COD Blood Effect
02 February 2012 - 12:43 PM
Can you email that picture to me? My email is nhgames9@gmail.com. I can't see the image.Took it upon myself to make a nice transparent texture
Feel free to use without credit and it is already scaled to a power of 2 (512x512).
Spoiler
In Topic: COD Blood Effect
02 February 2012 - 12:39 PM
Thank you so much for the help.
With the first code I put it in the draw event right?
<snip>
Yes, you got it. Hope it works! Make sure that if the instance that is drawing it is not the player, useinsertdrawingobjectnamehere.blood_alpha = 0.4
In Topic: COD Blood Effect
01 February 2012 - 08:50 PM
With the first code I put it in the draw event right?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...
- Game Maker Community
- → Viewing Profile: Posts: nh_99
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content
