[Feature Request] Conditional Solids

Discussion and feedback on Construct 2

Post » Thu Jun 20, 2013 5:57 am

Playing around with the pathfinding behavior; it would really awesome to have something similar to the "choose obstacles" when using the solid behavior.

In example, if you wanted enemies are not solid to each other, but are when running into the player.

A "Disable Obstacles" would probably make more sense...
B
27
S
5
Posts: 472
Reputation: 2,502

Post » Thu Jun 20, 2013 9:10 am

Your suggestion is a bit confusing.
Do you want the conditional solid only for the pathfinder behavior or for the solid behavior itself ?

Anyway, add something like the custom movement behavior or 8direction as well as the solid behavior to your enemies and they will "push themselve away" automatically (since I guess what you are willing through this suggestion is to get some flocking/enemies not overlapping).

Otherwise, you can already disable the solid behavior and so in certain conditions you could either chose to enable or disable it according to the specific logic of your game.

The pathfinder behavior itself does not handle the collision with solid anyway.Kyatric2013-06-20 09:10:56
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
268
S
96
G
67
Posts: 7,219
Reputation: 73,729

Post » Thu Jun 20, 2013 1:21 pm

You can already disable solids.
Scirra Founder
B
378
S
220
G
84
Posts: 23,868
Reputation: 188,109

Post » Thu Jun 20, 2013 2:56 pm

Guys he means disabling interaction with solids for certain objects, not as a whole. It's been requested a dozen times now o.o;

For example - Your player can get a special ability that allows him to walk through a solid object but everything else will still interact with it. Currently you can't do this.Tokinsom2013-06-20 14:59:08
Image
B
234
S
27
G
13
Posts: 1,784
Reputation: 18,274

Post » Thu Jun 20, 2013 6:21 pm

Yeah. I was thinking at first the solid could keep a list of objects it'd interact with, but after thinking it out I suggested that there should be a "solid to only layer X" option as that way it would allow you to move the object between layers easily without the backend keeping a list per object of what is and isn't solid. That way it would be only a list, or a check of the object layer

Suggestion - Solid only on layer
B
21
S
8
G
6
Posts: 346
Reputation: 4,891

Post » Thu Jun 20, 2013 9:03 pm

Hmm, I'd be cautious about 'solid only on layer' as people usually have their layers already set up.

I reckon a way to go about it would be to add 1 more action to the 'Solid' behavior - 'Add exception' and 'Remove exception'. Any object or family in this list wouldn't collide with the solid.
B
92
S
30
G
24
Posts: 3,191
Reputation: 32,584

Post » Thu Jun 20, 2013 10:49 pm

[QUOTE=Tokinsom] Guys he means disabling interaction with solids for certain objects, not as a whole. It's been requested a dozen times now o.o;

For example - Your player can get a special ability that allows him to walk through a solid object but everything else will still interact with it. Currently you can't do this.[/QUOTE]

This is exactly what I mean - sorry for the confusion.
B
27
S
5
Posts: 472
Reputation: 2,502


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests