Sign in to follow this  
Josepho

Problem tinting a sprite in iPad

Recommended Posts

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 :(

 

post-5278-0-94072300-1391465380.jpg

Share this post


Link to post
Share on other sites

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 was

this.pivot.x = this.originX;

this.pivot.y = this.originY;

 

but i solved the problem using this

this.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

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.