Im making an Age of war type game and im struggling to make my sprites move and stop when needed. I currently have both my knight and my skeleton run where if they see eachother at the same offset they will set movmeent to 0 and start the attack animation, Else set moving to 1. What happens is they overlap and instantly keep moving no matter what. Im wondering if the else statements are making it stay set 1 because i also have it to where if a knight sees a knight in front of it it will stop moving using the same offsets and else statement.