How do I prevent sprites from overlapping?

0 favourites
  • 2 posts
From the Asset Store
A set of 10 pixel art animated magic effects with icons. 2 Fire, 2 Earth, 2 Wind, 2 Water, Portal, Explosion.
  • I've just started attempting to make a tower defence game (with a single tower in the middle of the screen, and enemies spawning in to attack the tower).

    I've managed to randomize the enemy spawn points, and using the MoveTo option I've got the enemies moving to the tower as soon as they've spawned.

    I've set the enemies+the tower to Solids, but the enemies are still going inside the tower sprite. Is there a way I can prevent this?

    This is what I'm using to move the enemy to the tower.

    This is the enemy sprite inside the tower, despite both having the Solid behaviour enables.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Found a way to fix it. Probably an overly difficult method, but hey, it works :P

    This is what I did

    And this is it in play

    If anyone is aware of a better method to do this, I'm happy to learn better ways

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)