User Tag List

Results 1 to 2 of 2

Thread: Clickteam Movement Controller for more instances

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleXNA Export Module

    Join Date
    Jul 2010
    Location
    Italy
    Posts
    368
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Clickteam Movement Controller for more instances

    Hi all!
    How can I manage many instances of an object with a Vector movement?
    In particular I'm making a bat and ball game that uses a Vector movement for ball, and I have events like:
    +When the ball collides with the bat
    Ball: Set yspeed to 0-yspeed
    ...
    +Always
    Clickteam Movement Controller: Set speed y-component to yspeed("Ball")

    Everything works perfectly with just one ball: I have a "Start of frame" event in which I set Clickteam Movement Controller's object to Ball. The problem is when there are more than one ball. I've tried something like:
    +Always
    Start loop "control"
    +On loop "control"
    +Fixed value("Ball") = Fixed value("Ball")
    Clickteam Movement Controller: set object from fixed value Fixed value("Ball")

    and also similar alternatives, like using the foreach object, but the result is always the same: after a while, some balls start to respond to other ball's collisions. For example, a ball collides with the bat, and that ball plus another ball at midair start going up.

    I hope I've explained the problem well, and that someone could help me.
    Thank you in advanced!

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,278
    Mentioned
    26 Post(s)
    Tagged
    0 Thread(s)
    You might have noticed the "Set object" action in theClickteam Movement Controller. That is for specifying which object to change the movement parameters of.

    Also, you aren't quite grasping the use of fastloops, it seems. I would recommend reading the fastloop tutorial in the tutorials section to get a feel for how to spread values amongst your objects. Then your loop action would look like:

    +On Loop"blah"
    +Alt Var ("object") = LoopIndex"blah"
    - (CMC) Set Object to (whatever object you want to adjust with the Clickteam Movement Controller)
    - (CMC) Set property

    This basically singles out each ball, one at a time, and applies the CMC properties you want. It would be a good idea to do your collision checks this way as well (or with the ForEach object) to avoid the "some balls respond to other ball's collisions" issue.

Similar Threads

  1. [BUG] Clickteam Movement Controller
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th August 2012, 02:58 AM
  2. clickteam movement controller bug?
    By SirEatAlot in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 14th June 2012, 08:29 PM
  3. clickteam movement controller bug.
    By Bigfoot in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th February 2012, 01:56 PM
  4. clickteam movement controller
    By Zabooza in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th April 2009, 08:32 PM
  5. Clickteam movement controller bug
    By Nick in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th May 2008, 03:09 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
  •