# Pacman game with grid and custom character

**URL:** <https://discourse.processing.org/t/pacman-game-with-grid-and-custom-character/26311>\
**Category:** Coding Questions\
**Created:** [December 16, 2020, 8:15pm UTC](https://discourse.processing.org/t/pacman-game-with-grid-and-custom-character/26311 "2020-12-16T20:15:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lozza](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@Lozza](https://discourse.processing.org/u/Lozza)\
**Post date:** [December 16, 2020, 8:15pm UTC](https://discourse.processing.org/t/pacman-game-with-grid-and-custom-character/26311/1 "2020-12-16T20:15:27Z")

</div>

Im making a pac-man game but with my own character(.png of the character’s run cycle), I’m using a grid to make the maze barriers but cant get my sprite’s walk cycle to appear on the grid, is there even a way to use custom sprites? or is there an easier way to make object barriers for the map?

---

<div class="post-metadata">

**Author:** ![ErraticGenerator](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/erraticgenerator/32/11304_2.png) [@ErraticGenerator](https://discourse.processing.org/u/ErraticGenerator)\
**Post date:** [December 17, 2020, 1:13am UTC](https://discourse.processing.org/t/pacman-game-with-grid-and-custom-character/26311/2 "2020-12-17T01:13:38Z")

</div>

Have you checked the examples that come with Processing?  
`Examples > Topics > Animation`

---

<div class="post-metadata">

**Author:** ![CodeMasterX](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/codemasterx/32/2942_2.png) [@CodeMasterX](https://discourse.processing.org/u/CodeMasterX)\
**Post date:** [December 17, 2020, 7:51am UTC](https://discourse.processing.org/t/pacman-game-with-grid-and-custom-character/26311/3 "2020-12-17T07:51:57Z")

</div>

couldn’t you just swap through all stages of walking in intervals of x milliseconds?
