It's pretty easy to make your own Sprite class in MIDP 1.0. All you need is an image with all the animation frames in a row, and then a paint method something like this:
1 2 3 4 5 6 7
| void paint(Graphics g) { g.setClip(x, y, width, height); g.drawImage(animationFramesImg, x - width * frameIndex[state][frame], y, Graphics.TOP | Graphics.LEFT); } |
Where state tells whether you're walking left, walking right, jumping, etc., and frame is just the current index into the animation frame sequence for that state.
For a full example, see
Game Animation with Java MIDP at
Forum Nokia.