Game Development Reference
In-Depth Information
4. Use the rotaion handle to rotate the arm and hand as shown in the
following screenshot:
Using the same technique (duplicate costume, then move or rotate body parts), you can easily
create costumes that can be used in animaion loops. The complete project includes three
costumes, namely
robot
,
,
,as shown in the following screenshot:
To create an animaion loop for the let arm up and down, perform the following steps:
1.
Start with the
when <a> key pressed
block.
2.
Set the
switch costume to <robot>
and
wait (.2) secs
blocks. Note that the delay is
needed for this costume to show long enough for the game player to see.
3.
Set the
switch costume to <let arm up 1>
and
wait (.2) secs
blocks.
4.
Set the switch
costume to <let arm up 2>
and
wait (.2) secs
blocks.
5.
Set the switch
costume to <let arm up 1>
and
wait (.2) secs
blocks.