V
VansiusProductions
Guest
Hi guys,
How do I make a specific instance fade? I don't know how to only target a specific instance's instance variable. This is my code in a step event:
I did global.groupStop.alpha so that it only uses the global.groupStop instance's alpha variable. The global.groupStop holds an instance id. Also, 1 thing i would note is that this instances is not created when the game starts, but later on in the game. So when i start the game, the variable is not defined and I get an error, how do I prevent this from happening?
Or suggest another system I should use. Thank you!
How do I make a specific instance fade? I don't know how to only target a specific instance's instance variable. This is my code in a step event:
Code:
with (global.groupStop) {
if (global.groupStop.alpha < 1) {
global.groupStop.alpha += 0.05
}
}
draw_sprite_ext(sprite_index,image_index,x,y,image_xscale,image_yscale,image_angle,c_white,global.groupStop.alpha)
Or suggest another system I should use. Thank you!