Jump to content

(solved) bug report: TilingSprites with hired problem


Stephan
 Share

Recommended Posts

hi @enpu,

It looks like I found another small problem with TilingSprites when hires is enabled. 

config file:

game.config = {
    system: {
        width: 320,
        height: 320,
        scale: false,
        center: true,
        resize: false,
        hires: 2
    }
};

 

This is the code. (I added [email protected] to the media folder)

game.module(
    'game.main'
)
.body(function() {

    game.addAsset('panda.png')

game.createScene('Main', {
    init: function() {
        this.sprite = new game.TilingSprite('panda.png', game.width, game.height).addTo(this.stage);
    },

    update: function() {
        this.sprite.tilePosition.x -= 100 * game.delta;
    }

});

});

 

The background now has a gap when it is moved to the left. (This gap is sequential).

screendump.jpg

Link to comment
Share on other sites

  • Stephan changed the title to (solved) bug report: TilingSprites with hired problem

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

  • Recently Browsing   0 members

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