How do I make an enemy pace back & forth?

Hi. I would like to know how to make a simple blueprint of a Paper 2D enemy to walk back and forth. Just like a koopa turtle on mario. -Thanks!

I don’t know much about Paper 2D but the logic for this should be quite simple. You would just have a variable for its position that it’s being constantly updated. For example say that you have variable X for the horizontal position and you have another variable dx which is how fast you want it to move. Every tick you would add dx to X, but under certain condition, say reaching a certain point, you would turn dx negative which means that now your object should go in the opposite direction and once again when it reaches a certain point you would turn dx positive back again.

mamoniem has made a great step by step tutorial of an enemy that moves between points A and B.
He goes into great detail in this video: