How to Code Simple 8-Directional Movement In Unity

Published: 06 February 2022
on channel: 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!


On this page of the site you can watch the video online How to Code Simple 8-Directional Movement In Unity with a duration of hours minute second in good quality, which was uploaded by the user AdamCYounis 06 February 2022, share the link with friends and acquaintances, this video has already been watched 70,231 times on youtube and it was liked by 2.2 thousand viewers. Enjoy your viewing!