ScratchData LogoScratchData
Back to kriblo_test's profile

Example: Calculate direction & distance

KRkriblo_test•Created February 23, 2021
Example: Calculate direction & distance
11
10
138 views
View on Scratch

Instructions

Move the mouse around. Drag the arrow. See inside for commented code. Coordinates are the x and y positions of sprites, clones, mouse, stage center, etc. To be able to calculate direction and distance between two sets of coordinates can be very useful in a Scratch project. This math may be difficult for some of you, but I've tried to keep this example simple. And, you don't really need to understand the math fully to use the code in your project. All code by me (@kriblo).

Project Details

Project ID491685864
CreatedFebruary 23, 2021
Last ModifiedMay 20, 2022
SharedFebruary 23, 2021
Visibilityvisible
CommentsAllowed