bodqhrohro Posted August 15, 2016 Share Posted August 15, 2016 When the sprite tracked by weapon moves up and down, bullets generated on some heights are made one pixel taller or lower. See screenshot: Initialization code: this.scrolls = game.add.weapon(40, 'lvl1', 'scroll') this.scrolls.bulletKillType = Phaser.Weapon.KILL_WORLD_BOUNDS this.scrolls.bulletSpeed = 50 this.scrolls.fireRate = 10 this.scrolls.fireAngle = 0 this.scrolls.trackSprite(this.spike, 13, 5) I've checked if fireFrom position is somehow made fractional but logging shows it remains integer. The bulletAngleVariance property is set to zero by default. What another can cause such behavior? Link to comment Share on other sites More sharing options...
bapho Posted August 27, 2016 Share Posted August 27, 2016 How about the movement of the player? The XY movement could be at a fraction of a pixel. Link to comment Share on other sites More sharing options...
bodqhrohro Posted August 27, 2016 Author Share Posted August 27, 2016 I've logged the player coordinates and they remain integer too. Link to comment Share on other sites More sharing options...
Recommended Posts