User Tag List

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

Thread: Understanding ForEach Object and Parent/Child Objects...

  1. #1
    Clicker Fusion 2.5 Developer
    TheFieryPlumber's Avatar
    Join Date
    Oct 2012
    Location
    Delaware
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Understanding ForEach Object and Parent/Child Objects...

    Hello again!
    I currently downloaded an extension for MMF2 called the Foreach Object.
    Now what I assume is, this object is used to have copies of the same object behave individually, but I'm not sure how to use it.
    Could someone explain this extension a little further?

    P.S- Is the Foreach Object good for Qualifiers and Mother Child Objects?

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Usually you do something like this:

    If Object Y position <= 0
    -> Object destroy
    -> Add 5 to score
    ( this can cause problems with multiple instances of Object )


    With ForEach you do it like this:

    Allways
    -> Start ForEach loop "a" for Object

    On ForEach loop "a" for Object
    + If Object Y position <= 0
    -> Object destroy
    -> Add 5 to score
    ( This handles everything corrrectly )

    ...
    As for Parrent Chld pinning, you can do it manually or automatically ( easy ).

    Ive made a blog entry about how to do this the automatic way:
    http://community.clickteam.com/entries/200-Ab-basics-Automatic-object-pairing-and-data-leeching

    If your gonna do this the manuall way, youl have to assigne IDs_ to your Instances and loop through them, i can imagine the ForEach might come in handy yes.

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    geothefaust's Avatar
    Join Date
    Jul 2006
    Location
    Portland, OR
    Posts
    498
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by King_Cool View Post

    Ive made a blog entry about how to do this the automatic way:
    http://community.clickteam.com/entries/200-Ab-basics-Automatic-object-pairing-and-data-leeching

    If your gonna do this the manuall way, youl have to assigne IDs_ to your Instances and loop through them, i can imagine the ForEach might come in handy yes.
    Hi there.

    I'd love to read your blog post, unfortunately though I'm getting this forum error.

    PixelatedPict, you do not have permission to access this page. This could be due to one of several reasons:

    1. Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
    2. If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.


    Thoughts?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PixelatedPict
    That is strange, i can access the post by using the link just fine.
    Maybe CT staff can clarefy.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Strange, if i log out and try to search Dev Blogs for any blog posts made by King_Cool ( me ), nothing comes up...
    Dont know if this is a problem with the search function, or if my blog is publically disabeled/ never publically enabeled...

    I could, but im not sure how appropriate it would be to copy paste the Blog Post in here...

  6. #6
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleUnicode Add-onInstall Creator Pro
    StingRay's Avatar
    Join Date
    Nov 2006
    Location
    Austria
    Posts
    1,057
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    I cant get to the Article too

    May you can Post it here?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    King_Cool - I had similar problems when using the ClickTeam Community Blog pages a while back, seems you have to go through your blog settings to make it public, otherwise can only be seen by yourself and admins.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  9. #9
    Clicker Fusion 2.5 Developer
    TheFieryPlumber's Avatar
    Join Date
    Oct 2012
    Location
    Delaware
    Posts
    101
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by King_Cool View Post
    Usually you do something like this:

    If Object Y position <= 0
    -> Object destroy
    -> Add 5 to score
    ( this can cause problems with multiple instances of Object )


    With ForEach you do it like this:

    Allways
    -> Start ForEach loop "a" for Object

    On ForEach loop "a" for Object
    + If Object Y position <= 0
    -> Object destroy
    -> Add 5 to score
    ( This handles everything corrrectly )
    Thank you for your response!
    What I understand is, my assumption was right about the use of the ForEach object.
    To my understanding, the ForEach object is perfect for examples such as these...

    Multiple Enemy Lifebars
    http://www.youtube.com/watch?v=jVcEjRuuyiA

    Platform Chasing Enemies
    Part 1- http://www.youtube.com/watch?v=O1_zt4XTJ04
    Part 2- http://www.youtube.com/watch?v=62lc4f5gYYQ
    Part 3- http://www.youtube.com/watch?v=D2lTuaeullU

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, Multiple Enemy Lifebars ( assuming you mean each enemy has their own personal lifebar hanging abovr their head ) can be achieved without any looping at all.
    If you follow the link in my previous post ( Automatic Object Pairing and Data Leeching ), i explain exactly how in detail, and there is even an online example illustrating that it works!

    This auto pairing method ^ doesnt require any looping at all, but is slightly less flexible since you need to keep the number of Parrent and Child Objects equal for the system to work.
    You can off cource make the Chillds/ Parrents invissible.
    But destroying them clutters up the system and makes it missbehave.

    But yeah, you can use ForEach loops or any other kind of loops to Pair Objects together manually as well.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. ID / Parent Child connection, object linking, ones and for all
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 28th October 2012, 09:21 PM
  2. Is there a parent child heirarchy object?
    By turtle in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 12th July 2010, 04:40 AM
  3. Parent-Child?
    By xhunterko in forum File Archive
    Replies: 2
    Last Post: 6th December 2009, 08:18 PM
  4. Parent and Child active objects?
    By Koric in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd December 2009, 01:50 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
  •