Cube and Steps

Cube and Steps

by Scratch-Minion

πŸ‘ 1,082 ❀️ 153 ⭐ 120 πŸ”„ 11
Created: Dec 17, 2019 Last modified: Sep 26, 2022 Shared: Dec 1, 2020

Description

* This is a "Pen" project. This means the cubes are all drawn using Pen. There are no cube costumes. The cube rolls down the steps. This project uses code that rotates points around the X axis (or Z axis when the cube rolls along the steps). Before rotating the cube, we shift the edge of it has to rotate around to the X or Z axis. We rotate the cube then shift it back so that the edge being rotated around is back in its original position. Rather than letting the cube roll off the stage, we make it roll in the centre while the board moves. After a 180 degree roll, the cube would have shifted a distance equal to the length of one side in two directions. So we move the board the length of one side against each of these directions while the cube rolls 180 degrees. Finally, if the X axis was straight across the screen, the Y axis straight up the screen and the Z axis straight out from the screen then we would only see one face of the cube. The rotation was done with the cubes aligned with the X,Y and Z axes to keep the math "simple", but we then rotate the cube and board before drawing them so that we can see the 3D clearly. 3D Tutorial Studio: https://scratch.mit.edu/studios/5040029/ Polyhedron Studio: https://scratch.mit.edu/studios/5085215/ Pink Panther Theme Tune by Henry Mancini. Huge thanks to @TheLogFather for his Fast Triangle Fill custom block. Animation Tutorial Pen GIF

Instructions

Just watch or press a key to determine the direction for the cube to roll next. Arrow keys - <left>, <right>, <down>, <up> Key <c> - square combo

Project Details

Visibility
Visible
Comments
Enabled

More Cool Projects

Project thumbnail
View Project

Endless reader for scratch

by charliechooch101015

Project thumbnail
View Project

Seadtype V16.3

by stevenrobloxisback

Project thumbnail
View Project

Huj Wam Future Yearblocks Band 2026-2050 reanimated 1.5

by UL36DBreboot

Project thumbnail
View Project

Sonic overdrift anti piracy screen

by Joshua010214

Project thumbnail
View Project

INJEF Sprunki Alphabet Lore band 1

by Fran0601

Project thumbnail
View Project

the scratch movie 11

by marcidani

Project thumbnail
View Project

jacob and friends - jacob hates troll! (M)

by matheus-teh-guy

Project thumbnail
View Project

Lightsaber light show

by RocketBoy676

Project thumbnail
View Project

FNAF 6/FFPS in scratch (use TurboWarp)

by ManManBoyBoyMan

Project thumbnail
View Project

Cube Miner 4.0

by legobuzz12

Project thumbnail
View Project

Cuby adventure #platformer #games

by TRSHDFC

Project thumbnail
View Project

Image Editor

by awesome-llama

Project thumbnail
View Project

ハッシγƒ₯閒数もどき

by choco0424

Project thumbnail
View Project

Animal Crossing Character Creator remix

by snowdrop74

Project thumbnail
View Project

New Super Mario Bros Scratch Remastered #games #all

by CreatorWindowsLove

Project thumbnail
View Project

Beat up Scratch Cat V9.3.5 (Clax)

by Bvbenjisc

Project thumbnail
View Project

Tile builder -- Create and share levels!

by kickspam

Project thumbnail
View Project

Popularity tycoon 1.1 #games #all

by Geisterschiss

Project thumbnail
View Project

ι­”ζ”Ήι€ γƒγƒƒγƒ—γ‚³γƒΌγƒ³γ‚Ήγƒžγƒ›ε―ΎεΏœ

by Taka0131

Project thumbnail
View Project

Protect the Planet!

by hello7241

Project thumbnail
View Project

beat up little Timmy

by cOODER22711

Project thumbnail
View Project

Try to Beat Up Sans [3.5] but you can win

by iob321ytrewq

Project thumbnail
View Project

Omega Roblox Fight

by sarinka007

Project thumbnail
View Project

Endless Numbers 27 Animation

by manwithaplancrown85