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

KG!UNDERTALE BATTLE DIMENSION V1.1.4

by kgoooooo

Project thumbnail
View Project

☁ Mountain A Multiplayer Scrolling Platformer #Trending # Games # Art #all

by GameMasterCoder

Project thumbnail
View Project

Ball Physics 3D

by spricetyty

Project thumbnail
View Project

diep.io v1.5

by griffpatch

Project thumbnail
View Project

Eeveelutions Squad Funny Movie Maker V.3

by Louispluspizza

Project thumbnail
View Project

Fnaf 3 v1.3

by -Ultamate_Coder-

Project thumbnail
View Project

Tank Attack! [MOBILE FRIENDLY] #games #all #tankattack

by BarryFans

Project thumbnail
View Project

マリオサーキットっぽい!?プラットフォーマー!!

by sgihyt781

Project thumbnail
View Project

自作短編アニメ大晦日0.1時間SP!!「2021年紅白アニ合戦」#今年も一年ありがとうございました!

by usao-naoki

Project thumbnail
View Project

✧ ɪ'ᴠᴇ ᴀʟᴡᴀʏꜱ ʟɪᴋᴇᴅ ᴛᴏ ᴘʟᴀʏ ᴡɪᴛʜ ꜰɪʀᴇ

by mimfrank

Project thumbnail
View Project

プリキュア完全勝利の瞬間

by mujin11

Project thumbnail
View Project

Paper Minecraft SUPERMOD!!

by poliakoff

Project thumbnail
View Project

minecraft block miner!

by XORENGLITCH

Project thumbnail
View Project

Help Bad Time Trio

by --Shiran--

Project thumbnail
View Project

New しょぼんのアクション アレンジ版 1-1

by tonetotuto

Project thumbnail
View Project

The Powder Toy

by awesome-llama

Project thumbnail
View Project

Friday Night Funkin' || Editor with chart editor V1.0.0

by Meekaryo

Project thumbnail
View Project

Super Mario Bros. Multiplayer (ProjectSMB) v1.3.0 (FINAL)

by Super_M4rio

Project thumbnail
View Project

scratch background size

by boll-0000

Project thumbnail
View Project

Scratch cat platformer 1.2

by arzaan

Project thumbnail
View Project

Level EATEN! Multiplayer! - v0.12 - m0.1 remix

by FJT2015

Project thumbnail
View Project

Oxyrex's Mystery BETA 0.2.0?

by marcscratch33

Project thumbnail
View Project

新着 ★ Ꮆ尺闩ᐯ工ㄒㄚ乙㠪尺龱 ▲ OFFICIAL AMV

by Natures_love

Project thumbnail
View Project

Online Mii Maker on Scratch

by PrinceMatthew9998