Top Down Movement in Godot in LESS THAN 3 MINUTES!

Top Down Movement in Godot in LESS THAN 3 MINUTES!

SupercraftD

2 года назад

24,709 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@doubleWmemes
@doubleWmemes - 14.10.2023 02:09

you're awesome lol the begining XD

Ответить
@fablivion04
@fablivion04 - 10.10.2023 04:45

You don't understand how much this video has helped me, this was so easy to understand and VERY well made :D It would be so great if you made more tutorials like this!

Ответить
@sauser3913
@sauser3913 - 07.08.2023 14:43

Is there a way to make the player not slide around after having stopped pressing w, s, a or d?

Ответить
@rendcycle
@rendcycle - 25.06.2023 19:10

Is there an easy way to have the correct animation for diagonal movements?

Ответить
@Albert-I
@Albert-I - 29.05.2023 14:45

I have a question: when I put in your code it says Error at (22, 5): Function move_and_slide() not found in base self. Can someone please help me?

Ответить
@skvader4187
@skvader4187 - 08.04.2023 21:34

You have made my life 1000000000000 times easier.
Rather than explaining what movement is and "hi guys, name here!" you immediatley get to the point.
Thank you!

Ответить
@alexanderarana7021
@alexanderarana7021 - 19.03.2023 02:42

doesn't work for me :'(

Ответить
@Ukysseus
@Ukysseus - 07.03.2023 09:54

Thanks! But what if I want my character to face the direction I m moving in and not the mouse pointer?

Ответить
@slavabugz2612
@slavabugz2612 - 28.02.2023 22:12

Horrible code practice :(

Ответить
@36OLink
@36OLink - 22.01.2023 14:25

very good tutorial! You earned a sub!

Ответить
@Shadowthevampire
@Shadowthevampire - 10.01.2023 01:54

I get the error "move_and_slide" isnt declared in the current class

Ответить
@AlexVu1.1
@AlexVu1.1 - 05.01.2023 16:04

Help a lot! Thanks you so much

Ответить
@gametube1375
@gametube1375 - 05.01.2023 01:07

can someone help me it is giving me an error saying the method "move_and_slide"isnt declared in the current class

Ответить
@toadchurch
@toadchurch - 21.12.2022 02:09

this wasn't funny and the editing is tryhard as fuck but it's a solid tutorial at the core nonetheless keep it up

Ответить
@itz_wilma8656
@itz_wilma8656 - 29.10.2022 23:03

never disliked a horrible video so fast

Ответить
@itz_wilma8656
@itz_wilma8656 - 29.10.2022 23:01

damn this is a big L doesnt even work lol

Ответить
@cuminthesink
@cuminthesink - 09.10.2022 08:19

(FIXED: I needed to change it from key_just_pressed, i was using auto fill and didnt catch that) im confused, i wrote the code right but im only moving a little bit each time i press left, right, up, or down. i dont know if this is because i didnt use wasd controls

Ответить
@simfilesymlink4593
@simfilesymlink4593 - 29.09.2022 19:02

Velocity controller in less than one minute:
func _physics_process(delta):
velocity = Input.get_vector("ui_left","ui_right","ui_up","ui_down").normalized()
move_and_slide()

Ответить
@cupofdirtfordinner
@cupofdirtfordinner - 22.09.2022 23:58

thank you! I initially rolled my eyes at the joke at the beginning, but this tutorial actually really helped. All the other tutorials dragged on about nothing and lasted like 15+ minutes and often didn't even explain the code I was writing, but this actually did what it said it was gonna do quickly and efficiently. subbed and liked :)

Ответить
@mindmatters282
@mindmatters282 - 11.09.2022 02:24

I need help it comes up with an error :if Input.is_action_just_pressed("down"):
velocity.y += speed
if Input.is_action_just_pressed("up"):
velocity.y -= speed
if Input.is_action_just_pressed("left"):
velocity.x -= speed
if Input.is_action_just_pressed("right"):
velocity.x += speed
velocity.x += speed

move_and_slide(velocity)
look_at(get_global_mouse_postion())

Ответить
@samswanson9885
@samswanson9885 - 19.08.2022 02:43

wow so talent

Ответить
@yoru_0.0
@yoru_0.0 - 11.08.2022 06:13

Just do this:
var axisx = int(Input.is_action_pressed("right") - int(Input.is_action_pressed("left"))

Then same for axisy but use up - down instead of right - left, then it should say -1 for down and left and 1 for right and up and 0 for no movement using less if statements makes the game run faster, work smart not hard

Ответить
@agent2413
@agent2413 - 03.04.2022 16:20

well done

Ответить
@MokarromHossain
@MokarromHossain - 24.02.2022 11:57

hehe...i did it 3 sec faster 😎🥰

Ответить
@satsubatsu347
@satsubatsu347 - 05.02.2022 00:27

Slick

Ответить
@ortanicallity
@ortanicallity - 26.01.2022 01:00

man, u haven't made a vid edited this good since the gartic phone vid

Ответить
@jdKrazy
@jdKrazy - 26.01.2022 00:56

wow this tutorial is so well made! i wonder who edited this masterpiece

Ответить