ScratchData LogoScratchData
Back to DadOfMrLog's profile

3D Engine -part 1 (off-edge line drawing)

DADadOfMrLog•Created March 28, 2013
3D Engine -part 1 (off-edge line drawing)
203
130
6870 views
View on Scratch

Instructions

UPDATED to avoid 'stop this script' blocks, which can cause trouble. Also added note about how these blocks are now largely redundant... ----------------------------------------------------------- Here is the first step in creating the 3D engine used for the InterXeptor 3D space game. Follow this studio to see more steps: http://scratch.mit.edu/studios/202972 This first step is very simple and nothing to do with 3D - but it's important for what follows... Scratch has this annoying habit of not allowing sprites to go beyond the edge of the screen. Unfortunately, this affects the pen too, so it means you can't easily draw lines that go off the edge of the screen. The two replacement pen blocks here allow you to do it very easily. The blocks are: [ set pen to x y ] and [ draw to x y ]

Description

Use arrow keys to move the star, "W" & "S" to change its size, and "A" & "D" to rotate. See how the star's lines get drawn correctly even as they go off the edge of the screen. Space resets the star's size and position back to default.

Project Details

Project ID10094319
CreatedMarch 28, 2013
Last ModifiedOctober 8, 2020
SharedMarch 28, 2013
Visibilityvisible
CommentsAllowed