I spent the majority of today fixing the world map. Previously, you could click anywhere on the screen and it would teleport you to the Rabga level regardless of where you clicked. This was due to me using a button as the way to sense clicks. This is designed for canvas's and not gameobjects, so I changed it to some code which detects when the player clicks on that gameobject and then carries out the loading procedure instead. This means you have to click on that gameobject instead of just anywhere on the screen which is obviously works much better, the problem where you can click it from anywhere even if the camera can't see it still remains however. I also added text which appears when you mouse over the level which tells you which level it is.
I improved the crouching by changing it from GetAxis to GetAxisRaw which results in less input lag. I also made it so knockback changes depending on your direction instead of always being in one direction.
0 Comments
Leave a Reply. |
AuthorMy name is William Hughes, and I study Games Development. I also am learning Web Development and general programming. Archives
May 2018
Categories |