I'm pulling my hair out with this one in Game Maker Studio. Little snippet of code;
image_blend = global.tal_colour;
image_alpha -= 0.005;
The code is self explanatory, it blends the image to a global colour pallette and then slowly fades the image to 0 alpha. Works perfectly fine if executed directly in the object Step event, but if I call a script in the step event it won't play nice, the blend works but the alpha does nothing. Any ideas? The full code is below but I have tried simplifying it to eliminate problems and I still get the same issue with no alpha reduction... I'm using a State Machine btw
So my Step event is
my Create event is
///setup the logo
// set properties
fadespeed = room_speed/12000;
image_alpha = 1;
image_blend = c_white;
// set state and positioning
if (room == rm_splashscreen)
{
state = scr_normal();
x = room_width/2;
y = room_height/3;
image_xscale = 0.4;
image_yscale = 0.4;
}
if (room == rm_hangar)
{
x = room_width-96;
y = room_height-96;
image_xscale = 0.1;
image_yscale = 0.1;
state = scr_animate_logo(0.1, 0.3, 0.6);
}
and the script is
///scr_animate_logo(animation_speed, lower_bound, upper_bound)
var animation_speed = argument0;
var lower_bound = argument1;
var upper_bound = argument2;
//colour the logo
image_blend = global.tal_colour;
image_alpha -= 0.005;