Multiple Custom Scores
ekappleyard@gmail.com
Member, PRO Posts: 6
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
-
Braydon_SFX Posts: 9,273
"Self.image" to "blue-..floor((game.score%self.div/10))"
Very close. Make sure it's this:
Constrain: self.Image to "Blue-"..floor((game.score%self.div/10)).
Make sure the quotes close after the Image prefix.My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Answers
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.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
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?