Since we want our enemy to fall down, we are going to use negative numbers. Set "y speed" to -1 and "gravity" to -0.3 What would happen if we changed these numbers to positive? What would happen if we increased or deceased these numbers?
If we want are enemy to stop after if hits the ground what type of loop will we use? Do we want our enemy to fall forever? Do we want our enemy to fall for a specific number of steps? Do we want our enemy to fall until a certain condition is met?
Using a "repeat until ____" loop, Let's build an inequality based on the y coordinates that we stop enemy movement once the enemy reaches the bottom of the screen. First we'll need a " ___ < 50 ?" block from Operators, then grab a "y position" block from the motion tab. Finally adjust the coordinate to be the bottom of the Screen, or y= -170.
We created y speed and gravity earlier in the project. Using some motion blocks and variable blocks, let's get the enemies to accelerate as they fall. Get a "change y by ___" block from the Motion Tab, and a "change ___ by ___" block from Variables. Then we'll plug in the "y speed" and "gravity" blocks to these two blocks. "y speed" will go with the motion block and then we will change "y speed" by "gravity".