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 AssetsGraphicsGUI 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:
    Adding the buttons
  7. Now go to the Advanced settings, and change the Actor Mode to Simple, as shown in the following screenshot:
    Adding the buttons
  8. Finally, go to Collision, select the default collision box, and press Delete on your keyboard to remove it. This actor type will have no physical interactions of any kind, and hence does not require a collision box, as shown in the following screenshot:
    Adding the buttons
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.182.66