Riddik Posted July 13, 2014 Share Posted July 13, 2014 Hi! How to create body without sprite, using arcade physics? Need logical physical body for adding to area which is part of background sprite. Just a rectangle. Link to comment Share on other sites More sharing options...
lewster32 Posted July 13, 2014 Share Posted July 13, 2014 Just create a sprite without a key:var trigger = game.add.sprite(0, 0, null);game.physics.enable(trigger, Phaser.Physics.ARCADE);trigger.body.setSize(0, 0, 64, 64); Youle, kasuparu and Riddik 3 Link to comment Share on other sites More sharing options...
Riddik Posted July 14, 2014 Author Share Posted July 14, 2014 Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts