User Tag List

Results 1 to 5 of 5

Thread: Queue events or use delay / cooldown

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Jun 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Queue events or use delay / cooldown

    Hey again.
    Im still playing around with the MMF.

    How can I achieve the following, I want the player character to dash forward after pressing space:

    Player press space bar:
    - Player set speed 100
    - wait 1 sec
    - Player set speed 50
    - end event


    Since im new with the system, Im having problems how to get that working smartly. I can circle around with bunch of shifty conditions, but what I wanna do is just like run a script that says:
    Code:
    player setspeed 100;
    wait 1;
    player setspeed 50;

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    + Spacebar pressed
    + Delay = 0
    -> Set Speed to 100
    -> Set Delay to 51 (assuming your game has a framerate of 50fps)

    + Delay > 1
    -> Subtract 1 from Delay

    + Delay = 1
    -> Set Speed to 50
    -> Set Delay to 0

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Jun 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, is it possible to get an example MFA file, I dont think I understand the event editor that good yet.

  4. #4
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ZycroNeXuS's Avatar
    Join Date
    Dec 2013
    Location
    Everywhere
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Another way is to create a counter with a default value of 1.

    After that, create a group of events that are inactive at the start.
    Inside that group, make 2 events.

    Every [insert dash length here]
    ->Subtract 1 from Counter

    Counter = 0
    -> Deactivate group Dash
    -> Change maximum speed to [insert original speed here]

    Then outside the group, make 1 event.

    Upon pressing [insert dash button]
    ->Activate group Dash
    ->Set maximum speed to 100
    ->Set Counter to 1

    Voila, dash.

    EDIT: I actually made a tutorial a while back, I'll upload it here.Dashing Tutorial.mfa

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Jun 2015
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, thank you!
    Will check it out asap.

Similar Threads

  1. how do you delete objects in your queue
    By Mindhack in forum Fusion 2.5
    Replies: 2
    Last Post: 4th December 2014, 06:33 PM
  2. Queue Object
    By Cocodrilo in forum Released Extensions
    Replies: 0
    Last Post: 13th April 2009, 05:50 PM
  3. Delay Events
    By Atom in forum File Archive
    Replies: 0
    Last Post: 23rd February 2009, 03:08 PM
  4. PBP 1 Queue Thread
    By Novabrain in forum Extension Developers Lobby
    Replies: 2
    Last Post: 1st July 2007, 08:37 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
  •