A few hard questions

For questions about using Classic.

Post » Sun Apr 20, 2008 11:07 pm

What i want to is to surroud an object (we call this object the "Thing" ) with a web of detectors. It should look something like this:



What i want to be able to do is to create the Thing, and have the detectors created and positioned like this automaticly. Is that possible to do with for example groups/containers?

I also need a way to give every detector a private variable like the ones written on the image, (i didn't write all of them) to easily associate to them, plus one to associate them with the right "thing" and i need a simple way to make events trigger if a certain combination of detectors are overlapping/not overlapping. For example, if the case was this:

[color=#00BF00:3cjmj625]player[/color:3cjmj625] [color=#00BFFF:3cjmj625]overlapping[/color:3cjmj625] [color=#BF4000:3cjmj625]not overlapping[/color:3cjmj625]

it could be two private strings, one "overlapping" which would say: 39,40,41 And one "not overlapping" which would say: 13,14,15,22,23,24,30,31,32,33

EDIT: Of course there would be more numbers. All the numbers would be overlapping or not overlapping. This would rather be a mall for colision testing. Hm.. now it became confusing.


I have a few ways to do this, but every one of them requires much repetition, and risk to have to go through 44 events if you want to change something.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon Apr 21, 2008 12:45 pm

This is where some kind of grid object plugin would be really handy... question: Do the detector objects move with the "thing" or do they stay in the same position all the time?

Either way I guess it would still involve making X number of seperate "grid objects" and then, like you said, if you want to change something you have to change it X times.
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Mon Apr 21, 2008 4:44 pm

They move with the object, but that's not hard to do, so i didn't mention that. Anyone who can think of a way to solve my problems without a new plugin?
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon Apr 21, 2008 7:32 pm

Need more information:

How is the object moved? Is it a click in a gridspace or is it with the keyboard?

What type of movement is going on here? Will the green box teleport to it's new location or "slide" to it's new location?

Is that brown rectangle a platform? Is there gravity? Or is this a top-down view and the brown thing is a wall?

Edit: Why do you need a list of strings with the cell numbers?
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Apr 21, 2008 7:56 pm

Moving is not the problem. Creating them and associate them with the right object is the problem. Since it's detectors that i will use in many diferent ways i want to be able to write a "collision pattern" easily. It doesn't have to be a string with values. Just a way to write a number for each detector that has to overlap, and one for each that isn't allowed to overlap, and then trigger an event based on that.

Your questions are not relevant, but it's going to teleport. it's going to be a platform-wiew, and it will be moved by events.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon Apr 21, 2008 9:21 pm

My questions are relevant. I asked them for a reason, to try to work out a different, easier method of detection. Collision is tied into movement which is tied into control. The three have to work together.

Edit:

Anyway, what I mean is, if I knew what you were trying to do, perhaps I could come up with a different method for you that maybe you haven't thought of. A fresh perspective, so to speak. But I can't do that unless I know what's going on.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Apr 21, 2008 9:39 pm

I agree with Deadeye. Can you give us the part of your project plan that relates to this?
B
3
S
2
G
4
Posts: 310
Reputation: 2,120

Post » Mon Apr 21, 2008 10:22 pm

I don't really need a fresh perspective since i've got everything figured out eccept these two specific questions. The green thing will just be moved by events, not controlled. The detectors are not collision detectors. This will be used in an AI to determine what do do in specific situations, that's why i need to be able to easily determine if a certain combination of the detectors are overlapping.
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Tue Apr 22, 2008 12:14 am

[quote="Attan":c0k7qc4w]I don't really need a fresh perspective since i've got everything figured out eccept these two specific questions. The green thing will just be moved by events, not controlled. The detectors are not collision detectors. This will be used in an AI to determine what do do in specific situations, that's why i need to be able to easily determine if a certain combination of the detectors are overlapping.[/quote:c0k7qc4w]

Could you work it using math instead? Comparing angle and distance of the "thing" compared to any "other thing" rather than using a grid system?
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Tue Apr 22, 2008 12:24 am

Yeah... detectors seem superfluous. One could either use one detector object that moved around, or calculations based on distance, maybe. But, I don't know what you're really doing or anything about math. So I'm sorry, this post is pointless. :D
B
4
S
2
G
6
Posts: 161
Reputation: 2,597

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests