Player Movement and Controller Support


First Flight 

This release is the first of a series while Hailscorn is in development and focuses primarily on the method used to implement player movement in the game using some placeholder assets and level design to provide a playable demonstration.

Player movement

For the player movement  the keyboard controls that have been implemented alow for a classic eight direction movement on a 2D plane. The speed of the player is stationary within the camera or movint at the maximum magnitude of the speed coded into the movement script without any gradual acceleration. 

The controller movement however uses the raw input from the analog stick axis to set the velocity ofthe player and allows for finer adjustment of the players speed as well as allowing for true 360 degree directional input.

Controller Support

Adding support for multiple controllers into the game was a fairly straightforward process. using the Unity Input manager to enable the controller axes as valid inputs for the game was a relavtively intuitive process. The only hiccup in the process was figuring out which of the 15 or more joystick axes in the editor repreented the buttons on the controller. 

Below is a handy video that I used to help with identifying the button mapping:

Files

Hailscorn_v0.1.zip 9 MB
Sep 08, 2023

Get Hailscorn: Fire From the Skies

Leave a comment

Log in with itch.io to leave a comment.