Posted April 28, 2024 by utas_ty
This week basic eight way movement has been implemented. This is currently controlled by using WASD with diagonal movement being enabled by pressing two respective keys together e.g. W + D for north east.
Basic character art and animation has been added. Currently only animations for idle and walking have been added. There are only animations for left and right movements. This is because up and down animations are not needed as a way to keep the perspective of the player correct as the game is being viewed more front on rather than from a top down perspective.
Have added a basic background and enemy to serve as testers for the players collision.
Basic camera movement has been added to track the player and interact with the world bounds. This has been done by using Cinemachine.
Basic local multiplayer has been added. There were a lot of things I had to consider when creating the second player and I was worried about having to do everything twice or more to accommodate for more players. In order to avoid this additional players are made from the existing main player prefab and assigned different controls. The main camera will always follow the first player and so I've added some logic to keep the other players always in the cameras bounds while still allowing other objects to exist outside of it. Currently the second players controls are bound to the arrow keys.
I plan to add controller support once i have some other basic player features in place such as attacking so i can bind them all at once. Will also look into adding the ability for players to rebind keys.
Currently objects can go behind each other but may display on the incorrect layer causing some odd looking visuals. I plan to implement a system that allows objects to appear in front of or behind each other correctly.
Can probably add some logic to the movement to allow the animation to maintain direction when travelling up or down.
Will move walking animation to the starting frames rather than the middle of the animation frames.
Will definitely be improving these as I get further into this project. Focusing on getting the proper game functions working correctly first.