Importing Sound To Game Using Construct 2

Introduction

Construct or Constructor is a tool based on the concept of 2D game creation without using coding. Now in this article, I will explain how to design the game start page using Construct. Construct 2 is a powerful HTML 5 game creator,  designed especially for 2D game creators.

Multiplatform support

We can easily export it to Chrome Web Store, & Firefox Marketplace or use our Scirra Arcade to share your creations.

You will need:

  • PC (or) a laptop with the ability to work on Constructor 2
  • Constructor 2 game engine
  • HTML 5 compatible Browser

Overview

In this article, the concept is based on importing music with Constructor 2.

Step 1

Change the active layer to main by clicking on the Main layer in the layer bar, the above layout sheet is named Level1, see the below template,

Constructor

Step 2

On the left hand side you will see that project bar, we want to select the Project bar->right click-on.

  1. Select Option->(Import music)

You are seeing the following template image below,

Constructor

Condition

  1. Import music ->Format-(OGG)
  2. Download Folder
  3. Open.

    Constructor

Import Audio Files

  1. Select (Music)
  2. Import
  3. Successfully imported
  4. Ok.

    Constructor

    Constructor

Step 3

We want to open the Event sheets, Add event->click-on,,

  1. System
  2. click-on->Next.
  3. on Start of layout
  4. Done.

Constructor

Constructor

Step 4

Add action->Click-on,

  1. Audio
  2. Play
  3. Next.

Default open parameter audio file

  • Audio file: (Music-OGG)
  • Loop: Looping
  • Volume: 0
  • Done.

Constructor

Constructor

Constructor

Constructor

Output

Finally, press F5 to run. Browser will display the following output.

Constructor

Conclusion

We created sound import with our game, using Construct 2. We will see advanced game development concepts in the upcoming articles.

I hope this article will be useful. Thank you for reading .


Similar Articles