View Single Post
  #20  
06-08-2012, 06:54 AM
Mudokon_Master's Avatar
Mudokon_Master
Grubb Fisherman
 
: Jul 2010
: Australia
: 986
Blog Entries: 25
Rep Power: 15
Mudokon_Master  (618)Mudokon_Master  (618)Mudokon_Master  (618)Mudokon_Master  (618)Mudokon_Master  (618)Mudokon_Master  (618)

I actually have a pretty effective lighting snippet if you're interested:
:
draw_set_blend_mode(bm_add); //Uses an additive blend mode so the colour can be seen
draw_sprite_ext(sprSpotlight,0,x,y,image_yscale,image_xscale,0,c_orange,0.5); //This draws sprite alpha reduced for a nice blend
draw_set_blend_mode(bm_normal); //This just resets the blend mode
All I did was create 2 new objects and a sprite. The first object objLightParent; nothing is needed in any events. It just acts as a parent. The 2nd object is objSpotlight which has the snippet above in the draw event and its parent is set to objLightParent. Then I created a sprite called sprSpotlight which is basically just Name:  ewfd.png
Views: 148
Size:  3.6 .

I just chucked them all into the room. I'm not sure why I'm telling you this, it's just my experience with lighting and I found it the most effective way.
Reply With Quote