Hi all,
I’m finally biting the bullet and updating Doggins to use the new Graphics 2.0 engine, and have encountered an issue with sprite animation feeling stuttery.
The main character in Doggins is a display group that contains six sprite objects (created using the current display.newSprite API). The display group is given a center-right (1, 0.5) anchor point. When I move the character on-screen, I move the entire display group, and play sprite sequences on three of the sprites inside the display group. This worked fine on Graphics 1.0, and is the method used in the current release on the App Store.
When trying the V1 Compatibility Mode, I noticed that Doggins’s sprite animation felt stuttery, as it was skipping frames or jumping around. If I removed the :setReferencePoint(display.CenterRightReferencePoint) call, the animation felt smooth again. I decided to fully migrate the game to Graphics 2.0, and all was well until I set the anchor point and added “.anchorChildren = true” to the display group. The animation is then just as stuttery as in the V1 Compatibility Mode; if I disable “.anchorChildren = true”, it’s smooth.
Again, this worked just fine in Graphics 1.0. Anyone else encounter this? Any ideas?
Thanks!
- David