playMaker

Author Topic: Wait  (Read 195 times)

abend

  • Playmaker Newbie
  • *
  • Posts: 28
    • View Profile
Wait
« on: December 10, 2019, 06:37:20 PM »
I can't figure out how to approach this. I'm sure somebody somewhere has done this. I have a VR game, I am out of town so I didn't bring the headset. So I'd like to add something to where I wait for controller input so that I can simulate it with literally any other kind of input. So I was initially thinking wait for A or B. I'm sure people have things where you could press more than one button to start something. I'm making this harder than it has to be right?

Thore

  • Sr. Member
  • ****
  • Posts: 362
    • View Profile
Re: Wait
« Reply #1 on: December 10, 2019, 07:23:19 PM »
Hi,

Can you describe what’s the stumbling block exactly? You can add actions that listen for input and then take it from there. For prototyping, you can use get key down, or you can use get button down, get axis which uses the input manager.

abend

  • Playmaker Newbie
  • *
  • Posts: 28
    • View Profile
Re: Wait
« Reply #2 on: December 10, 2019, 08:39:06 PM »
sure, like I have a wait that is waiting for oculus touch button down. but I want to ADD also accept xbox controller button1 or spacebar. it seems like I can only wait for a single specific input instead of a mouse, keyboard or controller input. this is just for testing, I don't want to rework all of my inputs to use a mouse click and then have to put them all back the way they were for VR input. I figured this was an easy thing I was missing, Wait for A or B.

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 743
    • View Profile
Re: Wait
« Reply #3 on: December 10, 2019, 10:00:39 PM »
In the start state, just have an input listener for more than one type of input.

Example.

Start State:
Listen for space key --> space key event
Listen for VR trigger key --> trigger key event.

You can listen for as many types or keys of input as you need, in any state. Just add more than one action.