Abstract
In Treasure Quest, the player controls a character named Hero whose goal is to find and collect the treasure chest. Along the way, there will be obstacles such as rocks that block the hero’s progress and enemies that attack the hero. The hero has a sword, which can be swung to destroy enemies (or any bushes that block the hero’s path). Coins are sometimes dropped by defeated enemies (or can be found hidden around the level), and they can be used to purchase objects such as hearts (which restore a health point) or bomb bags (which contain a number of bombs, which can then be used to destroy rocks). There are three varieties of enemies: one that flies randomly through the air, one that moves randomly on the ground, and one that actively seeks out and chases the hero. In this project, the game world is spread out across multiple layouts.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Note that the direction West has two corresponding angles; because of the cyclic nature of angle measurement, no matter what range of values is used, two different multiples of 90 (the minimum and maximum values in the range) will end up corresponding to a single direction.
- 2.
To implement this, you would need to consider adding the Pin behavior to keep the sword in the correct position relative to the hero, as well as some events to adjust the anchor point and z-order of the sword in the case that the hero changes direction suddenly.
- 3.
There is a much better way to accomplish the same goal using a feature in Construct 2 called Families, but it is available only in the paid, licensed version of the software. Since the projects in this book are all designed to be created with the free version of Construct 2, we will use the “single object, multiple animations” approach here.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Lee Stemkoski and Evan Leider
About this chapter
Cite this chapter
Stemkoski, L., Leider, E. (2017). Treasure Quest. In: Game Development with Construct 2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2784-8_14
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2784-8_14
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2783-1
Online ISBN: 978-1-4842-2784-8
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books