User Tag List

Results 1 to 6 of 6

Thread: How do I..

  1. #1
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I..

    How do I manage multiple instances of objects interacting with each other, when their values/ID's are different?

    I've used Spread values, Loop Index, and ID's to match up all of the following objects. It's been working great so far but now things are just getting confusing ^^;

    For example: Using the PMO, object masks, and object bases, I have made 2 Mario Koopas. You jump on one Koopa and it turns into a shell, so its value "Shell" = 1. Then you kick it, its value "Shell_Kicked" = 1, and it starts moving.

    Now, basically what I'm trying to do is:

    +Koopa#1 "Shell" = 1
    +Koopa#1 "Shell_Kicked" = 1
    +Koopa#1 Collides with Koopa#2 (Who's shell values are 0)
    -Change Koopa#2 animation to dead
    -Move Koopa#2 mask and base to layer 3
    -Koopa#2 (PMO) Jump
    -Leave Koopa#1 exactly as it was

    I'll need to do the same for when the Koopa#2's shell values are different, as the results are different too. I dunno, it's like I need to combine 2 different events into one or something. Thanks for any help, I'm stumped :T

    I can upload an example of what I've got,if needed, but it would take a while to strip everything down D:

  2. #2
    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)

    Re: How do I..

    Hey, I made an example for something like this a while back. It lets you do stuff with specific instances if the same object. It should help you in some way, at the very least.
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=153020
    Working as fast as I can on Fusion 3

  3. #3
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I..

    Thanks for the example LB, I'm not quite sure how to apply it though. I'd like to not use another extension just for one enemy tbh. I'm already using the PMO. Is it possible to do this without any extensions?

  4. #4
    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)

    Re: How do I..

    Yeah, instead of using 'select object with highest alt value' just run a loop on each of the objects and if it's value is higher than a global value/counter, set that global vlue/counter to that value. After the loop you can pick the object by that value.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I..

    Exactly.

    Don't forget to reset the counter before the loop.

  6. #6
    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)

    Re: How do I..

    Quote Originally Posted by Dynasoft
    Exactly.

    Don't forget to reset the counter before the loop.
    Heh, yes, don't forget to do that! Thanks, Dynasoft!
    Working as fast as I can on Fusion 3

Posting Permissions

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