Sprite on pokemon game

Hey I am fairly new to processing, and am trying to make a Pokemon game by the things I have learned so far. I am trying to add a sprite to it, so my character gets an animation when walking. Is there any simple possibility to add things like that, if so how? or explain. (I haven’t added a sprite yet by the way)

I’d check out the example on the processing website, although it may be a bit confusing


The idea is quite simple. All you need is to create a class that stores a list of images and iterating through the list with a pointer (some Integer) that should increase by 1 every frame and reset to 0 when done iterating through the list.

This can be done without the need for classes but will be cumbersome the more animations you include.