Log in

View Full Version : Sprite doubleshot



ijcro
13-05-2004, 06:46 AM
Problem:
When collision test occurred on one type sprite, and two or more sprite are covered - all sprite deads because collision occurfor all covered sprite periodicaly. How make test for one covered sprite only (singleshot) ?

Thanks for any solution.

cairnswm
13-05-2004, 08:24 AM
How about setting a flag on the one sprite and in the collision procedure check if it is set and then ignore it.

ijcro
13-05-2004, 12:31 PM
Its nice, but Collision method is called from DXSpriteEngine as loop.