Book Image

Stencyl Essentials

By : Richard Sneyd
Book Image

Stencyl Essentials

By: Richard Sneyd

Overview of this book

Table of Contents (20 chapters)
Stencyl Essentials
Credits
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Preface
Index

What are actors?


In Stencyl, only two resource types can have Behaviors or code attached to them. The relevant Behavior types are as follows:

  • Scene Behaviors: These are attached to Scenes and are usually used to handle more global events, such as timers and score keeping, not specific to one actor

  • Actor Behaviors: These are attached to Actors themselves and are generally used to govern their movement around the level, their physical interaction with other actors or tiles, and in some cases, to make the actor respond to user input

Coupling Actors with Actor Behaviors in an intelligent fashion allows us to create an unlimited variety of game mechanics and gameplay elements. Hence, the creative use of Actors is the key to bringing our game concepts to life within Stencyl.