Unity Platformer Tutorial - Part 2 - Touch Input Buttons

  • 7 лет назад
In this video, part 2 of our 4.6 Platformer , 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 dont stick to them if we move towards them while in the air.\r
\r
Part 1: \r
Part 3: \r
\r
Visit my website to see the code: \r
Google+ Community: \r
Twitter: \r
Facebook: \r
\r
Time Breakdown:\r
0:50 - Explaining different possible jump behaviours\r
1:38 - Adding the option to disable new movement while in air\r
2:50 - Demonstration of the new jump behaviour\r
3:20 - Adding a slick PhysicsMaterial2D to the platform\r
5:05 - Only adding the slick material to the edges of the platform\r
7:07 - Creating touch buttons\r
8:09 - #Ifdef disable keyboard controls for mobile\r
9:32 - Adding Event trigger events to our touch button\r
10:55 - Explaination of new move function we need\r
11:24 - Writing the StartMoving function\r
13:47 - Adding the Jump button\r
15:37 - Destroying the touch buttons if not on mobile\r
17:44 - Setting up build settings to run on Android\r
19:06 - Scale touch buttons using Canvas Scaler\r
19:51 - Demonstration of touch buttons on Android build\r
20:26 - What will we do in part 3? Animate the charer