This is the whole thing, it's in the draw event of an "shadow manager" object.
for ( i = 0; i < instance_number( worldBlock ); i += 1 ) {
object = instance_find( worldBlock, i )
if instance_exists( object ) {
if !position_meeting( object.x + 16, object.y - 16, worldBlock ) {
draw_set_alpha( 0.1 )
draw_rectangle( object.x, object.y, object.x + 31, view_yview + view_hview, 0 )
}
}
}For example, look at this

It does work, but in some cases the shadows aren't very good processed and look weird.
How can I improve this?
(hope this doesn't belong to N&I, since I don't think it does)
Edited by Benxamix2, 16 February 2012 - 03:41 PM.












