Touch Object = Repeat while touching the button?

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've created an Active object as an animated button.
    It include 2 Animations:
    "Stopped" and "Button Pressed" each one contain only 1 frame.

    I want to make the button animation change to pressed when I TOUCH it with my finger using the Android Exporter.
    But I'm not sure how to accomplish this with the Multiple Touch (there are going to be more buttons).
    I also want to make the character walk to the left for example while I press the Active animated button.

    Is there something like Repeat ?
    I guess I can try do this with the mouse again but I got confused after it didn't work when I tried:

    - User clicks with left button on [Active Button]
    - Repeat while left mouse-key is pressed

    So I thought maybe I should try the Multiple Touch object for the same idea?
    I'm not sure if the Multiple Touch object can do what the mouse does (repeat and such) but if YES, please let me know how, I'm curious to try it out.

    I need 2 kind of buttons, the simple: touch to jump or shoot (1 press = 1 action)
    and the more complicated (for me): touch to move left or right while I hold the finger on the Active animated button.

    As you can see I'm confused, I made it work perfect with the built-in Android Joystick but I want to create my own buttons, add more stuff so I don't want to be limited to the defaults.

    Please help? Thanks ahead! :)

  • Small Update:

    So I've made the animations of the buttons to work like this:
    Please login to see this attachment.


    But the thing I can't get to work is the "walking" Animation of the character to work while the Mouse key pressed.

    At the same time the normal keyboard Left+Right Arrows works, and same for the Android Built-In Joystick.

    How can I make the "walking" animation to work?
    The character is sliding, like the walking animation is stuck or not repeating...

    not sure why it's working perfect with joystick and keyboards but not with the mouse buttons, Help please?

    Thanks ahead!

  • For Android games I would always use the Multiple Touch object. If you need an event 'Repeat while left mouse-key is pressed' you can do 'Is touch active?" with Multiple Touch object.
    Could you provide a mfa file? I will fix movement/animations and your buttons.

    Currently working on ... [SIGPIC][/SIGPIC] ... a Puzzle Platformer

  • Thank you for your reply,

    Since I'm very new to the all Android Extension thing, I don't understand yet how to use "Is touch active" it ask for a number (0 based) not even sure what it does and if I choose the default 0, it shows:

    Touch 0 is active ...not really sure how to manage it, I guess I'll need to see an example to get the idea.


    So... the real challenge for me is to combine the buttons for HOLD (walk Left or Right) and normal PRESS to Shoot or Jump while using the "Platform Movement Object" so the walking animation is not freezing.


    ANYWAYS...
    I'm sharing this very simple platform (This creature can fly like flappy bird for now) the Buttons are already placed.
    I've managed to make the JUMP button play the animation correct + Make the character jumps.

    Now... if you or anybody else can help with the Arrow PRESSED animation + Make the character walks, I think I'll get the idea of the Multiple Touch object, I really want to learn and understand how it works on this example, also it will be GREAT for other on our community to check it out.

    You'll notice that I used the P1 Active Object as placeholder, I really like the more options I'll have with it later.

    Forgive me for the super lame graphics, I made it fast just to get to the important stuff.
    Thanks ahead! :)

    MFA Example File attached: Please login to see this attachment.

  • Thank you very much for taking the time and do this!

    I'm having a rough look and it looks so complicated to me and it reminds me the old manual way before we had an actual platform movement object... and also because I'm a Noob) ;)

    I really hope that FUSION 3.0 will handle such things much easier, but as long as it works now with your solution I will look at it later and try to understand how it works in order to learn and get better of course.

    Thanks again for your afford, I appreciate it. :)


Participate now!

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