Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

This is awesome. I assume the inspiration comes from The Witness, which is a favorite of mine, really cool that you were able to build this behavior out. I’m curious how you did it? I’m thinking it must be a Raycast from the camera through the cursor each tick, and if that raycast ever hits something not tagged as Foliage it loses the magic? I’m not sure how you did the part that partially recolors the models though, that was cool. Overall lots of really good bits of polish and animation that bring this all together, really nice chill puzzle game, great job.

(+1)

Yes you assumed right! I initially wanted the overlaps to connect more like the Witness, but that ended quickly. Absolutely loved that game. Love to meet a fellow fan :)

The behaviour uses raycasts. I track where the click started. look for overlaps (using RaycastAll) to transfer the focus. There's also a hidden flat collider that centers on the cursor and looks at the camera, just in case the player's mouse is still clicked and moves off foliage. It's to help avoid having to reselect. The colours/recolours were a custom shader that used the mouse tracking as parameters (point on start side of foliage,  mouse position, opposite side of foliage). It moves in reverse if the transfer doesn't complete.

Thanks for playing. I'm so glad you enjoyed it!