The Castle Doctrine Forums

Discuss the massively-multiplayer home defense game.

You are not logged in.

#1 2013-06-11 05:09:15

Laffinty
Member
Registered: 2013-06-10
Posts: 46

Animal movement behavior affected by code?

So not sure what to call this XD
basically I noticed something and i'm not sure if it is a bug or intentional, it may be due to how the code works (if you loop through everything from bottom to top and left to right) or it may be intentional or some kind of other bug..


anyway

3dgB2.jpg
thats the basic test setup
once i take the first step

3dgC6.jpg
you see the the top and bottom chihuahuas behaved differently
the top once both moved toward the window wherein the on the bottom, the bottom one seem to have been blocked by the one infront of it

on the right you see that the chihuahuas coming from the right also both moved to the window
to test this with chihuahuas approaching from left:
3dgEf.jpg
activate door:
3dgES.jpg
move one more step:
3dgFk.jpg
you see that again only one of them moved as opposed to the ones that approached from the right earlier

Offline

#2 2013-06-11 05:23:24

ukuko
Member
Registered: 2013-04-06
Posts: 333

Re: Animal movement behavior affected by code?

This is due to the order the pets are processed in and directional preference when the pet has a choice.

See this thread for more:

http://thecastledoctrine.net/forums/vie … php?id=304

Offline

#3 2013-06-11 05:44:19

Laffinty
Member
Registered: 2013-06-10
Posts: 46

Re: Animal movement behavior affected by code?

Ah I thought that thread was about something else :3 sorry then

Offline

Board footer

Powered by FluxBB 1.5.8