How do I

0 favourites
  • 2 posts
  • How to make one key for two actions?

    Let's say I set the key "spacebar" the two actions are "platform.gravity= -1500" and I want after pressing the space bar I was able again to click on it and turn on the code "platform.gravity= 1500".

    But there is one thing. When I press the space bar, the engine thinks that I perform the action "platform.gravity = -1500" and not "1500". And all the same - How to put 2 actions in the occupied a key on the keyboard?

    I hope you know what I said now.

    P.S: Sorry for my English.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If you only want to change the value between positive and negative it easy:

    Keyboard| On Space pressed -> System | Set platform.gravity * -1

    You have do use a triggered event (green arrow), otherwise the value would change uncontrollable.

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