Discuss Scratch

CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

i am coding a platformer, (https://scratch.mit.edu/projects/1375007042/) and i can’t figure out how to make the sprite walk smoothly. It just goes 10 pixels over and over again.

Can anyone help me?
asphalt10underground
Scratcher
100+ posts

My sprite is stuttering while moving. Any solutions?

Please share the project. It is currently unshared.
CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

Here is a link: https://scratch.mit.edu/projects/1375007042/

Last edited by CarricXilo (Aug. 25, 2026 16:17:51)

--PaperPlanes_Test--
Scratcher
54 posts

My sprite is stuttering while moving. Any solutions?

move everything under the key press detecting hat blocks into the main loop
CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

For some reason when i do that my arrow keys don't respond.
randompersonisbored
Scratcher
83 posts

My sprite is stuttering while moving. Any solutions?

chang the movement scripts from this:
when [ left arrow] key pressed
move left
to this:
when green flag clicked
forever
if <key [ left arrow] pressed?> then
move left
end
end
CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

That worked! Thank you
10goto10
Scratcher
1000+ posts

My sprite is stuttering while moving. Any solutions?

I added a block to switch to the hitbox before the code section that adjusts Y to not touch the ground.

My remix is at https://scratch.mit.edu/projects/1375154416/

This gets rid of the jumping that happens when the right or left key is pressed.

(update: Sorry, I didn't see you already had a solution. )

Last edited by 10goto10 (Aug. 25, 2026 21:57:07)

CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

The solution made it so it jumps up walls automatically. Did your solution help that?
10goto10
Scratcher
1000+ posts

My sprite is stuttering while moving. Any solutions?

I expanded your use of a hit box and made another one for ‘left/right’ detections.

Same remix file as before: https://scratch.mit.edu/projects/1375154416/
CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

Thank you. I am unsharing the project, and i will let you know when its done.
CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

Uh, i need some help again. I finished the rest of it, and now the player sprite is not registering the ground. (Same link
10goto10
Scratcher
1000+ posts

My sprite is stuttering while moving. Any solutions?

Your ground sprite is now hidden and can’t be touched. The Green Flag script in the ground sprite should include a show block.
CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

Thank you
CarricXilo
Scratcher
10 posts

My sprite is stuttering while moving. Any solutions?

Powered by DjangoBB