Joshloweiscum Posted August 5, 2015 Share Posted August 5, 2015 Should I use...game.physics.arcade.collide(player, platform);Or...player.body.checkCollision();Also, does the collision code go in the update loop or the create loop? Link to comment Share on other sites More sharing options...
rich Posted August 5, 2015 Share Posted August 5, 2015 There is no such method as `body.checkCollision` - so the first one Also collide should be called in the update loop, as you probably want to continuously check for collision as things move around, and not just once. Tilde 1 Link to comment Share on other sites More sharing options...
LearningPhaser9 Posted August 5, 2015 Share Posted August 5, 2015 I have something similar like this:game.physics.arcade.collide('chicken','platform'); It works perfectly for me. So the method similar to what I wrote (not the strings) should work. and Yes I have it in my function create() Link to comment Share on other sites More sharing options...
Recommended Posts