MineTurte MineTurte loading

SemiTruk wrote:

I'm making a top down game and I want the enemy to slowly and smoothly turn in the direction of the player, but I tried to do it and failed miserably. If anybody could help, that would be great.

define findDirection
set [ originaldir] to (direction)
point towards [ player]
set [ direction2] to (direction)
point towards [ (originaldir)]
repeat until <(direction) = [(direction2)]>
turn cw (1) degrees
end

Hope this helps (I was kinda rushed so idk if it works lol)