Game Development Reference
In-Depth Information
Now, let's create the Robot sprite:
1. Right-click on Rock and select duplicate to create Rock2 .
2. To change the name from Rock2 to Robot , click on the round i icon, and change
the name to Robot .
3. Create the Robot sprite costumes by navigaing to <chap4_images_dir>\
costumes\enemies\robot and then import normal_robot.svg and hit_
robot.svg .
4.
Verify whether the Robot sprite has both the normal and hit costumes as shown in
the following diagram:
Let's make Monster and Robot faster and shoot out more ammo. To do so, we will change
the min_speed , max_speed , and shoot_random_wait variables. Navigate to Monster's
Scripts tab and change its scripts as follows:
1.
Add the when <green lag> clicked script.
2.
Use set <min_speed> to () and change its value from 4 to 5 .
3.
Use set <max_speed> to () and change its value from 8 to 10 .
4.
Use set <shoot_random_wait> to () and change its value from 1000 to 100
(wait less, shoot more often).
The final script will look like the following screenshot:
 
Search WWH ::




Custom Search