Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hey all. I am wondering if there is a better way to do this.

    I have some menus and other stuff that trigger on a keypress (using enter/"A" gamepad button for now). Each menu is in a group that gets opened and closed as needed.

    If I don't limit/latch it, the keypress carries through to the next menu so unless you press and release Enter REALLY quickly, you will miss the next menu (selecting w/e option is first selected). This is how I am doing it now:

    - I have this at the top, always available (ie, its group is never closed)

    Please login to see this attachment.

    - Then on keypress:

    Please login to see this attachment.

    and whatever actions follow (often, destroying the current menu and creating the next one)

    This works well for the Enter key, but if I want to limit more keys, I will have to add a neg. "repeat while KEY is pressed" for every single key. Not the end of the world but seems a bit much for something that should be much simpler!

    How do you accomplish this in your projects?

  • have you tried adding to your keypress or button press, +[ only 1 action when event loops ]

    I have tried that, however it wasn't working for me. I think it is because often a keypress will deactive the current group of events, and activate another. Imagine:


    EVENT GROUP 1

    On keypress, do this loop

    On "this loop"

    - write a text

    - deactivate EVENT GROUP 1

    - activate EVENT GROUP 2


    EVENT GROUP 2

    On keypress, do this loop2

    on "this loop2"

    - erase the text


    So even with the +[ only 1 action when event loops ] in event group 1's keypress, when group 2 activates it will still register the keypress. That is my understanding of why it didn't work, anyways:/

  • you dont need fast loops if thats what you are doing - sounds like you are not using the groups or messing them up somehow.

    (is group 2- deacted to begin with in that example)


    *a sure fire way; is have an Active OBJ ( flag 0 )

    Press Key: >Toggle Active(flag 0) <---- dont use   repeat while user presses

    if Active (flag 0) = 0 : > activate [group 1], deactivate [group 2]

    if Active (flag 0) = 1: activate [group 2], deactivate [group 1]


    [group 1]

    \ do stuff


    [group 2]

    \ do stuff

  • yep that's basically what I'm doing now. I am using fast loops because I need all of these actions to be done in 1 cycle, and sometimes they are out of order

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!