Ok so if I want characters to have the variable anger and when two characters collide and have anger higher than say 50 they would get into a fight. How could I check that both of them are angry so they won't just attack random people
on collision object1 with object2
(sub)system compare object1.angry>50
AND system compare object2.angry>50
----> action
Well the problem is they're both the same object type
you can put the object(s) in a family, then pick the first one by the object and the second one by the family.
on collision object1 with object1
...Pick object1 where object1.anger>50
.......object1.PicketCount=2.----------------------------------------> action
hmmm the family would involve more work because then I'd need to code for getting and losing anger for the object and the family and I'm not sure how to do the abject.PickedCount thing.
Develop games in your browser. Powerful, performant & highly capable.
Pick2Anger.capx