Jump to content

Search the Community

Showing results for tags 'keep position'.

  • 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. Hi guys, I'm using Flash to create graphics, exporting to a swf file, importing into Texture Packer and then exporting to a JSONArray. If you set your Flash stage size the same as your Phaser stage size, then the workflow is potentially very efficient. I should be able to add all my different sprites to the stage and they will appear in exactly the right spot right? Well this does work, but when I try to change the anchor point I'm running into problems. If I use 'Trim' mode in TP, the anchor point is then based on the Flash stage size, rather than the bounds of the sprite, so this is no good. If I use 'Crop, keep position' mode in TP, the anchor point is now correctly based on the sprite bounds, but the spriteSourceSize values are no where to be seen in Phaser. I can still see the correct spriteSourceSize object in the json file, but it seems because "trimmed" is now set to "false", that these values don't make it into Phaser at all. So yes, I can fix the problem by changing all "trimmed" values to true, but this is not ideal. Has anyone else run into the same problem? Any ideas for how to get around this? Am I doing something stupid? Thanks! Matt.
×
×
  • Create New...