Hi
is there a way to make for example a square object react to collisions ONLY if another object collides with it from the right side? thus if something collides with it from the left it won't react.
Printable View
Hi
is there a way to make for example a square object react to collisions ONLY if another object collides with it from the right side? thus if something collides with it from the left it won't react.
You could test the X,Y values...
something like
collision
+ if X(incoming) <= X(target) = do it
It depends on your overall set up.
My target is p.e BOX and the incoming would also be box but one that was created by the "create new object" ext. at runtime. I never could figure out how to distinguish them from one another in the code be it via alterable value in that each new BOX gets a new value but i'm it is happening somehow in the background. So would you suggest the boolean object to get the if statement or just with the MMF2 conditions?
Thanks for the suggestion i will be trying it shortly. So on the side, how do i(if possible) distinguish between the different objects of the same name that gets created at runtime?