azurepancake
December 13th, 2009, 02:35 AM
Hello!
I'm working on a small project using PyGame and the number of different sprites in this game are increasing. I've noticed that some sprites are layered over others. For example, in my spaceshooter, if I turn off the collision detection and my ship flies into an enemy ship, it will go behind the enemy sprite, instead of over it. I'm curious as to what governs which sprite is above others.
I tried searching for this answer, but no luck. Anyone got a clue?
Thank you!
I'm working on a small project using PyGame and the number of different sprites in this game are increasing. I've noticed that some sprites are layered over others. For example, in my spaceshooter, if I turn off the collision detection and my ship flies into an enemy ship, it will go behind the enemy sprite, instead of over it. I'm curious as to what governs which sprite is above others.
I tried searching for this answer, but no luck. Anyone got a clue?
Thank you!