Ignore Selected Solids Workaround List

Discussion and feedback on Construct 2

Post » Thu Jan 14, 2016 3:33 pm

In Construct 1 the platform behavior had an action that allowed you to select any solids that you wanted to ignore collisions with, but this feature is not in Construct 2 at the moment.

It would be great to have a "ignore collision with selected solid" feature in construct 2 that would work with all behaviors, but until then these are the workarounds you can use to achieve that same effect.

1. Use Paco's Extended Platform behavior

Link: behaviour-paco-039-s-extended-platform_t80887

2. Use the default Physics behavior to create your own movement, then use the "Enable/disable collisions" action to choose which solids to ignore.

3. Make your own movement using R0J0hound's Chipmunk Physics behavior, then use the collision filtering feature to ignore selected solids.

Link: behavior-chipmunk-physics_t110815

4. Make your own movement using the custom movement behavior or without using behaviors at all.

5. Make your own "stop movement" or "push out" system that could push the objects out of selected solids when overlapping them.

6. Use R0J0hound's collision filtering example that was made using events.

Link: https://dl.dropboxusercontent.com/u/542 ... sable.capx

7. Use ruskul's modified platform behavior.

Link to thread: ignoring-specific-solids-using-the-platform-behavior_t167299

Link to behavior: http://www.mediafire.com/download/q5y7l ... dified.zip

Link to example cap: http://www.mediafire.com/download/r9c2l ... tform.capx

If you know any other workarounds, please tell me so I can add them to this list.
Last edited by JackieChan on Thu Jan 21, 2016 2:22 pm, edited 4 times in total.
B
10
S
4
G
6
Posts: 80
Reputation: 3,623

Post » Thu Jan 14, 2016 3:59 pm

Um, what's wrong with number 2?
If it works with physics, it works with all behaviors that use solid.
Image ImageImage
B
164
S
49
G
138
Posts: 7,953
Reputation: 91,872

Post » Thu Jan 14, 2016 4:46 pm

???

Only the physics object has a "Enable/disable collisions" action, all other behaviors don't have that action.

Also the physics object doesn't use the solid behavior to handle collisions.
Last edited by JackieChan on Fri Jan 15, 2016 9:25 pm, edited 1 time in total.
B
10
S
4
G
6
Posts: 80
Reputation: 3,623

Post » Thu Jan 14, 2016 7:24 pm

Check the sprite object.
Image ImageImage
B
164
S
49
G
138
Posts: 7,953
Reputation: 91,872

Post » Fri Jan 15, 2016 12:56 pm

I second this feature request. Disabling all collisions for the sprite isn't an option if you for example have enemies (using platform behavior) you want to disable character collisions with but still want them to not fall through the ground. Or if you have certain solids you want to disable character collisions with but still want the enemies to not fall through.
B
31
S
9
G
4
Posts: 131
Reputation: 4,321

Post » Fri Jan 15, 2016 4:54 pm

Waltuo wrote:I second this feature request. Disabling all collisions for the sprite isn't an option if you for example have enemies (using platform behavior) you want to disable character collisions with but still want them to not fall through the ground. Or if you have certain solids you want to disable character collisions with but still want the enemies to not fall through.


That's right.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
76
S
20
G
19
Posts: 1,931
Reputation: 17,159

Post » Fri Jan 15, 2016 5:22 pm

create a family of avoidables and set them to ignore?
Sea Monsters template - Isometric
Also includes 40 pages PDF of optimizations and "how-to" for your games, and how the "sea monsters" template was built. Follow link for details :)

sea-monsters-templates-and-assets_t162705
B
39
S
14
G
12
Posts: 617
Reputation: 9,297

Post » Fri Jan 15, 2016 5:34 pm

saiyadjin wrote:create a family of avoidables and set them to ignore?


If it is applied to platform characters, as was said above, they will fall trough floor :D
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
76
S
20
G
19
Posts: 1,931
Reputation: 17,159

Post » Fri Jan 15, 2016 7:08 pm

You don't apply it to the character. You do it to the obstacle.
I think Waltuo was getting at that it would also disable collisions for some other object that might interact with the obstacle.
That's a whole other argument than the ops.
Image ImageImage
B
164
S
49
G
138
Posts: 7,953
Reputation: 91,872

Post » Fri Jan 15, 2016 9:24 pm

Actually megatronx is right and saiyadjin's solution won't work.

I had a problem in my game where I was using the platform behavior and I needed the player to move through a certain wall, but the enemies couldn't move through that wall.

Disabling solids would make the player and enemies fall through the floor.
B
10
S
4
G
6
Posts: 80
Reputation: 3,623

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Anonnymitet, Radionauts, SyberHasky, zenox98 and 4 guests