Game Development Reference
In-Depth Information
2.
Start with
when <let arrow> key pressed
. Move to the right via
Move
Horizontally <-1>
.
Vertical Movement
To write the code for the verical movement, we will also create a custom block.
The steps to write the code for verical movement are as follows:
1.
Create a custom block named
Move Verically
.
2.
Right-click on the body of the
Move Horizontally
block and select
duplicate
.