Game Development Reference
In-Depth Information
Engage thrusters
We will demonstrate how to configure these variables:
grid_count
,
bad_food_start_
grid_idx
,
scroll_speed
, and
good_food_start_cos_idx
.
Tweaking the number of grids in the game
Perform the following steps to decrease the value of the
grid_count
variable:
1.
Go to the Game Manager sprite's
Scripts
tab.
2.
Find the
when <green lag> clicked
block, and enter a value lower than 10 in
the
set <grid_count> to ()
block.
Perform the following steps to increase the value of the
grid_count
variable:
1. Create addiional costumes for the brick sprite. Say we add ive more costumes
to make a total of 15 costumes.
2.
Go to the Game Manager sprite's
Scripts
tab.
3.
Find the
when <green lag> clicked
block, and enter
15
in the
set <grid_count>
to ()
block.
Tweaking bad food's appearance time
Perform the following steps to adjust the ime when bad thing and bad food appears:
1.
Go to Game Manager sprite's
Scripts
tab.
2.
Find the
when <green lag> clicked
block.
3.
To make the game harder, enter a lower value than 3, say
2
, in the
set <bad_food_
start_grid_idx> to ()
block. Therefore, the bad food would show up at grid 2,
instead of grid 3.
4.
To make the game easier, enter a higher value than 3, say
5
, in the
set <bad_food_
start_grid_idx> to ()
block. Therefore, the bad food would show up at grid 5,
instead of grid 3.
Tweaking the scrolling speed
Perform the following steps to tweak the scrolling speed:
1.
Go to the Game Manager's
Scripts
tab.
2.
Find the
when <green lag> clicked
block.