Sprite Walls Engine – Extension

Sprite Walls Engine – Extension

Sprite Walls Engine is an extension that allows you to use sprites as walls instead of tiles. It also includes a pushable sprite block, that lets you, well push sprites.


Features

  • Sprite-Based Collision – Use sprites as solid walls.
  • Pushable Objects – Create objects that can be pushed by the player or other sprites.
  • Versatile Sprite Interaction – Works with both individual sprites and SpriteKind groups.

How It Works

This extension uses AABB (Axis-Aligned Bounding Box) collision detection to determine when a sprite collides with another. When a collision is detected, it stops movement or applies pushable the other sprite.

Example Use Cases:

  • Walls that are not tied to tilemaps.
  • Moveable crates or objects in puzzle games.
  • Dynamic barriers that can be repositioned during gameplay.

Blocks


  1. How to use:

    • Open MakeCode Arcade
    • Go to the Extensions Search bar
    • Search for:
      https://github.com/Sonicblaston62/Sprite-Walls
      
    • Click Install
  2. Add Collision Blocks:

    • Drag and drop “Stop Movement on Collision” or “Pushable Objects” blocks into your game.
    • Assign sprites or SpriteKind groups to define interactions.
  3. Lastly

    • The second is a byproduct of the first one. since I suck at coding, I messed something up and made the sprite pushable lol. Task failed successfully XD
    • If you have any suggestions for more blocks to add or bugs. please report them here or on github.

-Sonicblaston done and dusted

24 Likes

also you should make it so it can bounce off instead of ush

2 Likes

dude i saw this post from @richard with a weird elastic collision thingy it was cool

2 Likes

I’ve been wanting something like this for a wile now thanks! @Sonicblaston

2 Likes

THIS IS SO PERFECT
seriously i needed something like this SO bad for a game im working on and i really didnt want to implement it myself, but this is exactly what i needed!

1 Like

it appears the extension doesn’t work for me. neither of the blocks actually do anything.

1 Like

This is revolutionary :fire::fire::fire:

1 Like

GitHub link btw (for the clicks lol)

3 Likes

Could you send me an example of what’s wrong?

oops, must have been a glitched file. reinstalled the extension in another editor and it works. but earlier when I had it on the enemies would not push the player, they were being pulled towards by the follow block. I don’t know what the error must have been, but it appears to be gone now.

1 Like

I also found a new error, that being whenever I make a sprite collide with its own sprite type It just goes off screen. just fly’s away.

2 Likes

Yeah I know about that one. I wasn’t sure if that was going to become a problem so I just left it for now.

Welp that was quick

3 Likes

Okay, I have updated and fixed it now. just update the extension by opening javascript. open the explorer and scroll down until you find my extension and then press the update button.

1 Like

Is this mainly for top-down or platforming games?

1 Like

the push I will say is for bird eye/ top down

1 Like

I will make a platformer demo for this later. don’t worry

hey, will you be making it so that the designated sprites count as walls?

1 Like

WOW! This is AMAZING! We’ve been asking for this as an extension forever, thanks so much! :1st_place_medal:

2 Likes

Yeah I’m surårised no one has tried it before. it wasn’t that hard. (lying)

2 Likes