Wednesday, December 2, 2009

where it's at

Just a little update before I get started for the day. So last night I fixed a lot of messy little things that were bothering me a lot. I've got the alpha of the textfields tweening up and down when they are created and removed, which stops them overlapping each other weirdly before they are removed. I've also changed the way text fields are dealt with internally, before I was creating, formatting and entering text in them and then adding them to their Nodes, as well as having an event listener that moved them every frame whether their Nodes were moving or not. It was very bad and messy, but now I have them created and formatted within the constructor of each Node, with their positions updated only when Node's are being created or removed, much nicer, much cleaner. I've also fixed a problem where the rotation layer would rotate 350º when it should have rotated 10º, or 358º when it should have been 2º (etc, etc). This problem was occurring because destination angles were being set by the angle property of each node, and because if I tell flash to go from 355º to 5º it won't go over the top of 360º to 0º and then to 5º from there, it goes down through every angle between 355º and 5º making a weird dissorienting spin. I fixed that by changing the way destination angles are being set. I'm know just increasing the rotation by the difference between the angle of the current node clicked and the previous node clicked, which seems to work perfectly. I also moved the 'camera' so that the most recently created layer of children Nodes are more central on the screen.

anyway, jsut a little summary, today I plan on fixing the biggest, worst and last bug I have right now, which is that when you delete children and then try to grow them back from their parent, you get a big runtime error, and everything gets all screwed up. I'm hoping that there will be some quick fix for this, but I guess we'll find out soon...

once that's cleared up I want to make an additional text based navigation system/control panel, so hopefully we'll be seeing that by the end of the day...

No comments:

Post a Comment