Hello community. I make a Zelda-like game, but with some improvements. So the thing I'd love to know is:
How can I make my character drag the boxes? The thing is I've tried to use some thing from the forum, but they didn't really work. My game is top-down, I've made a pushing function, but have no idea on how to PULL objects. I've tried to make this:
- If player is on collision with box ->
- AND if I press Z:
Box pins to the player. But I can move in all the directions with this box being pinned, but I need to move only in 2 directions: if I dragged that from the left side player should be able to move it only in the left side. Same with right, up, down.
Thanks for attention and sorry for my English. PLEASE HELP ME <3