ScratchData LogoScratchData
Back to LIGHTSPEEDCODE's profile

3D Camera Control (TBAE 2.0)

LILIGHTSPEEDCODE•Created May 7, 2024
3D Camera Control (TBAE 2.0)
116
88
2998 views
View on Scratch

Instructions

WHATTTT Curated by @MarieCheese123 TYSM!!! Yes, I know it looks complicated, maybe I'll make a tutorial or something. DON'T advertise or hate, I will report the comment as spam! Check out my new account @Amplifyre while you're here, maybe follow, I'd appreciate it :D Original description: For the first time ever, here are my 3D camera control blocks! Watch the demonstration of changing camera x, y, z, direction, and focal length, then try using them yourself! Please credit me if you do use them. Thanks! (TBAE - Timer-Based Animation Engine)

Description

TBAE: https://scratch.mit.edu/projects/1027988517/ Explanations: -Blocks: set sprite x: (x) y: (y) z: (z) direction: (direction) size: (size) - Moves the sprite to the given coordinate in 3D space with the given direction and size, and projects it as accurately as Scratch can onto the stage. set focal center (focal center) - Sets variables to change the "center" when the focal length is changed. The closer objects are (their z position) to this center, the less they will be scaled when the focal length changes. -Variables: "x": Camera x position. "y": Camera y position. "z": Camera z position. "direction": Camera direction or rotation. "focal length": Camera focal length. Changes perspective. "reference deviation": A fairly arbitrary variable. Used to make focal length changes look smooth. "reference scale": Changes scale. "clone ID": Keeps track of clones created by the original sprite. The first clone will have a "clone ID" of 1. -Lists: "sprite data": Stores the sprite's x position, y position, z position, direction, and size, in that order, according to the camera. The built-in alternatives don't work for camera control. -Costumes: "Not Clone" - The costume of the original sprite, distinguishing it from its clones "0x0" and "480x360" - Used to override size limits.

Project Details

Project ID1015489181
CreatedMay 7, 2024
Last ModifiedFebruary 18, 2025
SharedMay 28, 2024
Visibilityvisible
CommentsAllowed