Комментарии:
you're awesome lol the begining XD
Ответить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!
ОтветитьIs there a way to make the player not slide around after having stopped pressing w, s, a or d?
ОтветитьIs there an easy way to have the correct animation for diagonal movements?
Ответить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?
Ответить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!
doesn't work for me :'(
ОтветитьThanks! But what if I want my character to face the direction I m moving in and not the mouse pointer?
ОтветитьHorrible code practice :(
Ответитьvery good tutorial! You earned a sub!
ОтветитьI get the error "move_and_slide" isnt declared in the current class
ОтветитьHelp a lot! Thanks you so much
Ответитьcan someone help me it is giving me an error saying the method "move_and_slide"isnt declared in the current class
Ответитьthis wasn't funny and the editing is tryhard as fuck but it's a solid tutorial at the core nonetheless keep it up
Ответитьnever disliked a horrible video so fast
Ответитьdamn this is a big L doesnt even work lol
Ответить(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
Ответить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()
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 :)
Ответить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())
wow so talent
Ответить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
well done
Ответитьhehe...i did it 3 sec faster 😎🥰
ОтветитьSlick
Ответитьman, u haven't made a vid edited this good since the gartic phone vid
Ответитьwow this tutorial is so well made! i wonder who edited this masterpiece
Ответить