such a clever mechanic honestly, can you tell me how to make the growing stop when colliding with walls? it's been a massive difficulty when I made my game, the core of mechanic of the game was changing the size of the platform when the character touch it, I couldn't figure out how to make the grow stop whenever unfortunate events happened.
Viewing post in SquareScape jam comments
Thanks for playing my game... Yeah, stopping when colliding walls was really difficult. I used 8 small raycasts on each side of the character checking if there is a hit on both the left and right or up and down of the character if there is the scaling stops. Then whenever you scale and have a wall to your right but not to the left, the character used to clip through the right wall, so I had to move the character a bit to the left whenever it scaled to the right and had a wall to the side. I will upload the code to github in a few days (It is such a bad code, 2 days was not a long time). Anyways thanks for playing, and I'll let you know when I upload the code