Example
Example
These two monsters are re-used to give the illusion of many monsters.
Fully understand the concept by watching the tutorial in full screen at high res.
Once you have watched the video, you can refer to the code below to help you make your own that fits your game. Make sure you type it yourself to help you learn.
First you will need to make an object for each enemy. You can do that like this...
... or like this:
Remember, the 'randRange' function is not built into microStudio, you will have to go here and click import source file.
Also, remember that if you set your game to the usual 16:9 screen ratio, your co-ordinates will look like this.