Hello, I am trying something new to see if I change my monster AI around. I use to use the MTE moveSpriteTo for all my logic of monsters following the player. Decided to try out transition.to to move the monsters.
The problem is I use in my gameLoop:
transition.moveTo( game.sMob_1, { x=player.levelPosX, y=player.levelPosY, time=800 } ) and the monster will go right through the players physics body. If I don’t use this transistion line I can normally run into the monster fine its only when it uses the transistion it ignores all physics. I’ve tried to setup a transistion.cancel in the onCollision functions but it seemed to still give very buggy results.
I use to do:
mte.moveSpriteTo({sprite = game.sMob_1, levelPosX = player.levelPosX, levelPosY = player.levelPosY, time = 900, transition = linear}) and the physics bodies worked fine, the monster would just continously rub against the player physics body not go through it.
Is there any other way to use some very basic method of monsters following the player? Maybe using force/velocity or something? If i can plug in the players location and set it at a speed, I couldn’t figure out any method to use force/velocity, etc.
Thanks for your time!