G
graviax
Guest
I'm using surface to make a lightning effect in my game.
And this happen
so the 4 little rectangle are my bullet and the for big squares are my "light sources"
I made a draw event in the light obj to see where the instance really is.
draw event :
In my end step event I draw the big square which are linked to the bullet's position in the bullet step event like so :
the light source end step event :
the big squares seems to be in some kind of paralax because when i move, the gap between my bullet and the light source seems to increase like this :
I found the place where the squares start at the same position than the bullet :
and whenever I try to move my mouse ...
I don't understand
And this happen
so the 4 little rectangle are my bullet and the for big squares are my "light sources"
I made a draw event in the light obj to see where the instance really is.
draw event :
Code:
draw_text(x,y,'light');
Code:
light.x = x;
light.y = y;
Code:
draw_set_blend_mode(bm_subtract);
surface_set_target(global.light);
draw_set_circle_precision(4);
draw_circle_color(x,y,size,color1,color2,false);
surface_reset_target();
draw_set_blend_mode(bm_normal);
I found the place where the squares start at the same position than the bullet :
and whenever I try to move my mouse ...
I don't understand