Create → GameCreator → Conditionand give it a suitable name. Because the template file is a too simple Condition example, we're going to create a more complex one through this manual. We're going to create a **Condition that checks whether two objects are within a certain radius.
Checkmethod. To create the new Condition let's remove the
isSatisfiedproperty and create 3 others:
Check()method. To check whether
objectAis within a distance of
objectBwe calculate the distance between the two objects and return if the value is lower than the threshold.