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

Collision detection: The dragon fails to reach its target during step #421

Closed
JiepengTan opened this issue Nov 19, 2024 · 1 comment
Closed
Labels
bug Something isn't working v2.0 Related to spx v2.0

Comments

@JiepengTan
Copy link
Collaborator

test project : tutorial/02-Dragon

02_shark

@JiepengTan JiepengTan added bug Something isn't working v2.0 Related to spx v2.0 labels Nov 19, 2024
@JiepengTan JiepengTan changed the title Collision detection: The shark fails to reach its target during step Collision detection: The dragon fails to reach its target during step Nov 19, 2024
@JiepengTan
Copy link
Collaborator Author

The reason for this issue is that the sprite's collision detection isn't updated immediately after the character's position changes. This results in a problem where collision detection only occurs during rendering. At that moment, the character might not actually collide with the target,
leading to the rendered character being quite far from the target, which causes a noticeable difference from the Spx1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.0 Related to spx v2.0
Projects
None yet
Development

No branches or pull requests

1 participant