Unity Tutorial How To Create Zombie Walk Animation State From Set Of Sprites For Simple 2D Game.

  Рет қаралды 7,661

Alexander Zotov

Alexander Zotov

Күн бұрын

Пікірлер: 57
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
Hit Like if you like it! Thank you!
@gamerboy7216
@gamerboy7216 6 жыл бұрын
Alexander Zotov PLZZ give link of SCRIPT
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
GamerBOY !! No problem 1:33 - 2:26 ;-)
@gamerboy7216
@gamerboy7216 6 жыл бұрын
Alexander Zotov sir I want to copy that..so that it will save time and effort...
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
GamerBOY !! You could have retyped it already while having this sweet conversation :-) It doesn't mean that I don't like to chat though ;-)
@gamerboy7216
@gamerboy7216 6 жыл бұрын
Alexander Zotov I will follow you in Twitter chat there....ok sir
@frankinocuda
@frankinocuda 2 жыл бұрын
Number One, please more tutorial thanks
@miguelmonreal.8874
@miguelmonreal.8874 5 жыл бұрын
Hello Alexander, i had a question, in the void update where did you get the -9 and 9 from? I think that's where i'm having my problem. I have my enemy chase, but he won't flip to face the enemy. I have the script set up with the facingRight, but it still won't switch sides. i would appreciate any help you can give me.
@MimiGunz
@MimiGunz 5 жыл бұрын
same
@Ana-lm1gc
@Ana-lm1gc 4 жыл бұрын
I know I'm a bit late and you probably found a solution but if you didn't here is an explanation(and solution but I will explain it just so you know how to use it in your program): Those if and else if statment is the range where the zombie(in this case) will go, he did make a mistake there but here is an example of what i changed: if (transform.position.x < -1f) { dirX = 1f; } else if (transform.position.x > 25f) { dirX = -1f; } I want my player when he reaches the position -1 to turn and than every time i add +1f until he reaches 25 on x after that he turns back and he walks until he reaches -1. Hope it helps even tho I'm late for about a year :)
@junjielim111
@junjielim111 3 жыл бұрын
@@Ana-lm1gc whats the solution? i still cant solve it
@junjielim111
@junjielim111 3 жыл бұрын
your solution didnt work too
@PradeepKumar-kk4zd
@PradeepKumar-kk4zd 4 жыл бұрын
im the 100 like & thanks for the video
@TheRedflash777
@TheRedflash777 5 жыл бұрын
спасибо, что без лишней воды всё рассказал :)
@orhangunes3911
@orhangunes3911 2 жыл бұрын
Thank u so much alexander follow u
@riccardomercatali7007
@riccardomercatali7007 4 жыл бұрын
Can u please give me a link to copy the script? I think i did something wrong but i can't figure out what :/
@francinacolley2689
@francinacolley2689 4 жыл бұрын
Why does my zombie move to the right but when it hits a corner it doesn't turn left but rather just starts to glitch?
@raidoksgames3510
@raidoksgames3510 4 жыл бұрын
You know why?
@junjielim111
@junjielim111 3 жыл бұрын
use box collider then
@orhangunes3911
@orhangunes3911 2 жыл бұрын
void Update () { if (transform.position.x < -2f) dirX = 1f; else if (transform.position.x > 1f) dirX = -1f; if (isAttacking) anim.SetBool ("isAttacking", true); else anim.SetBool ("isAttacking", false); }where -2 and 1 indicate the destination and mark the border
@mykhailoshyshkin8804
@mykhailoshyshkin8804 6 жыл бұрын
Привет! Спасибо за новое видео, все супер! :)
@aldridgecrate5026
@aldridgecrate5026 6 жыл бұрын
could you make video series on making clash of clan type game or plant vs zombies
@junjielim111
@junjielim111 3 жыл бұрын
hey man why does my zombie move left and when it hit the wall, it just glitched there and didnt turn right? Thanks!
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
I don't know. Happy to help :-)
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
I guess it's because you miss something
@junjielim111
@junjielim111 3 жыл бұрын
@@AlexanderZotov but i followed your script exactly the same dude xD
@AlexanderZotov
@AlexanderZotov 3 жыл бұрын
May be you give your zombie wrong way points?
@junjielim111
@junjielim111 3 жыл бұрын
@@AlexanderZotov using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { float dirX; [SerializeField] float moveSpeed = 3f; Rigidbody2D rb; bool facingRight = false; Vector3 localScale; // Start is called before the first frame update void Start() { localScale = transform.localScale; rb = GetComponent(); dirX = -1f; } // Update is called once per frame void Update() { if(transform.position.x 9f) { dirX = -1f; } } void FixedUpdate() { rb.velocity = new Vector2 (dirX * moveSpeed, rb.velocity.y); } void LateUpdate() { CheckWhereToFace(); } void CheckWhereToFace() { if(dirX > 0) facingRight = true; else if(dirX < 0) facingRight = false; if(((facingRight) && (localScale.x < 0)) || ((!facingRight) && (localScale.x > 0))) localScale.x *= -1; transform.localScale = localScale; } } Take a look if udm. i compared with yours and mine. its the same
@coversparty6250
@coversparty6250 6 жыл бұрын
Здравствуйте! Восхищаюсь вашими уроками. Скажите, где можно найти спрайты для зомби как у вас? Спасибо!
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
Спасибо. www.gameart2d.com
@aonmuhammad4305
@aonmuhammad4305 6 жыл бұрын
nice one but after a long time.
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
I wish I had more time for KZbin. Family, regular job want me too)
@chariouibouchaib4416
@chariouibouchaib4416 6 жыл бұрын
Yes Family is the first , Thank you for your Hard Works Sir
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
My pleasure)
@zaizailiang223
@zaizailiang223 6 жыл бұрын
Thanks!It is so good!
@sportsgames6683
@sportsgames6683 6 жыл бұрын
provide the Assets
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
What asset?
@sportsgames6683
@sportsgames6683 6 жыл бұрын
@@AlexanderZotov game assets like the character
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
It's from gameart2d site.
@AlexanderZotov
@AlexanderZotov 6 жыл бұрын
Also you can find it at opengameart dot org.
@sportsgames6683
@sportsgames6683 6 жыл бұрын
@@AlexanderZotov thanks buddy
@aldridgecrate5026
@aldridgecrate5026 6 жыл бұрын
plzz it would be very thankful
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,4 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Making My First Open World Indie Game | Devlog
8:20
Conradical
Рет қаралды 2,2 М.
Hand drawn is easier than pixel art | HD graphics vs low-bit vs Hi-bit
10:00
Idle, Run and Jump Animations - Platformer Unity 2D
10:13
Game Code Library
Рет қаралды 73 М.
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 5 МЛН
How to make 2D game art! Simple assets, even if you are bad at drawing
7:22
РОБОТ-ПЫЛЕСОС за 1$ vs 1000$ !
23:02
GoldenBurst
Рет қаралды 264 М.
Every Minute One Person Is Eliminated
34:46
MrBeast
Рет қаралды 27 МЛН
Learn C# with these 9 LINES OF CODE - Unity Tutorial!
25:16
Blackthornprod
Рет қаралды 385 М.
Pixel Art Tips from a Professional Artist - Tips & Tricks
8:01
Goodgis
Рет қаралды 1,2 МЛН
10 Minutes vs. 10 Years of Sculpting
19:48
Isto Inc.
Рет қаралды 865 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН