We want the Cannon Ball to launch when the mouse is clicked and return to the cannon and hide when the mouse isn't clicked. Take advantage of the Looks Tab and conditional statements in the Control Tab
Let's grab a "when green flag clicked" and "hide" block from the purple Looks tab. Connect them and test the green flag now. Finally wrap the hide in a "forever" loop. Think about when we want the Cannon Ball to show up in the simulation.
Add a "if ____then _____ else _____" block from the control tab to the forever loop, then add a "show" block to the if side, and move the "hide" block from earlier inside the else side.
Use the "mouse down" block from the Sensing tab as our Launch Condition, we should also add a "repeat until" loop below the "show" block to move our Cannon Ball through the launch.