User Tag List

Results 1 to 2 of 2

Thread: Button Press and repeat action until pressed again

  1. #1
    No Products Registered

    Join Date
    Jun 2016
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Button Press and repeat action until pressed again

    So I am implementing an auto feature into my game with the click of a button, and I don't know how to loop it until button is clicked again.

    Along with that can I change the text of the button back and forth?

  2. #2
    No Products Registered

    Join Date
    Aug 2014
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think a flag (boolean variable) should do the job: basically when the button is pressed and the value of the flag is 0, the value is set to 1. If the value was 1, it's set to 0. As long as the value is 1, your auto feature repeats.
    You can also change the text on the button when the value of the flag is changed.

Similar Threads

  1. How to make a ios button repeat while pressed?
    By Retrobolt in forum Fusion 2.5
    Replies: 3
    Last Post: 6th July 2016, 07:34 AM
  2. Replies: 7
    Last Post: 23rd November 2015, 06:54 PM
  3. Repeat while touchscreen is pressed
    By Kentronisk in forum Android Export Module 2.5
    Replies: 2
    Last Post: 8th June 2015, 05:47 PM
  4. Joystick 2 Object and "Repeat while <button> is pressed" (Negated)
    By hellii in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th November 2013, 09:12 PM
  5. Repeat while button pressed
    By Sarah in forum File Archive
    Replies: 7
    Last Post: 9th July 2007, 01:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •