User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 29

Thread: I am going full Behavior programming, any tips?

  1. #11
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    If you want my advice, I'd say follow Konidias' advice.
    Working as fast as I can on Fusion 3

  2. #12
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)

    Join Date
    Jun 2006
    Location
    Killeen, TEXAS
    Posts
    1,037
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    indeed - using behaviors is no way an advantage

  3. #13
    Clickteam Clickteam
    Simon's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    2,642
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    Behaviours, when properly understood can be very powerful. I find them particularly useful when creating GUIs as with a little careful design you can make your menus and interfaces very rapidly and also dynamically generated.

    I made a blog post on here a few days ago about using behaviours to create switches and actuators which can all be dynamically assigned at runtime. This uses two behaviours, one in each of the the two objects, and each with just 3 events. I attached a demo and sample mfa :-)

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I agree with Simon that Behaviors are a great tool if you use them correctly.

    For example, I often have active objects that fade away or have a short life. I use behaviors on those objects count down to 0... when the counter on that object = 0 I destroy it. Also using that counter to increment the alpha blending coefficient and it fades out. So simple, the code is contained in the active's behavior and doesn't get in my way.

  5. #15
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem comes when you try to debug - every time you debug a behavior you have to go through the process of closing it to run, and reopening it again. Also, debugging becomes difficult with many behaviors.

  6. #16
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,305
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Behaviours are pointless - but not because I don't properly understand them.
    Plus, you still can't edit behaviours using the Event List Editor, which is far nicer to use than the horrible Event Editor.

    @Tuna:
    You can just as easily put the exact same code inside a group within the main event list. That way you can still simply close the group so it doesn't get in your way, but it's much more easily accessible if you need to change anything, and you're far less likely to overlook it when trying to debug code.

    @Simon:
    Again, in your example, you're not really "using" behaviours - the fact that the events are held in behaviours is completely irrelevant - you can just copy & paste them to the main event list and delete the behaviours, and it will function in exactly the same way (yes, I have tested this to make sure).

  7. #17
    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,729
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Well...everyone has their own coding techniques and some coders are dead set for coding the way they do. As for me, I have half my brains on the floor and would not be able to debug to well using behaviors. Some coders have the brains of an ice cube, but others are sharp and can deal with debugging better.

    So live in piece and let people code as they will.

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

  8. #18
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Behaviors will serve little use until I finish an extension I'm working on. For now, they're an optional way to organize your code in a way that makes sense to you but that is more confusing to others.
    Working as fast as I can on Fusion 3

  9. #19
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Posts
    1,305
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Come on, don't be a tease - what's this extension you're working on?

  10. #20
    Clicker Multimedia Fusion 2Android Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Android Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Dec 2010
    Posts
    339
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi everyone and thanks, I have read everything and came to conclusion that I should try first, to see if I can use full behavior programming in a proper way. If I have trouble, I will mix betwen evente and behavs ^^

    Thanks a lot!

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. 256 R34 Behavior Bug : Object is not created but its behavior runs anyways
    By Shmuper in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd March 2013, 07:15 AM
  2. Made my first semi-full fledged game, any tips...
    By Wra1thus in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 31st December 2010, 08:34 PM
  3. Help with programming ..... I am
    By Digitalmayhem in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 15th February 2009, 10:29 PM
  4. Some Programming help, please
    By JoeText1 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 23rd October 2008, 09:39 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
  •