Jump to content

Search the Community

Showing results for tags 'trim'.

  • 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 2 results

  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.
  2. monoloco

    Sprite trim

    Hi there, I'm trying to make some kind of a worm bit on my map, the problem is that the map is not a tile map, it's a sprite and has p2 physics on it so that I can use it as a sensor. I've been trying to make a bitmapData onto which I copy a circle of the background and overlap it to the map, but it does not work. Any idea is much appreciated.
×
×
  • Create New...