When the hint shop scammed the player
During Development of the shop that sold hints to the key item locations, if the player closed and re-opened the shop and tried to buy something, the shop would try to sell the player that hint multiple times even though you can only buy it once. After trying to debug it, we found that the shop would run the buy item function multiple times due to the buy button being bound to the function multiple times when the shop menu closes and opens again.
After trying multiple things including removing the bind when the shop closes, I remembered that there was a function to completely delete the shop UI and then recreate it when it needs to be opened. Before, we just removed the shop UI from view and would bring it back into view when the shop opens. When I made this change, I had to put in some measures to make sure things are accurate. Specifically, checking if the player has bought an item or not and updating the shop to show its sold out when the player opens the shop.
In Plain Sight
Status | In development |
Authors | 6SidedStudio, TrayCoats, Jonathan Kohl, wunt, Kyu, Glitch, DeltaCompany |
Genre | Puzzle |
Tags | Fantasy, First-Person, Horror, Stealth |
More posts
- Death And RebirthJun 01, 2024
- Missing Projectiles - Jonathan KohlMay 31, 2024
- Town AlarmMay 31, 2024
- Opening back up the Opening.May 31, 2024
- Try, Try, AgainMay 30, 2024
- Town Alarm Collision DetectionMay 25, 2024
- Grappling hook and Shifting prioritiesMay 25, 2024
- Making Cutscene is Time ConsumingMay 24, 2024
- Trouble Returning Ritual Items – Jonathan KohlMay 24, 2024
Leave a comment
Log in with itch.io to leave a comment.