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

Sprunki // (SPR) // W.I.P

by rockeater3000

Project thumbnail
View Project

Super Mario Maker 5 - A Platformer Creator - v1.2.14 (Larry's revolt)

by kbcrafts

Project thumbnail
View Project

Chase!

by Yin-Yang-Yo

Project thumbnail
View Project

Numberblocks Band ReTrillion Remastered (100.0 cemic-1.0nan) remix

by Elephant6188

Project thumbnail
View Project

I want LGTheScratchFan2011 to remix this for Beat Up Games

by JPPORTUGAL

Project thumbnail
View Project

Sprunki Deluxe + Your ocs! remix

by ulsi132435

Project thumbnail
View Project

Sprunki Oc Real V3 Part 2.5_3 Edition Mr Bilk sinner aqua new pt 2

by TheNightz_

Project thumbnail
View Project

Digital Clock, Stopwatch and Timer remix

by UriyahMclemore

Project thumbnail
View Project

Triples band 5 but the galaxies are accurate

by NJScribbles

Project thumbnail
View Project

Undertale || Omega Flowey vector

by windycathanjin

Project thumbnail
View Project

Fidget spinner 5.0

by Straw_Guy

Project thumbnail
View Project

Add Yourself Watching the BFDI Movie! remix

by Bubble-bfb

Project thumbnail
View Project

Object Stupidness intro

by CosmicPineapple8722

Project thumbnail
View Project

Cat Clicker

by S0cCrePunch

Project thumbnail
View Project

Numberblocks Band Two-Millionths (Numberblocks Band Millionths 8.5)

by HTPC19512

Project thumbnail
View Project

Vinci Firenze Argam Typeface in Vector

by NumberBots

Project thumbnail
View Project

Free to use buttons for beat up games

by TheNewer58855758

Project thumbnail
View Project

Destroy Scratch Cat: Ultimate

by CRAZYLIKEME30

Project thumbnail
View Project

Blue Mist Plus 20,000 All Jumpscares P3 (26,000-29,999)

by Jharring20

Project thumbnail
View Project

Beat Up H! V1.8-nohyesj

by Ilyas_Mughits2001

Project thumbnail
View Project

Car parking

by 13Mimi

Project thumbnail
View Project

Angry Birds HD remix-2

by brandonyukodit

Project thumbnail
View Project

The Mine Song but it makes no sense.

by Little_Cat2014

Project thumbnail
View Project

Beat Up scratchcatsonic (2)

by newmyles