ScratchData LogoScratchData
Back to grandpasp's profile

test jagged "move <x> steps" at angle

GRgrandpasp•Created May 30, 2025
test jagged "move <x> steps" at angle
0
1
6 views
View on Scratch

Instructions

I was working on some buggy "bounce" code (https://scratch.mit.edu/projects/1179827047) and couldn't figure out why it was failing at shallow bounce angles. This demonstrates why. "Moving" at an angle is a little erratic. Some angles are worse than others. Scratch must be doing the required trig, and then "rounding" to the nearest x,y location before rendering, which causes a "zig-zag" motion. Scratch must be doing "touch" detection based on rendered location rather than calculated location. A 45 deg. angle is smoother than a 20 deg. angle. I show both.

Project Details

Project ID1182820042
CreatedMay 30, 2025
Last ModifiedMay 30, 2025
SharedMay 30, 2025
Visibilityvisible
CommentsAllowed