thundahguy Posted July 30, 2017 Share Posted July 30, 2017 I have added a spikes sprite and i'm trying to get collision working spikes = game.add.group(); spikes.enabledBody = true; var spike = spikes.create(150, game.world.height - 110, 'spikes'); spikes.body.immovable = true; and in update function game.physics.arcade.collide(player, spikes) the problem is, that the player sprite goes right trough the spikes Link to comment Share on other sites More sharing options...
samid737 Posted July 30, 2017 Share Posted July 30, 2017 spikes.enableBody = true; or you can use game.add.physicsGroup(); instead. Link to comment Share on other sites More sharing options...
Recommended Posts