Game Development Reference
In-Depth Information
4.
From the Operators tab, drag out the <?>* <?> block and drag the direcion block to
make the <x posiion> + (<direcion> * <move_steps>) block visible.
5.
Build the go to x: ( <x posiion> + ( <direcion> * <move_steps> ) ) y: <y posiion>
block.
6. Add this script to deine the direcion using the define Move Horizontally
<direcion> block.
Let's add scripts to move the Spaceship when a user hits the right or left arrow key as
follows:
1.
Start with when <right arrow> key pressed . Move to the right via Move
Horizontally <1> .
 
Search WWH ::




Custom Search