Josepho Posted February 3, 2014 Share Posted February 3, 2014 Hi there, im trying to tint a sprite and im getting different results between PC and iPad, in IPad the sprites that i tinted are completly black and in computer i get the right result, check the image attached I checked the tinting example on my ipad and it worked, I dont understand what im doing wrong Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted February 3, 2014 Share Posted February 3, 2014 hehe! She looks quite scary like that! Try upgrading to the dev branch and it should work like a boss Quote Link to comment Share on other sites More sharing options...
Josepho Posted February 3, 2014 Author Share Posted February 3, 2014 Many thanks, now it worked, but all my graphics appear in different positions! I should adjust my coordinates system to the new pixi changes Quote Link to comment Share on other sites More sharing options...
Josepho Posted February 3, 2014 Author Share Posted February 3, 2014 It appears the pivot of my images is not working well, all the images in which i modified that value are in wrong positions :/ Maybe this can help you for the dev branch My older script wasthis.pivot.x = this.originX;this.pivot.y = this.originY; but i solved the problem using thisthis.anchor.x = this.originX / this.texture.width;this.anchor.y = this.originY / this.texture.height; Any way, hope It can be helpfull the info of the change on pivot behaviour Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted February 3, 2014 Share Posted February 3, 2014 Thanks Josepho! I will make sure to take a look into that ASAP! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.