Y
yasin
Guest
I have a day and night cycle in my game and every object gets a little darker if it gets late in night that works just fine!
the problem is it conflicts with my character color picking code.
here is my code:
how do I give my player the choosen color and make it go dark and light with the image_blend variable?
the problem is it conflicts with my character color picking code.
here is my code:
Code:
image_blend = make_colour_rgb(255*global.platformalpha,255*global.platformalpha,255*global.platformalpha); //to make my player get darker in night
if (mouse_check_button(mb_left)){
color = draw_getpixel(device_mouse_raw_x(0),device_mouse_raw_y(0)) // choosing color for my player
};
draw_sprite_ext(obj_player,image_index,x,y,image_xscale,image_yscale,0,color,1)// I can only put the variable color or only the variable image_blend