How do I disable infinite jump on Start of Layout

0 favourites
  • 3 posts
From the Asset Store
Every game developer starts with an idea, and it can come from anything:
  • Hi guys;

    I'm making a infinite jump game, but i want the player starting stable on the ground and just start the infinite jump process when press [jump] and colide with the first platform.

    (Something like this print: ibb.co/ghMNvw)

    The problem is that I put the Event:

    [player > platform is on floor > player > Simulate platform pressing jump]

    Now the player is jumping on the start of layout through the ground and not stable.

    (Something like this print: ibb.co/dKXO2b)

    Is there a way to disable jump with any System Event [on the start of layout] and enable jump only after press [jump keyboard] or something like that?

    Whats the best way to do this process?

    Thanks <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />

    *Sorry for my bad english.

  • Sure, just add a global variable JumpEnabled=0

    On Key pressed "Space" change this variable to 1

    Add a second condition to your "player > platform is on floor > player > Simulate platform pressing jump" event:

    System->Compare global variable-> JumpEnabled=1

    (to add another condition, select this event and press "C")

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You're awesome!

    Works fine.

    Thanks

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