In this video we will learn how to Aim a Melee Weapon at mouse pointer in Unity 2D. In the later video I will show you how to perform an attack and how to create enemies to fight with.
Make a Juicy 2d Shooter course:
https://courses.sunnyvalleystudio.com...
How to get input using the new input system:
• How to use NEW Input System in Unity
Assets used:
https://analogstudios.itch.io/
𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗱𝗶𝘀𝗰𝗼𝗿𝗱!
/ discord
𝗣𝗟𝗘𝗔𝗦𝗘 support the channel:
/ sunnyvalleystudio
00:00 Introduction
00:22 What we need to do
00:44 Weapon rotation setup - Step 1
02:15 Weapon rotation script - Step 2
06:38 Weapon sorting order - Step 3
#unity2d #gamedev #nuclearthrone