Coding an Animation


This code is used to create a window that would allow the user to generate a simple moving object animation of either a ball or a sphere.

To do this we use a button that runs the animation function. Within the function we use a loop, after generating a poly object, to change the position of the cube, change the time in the timeline and then set a keyframe for the "translateX" variable. Though simple this works well as a basic understanding of how animation would be possible through coding.

Leave a comment

Log in with itch.io to leave a comment.