wernersbacher Posted July 5, 2016 Share Posted July 5, 2016 Hi, I've got a shark group with many sharks: shark = sharks.create(game.width, (HEIGHT - SHARK_SRC * SHARKFACT) * Math.random(), "shark"); game.physics.p2.enable(shark); shark.body.clearShapes(); shark.body.loadPolygon('sharkP2', 'sharkP2'); shark.body.velocity.x = -getSpeed(); shark.body.collideWorldBounds = false; Since I went from Arcade to P2, they won't spawn at game.width, but rather too early. There is a live demo online: http://wernersbacher.de/pro/Blubber/ Any help is appreciated! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts