Realistic Yo-Yo - all instructions on screen This simulation of a Yo-Yo, whilst far from perfect, is reasonably realistic. To simulate continuous spinning while the Yo-Yo is moving means we need to save the current direction before moving, and to restore it when movement is complete. The String is drawn by the Pen by continually redrawing a line between the Hand and the Yo-Yo.
Created by @gregatku for use in Coding Classes for Kids Unlimited, for whom I work as a Coding teacher. We've had sprites spinning and moving but getting them to do both at the same time brings new problems to solve. We avoid trigonometry as the kids I teach wouldn't have such mathematical knowledge. We'll remove the Code to make it swing like a pendulum and set kids the challenge of writing it.