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 Strange93 days ago
- Devlog - Inventory UI/DisplayNov 12, 2024
- Devlog - Inventory UI/Particle System - Douglas StrangeNov 08, 2024
- Devlog - Inventory UI - Douglas StrangeNov 06, 2024
- Devlog - Inventory - Douglas StrangeNov 01, 2024
- Devlog - 10/24/24 - Transition ScriptOct 25, 2024
- Devlog - Douglas Strange -10/24/24Oct 25, 2024
- Devlog - Tyler Linton -10/24/24Oct 25, 2024
- Devlog - Shawn Newlin - 10/24/24 - Tool Selection UIOct 24, 2024
Leave a comment
Log in with itch.io to leave a comment.