DevLog - Tarrell Charles - 10/24/2024 - Combination input cheat code / Input system not working in code


Part 1: Combination input for cheat code / Input system not working properly in code

The problem I had encountered on my weekly tasks was that I couldn't get the input system to show up properly in my code which ultimately led to the next problem which was my cheat code was giving me issue with doing a combination cheat code. For the user of the product, the issue would be that there would be no way for the developers of the team to use the skip to next day cheat code as this was called.  

Part 2:  Called input a different way

What was causing the issue is unity and visual studio, and the reason being is because it had me puzzled that I wasn't just able to call Input.GetKey inside of my if statement. Basically, the solution to my problem is that I had to call UnityEngine.Input.GetKey in order for it to work properly and not give me errors which was pretty awkward. With this solution, the inputs were properly functioning for the cheat code. The way I fixed the cheat code is that I had to call UnityEngine.Input.GetKey then do a && UnityEngine.Input.GetKeyDown in order for it to properly function. Overall, this solution gives the developer a cheat code to activate when they want to skip days.

Get Noble Roots

Leave a comment

Log in with itch.io to leave a comment.