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
About the Author
About the Reviewers

Adding the buttons

Now that we have created the shell of our Main Menu scene, it's time to start working on all those import buttons! Follow these steps:

  1. Go to the Dashboard tab, select Actor Types, and click on Create New.

  2. In the window that ensues, set Name to Play Game Button, and click on Create.

  3. Click on This Actor Type contains no animations. Click here to add an animation button, and your first blank animation will appear for the button, called Animation 0.

  4. Change the Name for this animation to Default.

  5. Select Click here to add a frame, then navigate to and select Game Assets\Graphics\GUI Elements\ play button.png.

  6. Once you have imported this default animation, switch to the Physics context, and change the Actor Type to Cannot Move, as shown in the following screenshot:

  7. Now go to the Advanced settings, and change the Actor Mode to Simple, as shown in the following screenshot:

  8. Finally, go to Collision, select the default collision box, and press Delete on your keyboard to remove it. This actor...