Method and apparatus for controlling virtual character, electronic device, and storage medium
Abstract
A method for controlling a virtual character, a apparatus for controlling a virtual character, an electronic device and a computer-readable storage medium, the method including: in response to a first touch operation acted on an aiming control, adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode; presenting a first shooting control on the GUI under the condition of the second visual field mode, the first shooting control and the aiming control being located at two sides of the GUI, respectively; and in response to a second touch operation acted on the first shooting control, controlling the virtual character to perform a shooting action.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for controlling a virtual character, applied in a touch terminal capable of presenting a graphical user interface (GUI) for a game scene, the method comprising:
adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode, in response to a first touch operation acted on an aiming control; under the condition of the second visual field mode, presenting a first shooting control on the GUI, wherein under the condition of the second visual field mode, the GUI further comprises a second shooting control; and controlling the virtual character to perform a shooting action in at least one of the following ways:
in response to a second touch operation acted on the first shooting control and a third touch operation acted on the second shooting control at the same time, controlling the virtual character to perform a shooting action;
in response to a second touch operation acted on the first shooting control, controlling the virtual character to perform a shooting action; and
in response to a third touch operation acted on the second shooting control, controlling the virtual character to perform a shooting action.
2 . The method for controlling a virtual character according to claim 1 , wherein the first shooting control and the aiming control are located at two sides of the GUI, respectively.
3 . The method for controlling a virtual character according to claim 1 , further comprising:
hiding the first shooting control, in response to the visual field mode of the game scene being restored to the first visual field mode.
4 . The method for controlling a virtual character according to claim 1 , wherein the second shooting control and the aiming control are located at a same side.
5 . The method for controlling a virtual character according to claim 1 , further comprising, under the condition of the second visual field mode,
adjusting an aiming direction of the virtual character according to a moving direction of a touch point of the swipe operation, in response to a swipe operation acted on the aiming control.
6 . The method for controlling a virtual character according to claim 5 , wherein the swipe operation is a continuous operation of the first touch operation.
7 . The method for controlling a virtual character according to claim 1 , further comprising:
controlling the virtual character to perform a high-frequency shooting action, based on the number of guns hold by the virtual character.
8 . The method for controlling a virtual character according to claim 1 , wherein the first touch operation comprises at least one of the following: a click operation, a double click operation, a touch and hold operation, and a press-down operation.
9 . The method for controlling a virtual character according to claim 1 , wherein adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode comprises:
changing an optical sight object corresponding to the aiming control by a predetermined scale factor, wherein the optical sight object is presented at a center of the GUI.
10 . The method for controlling a virtual character according to claim 9 , wherein the center of the GUI is at least one of the following: a physical center, and a center of the operation range of the GUI.
11 . The method for controlling a virtual character according to claim 1 , wherein before controlling the virtual character to perform a shooting action, the method further comprise determining whether the first touch operation is ended or not.
12 . A method for controlling a virtual character, applied in a touch terminal capable of presenting a graphical user interface (GUI) for a game scene, the method comprising:
adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode, in response to a first touch operation acted on an aiming control; under the condition of the second visual field mode, presenting a first shooting control on the GUI; and hiding the first shooting control, in response to the visual field mode of the game scene being restored to the first visual field mode.
13 . The method for controlling a virtual character according to claim 12 , further comprising: restoring the visual field mode of the game scene to the first visual field mode in response to a fourth touch operation acted on the aiming control under the condition of the second visual field mode.
14 . The method for controlling a virtual character according to claim 13 , wherein the forth touch operation comprises at least one of the following: a click operation, a double click operation, a touch and hold operation, and a press-down operation.
15 . The method for controlling a virtual character according to claim 12 , wherein adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode comprises:
changing an optical sight object corresponding to the aiming control by a predetermined scale factor, wherein the optical sight object is presented at a center of the GUI.
16 . The method for controlling a virtual character according to claim 15 , wherein the center of the GUI is at least one of the following: a physical center, and a center of the operation range of the GUI.
17 . A computer-readable storage medium stored with a computer program, wherein when the computer program is executed by a processor, the processor is configured to:
adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode, in response to a first touch operation acted on an aiming control: under the condition of the second visual field mode, presenting a first shooting control on the GUI, wherein under the condition of the second visual field mode, the GUI further comprises a second shooting control; and controlling the virtual character to perform a shooting action in at least one of the following ways:
in response to a second touch operation acted on the first shooting control and a third touch operation acted on the second shooting control at the same time, controlling the virtual character to perform a shooting action;
in response to a second touch operation acted on the first shooting control, controlling the virtual character to perform a shooting action; and
in response to a third touch operation acted on the second shooting control, controlling the virtual character to perform a shooting action.
18 . A computer-readable storage medium stored with a computer program, wherein when the computer program is executed by a processor, the processor is configured to:
adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode, in response to a first touch operation acted on an aiming control; under the condition of the second visual field mode, presenting a first shooting control on the GUI; and hiding the first shooting control, in response to the visual field mode of the game scene being restored to the first visual field mode.
19 . An electronic device, comprising:
a processor; and a storage device configured to store an executable instruction of the processor, wherein the processor is configured to perform the method for controlling a virtual character, the method comprising: adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode, in response to a first touch operation acted on an aiming control; under the condition of the second visual field mode, presenting a first shooting control on the GUI, wherein under the condition of the second visual field mode, the GUI further comprises a second shooting control; and controlling the virtual character to perform a shooting action in at least one of the following ways:
in response to a second touch operation acted on the first shooting control and a third touch operation acted on the second shooting control at the same time, controlling the virtual character to perform a shooting action;
in response to a second touch operation acted on the first shooting control, controlling the virtual character to perform a shooting action; and
in response to a third touch operation acted on the second shooting control, controlling the virtual character to perform a shooting action.
20 . An electronic device, comprising:
a processor; and a storage device configured to store an executable instruction of the processor, wherein the processor is configured to perform the method for controlling a virtual character, the method comprising: adjusting a visual field mode of the game scene from a first visual field mode to a second visual field mode, in response to a first touch operation acted on an aiming control; under the condition of the second visual field mode, presenting a first shooting control on the GUI; and hiding the first shooting control, in response to the visual field mode of the game scene being restored to the first visual field mode.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.