Discuss Scratch

arlodude112
Scratcher
14 posts

Glitch in my game, please help.

In my game, (its a game where the player is continuissly moving,) if you click 2 buttons at the same time the character just stops in space. heres an example.


me: clicks left arrow key
character: moves left

me: clicks up arrow key
character: moves up

me: clicks up and left arrow keys
character: stops in place.


I really dont know what is going on and I really need help, does anyone have any advice?
Clyde_The_Coder
Scratcher
100+ posts

Glitch in my game, please help.

That's normal. I never tested but I believe by making it so that when two buttons are pressed, you turn diagonally and move. You can do this with “if key _ pressed” conditions and “__ and __” to make it only happen when 2 keys are pressed.
arlodude112
Scratcher
14 posts

Glitch in my game, please help.

thx, i ended up fixing it on my own tho, i just needed to make each of the ifs if/else

Powered by DjangoBB