Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Stencyl Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
Stencyl Essentials

Stencyl Essentials

By : Sneyd
4.4 (5)
close
close
Stencyl Essentials

Stencyl Essentials

4.4 (5)
By: Sneyd

Overview of this book

If you are a computer game enthusiast who has always wanted to know what it takes to build a playable game, or maybe you would like to expand your programming knowledge so that you can develop great computer games using a solid game engine and toolkit, then this book is for you.
Table of Contents (14 chapters)
close
close
13
Index

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:
    The dynamic cursor
  5. Duplicate the Down animation, as shown in the following screenshot:
    The dynamic cursor
  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...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY