if image exist

hi guys,
i have a question, is there a way to check of the image exist???
because i have a constrain attribute with self.image...
or must i make 20 game attributes with all the (20) image names and check of the attribute exist? (is this fast or not...)
wouter
i have a question, is there a way to check of the image exist???
because i have a constrain attribute with self.image...
or must i make 20 game attributes with all the (20) image names and check of the attribute exist? (is this fast or not...)
wouter
Comments
self.Image to: ceil(( game.direction real *10)/2) game.up game.>evenwichtinteger ..".png"
but not for all directions i have images (so there are gaps between the images), and if the image not exist (gap) then show the current image.
so i can make over 20 attributes and check if the attribute exist, only i don't know if this slows down the game much?
i have made 22 attributes with the names of the images (with value 1)
how can i check if the attribute (or image) exist????
so by direction of ....
rotate image direction...*30
already tried this but it doesn't work...