Virtual object control method and related apparatus
View Patent ↗A virtual object control method is provided. The method includes: displaying a user interface (UI), the UI including a joystick control configured to control a virtual object to move; receiving a quick click/tap operation signal acting on a target region corresponding to the joystick control; and controlling, according to the quick click/tap operation signal, the virtual object to run in a virtual scene displayed in the UI.
1 . A virtual object control method, performed by a terminal device, the method comprising:
displaying a user interface (UI), the UI including a joystick control configured to control a virtual object to move;
receiving an operation signal initiated at a target region corresponding to the joystick control; and
controlling, in response to a touch position of the operation signal being detected at a display position corresponding to a running icon, the virtual object to run automatically in a virtual scene displayed in the UI,
wherein:
the running icon is a quick running icon in response to that the virtual object is at a standing state at a beginning time of the operational signal; or
the running icon is a quick stand-up icon in response to that the virtual object is at a non-standing state at the beginning time of the operational signal.
2 . The method according to claim 1 , wherein controlling the virtual object to run comprises:
obtaining an attribute value corresponding to the operation signal;
determining a running speed of the virtual object according to the attribute value; and
controlling the virtual object to run in the virtual scene according to the running speed.
3 . The method according to claim 1 , wherein controlling the virtual object to run comprises:
detecting an operation position corresponding to the operation signal;
determining a running direction of the virtual object according to the operation position; and
controlling the virtual object to run in the virtual scene according to the running direction.
4 . The method according to claim 1 , wherein controlling the virtual object to run comprises:
controlling, in response to determining the operation signal is received and the virtual object is in a non-standing state, the virtual object to run in the virtual scene in the non-standing state.
5 . The method according to claim 4 , further comprising:
receiving a posture switching instruction corresponding to the virtual object;
controlling, according to the posture switching instruction, the virtual object to switch from the non-standing state to a standing state; and
controlling the virtual object to automatically run in the virtual scene in the standing state.
6 . The method according to claim 1 , wherein the UI further includes a quick stand-up icon configured to effect a state switching of the virtual object and to control the virtual object to automatically run in the virtual scene in response to the state switching.
7 . The method according to claim 6 , wherein the UI further includes a drag icon, and the method further comprises:
displaying the quick stand-up icon in response to determining a distance between a center position of the drag icon and a center position of the joystick control is greater than a distance threshold.
8 . A virtual object control apparatus, comprising: at least one memory storing computer program instructions; and at least one processor coupled to the at least one memory and configured to execute the computer program instructions and perform:
displaying a user interface (UI), the UI including a joystick control configured to control a virtual object to move;
receiving an operation signal initiated at a target region corresponding to the joystick control; and
controlling, in response to a touch position of the operation signal being detected at a display position corresponding to a running icon, the virtual object to run automatically in a virtual scene displayed in the UI,
wherein:
the running icon is a quick running icon in response to that the virtual object is at a standing state at a beginning time of the operational signal; or
the running icon is a quick stand-up icon in response to that the virtual object is at a non-standing state at the beginning time of the operational signal.
9 . The virtual object control apparatus according to claim 8 , wherein controlling the virtual object to run comprises:
detecting an operation position corresponding to the operation signal;
determining a running direction of the virtual object according to the operation position; and
controlling the virtual object to run in the virtual scene according to the running direction.
10 . The virtual object control apparatus according to claim 8 , wherein controlling the virtual object to run comprises:
controlling, in response to determining the operation signal is received and the virtual object is in a non-standing state, the virtual object to run in the virtual scene in the non-standing state.
11 . The virtual object control apparatus according to claim 10 , wherein the at least one processor is configured to execute the computer program instructions and further perform:
receiving a posture switching instruction corresponding to the virtual object;
controlling, according to the posture switching instruction, the virtual object to switch from the non-standing state to a standing state; and
controlling the virtual object to automatically run in the virtual scene in the standing state.
12 . The virtual object control apparatus according to claim 8 , wherein the UI further includes a quick stand-up icon configured to effect a state switching of the virtual object and to control the virtual object to automatically run in the virtual scene in response to the state switching.
13 . The virtual object control apparatus according to claim 12 , wherein the UI further includes a drag icon, and the at least one processor is configured to execute the computer program instructions and further perform:
displaying the quick stand-up icon in response to determining a distance between a center position of the drag icon and a center position of the joystick control is greater than a distance threshold.
14 . A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor to perform:
displaying a user interface (UI), the UI including a joystick control configured to control a virtual object to move;
receiving an operation signal initiated at a target region corresponding to the joystick control; and
controlling, in response to a touch position of the operation signal being detected at a display position corresponding to a running icon, the virtual object to run automatically in a virtual scene displayed in the UI,
wherein:
the running icon is a quick running icon in response to that the virtual object is at a standing state at a beginning time of the operational signal; or
the running icon is a quick stand-up icon in response to that the virtual object is at a non-standing state at the beginning time of the operational signal.