Hello, I am new to GDevelop and was wondering how would I make an enemy flip to be facing the player depending on the player’s position? I want the enemy to be facing the player during the game (I am making a Beat 'em up)
1 Like
Perhaps you can get the enemy position and compare to player position. if player pos < enemy pos, flip enemy with the flip horizontally action, otherwise, don’t flip. so if the enemy is looking right, and the player is behind the enemy (less than pos), he should flip to face the player. if the player is too the right, no flip needed as player pos > enemy pos. There probably are better smarter ways to do it, but it is a starting point