A
Aura_Blades13
Guest
You'll have to excuse me if I'm just being silly, but I'm new to GameMaker and I can't figure this coding out.
So far I have this:
switch (device_mouse_check_button(mouse, lmb) + sp_Pod = sprite_replace(sp_Pod, sp_Open_Pod, 1, true, false, x, y))
{
case (device_mouse_check_button(0, mb_left) + sp_Pod = (sprite_replace(sp_Pod, sp_Open_Pod, 1, true, false, x, y))): break;
case (device_mouse_check_button(0, mb_left) + sp_Open_Pod = (sprite_replace(sp_Open_Pod, sp_Pod, 1, true, false, x, y))): break;
}
It's supposed to switch the sprite back and forth when someone clicks the object with the left mouse button. However, I keep receiving an error when I try to test it, saying something is wrong with the case. I'm still learning coding, so I honestly have no idea what's going wrong. Any help would be wonderful!
-Aura
So far I have this:
switch (device_mouse_check_button(mouse, lmb) + sp_Pod = sprite_replace(sp_Pod, sp_Open_Pod, 1, true, false, x, y))
{
case (device_mouse_check_button(0, mb_left) + sp_Pod = (sprite_replace(sp_Pod, sp_Open_Pod, 1, true, false, x, y))): break;
case (device_mouse_check_button(0, mb_left) + sp_Open_Pod = (sprite_replace(sp_Open_Pod, sp_Pod, 1, true, false, x, y))): break;
}
It's supposed to switch the sprite back and forth when someone clicks the object with the left mouse button. However, I keep receiving an error when I try to test it, saying something is wrong with the case. I'm still learning coding, so I honestly have no idea what's going wrong. Any help would be wonderful!
-Aura