self.image help? worked fine in 0.9.2

JBULLFROGJBULLFROG Member Posts: 58
edited November -1 in Working with GS (Mac)
So I have a change attribute: self.image to "Ammo_icon"..random(1, game.Unlocked guns )..".png"

Then im checking to see if attribute: self.image is Ammo_icon1, Ammo_icon2, Ammo_icon3, ect.. then if actor receives event: touch is pressed, play sound, add ammo for gun 1, 2, 3, ect.., and destroy actor.

Everything worked fine in 0.9.2, then i updated to 0.9.3, and it now does not work, now I was hoping that 0.9.4 would magically fix this, but it doesn't. I have even opened old back ups that worked and were created in 0.9.2 and opened them in 0.9.4 and those ones no longer work either. Is this a 0.9.3/4 issue?

Or did something get changed where I can no longer do a check on what self.image is for the actor to then do stuff when the actor is touched?

Please help.

Comments

  • gariantrollgariantroll Member Posts: 219
    Take away the ".png" I just found that out the hard way.
  • gariantrollgariantroll Member Posts: 219
    gariantroll said:
    Take away the ".png" I just found that out the hard way. Although it makes it easier in the long run.

  • JBULLFROGJBULLFROG Member Posts: 58
    that seemed to do the trick, thanks. Strange that it worked fine before though.
Sign In or Register to comment.