Hi - My student’s program has a sprite shooting arrows. His problem, in his words, “the ‘e’ button can be used multiple times without the arrow hitting something. I can use the code as much as i want but that’s the problem. I want the arrow to go off the screen before the code can be called again. Once the arrow leaves the screen I want the ability to call it again without it being used while the other arrow is still visible.”
Lines 47 through 59 contain the area of question.
What he expects to happen is that the arrow will shoot off the screen before allowing another arrow to be shot. What is happening is it is continuing to loop. He worked on trying to end the loop before it shoots another arrow but he doesn’t know how. I am not able to help him - he is ahead of me : - /
I pasted his code above as well as below here: