I have some problems with getting bullets to bounce off of the world bounds.
I’ve managed to make the bullets collide with the world bounds, but they do not bounce.
I have no problem with making a normal sprite bounce off the world with: sprite.body.bounce.set(1);
but this does not work with bullets.
bossweapon = game.add.weapon(100, ‘spacebullet’);
bossweapon.bulletSpeed = 300;
bossweapon.fireRate = 20;
bossweapon.bulletAngleVariance = 20;
bossweapon.bulletCollideWorldBounds = true;
bossweapon.bulletKillType = Phaser.Weapon.KILL_LIFESPAN;
bossweapon.bulletLifespan = 2000;
bossweapon.trackSprite(boss, 0, 0, false);
However, writing “bossweapon.body.bounce.set(1);” or anything like that, has no effect.
Any suggestions?