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

Question: how did you overlay the weapons sprites with the character's? #86

Closed
lazarovziv opened this issue Sep 4, 2023 · 2 comments
Closed

Comments

@lazarovziv
Copy link

Hi,
first of all, fantastic work, it's really cool what you're doing!
second, I'm trying to overlay the weapons images on top of the character's (after I created the entire body with the head) and the images don't match, the bodies' are 64x64 and the weapons are 128x128, and in the generator it's seems you aligned it perfectly. Can you share how you did that? Thank you very much, your time answering this question is much appreciated!

@lazarovziv
Copy link
Author

the issue I encountered is with the slash/slash_reverse/thrust images

@sanderfrenken
Copy link
Owner

sorry for the late reply. Thanks for the compliments!
Weapons in some cases have a different frame size indeed. So what you need to do in your example:

Take every separate body animation frame (universal frame, 6464) and center it in 128128 frames. Then, draw over that the weapon sheet.

For JS reference code, you should checkout this method:
https://github.com/sanderfrenken/Universal-LPC-Spritesheet-Character-Generator/blob/master/sources/chargen.js#L427

Hope that helps!

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

2 participants