Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Hey! Do you want to make a 3D Game? - Tutorial
- PolarNorthest
-
49 posts
Hey! Do you want to make a 3D Game? - Tutorial
Do you want to make 3D projects?
In this forum, we will learn how to make a 3D project in Scratch 3.0 (3D cube)! All blocks are “run without screen refresh” and all veriables are global (for all sprites). Code analysis: each Sprite will draw a part of the cube, Sprite 1 will draw the top face, Sprites 2, 3, 4 and 5 will draw edges and Sprite 6 will draw the bottom face of the cube.
(LOOK AT THE IMAGE)
https://sites.google.com/view/cubo-super-especifico-scratch
The Sprite 1 make the red part, Sprite 2 make the green, Sprite 3 make the yellow, Sprite 4 make the brown part, Sprite 5 make the black part and Sprite 6 make the purple part. First, they will position themselves, second they gonna draw. This is super simple to make in Scratch!
Here is the project:
https://scratch.mit.edu/projects/976409480/
Code:
Sprite1:
Sprite 2:
Sprite 3:
Sprite 4:
Sprite 5:
Sprite 6:
In this forum, we will learn how to make a 3D project in Scratch 3.0 (3D cube)! All blocks are “run without screen refresh” and all veriables are global (for all sprites). Code analysis: each Sprite will draw a part of the cube, Sprite 1 will draw the top face, Sprites 2, 3, 4 and 5 will draw edges and Sprite 6 will draw the bottom face of the cube.
(LOOK AT THE IMAGE)
https://sites.google.com/view/cubo-super-especifico-scratch
The Sprite 1 make the red part, Sprite 2 make the green, Sprite 3 make the yellow, Sprite 4 make the brown part, Sprite 5 make the black part and Sprite 6 make the purple part. First, they will position themselves, second they gonna draw. This is super simple to make in Scratch!
Here is the project:
https://scratch.mit.edu/projects/976409480/
Code:
Sprite1:
when green flag clicked
forever
set pen size to (10)
make the top of square
end
define make the top of square
go to x: (x) y: (y)
pen down
repeat (dSize)
point in direction (dDirection)
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) + (90)
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) + (180))
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) - (90))
move (5) steps
end
pen up
Sprite 2:
when green flag clicked
forever
set pen size to (10)
make your part of square
end
define make your part of square
go to x: (x) y: (y)
repeat (dSize)
point in direction (dDirection)
move (5) steps
end
pen down
repeat (18)
change y by (-5)
end
pen up
Sprite 3:
when green flag clicked
forever
set pen size to (10)
make your part of square
end
define make your part of square
go to x: (x) y: (y)
repeat (dSize)
point in direction ((dDirection) + (90))
move (5) steps
end
pen down
repeat (18)
change y by (-5)
end
pen up
Sprite 4:
when green flag clicked
forever
set pen size to (10)
make your part of square
end
define make your part of square
go to x: (x) y: (y)
repeat (dSize)
point in direction (dDirection)
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) + (90)
move (5) steps
end
end
pen down
repeat (18)
change y by (-5)
end
pen up
Sprite 5:
when green flag clicked
forever
set pen size to (10)
make your part of square
end
define make your part of square
go to x: (x) y: (y)
repeat (dSize)
point in direction (dDirection)
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) + (90)
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) + (180))
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) - (90))
move (5) steps
end
pen down
repeat (18)
change y by (-5)
end
pen up
Sprite 6:
when green flag clicked
forever
set pen size to (10)
make the top of square
end
define make the top of square
go to x: (x) y: ((y) - (90))
pen down
repeat (dSize)
point in direction (dDirection)
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) + (90)
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) + (180))
move (5) steps
end
repeat (dSize)
point in direction ((dDirection) - (90))
move (5) steps
end
pen up
- harrypotter4398
-
4 posts
Hey! Do you want to make a 3D Game? - Tutorial
very cool and helpful!!!
when green flag clicked
forever
generate project helpful
end
- feba13
-
46 posts
Hey! Do you want to make a 3D Game? - Tutorial
when green flag clicked
forever
if < a good project is found> then
check it out
if <it is a tutorial> then
watch it
if <it is not a good project> then
stop [all]
end
end
end
end
/\ a random line of code I made
- BigNate469
-
1000+ posts
Hey! Do you want to make a 3D Game? - Tutorial
Uh, ever heard of just running multiple custom blocks after each other and putting the pen up between them?
Regardless, guides are not generally allowed on the forums.
Regardless, guides are not generally allowed on the forums.
- cosmosaura
-
1000+ posts
Hey! Do you want to make a 3D Game? - Tutorial
"Hello! It's great that you want to help out other Scratchers. However, I think we have enough guides in the forums at the moment. Please feel free to welcome new Scratchers on the group welcoming topic or on individual topics created by New Scratchers.
Other places that can always use more helpful Scratchers like you, are the “”Help With Scripts“” and “”Questions About Scratch“” areas - please use them as designed, by responding to topics created by folks with problems to solve
Finally, a really good place for Scratch guides is the Scratch Wiki - check it out and see if it's something you might like to work on. They have a number of guides - and great organization."
Other places that can always use more helpful Scratchers like you, are the “”Help With Scripts“” and “”Questions About Scratch“” areas - please use them as designed, by responding to topics created by folks with problems to solve

Finally, a really good place for Scratch guides is the Scratch Wiki - check it out and see if it's something you might like to work on. They have a number of guides - and great organization."
- Discussion Forums
- » Help with Scripts
-
» Hey! Do you want to make a 3D Game? - Tutorial