User Tag List

Results 1 to 3 of 3

Thread: How can I call a function

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Sep 2020
    0 Post(s)
    0 Thread(s)

    Question How can I call a function

    I understand that groups of events are like functions. Is there a way to create a group of events and then call them? I have Frame 1 and in the event editor it seems everything has to go into the frame from beginning to end. I'm just trying to make sure I'm not missing anything important.

  2. #2
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    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)
    BartekB's Avatar
    Join Date
    Aug 2013
    14 Post(s)
    0 Thread(s)
    Groups are a collection of events that can be turned off and on, they don't really work as functions.

    What I think you might be referring to is fast loops. You can start a fastloop by name (like a function) and any events that start with "On loop "name here"" will all execute and finish before other actions start (also like a function). The optional behaviour is repeating it more than once (hence why they are called loops).

    They can be found within the first object in the event editor, System/Special conditions object.

    Fusion has 3 event editors:
    - The global editor, events here will run on every frame (Unless the frame excludes it)

    - The frame event editor (The usual editor)

    - The behaviour editor (Assigned to an object, copy and pasting the object to a frame will also copy its events)
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! -
    Dungeon Raiders! - Link soon™

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleUniversal Windows Platform Export ModuleSWF Export Module

    Join Date
    Jun 2014
    1 Post(s)
    0 Thread(s)
    The 2 main ways of calling "pseudo-functions" in fusion is either :

    A) create a fast loop & put your desired functionality inside of that loops "on loop" events. You may freely open/close event groups within fastloops.

    Or B), use one of the function extentions (there's quite a few). I've only ever seriously used the Fast Function Object, and it's similar to fastloops in how they're set up, although imo they're less flexible than fastloops, and it's not immediately obvious at what location does Fusion jump to (or back to) in the event list after execution of one of these function objects. Unlike the fast loop which you know will return to the action immediately after the action which called the loop. Not sure if the function objects behave similarly in relation to groups, either. I've only ever used them in always-activated groups.

    A way around that is to just use a fast loop to call the function, but at that point you might as well just use a fast loop 

Similar Threads

  1. Can only pass 11 parameters with call function
    By Gary_Molton in forum HTML5 Export Module 2.5
    Replies: 4
    Last Post: 28th April 2020, 03:27 PM
  2. html5 call javascript function
    By arthurh in forum HTML5 Export Module 2.5
    Replies: 1
    Last Post: 13th June 2016, 06:27 PM
  3. example of how to call javascript function in HTML5 runtime
    By brett in forum HTML5 Export Module 2.5
    Replies: 15
    Last Post: 9th October 2015, 07:06 PM
  4. PHP to Java Socket within JavaScript Function call
    By mogg49 in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 25th November 2010, 08:39 PM
  5. Call function?
    By Skyhunter in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 7th November 2010, 01:01 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