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
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:
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!