LordPayso

Sprites duplicated when dragging to new position on Android

Recommended Posts

Hi,

 

We have just started using Pixi.js and are noticing some visual artefacts in Android.

 

We are building a game, much like chess, where a user starts of with some pieces and drags them to a board layout.  the starting position for the pieces is at the bottom of the UI away from the board.

 

The problem is that when the sprites are dragged from their starting position to the board we still see a representation of that sprite in its original position in the UI.

 

This is only happening on Android and we are using web technologies with Phonegap for the build.

 

It is proving really hard to fix and/or debug due to the nature of the build process and it is fine on web and iOS also.

 

Any pointers would be well received :)

 

I have done some more testing i do not believe the sprites to be actually duplicated, I used the following code to check that they were the only sprites present on the board:

	PIXI.DisplayObjectContainer.prototype.contains = function(child)	{	    return (this.children.indexOf( child ) !== -1);	}

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

  • Recently Browsing   0 members

    No registered users viewing this page.