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.
Type Waypoint
x as float
y as float
EndType
Create an array for waypoints:
waypoints as Waypoint[10]
Define the waypoint locations:
waypoints[1].x = 10 : waypoints[1].y = 8
waypoints[2].x = 185 : waypoints[2].y = 75
waypoints[3].x = 68 : waypoints[3].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