I have recently been developing a side project for me and a friend to play. Its an interesting take on the Shmup genre. I developed it from the ground up to be fairly modular and easy to add in things such as new characters and attacks, etc.
However, I've seem to have run into a little snag...
All of the (some 10 different types for each player) bullets are grouped together in a family, 'Bullets'.
I need to set it so that the bullet with the lower PV 'Power' gets destroyed in the collision.
"If 'Bullets' collides with 'Bullets'
If 'Bullets.Value('Power') > Bullets.Value('Power')'"
...obviously isn't going to cut it.
Any ideas on how to compare variables between two particular members of a family upon collision?
(If it's a step in the right direction, each type of bullet DOES have a unique 'ID' variable)