Down button for Platform behavior needed

0 favourites
  • 12 posts
From the Asset Store
A pack of 76 platform designs for a platformer game with a mushroom/jungle theme
  • Remember Contra? When you holding "Down" and hit "Jump", you're falling through "Jumpthru" platform. The solution with disabling the behavior for a second is not an option. We need platform behavior bundled with down button, with possibility to check "fall through"?

    Also, "Down" button can be used for simplifying "Duck" feature, but that not so vital.

    P.S. I'm not a coder, so maybe this cannot be done in a simple and 100% working way.

  • Does anybody actually read the manual?

    Jump through behaviour

  • So how it relates to my topic? Did that page answers you how enable fall through Jumpthru-enabled Sprite?

    Here's an example - youtube video link at 1:10

    Right after the death the blue player is holding down button and presses jump - and succesfully falls from one platform to another.

  • So how it relates to my topic? Did that page answers you how enable fall through Jumpthru-enabled Sprite?

    Sorry if I didn't understand your post friend.....what exactly are you looking for?

    Do you mean that the current method for dropping through platforms/solids is not suitable for your game?

    <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Sorry if I didn't understand your post friend.....what exactly are you looking for?

    You can jump up through platforms, but how you should fall through them?

    And the solution should be suitable for 2 player game, when 1 player can fall through it, the another (while staying on the same platform as the 1st one) stays on it.

  • I'm pretty sure you can do this by moving your player downwards a pixel or two (past the top of the platform). Make sure you also don't allow the player to jump while holding down on a jump-thru platform.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think you might be right NugMan.

    I just had a look at project I did ages ago, and this is how I tackled it-

    <img src="https://dl.dropbox.com/u/22173473/jumpthrough.png" border="0" />

  • That will drop down all sprites with platform behavior. Tokinsom's solution is better now IMHO. Though there should be a prettier one, i hope.

  • This is something we had in Classic but hasn't made it to C2 yet. Added to the todo list, hopefully can make the next build.

  • Awesome, as always :D

    BTW I bought C2 today. All pros and cons are away now - C2 rules!

  • I use this workaround. It seems to work without glitches.

    JT is your jumpthru platform.

    On touched downbutton (trigger for user input) + player is overlapping at offset JT (0,JT.height/2) + platform is on floor --> set player.Y to (player.Y + JT.height * 1.2)

    (These values are not mandatory, you may need to adjust them because your gfx and/or gameplay may be different from my project)

  • Stumbled upon this topic in my search for another mechanic (pressing down buttons). There is now (?) a action for "Platform, Fall through", in case you still need it.

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