NCCA / SmallBlurryPeopleCVA3

CA2 Group project
4 stars 0 forks source link

Forage commands causing crashes #25

Closed i7621149 closed 7 years ago

i7621149 commented 7 years ago

When the character is BUILDING, then giving them a FORAGE command crashes the game.

i7621149 commented 7 years ago

Seems like an issue with the "treeFloodFill" function, it calls itself a whole bunch before crashing.

i7621149 commented 7 years ago

Oh wait, it doesn't just happen when building, seems like FORAGE just causes crashes sometimes

i7621149 commented 7 years ago

Might be to do with being closer to an edge than to trees?

RosieNEmery commented 7 years ago

an edge? are you looking at the waterFloodFill?

RosieNEmery commented 7 years ago

If you click the forage button and then a tree the character will forage, if you click on a tree without clicking the forage button the character chops wood. Maybe there should be some feedback that you are in foraging mode such as the button colour changing or summin?

i7621149 commented 7 years ago

forage works great now, good job rosie :+1: