Colliding using x and y coordinates?
Hey all, the title says it all I am wondering can you do that? Im using an actor which is constrained to the mouse and cannot go off the screen using the min and max behaviours to prevent the need for actors on the edge of the screen to do that job but am concerned I will have to do just that so that other actors can bounce against the sides.
Any help is much appreciated.
Cheers.
Any help is much appreciated.
Cheers.
Comments
that will make it collide backwords. You can also give change velocity it a random direction betwwen the values that would be going backwards, to give it an angular bounce.
Cheers.
Now if you wanted it to collide with the right of the screen you could do:
When self position x is greater then or equal to 470
change velocity to random (110,245) relative to scene. That will make it boucne back more with and angle
Cheers.