Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Character position correction #6

Open
jtara1 opened this issue Apr 25, 2019 · 4 comments
Open

Character position correction #6

jtara1 opened this issue Apr 25, 2019 · 4 comments

Comments

@jtara1
Copy link
Collaborator

jtara1 commented Apr 25, 2019

either after action queue is emptied (listener in Player.gd) or after each MoveAction is executed

just get_cell_coords(), use a TileMap (Map) to convert that to world position (float) and call move_and_slide(arg) or set position directly in physics update loop

@jtara1
Copy link
Collaborator Author

jtara1 commented Apr 25, 2019

the way the movement is implemented with the juice, the char can be 5-10 world units off target and that's annoying

@jtara1
Copy link
Collaborator Author

jtara1 commented May 1, 2019

it can get really bad, I've seen the char sprite center pos be nearly at the edge between cells

@jtara1
Copy link
Collaborator Author

jtara1 commented May 7, 2019

it seems to be a pretty rare bug though, keep an eye out for how to reproduce this bug to debug this

@jtara1
Copy link
Collaborator Author

jtara1 commented May 8, 2019

it's a spike in fps lag that causes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant