Goal:
Moving left and right is almost identical to moving up and down on the screen, except that we are going to change our X-Wing’s x coordinates and not the y coordinates.
Let’s code our right movement (positive x direction).
Steps:
- From Control, place an IF statement block.
- From Sensing, place a key space pressed block.
- Click on the triangle to open up the menu and select right arrow.
- From Motion, place a change x by block.
- From Variables, place a speed block.