User Tag List

Results 1 to 3 of 3

Thread: Multiple objects interfering with each other

  1. #1
    Clicker Fusion 2.5

    Join Date
    Oct 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Multiple objects interfering with each other

    Hello! Sorry for the somewhat obscure post title - I wasn't exactly sure what to say!
    Question for Clickteam Forums.mfa
    All details are included within this CF2.5 file, but I'll write some basic information for search purposes.

    When my object is by itself, it performs the intended actions with ease. However, when I make multiple copies of the same object, they all begin to act ... oddly. Now, when using cloned versions of the original, they all work perfectly. I've tried both behaviours and the event editor.

    If any of you could help me, I would be very grateful.

    PS - Sorry if the answer is obvious, or if it's an issue with my coding.

    EDIT: Like a fool, I forgot to upload the version that has my documentation of how the car works, so I'll copy/paste here:
    Hi there! Let me walk you through what's happening here.

    The car is trying to get to the circle in an organic fashion. To do this, the car is always given target coordinates. In this car, the car always has mouse as the target. (LN 2).

    If the place that the car is headed to (I'll explain this variable shortly) is different from the target (read: always), a momentum is applied. These variables are mom_x and mom_y, and they are basically vectors. (LNs 19-22)

    The place that the car is currently headed to is called the predictive coordinates. It is the current coordinates of the car added to the momentum that we calculated above. This is pred_x and pred_y. (LN 3)

    The final step in the process is applying the momentum to the car. It will be the current position added to the momentum. (LN 4)

    LNs 24-29 are all things that make the car bounce off the sides.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Location
    Norway
    Posts
    333
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    You could use a for each loop to address this.
    See the changes I have made in the updated mfa.

    This works for behaviors as well.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5

    Join Date
    Oct 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, that's interesting! Thank you for the reply, and have a great day.

Similar Threads

  1. Replies: 5
    Last Post: 9th December 2014, 10:49 PM
  2. multiple Q - inventory ext :: stop anim frame :: global objects :: loading objects
    By everlite in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 17th March 2014, 09:52 AM
  3. Multiple PMOs for multiple Objects
    By Blood_Wist in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 31st May 2008, 01:49 AM
  4. Multiple PMOs for multiple Objects example
    By Blood_Wist in forum File Archive
    Replies: 1
    Last Post: 31st May 2008, 01:48 AM
  5. Sum (multiple alt values, multiple objects)
    By Melvin in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th April 2007, 02:00 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
  •