Game Development Reference
In-Depth Information
still less than 100 , it means the level should keep running by checking whether
the Blocks parent transform Relative Location on the Y -axis is more than -3400
(which is the full loop of the four blocks the level is made of).
• However, if Relative Location on the y axis is less than -3400 , it means that the
level is finished and I need to reset the position to the default one (which was 0 on
the Y -axis), show all of the collectables again using a custom event called Show
Collectables , and finally, start moving the level again using Add Relative Loca-
tion and adding a small value to the Y -axis. I managed to make a float variable for
this small value and called it Runner Speed because changing this value will
change the overall speed of the level, and it can be used later for game design pur-
poses to increase the speed over time or over the player's performance.
However, if Relative Location on the y axis value is not less, it means the camera
is still showing new parts to the player, so I keep using Add Relative Location to
move the Blocks transform object.
Search WWH ::




Custom Search