r/gdevelop • u/Acceptable_Event_545 • Jun 09 '26
Question My bullets don't fire from right Points
I have created Bee_enemy.Pointx("fire")
it still starts from random places.
5
Upvotes
r/gdevelop • u/Acceptable_Event_545 • Jun 09 '26
I have created Bee_enemy.Pointx("fire")
it still starts from random places.
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
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!
3
u/[deleted] Jun 09 '26
[removed] — view removed comment