Тёмный

Smooth Grid Based Movement Similar to Pokemon Godot 4.3 Tutorial 

Coding Quests
Подписаться 18 тыс.
Просмотров 7 тыс.
50% 1

Subscribe For Exclusive Content ➡️ www.codingques...
Check out GODOT GENESIS if you interested in mastering Godot & Game Development:
www.codingques...
Join my Discord: / discord
Check out my Site: www.codingques...
Check out my STEAM: store.steampow...
Stalk me IRL here: / ozaki_boomer

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
@Tuto1902
@Tuto1902 4 месяца назад
You can also use Vector2.UP, Vector2.DOWN, Vector2.LEFT and Vector2.RIGHT instead of passing the values to Vector2()
@d.s.3895
@d.s.3895 Месяц назад
If u have problems with jittering at higher speed values u can insert "tween.set_process_mode(Tween.TWEEN_PROCESS_PHYSICS)" after creating the tween var.
@tars9063
@tars9063 3 месяца назад
You forgot to mention that you can not use collisions in that way as by changing the `position` property you bypass physics engine
@rainingBrackets
@rainingBrackets 3 месяца назад
I'm encountering this problem! I thought it was my own script that was at fault but this has the same issue. My character weirdly teleports past or around obstacles. Do you know what I can do to fix this or refer me to a tutorial that accounts for collisions?
@rainingBrackets
@rainingBrackets 3 месяца назад
For any future people wondering I have found a solution using RayCast2D as explained in the slightly outdated video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HmnwNadwHWI.html
@Xirtaro
@Xirtaro 2 месяца назад
​@@rainingBrackets Hi there, here I am 2 weeks after you trying to figure out the same thing! Are you happy with that RayCast solution or did you find something better? I'm struggling with how outdated the video is and am not sure if it's just not the right method or if I'm getting it wrong.
@thesomeone2nd
@thesomeone2nd 4 месяца назад
Thanks really helpful. I wanted to make a game with a mechanic like that but the difference is that I want to control the player with the mouse. Basically let's say we have some tiles that count as gridblocks and I want to position my mouse to one of them, click it and then the player moves there.
@Xirtaro
@Xirtaro 2 месяца назад
This video almost saved me, just unfortunately collision not working is a dealbreaker. I'd love a video where you introduce some walls and objects to collide with, and show how to solve that! Because other than the solution not working for me, I found it easy to follow along and I learned something new. Thank you!
@CodingQuests
@CodingQuests 2 месяца назад
you can detect collision using a raycast before moving. thats what id do with this code.
@meady50
@meady50 23 дня назад
@@CodingQuestswould you need 8 ray casts though? Or can you make it face the same direction as the player?
@ShVanesMusic
@ShVanesMusic 4 месяца назад
Very nice technique! And to prevent character being not in center of a tile (e.g. we have some collisions), we should add rect collision to player, right?
@stinghouseproductions8502
@stinghouseproductions8502 3 месяца назад
I would personally implement a raycast2d check for collisions.
@morganp7238
@morganp7238 4 месяца назад
good stuff, thanks
@noise_dev
@noise_dev 2 месяца назад
using tweens actually can be a bad idea. I have encountered it when doing my dodge roll mechanic the issue is that when using tweens we are ignoring collisions and we can end up inside another body with which we will collide
@CodingQuests
@CodingQuests 2 месяца назад
ur right it ignores collision. but there are things we can do to get around it. 1. just use velocity instead. or 2. use raycast to check for collision before moving(this is prob what i would do).
@darkhunter777
@darkhunter777 Месяц назад
Need write : extends CharacterBody2D _physics_process(delta): velocity = Input.get_vector("ui_left","ui_right","ui_up","ui_down",) move_and_slide() LOL 😁
@cfdavidfernandez
@cfdavidfernandez 3 месяца назад
Hola, está muy bueno el tutorial, lo probé pero al no tener la funcion move_and_slide() no calcula las coliciones de un tile, como se podria solucionar eso? (soy nuevo en godot)
@zoe4622
@zoe4622 3 месяца назад
I am also a beginner, but I think you should check for collision before move_and_slide before youve done any of the vector2D stuff. Hope this helps! If anyone has a better method be sure to let us know.
@andreahudgins1960
@andreahudgins1960 4 месяца назад
Thanks
Далее
Godot 4 Groups Tutorial || NEW Features In 4.3!
2:51
Просмотров 3,3 тыс.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
Просмотров 132 тыс.
Programming a tactical strategy game in Godot 4
14:50
Godot Scripts I add to Every Game
12:34
Просмотров 26 тыс.
HD-2D Style in Godot 4.1
12:57
Просмотров 60 тыс.
How Games Make VFX (Demonstrated in Godot 4)
5:46
Просмотров 350 тыс.
All 219 Godot Nodes Explained In 42 Minutes !
42:09
Просмотров 260 тыс.
How to use Classes in Godot! - Intermediate Tutorial
8:46
How To PLAN your Game as a Solo Developer
16:26
Просмотров 506 тыс.