Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: Automatically Importing code from other frames?

  1. #11
    Clicker Fusion 2.5
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    498
    If any of this sounds out of your league or not worth the time, you could drag all code/groups into a master group that you can collapse and copy/paste quickly. It's not ideal in my opinion (single frame + editor is the best) but it's very simple, and quicker than going through every line and every group to copy and paste them.

    I usually do that even if I don't copy and paste code. My event editor ends up looking something like this (groups in brackets):

    [Game]
    -[startup]
    -[loading/saving]
    -[player]
    ---[player movement]
    ---[player damage]
    ---[player animation]
    -[sound/music]
    -[camera]

    If I would ever want to move my code, i collapse then copy the [Game] group.
    Last edited by casleziro; 12th August 2017 at 09:31 AM.
    Best person at writing incomprehensible posts. Edits are a regularity.

  2. #12

  3. #13
    The Almighty Zentaco recently come up with a neat way to make a level editor, take a look at this: https://www.youtube.com/watch?v=7zqKzZA6Z2o

    I added a couple of small things to it too: http://almightyzentaco.com/modified-level-editor/


    Another approach you can take over multiple frames is a combination of Event Behaviors and the global object flag. This approach does have some quirks and limitations, but it allows you to put all your event logic in one place and when you update it, it automatically updates in all other frames.

    One way to use this approach:-

    1. Create an active object and set to invisible (alternatively can apply to existing active objects)
    2. Set it's global flag to TRUE / ticked
    3. Add an event behaviour and create your events. You have to import references to other objects in the frame that you want to interact with.
    4. Drag and drop this active object into every frame where you want to use it.

    Now whenever you update the event behavior in any of the frame, all the other frames that have the active object are updated too. I've successfully used this approach on several games but as stated there are some quirks and limitations, for example you cannot refer to qualifiers (without hacks).
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  4. #14
    Construct 2 and 3 Have " Include event sheet " feature .It's so useful and you don't need to copy - paste events . I hope Fusion 3 add this feature or similar .
    Anyway Construct haven't native ports .Also required subscribe too and it's awful .

    I prefer stay with Fusion forever
    My website and 2d Animation artworks: http://www.pershaland.com/

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Replies: 1
    Last Post: 5th February 2017, 07:03 AM
  2. Importing or layering frames
    By mrogers15 in forum Fusion 2.5
    Replies: 0
    Last Post: 14th December 2016, 06:38 AM
  3. Animation Automatically Centering Frames When Playing
    By thehunter006 in forum Fusion 2.5
    Replies: 4
    Last Post: 14th October 2015, 05:06 PM
  4. Importing new anim frames not reflected in-game
    By artician in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 31st May 2008, 06:52 AM
  5. importing multiple frames
    By westray in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th March 2008, 10:05 PM

Tags for this Thread

Posting Permissions

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