User Tag List

Results 1 to 7 of 7

Thread: code 'snippets' for Fusion 2.5?

  1. #1
    Clicker iOS Export ModuleInstall Creator Pro
    Dex's Avatar
    Join Date
    Jun 2015
    Location
    West Yorkshire, England
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question code 'snippets' for Fusion 2.5?

    Hi all....

    I have a question:

    Is there any kind of code 'snippets' area for Fusion 2.5?

    What I mean is, for example:

    Say I want to make this block --->iceblock.png
    Explode in to 4 bits when hit by something --->i1.pngi2.pngi3.pngi4.png
    That then fly outwards and disappear after a few seconds.

    So, instead of me figuring out how that may be done, do we have any kind of area on this site that has snippets of code for that? (Or anything else)

    Just asking as I cant seem to see anything....but if there is please point me to it.

    Thanks.

  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
    Posts
    622
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    +When block is going to be destroyed
    ------Create bit_1 at block
    ------Create bit_2 at block
    ------Create bit_3 at block
    ------Create bit_4 at block
    ------Destroy block

    +Always
    ------Add 1 to Alterable Value A of bit_1
    ------Add 1 to Alterable Value A of bit_2
    ------Add 1 to Alterable Value A of bit_3
    ------Add 1 to Alterable Value A of bit_4

    +If Alterable Value A equals 120 (That is 2 seconds)
    ------Destroy bit_1/2/3/4

    If you are using the Built-in Physics, you can use the Movement > Physics > Apply Impulse with random direction and like 10 force, probably
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  3. #3
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,010
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    BartekB is correct. Quite simple really.

    I'm sure I did a widget on this, I'll have a search but there is a forum here you can take a look at and search too.

  4. #4
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,736
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    BartekB. Would you do the actual mfa for this and the Physics mfa for my example website? It would be greatly appreciated.

    Thanks,
    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform 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)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,120
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    speaking of your example website marv - Dex would probably find it very useful - http://www.castles-of-britain.com/mmf2examples.htm

  6. #6
    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
    Posts
    622
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Here's a pretty straight forward example
    Uses the Physics extension for the broken bits

    breaking_blocks_example.mfa
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,736
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Thank you BartekB.

    DaveC. I think you are correct. It would be helpful. Thanks.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

Similar Threads

  1. plug a C++ code into Fusion
    By ADS_3000 in forum Extension Development
    Replies: 10
    Last Post: 20th June 2014, 10:34 AM
  2. Fusion 2.5 Developer - Looking for Code optimization and/or Consultation.
    By Logiq121 in forum Paid Design & Development Requests
    Replies: 0
    Last Post: 12th March 2014, 05:56 PM
  3. Dragonguy's Snippets
    By dragonguy in forum File Archive
    Replies: 2
    Last Post: 23rd December 2008, 07:20 PM

Posting Permissions

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