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.
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:
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