How do I make a platform fall when solid disabled

Get help using Construct 2

Post » Mon Apr 27, 2015 10:18 pm

I have a puzzle setup that requires making certain blocks invisible and no longer solid when stepping on switches and other blocks solid and visible. While the player (platform) is standing on a solid block and it becomes not solid due to a switch being toggled the player does not fall down where the block used to be until I jump or move off and back onto the area where the block was solid.

Is there a way to have the player fall when the solid block it is standing on has its solid property set to disabled?

Thank you.
B
10
S
2
G
2
Posts: 87
Reputation: 1,274

Post » Mon Apr 27, 2015 11:09 pm

First I would add the 'Jumpthru' behavior to the platform then something like this:

-'Switch Triggered'
--'Platform' Solid = disabled
--'Player' platform 'Fall Through'
--'Platform' Jumpthru = disabled

Hope that makes sense.
B
5
Posts: 19
Reputation: 263

Post » Mon Apr 27, 2015 11:45 pm

I believe one way to make this happen is in the event that you disable the solid set your player up one pixel up if will then fallthrough


action example set player yto self.y-1
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Tue Apr 28, 2015 1:02 am

Thanks for the quick replies.

I went with:

-'Switch Triggered'
--'Platform' Jumpthru = enabled
--'Platform' Solid = disabled
--'Player' platform 'Fall Through'
--'Platform' Jumpthru = disabled


I tried doing it by moving the player 1 pixel before I made the post; however, I had made the player move down a pixel instead of up. I see what I was doing wrong now.
B
10
S
2
G
2
Posts: 87
Reputation: 1,274


Return to How do I....?

Who is online

Users browsing this forum: work3 and 6 guests