Jump to content

The height of bullets varies by ±1px


bodqhrohro
 Share

Recommended Posts

When the sprite tracked by weapon moves up and down, bullets generated on some heights are made one pixel taller or lower. See screenshot:2016-08-15-160429_1366x768_scrot.png

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

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...