I finished the dasher course and wanted to add some functions but i dont rly know how,
i want the game to become faster the longer the player lives, or after reaching some kind of Checkpoint.
Hi Duncan,
Time would likely be the easiest mechanic to implement for Dapper Dasher so I’ll give some hints and leave the rest for you as a challenge.
-
You can store the value of deltaTime (dT) each frame (each iteration of the while loop) to keep track of time. Storing it in some float variable we can call “elapsed”
-
We can then use an if-else statement to modify the velocity of our nebulae based on the value of the elapsed variable.
This should be enough to get you going, good luck and happy learning!
1 Like
Thanks
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.