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

Beat up the Normal (The reupload!)

by F7TH2049

Project thumbnail
View Project

Lost Project: Beat up Bitmappy adding all backdrop remix

by Draven1205

Project thumbnail
View Project

NBB 64ths 1 remastered dances

by sethwhis

Project thumbnail
View Project

Beat Up Bella The Wolf! V2.5 #Trending

by doorsman3goat

Project thumbnail
View Project

Angry Birds slingshot frenzy star of the wars part 2

by CHUCK345

Project thumbnail
View Project

Warrior Project beat up a villager super more buttons remix remix

by xmrrileyxx

Project thumbnail
View Project

Untitled-64

by Thomasplaza

Project thumbnail
View Project

portal 2

by antoniomarea_12

Project thumbnail
View Project

fifa 23 pack opener

by akkus3455

Project thumbnail
View Project

FOR THE BLUE MIST PLUS JUMPSCARES COMMUNITY

by KrazyMan79

Project thumbnail
View Project

beat up EXTREME 4 fixed

by azoriad

Project thumbnail
View Project

Beat Up Windows Remastered: The Glitch of the World Commercial 2018

by OlegGaninRus

Project thumbnail
View Project

Explore Scratch City!

by 5aznicole

Project thumbnail
View Project

Numberblocks Sprite Pack (Blue Mist Style)

by VectorWorkshop2

Project thumbnail
View Project

FNF Choco Engine V.0.9

by Chocolatechoco

Project thumbnail
View Project

Scratcharia v2.8.3 Modded v0.0.1

by tohohogisu

Project thumbnail
View Project

2D Minecraft 料理MOD 100 Days用 ピザキャット鯖 remix

by kanade0402

Project thumbnail
View Project

Cut the rope v0.7 || Scratch remake

by GonSanVi

Project thumbnail
View Project

Geometry Dash Lunar Abyss

by debanjan

Project thumbnail
View Project

Undieable Appel v2.0

by TanSleepingWolf

Project thumbnail
View Project

add a button to beat up purple minion!!! [1]

by newmyles

Project thumbnail
View Project

3d synthesia 100% pen #noteblocks #all projects #top-loved #awesome #all-trending

by 2okrisvadh

Project thumbnail
View Project

Nich Fight Cloud 1

by kjboogie

Project thumbnail
View Project

Klasky Opusc in Uhcakip.EXE major 8000

by clubisback