1 decade ago by Alex
How do you check if Entity doesn't overlap, then do { ... } ?
I know
But how do you write if not?
Basically I'm trying to check if it's free to add another entity at pos.x/y. So I thought of adding an invisible "scout" entity there that'll check if no one's there, then add the real visible entity.
I know
check: function( other ) { ... }
But how do you write if not?
Basically I'm trying to check if it's free to add another entity at pos.x/y. So I thought of adding an invisible "scout" entity there that'll check if no one's there, then add the real visible entity.