A goomba enemy

@mcodes 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:

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:

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

2 Likes