I will try to explain as good as i can.
I have my character. And on the back i have a device that can shoot a chain.
When i press and hold the spacebar the chain fires,and when i release the spacebar it retracts.
Both the player and the chain have 8 direction, and chain moves where the player moves.(so far so good)
But when player hits/overlapping a wall and i keep pressing arrowkeys then the player stops but the chain keeps going.
How do i stop 8 direction movement on the chain when the player has stopped?
I have been working on this problem for 2 days now and need help.