Jump to content

Phaser.Weapon: Have a bullet track a sprite's X position AFTER it is fired


Disease
 Share

Recommended Posts

Title says it all really. I'm looking for the best way to have a bullet continue to have the same X value of the sprite the weapon is associated with AFTER it has been fired. I'm trying to make a DoDonPachi style beam that moves left and right with the player and it currently looks bad if the entire beam doesn't move with the player. Right now the best I can think of is when the player moves left or right, look for any beam bullets that exist and move them left and right as much as the player is moving. This feels a little ugly and inefficient though. Am I just splitting hairs or engaging in premature optimization? 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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