User Tag List

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

Thread: Parent Child Help please

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Nicholas Martin's Avatar
    Join Date
    Nov 2006
    Location
    Canada
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Parent Child Help please

    I have been learning to better optimize my eventing and do things in simpler ways. I used to use many events to get enemy health bars above and to be destroyed when fighting an enemy. Using the parent child feature I have simplified this except... Probably super simple to do.. When I destroy the parent object and the health bars, every health bar instance gets destroyed. Maybe I am just not understanding the proper was to use parent/child. Any help would be great. Look at attached example.
    Attached files Attached files

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Nicholas Martin's Avatar
    Join Date
    Nov 2006
    Location
    Canada
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I solved my own problem. I didn't know you simply had to destroy the parent to destroy the child objects. Funny how you think you know everything and yet you don't even know some of the simplest features of Fusion Anyways here is a completed example.

    This uses actives instead of counters and it will work with any number of instances of enemy objects.

    Each health bar has a container.

    Enemies use a group qualifier.

    Uses enemies max health vs current health to decide the percentage of the health counter filled.

    I hope this example helps some of our new clickers.
    Attached files Attached files

  3. #3
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS 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)
    wpd's Avatar
    Join Date
    Nov 2015
    Location
    SE Asia
    Posts
    405
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)
    cool, I didn't know it could be this easy... no loops and all

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Nicholas Martin's Avatar
    Join Date
    Nov 2006
    Location
    Canada
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Glad you found it helpful I was just researching some techniques on how to simplify things.

  5. #5
    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
    667
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    You're not actually destroying the health bars of the destroyed parents, they are just out of frame so they aren't visible, look at the debugger and see how one object is destroyed when you destroy a parent.
    I might mess around with this to see if this can be fixed.
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/R3WuvF3mHr

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Nicholas Martin's Avatar
    Join Date
    Nov 2006
    Location
    Canada
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually... Watching in the debugger it is not actually destroying the health actives so this is not yet resolved. Anyone have an idea how to destroy the health actives without the use of loops? Trying to keep it as simple as possible.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Nicholas Martin's Avatar
    Join Date
    Nov 2006
    Location
    Canada
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I had just noticed that myself

  8. #8
    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
    667
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    I hope Fusion 3 gets a better parenting feature, like folders and items inside it. A parent is a folder which can contain objects, which can also have items inside. If you clone or create the first parent, the children will get cloned / created with it. Similar to what Roblox does with its objects:


    Roblox also has a feature for things to call their Parent to get their variables, like x and y and other things, which require no loops.

    Using a for each loop to attach objects to other objects for it to feel like a parent / child behaviour, is just a workaround for something Fusion doesn't have built in.
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/R3WuvF3mHr

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    ^ definitely, +1 for parent/childs in F3 (I think I read something like that in the AMA though!)

    You can simply store some reference to health bars in the parent,
    and then filter those right before destroying:

    enemy health bars_paired.mfa

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS 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)
    Nicholas Martin's Avatar
    Join Date
    Nov 2006
    Location
    Canada
    Posts
    203
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome that works perfectly! Thanks dudes

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Parent Child Create by Name
    By Shadeve in forum Fusion 2.5
    Replies: 2
    Last Post: 9th May 2016, 06:07 PM
  2. A Guide to using Parent and Child in Fusion 2.5
    By Danny in forum Clickteam Guides, Tutorials and Examples
    Replies: 0
    Last Post: 7th January 2014, 09:27 PM
  3. Parent-Child?
    By xhunterko in forum File Archive
    Replies: 2
    Last Post: 6th December 2009, 08:18 PM
  4. 2-parent, 1-child creation
    By Ultimo240 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 25th November 2009, 10:26 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
  •