Closed nolastan closed 12 years ago
Stan,
Does this happen for the first planning turn? The reason that I ask is because I noticed on the Web console that when the board is drawn for the second time there's Simulation code running (i.e. it says "drawing frat house" or something to that effect and I thought I saw some other debug statements). Maybe this is interfering with the Board class' Kinetic.stage object. Not sure what else could account for this.
From: nolastan reply@reply.github.com To: dtyberend denny_tjr@yahoo.com Sent: Monday, March 26, 2012 12:08 PM Subject: [Frat-house-tycoon] Board flickers (#14)
When dragging the board pieces, the board flickers and disappears. Sometimes the board pieces end up behind the board and I cannot see them.
Reply to this email directly or view it on GitHub: https://github.com/nolastan/Frat-house-tycoon/issues/14
This could be due to moving the pieces to the front when they're moused over. It's possible that when one piece gets moved to the front, the order of the board and other pieces gets shuffled around. I'm not sure why it would disappear, unless there's a blank canvas behind all of it.
Yea, it could be lines playing_piece.js lines 153-155. If those lines are commented out, what happens? Does the problem go away?
-Dennis
From: pcarleton reply@reply.github.com To: dtyberend denny_tjr@yahoo.com Sent: Monday, March 26, 2012 2:12 PM Subject: Re: [Frat-house-tycoon] Board flickers (#14)
This could be due to moving the pieces to the front when they're moused over. It's possible that when one piece gets moved to the front, the order of the board and other pieces gets shuffled around. I'm not sure why it would disappear, unless there's a blank canvas behind all of it.
Reply to this email directly or view it on GitHub: https://github.com/nolastan/Frat-house-tycoon/issues/14#issuecomment-4701758
Commenting those lines out makes it so the piece you're dragging doesn't float to the top.
The problem is the old pieces still have their "mouseOver" listeners active. I un-commented the delete functionality I had in place in update and it solved the problem. I'll the fix.
When dragging the board pieces, the board flickers and disappears. Sometimes the board pieces end up behind the board and I cannot see them.