AI for bees needed solution

Get help using Construct 2

Post » Fri Feb 07, 2014 7:46 pm

in my example bee go to one flower and dont return to beehive

https://dl.dropboxusercontent.com/u/44710358/bees.capx

I need solution how do:

Bee when will be spawned by beehive must go to Flower

When the bee has already sit down on a flower and starts to retrieve nectar, the moment would have to return to the beehive.

The only condition is such that she chose a flower bee who is not occupied by another bee.

When the bee already coming back to the hive must take a few seconds before I fly to flower again.

delgado2014-02-07 20:03:49
B
113
S
29
G
48
Posts: 1,883
Reputation: 36,580

Post » Fri Feb 07, 2014 9:00 pm

Not perfect, but closer:
bees_BHT.capx
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Fri Feb 07, 2014 10:15 pm

@blackhornet its great. Why you say this is not perfect? this have a bugs ? i need to know :)
B
113
S
29
G
48
Posts: 1,883
Reputation: 36,580

Post » Fri Feb 07, 2014 10:35 pm

The bees get stuck on the rocks, so you'll need to come up with a better way to deal with that.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Fri Feb 07, 2014 10:47 pm

@blackhornet i deal with that, bees are doing well with overtaking obstacles.
But i found other bug.

When beehive want spawn more bees than flowers is on game, program freezesdelgado2014-02-07 22:48:46
B
113
S
29
G
48
Posts: 1,883
Reputation: 36,580

Post » Fri Feb 07, 2014 10:58 pm

ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Fri Feb 07, 2014 11:07 pm

@blackhornet really great thank you very much
B
113
S
29
G
48
Posts: 1,883
Reputation: 36,580

Post » Thu Mar 02, 2017 9:47 am

blackhornet wrote:bees_BHT_b.capx


Blackhornet can you add container of nectar for each flower?
when flower will be out of nectar bee should seek another flower before go to beehive?
B
25
S
8
Posts: 219
Reputation: 2,181

Post » Thu Mar 02, 2017 7:33 pm

@IGDev
I'll get something as soon as I can.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Fri Mar 03, 2017 4:42 am

@IGDev
Tried updating the 3 year old code, but it was too painful. Here's a fresh start. Three bees at a time will collect nectar. When the flower is empty, the bee tries to find another free flower. If it can't, it flies home. If the bee is full, it flies home. Bees will spawn until all flower are empty.
http://www.blackhornettechnologies.com/Construct2Stuff/Bees2017_BHT.capx
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests