Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Efficient 4 direction control

Utilizing keycode as input parameter (and trigonometry), I am able to put 4 direction keystroke detection within single block of code


Keycode 37 = left arrow

Keycode 39 = right arrow

Keycode 40 = down arrow

Keycode 38 = up arrow

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.