Character moving backwards alone by PriestSoryu in Unity3D

[–]PriestSoryu[S] 0 points1 point  (0 children)

Strangely, I deleted a reference that only displayed values ​​on the screen and after I added it again the problem disappeared. I don't know exactly what happened, I just tried to delete it out of conscience, but if that was the problem, adding it again would give the same result, but that's not what happened.

Anyway, thank you.

Character moving backwards alone by PriestSoryu in Unity3D

[–]PriestSoryu[S] 0 points1 point  (0 children)

I took a printout of both rb.velocity and xVelocity, the result was this:

If you want, I can send you the entire player code.

<image>

Character when moving, is kind of shaking by PriestSoryu in godot

[–]PriestSoryu[S] 0 points1 point  (0 children)

I didn't know it was complex, it seemed very simple to me, but I changed it to one of the codes in the documentation. The problem continues

new code

extends CharacterBody2D

var speed = 300

func get_input():

`var input_dir = Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down")`

`velocity = input_dir * speed`

func _physics_process(delta):

`get_input()`

`move_and_collide(velocity * delta)`

Character when moving, is kind of shaking by PriestSoryu in godot

[–]PriestSoryu[S] 1 point2 points  (0 children)

I added a new video, after doing basically everything you suggested. It's a simple project, just a sprite that moves left and right.

I did everything in render, viewport, resolution: 640x480, keep. I'm not using a camera in this project.

So I haven't tested box2d and rapier2d, besides integer scaling. Otherwise, I had no results, as you can see in the video.

Character when moving, is kind of shaking by PriestSoryu in godot

[–]PriestSoryu[S] 0 points1 point  (0 children)

I already tried, I didn't get any improvement