Hi,
I want to create new enemies for my game, ones that can walk around a wall, like the bugs in Hollow Knight.
I don't know how I should create the logic.
When the enemy reaches the edge of the tile he should rotate 90 degree but also keep the same distance from the ground tile while is moving.
This is my attempt but it's incomplete and it's not working:
dropbox.com/scl/fi/7cvqh84sffo207sqoylmf/WalkAroundWallMovement.c3p
I made this demo a while ago, maybe you will be able to adopt it for your game:
howtoconstructdemos.com/enemies-walking-around-walls-metroid-style-or-patrolling-the-perimeter-enemy-ai-capx
Develop games in your browser. Powerful, performant & highly capable.
Thanks, I already have this demo on my pc.
It's using sprite blocks with image points and I am using a tilemap. I tried to modify it with no success.
The image points are defined on the enemy sprite, not on blocks. And it's easy to replace blocks with a tilemap:
dropbox.com/scl/fi/s813xhmap2se856wdzta0/WalkAroundWalls_Tilemap.c3p