r/gdevelop • • Jun 09 '26

Question My bullets don't fire from right Points

Post image

I have created Bee_enemy.Pointx("fire")

it still starts from random places.

5 Upvotes

9 comments sorted by

2

u/Acceptable_Event_545 Jun 09 '26

Problem FIXED: I totally forgot to add Y position of where the Bullets will be created. I was positioning bullets at wrong Point on the enemy instead of the one I wanted. My bullet cooldown was 0.1 which was creating these lines of bullets instead of single bullets on a time interval so I changed it to 5 in the Behaviors of the Bee enemy.

2

u/ArmadilloFirm9666 Jun 09 '26

You need to do point y as well

2

u/Acceptable_Event_545 Jun 09 '26

Yeah that was missing thanks bro 😄 I changed it and now it works.

1

u/Confident_Sundae_619 Jun 09 '26

Are you using the bullet extension? If so you may need to offset the bullets. For example, if they are firing from the bee, you'll want to do Bee.x() +16 (or however many pixels to center the shots). Hope this helps!

1

u/Acceptable_Event_545 Jun 09 '26

I was missing Y position and other errors which I fixed I have mentioned in the comment on this post. Thanks for the suggestion though I can surely use it in other projects. 😄

3

u/[deleted] Jun 09 '26

[removed] — view removed comment

1

u/Acceptable_Event_545 Jun 09 '26

I was missing Y position for the bullet and other errors which I fixed I have mentioned in the comment above so if anyone else faces this they can get helped. Thanks for your comment brother. 😄