Introduction to Isometric Movement & Animation (8 directions) in Unity

  Рет қаралды 60,452

Beaver Joe

Beaver Joe

Күн бұрын

Пікірлер: 81
@nameless8003
@nameless8003 Жыл бұрын
(Note for myself) 15:47
@samiayoub3158
@samiayoub3158 Жыл бұрын
This video saved me from hours of pure frustration ! thanks man ! beautiful work !
@vizualwanderer
@vizualwanderer 4 жыл бұрын
I saw this video around when i started my isometric game journey, however, i just went with the unity's script, cuz u know i thought its better from the horses mouth. Then i decided to add a moving platform system to my game as a puzzle and the character movement wouldn't work when on the platform, i nearly gave up... came back here and literally made such a small change (line 20 on player movement) and now the character moves great on the platform and i couldn't be happier, cheers Beaver Joe!
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Glad to see that! Cheers!
@Mystical-TEDDY_
@Mystical-TEDDY_ 3 жыл бұрын
I finally learned from my mistakes and it works very well, thank you. Don't give up people
@bers232
@bers232 Жыл бұрын
this is absolutely amazing. thank you for this tutorial! I wanted to follow a tutorial that explains everything for beginners like me. I was able to create with my own assets thanks to you!
@user-em9su3dd9y
@user-em9su3dd9y 4 жыл бұрын
I learnt a lot from this, thanks so much. Nice clear graphics and explanations too!
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Christopher Hoade you are welcome!!
@moritzvanaart2759
@moritzvanaart2759 8 ай бұрын
​@@beaverjoe9171 good morning Joe, i have a problem with a layer structure, can you give me your Email to send you my problem? best regards
@danielgilbert8338
@danielgilbert8338 3 жыл бұрын
Great videos. Just getting started with unity and you're helping me a lot. Thanks so much. And keep up the great work!
@Vinchuca
@Vinchuca 2 жыл бұрын
WOW!!! i usually use const string to get the animation reference, and later call it whend i need it, but this is (in my opinion) better. TNKS! Also, i dont think calling FindObject in FixedUpate is a good idea, i think is searching for the object all the time. Much love 😘
@zachtutor7998
@zachtutor7998 Жыл бұрын
Absolutely the best video for character movement in a 2D game, Isometric or not!!! Quick Question though - When going NE, SE, SW or NW, the character moves much quicker than N, E, S, W... How to fix this?? Thank you!
@zachtutor7998
@zachtutor7998 Жыл бұрын
To solve this issue add the following below FindObjectOfType().SetDirection(direction); in the PlayerMovement script: direction = direction.normalized; transform.Translate(direction*Time.deltaTime*moveSpeed); Now your character will move the same speed all 8 directions.
@elladitch9698
@elladitch9698 5 жыл бұрын
Thanks! Very detailed including Animation and C sharp
@galenmolk5253
@galenmolk5253 3 жыл бұрын
Dude this is awesome. Thank you for making this.
@letsplaynay9936
@letsplaynay9936 4 жыл бұрын
Also what is controlling the character sprites? My character is changing into the wrong sprite/animation everytime i move them
@SteveBlues87
@SteveBlues87 3 жыл бұрын
But the character isn't moving isometrically. It's moving diagonally.
@bigcaka7725
@bigcaka7725 2 жыл бұрын
ya this shit sucks
@mikesande2409
@mikesande2409 Жыл бұрын
could you make this vid showing how to do this with a blend tree, i used a blend tree for 6 way controller but i could not figure out how to get north and south to work, i set the values for east and west as 1 -1 and did the 0.5 - 0.5 for the up and down directional but what would you set north and south at. maybe i am just slow and not getting it but i would assume you would have to make them like east and west and set them at 1 and -1 as well however that did not work.
@xiaochenyang7266
@xiaochenyang7266 2 жыл бұрын
good course~unfortunately the automatic translation can not translate correctlly,so there are many contents i can not understand,hope for chinese version in bilibili one day
@JianqiuChen
@JianqiuChen 3 жыл бұрын
Hi, just a suggestion, I find the beep sound (every 5 seconds) in your background music really really annoying, maybe you might want to remove those. your content is good.
@NightOwlDev
@NightOwlDev 3 жыл бұрын
Whenever I move it only plays the static and running animation in slot 2(Element 1), any help?
@AyyyyyyyyyLmao
@AyyyyyyyyyLmao 5 жыл бұрын
Any chance on making a tutorial so the character's diagonal movement matches the grid? For example, when I press up and right, i'd expect the character to travel at a 60 degree angle, but instead they're going the standard 45.
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
I think You can add one more line such as if(Input.GetKeyDown(KeyCode.up) && Input.GetKeyDown(KeyCode.right)) { transform.Translate(Vector2(1,2) * moveSpeed * Time.deltaTime); } (I did not play this line, Only provide one idea for you. Very flexible movement effect I Guess!)
@graig2558
@graig2558 5 жыл бұрын
if (moveH != 0 && moveV != 0) { moveV = moveV / 2; } Add these lines directly after the moveV and movH variable declaration.
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
@@graig2558 Thanks for help!
@AyyyyyyyyyLmao
@AyyyyyyyyyLmao 4 жыл бұрын
@@beaverjoe9171 tried it, however the isometric map isn't true isometric so the diagonal is off :(
@pewpsquad
@pewpsquad 4 жыл бұрын
@@beaverjoe9171 I followed this tutorial but, when my player moves the NW, W, and SW animations play the NE, E, and SE animations. why aren't the west directions playing their correct animations?
@snowcarrotss
@snowcarrotss 4 жыл бұрын
I follow ur. but have problem..The direction of the character changes after hitting the keyboard. and no run T.T Scripts have no problem. (no red wave)
@szkokee
@szkokee 3 жыл бұрын
I could manage to apply this to the keyboard and to the D-pad but is it possible to apply it to the joy sticks? I tried to mess with the inputmanager but its either becomes an 360 degree movement or the movement gets stuck in Unity if dont press it just exactly in the right angle
@Shampoo-Girl
@Shampoo-Girl 2 жыл бұрын
Thanks for the tutorial! Helps a lot. A question though, whenever my character moves diagonally, it doesn't stay on the diagonal static animation. Any help, please?
@arisefstathiou3546
@arisefstathiou3546 3 жыл бұрын
Trying to implement an attacking system into this project and i just cant. Tried with new input "attack" and 4 directions and i had errors. If anyone could help me i would really appreciate it.
@JongHyunSM
@JongHyunSM 4 жыл бұрын
@Beaver Joe, How to make when I press Keyboard only "Up" then movement to NW , press only "Down" move to SE ?
@thichpunchline
@thichpunchline 6 ай бұрын
thanks you so much ❤❤❤❤
@jestersnek3849
@jestersnek3849 4 жыл бұрын
Good tutorial! Thank you for making tutorials on isometric stuff, its so rare online. In case you read this, how would we make the player be able to jump, if the Z is frozen? edit: also, when I try to open this, Unity says some files are old/made using old API's, and getting the premade level to show up shows huge bugsn :c
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
Thanks for your likes. Actually, I have not considered the jump feature yet. I will think about later on my Todo lists~ But I found two links talk about it. One is video another is one discussion. www.studica.com/blog/isometric-character-jump-unity www.reddit.com/r/Unity3D/comments/88amrj/isometric_game_jumping/
@jestersnek3849
@jestersnek3849 4 жыл бұрын
@@beaverjoe9171 Thanks!
@mohokhachai
@mohokhachai 9 ай бұрын
Thanks again
@dieweltentdecker5878
@dieweltentdecker5878 3 жыл бұрын
👍👍👍👍👏
@letsplaynay9936
@letsplaynay9936 4 жыл бұрын
How do I change the script to mouse click movement rather than keyboard?
@jjbowman4653
@jjbowman4653 4 жыл бұрын
LetsPlay Nay there was definitely a tutorial on KZbin about “point and click games” I believe you are wanting to know about. There is a tutorial about making a start menu, how to make buttons work, which would be the same with a different icon or picture by Thomas Bush - creator of pin stripe (which is how all of his tutorials start) 😂😁
@graig2558
@graig2558 5 жыл бұрын
Thank you for this tutorial it really helped with the animator. I do have a small problem with this though. When running N,E,S,W if you change direction to a diagonal the animation will lag for a few frames before switching - Only if you go counter clockwise. eg. If you run W and then change to SW it will lag, but W to NW with switch instantly. You can test this by simply holding the left key to run W and then while holding it tap the Up key or the Down key. You will see the Up Key switch instantly to the NW animation but the Down key wont switch unless you hold it for a bit. Is there a way to fix this to be instant all around? Thank you.
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
Hi Graig, Thanks for your comments. I have checked the completed project and stared at the Animator window when I press the "A" to run West, Then I try to press W/S to Run NorthWest or SouthWest, The animation blue speed bar instantly change (looks like uncheck "Has Exit time" on animation transitions) Have you checked all Animations has checked "For loop" and Several Animations should record the "SpriteRender_FlipX" on the first frame inside the Animations window? I really feel it might be my potential mistake in this episode. I found the official short tutorial for this movement. Also, You can watch this links If you found some mistake I missing in this episode. If I found something wrong, I will reply ASAP: kzbin.info/www/bejne/qqrapWyqhNqVe7s (This link also contains one link for the free project: ole.unity.com/2disodemo)
@graig2558
@graig2558 5 жыл бұрын
@@beaverjoe9171 Thank you I accidentally added the wrong frames and now all is better :) Can you make a tutorial on how to add an attack animation and hitbox to this witch sprite?
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
@@graig2558 I will in the future! I learn one tutorial online and that 3D character also have one hitbox on the player and enables when the Attack Animation!
@Assistiai
@Assistiai 4 жыл бұрын
I have a problem when I perform an attack action, because Idle Animation does not let Attack Animation perform
@raimanchannel3376
@raimanchannel3376 3 жыл бұрын
Thanks so much
@kelvinsda
@kelvinsda 3 жыл бұрын
Thank you!!!
@marwinsrasamarng5345
@marwinsrasamarng5345 3 жыл бұрын
when i start the game the Player start direction up how can i fixed it
@s0ulcode
@s0ulcode Жыл бұрын
hi, I know this video is a bit older, but does anyone know the fix for the index returning as -1 when going NW? I copied and pasted from the scripts provided to be sure I didn't mess up the syntax. The only difference is the animation names (strings) I chose. the error is as follows: Invalid Layer Index '-1' UnityEngine.Animator:Play (string)
@igeres_6870
@igeres_6870 Жыл бұрын
Did you find a solution for this problem? I'm making the same as the video and return me the same error as you and i'm trying to solve it but i don't find any solution.
@DarukariGames
@DarukariGames 9 ай бұрын
@s0ulcode @igeres_6870 I had the same error and basically it's saying it cannot play the animation 'animName' inside the UnityEngine.Animator:Play (animName) call. The source of the problem for me was I had not made the additional animator states (especially for directional runs, Run N, Run SE and so on). Hence when we try to call UnityEngine.Animator:Play(string) on something that is not setup in the animator, and it can't find something with that name after searching through all it's layers within the Animator, it fails, and returns the -1 index and the error 'Invalid Layer Index '-1''. TLDR : Make sure your animator has a state for each of the Static and Run directional strings. Also add a Debug.Log for the string before you call 'UnityEngine.Animator:Play()' to see which call is failing.
@moritzvanaart2759
@moritzvanaart2759 8 ай бұрын
I've got the same problem. Have you found a way to fix it?
@s0ulcode
@s0ulcode 8 ай бұрын
@@moritzvanaart2759 sorry, I switched over to godot after the unity fiasco last year.
@moritzvanaart2759
@moritzvanaart2759 8 ай бұрын
​@@s0ulcodethanks a lot man. and does it works better with Godot?
@carbocookies
@carbocookies 3 жыл бұрын
Good Video
@鬼谷海道
@鬼谷海道 5 жыл бұрын
已关注~~期待你的中文课程呀 想学习了 自己弄Isometric 风格的 修真游戏呀 ~~~
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
谢谢谢谢!这些元素是官方的,官方有这个视频,但是讲的很短很概括,跳过了动画制作,代码也只是简单贴出来读一读,所以我就制作了一个“一步一步教学的视频”。(感谢支持哈兄弟~)
@antoniot.5639
@antoniot.5639 3 жыл бұрын
Hi it is a helpfull video, how can i make attack animation by pressing a button ? Thanks for your help great work !
@stuartlightfoot1729
@stuartlightfoot1729 5 жыл бұрын
Good tutorial! what is this random beeping I'm hearing?
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
Thanks! The Random Beeping proved that I did not pay money to buy the music. (I used template version so that will occurs the beeping. Sorry for uncomfortable>-
@stuartlightfoot1729
@stuartlightfoot1729 5 жыл бұрын
I see. Thanks for the reply. Let me know if you want some music for free for a tutorial next time. 😎👍🏽
@beaverjoe9171
@beaverjoe9171 5 жыл бұрын
@@stuartlightfoot1729 Very appreciate! (Sorry for reply later. KZbin did not give me a notification. I am going to download some free sound by freesound.com now!)
@joshuafares4102
@joshuafares4102 4 жыл бұрын
its his ankle monitor
@warrenayiss3012
@warrenayiss3012 4 жыл бұрын
So if you want to make a isometric character you have to create 8 directions animation ?
@beaverjoe9171
@beaverjoe9171 4 жыл бұрын
it depends on the game. For me, I prefer to four direction character~
@kingpoo7205
@kingpoo7205 3 жыл бұрын
BUGS The character don't stay at diagonal idle positions. The character moves faster diagonally
@RobertKvsv
@RobertKvsv 3 жыл бұрын
normalize vectors to fix second bug
@igametobe6841
@igametobe6841 3 жыл бұрын
I'm not sure I understand the purpose of the record button.
@Mystical-TEDDY_
@Mystical-TEDDY_ 3 жыл бұрын
same it didn't seem to matter
@anonymoussloth6687
@anonymoussloth6687 4 жыл бұрын
just use a blend tree and you dont have to make it that complicated
@ayoubasri7987
@ayoubasri7987 4 жыл бұрын
Good content, man! but what's with the BEEP every 10 seconds? Annoyed the heck out of me
@Mystical-TEDDY_
@Mystical-TEDDY_ 3 жыл бұрын
idk but how did u get the character to move
@JT-nk4gh
@JT-nk4gh 2 жыл бұрын
speak english properly
Why Isometric? | Art, Code and Matrix Maths | A Devlog
13:33
Wintermute Digital
Рет қаралды 212 М.
Человек паук уже не тот
00:32
Miracle
Рет қаралды 3,6 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 22 МЛН
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 26 МЛН
Making 2D Levels with Isometric Tilemap in Unity
16:28
Beaver Joe
Рет қаралды 97 М.
Introduction to Isometric Movement in Games
7:51
GDQuest
Рет қаралды 233 М.
Pixel Art Class - Isometric Character Basics
22:18
AdamCYounis
Рет қаралды 225 М.
Isometric Character Controller in Unity
12:31
Tarodev
Рет қаралды 84 М.
How Isometric Coordinates Work in 2D games
5:23
Jordan West
Рет қаралды 809 М.
Grid Based Movement in Unity
18:35
gamesplusjames
Рет қаралды 190 М.
Unity Grid Based Movement System: Part 1 Setup
18:12
StringCode
Рет қаралды 6 М.
Isometric Rule Tiles in Unity
17:44
Beaver Joe
Рет қаралды 18 М.
MAKING ISOMETRIC TILEMAP in Unity 2019! (Tutorial)
19:07
Sykoo
Рет қаралды 187 М.