# Rotate arc in pacman animation

**URL:** https://discourse.processing.org/t/rotate-arc-in-pacman-animation/45367
**Category:** Coding Questions
**Created:** [November 21, 2024, 10:34am UTC](https://discourse.processing.org/t/rotate-arc-in-pacman-animation/45367 "2024-11-21T10:34:00Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![edufissure](https://avatars.discourse-cdn.com/v4/letter/e/e56c9b/32.png) [@edufissure](https://discourse.processing.org/u/edufissure)
#### Post date: [November 22, 2024, 12:31pm UTC](https://discourse.processing.org/t/rotate-arc-in-pacman-animation/45367/13 "2024-11-22T12:31:11Z")

</div>

As you can see above, you are applying my idea of code…applying a bucle for from 0 to 90º…and step of one degree…but it doesnt work…it stills point to the right and make waka waka…

These would be a project for my students… you can see a project of a couple of years ago…

> **[GitHub - apaisgarcia/Comecocos](https://github.com/apaisgarcia/Comecocos?tab=readme-ov-file)**
>
> Contribute to apaisgarcia/Comecocos development by creating an account on GitHub.

When pacman changes direction, we change the image…we have the four pacman images looking right, left, up and down… and we have some images to make waka waka bite… I dont remember right now…

I was remembering code and “getting back to p5.js”…so i come across the pacman bite using arc…and seemed interesting…

As general idea i have a pacman class, with attributes and methods. Main methods would be moveRight, moveLeft, moveUp and moveDown…and attributes like direction, lives, score and the most important coordX and coordY…  
So when left arrow would be pressed → pacman would go left → depends on the direction it was taking we have to do the smoothly transition…then use animation going left…

Thanls

---

_[View the full topic](https://discourse.processing.org/t/rotate-arc-in-pacman-animation/45367)._
