User Tag List

Results 1 to 3 of 3

Thread: I need parenting advice

  1. #1
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Darkhog's Avatar
    Join Date
    Jan 2009
    7 Post(s)
    0 Thread(s)

    I need parenting advice

    Now that you clicked this thread, you may just as well help me, eh?

    So! I have two objects, one is a fire bullet and the other is the light for this object (using add effect). I create it like this:

    + WeaponID of bunnyPMO = 1
         New Objects : Create Scorcher at X=XActionPoint( "Bunny Gun" ), Y=YActionPoint( "Bunny Gun" ), Layer=Layer( "Bunny Gun" )
         New Objects : Create Scorcher Light at X=X( "Scorcher" ), Y=Y( "Scorcher" ), Layer=3
        Scorcher Light : Set parent to Fixed( "Scorcher" )
        Scorcher : Set child to Fixed( "Scorcher Light" )
    And then I try to update the positions like this (loop is created in the Always event:

    * On each one of Scorcher Light, loop name "Scorcher Light Update"
    + parent of Scorcher Light = Fixed( "Scorcher" )
    + child of Scorcher = Fixed( "Scorcher Light" )
        Scorcher Light : Set X position to X( "Scorcher" )
        Scorcher Light : Set Y position to Y( "Scorcher" )
    Unfortunately if I try to fire another bullet before the first is destroyed, the light gunk stays on the screen, frozen in the air.

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    133 Post(s)
    0 Thread(s)
    I think the second condition (parent of scorcher light = fixed(scorcher)) is unnecessary. Try deleting it - does that improve anything?

  3. #3

    Fusion 2.5Fusion 2.5+ DLCAndroid Export Module

    Join Date
    Jan 2007
    8 Post(s)
    1 Thread(s)
    Don't worry about setting IDs for positioning objects?

    Fusion automatically "pairs" objects when they are created together.
    WeaponID = 1
    Create scorcher light
    Create scorcher

    Position scorcher light at scorcher

    Now instead of worrying about destroying them do this:

    Scorcher collides with object
    - position scorcher at -50 -50

    Now you can either position a dummy object at -50,-50 and destroy scorcher and scorcher light when there is overlap or you can just do like this:

    Scorcher x < -40
    + Scorcher y < -40

    Do the same for scorcher light

    Easy solution and no need to track IDs.

Similar Threads

  1. Firefly Text alignment and parenting
    By QuailStudio in forum Firefly
    Replies: 5
    Last Post: 16th March 2017, 03:07 PM
  2. Need some Advice for my App
    By Legengerry in forum Fusion 2.5
    Replies: 12
    Last Post: 14th March 2014, 02:41 PM
  3. Parenting objects to an active?
    By pdsoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th July 2013, 06:28 PM
  4. Some advice
    By King_Cool in forum Articles
    Replies: 9
    Last Post: 28th May 2012, 09:39 AM
  5. 2 ?s: Simulated 3d and Parenting Objects
    By astrospoon in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th April 2009, 09:50 AM

Posting Permissions

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