In this video we will create a Mobile Joystick UI and connect it to a 2D platformer game so that it can be played on a mobile device :)
Assets used:
www.kenney.nl/assets/onscreen...
Learn to make a 2D platformer game and at the same time improve your knowledge about writing C# code:
courses.sunnyvalleystudio.com...
@Jettelly KZitem channel: / jettelly
Shader bible book: www.jettelly.com/
Join the discord:
/ discord
You can support me through Patreon:
/ sunnyvalleystudio
00:00 Introduction
00:41 Kenney assets
00:59 Canvas / Scaling
02:13 Creating joystick UI
04:29 Joystick script
06:47 IDragHandler / Getting Events
08:54 anchoredPosition explanation
11:06 RectTransformUtility
14:24 Mapping to (-1,1) range
15:33 Moving the joystick
17:20 Calculating Movement Vector
17:41 MobilePlayerInput script
19:51 Adding a jump button
21:09 EventTrigger component
Негізгі бет Unity 2021 Adding Mobile Joystick Touch Controls
Пікірлер: 47