# A goomba enemy

**URL:** <https://forum.makecode.com/t/a-goomba-enemy/28562>\
**Category:** Arcade\
**Tags:** game, make, demo, art, platformer\
**Created:** [May 3, 2024, 10:04pm UTC](https://forum.makecode.com/t/a-goomba-enemy/28562 "2024-05-03T22:04:50Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [May 3, 2024, 10:21pm UTC](https://forum.makecode.com/t/a-goomba-enemy/28562/3 "2024-05-03T22:21:28Z")

</div>

@mcodez and if you do decide to make your goombas move, that’s easy too.

The simplest method is to use the “bounce on wall” flag for sprites:

> **[enemy-bounce-on-wall](https://arcade.makecode.com/S90279-25688-12170-01104)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

However, this isn’t true “goomba” behavior because it won’t work for sprites that have gravity. In mario, goombas fall down when they walk off a ledge. To copy that behavior, we can use an “on hit wall” event instead:

> **[enemy-goomba](https://arcade.makecode.com/S23416-01490-40266-98631)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

There are comments in both those example that explain the code!

---

_[View the full topic](https://forum.makecode.com/t/a-goomba-enemy/28562)._
