Project 95: Cannon Physics

3. Aim the Cannon with the Mouse Pointer

Let's take advantage of the mouse pointer to aim our Cannon. We'll utilize a "forever loop" and the "point towards ____" block in motion
Starting point file for this challenge

Your goal

Steps

1. Aim the Cannon at the Start

Let's add a "when green flag clicked"  and "point in direction __" from the Motion Tab to our Cannon Sprite's Code Page.  Then put them together and set the angle to 45.

2. Include Mouse Following

Let's also try out  one of the "point towards mouse-pointer"  blocks from the Motion Tab.  We'll stick to one for now, but it would be great to not have to Click When green flag every time we want to aim.

3. Add a Forever Loop.

Let's place a "forever" from the control tab around "point towards mouse-pointer". This makes the Cannon always follow the Cursor.