Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Stencyl Essentials

You're reading from  Stencyl Essentials

Product type Book
Published in Apr 2015
Publisher
ISBN-13 9781784399450
Pages 206 pages
Edition 1st Edition
Languages
Author (1):
Richard Sneyd Richard Sneyd
Profile icon Richard Sneyd

The dynamic cursor


One of the most important HUD elements in our game prototype is the dynamic cursor. Put simply, this is a special-purpose actor that we will create to replace the regular mouse cursor. It changes the animation, depending on the current movement state of the Player Character, hence the designation dynamic. To create the dynamic cursor, perform the following steps:

  1. Create a new Actor Type, and name it Dynamic Cursor.

  2. Select the Click here to add a frame button to import your first frame. Navigate to and select Game Assets\Graphics\GUI Elements\down.png.

  3. Change the Name of the animation to Down.

  4. Switch to the collisions context. Select the default collision box, and hit on Delete, as we will not need to calculate the collisions for this actor, as shown in the following screenshot:

  5. Duplicate the Down animation, as shown in the following screenshot:

  6. Change the new animation's name from Copy of Down to Left.

  7. Remove the redundant frame that is carried over from the Down animation, as...

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 $15.99/month. Cancel anytime}