How do I force a button push?

0 favourites
  • 9 posts
From the Asset Store
Build a thrilling space station scenario with these level assets and characters.
  • Hey there! Hope ur having a nice day! ^_^

    I want to force keyboard button DOWN on an event, such as ''call function''

    How can i force the player to push a button upon command??

    Thanks alot!

    Have a wonderful day!

  • How can i force the player to push a button upon command?

    IDK, blackmail? :)

    See this demo:

    dropbox.com/s/hnrj97lsyyd2nzg/ForcePlayerToPressButton.capx

  • > How can i force the player to push a button upon command?

    IDK, blackmail? :)

    See this demo:

    https://www.dropbox.com/s/hnrj97lsyyd2nzg/ForcePlayerToPressButton.capx?dl=0

    Hah funny, but not like that! I want a command that makes the down arrow to trigger.

    For example;

    ''On Function Now!" - press down arrow.

  • I still don't understand. You want to automatically trigger "Keyboard on key pressed" event, without the user actually pressing it? I don't think it's possible.

    Maybe you can explain what are you trying to achieve?

  • I have nothing to contribute to solve it but are you asking how to make a thing like Level Start. Hold Button Till End?

  • I still don't understand. You want to automatically trigger "Keyboard on key pressed" event, without the user actually pressing it? I don't think it's possible.

    Maybe you can explain what are you trying to achieve?

    Let's say, you have an event, when Hero overlaps Event 1 - Order keyboard-push Down Arrow. The system pushes the down arrow for the player.

  • I think what you are looking for is "Simulate control" action.

    Add action -> Hero -> Platform -> Simulate control

    8-direction behavior also has it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I think what you are looking for is "Simulate control" action.

    Add action -> Hero -> Platform -> Simulate control

    8-direction behavior also has it.

    Close. Simulate control only has left, right and jump. There is no DOWN/Duck. :/

  • There is no standard button for duck either. So you probably have an event like "Keyboard Is S key down -> (some actions)"

    Move these actions into a function "PlayerDuck". Call this function when S key is actually pressed, or when you need to 'force' ducking.

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