Jump to content

Search the Community

Showing results for tags 'emitter rotation angle'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello, This forum has been a great source of knowledge as I work to create my first game with Phaser, Thank you! My question is regarding the angle of an emitter. I have a sprite that moves from one object to another, think missile fire, and i have an emitter set up to create a 'trail' but I can't figure out how to get my missile trail to be the same angle as my missile. Setting the emitter.angle (emitter.angle = 45;) seems to not only change the angle of the trail but also the path (and starting location) of the trail. It no longer follows the missile sprite. Removing the angle everything works and the trail follows the sprite but the angle of the trail is incorrect. Images show results of firing missile from white circle to random green circle. First image shows emitter with no emitter.angle Second image shows emitter with emitter.angle = 45; (notice that emitter particle is rotated 45 degrees but the path has also been offset by 45 degrees) Missile = Blue Emitter = Pink Not sure code was needed but can supply if helpful. Any advise is appreciated, Thank you.
×
×
  • Create New...