Video Thumbnail

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

UNLOCK LESSON

Premium Features

Download Video

Player Movement

Published 3 years ago

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

Login
g
gdevs posted 2 years ago
1

Providing the lift to launch your development career

© 2024 Chris Courses. All rights reserved.