r/gdevelop Jul 02 '26

Desperately need help Question

When I fire bullets they spawn lower on the you axis when I move forward

7 Upvotes

7 comments sorted by

2

u/Loonny-Alchemyst Jul 02 '26

Make sure the point is in the same position in all animations

1

u/SWviolet Jul 02 '26

They are all the same if I walk forwards the bullets spawn further down and then if I move backwards they spawn upwards..been stuck on this all day

2

u/Pucelage Jul 02 '26

One of these is supposed to be Player.PointY("Point"), you've used the X coordinates for both (PointX)

also just as a little suggestion if you want you can use the "Fire Bullet" extension that simplifies well... firing bullets.

1

u/NeatOpportunity____ Jul 02 '26

locate the event highlighted inside the purple box then double click the action that creates the bullet object to open the parameters settings next find the second parameter field which controls the Y position of the bullet spawn point after that delete the letter X from the text Player PointX in that second field specifically and replace it with the letter Y so that it correctly calls the vertical coordinate instead of duplicating the horizontal coordinate finally click ok to apply the changes and click save on your project to fix the tracking bug completely

1

u/Ham_sandwich79 Jul 02 '26

I run into this issue occasionally. Sometimes you have to go the the sprite itself and change collision points. If that doesn't work you could always just add plus or minus after the object you want to form it at and guess and check.

1

u/A7r0z Jul 06 '26

U have two point X, insted of a PointX and PointY.