# Goomba like enemy

**URL:** <https://forum.makecode.com/t/goomba-like-enemy/5540>\
**Category:** Arcade\
**Created:** [January 14, 2021, 5:43am UTC](https://forum.makecode.com/t/goomba-like-enemy/5540 "2021-01-14T05:43:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Redjay1011](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redjay1011/32/3817_2.png) [@Redjay1011](https://forum.makecode.com/u/Redjay1011)\
**Post date:** [January 14, 2021, 5:43am UTC](https://forum.makecode.com/t/goomba-like-enemy/5540/1 "2021-01-14T05:43:17Z")

</div>

I need help in creating a bumper like enemy that moves left and right whn hitting walls but i just can’t figure out the code, can anyone help me please?

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [January 14, 2021, 3:46pm UTC](https://forum.makecode.com/t/goomba-like-enemy/5540/2 "2021-01-14T15:46:20Z")

</div>

Simple.  
`On Sprite kind "Enemy" Hits wall at (Location)`  
`if <is (enemy) Hitting wall [Left]> then`  
It is just detecting collisions then changing the x velocity.

---

<div class="post-metadata">

**Author:** ![TakeTheL08](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/takethel08/32/7018_2.png) [@TakeTheL08](https://forum.makecode.com/u/TakeTheL08)\
**Post date:** [January 14, 2021, 3:47pm UTC](https://forum.makecode.com/t/goomba-like-enemy/5540/3 "2021-01-14T15:47:39Z")

</div>

no i cant  
sorry

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [January 14, 2021, 3:47pm UTC](https://forum.makecode.com/t/goomba-like-enemy/5540/4 "2021-01-14T15:47:58Z")

</div>

Yea there is a way! If you overlap you want to check vy (velocity y) and see if you are falling! Set player volocity to -100 (the jump thing) and delete!

> **[Goomba Example](https://arcade.makecode.com/70834-71633-58966-15993)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Jump with A  
I had an Idea though! Imagine a wall thing like in the tilemap editor but in the sprite editor! Different kinds! A solid one (like a wall), A wall but bouncy (run against to push) and one for hitbox! So e.g you have a pointer and mark the hitbox on the tip!

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [January 14, 2021, 3:48pm UTC](https://forum.makecode.com/t/goomba-like-enemy/5540/5 "2021-01-14T15:48:07Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/b/b0c59d263ab576dfdb64845fdc50a919a96d9c78.png)

---

<div class="post-metadata">

**Author:** ![Redjay1011](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redjay1011/32/3817_2.png) [@Redjay1011](https://forum.makecode.com/u/Redjay1011)\
**Post date:** [January 15, 2021, 4:39am UTC](https://forum.makecode.com/t/goomba-like-enemy/5540/6 "2021-01-15T04:39:07Z")

</div>

Thanks guys!

---

<div class="post-metadata">

**Author:** ![gusiscute64](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gusiscute64/32/3556_2.png) [@gusiscute64](https://forum.makecode.com/u/gusiscute64)\
**Post date:** [May 6, 2021, 5:23pm UTC](https://forum.makecode.com/t/goomba-like-enemy/5540/7 "2021-05-06T17:23:38Z")

</div>

i think you should make it where the goomba spawns on the floor

---

<div class="post-metadata">

**Author:** ![mcodez](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mcodez/32/30743_2.png) [@mcodez](https://forum.makecode.com/u/mcodez)\
**Post date:** [May 2, 2024, 10:25pm UTC](https://forum.makecode.com/t/goomba-like-enemy/5540/8 "2024-05-02T22:25:05Z")

</div>

Im trying to make a goomba but I cant figure out how to stomp them I just want them to stay still btw may someone help me

> **[soper mareo bors](https://arcade.makecode.com/31166-39860-83350-37591)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
