Game Center Achievements with 1,000 Units

I'm putting together a group of achievements on Game Center for my new game. From what I read, you must just adjust the "Percent Complete" when reporting updates on an achievement. However, you can only use whole numbers when doing that. So, how would one update a single "unit" to an achievement that needs 1,000 units to achieve?

Any suggestions would be very helpful.

Thanks!

Replies

I would just save the value and update the achievement. When the new value is added update with Int(savedUnits/total * 100.0).

savedUnit += 1
let valtest = ( saveUnit / 1000 * 100.0)
GKAchievement(identifier: achievementID).percentComplete = Int(valtest)

Given that 'Int' truncates the remainder, it won't prematurely award it.