https://gist.github.com/kieferhagin/f6e41e7548e261742682
Basically I'm trying to determine when my 'Hero' collides with my 'Goal' object. They are both correctly defined in Tiled and are loading just fine, no errors in the console.
What am I missing here?
So I just found this: http://melonjs.github.io/docs/me.collision.html#check
That seems to fire just fine. Is this the preferred way to detect collision? What's the purpose of body.onCollision, if so? Thanks!
I might go in and add a pull request for a simple boolean variable that automatically calls check() if true. This seems like a lot of work just to enable collisions for an entity.