Example
Example
Watch how each enemy is faster than the last. This is an extreme example!
Fully understand the concept by watching the tutorial in full screen at high res.
There are many ways to increase the difficulty of your game over time. This code increases the speed of the enemy slightly each time it leaves the screen. Other ideas include increasing enemy health, increasing the number of enemies etc. It is a good idea to limit the max speed as done here so things don't get ridiculous!
The 'randRange' function is not built into microStudio, you will have to go here and click import source file .