How do I have sprite check location of another instance

0 favourites
  • 1 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Is there a way I can have a sprite check if another instance is in a certain position from/near it?

    (This is what I am trying to do, if that helps)

    I am trying to set a sprite so it create another or destroys itself depending on condition.

    You can see the 'A' with the yellow arrow, it can spawn another instance in any of the square around that are green. If more than 2 instances are in the areas in green the sprite is destroyed.

    This works fine with instance variables,EXCEPT it can only recognize a instance it has created.

    Below you can see if the sprite 'A' in the red area creates another instance in the area colored orange, will have no effect on the instance in green, sense it only recognizes instances it has created (the way it is so far).

    Is there a way I can have a instance sprite A check if a another instance of 'A' is at X,Y ?, or am I going about this wrong

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)