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
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
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
 Sneyd Sneyd
Author Profile Icon Sneyd
Sneyd
Arrow right icon
View More author details
Toc

Collecting coins


Before we can begin with programming the coin collection gameplay, we need an actor in our game that will represent the coins. Let's create one now, using the now familiar Actor Type creation workflow that we established in the earlier chapters, by performing the following steps:

  1. In the Dashboard tab, under RESOURCES, select Actor Types, and click on Create New.

  2. Set the Name to Coin, and click on Create.

  3. Click on This Actor Type contains no animations. Click here to add an animation.

  4. Change the Name of the animation from Animation 0 to Default.

  5. Ensure that Looping? is checked. It should be checked by default.

  6. Click on the Click here to add a frame button.

  7. Set Scale to 4x, and Resize Method to Bicubic if these are not already set by default.

  8. Set Columns to 6.

  9. Click on Choose Image..., then navigate to and select Game Assets/Graphics/Actor Animations/gold coin anim.png.

  10. Click on Add to import this 6-frame sprite-sheet into our Default animation.

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 £13.99/month. Cancel anytime
Visually different images