Avançar para o conteúdo principal

Pesquisa

Detect button press while in a trigger zone?

  • OgTheClever

    Set the Trigger Zone to detect 'possessed controller sensor'. Wire the Trigger Zone output to an AND logic gate. Also wire the button output (which you want to detect) into the same AND gate. Finally connect a wire from the output of the AND gate into a Counter gadget. You should set the target value of the Counter to however many times you want the button press to be detected.

  • OgTheClever

    Also, you could connect the Counter to a Number Displayer, if you want the player to see how many times the button is pressed, otherwise the count will be hidden when playing the Dream.

    I'd still recommend using the Number Displayer to test whether the logic works, at first; you can delete the Number Displayer if you no longer need it.

iniciar sessão para comentar.