6:01pm - The next day! I'm heading into the code to make my NPCs gather carrots.
7:00pm - Okay, one hour later and the NPCs will move to the carrot patch.
Their navigation needs some work but for the prototype it's okay.
Next they need to take a carrot from the patch, and hold it.
8:10pm - I ended up having lunch and watching an ep of SFIA, which took about an hour total. So, I haven't been working, but hopefully I'm about to work more.
8:44pm - I'm trying to figure out how I should handle showing that the civ or player is holding a carrot. I'm pretty sure I'm going to put the carrot on top of them, as if it were on their head or they were holding it above their head. But how to put it there?
There's two ways I've thought of so far. The first is to give them a child carrot that's invisible, and make it visible when they're holding a carrot.
The second way would be to make a carrot when they pick one, and have it follow them when they move. I'm thinking I can do this by making an item-holding node and then put a carrot in that, as a generic item. That way the carrot doesn't have to have any following code of its own. It'll be like, FollowItem>Carrot
I think that the second option is the way I'm going to go.
It'll be a floating-following node with a target to follow, and that contains an item. I'm also going to implement an index of items, starting with just CARROT, that uses strings to reference carry items. That'll be interesting.
I don't think I have enough time left to do all of this and clean though before the deadline. :/
So I guess I'll miss my deadline!
But that's okay, it's not the end of the world. I'll set better goals next time.
For now, it's almost nine so I'm going to wrap up. I've got Pathfinder tonight!
7:00pm - Okay, one hour later and the NPCs will move to the carrot patch.
Their navigation needs some work but for the prototype it's okay.
Next they need to take a carrot from the patch, and hold it.
8:10pm - I ended up having lunch and watching an ep of SFIA, which took about an hour total. So, I haven't been working, but hopefully I'm about to work more.
8:44pm - I'm trying to figure out how I should handle showing that the civ or player is holding a carrot. I'm pretty sure I'm going to put the carrot on top of them, as if it were on their head or they were holding it above their head. But how to put it there?
There's two ways I've thought of so far. The first is to give them a child carrot that's invisible, and make it visible when they're holding a carrot.
The second way would be to make a carrot when they pick one, and have it follow them when they move. I'm thinking I can do this by making an item-holding node and then put a carrot in that, as a generic item. That way the carrot doesn't have to have any following code of its own. It'll be like, FollowItem>Carrot
I think that the second option is the way I'm going to go.
It'll be a floating-following node with a target to follow, and that contains an item. I'm also going to implement an index of items, starting with just CARROT, that uses strings to reference carry items. That'll be interesting.
I don't think I have enough time left to do all of this and clean though before the deadline. :/
So I guess I'll miss my deadline!
But that's okay, it's not the end of the world. I'll set better goals next time.
For now, it's almost nine so I'm going to wrap up. I've got Pathfinder tonight!