I'm trying to figure out how to place an enemy with something simple like Sine movement, but when the enemy is struck with the players sword or comes in to collision with the player it will bounce off or get knocked back.
This is doable, but the biggest issue I run in to is trying to have the enemy then return to the place it started at. I'm trying to keep it simple and make these enemies flying/floating type to avoid platform ai issues.
I've used the bullet behavior but I'm guessing that I'll need to do that with a combo of path detection or something.
Has anyone done this or know how to?