In my game, when the player goes into the water he starts swimming.
But if the user clicks the left mouse button, it triggers the attack skills, and the player will perform an attack, and then he will stop his swimming, and he will walk on the water.
So, I want to disable the left mouse button while the player is swimming, or if the user clicks the left mouse button while the player character is swimming, it must trigger nothing. I have a local variable for “swimming”, so maybe some way that if that variable is true then the left click is disabled?
(The red circled “If button goes down” is just to show what normally happens when the user clicks the left mouse button.)
I have tried various blocks and I can’t find anything that allows me to do this. Anyone have any ideas?