Is it possible to use an array of say 5 images and have 4 of them be useful in some way but the last 1 to end the game and if so how would that be done?


1 2 3 4 5 6 | Falling actor = getOneIntersectingObject(Falling. class ); if (actor != null ) { if (actor.getImage() == actor.imgSet[ 4 ]) damage(); else score(); getWorld().removeObject(actor); } |