User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 19 of 19

Thread: Fastloop problem

  1. #11
    Clicker Fusion 2.5iOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm trying to help you Outcast but even though I read every post I'm still kinda confused as to what you are trying to do in the latest mfa you posted.

    Please help me to help you. :P

  2. #12
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by crusher View Post
    I'm trying to help you Outcast but even though I read every post I'm still kinda confused as to what you are trying to do in the latest mfa you posted.

    Please help me to help you. :P
    Haha sorry.. Think of the blue and red squares in the mfa as characters walking to the left. They each get a hat on their head on start of frame. All i want to do basically is to make this work so they have their hat. If they are destroyed their hat should also dissapear. And if a new character is created he should get a new hat on his head.

    I have tried both these auto match solution with ID:s and fastloop, but I can still not get it to work properly.. What happens is that the characters switch hats with each other when a new character is created or hats stop to move and so on when a character is destroyed.. :/

  3. #13
    Clicker Fusion 2.5iOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    test.mfa

    So here's one way to solve it. It's probably not the best way, but it works well and it's how I've done it in my current project.

    Here's what I changed:

    *Added an "always: spread value" event to the two objects in the group. Probably not the most efficient way of doing it but it works...
    *Instead of keeping the ID of the parent object I changed it to the fixed value. It's safer to do this as when when spreading values will screw up the "link" between parent and child.
    *Set the ID of newly created characters to the total number of characters in the group instead of using global value A.
    *When destroying an object the hat with the same fixed is destroy right away instead of in another event.

    I hope that may be of some use to you!

  4. #14
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by crusher View Post
    test.mfa

    So here's one way to solve it. It's probably not the best way, but it works well and it's how I've done it in my current project.

    Here's what I changed:

    *Added an "always: spread value" event to the two objects in the group. Probably not the most efficient way of doing it but it works...
    *Instead of keeping the ID of the parent object I changed it to the fixed value. It's safer to do this as when when spreading values will screw up the "link" between parent and child.
    *Set the ID of newly created characters to the total number of characters in the group instead of using global value A.
    *When destroying an object the hat with the same fixed is destroy right away instead of in another event.

    I hope that may be of some use to you!
    Wow this looks promising! I will test it out with my real app and see if it works, and you made the example very cute to!

  5. #15
    Clicker Fusion 2.5iOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Pretty proud of the penguins but the hats doesn't look as good as I wanted them to though... :P

    Hope it helps!

  6. #16
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    It looks really good I forgot one thing though, that I still have problem with, if you click on a blue penguin it should be destroyed and a red one should be created in its place (so it looks like they change color), but the hat should not change. I tried to carry over the ID of the blue to the red before it is destroyed but that does not seem to work?

  7. #17
    Clicker Fusion 2.5iOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this:

    *User clicks with left button on "Penguin Blue"
    +ID of "Hat" = Fixed("Penguin Blue")
    -> Create "Penguin Red" at (0, 0) from "Penguin Blue"
    -> Set ID of "Hat" to Fixed("Penguin Red")
    -> Destroy "Penguin Blue"

  8. #18
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by crusher View Post
    Try this:

    *User clicks with left button on "Penguin Blue"
    +ID of "Hat" = Fixed("Penguin Blue")
    -> Create "Penguin Red" at (0, 0) from "Penguin Blue"
    -> Set ID of "Hat" to Fixed("Penguin Red")
    -> Destroy "Penguin Blue"
    Cool thanks! Seems to work

  9. #19
    Clicker Fusion 2.5iOS Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Excellent, glad to help!

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Fastloop Problem
    By Brosephus in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th March 2013, 10:33 PM
  2. Problem moving to layer in fastloop
    By mikec in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 13th November 2011, 11:41 PM
  3. Fastloop logical problem
    By Tiles in forum File Archive
    Replies: 5
    Last Post: 18th August 2009, 11:16 AM
  4. fastloop problem
    By maVado in forum File Archive
    Replies: 3
    Last Post: 6th January 2008, 01:14 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
  •