Step 4: Enemy Movement
Depending on the Direction alterable string of each Enemy, X Speed amount of pixels will be added to or subtracted from the X Float every frame. Regardless of the skin, we also set the animation direction to the direction stored in Direction. You will see why in a little later.- Direction of
= "Left"
: Sub X Speed( "
" ) from X Float
: Set direction to
- Direction of
= "Right"
: Add X Speed( "
" ) to X Float
: Set direction to

7