Multiple Custom Scores

So i've seen TSbooth's video on how to use custom images as numbers to represent a score attribute in gamesalad, i.e. a custom number font. However I want to use two separate fonts to represent two separate attributes. I can't see a way of doing this as the images need to be named as their number but they can't be named the same thing.

Any help would be massively appreciated!
Thanks community

Best Answer

Answers

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited June 2015

    You can name one set of images like this:

    "Blue-1"
    "Blue-2"
    "Blue-3"

    And your other set like this:

    "Green-1"
    "Green-2"
    "Green-3"

    Inside your constrain attribute, add this at the beginning of your expression:

    "Blue-"..
    or
    "Green-"..

    The two dots are to concatenate two or more elements in your expression.

    Make sense? If not, I can create you a demo.

  • ekappleyard@gmail.comekappleyard@gmail.com Member, PRO Posts: 6

    @Braydon_SFX said:
    You can name one set of images like this:

    "Blue-1"
    "Blue-2"
    "Blue-3"

    And your other set like this:

    "Green-1"
    "Green-2"
    "Green-3"

    Inside your constrain attribute, add this at the beginning of your expression:

    "Blue-"..
    or
    "Green-"..

    The two dots are to concatenate two or more elements in your expression.

    Make sense? If not, I can create you a demo.

    I think it makes sense. something like this:

    -Constrain Attribute-

    "Self.image" to "blue-..floor((game.score%self.div/10))"

    And that'll focus the expression only on the blue images/numbers?

Sign In or Register to comment.