After class we discussed how we were going to go with the presentation and the alpha, I decided to work on improving the enemy ai so that they aim at the player, editing the package so that you can press a button and grab it, and working on implementing some menus so players have a start menu and a controls menu.
When working on the enemy AI I realized that I needed to change how I was moving the enemy, since they were using the transform.translate function (which is relative to every object). So if an enemy were to turn while moving forwards, that forwards is not the same anymore. The solution I used was to just have the enemies move on a vector, which is better for the long term anyway. Implementing the new package system was pretty easy luckily, I just made a trigger collider and if the player was inside then they can press “e” and pick up the package. I also made it so the package has a spawn point so it no longer looks like it just attached wherever it can. Finally, I implemented a stand-in title screen and controls screen which allows for new players to learn how to move their character.
コメント