Video Thumbnail

Unlock this lesson

Sign up for a plan to instantly unlock all premium lessons.

Unlock Lesson

Premium Features

Download Video

Player Movement

Getting your player to move around the screen requires event listeners for keydown events (pressing down on your keyboard). Once you learn how to listen for specific keys, you can react to these events and force your player to move by altering its velocity. This video will teach you exactly that and a few other techniques such as keeping your player confined to the visible area of your screen.

Comments

Want to participate?

Create a free Chris Courses account to begin

No comments yet, be the first to add one