Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Construct Game Development Beginners Guide

You're reading from   Construct Game Development Beginners Guide A guide to escalate beginners to intermediate game creators through teaching practical game creation using Scirra construct with this book and ebook.

Arrow left icon
Product type Paperback
Published in May 2012
Publisher Packt
ISBN-13 9781849516600
Length 298 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Daven Eric Bigelow Daven Eric Bigelow
Author Profile Icon Daven Eric Bigelow
Daven Eric Bigelow
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Construct Game Development
Credits
About the Author
About the Reviewer
www.PacktPub.com
1. Preface
1. Our First Look at Construct FREE CHAPTER 2. Hello World! Construct Style 3. Adding the Challenge 4. Making Noise 5. Practical Physics 6. Custom Levels 7. Platformer Revisited, a 2D Shooter 8. I'm Throwing a Grenade! 9. Our Final Moments Pop quiz Answers

Time for action — add some music to our game


Our player doesn't have anything to listen to while playing our game. We're going to change that by adding a looped MP3 music file to the game.

  1. 1. Find a song file of the MP3 format (.mp3) that you would like to play in the background of your game.

  2. 2. Rename this file to Game.mp3 (or simply Game if you do not have file extensions visible).

  3. 3. Put the renamed song file in the same folder as our game project, and then open up the game in Construct Classic.

  4. 4. In the Layout Editor, select the layer Game and then insert a new object into the layout.

  5. 5. Choose the object XAudio2 from the object group Audio and click on Insert.

  6. 6. Now switch over to the Event Sheet Editor and insert a new event. Choose the highlighted event Start of layout from the System object and click on Finish.

  7. 7. Add an action for this event and choose the XAudio2 object. Select the highlighted action Play music from file and click on Next.

  8. 8. In the next screen, enter the text AppPath...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image