One of my problems is that when I hold down the movement button while moving, the step counter doesn't deduct a step from the dice roll number at each tile unless I press the (left, right, forward, backward) button once. I would like it to deduct one step at each tile even when I hold down the movement button continuously. It would also be good if, when I hold down the movement button, the player can only move one tile at a time.
The second problem is that when I bump into a wall and continue to press the movement button in the direction of the wall, the step counter still deducts a step. I would like it to not deduct a step when the player is up against a wall and continues to move in that direction.
Is there a way to solve these problems? Can someone help?
The capx is in Dropbox.
dropbox.com/s/wm1pi09s1lk3uy9/tilemovment%20diceroll.c3p