How do I shoot a ball without making my App Crash?

I made a button move a ball( I called this ball a bullet) to a certain location and made it move forwards when a timer was called, but when I do this MIT App Inventor crashes. What do I do?
Screen Shot 2021-01-02 at 16.56.30

Place your .aia project here.

Oh Thanks for replying but I solved it.

Then please post the solution so other people with the same problem can be directed here.

How do I stop a ball from crashing the app when it hits the edge of the canvas?

  1. Don't post multiple threads on the same topic.
  1. Learn to ask questions.

Share how you solved your original problem. This community is for giving and receiving help.

I made it so that when I click a button, the ball moves to where the imageSprite is and then a timer is enabled so that when the timer fires, the ball moves forward on the canvas a certain amount of pixels. Also make sure your imageSprite Y or X is not on the edge or else the app is likely to crash.
Screen Shot 2021-01-04 at 14.57.51

Thanks for that.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.