I've been stumped trying to replace a key input for a QTE with a clickable button instead. Seems simple, but I've hit a wall. Any ideas are much appreciated!
Ah here's the bigger picture. It's a timed quiz, and you have one of two choices to make (one of two in-game buttons to push). If you click the right one, you move on.
I've tried to set these up with a Menu, using menu buttons with "click type: simulate input" to make those buttons represent a key input. Then I use a "single press" QTE type, with that simulated input button as the button name.
When run it works properly using the keyboard for the input, but I can't seem to get those clickable menu buttons to be recognized.
I thought you meant clickable mouse-button, not a UI one, sorry.
Menus are not interactive if the QTE itself blocks gameplay. Make sure the ActionList that contains the "Input: QTE" Action has a When running setting of Run In Background.
Looks all OK to me. Best thing to do is change your Menu's source back to Adventure Creator. Then use the property controls to do a simple-but-functional AC variant of the Menu. Add highlight/click textures to the Button (again in the AC Menu Manager), so that we can see if the mouse clicks are actually being registered.
Ok, I've recreated the menu using Adventure Creator as the source. That's much easier, and clicks are being registered (click texture is working).
What I'm still having trouble with is getting that menu button click to register in the QTE as the input. The input is called "2nd" and I'm currently trying to solve the problem by having the menu button click type simulate the input "2nd." No luck so far.
Good. I should say at this point that it's important to be using the latest version of AC, if you aren't already.
As everything looks like it's been done right, we may have to do some debug tests. Open up PlayerQTE.cs, and insert the following into line 224 (shunting what's there already down):
Chris, happy to say that updating to 1.49 solved the issue. Still a curious problem, but a non-issue for me now. Thanks again for digging into it with me.
Comments
Menus are not interactive if the QTE itself blocks gameplay. Make sure the ActionList that contains the "Input: QTE" Action has a When running setting of Run In Background.
As everything looks like it's been done right, we may have to do some debug tests. Open up PlayerQTE.cs, and insert the following into line 224 (shunting what's there already down):
Debug.Log (KickStarter.playerInput.InputGetButtonDown (inputName) + " " + KickStarter.playerInput.InputGetButton (inputName));
Note the Console when you then test it. If all works, it should print "True True" when you click the button - but I suspect that won't be the case.