Week 6
Programming for Animation » Devlog
This lesson I created a pyramid which allows you to input your own numbers and have the pyramid be bigger or smaller.
I created a function called pyramid
that takes two arguments: size
and height
. The size
argument specifies the width and depth of each cube in the pyramid, and the height
argument specifies the height of the pyramid. Then the function loops that creates a cube using the polyCube
command, that moves it to a new position using the move
command, and increases the height
variable by 1 and decreases the size
variable by 1. Then I scripted it to call the pyramid
function with the arguments 10
and 1
, which will create a pyramid.
Programming for Animation
Status | In development |
Category | Other |
Author | RaeesMalik |
Leave a comment
Log in with itch.io to leave a comment.