By array movement, do you mean the character can only move to certain locations? (waypoints, as CodeName has said)
Define what a waypoint is. In our case, it's only a location.
x as float
y as float
Create an array for waypoints:
waypoints as Waypoint
Define the waypoint locations:
waypoints.x = 10 : waypoints.y = 8
waypoints.x = 185 : waypoints.y = 75
waypoints.x = 68 : waypoints.y = 123
Point your character to the location of a specific waypoint then move forward until you reach it!
"I like offending people, because I think people who get offended should be offended." - Linus Torvalds