Jump to content

I create a container and it have some black lines


Recommended Posts

I create a container and I add some sprites on this container, then it is very bad.

This is my main code:

Ground.prototype.createCGround = function (count, x, y) {
  var front = PIXI.Sprite.fromFrame('Tile_10.png'),
      blank = PIXI.Sprite.fromFrame('Tile_13.png');
  var container = new PIXI.Container();
  front.position.set(0, 0);
  var count = count || 1;
  for (var i = 0; i < count; i++) {
    var span = PIXI.Sprite.fromFrame('Tile_11.png');
    span.position.set(front.width + i * span.width, 0);
  blank.position.set(front.width + i * span.width, 0);
  container.position.set(x, y);
  container.isUes = false;
  return container;

It have some black lines in the border !!!!!!!

And the black lines are random , not all !!!!

Who can help me !

I'm very need help!!!

Thank you!


Link to comment
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.

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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...