[QUOTE=Mynameisjeff] Is there a way to compare private variables of different objects?[/QUOTE] There are several ways of doing this. Without knowing the purpose it is hard to tell which one is the preferable.
(objA and objB being two different sprites with a pv named "someVar" each)
1) You can use the "compare"-conditon of the system object:
+ System: objA ('someVar') Equal to objB ('someVar')
This will result to true or false but will not pick anything.
2) You may also use the "evaluate"-condition of the system object:
+ System: objA ('someVar') = objB ('someVar')
An evaluation is a calculation that results to either true or false (e.g. objA('someVar') + 12 > objB('someVar') * 2). This will also pick nothing.
3) Another way is using the sprite's "pick by comparison"-condition:
+ objA: Pick by 'someVar' Equal to objB ('someVar')
This will pick all instances of objA that match the pv of the first instance of objB
4) Also, there's a "pick by evaluation"-condition:
+ objA: Pick by 'someVar' = objB ('someVar')
Again, this picks all instances of objA that match the pv of the first instance of objB
Use the evaluation conditions whenever the comparison is more complex than a simple compare.
Have a look at the wiki
, it is full of descriptions, tricks, and other useful stuff :)