Help with 'ghost through sprites' block?

Hi all,

I’m making a game with lots of sprites. There is a single ‘mySprite’ and lots of ‘mySprite2’ s, and they are all controlled by the same buttons. I am trying to make it so that they cannot overlap each other, but I don’t know how.

I tried the ‘ghost through sprites’ block set to off, but it didn’t work. I also tried the ‘ghost’ block set to off, but that didn’t work either. Here’s a simple recreation of the problem if anyone knows a fix.

Thanks,

DogSquid :)

2 Likes

Sprites don’t have built in collision. The “ghost through sprites” flag is for if they set off “on sprite overlap” events. I believe @Sonicblaston made an extension for this:

3 Likes

There isn’t a built-in way to do this; one way is to check that whenever two of those sprites overlap, you can move one or both of them until they are no longer overlapping. However, it can be pretty laggy, especially if sprites keep colliding over and over

3 Likes

I’m wondering, is the “mysprite overlaps with othersprite” boolean affected by this sprite flag?
Screenshot 2025-09-08 2.32.12 PM

1 Like

Thanks for replying! But I might not do this because it could definitely get quite laggy…

2 Likes

Thanks so much! I’ll try this.

2 Likes

Try it!

  • It DOES affect the “sprite overlaps” boolean
  • It does NOT affect the “sprite overlaps” boolean
0 voters
2 Likes