B
BladeGamez
Guest
So for some weird reason, my code was working a while ago and quit. So I toggled with it and managed to get something out of it. This time, however, instead of changing it to the correct sprite like it was supposed to, it flickered in between two other unrelated sprites. Now I toggled it again and it stopped working completely. What did I do wrong?
Code below
if keyboard_check (vk_shift) and keyboard_check (vk_right)
then
{
sprite_index = spritera;
}
else
{
sprite_index = sprite1;
}
if keyboard_check (vk_shift) and keyboard_check ("D")
then
{
sprite_index = spritera;
}
else
{
sprite_index = sprite1;
}
Code below
if keyboard_check (vk_shift) and keyboard_check (vk_right)
then
{
sprite_index = spritera;
}
else
{
sprite_index = sprite1;
}
if keyboard_check (vk_shift) and keyboard_check ("D")
then
{
sprite_index = spritera;
}
else
{
sprite_index = sprite1;
}