I'm trying to push a box - that works, but I want to make sure that it can't move at an angle that isn't 90, -90, 180, -180 so it doesn't move slanted. I also want to make it so you can hold the interact button down/a directional key to push the box after you grab it - but as you're grabbing it there's a different walking animation playing for the player(one for pushing!)
and while I'm here... what is the best way to achieve pulling an object with the same mechanisms I'm trying to do lol?
My idea right now is a combo key for A and movement axis'. But I don't know how to necessarily set it up where it would work like:
Pushing: Player moves box to the left. To do this they hold down a/left axis to continuously move object to left until it falls or until the player lets go the keys, ending the event
Pulling: Player pulls box to the left towards them. To do this they hold down a/RIGHT axis to pull it towards them.