Is covered by another object?

This forum is currently in read-only mode.
  • Is there any way to check if the complete area of an object is covered by another object? For example, If you have an event saying "is BLUE covered by RED" it wouldn't trigger in this scenario; <img src=""> but it would in this: <img src="">. Is there any way to do something like that?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I can't think of an easy way to do this. What's the overall aim? Is it an essential part of your gameplay mechanic?

  • Yeah, kind of. I'm working on my AI system, and have now created a way for the bot to see what's around him. For example if the level looks like this <img src=""> it is translated to the "check area" where it looks like this: <img src=""> There I'm going to put different "malls" for when it should jump or not. For example in this case, if the green area is covered with ground, and the blue area is empty (which it isn't right now, so the jump isn't executed) he would know that he can jump up to something three squares above and one square front, and preform that jump. I think i have a workaround for now. I can check if the malls are overlaping any markers that is not-activated. But i've had this problem before, and i think it would be useful to be able to do it!

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