parkm / oldbpm

A JavaScript game where you shoot at bubbles.
0 stars 1 forks source link

Flash of Doom #24

Closed dgpt closed 10 years ago

dgpt commented 10 years ago

On the first shot, the blue background turns grey. This is consistently happening in Firefox. Can't repro in Chrome.

parkm commented 10 years ago

Does it turn gray permanently? I noticed on the first shot that there was a flash. I believe it has to do with depth sorting.

dgpt commented 10 years ago

No, just a quick flash.

parkm commented 10 years ago

Yeah I get that too. So to get depth to work we have to sort the display list in the stage. So I have it set that when you set the depth or add any display object it will automatically sort the entire list. Not sure how to fix it, I might have to set a flag instead of instantly sorting and then sort on the start of the frame.

parkm commented 10 years ago

Oh it automatically closed it. Pull from master, does that fix it for you?

dgpt commented 10 years ago

Yup, all good now

On Wed, May 14, 2014 at 9:54 PM, Parker Miller notifications@github.comwrote:

Oh it automatically closed it. Pull from master, does that fix it for you?

— Reply to this email directly or view it on GitHubhttps://github.com/despondentdonkey/bpm/issues/24#issuecomment-43166073 .

parkm commented 10 years ago

Okay the problem was depth. When depth values are the same they can cause some weirdness with the sorting. So if that happens just make sure to set the depth to something besides 0. And if it still happens then give it a unique number.