Forum rules - please read before posting.

Active Input not working

Hi everybody! I'm really new to adventure creator and I'm trying to create a Simon says puzzle with 3 levels of difficulty, I'm mostly on the art side of videogames and I don't know a lot of programming. Everything I've done so far has been with help of friends.

To start the puzzle you have to talk to a character, once accepted you will activate Active Inputs and disable movement.

I currently have 3 boxes that light up following a pattern (As in 3-2-3-1-etc). After watching this, the player needs to press the arrows (1=Left, 2=Up, 3=Right) in the correct order, and this goes on 3 times for sequences A, B and C, each sequence longer than the last.

To check if the player's answer is right, I have:
-2 Variables, called "Player Answer" and "Correct Answer"
-Plus, each box has an Action list with the parameters:
-Visits to that particular box (For example in the example sequence 3-2-3-1, if the player is pressing 3, it may be either the first 3 or the second 3
-And one that sets the run that the player is in (A,B and C).

The logic goes as follows:
If player presses Left for "1", "Player answer" becomes "1" and is then compared with "Correct answer", the latter which if correct, is changed afterwards to the next number that comes in the sequence.
If it's wrong, I have an actionlist that displays a message and resets the number of visit to the boxes, also sets the Run to A (the first one) and calls the actionlist that plays sequence A again.

To input the answers I disabled the player's movement and created 4 different active inputs: "Left", "Right" and "Center".
Theses first three each make the character turn to that direction and calls the "Use" actionlist of the box in that location, the last one "Down", makes the player able to move again freely, changes camera, stops the puzzle (by killing every actionlist that plays a pattern) and deactivates the "Left", "Right", "Center" and also "Down" inputs.

Everything sort of works fine but on the third run suddenly my Right active input stops working and I don't know why. The only times I change the inputs is at the very beginning when the "accept" dialogue runs the "Simon logic" actionlist that toggles active all the inputs I set (Left, Right, Center and Down), when you press "Down" and on the third box Use actionlist last visit, since you already finished the puzzle I also toggle Left, Right, Center and Down inactive.

Sorry for how long this is but there really wasn't any other way to explain everything. I can answer any questions if it's not clear. I just don't know where to look for what's causing the problem. Thank you!

Here is a link to the pictures

https://imgur.com/a/DuX6u1z

Comments

  • Welcome to the community, @Who_are_you.

    If the Right input stops working, it'll typically be down to one of three things:

    • The input has been disabled (either the Active Input itself, with Input: Toggle active, or the Input system entirely (Engine: Manage systems).
    • The conditions for the input are no longer met (i.e. you're in a Cutscene, but it only accepts input during Normal gameplay).
    • The input is being detected, but the ActionList itself is not running as intended

    Assuming the Input is active, you can enable the AC Status box at the bottom of the Settings Manager to check what state the game is currently in, and insert an ActionList: Comment Action to top of the Input's ActionList to print a message in the Console when it is run.

    I should make mention, though, that I'd recommend looking into the use of Quick-time Events for such a game mechanic. Though each button would be its own QTE, you could string them together in a sequence with Wrong input fails? checked to more easily track the Player's progress.

  • Hi Chris!
    Thanks for all the advice, I did as you told me and activated the AC Status box (it helped me a lot) and made the comments. In the end I took your recommendation and used the QTE and redid the entire puzzle a lot more simpler and easier to modify. Thank you so much for the help!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.