Littlegaard
Member
so im trying to make a light turn on and off - but it always seems like im doing 1 - 1 or 1 / 2 cause i only know how to make like out match each other
here's the code:
and i've tried with keyboard_check and keyboard_check_pressed
do anybody got anoter way of doing this without like?
making them not cancel out eachother?
here's the code:
GML:
if keyboard_check_pressed(vk_up) and sprite_index = scandle_on {
sprite_index = scandle_off;
}
if keyboard_check_pressed(vk_up) and sprite_index = scandle_off {
sprite_index = scandle_on;
}
do anybody got anoter way of doing this without like?
making them not cancel out eachother?