Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Gamesalad Essentials

You're reading from   Gamesalad Essentials Create awesome cross-platform games in no time, and with no coding

Arrow left icon
Product type Paperback
Published in Jan 2015
Publisher
ISBN-13 9781784391973
Length 154 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Miguel DeQuadros Miguel DeQuadros
Author Profile Icon Miguel DeQuadros
Miguel DeQuadros
Arrow right icon
View More author details
Toc

Controls and player movement

We are going to cover a couple of different control schemes, depending on the platform you want to release your awesome game on. We will deal with some keyboard controls, mouse controls, and even some touch controls for mobile devices.

Let's go into our project, and open up level 1.

  1. First we are going to add some gravity to the scene.
  2. In the scene editor, click on the Scene button in the Inspector window.
  3. In the Attributes window, expand the Gravity drop down, and change the Y value to 900.
  4. Now, on to our actor! We have already created our player actor in the Library, so let's drag him into our level.
  5. Once he's placed exactly where you want him to be, double-click on him to open up the actor editor. Instead of clicking the lock button, click the Edit Prototype... button on the upper left-hand corner of the screen, just above the actor's image.
    Controls and player movement

After doing this, we will edit the main actor within the Library; so instead of having to program each...

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 $19.99/month. Cancel anytime
Banner background image