How do I have NPC move back and forth?

I am making a game, and in level 7 or (Jotaro Testing) I am testing to see how I can move NPC back and forth, Please play around and help me with this! Thanks!

Make a link

Whoops! Sorry:

Here, do this:

Attach a “Always” to a “Number” then attach the “Number” to a “Velocity” and set the Velocity to “Forward”. After that create a “Collision” and set the block to “Any.” Attach the “Collision” to a “Flip” and set the “Flip” to “Toggle.”

The higher the number is the faster the object will move.

Hey wj20930,

The simplest way for your particular game would probably just be use a timer.

Here’s a simple example of moving an NPC back and forth using a timer: