if image exist

wouterwouter Member Posts: 174
edited November -1 in Working with GS (Mac)
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

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    what do you mean exactly? not sure i understand
  • wouterwouter Member Posts: 174
    i have this constrain attribute:
    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.
  • wouterwouter Member Posts: 174
    bump...

    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?
  • wouterwouter Member Posts: 174
    mmm how can i check of an attribute is 1 (or doesn't exist)

    i have made 22 attributes with the names of the images (with value 1)

    how can i check if the attribute (or image) exist????
  • wouterwouter Member Posts: 174
    mmm maybe i must rotate the image
    so by direction of ....
    rotate image direction...*30

    already tried this but it doesn't work...
Sign In or Register to comment.