Virtual object control method and apparatus, terminal, storage medium, and program product
A virtual object control method is performed by a terminal. The method includes: displaying a virtual environment picture and an attack control; in response to a first trigger operation on the attack control, displaying an action control adjacent the attack control, the action control being configured to trigger the virtual object to perform a non-attack action; and in response to a second trigger operation on the action control, controlling the virtual object to perform a first action according to the action control while performing attacks according to the attack control. The method provided in embodiments of this application may reduce the operation difficulty of controlling a virtual object to attack and performing other actions simultaneously.
1. A virtual object control method performed by a terminal, the method comprising:
displaying a virtual environment picture and an attack control, the virtual environment picture containing a virtual object, and the attack control being configured to trigger the virtual object to attack;
in response to a first trigger operation on the attack control, displaying an action control adjacent the attack control, the action control being configured to trigger the virtual object to perform a non-attack action, wherein the displaying an action control adjacent the attack control comprises:
choosing, among a plurality of action control modes corresponding to different action controls, an action control mode and an associated action control; and
displaying the action control associated with the chosen action control mode adjacent the attack control; and
in response to a second trigger operation on the action control, controlling the virtual object to perform a first action according to the action control while performing attacks according to the attack control.
2. The method according to claim 1 , wherein the displaying the action control associated with the chosen action control mode adjacent the attack control comprises:
when the chosen action control mode is a first action mode, displaying a virtual joystick control around the attack control, the virtual joystick control being configured to control the virtual object to move; and
the controlling the virtual object to perform a first action according to the action control comprises:
in response to a drag operation on the attack control, controlling the virtual object to move in a direction of the drag operation defined by the virtual joystick control.
3. The method according to claim 1 , wherein the displaying the action control associated with the chosen action control mode adjacent the attack control comprises:
when the chosen action control mode is a second action mode, displaying a virtual wheel control around the attack control, the virtual wheel control being divided into at least two first wheel sub-regions located at different positions, with an action option displayed in each first wheel sub-region; and
the controlling the virtual object to perform a first action according to the action control comprises:
in response to a drag operation on the attack control, determining a second wheel sub-region from the at least two first wheel sub-regions based on a control position of the attack control overlapping the second wheel sub-region; and
controlling the virtual object to perform the first action according to the action option associated with the second wheel sub-region while performing the attacks.
4. The method according to claim 1 , wherein the method further comprises:
displaying a mode switching control, the mode switching control being configured to trigger switching of the action control mode; and
switching the action control mode in response to a third trigger operation on the mode switching control.
5. The method according to claim 4 , wherein the method further comprises:
hiding the mode switching control in response to the first trigger operation on the attack control; and
resuming the displaying of the mode switching control in response to ending of the second trigger operation on the attack control.
6. The method according to claim 1 , wherein the method further comprises:
in response to the ending of the second trigger operation on the attack control, controlling the virtual object to stop performing the first action and the attacks.
7. A terminal, comprising a processor and a memory, the memory storing at least one program, the at least one program being loaded and executed by the processor and causing the terminal to perform a virtual object control method including:
displaying a virtual environment picture and an attack control, the virtual environment picture containing a virtual object, and the attack control being configured to trigger the virtual object to attack;
in response to a first trigger operation on the attack control, displaying an action control adjacent the attack control, the action control being configured to trigger the virtual object to perform a non-attack action, wherein the displaying an action control adjacent the attack control comprises:
choosing, among a plurality of action control modes corresponding to different action controls, an action control mode and an associated action control; and
displaying the action control associated with the chosen action control mode adjacent the attack control; and
in response to a second trigger operation on the action control, controlling the virtual object to perform a first action according to the action control while performing attacks according to the attack control.
8. The terminal according to claim 7 , wherein the displaying the action control associated with the chosen action control mode adjacent the attack control comprises:
when the chosen action control mode is a first action mode, displaying a virtual joystick control around the attack control, the virtual joystick control being configured to control the virtual object to move; and
the controlling the virtual object to perform a first action according to the action control comprises:
in response to a drag operation on the attack control, controlling the virtual object to move in a direction of the drag operation defined by the virtual joystick control.
9. The terminal according to claim 8 , wherein the displaying the action control associated with the chosen action control mode adjacent the attack control comprises:
when the chosen action control mode is a second action mode, displaying a virtual wheel control around the attack control, the virtual wheel control being divided into at least two first wheel sub-regions located at different positions, with an action option displayed in each first wheel sub-region; and
the controlling the virtual object to perform a first action according to the action control comprises:
in response to a drag operation on the attack control, determining a second wheel sub-region from the at least two first wheel sub-regions based on a control position of the attack control overlapping the second wheel sub-region; and
controlling the virtual object to perform the first action according to the action option associated with the second wheel sub-region while performing the attacks.
10. The terminal according to claim 7 , wherein the method further comprises:
displaying a mode switching control, the mode switching control being configured to trigger switching of the action control mode; and
switching the action control mode in response to a third trigger operation on the mode switching control.
11. The terminal according to claim 10 , wherein the method further comprises:
hiding the mode switching control in response to the first trigger operation on the attack control; and
resuming the displaying of the mode switching control in response to ending of the second trigger operation on the attack control.
12. The terminal according to claim 7 , wherein the method further comprises:
in response to the ending of the second trigger operation on the attack control, controlling the virtual object to stop performing the first action and the attacks.
13. A non-transitory computer-readable storage medium, storing at least one program, the at least one program being loaded and executed by a processor of a terminal and causing the terminal to perform a virtual object control method including:
displaying a virtual environment picture and an attack control, the virtual environment picture containing a virtual object, and the attack control being configured to trigger the virtual object to attack;
in response to a first trigger operation on the attack control, displaying an action control adjacent the attack control, the action control being configured to trigger the virtual object to perform a non-attack action, wherein the displaying an action control adjacent the attack control comprises:
choosing, among a plurality of action control modes corresponding to different action controls, an action control mode and an associated action control; and
displaying the action control associated with the chosen action control mode adjacent the attack control; and
in response to a second trigger operation on the action control, controlling the virtual object to perform a first action according to the action control while performing attacks according to the attack control.
14. The non-transitory computer-readable storage medium according to claim 13 , wherein the displaying the action control associated with the chosen action control mode adjacent the attack control comprises:
when the chosen action control mode is a first action mode, displaying a virtual joystick control around the attack control, the virtual joystick control being configured to control the virtual object to move; and
the controlling the virtual object to perform a first action according to the action control comprises:
in response to a drag operation on the attack control, controlling the virtual object to move in a direction of the drag operation defined by the virtual joystick control.
15. The non-transitory computer-readable storage medium according to claim 13 , wherein the displaying the action control associated with the chosen action control mode adjacent the attack control comprises:
when the action control mode is a second action mode, displaying a virtual wheel control around the attack control, the virtual wheel control being divided into at least two first wheel sub-regions located at different positions, with an action option displayed in each first wheel sub-region; and
the controlling the virtual object to perform a first action according to the action control comprises:
in response to a drag operation on the attack control, determining a second wheel sub-region from the at least two first wheel sub-regions based on a control position of the attack control overlapping the second wheel sub-region; and
controlling the virtual object to perform the first action according to the action option associated with the second wheel sub-region while performing the attacks.
16. The non-transitory computer-readable storage medium according to claim 13 , wherein the method further comprises:
displaying a mode switching control, the mode switching control being configured to trigger switching of the object action mode; and
switching the object action mode in response to a third trigger operation on the mode switching control.
17. The non-transitory computer-readable storage medium according to claim 13 , wherein the method further comprises:
in response to the ending of the second trigger operation on the attack control, controlling the virtual object to stop performing the first action and the attacks.