onaluf / gameQuery

a javascript game engine with jQuery
http://gamequeryjs.com
633 stars 161 forks source link

setAnimation background fix by Elyx0 #8

Closed FostUK closed 12 years ago

FostUK commented 12 years ago

On further investigation this appears to cause some flashing in tiles. Closing until I've fixed that issue.

onaluf commented 12 years ago

I couldn't reproduce this issue... in which browser and for which particular type of animation does this problem occurs? I don't see why the background image should be set again for each animation frame. it's already changed in the setAnimation() methode.

onaluf commented 12 years ago

In my last comment I talk about the issue with the animation not being change, not the flashing tiles.

FostUK commented 12 years ago

Only tried in chrome. Seems to do it with plain jquery too. I'll try to set up a test case when I have a min.

FostUK commented 12 years ago

Appears to be related to this: http://stackoverflow.com/questions/609168/jquery-in-google-chrome-cant-find-background-image

Webkit potentially not downloading the background image.