Moving image
in
Programming Questions
•
6 months ago
Hello again. I'm trying to move The Joker along these lines, but when I get to the third arrow it gets stuck in there and I don't know how to avoid that. How would you do it?
Thanks in advance.
- image(joker, jokerX, jokerY);
- jokerX+=2;
- if (jokerX==520) {
- jokerX-=2;
- jokerY+=2;
- if (jokerY==240) {
- jokerY-=2;
- jokerX-=2;
- }
- }
Thanks in advance.
1