iDevGames Forums

Full Version: Animate An NSImage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.


I want to animate an NSImage. I want to increase its size and decrease it's size in an NSView. I also want to move the image left to right.

Lets say I want a black background with a white ball moving across the NSView.

To give the illusion of movement, should I:

1. paint the background.
2. paint the ball in the new position.
3. repeat for all movements.

Is that a good way to do it, or is there a better way?
Reference URL's