Please turn JavaScript on to use this site.
Worlds
Minds
Users
Uploads
JS code
Search
Worlds
Minds
Users
Uploads
JS code
Intro
Introduction
Features
Definitions
How to run Worlds
Teaching practicals
The AI model
Learn
How to code
How to code P5
Tutorial (P5)
How to code Three.js
Tutorial (Three.js)
Coding course
Coding course II
Coding for kids
WebGL course
AI exercises
Browse
Starter Worlds
Editor's Choice
Multi-user Worlds
P5 Editor Worlds
Coding Train Worlds
AI Worlds
Random Worlds
Advanced search
Docs
JavaScript
P5
Three.js
AB
APIs
AB World and Mind
AB runs
AB legacy
Resources
Ace editor
Register
Register
Forgot password
Login
Step 8. Variables in p5.js (Make your own)
Here we make our own variable, which increases over time, making the x-value position of the object change over time. Clone it and make it change at a faster rate. Make the y-value position change too.
Video
From:
Tutorial 2.2: Variables in p5.js (Make your own)
World
Tutorial 2.2
Variables in p5.js (Make your own)
Clone and Edit
Previous
Next: Step 9 of 17
Tweet this step: