Skip to main content

Treasure Quest

  • Chapter
  • First Online:
Game Development with Construct 2
  • 809 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 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. 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. 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

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics