Cube and Steps
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
KG!UNDERTALE BATTLE DIMENSION V1.1.4
by kgoooooo
☁ Mountain A Multiplayer Scrolling Platformer #Trending # Games # Art #all
by GameMasterCoder
Ball Physics 3D
by spricetyty
diep.io v1.5
by griffpatch
Eeveelutions Squad Funny Movie Maker V.3
by Louispluspizza
Fnaf 3 v1.3
by -Ultamate_Coder-
Tank Attack! [MOBILE FRIENDLY] #games #all #tankattack
by BarryFans
マリオサーキットっぽい!?プラットフォーマー!!
by sgihyt781
自作短編アニメ大晦日0.1時間SP!!「2021年紅白アニ合戦」#今年も一年ありがとうございました!
by usao-naoki
✧ ɪ'ᴠᴇ ᴀʟᴡᴀʏꜱ ʟɪᴋᴇᴅ ᴛᴏ ᴘʟᴀʏ ᴡɪᴛʜ ꜰɪʀᴇ
by mimfrank
プリキュア完全勝利の瞬間
by mujin11
Paper Minecraft SUPERMOD!!
by poliakoff
minecraft block miner!
by XORENGLITCH
Help Bad Time Trio
by --Shiran--
New しょぼんのアクション アレンジ版 1-1
by tonetotuto
The Powder Toy
by awesome-llama
Friday Night Funkin' || Editor with chart editor V1.0.0
by Meekaryo
Super Mario Bros. Multiplayer (ProjectSMB) v1.3.0 (FINAL)
by Super_M4rio
scratch background size
by boll-0000
Scratch cat platformer 1.2
by arzaan
Level EATEN! Multiplayer! - v0.12 - m0.1 remix
by FJT2015
Oxyrex's Mystery BETA 0.2.0?
by marcscratch33
新着 ★ Ꮆ尺闩ᐯ工ㄒㄚ乙㠪尺龱 ▲ OFFICIAL AMV
by Natures_love
Online Mii Maker on Scratch
by PrinceMatthew9998