Skip to content

Question about sword rotation #545

Answered by zicklag
legendiguess asked this question in Q&A
Discussion options

You must be logged in to vote

Even without rotation, I've noticed that for some reason, if I pick up and grab a sword over and over, you can see the flash of a frame where the sword get's parented/deparented to the player, but it doesn't update the sword animation immediately, and you can see the sword either floating above the player's head when picking up ( for just a single frame ) or floating below the players feet when dropping.

I'm not sure if that's related or not.


Actually looking at the Gif, I think that the sword is flinging around because the at-rest sword sprite isn't centered in it's bounding box:

Maybe we need to center the sword in that box?

I think it'd still rotate, so we'd need to figure out how to…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@legendiguess
Comment options

legendiguess Jan 3, 2023
Collaborator Author

Answer selected by legendiguess
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants