Game Development Reference
In-Depth Information
9. If this is true, then we add a create clone of <myself> block.
10. Finally, enter the value 0.5 in the wait () seconds block and wait so that there
is a litle delay between the creaion of each clone.
The following screenshot shows the final script:
To set the clones in moion, we create a second script as follows:
1. We start with a when I start as a clone block.
2. We will enable the show block to show the clones which were previously hidden.
3.
Next, we add a repeat unil () loop.
4.
For the condiion, we choose touching <edge> .
5.
So we can delete this clone when it touches the right edge of the stage using the
delete this clone block.
6.
Inside the loop, we place a move () steps block to make the spear move forward;
enter the value 5 in it.
The following screenshot shows the final script:
 
Search WWH ::




Custom Search