I’ll kick off my presence in this forum with a request of more general nature that might benefit from thoughts from other people:
In our game we have a lot of enemies with different behaviours. These are, as of now at least, handled by separate scripts. What we see when we have a lot of enemies moving in group is that they collide with each other creating a flood of collision_response and contact_point_response messages to all scripts on each enemy in every frame.
What I would like to propose is a way to tell Defold that a certain script is not interested in messages regarding physics - kind of like acquire_input_focus works today - but with the difference that all scripts automatically get the messages unless explicitly told otherwise. So I would send something like msg.post(".", “release_physics_focus”) from a script and that script would not receive physics messages. In that way we would reduce a lot of redundant on_message calls, since only a few of the behaviours are actually physics dependent. This would also allow for all physics to go through one script that acts as a proxy.