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


In this chapter, we created the design of Flappy Bird, and you learned how to create a similar game. You learned about the sprite game object in detail; you also learned about two movement behaviors and how to manipulate them in the Properties bar and in the code.

You also learned about random generation and how to utilize that technique. Moreover, you learned about object picking in the event sheet. In this chapter, you learned about movement behaviors that we can use to move objects and also learned how to use instance variables in the game.

One thing is still left to be done in our code. If you check the event sheet, you will see that we made all the other objects stop moving when the player hits a rock to make it look like the game stop. However, we haven't made the rock and other objects stop moving when the player hits the ground. Can you modify the code so that the objects stop when the player falls to the ground?

If you're confused about how to write events or what each action...