Display Big Numbers (with commas) v4

ArmellineArmelline Member, PRO Posts: 5,369
edited June 2015 in Working with GS (Mac)

I posted in the spare code thread a method for displaying big numbers, including commas. Unfortunately that method was flawed, and so I came up with a new one. This method seems much more solid. If you downloaded any of the old methods, scrap it and use this one instead. I'm posting this as a new thread to give it maximum exposure and hopefully notify those who downloaded the flawed old method that they need to change it!

Display Big Numbers (with commas) v4

When trying to display very large numbers using the Display Text behaviour, they will not display in full. I'm not going to get into why that happens right now, but it's not too difficult to work around it. An added benefit of this method is that you can use comma separators when displaying the number, too!

This will work with numbers up to 999,999,999,999.

This method also avoids the need to spend time changing lots of attributes, which would normally be necessary. It does this by hijacking the self.Max Speed attribute and using that. What this means is that you can just drag the rules from the demo project into your own project, and with a single change it will function in your project.

If you need to use the actor's Max Speed elsewhere in your project then you'll have replace all references to it with the number you want displayed, as noted in the template itself.

Comments

Sign In or Register to comment.