# Sprite on pokemon game

**URL:** <https://discourse.processing.org/t/sprite-on-pokemon-game/10369>\
**Category:** Libraries\
**Created:** [April 17, 2019, 12:09am UTC](https://discourse.processing.org/t/sprite-on-pokemon-game/10369 "2019-04-17T00:09:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icecrem](https://avatars.discourse-cdn.com/v4/letter/i/71c47a/32.png) [@Icecrem](https://discourse.processing.org/u/Icecrem)\
**Post date:** [April 17, 2019, 12:09am UTC](https://discourse.processing.org/t/sprite-on-pokemon-game/10369/1 "2019-04-17T00:09:40Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![BennyHacker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/bennyhacker/32/2969_2.png) [@BennyHacker](https://discourse.processing.org/u/BennyHacker)\
**Post date:** [April 17, 2019, 2:50am UTC](https://discourse.processing.org/t/sprite-on-pokemon-game/10369/2 "2019-04-17T02:50:19Z")

</div>

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

[https://processing.org/examples/animatedsprite.html](https://processing.org/examples/animatedsprite.html)

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.
