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
Noble Roots
Status | In development |
Authors | PentaCogStudios, Tyrano, shawn0173, ADiscount4U, TarrellC246 |
Genre | Simulation |
Tags | Fantasy, Farming |
More posts
- Devlog - Hot Bar/Inventory UI - Douglas Strange2 days ago
- Devlog - Inventory UI/Display10 days ago
- Devlog - Inventory UI/Particle System - Douglas Strange14 days ago
- Devlog - Inventory UI - Douglas Strange16 days ago
- Devlog - Inventory - Douglas Strange21 days ago
- Devlog - 10/24/24 - Transition Script28 days ago
- Devlog - Douglas Strange -10/24/2428 days ago
- Devlog - Tyler Linton -10/24/2428 days ago
- Devlog - Shawn Newlin - 10/24/24 - Tool Selection UI28 days ago
Leave a comment
Log in with itch.io to leave a comment.