Categories
Game Creation Mastering Development

How do I set bullets to shoot from the correct position on the sprite?

How can I set the bullets start position to shoot from the front right of the sprite?

It is currently shooting from the top of the sprite.

P.S. I’m doing a tutorial online with the sprite shooting upwords. I’m trying to change the direction of the bullet to shoot sideways to the right, which I got but the starting position isn’t correct.

Here’s my repo since the code is too long and am not sure which file to add: https://github.com/ZionX42/space_shooter-ms2_project-code-institute/tree/master/js

Thank you for the support!

Here’s an img for reference:

Leave a Reply

Your email address will not be published. Required fields are marked *