F
FactorX12
Guest
So I am trying to make an inventory that is completely opaque when the player holds the tab key, and then fade out when the player releases the tab key. Is this possible? This is my current code:
[in the step event]:
check_tab = keyboard_check(vk_tab);
image_alpha -= 0.05;
if check_tab {
image_alpha = 100;
}
the problem with this is it fades out in the beginning, it appears when the tab key is pressed, but when the tab key is released, it stays opaque and does not fade out. any help at all?
[in the step event]:
check_tab = keyboard_check(vk_tab);
image_alpha -= 0.05;
if check_tab {
image_alpha = 100;
}
the problem with this is it fades out in the beginning, it appears when the tab key is pressed, but when the tab key is released, it stays opaque and does not fade out. any help at all?