I want an event to add a number only if two bodies are in collision
Develop games in your browser. Powerful, performant & highly capable.
Use "On Collision"
Object1 On Collision with Object2: Action: add value to "Variable"