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 — using lights and shadow casters


Lighting and shadow engines are normally used in 3D games to add realism to the scene, but rarely they are also used in 2D games to improve visuals as well.

  1. 1. On the LevelLights layer, create a Light object called WhiteLight and accept the default image it comes with. Set its Shadow filter property to WebBlack and its Shadow opacity to 60%.

  2. 2. Place the object in your layout where you would like light to come in from:

  3. 3. Now on the ShadowCasters layer, create a Sprite called ShadowMask and fill it with Black. Give this object the Collisions mode None and check the box for Destroy on Startup before adding the Shadowcaster behavior to it and setting Shadow depth to 1 and the shadow Collision Mask to Bounding Box.

  4. 4. Now switch over to the Game events, and in the Startup group add sub-events For each Ground object and For each CrateBox object to the main Start of layout event.

  5. 5. For the first sub-event, add actions to create the ShadowMask object...

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