I'm wanting a sprite to patrol certain parts of the game and run away when it spots the player, but not run to a specific destination. Any Ideas? Thanks in advance~
I currently have the sprite on a timer, every random(1,3) seconds picking random(layout.height) & random(layout.width)
When it spots the player, the speed amps up, but it doesn't make an effort to get out of danger of the player. Thats what I'm aiming for.