Training Center

Mobile Skater Game

Mobile Skater Game

Learn how to script accelerometer and multi-touch input with Javascript in this skater game. You'll use raycasting, animations, and mobile input classes to implement movement, tricks, and verts.

An introduction to what you'll be learning in the following chapters. 

Tagged under

Additional Info

  • Runtime 02 min 40 sec
  • Software Unity
Login to download project files

In this chapter we'll review the final project to give you an idea of what you'll be accomplishing.

Tagged under

Additional Info

  • Runtime 02 min 08 sec
  • Software Unity

Import an FBX skater model and align it with your SkaterController.

Tagged under

Additional Info

  • Runtime 03 min 39 sec
  • Software Unity

Add a Character Controller component to your SkaterController.

Additional Info

  • Runtime 01 min 39 sec
  • Software Unity

Create a CharacterController script that will control your SkaterController FBX.

Additional Info

  • Runtime 03 min 43 sec
  • Software MonoDevelop, Unity

Through scripting you'll add a rotate speed controller, which will restrict the speed of your skater's rotation. Also, we'll add a Smooth Follow script to the Main Camera that will target your SkaterController.

Additional Info

  • Runtime 02 min 04 sec
  • Software MonoDevelop, Unity

Using the Input.GetKeyDown function you'll give your character a forward motion using the Spacebar.

Additional Info

  • Runtime 01 min 59 sec
  • Software MonoDevelop, Unity

Through scripting you'll constrain your character's movements to the floor of your skatepark. We also encounter another problem when our character enters the bowl of our skatepark and is not allowed to exit it. This is resolved when we change the Slope Limit of our Character Controller.

Additional Info

  • Runtime 02 min 08 sec
  • Software MonoDevelop, Unity

Add two functionalities to your script. The first will control the max speed of your skater through a public variable. The second will slow your character over time using a decay rate variable.

Additional Info

  • Runtime 03 min 48 sec
  • Software MonoDevelop, Unity

Using raycast your skater will orientate his body to the surface of the halfpipe. Giving his movements a more believable look.

Additional Info

  • Runtime 04 min 42 sec
  • Software MonoDevelop, Unity

Define a public variable that will allow you to select what objects can be raycasted against. 

Additional Info

  • Runtime 04 min 27 sec
  • Software MonoDevelop, Unity

Create a function that will call on the standing_board_up animation when your skater is stopped.

Additional Info

  • Runtime 02 min 17 sec
  • Software MonoDevelop, Unity

Chapter List

Questions? ¿Preguntas? 有问题吗? Domande? Вопросы? 質問はありますか? सवाल? الأسئلة؟
This email address is being protected from spambots. You need JavaScript enabled to view it.

About design3

design3 is THE game production web portal. Whether you’re an industry veteran keeping up with new tools and trends or an aspiring developer searching for professional training, expert advice and career tips – design3.com is where you need to be.

Sign-up for our newsletter!

:

Copyright © 2006 - 2012 design3. All rights reserved.

Sign In or Become a member

Facebook user?

You can use your Facebook account to sign into our site.

Log in with Facebook

LOG IN