Need help with Score Multiplier

Almakos

  • Posts: 632
Hi,
I want to implement score multiplier into my game, but have couple troubles with it:

I have many bouncing Actors A and each should have own multiplier. I want those multipliers to grow by 0.1 every time actor hits something.
I have different obstacles (Actor B, Actor C) which add different amount of points to the global score when being hit.

So I created attribute which grows when actor hits something. but I don't understand how can I get multiplier from Actor A behavior and use in Actor B when adding score points.

Another question is how to make float have only 1 decimal sign, because I can get numbers like 0,2000006 which are not acceptable

Thank you.
Fishing Fantasy Trailer