ScratchData LogoScratchData
Back to kriblo_test's profile

Example: 3D orbiting with zort

KRkriblo_test•Created November 29, 2021
Example: 3D orbiting with zort
17
12
203 views
View on Scratch

Instructions

The Meteorite clones orbit the Earth. The Earth follows the mouse pointer and calculate 3D x & y using the screen x & y at a set 3D z. Meteorite clones then calculate screen x & y using the Earth coordinates and a rotation offset per clone. Then, layering (or z ordering) is done using the 3D z of all instances. See inside. The Earth in this example could be a 2D player in a platformer, while the Meteorites could be orbiting powerups. All code by me (@kriblo), except the zort code, which was derived from one of @griffpatch's projects. @Mimikid778's project, which made me want to have a go at this: https://scratch.mit.edu/projects/1018484647

Project Details

Project ID608731985
CreatedNovember 29, 2021
Last ModifiedMay 14, 2024
SharedMay 14, 2024
Visibilityvisible
CommentsAllowed