artemisbass Posted February 12, 2014 Share Posted February 12, 2014 I have a sprite that I load from a spritesheet, however when it renders on the screen the top of it is cut off and is rotated the wrong way. Additionally it doesn't count as being on the ground for some reason. Attached is a pdf screenshot.Phaser.pdf Link to comment Share on other sites More sharing options...
rich Posted February 12, 2014 Share Posted February 12, 2014 Phaser doesn't support rotated frames in texture atlases, are you using them at all? artemisbass 1 Link to comment Share on other sites More sharing options...
artemisbass Posted February 12, 2014 Author Share Posted February 12, 2014 Ah, that explains why its not upright. Thanks! Is that also the reason its cut off? Link to comment Share on other sites More sharing options...
rich Posted February 12, 2014 Share Posted February 12, 2014 Almost certainly, yes. artemisbass 1 Link to comment Share on other sites More sharing options...
artemisbass Posted February 12, 2014 Author Share Posted February 12, 2014 Ok, thanks for answering! I guess I have to repack my sprite sheet with them all properly rotated. Link to comment Share on other sites More sharing options...
rich Posted February 12, 2014 Share Posted February 12, 2014 In most tools you just uncheck 'rotate' (at least it's that simple in Texture Packer!) Link to comment Share on other sites More sharing options...
artemisbass Posted February 12, 2014 Author Share Posted February 12, 2014 I used Texture Packer. I definitely saw that option (and will use it from now on) but for some reason I assume the sprites were weighted if they were in JSON form and that the program would know which end was up. Guess not! Link to comment Share on other sites More sharing options...
rich Posted February 12, 2014 Share Posted February 12, 2014 I know it's a feature on the roadmap for Pixi, so as soon as they adopt it we'll support it too Link to comment Share on other sites More sharing options...
Recommended Posts