Patent ID: 8202147

Claim:
A non-transitory computer-readable storage medium having stored therein a game program to be executed by a computer in a game apparatus, the program causing the computer to perform: path detection for detecting a path inputted by a player; movement control for moving an object, placed in a virtual game space, along the path; action control for controlling the object, which is moving along the path, to perform a predetermined action; and return position determination for determining, from among positions along the path, a return position at which the object, having finished the predetermined action, returns to the path, wherein the movement control resumes the movement of the object along the path after returning the object, having finished the predetermined action, to the return position, wherein the return position determination determines the return position based on a position of the object when the object finished the predetermined action, wherein the return position is chosen among a plurality of positions along the path by the return position determination based on the relative positioning between the position along the path closest to the position of the object when the object finished the predetermined action and predetermined positions along the path including the position of the object along the path at the start of the predetermined action.