Still working on room -> master bedroom. I'm close but just keep getting interrupted. Found an answer for yesterdays headaches but new ones keep popping up.
Daisy
Thursday, June 14, 2012
Tuesday, June 12, 2012
Back 2 steps...
Well I thought I was done with rooms... turns out I was jumping ahead. Forgot to do the logic if rooms are hidden. And its being a pain to fall. So think I am on the right path now but been working on it for much longer then I thought I would. I think I have an answer now but its still fighting me.
Daisy
Monday, June 11, 2012
More Landers and Logic again and again
Room(job) -> Girl done!
Room(Girl) -> Girl (fail) Done!
Room(Job) -> room (Job) (fail) done!
Room(Girl) -> Room (girl) done!
Room(Job) -> Master Bedroom (fail)
Room(Girl) -> master bedroom
I got nothing.
Daisy
Sunday, June 10, 2012
Another day of landers and logic
More landers and logic. First off Room(Job) -> Girl including collision works. Also Room(Girl) -> Girl fails out. And the landers either are green or red to help everyone out.
Landers for Room(Job) -> room(Job) are working but the wrong color... (they should be red... after all you cant change exchange room jobs just the people in the room) still need to add logic to get it to fail out.
Basically for just the room bar need logic for
Room(job) -> Girl done!
Room(Girl) -> Girl (fail) Done!
Room(Job) -> room (Job) (fail) (almost done but showing wrong color)
Room(Girl) -> Room (girl)
Room(Job) -> Master Bedroom (fail)
Room(Girl) -> master bedroom
And thats just the logic for ONE of 3... While I'm of course going to keep on recycling code and hopefully making good functions it's still a long process...
Daisy
Saturday, June 9, 2012
Playing with Landers
Playing around with landers and working for problems before they crop up. A bit of an issue that I was expecting where stuff that isn't the base card isn't being recognized. (Such as button or images on the card) Still playing with trying to figure out why this is happening since they should all be part of the same object. I did mention that the next week or 2 will be dull.
Daisy
Daisy
Friday, June 8, 2012
Success again!
So there were technical hurtles, at the start that I was unsure if I could get them to work the way I wanted. The first was copying. Which with a little finesse is now up and running. The other was recognizing items being floated over. Normally something really simple but not so when each item can move around the screen and even be stacked on top of each other. I can proudly say that I have leapt that hurtle as well, and it fell a lot easier then I was expecting. As a matter of fact there were a few times when I thought that this one might be a lot tougher. But using the extends command for all the classes worked wonders. And with just modifying the on screen holder so that the last item is always at the top it makes for an easy way to recognize what class or item the drag is floating over.
The code once all that is set up is so simple its almost sad.
public function findDropType(e) {
for(var i:int = 0; i < msBuilder.msItems.length; i++) {
if(e.target.x > msBuilder.msItems[i].xSTNOW && e.target.x < ( msBuilder.msItems[i].xSTNOW + msBuilder.msItems[i].xWidth) &&
e.target.y > msBuilder.msItems[i].ySTNOW && e.target.y < ( msBuilder.msItems[i].ySTNOW + msBuilder.msItems[i].yHeight) ) {
trace("hit x " + msBuilder.msItems[i]);
break;
}
}
}
Now off to about 2-3 weeks of really dull/boring programming as I interconnect everything. You have been warned... its going to be a snooze fest or x and y positioning and handling drag and drops. I'm already bored of it. All the fun stuff was the last week.
Daisy
The code once all that is set up is so simple its almost sad.
public function findDropType(e) {
for(var i:int = 0; i < msBuilder.msItems.length; i++) {
if(e.target.x > msBuilder.msItems[i].xSTNOW && e.target.x < ( msBuilder.msItems[i].xSTNOW + msBuilder.msItems[i].xWidth) &&
e.target.y > msBuilder.msItems[i].ySTNOW && e.target.y < ( msBuilder.msItems[i].ySTNOW + msBuilder.msItems[i].yHeight) ) {
trace("hit x " + msBuilder.msItems[i]);
break;
}
}
}
Now off to about 2-3 weeks of really dull/boring programming as I interconnect everything. You have been warned... its going to be a snooze fest or x and y positioning and handling drag and drops. I'm already bored of it. All the fun stuff was the last week.
Daisy
Thursday, June 7, 2012
Drag copy and drop
First technical hurtle out of the way and now can copy and drag and drop. Yay... next technical hurtle has to do with move and recognizing what I'm no top of. A much more interesting proposition yes...
Otherworldgame.net is now up and running thanks to Tyrranus. Is there any difference then before... not at all expect for its snazzy.
That's about it.
Daisy
Otherworldgame.net is now up and running thanks to Tyrranus. Is there any difference then before... not at all expect for its snazzy.
That's about it.
Daisy
Subscribe to:
Posts (Atom)







