# Image movement management - Donkey Kong Game

**URL:** <https://discourse.processing.org/t/image-movement-management-donkey-kong-game/35374>\
**Category:** Coding Questions\
**Created:** [February 22, 2022, 8:56am UTC](https://discourse.processing.org/t/image-movement-management-donkey-kong-game/35374 "2022-02-22T08:56:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cisky](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@cisky](https://discourse.processing.org/u/cisky)\
**Post date:** [February 22, 2022, 8:56am UTC](https://discourse.processing.org/t/image-movement-management-donkey-kong-game/35374/1 "2022-02-22T08:56:13Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

We need help with the image movement management of a Mario image in our game (see how it’s managed in this game freekong org). We don’t know how to replicate the same movements in our processing game, please send help. I’ll post our code as well.

`image(mario, marioX, marioY);`

`
`

`if (keyPressed){
if (keyCode == LEFT) marioX-=3;
if (keyCode == RIGHT) marioX+=3;
if (keyCode == UP) return 0;
}`

Lots of hugs for whoever responds.

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [February 22, 2022, 11:50am UTC](https://discourse.processing.org/t/image-movement-management-donkey-kong-game/35374/2 "2022-02-22T11:50:20Z")

</div>

What happens now in your code (falsely) and  
what do you want to happen instead?
