How do I make my enemy character walk from one point to another and despawn?

Inside the character:

347639-3p.gif