I'm trying to create a system where the player moves toward the mouse position while the left mouse button is held down — similar to how movement works in the game Magicka, for those who are familiar with it.
The only simple solution I could come up with is shown in lines 1 and 2 of my code. However, I'm facing two issues:
The player stops completely when colliding with a solid object. I know this is because the "Stop on solids" property is enabled in the Player's MoveTo behavior, but I couldn't find a way to make the Player slide along solids — similar to how it works with the 8 Direction behavior.
In lines 4 and 5, I tried to reduce the wall's opacity so the player remains visible when behind a wall. However, something isn't working properly — the opacity effect doesn't behave as expected (for reference, I'm aiming for something similar to how Stardew Valley fades out trees when the player walks behind them).
I'd really appreciate any help. Here's my .c3p file:
drive.google.com/file/d/1-bdRyXHK57srm2AKmoZ0pQJdy6i6Turg/view