Game Development Reference
In-Depth Information
2. We make the sprite go back 10 layers instead of 5 by entering
10
in the
go back ()
layers
block.
3. We enter
80
in the
set size to () %
block to make the sprites a bit smaller.
These objects are a bit further in the distance.
4. We will emphasize by placing them a bit higher on the stage. We change its
staring y value to
-100
.
5. These objects will also move a bit slower because they are more distant,
so we change the value of
speedMultiplier
to
1.5
.
6. We also need to change the random height range to correspond with the
new basic height. A value between
-90
and
-110
should be okay.
For the second copy, we make similar changes with the following values:
F
Enter
15
in the
go back () layers
block
F
Enter
60
in the
set size to ()
block
F
Change the staring value of y to
70
F
Change the value of
speedMultiplier
to
1
F
Enter the values
-60
and
-80
for the height range
The parallax background is now ready to go as shown in the following screenshot: