Time forDurationis the average action time. time withRangegives tolerance on both sides of the time forDuration.
withRange 2 / forDuration.
SKAction.wait(forDuration: 2.5, withRange: 3.0),
SKAction.wait(forDuration: 0.65, withRange: 0.7),
, 1.0 2.0 ,
SKAction.wait(forDuration: 1.5, withRange: 1.0)
0,2 0,8
SKAction.wait(forDuration: 0.5, withRange: 0.6)
forDuration Range:
forDuration = t_min + (t_max - t_min) / 2
withRange = (t_max - t_min)