I’m implementing some sort of fast rewind mode for my game. I’ve managed to ‘speed up’ tween used in the game. To do so, I’m changing player.tween.timeScale
property of sprite’s tween.
Now I’m facing a problem to change speed of bullets when they were already shooted from weapon. Question is how to get access to tween of bullet? Bullet moves by tweening, right?
Code for weapon:
weapon = this.game.add.weapon(20, 'bullet');
weapon.bulletKillType = Phaser.Weapon.KILL_WORLD_BOUNDS;
weapon.bulletAngleOffset = 0;
weapon.bulletSpeed = bulletSpeed;
weapon.fireAngle = Phaser.ANGLE_RIGHT; // shoot at right direction by default
weapon.trackSprite(player, 0, -9, false);