I have moving right and left snail, but when my player gets too close snail aims toward him.
How can I make it happen?
Compare x and y if player near snail then set animation towards player else not
Develop games in your browser. Powerful, performant & highly capable.
set animation toward player?
How?
NormalOne give time I will post capx for you soon
Here you could do it like so
But my Snail goes where he likes (random), and I can jump on platform without touching blue box.
if your snail going random then use invisiable sprite and place it by randomly going snail position - (minus) snail.X and snail Y
But when I have a group of snails my game would jam