Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8931

Align Currency Number in constant distance to actor based on amount. How?

$
0
0

I'm sure some of you have a nice solution for this so here my question.

I have a currency icon and a display text behaviour next to it.
Now i want depending on the amount move the number next so they remain the same distance to the symbol even tough they go above the decimal etc.

Currency<10 = +12 pixels to the actor

Currency>100 = +24 pixel to the actor

Currency>1000= +36 pixels to the actor

Currency>10000= +48 pixel to the actor
etc.

I could do it by making separate behaviour for each with the conditions above but I would prefer an equation that will follow that behaviour endless.

Any idea?


Viewing all articles
Browse latest Browse all 8931

Trending Articles