Hi! I'm sure this is a pretty easy one, but I can't seem to get it.
When a function is called, there's a loop that creates as many sprites as a variable value says (fist one is created right on player's X position, Y-16), adding 16 pixels on X to every new sprite, so there's some space between them. Now what I want is for all those sprites to be set centered on top of the players head. So if I make 5 sprites, I want number 3 to be right on top and the others on the sides.
I tried to set self.x-16*sprite.count but it doesn't work.
Thanks for the help.