In this video, part 2 of our 4.6 Platformer series, we add on-screen touch input buttons for mobile and move our player with those but calling the functions we wrote in part 1. We also add slick edges to our platforms so we don't stick to them if we move towards them while in the air.
Part 1: • Unity Platformer Tutorial - Part 1 - Basic...
Part 3: • Unity Platformer Tutorial - Part 3 - Art a...
Visit my website to see the code: http://www.devination.com/2015/01/uni...
Google+ Community: https://plus.google.com/communities/1...
Twitter: / devination3d
Facebook: / unity3dtutorialsbydevin
Time Breakdown:
0:50 - Explaining different possible jump behaviours
1:38 - Adding the option to disable new movement while in air
2:50 - Demonstration of the new jump behaviour
3:20 - Adding a slick PhysicsMaterial2D to the platform
5:05 - Only adding the slick material to the edges of the platform
7:07 - Creating touch buttons
8:09 - #Ifdef disable keyboard controls for mobile
9:32 - Adding Event trigger events to our touch button
10:55 - Explaination of new move function we need
11:24 - Writing the StartMoving function
13:47 - Adding the Jump button
15:37 - Destroying the touch buttons if not on mobile
17:44 - Setting up build settings to run on Android
19:06 - Scale touch buttons using Canvas Scaler
19:51 - Demonstration of touch buttons on Android build
20:26 - What will we do in part 3? Animate the character
On this page of the site you can watch the video online Unity Platformer Tutorial - Part 2 - Touch Input Buttons with a duration of hours minute second in good quality, which was uploaded by the user Devin Curry 17 January 2015, share the link with friends and acquaintances, this video has already been watched 64,121 times on youtube and it was liked by 497 viewers. Enjoy your viewing!