I have a spaceship game, the problem arose when I decided to add larger ships, I have noticed that by default the character's "hitbox" is always located in the center of the bottom part of the sprite, which makes it very difficult to hit projectiles against targets of a larger size. It also makes it so that when the sprite is looking from the side, the projectiles are generated at the "feet" of the ship which looks horrible aesthetically and also makes aiming worse.
What I'm looking for is a way for the character's hitbox to align in the center of the sprite, both horizontally and vertically.
projectiles being fired from a ship with 64x64 resolution
Question
drackreborn
I have a spaceship game, the problem arose when I decided to add larger ships, I have noticed that by default the character's "hitbox" is always located in the center of the bottom part of the sprite, which makes it very difficult to hit projectiles against targets of a larger size. It also makes it so that when the sprite is looking from the side, the projectiles are generated at the "feet" of the ship which looks horrible aesthetically and also makes aiming worse.
What I'm looking for is a way for the character's hitbox to align in the center of the sprite, both horizontally and vertically.
projectiles being fired from a ship with 64x64 resolution
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now