ScratchData LogoScratchData
Back to kriblo_test's profile

Example: 2D Camera

KRkriblo_test•Created May 21, 2024
Example: 2D Camera
13
7
135 views
View on Scratch

Instructions

A simple example of a 2D Camera, where you can control the zoom, rotation and x&y coordinates of the camera, which in turn is used to calculate how the sprites appear. In this example, an invisible ball bounces around the real stage using "if on edge, bounce". Then, the camera and position of the invisible ball is used to calculate the appearance of the gray stage and the visible ball. See inside. Arrow keys, or click the edges of the stage, to scroll the camera. Variable monitors to change camera rotation and zoom. All code by me (@kriblo).

Project Details

Project ID1023960630
CreatedMay 21, 2024
Last ModifiedMay 21, 2024
SharedMay 21, 2024
Visibilityvisible
CommentsAllowed