Quick, noob question

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.
  • I'm making custom movement, and I can't find any way to use the 'X repeat while...' event (i.e. "X repeat while mouse key is pressed"). Do you need the Control X extension? Could someone give me a quick rundown of how to make and handle this event?

    Thanks,
    Sp33d

  • The default keyboard object (looks like a keyboard) has its own "Repeat while 'xxx' is pressed" where xxx is any keyboard key.
    Similarly, there is a "Repeat while mousekey is pressed' which offers the same, but for mouseclicks.

    • Please login to see this link.

    Please login to see this picture.

  • The default keyboard object (looks like a keyboard) has its own "Repeat while 'xxx' is pressed" where xxx is any keyboard key.
    Similarly, there is a "Repeat while mousekey is pressed' which offers the same, but for mouseclicks.

    Isn't that different from the 'X while' event? Here's a screenshot of what I'm talking about...
    Please login to see this attachment.

  • Those conditions (which are under the player object, the joystick column) are merely references to the player 1 controls. For example, the default left/right are the left and right arrow keys. If the player were to change the left/right controls through the file > players (or pressing Control + Y) and change them to A and D respectively, the conditions you showed would still work where as mine, the repeat while 'xxx' is being pressed , would not.

    Simply put, conditions you posted have the same effect as "repeat while 'xxx' is being pressed". The only difference is that your conditions will change if the player changes the player controls whereas mine will not.

    • Please login to see this link.

    Please login to see this picture.

  • Okay, thanks a lot. One last question though; how would I make this event? Again, do you need some extension? What I mean is, you can go to 'keyboard -> repeat while being pressed' to do what you described, what would I do to add the X condition?

  • Could you be a bit more specific? All there is under joystick is "Read joystick state" and "Repeat while joystick is pressed."(as well as all the life and score options) What I mean is how would I get it to be 'X repeat while joystick move left' instead of simply 'repeat while joystick move left?' The player being able to change keys is pretty important for what I'm attempting to make.

  • I have no idea what you are referring to when you say "X repeat while joystick move left" if by the "X" you mean do something with the xposition, you have to code that in yourself. Asides from that, I have absolutely no idea what you mean when you refer to "X repeat while joystick move left"

    • Please login to see this link.

    Please login to see this picture.

  • In the screenshot I posted above (mmf123.jpeg) two of events I highlighted was "X repeat while." by X I mean the little cross. Above that, there are two different events that are just "repeat while." For the tutorial I am following, I need to know how to make the former event instead of the ladder.

Participate now!

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