How do I setup collision on single instance

Get help using Construct 2

Post » Mon Apr 25, 2016 5:10 pm

Hi all,

I'm just playing around with Construct 2 and have run into a snag.
I have a hitbox sprite (platform) and a box sprite (solid and platform). When I left click the box sprite the sprite sets its gravity to 0 and floats around and follows the mouse. When it collides with the player's hitbox it sets its collision to disabled so that it can pass through the player. When its over 100 pixels away it re-enables collision. No the perfect way of allowing one object to pass through the player when its click but its the only way I could figure out to do it.

Here is the issue - on my Layout, I control click and drag to create a second block object. The new block, on collision does not deactivate collision. The original block does work properly. And if I click the second block and then collide the hitbox with the original the second block will pass through properly.

I assume the collision command is only checking for collision with the original block and not the one I have clicked. How do I only get it to check the instance I have clicked for collision rather than the original?
B
3
Posts: 7
Reputation: 189

Post » Mon Apr 25, 2016 5:23 pm

Message: akarisilverleaf can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
https://dl.dropboxusercontent.com/u/61682934/testing.capx

Link to capx above.

Click the brown box closest to you, it hits you. Click the original one that is slightly farther away and it passes through.
B
3
Posts: 7
Reputation: 189


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, kellehk, KSLR, R0J0hound, tarek2 and 30 guests