ScratchData LogoScratchData
Back to kriblo_test's profile

Example: Moving the sprite using sin() and cos()

KRkriblo_test•Created September 15, 2021
Example: Moving the sprite using sin() and cos()
9
5
98 views
View on Scratch

Instructions

Simple example of how you can move the sprite in a certain direction, not setting the sprite direction or using the move block. Sprite1 points towards the mouse pointer and moves 10 steps. Sprite2 reads the direction of Sprite1 and uses sin & cos to change its x & y (see inside). Response to this question: https://scratch.mit.edu/studios/25643089/comments/#comments-161026231 All code by me (@kriblo).

Project Details

Project ID570528140
CreatedSeptember 15, 2021
Last ModifiedSeptember 15, 2021
SharedSeptember 15, 2021
Visibilityvisible
CommentsAllowed