Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
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
Stencyl Essentials

You're reading from   Stencyl Essentials Build beautiful, unique, cross-platform games rapidly with the free Stencyl 2D game engine and toolset

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher
ISBN-13 9781784399450
Length 206 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Richard Sneyd Richard Sneyd
Author Profile Icon Richard Sneyd
Richard Sneyd
Arrow right icon
View More author details
Toc

Backgrounds and foregrounds

While the asset type is referred to as a Background in Stencyl, they can be used as either backgrounds or foregrounds within our game levels, which means that we can place them either behind or in front of the active play area of our game. In particular, in the case of platform games, the use of both foregrounds and backgrounds with staggered parallax scrolling speeds can create a real sense of richness and depth in our game worlds.

Adding our first background

If the empty game project, we created at the end of Chapter 2, Starting the Game Project, is not open on your computer, please reopen it now. On the Dashboard, on the left-hand pane with the list of available asset types, click on Backgrounds. You should see the following screenshot:

Adding our first background

Click on it, and you will be presented with the following window:

Adding our first background

Provide a Name for your new background. As a general principle, it is best to be as descriptive as possible at this point so that it is easier to distinguish between...

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