Drive It!

Sidebar
The 2Code Vehicle objects are ideal for driving around the screen.

Control Vehicles

When you complete the challenges in 2Code vehicles lessons, you can make your own program with the vehicles. This shows you how to control one of the vehicles when you press the arrow keys. You can drive it around the screen, on and off road!

Later, if you add collision detection, you can make the program react when the driver drives into one of the other vehicles.

Steps