Do something based on powers of 10?
Rainbros
Member Posts: 124
Let's say Attribute A=10 and Attribute B=10 and B is constantly increasing (like a score). How would I perform an action whenever B is greater than or equal to A*any power of 10? In other words, it should do something whenever B=100 or 1,000 or 10,000, and so on.
Comments
You'd use the Log10() math function to find the power of ten.
Here's a demo: https://www.dropbox.com/s/5geogmrb6r0u5a7/Powers of 10.zip.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@tatiang - Perfect, thanks!