Animation or masking question

GlomGlom Member Posts: 59
edited February 2012 in Working with GS (Mac)
I'd like to create an image that fills up depending on the percentage of a level completed. Like say it's a meter, and I want the meter to fill to 60% full if they collect 60% of the items in the level. Would the best way to animate this be through some use of masks in gamesalad (if that's even a possibility) or to create literally 100 images and have it animate up to a certain portion depending on the percentage?
Thanks!

Comments

  • old_kipperold_kipper Member Posts: 1,420
    edited February 2012
    There are lots of ways of doing this and some are more efficient than others but it is dependant on what look you are trying to achieve. if its a shape like a bottle you can 'fill it' with a moving object behind it as long as there is no problem with the background. This is not often the case but it can be got around sometimes with masking. you can also change the size of the object with a constrain to a value such as a score so that it varies with that score. In this case it can help to move the object as well as resize it so it doesn't grow out of the bottom of the object in front. The rules might look something like constrain self.height to game attribute.score and constrain self.position.y to 300+(self.size.height/2) this would move the object at a rate that allows one edge to remain at the base of the meter while it changes size to indicate the rising or falling score.

    hope that helps. kipper
  • CloudsClouds Member Posts: 1,599
    No masks in Gamesalad.
  • MotherHooseMotherHoose Member Posts: 2,456
    @Tynan … WTF! No! Masks! … not even on Halloween ??? (~~)

    @Glom … sent your Profile a PM

    @};- MH
  • CloudsClouds Member Posts: 1,599
    @Motherhoose

    I've heard talk on the forums of a gimp mask . . .
  • JGary321JGary321 Member Posts: 1,246
    Pfft.... You'll never take my Majoras mask away from me...
Sign In or Register to comment.