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

Geometry Dash (Scratch Edition)

by Sucsessfully_Coded

Project thumbnail
View Project

Caillou OS 2.0 remix

by PlanetCocukYediYasve

Project thumbnail
View Project

ScratchAnimate

by bebe2010

Project thumbnail
View Project

ネプリーグのゴボ【再編集版】

by UETAKE-AKI

Project thumbnail
View Project

DateBlocks Band 79 (+BONUS)

by _VP22_

Project thumbnail
View Project

|| 1.5K Intro Template ||

by 32SSS

Project thumbnail
View Project

shooting game sample(use clone)

by uran225

Project thumbnail
View Project

BEAT UP VIACOM!

by logan36276423

Project thumbnail
View Project

Emoji Maker (v0.2)

by TabbyCheshireLargo

Project thumbnail
View Project

take care o chili doge

by arizona0_28

Project thumbnail
View Project

Alphabet Lore but the word is "SPLENDIFEROUS" instead of "FRIENDS"

by wario100

Project thumbnail
View Project

beat up teardrop DLC remasterd 3

by hyd3ns33k

Project thumbnail
View Project

TDS In Scratch But Different Most Code has been changed to reduce lag

by Clashofclansisbest

Project thumbnail
View Project

BonziWORLD bans ronaella but fails and then the site gets entirely destroyed

by ronaella2

Project thumbnail
View Project

So much beat up game stuff 3

by peggraz51

Project thumbnail
View Project

Beat Up Edward 8 (NEW) (more buttons)

by beanylempon

Project thumbnail
View Project

beat up squidward [Remix 6]

by Nonee2014rises

Project thumbnail
View Project

Beat Up Bonzi Buddy! remix remix

by matheusmaccamargo

Project thumbnail
View Project

Toriel AU Themes

by Snoopy-Coder

Project thumbnail
View Project

ZigZag

by CreativeComputerLab

Project thumbnail
View Project

Talking SpongeBob and Patrick News Reanimated

by TrueFan2024

Project thumbnail
View Project

【Nep League】ファイブボンバー系ステージ

by LAMONTEA

Project thumbnail
View Project

beat up refection badge

by dirtotheobjectrises

Project thumbnail
View Project

Limbo Final Key Part

by CyberLeafGD