So this is just example but here my aim is: So that when the cat is in level with the wizard the wizard moves towards the cat but when the cat is higher than the wizard the wizard moves backwarsd. Could someone help me with this? Use arrow keys to move as the cat.
HOW CAN I MAKE THIS BETTER? Stay in the same position the wizard goes to u! if u go up, using arrow keys, the wizard moves away, right? But once you have gone up.. You want to come back down, but when I go back down, the wizard only moves a couple of steps and stops, thats becasue I didnt put a forever.... but if I put a forever the code doesnt work, could u help?