I created an enemy, he will throw bombs at the player.
When a player is detected (using Sprite), he must throw a bomb at the place where the player was. But I do not know how to do it(
- How to get the values of the player’s position so that the enemy throws a bomb there. (The problem is that you need to get the values and throw the bomb there, even if the player is no longer in that place)
- The bomb ignores the platforms while flying to the place where the player was. But reaching this place, the bomb falls on the platform.
How do I do this?