Godot Engine

Godot Engine

vinurd Aug 25, 2019 @ 12:08am
character movement vs
did everything in the second part of this video tutorial. The character does not move. I checked everything a few times. I created everything exactly as in the video.

The function to resize the screen has disappeared from the OS.

https://youtu.be/m2j-JNLCoG8
< >
Showing 1-14 of 14 comments
Baroon Valm Aug 25, 2019 @ 1:30am 
do you have any other objects around your character that are static?
vinurd Aug 25, 2019 @ 2:01am 
no. I did the second lesson with kinematics about the rotation of the ship. Also does not turn. The initial function just doesn’t work for me for what reason.
https://youtu.be/NpE1ig6NdcA
Baroon Valm Aug 25, 2019 @ 2:09am 
well there could be any number of reasons for that.. is the camera you have a child of the body (if so it'll turn with the kinematic body)
Baroon Valm Aug 25, 2019 @ 2:10am 
I suggest making a few sprites/meshes around the place so that you can see how they react when you do stuff.. it can help with debugging movement a lot.
vinurd Aug 25, 2019 @ 2:13am 
Yes, I’m doing everything exactly according to the lesson in the video. One to one.
Baroon Valm Aug 25, 2019 @ 2:27am 
well i can't see anything wrong there.. and can't rly help if i don't see your code and node arrangements..
vinurd Aug 25, 2019 @ 2:36am 
https://ibb.co/Q7WGSMT
Elementary does not work. Here.
Baroon Valm Aug 25, 2019 @ 2:43am 
can't rly say what is going on with that... but normally ppl use Move and collide or move and slide to move kinematic body.. only other thing is did you check which one is ui left button attached to? like in inputs
vinurd Aug 25, 2019 @ 2:58am 
but still does not work. That has not been. I Just hammer ♥♥♥♥ on the engine then.
vinurd Aug 25, 2019 @ 3:20am 
I found what was theERROR. A error by the way in the engine itself. I did not save the value in the pos window. I set the variable separately and it worked
Last edited by vinurd; Aug 25, 2019 @ 3:28am
Baroon Valm Aug 25, 2019 @ 3:31am 
happens sometimes..
vinurd Aug 25, 2019 @ 3:40am 
In the visual script engine, something is wrong with the variables. If there you managed to move the object, then turn (in the lesson) it does not work.
Baroon Valm Aug 25, 2019 @ 3:42am 
well the VS is very new to Godot (relativly speaking) so that is to be expected.. there are improvements on the way (fixing the zoom out font issue, automatic conversion from float to int and that stuff where needed so that you don't need to do it manually etc)
vinurd Aug 25, 2019 @ 4:30am 
with the code also full ass. I took the author’s code, his boat was turning. With a hammer, I ran this code, because there were a lot of errors with (rotation_degrees). The ship moves back and forth. But does not turn.



code^


extends KinematicBody2D


export var move_speed := 150;
export var rotate_speed :=50;

func _physics_process(delta: float) -> void:
var motion = Vector2(Input.get_action_strength("ui_right") - Input.get_action_strength("ui_left"),
Input.get_action_strength("ui_down") - Input.get_action_strength("ui_up"))
rotation_degrees += motion.x * rotate_speed * delta
move_and_collide(Vector2(0, motion.y * move_speed).rotated(rotation)* delta)

< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Aug 25, 2019 @ 12:08am
Posts: 14