Real simple one here I guess.
I have a player that fires a projectile.
this works fine no worries.
I need to place the projectile when its spawned up by for example 20px so it dosnt spawn in the center of the player.
Now I tried
projectile.x = player.x
projectile.y = player.y -20
This obviously just offsets it to the x and y axis’ so dosnt work for me.
I checked out the setreferencepoint api and tried:
projectile:setReferencePoint(display.setBottomReferencePoint), no go again.
I could solve it by redrawing my sprite sheet but there has to be a simple way?
Any help greatly appreciated.
thank you