Book Image

Learning Construct 2

By : Aryadi Subagio
Book Image

Learning Construct 2

By: Aryadi Subagio

Overview of this book

Table of Contents (17 chapters)
Learning Construct 2
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


We covered a lot in this chapter. You learned about a container in Construct 2, what its traits are, and how to make it. You also learned about two new behaviors: the Pin behavior to easily follow an object and the Pathfinding behavior to look for a path and move along on it. You also know that the Pathfinding behavior can evade obstacles on the screen, both the default kind of obstacles and the custom ones.

One more behavior that we covered in this chapter is the Turret behavior that can recognize targets and shoot them. You also know about the action to scroll the layout in the game without using a Scroll To behavior. You learned how to import sound files to Construct 2, which file type is good when importing, whether to import them to the Music or Sounds folder, and how to play them in the game with the Audio object. Finally, we used the value stored in an array in the gameplay, instead of simply using it to store the player's high score.

Try to expand this game yourself. What happened...