Jump to content

Shaking & blinking background experience in example games


woratana
 Share

Recommended Posts

Hello :)

 

I tried installing Phaser on localhost and tested example games.

 

Breakout and Tanks game background seems to be shaking all the times (tested in Mac OS Chrome and Firefox).

In Chrome, I also experience blinking background in both games.

 

What is the cause of this issue and is it possible to fix this in the current version of Phaser?

 

*UPDATE* After I tried other demos, it seems to be 'Tiling Sprite' that cause the problem. Not sure if it is problem with hardware?

 

*UPDATE 2* Just download latest version of Phaser and this problem should disappear. :)

Link to comment
Share on other sites

I wonder if it's because they scroll to non-integer values. Could you try this in the Tanks code for me:

    land.tilePosition.x = -game.camera.x;    land.tilePosition.y = -game.camera.y;// just stick this after it:land.tilePosition.x = Math.round(land.tilePosition.x);land.tilePosition.y = Math.round(land.tilePosition.y);
Link to comment
Share on other sites

 

I wonder if it's because they scroll to non-integer values. Could you try this in the Tanks code for me:

    land.tilePosition.x = -game.camera.x;    land.tilePosition.y = -game.camera.y;// just stick this after it:land.tilePosition.x = Math.round(land.tilePosition.x);land.tilePosition.y = Math.round(land.tilePosition.y);

Tried this, didn't help. 1.1.2 worked fine.

Link to comment
Share on other sites

This is interesting, I just converted my project over to use a tiling sprite, and in WebGL the shaking is really bad, but not in Canvas mode.

 

I'm using 1.1.3 and this is happening.

 

The positions are not floats, it happens before any movement even happens.  I'll use canvas mode for the time being but I'd be interesting in seeing what's causing it in GL.

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.

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