How to Code Simple 8-Directional Movement In Unity

Опубликовано: 15 Октябрь 2024
на канале: AdamCYounis
70,231
2.2k

Heya Pals!

This is a followup video to the previous pixel art class series on isometric and top-down animations that will let you bring your pixel art creation to life in Unity in just 30 mins!

Enjoy :)

Chapters:
0:00 - Intro
0:47 - Importing Your Sprites into an Empty Unity Project
5:30 - Setting Up the Character Object
10:00 - Setting Up the Sprite Instances
12:00 - Setting Up the Input Manager
13:40 - Solving the Input Direction
14:19 - Solving Velocity & Normalisation
17:00 - Flipping the Sprite for Left and Right
19:20 - Selecting the Appropriate Animation
24:40 - Animation Playback Using Modulus
31:00 - Adding Basic Collision
31:48 - Wrap-up
33:00 - Outro

Music:
Helynt - Chillcraft [Gamechops.com]

----

This video features clips from my stream. Catch it live: Mon, Tues, Thurs and Fri 1-6pm AEST.

Twitch:   / adamcyounis  
Twitter:   / adamcyounis  
Discord:   / discord  
Become a Patron at   / adamcyounis  
Download assets and games from the stream at http://uppon-hill.itch.io/

Later, pals!