Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Game development stories & opinions
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
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
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.