User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Stopping and starting when pressing the same button.

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)
    Epic_Elephant's Avatar
    Join Date
    Apr 2015
    Location
    New York, United States
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Stopping and starting when pressing the same button.

    Code:
    User clicks with right button
    Soldier is stopped
    Soldier -> movement start
    
    User clicks with right button
    Soldier is not stopped
    Soldier -> movement stop
    This is so simple but it won't work. Does anyone know a way I could make this work?

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Stopping and starting when pressing the same button.

    It's because the game quickly checks when you're pressing the button. It will activate both conditions within the time you press the key.

    I would use the key to toggle a flag. Then when the flag is either on or off, switch the movements.


    Sent from my iPhone using Tapatalk

  3. #3
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    User clicks with right button
    Soldier is stopped
    Soldier -> movement start
    Flag 0 is off

    User clicks with right button
    Soldier is not stopped
    Soldier -> movement stop
    Flag 0 is off

    Then add an action to each: "Turn flag 0 on".

    Lastly, create an additional event:

    Flag 0 is on: Turn Flag 0 off.

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)
    Epic_Elephant's Avatar
    Join Date
    Apr 2015
    Location
    New York, United States
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried this and maybe I didn't understand but it did not work. Can I have an example please?

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Stopping and starting when pressing the same button.

    User clicks with right button: toggle flag 0

    Flag 0 is ON:
    Soldier movement start

    Flag 0 is OFF:
    Soldier movement stop


    Sent from my iPhone using Tapatalk

  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)
    Epic_Elephant's Avatar
    Join Date
    Apr 2015
    Location
    New York, United States
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you it works now. But now the player can go out of bounds, how can I prevent this?

  7. #7
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Stopping and starting when pressing the same button.

    Test position of player. Click all the arrows that point outside the sides of the frame.

    The condition now will read "when active leaves the play area" (or something similar to that)

    Then stop the player.


    Sent from my iPhone using Tapatalk

  8. #8
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)
    Epic_Elephant's Avatar
    Join Date
    Apr 2015
    Location
    New York, United States
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That is what I originally had it and now it is broken.

  9. #9
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Stopping and starting when pressing the same button.

    When player leaves the play area: set flag off?


    Sent from my iPhone using Tapatalk

  10. #10
    No Products Registered

    Join Date
    Jul 2015
    Location
    MI, USA
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This way will work if you're not using the current status of the timer for anything.

    User clicks with right button
    Soldier is stopped
    Timer is greater than 0.02
    Soldier -> movement start
    Set Timer -> 0

    User clicks with right button
    Soldier is not stopped
    Timer is greater than 0.02
    Soldier -> movement stop
    Set Timer -> 0

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 20th April 2016, 10:19 AM
  2. Move an active caracher pressing a button
    By playdiune in forum HTML5 Export Module 2.5
    Replies: 0
    Last Post: 29th January 2015, 01:57 PM
  3. Pressing a button twice
    By Bench in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th April 2010, 04:15 AM
  4. How to switch weapons by pressing a button
    By Warmachine in forum Multimedia Fusion 2 - Technical Support
    Replies: 29
    Last Post: 26th January 2010, 03:24 AM
  5. Holding one button and pressing another
    By aeroshock in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th September 2008, 03:42 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
  •