suriyun-mmorpg / UnityMultiplayerARPG_2DAI

AI implement for 2D mode, which implements A* Pathfinding Project
MIT License
10 stars 0 forks source link

Player is not on the side to attack. #4 #6

Closed nowsfeky closed 4 years ago

nowsfeky commented 4 years ago

Hello ! Any predictions to fix?

insthync commented 4 years ago

I will start fix it today

nowsfeky commented 4 years ago

Thank's !!!!

nowsfeky commented 4 years ago

I think you need to pay attention when you enter the portal too. He was testing and the character does not stop after entering the portal, because when he collides with the BoxCollider he ends up not finding the center of the tile where the target is. With that he keeps coming back and trying to enter the portal again.

insthync commented 4 years ago

Yes, seems like I have to create new monster activity class and player character controller class to control character's move target within grids

insthync commented 4 years ago

Try 1.3 demo, I've added PlayerCharacterController2DAI, you should use it instead of default PlayerCharacterController. For the monster, you should use MonsterActivityComponent2DAI instead of default MonsterActivityComponent.