Jumping and suggestion

0 favourites
  • 4 posts
From the Asset Store
Jump on candies, collect candies and earn score!!!
  • Hi.

    I know there is a lot questions about it, and "how to". I couldn't find any detailed guide with pictures about it.

    "vectorY < 0, set vectorY to vectorY / 2. "

    it's not enough to understand how to do it actually... please for the last time someone could please put some instructions with pictures how to make a long\short jump by how long you are pressing on space for example?

    Also for Scirra if all your tutorials will be more detailed even if the guide will have more then 20 pages people will be more likely to buy it.

    Also it'll prevent the flood of question like mine.

    Thank you.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • People don't have time to make tutorials with pictures for every question that people have, unfortunately. You are going to have to work some elements out yourself.

    You want to make a jump where the height jumped is dependent on how long you have been holding the key down.

    This is done in two stages.

    Stage 1: find out how long the player has been holding the button down.

    Stage 2: Use that to determine how high the jump should be.

    So that sounds easier now. To do stage 1, you need to use the System.time expression when the key is pressed - store it in a variable. When the key is released you can use the System.time expression again to get the new time, subtract the old time (which you stored in a variable) to get the length of time the key was held.

    To do stage 2 depends on how you are doing a jump. Are you using the platform behaviour for example. Anyway - hopefully you will know how to make a jump. All you have to do is use set the value of the jump height using the value you obtained, probably with a multiplier, probably also clamped to sensible values.

    Hope this helps.

  • I think what he's asking is how to do a Mario or Sonic style jump, where you stop ascending if you let go of the jump button.

    Try this:

    +Player is Jumping

    +Jump Key is not down

    --> Set Player.Platform.VectorY = Player.Platform.VectorY / 2

    It doesn't necessarily have to be divided by 2 either. You can set it to whatever number feels good to you.

  • I think what he's asking is how to do a Mario or Sonic style jump, where you stop ascending if you let go of the jump button.

    Try this:

    +Player is Jumping

    +Jump Key is not down

    --> Set Player.Platform.VectorY = Player.Platform.VectorY / 2

    It doesn't necessarily have to be divided by 2 either. You can set it to whatever number feels good to you.

    Thank you,

    But I didn't find how to set it "Set Player.Platform.VectorY = Player.Platform.VectorY / 2

    " If you can explain to me how to do it it'll be great. I can see that I have the ability to add sub envent but coudln't find the right command for Player.Platform.VectorY.

    Thanks.

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