How do I Make objects not overlap each others

0 favourites
  • 3 posts
From the Asset Store
2D fighting template based in the game that defined the fighting games genre.
  • I want object "one","two"three"four" and object "five" to randomly spawn on the screen when user press Startbtn

    but I don't want them to spawn over each other. How do I do it?

  • You could check "On created" if it "is overlapping another object". If it does, destroy it and spawn it again at a random position.

    This will spawn it on random positions until it found a spot where it is not overlapping another object. For easiest use I recommend making an object-family for your 5 objects.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • EVENT If object ONE is overlapping another object ACTION: destroy ONE

    EVENT If object TWO is overlapping another object ACTION: destroy TWO

    EVENT If object THREE is overlapping another object ACTION: destroy THREE

    EVENT If object FOUR is overlapping another object ACTION: destroy FOUR

    EVENT If object FIVE is overlapping another object ACTION: destroy FIVE

    also you can use on collision with another object

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