How do I make no collision areas

Get help using Construct 2

Post » Sat May 06, 2017 11:23 pm

Is there a way to make some sort of collision masking or blending. Like let's say I have a solid area, and I want a sprite moving over that area that nullifies the collision on it.

Easiest exemple would be in a top down game, moving blocks over water: You can't walk over water, but only on the blocks that move over the water, and you can move in the area of the block, but not outside of it unless another block is near (or you're out of the solid zone)

What is the best or the easiest way to do this?
My addons:
[PLUGIN]Value Monitor
[PLUGIN] Text Alignement
[BEHAVIOR]Timescale Ratio
[BEHAVIOR]Polar Coordinates
[PLUGIN]Action Sequence
[BEHAVIOR]Action Sequence
[BEHAVIOR]Instance Variable Control
B
35
S
6
G
2
Posts: 228
Reputation: 3,388

Post » Sun May 07, 2017 3:31 pm

you can use a disable collission action on an object based on whatever condition you setup.

or you can use a plugin like chipmunk phyics that has collision groups and prevent certain objects from colliding with others based on that group.

for your top down game example question.

make the water a solid object. Then if the player is next to a rock block. and pushes up (to push the block into the water lets say). you can use the "on collision at offset" action to check if there's water behind the rock, and if so, disable the collision on the water, and move the block into its position.
B
87
S
44
G
16
Posts: 1,005
Reputation: 17,938


Return to How do I....?

Who is online

Users browsing this forum: bclikesyou, brunopalermo, kellehk, R0J0hound, ST314 and 24 guests