Summary

Congratulations! You have just finished creating your first side-scrolling shooter. We covered quite a lot in this chapter. We have applied all three methods of movement: manually adjusting the X and Y coordinates, using hspeed and vspeed, and setting the speed and direction variables. We are now able to add and remove instances from the game world dynamically. With the bullets, we learned to transfer information from one instance to another, such as the direction to move, by capturing the ID of the instance and accessing it through the dot operator.

We discovered the wonderful with statement that gave us the ability to affect a single instance, all instances of an object, or even the other instance involved in a collision. We took a look ...

Get HTML5 Game Development with GameMaker now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.