Is covered by another object?

For questions about using Classic.

Post » Wed Oct 29, 2008 10:30 pm

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; but it would in this: . Is there any way to do something like that?
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Wed Oct 29, 2008 10:45 pm

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?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,630

Post » Wed Oct 29, 2008 10:58 pm

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 it is translated to the "check area" where it looks like this: 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!
B
8
S
2
G
5
Posts: 744
Reputation: 3,288


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests