User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: activate group via expression?

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Aug 2011
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    activate group via expression?

    just curious if its possible/extension that does this. It's not an urgent problem for me though. all my enemies/some objects values are loaded from a file, but their group still has to be activated in mmf2. instead of having like 300 events that just activates their group, it would be cool if I could just activate them based on a expression so it can all be done in 1 event.

    its similar to how "create by name" object allows you to create objects based on an expression. instead I just want to activate groups based on an expression.

    just something to consider : p

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fanotherpg's Avatar
    Join Date
    Jul 2006
    Location
    High Wycombe, Buckinghamshire, UK
    Posts
    3,663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And can't you just do a flag or value which will activate/deactivate a group? Like if Value A of Test object = 1 Activate group 1 ?

  3. #3
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    This is not possible yet.
    @Fanotherpg: And add more complication? ;p
    Working as fast as I can on Fusion 3

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Ls2's Avatar
    Join Date
    Jun 2011
    Location
    Maceiˇ - Brazil
    Posts
    927
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Function Object can solve your problem, but not automatically... You need create some events.

    Ex.: Call function GroupOn();

    GroupOn() -> Activate group X;

  5. #5
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    That makes it more complicated because you still have to have an event for each group. ;p
    Working as fast as I can on Fusion 3

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Ls2's Avatar
    Join Date
    Jun 2011
    Location
    Maceiˇ - Brazil
    Posts
    927
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    LB,

    Really, but this is a solution (an event is always needed :P) hahaha

  7. #7
    Forum Moderator

    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,771
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    LB. Maybe you can give the forum members reasons how this will become more complicated and how it can be done without events.

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

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I never said it could be done without events. I'm just saying that having to add another object to the frame and then make more events and actions to make it work is more complicated. It can be done the way oasuke originally described just fine without the need of additional objects and/or events.
    Working as fast as I can on Fusion 3

  9. #9
    Clicker Multimedia Fusion 2

    Join Date
    Aug 2011
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It'll probably be better to explain exactly what I mean. As I said, all my enemies are created from the ini, with the Group name being their names.


    This event creates the enemy from the ini relative to a respawn point from level editor based on values from the ini.(confusing but not important)


    Since not every enemy will always be needed, I have all groups deactivated and they are only activated when they are called as you can see here.


    Even though they are called in 1 event, I still need to have their groups activated individually.

    Now this is where a group expression would come in handy. Instead of having all that, I could just activate the groups IF it matches the enemy name being created from the ini. so for example, it'll be something like (activate group ("CurrentGroupName$( "ini" ))".It's nothing major and i can live without it but I was just curious if something like it existed.

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Nothing like it currently exists because (I believe) MMF2 does not save the name of groups in the EXE at all. It'd be a very nice feature to have, but we'll just have to wait and see what Yves and Francois do for us.
    Working as fast as I can on Fusion 3

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Can't activate
    By Christian_Wheel in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 19th January 2011, 06:18 PM
  2. Activate group {name} with expression?
    By Kingoftaurus in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 27th May 2010, 01:09 AM
  3. How to activate something only when in frame?
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th March 2010, 10:10 PM
  4. 'Activate a Group of Events' causes MMF to CRASH
    By Mico in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 22nd April 2009, 04:26 PM
  5. Activate/deactivate group list - scrollable?
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 2nd May 2008, 11:51 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
  •