How do I make a platform fall when solid disabled

0 favourites
  • 4 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • 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.

  • 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.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

  • 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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)