Dev Log 7
RiskyDigger_DEMO » Devlog
Originally, tile creation and removal were handled separately with right click and left click. Based on feedback from Zhan, I switched to using a single input for both actions. This introduced a problem where holding down the left mouse button caused tiles to be rapidly created and removed every frame.
To fix this, I changed the input handling from GetKey to GetKeyDown and GetKeyUp, so that once an action starts, the opposite action can’t be triggered until the input is released. Additionally, following a teammate’s suggestion to make digging feel more like Minecraft, I added a short delay; players now need to hold the button for 0.5 seconds before a tile is removed.
Leave a comment
Log in with itch.io to leave a comment.