Enemy with a point getting stuck when touches a tile

Hi everyone, I am currently trying to create a game on the engine using this guide “How To Make A Video Game GDevelop Beginner Tutorial” on youtube. I got an object “Enemy” with this event description, set up the platformer behaviour.

I set in the “Edit points” a point named sensor, that’s is right in front of the sprite.
stones is a tilemap, there are two tiles left and right sorrounding the Enemy

It’s supposed to turn and go in the other direction in a loop each time it touches “stones” but it gets stuck when the sensor collides with the tile of the stone tilemap.

Thanks, Any help is appreciated :slight_smile:

Edit: sorry. I thought both events were flipped. It must’ve been because the sprite is red like the inverted arrow indicator.

There doesn’t appear to be anything wrong with the events. I’ve made a test project with the same events, and it works fine. This would suggest the issue lies elsewhere.

Does it only happen when the Enemy is moving to the right, or in both directions? If it’s just to the right, then I’d hazard a guess that somewhere else you’re unflipping the Enemy, negating the event in your screenshot.

You must be sure that this point replicated on each frame of the animation and on all animations where you need that flipping to happen

Hi ya’ll. I appreciate everyone who reached out. turns out the problem was that the enemy latched on to the ledge of the stones, I checked off “Can grab platform Ledges” In the behaviours so if anybody else faces this problem that might be their issue too.
Thanks again, happy sumer :slight_smile: