[SOLVED] Conditions between two identical objects

Well, after a lot of time with GD and Python I crash into another problem:
Like title says: If a condition is satisfied when, i.e. two spheres come in collision, how can I refer to one or another of them independently?

Here:

If Sphere collision with Sphere: Object_delete Sphere1 (i.e. the first) var x > 1 (only to complete the format): Object_create Cube at position Shere2.position()

I would like to know how to operate with their variables and parameters (if I could) too: if Sphere1.velocity_x > Sphere2.velocity_x ==> Actions.

Thanks for reading.

EDIT: Post state [SOLVED]

I’m afraid there is no easy way to distinguish the two objects ( How can Game Develop guess which object is the first one ? )
But you can use a For Each event to achieve your goal :slight_smile: :

Conditions : Sphere collision with Sphere Actions: Set variable Index to 0. Sub event : For each object Sphere : Condition : Variable index is = 0 Action : Destroy the object and set index to 1 For each object Sphere : Condition : None Action : Create a Cube at Sphere.X();Sphere.Y()

Oh, ok. It’s perfect, if somebody wants to compare properties in both of objects could uses global/scene variables.

For example, when two spheres collide, I want delete them and add a bigger sphere with the total speed from the spheres:

If Sphere collide with Sphere: ........GlobalVariable(index) = 0 ........For each object Sphere repeat: ................Sphere.Variable(index) = GlobalVariable(index) ................GlobalVariable(index) += 1 ........If Sphere.Variable(index) = 0: ................GlobalVariable(test_x) = Sphere.Speed_x ................GlobalVariable(test_y) = Sphere.Speed_y ................Delete Sphere ........If Sphere.variable(index) = 1: ................Create BiggSphere at (Sphere.X, Sphere.Y) ................Add force to BiggSphere, magnitude (Sphere.Speed_x+GlobalVariable(test_x)) in X, (Sphere.Speed_y+GlobalVariable(test_y)) in Y ................Delete Sphere

Maybe if I put Delete Sphere without conditions (only spheres collision), at the end, GD delete both spheres, 1-line saved :smiley: