Virtual character control method and device, electronic equipment and storage medium
By displaying attack controls in the graphical user interface on the mobile terminal and responding to click or sliding operations, the target action is automatically determined from the action collection, which solves the problem of incoherent virtual character control operations and improves the consistency and convenience of game operations. sex.
Patent Information
- Application Number
- CN202410733162.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2024-10-15
AI Technical Summary
On mobile terminals, when players control virtual characters for physical fights and cold weapon combat, the operations are not coherent enough and accidental touches are prone to occur.
By displaying attack controls in the graphical user interface and responding to clicks or sliding operations, the target action is automatically determined from the action collection, and the virtual character is controlled to perform the corresponding action, achieving rapid and coherent attack move transformation and attack and defense transitions.
It improves the coherence and convenience of operations, reduces misoperations, and allows players to switch between multiple actions through a single control without lifting their fingers or changing their line of sight.
Smart Images

Figure CN118767429A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of game technology, and in particular to a virtual character control method, device, electronic device and storage medium. Background Art
[0002] Action Game (ACT for short) is a type of electronic game. In a broad sense, all real-time interactive games with action elements are action games, such as shooting games and sports games; in a narrow sense, they are games that use physical combat and cold weapons as the main fighting methods.
[0003] With the popularity of mobile terminals, many shooting games adapted to mobile touch terminals have appeared in recent years. However, compared with shooting games that mainly use long-range shooting as the main combat method, games that use physical combat and cold weapons as the main combat methods have more diverse combat attack methods, more varied combat attack moves, and more flexible attack and defense conversion. Summary of the invention
[0004] The applicant of the present disclosure discovered during the long-term research and development process that, due to the limitations of the touch-screen human-computer interaction method, the relevant technical solutions for the physical combat and / or cold weapon combat control of virtual characters in touch-screen terminals may have the following technical problems: when the player controls the virtual character to change attack moves or switch between offense and defense, the operation is not consistent and it is easy to make accidental touches.
[0005] The present disclosure provides a virtual character control method, device, electronic device and computer-readable storage medium to at least partially solve the deficiencies in related technical solutions.
[0006] In a first aspect, one embodiment of the present disclosure provides a virtual character control method, the method comprising: displaying a first attack control on a graphical user interface; responding to a first touch operation applied to the first attack control, if the first touch operation is a click operation, controlling the virtual character to perform a first attack action corresponding to the first attack control; if the first touch operation is a sliding operation, determining a first target action from a first action set according to the sliding operation, and controlling the virtual character to perform the first target action.
[0007] In a second aspect, an embodiment of the present disclosure further provides a virtual character control device, comprising: a control display module, for displaying a first attack control on a graphical user interface; a character control module, for responding to a first touch operation applied to the first attack control, and if the first touch operation is a click operation, controlling the virtual character to perform a first attack action corresponding to the first attack control; if the first touch operation is a sliding operation, determining a first target action from a first action set according to the sliding operation, and controlling the virtual character to perform the first target action.
[0008] In a third aspect, one of the embodiments of the present disclosure further provides an electronic device, including a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the above-mentioned virtual character control method.
[0009] In a fourth aspect, one of the embodiments of the present disclosure further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned virtual character control method.
[0010] One embodiment of the present disclosure provides a virtual character control method, wherein a user (player) can control a virtual character to perform a first attack action by touching a first attack control in a graphical user interface; the user can also determine a first target action from a first action set by touching the first attack control in the graphical user interface, and control the virtual character to perform the first target action, that is, the first attack control can not only control the virtual character to perform the first attack action, but also control the virtual character to perform the first target action. Specifically, if the first touch operation acting on the first attack control is a click operation, the virtual character is controlled to perform the first attack action. If the first touch operation is a slide operation, the first target action is determined from the first action set according to the slide operation, and the virtual character is controlled to perform the first target action. The first target action can be the above-mentioned first attack action or other actions. In this way, if the user needs to control the virtual character to perform the first attack action, it can be done by clicking the first attack control originally displayed in the graphical user interface. If the user needs to control the virtual character to perform jumping actions, defensive actions, and other actions, in addition to being implemented by touching the jumping control and defensive control originally displayed in the graphical user interface, it can also be implemented by sliding the first attack control. The method of determining the first target action from the first action set according to the sliding operation enables the user to more quickly and coherently realize the continuation of the first attack action and the first target action. When it is necessary to control the virtual character to perform an action in the first action set, the first target action can be accurately determined from the first action set according to the sliding operation by only acting on the first attack control, without the user having to lift his finger and click other controls of the graphical user interface. During the entire process from the first attack action to the first target action of the virtual character, the user does not need to find and locate another control (controls corresponding to actions such as defensive actions and jumping actions) in the interface. The sliding operation on the first attack control can easily determine the first target action from the first action set, and then trigger the virtual character to perform the first target action, thereby realizing the rapid control of the virtual character, such as rapid control of attack moves or attack and defense conversion. In this operation process, the user can realize control switching without lifting his finger or shifting his sight. The user can quickly respond in the interaction, the operation is more convenient, and the misoperation problem caused by more interface controls is effectively alleviated. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0012] Figure 1 A flowchart of a virtual character control method provided by one embodiment of the present disclosure;
[0013] Figure 2 A flowchart of another virtual character control method provided by one embodiment of the present disclosure;
[0014] Figure 3 A schematic diagram of a graphical user interface provided by one embodiment of the present disclosure;
[0015] Figure 4 A schematic diagram of a graphical user interface corresponding to a close-field combat scenario provided by one embodiment of the present disclosure;
[0016] Figure 5 A schematic diagram of a graphical user interface corresponding to another near-field combat scenario provided by one embodiment of the present disclosure;
[0017] Figure 6 A schematic diagram of another graphical user interface provided for one embodiment of the present disclosure;
[0018] Figure 7 A schematic diagram of another graphical user interface provided for one embodiment of the present disclosure;
[0019] Figure 8 A schematic diagram of an attack scenario provided by one of the embodiments of the present disclosure;
[0020] Fig. 9 A schematic diagram of another graphical user interface provided for one embodiment of the present disclosure;
[0021] Fig.10 A schematic diagram of another graphical user interface provided for one embodiment of the present disclosure;
[0022] Fig.11 A flowchart of another virtual character control method provided by one embodiment of the present disclosure;
[0023] Fig.12 A flowchart of another virtual character control method provided by one embodiment of the present disclosure;
[0024] Fig.13A schematic diagram of an action subset and a role state definition method provided by one embodiment of the present disclosure;
[0025] Fig.14 A schematic diagram of another action subset and role state definition method provided in one embodiment of the present disclosure;
[0026] Fig.15 A schematic diagram of another action subset and role state definition method provided in one embodiment of the present disclosure;
[0027] Fig.16 A flowchart of another virtual character control method provided by one embodiment of the present disclosure;
[0028] Fig.17 A schematic diagram of a custom editing interface for an action set provided in one embodiment of the present disclosure;
[0029] Fig.18 A schematic diagram of an editing interface for the correspondence between virtual weapons and action sets provided in one embodiment of the present disclosure;
[0030] Fig.19 A schematic diagram of the structure of a virtual character control device provided by one embodiment of the present disclosure;
[0031] Fig. 20 A schematic diagram of the structure of another virtual character control device provided by one embodiment of the present disclosure;
[0032] Fig.21 A schematic diagram of the structure of an electronic device provided in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] The technical solution of the present disclosure will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure.
[0034] First, the nouns involved in this disclosure are introduced:
[0035] (1) Virtual scene (game scene)
[0036] A virtual scene is a virtual scene displayed (or provided) when an application is running on a terminal or server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene. The virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts and cities. Among them, the virtual scene is a scene with complete game logic of virtual objects such as user control. For example, for sandbox 3D shooting games, the virtual scene is a 3D game world for players to control virtual objects to fight. Example virtual scenes may include: at least one element of mountains, plains, rivers, lakes, oceans, deserts, skies, plants, buildings, and vehicles; for example, for 2D or 2.5D card games, the virtual scene is a scene for displaying released cards or displaying virtual objects corresponding to cards. Example virtual scenes may include: an arena, a decisive battlefield, or other "field" elements or other elements that can display the status of card battles; for 2D or 2.5D multiplayer online tactical competitive games, the virtual scene is a 2D or 2.5D terrain scene for virtual objects to fight. Example virtual scenes may include: canyon-style mountains, lines, rivers, classrooms, tables and chairs, podiums and other elements.
[0037] (2) Game interface
[0038] The game interface refers to the interface corresponding to the application provided or displayed through a graphical user interface, which includes a UI interface and a game screen for players to interact. In an optional embodiment, the UI interface may include game controls (such as skill controls, movement controls, function controls, etc.), indicators (such as direction indicators, character indicators, etc.), information display areas (such as the number of kills, match time, etc.), or game setting controls (such as system settings, stores, gold coins, etc.). In an optional embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, and the game screen may include virtual objects such as game characters, NPC characters, AI characters, etc. that execute game logic in the virtual scene.
[0039] (3) Virtual Objects
[0040] A virtual object refers to a dynamic object that can be controlled in a virtual scene. Optionally, the dynamic object can be a virtual character, a virtual animal, a cartoon character, etc. The virtual object is a character controlled by a player through an input device, or an artificial intelligence (AI) set in a virtual environment battle through training, or a non-player character (NPC) set in a virtual scene battle. Optionally, the virtual object is a virtual character competing in a virtual scene. Optionally, the number of virtual objects in the virtual scene battle is preset, or dynamically determined according to the number of clients joining the battle, and the embodiments of the present disclosure are not limited to this. In a possible implementation, the user can control the virtual object to move in the virtual scene, for example, control the virtual object to run, jump, crawl, etc., and can also control the virtual object to use the skills, virtual props, etc. provided by the application to fight with other virtual objects.
[0041] (4) Player Character
[0042] A player character is a virtual object that can be controlled by the player and moves in the game environment. It is also called a player virtual character or a player virtual object. In some electronic games, it can also be called a shikigami character or a hero character. A player character can be at least one of different forms such as a virtual person, a virtual animal, a virtual vehicle, etc.
[0043] The applicant of the present disclosure has found in the long-term research and development process that, due to the limitation of the human-computer interaction mode of touch control, the related technical solutions of the physical combat and / or cold weapon combat control of virtual characters in touch terminals may have the following technical problems: when the player controls the virtual character to change the attacking moves or the attack and defense conversion, the operation is not coherent enough and it is easy to operate by mistake. The present disclosure provides a virtual character control method, device, electronic device and computer-readable storage medium to at least partially solve the deficiencies existing in the related technical solutions.
[0044] The virtual character control method disclosed in the present invention receives control operations for the virtual character through a touch terminal device.
[0045] As a possible implementation, the control logic code of the virtual character can be run on a touch terminal device or a server. The touch terminal device can be a local terminal device. When the virtual character control method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0046] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the virtual character control method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the terminal device for information processing is a cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0047] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0048] In a possible implementation, the embodiment of the present disclosure provides a method for controlling a virtual character, providing a graphical user interface through a touch terminal, wherein the touch terminal may be the local terminal device mentioned above, or may be a client device in the cloud interaction system mentioned above. Figure 1 A virtual character control method according to one embodiment of the present disclosure includes the following steps:
[0049] Step S102: displaying a first attack control on a graphical user interface.
[0050] This embodiment provides a graphical user interface through a touch terminal. Optionally, in addition to the above-mentioned first attack control, the graphical user interface also includes at least a part of the game scene and a virtual character (specifically a player virtual character here).
[0051] Step S104, in response to the first touch operation applied to the first attack control, if the first touch operation is a click operation, the virtual character is controlled to perform the first attack action corresponding to the first attack control; if the first touch operation is a sliding operation, the first target action is determined from the first action set according to the sliding operation, and the virtual character is controlled to perform the first target action.
[0052] The above method displays a first attack control in a touch graphical user interface, and the user controls the virtual character to perform the first attack action by touching the control. The user can also determine the first target action from the first action set by touching the first attack control, and control the virtual character to perform the first target action; that is, the first attack control can not only control the virtual character to perform the first attack action, but also control the virtual character to perform the first target action. Specifically, if the first touch operation acting on the first attack control is a click operation, the virtual character is controlled to perform the first attack action. If the first touch operation is a slide operation, the first target action is determined from the first action set according to the slide operation, and the virtual character is controlled to perform the first target action. The first target action can be the above-mentioned first attack action or other actions. If the user needs to control the virtual character to perform the first attack action, it can be done by clicking the first attack control originally displayed in the graphical user interface. If the user needs to control the virtual character to perform jumping actions, defensive actions, etc., in addition to being realized by touching the jumping control, defensive control, etc. originally displayed in the graphical user interface, it can also be realized by sliding the first attack control. The above method of determining the first target action from the first action set according to the sliding operation enables the user to more quickly and coherently realize the continuation of the first attack action and the first target action. When it is necessary to control the virtual character to perform an action in the first action set, the first target action can be accurately determined from the first action set according to the sliding operation by only acting on the first attack control, without the user having to lift his finger and click other controls of the graphical user interface. During the entire process from the first attack action to the first target action of the virtual character, the user does not need to find and locate another control (controls corresponding to actions such as defensive actions and jumping actions) in the interface. By sliding on the first attack control, the first target action can be easily determined from the first action set, and then the virtual character can be controlled to perform the first target action, realizing the rapid control of the virtual character, such as rapid control of attack moves or attack and defense conversion. In this operation process, the user can realize control switching without lifting his finger or shifting his sight. The user can react quickly in the interaction, the operation is more convenient, and the problem of misoperation caused by more interface controls is effectively alleviated. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0053] The first target action here can be a non-attack action, such as: jumping action, sword swinging action, dodging action, sliding action, crawling action or crouching action, etc.
[0054] The correspondence between the actions in the above-mentioned first action set and the sliding operation can be preset, and different sliding operation modes can correspond to different actions. For example, the actions in the first action set correspond to the sliding direction of the sliding operation, and the sliding directions of the sliding operations acting on the first attack control are different, so the first target actions determined from the first action set according to the sliding operation are different. Based on this, the above-mentioned first action set contains direction information and action information corresponding to the direction information; accordingly, the above-mentioned determination of the first target action from the first action set according to the sliding operation includes: determining the action in the first action set that matches the direction of the sliding operation as the first target action.
[0055] The direction information included in the first action set may be at least two directions of the four directions of up, down, left and right, or at least two directions of the upper left, top, top right, right, bottom right, bottom left and left, and each direction corresponds to an action. For example, the first action set includes a jumping action and a crouching action, wherein the direction information of the jumping action is the upper direction, and the direction information of the crouching action is the lower direction, then the upward sliding operation can be corresponded to the jumping action, and the downward sliding operation can be corresponded to the crouching action. When the first touch operation acting on the first attack control is an upward sliding operation, the first target action is determined from the first action set to be a jumping action, and the virtual character is controlled to perform the jumping action; similarly, when the first touch operation acting on the first attack control is a downward sliding operation, the first target action is determined from the first action set to be a crouching action, and the virtual character is controlled to perform the crouching action.
[0056] The above method can match the actions in the first action set according to the direction of the sliding operation acting on the first attack control by making the action information in the first action set correspond to the direction information. For example, the action corresponding to the same action direction as the sliding operation is used as the first target action, so that the action direction of the first target action is consistent with the direction of the sliding operation, which is more in line with the user's operating habits and reduces the memory cost of the correspondence between the sliding operation and the target action.
[0057] The above-mentioned determining the first target action from the first action set according to the sliding operation includes: determining the first target action from the first action set according to the sliding operation and the state of the virtual character. Among them, the state of the virtual character mainly includes information on the movement of the virtual character, for example, the state of the virtual character may include the position state and / or posture of the virtual character. The position state may include a ground state and a floating state, etc. Optionally, the floating state refers to the state of the virtual character in the virtual scene without support, for example, the virtual character jumps in the air; the ground state refers to the state of the virtual character in the virtual scene with support, for example, the state of the virtual character stepping on the ground (that is, the ground supports the virtual character). Postures may include: upright state, squatting state, lying state, jumping state, etc. In this way, the correlation between the state of the virtual character and the next action that the virtual character is suitable to perform is taken into account, further simplifying the user operation and memory cost.
[0058] Optionally, the first action set includes at least two action subsets, each action subset corresponding to a state of the virtual character. Based on this, the first target action is determined from the first action set according to the sliding operation and the state of the virtual character, including: determining the target action subset from the first action set according to the state of the virtual character; determining the first target action from the target action subset according to the sliding operation. By dividing the actions in the first action set into multiple action subsets according to the state of the virtual character, it is possible to make a more detailed division when controlling the virtual character to perform the action, so that the control of the virtual character is more accurate.
[0059] Taking the above virtual character's state including the ground state and the floating state as an example, the first action set corresponding to the first attack control includes two action subsets, namely the first action subset corresponding to the ground state and the second action subset corresponding to the floating state, wherein the first action subset may include the sword shaking action, the dodge action, the rising dragon attack action, etc.; the second action subset may include the sword shaking action, the downward slash attack action and the dodge action, etc. The above virtual character's state may be set based on the identity of the virtual character or actual needs, and the embodiments of the present disclosure do not limit this.
[0060] Optionally, the first action set is a user-defined set. The user can customize the first action set according to usage habits, virtual character identity and personal preferences. During the definition process, the corresponding relationship between the actions in the first action set and the direction of the sliding operation can be included, and the corresponding relationship between the action sub-set in the first action set and the virtual character state can also be included.
[0061] In addition to the first attack control, the graphical user interface may include other controls, which may be resident controls or non-resident controls. Based on this, the method further includes: displaying the first control on the graphical user interface; and controlling the virtual character to perform an action corresponding to the first control in response to a second touch operation on the first control.
[0062] The second touch operation here can be a click operation, a double-click operation, a hard press operation or a long press operation, etc., which can be flexibly set according to the needs of game design, and the embodiments of the present disclosure are not limited to this.
[0063] When the touch terminal receives the second touch operation acting on the first control, the virtual character is controlled to perform the action corresponding to the first control. Here, the action corresponding to the first control is an action pre-configured for the control, which may be a posture control action or a defensive action, etc. The direction of the action is usually the direction in which the virtual character is currently facing. The direction of the virtual character can be controlled by moving the control (such as moving the joystick).
[0064] For example, if the first control is a dodge control, the action corresponding to the first control is a dodge action, and the direction of the dodge action is the direction the virtual character is currently facing. As a possible implementation, when the first control is a dodge control, the dodge control can also be a directional control, that is, the dodge control is configured with a default dodge direction, in which case the direction of the virtual character's dodge action is the default dodge direction; or, as another possible implementation, the type of the second touch operation acting on the first control (i.e., the dodge control) determines the dodge direction of the dodge action, such as, if the second touch operation is a left sliding operation, the virtual character dodges to the left; if the second touch operation is a right sliding operation, the virtual character dodges to the right; if the second touch operation is a click operation, the virtual character dodges in the direction it is currently facing.
[0065] As a possible implementation manner, the first action set includes actions corresponding to the first control.
[0066] Considering the combat scenario, the first attack control is touch-operated to control the virtual character to perform attack actions. During the attack process, sometimes it is necessary to dodge or defend against the enemy's attack, and sometimes it is necessary to change different attack methods. Therefore, it is also necessary to switch controls to achieve the change of attack methods, as well as to attack and dodge or attack and defend at the same time. In order to avoid excessive movement of the player's line of sight when switching between controls, in this embodiment, even if the graphical user interface displays the first control, because the first action set includes the action corresponding to the first control, the user can also determine the action corresponding to the first control from the first action set as the first target action through a sliding operation on the first attack control, and then control the virtual character to perform the action corresponding to the first control without switching from the first attack control to the first control. In this way, the player can coherently and accurately control the virtual character to change attack moves or attack and defense conversion. For example, after the player controls the virtual character to perform an attack action through the first attack control, according to the changes in the surrounding combat situation, the player wants to control the virtual character to perform a defensive action. The player can determine the defensive action from the first action set corresponding to the first attack control by sliding the first attack control, thereby quickly achieving the transition from attack to defense. Compared with the related technical solutions, the player does not need to lift the touch finger from the first attack control to move to the defensive control of the device in the graphical user interface for clicking, which improves the continuity of the transition from attack to defense, reduces the difficulty of users finding defensive controls in the graphical user interface during combat, and reduces the possibility of misoperation.
[0067] Optionally, the method includes: if the first touch operation is a long press operation, displaying the first control set, and determining the first target control from the controls included in the first control set according to a sliding operation continuous with the long press operation, and controlling the virtual character to perform an action corresponding to the first target control (i.e., the first target action mentioned above), wherein the controls included in the first control set correspond to the actions included in the first action set, i.e., the first action set is a set of actions corresponding to the controls in the first control set. In this way, the user can more intuitively and clearly determine the first target action in the first action set, reduce the memory cost, and improve the accuracy of the operation.
[0068] A long press operation may be an operation in which the touch duration between the touch medium (eg, finger) and the control is greater than a time threshold, and the time threshold may be 0.2 seconds, 0.3 seconds, 0.5 seconds, etc., set by the game developer or user.
[0069] The above-mentioned sliding operation continuous with the long press operation means that the first touch operation can include two stages, the first stage is the long press operation, and the second stage is the sliding operation. During the two stages of operation, the finger is not lifted (does not leave the touch screen), so that the long press operation and the sliding operation are continuous in operation.
[0070] The above-mentioned display method of the first control set allows the user to more intuitively and clearly determine the position of each control in the control set. When it is necessary to operate a certain control in the first control set, a sliding operation is required to accurately determine the first target control from the first control set according to the sliding operation, without the user having to lift his finger and click on other controls in the graphical interface. During the whole process, the user does not need to find and locate another control (controls corresponding to defensive actions, jumping actions, etc.) in the interface. The first touch operation (long press operation + sliding operation) on the first attack control can easily determine the first target control from the first control set, and then trigger the virtual character to execute the first target action corresponding to the first target control, thereby realizing rapid control of the virtual character, such as rapid control of attack moves or attack and defense conversion.
[0071] See also Figure 2 The embodiment of the present disclosure shown provides another virtual character control method, which includes the following steps:
[0072] Step S202: displaying a first attack control on a graphical user interface.
[0073] Step S204, in response to a first touch operation on the first attack control, if the first touch operation is a long press operation, displaying a first control set.
[0074] Step S206: determining a first target control from the controls included in the first control set according to a sliding operation continuous with the long press operation, and controlling the virtual character to perform an action corresponding to the first target control.
[0075] Among them, the controls included in the above-mentioned first control set correspond to the actions included in the above-mentioned first action set.
[0076] Figure 2 The method shown is similar to the above Figure 1 The method shown is similar, if the first touch operation is a click operation, the virtual character is controlled to perform the first attack action corresponding to the first attack control. If the first touch operation is a slide operation, the first target action is determined from the first action set according to the slide operation, and the virtual character is controlled to perform the first target action.
[0077] The above method provides an intuitive reference for users to operate controls by long pressing the first control set displayed by the first attack control. Users can more intuitively and clearly determine the position of each control in the control set. When a control in the first control set needs to be operated, the first target control can be accurately determined from the first control set through a sliding operation, without the need for the user to lift his finger and click on other controls in the graphical interface. During the whole process, the user does not need to find and locate another control (controls corresponding to defensive actions, jumping actions, etc.) in the interface, and can easily determine the first target control from the first control set, thereby triggering the virtual character to execute the action corresponding to the first target control, thereby achieving rapid control of the virtual character and continuity of operation, such as rapid control of attack moves or attack and defense conversion.
[0078] See also Figure 3 A schematic diagram of a graphical user interface in an optional embodiment is shown, which includes a virtual character A (i.e., the above-mentioned virtual character, which is the player's virtual character) and a virtual character B fighting with virtual character A. A first control 11 and a second control 12 (i.e., a first attack control) are displayed in the lower right corner of the graphical user interface. The player long presses the second control 12 with his finger, and a first control set is displayed around the second control 12. The first control set includes a control 13 (i.e., a third control, which has the same action as the above-mentioned first control). If the player then long presses the operating finger and slides from the second control 12 to the control 13, the touch terminal controls the virtual character to perform the action corresponding to the first control.
[0079] As a possible implementation, the first control set may also include other controls, such as Figure 3 Control 14, control 15 and control 16 in. These other controls are used to trigger the virtual character to perform other attack actions or trigger the virtual character to perform dodge or defense actions.
[0080] In the above embodiment, regardless of whether the first set of controls is displayed, during the operation, the user does not need to lift a finger or shift the line of sight to switch the control, so the user can quickly respond in the interaction, the operation is more convenient, and the problem of misoperation caused by too many interface controls is effectively alleviated. At the same time, this method of quickly controlling the virtual character also improves the consistency of the user's operation.
[0081] See also Figure 4The graphical user interface schematic diagram corresponding to the near-field combat scene shown has a knife vibration control 17 (equivalent to the above-mentioned first control) and a horizontal stroke control 18 (equivalent to the above-mentioned second control) displayed on the lower right side of the graphical user interface, as well as a vertical stroke control 19, a dodge control 20 and a jump control 21. Assuming that both the player's virtual character A and the enemy's virtual character B are holding long swords, and the player continuously clicks the horizontal stroke control, the player's virtual character A will horizontally strike the enemy's virtual character B multiple times in a row, or perform corresponding combo attacks according to the number of times and time intervals of clicking the horizontal stroke control 18. At this time, if the player finds that the enemy is about to use a big move (i.e., an attack behavior with greater damage), and the player wants to control the player's virtual character A to vibrate the sword (a defensive action of the character, usually used when the enemy character is about to release a big move attack, the player operates the sword vibration control to make the character release the sword vibration action, so as to defend against the enemy's big move and shake off the enemy's weapon), it is necessary to move the finger from the currently clicked horizontal stroke control 18 to the permanent sword vibration control 17 in the interface to click. In this process, the finger needs to "lift - move - and then click the sword vibration control", and because there is a certain interval between the horizontal stroke control 18 and the sword vibration control 17, this process is time-consuming, not fast and continuous, and it is easy to click the wrong button, resulting in difficulty in quickly and accurately clicking the sword vibration control.
[0082] Based on the above problems of not being fast enough, not being coherent enough, and being easy to click wrong, this embodiment provides a corresponding virtual character control method. Figure 4 Corresponding example, if the player continuously clicks on the horizontal stroke control 18, the player's virtual character A will continuously horizontally strike the enemy virtual character multiple times or perform corresponding continuous attacks according to the number of times and time intervals of clicking the horizontal stroke control 18. The horizontal stroke control 18 in this embodiment corresponds to a first action set, which may include a knife shaking action, and the knife shaking action corresponds to the right sliding direction. At this time, if the player finds that the enemy is about to make a big move, and the player wants to control the player's virtual character A to shake the knife, the finger can be slid from the horizontal stroke control 18 to the right to control the virtual character A to switch from the attack action to the knife shaking action. In the process of the virtual character quickly switching from the attack action to the knife shaking action, the conversion is achieved by sliding the finger, and the operation is simple, fast and coherent, reducing misoperation.
[0083] Alternatively, based on the above problems of not being fast enough, not being coherent enough, and being easy to click wrong, this embodiment provides Figure 5 Another corresponding graphical user interface schematic diagram shown in FIG. Figure 4Corresponding example, when the horizontal stroke control 18 is triggered by long pressing (illustratively, the player may be ready to use a charge attack), the first control set including the blade vibration control 17a will be displayed on the periphery of the horizontal stroke control 18 of this embodiment, and the blade vibration control 17a in the first control set is visually identical to the blade vibration control 17 resident in the graphical user interface. At this time, if the player finds that the enemy is about to use a big move, and the player wants to control the player's virtual character A to vibrate the blade, the finger can be slid from the horizontal stroke control 18 to the blade vibration control 17a in the first control set, or the finger can be moved from the horizontal stroke control 18 to the direction of the blade vibration control 17a in the first control set. In this process, the finger can perform long pressing and sliding operations on the same control, namely the horizontal stroke control 18, which is relatively simple, fast and coherent, and thus it is not easy to make a mistake, and the player's virtual character can quickly switch from an attack action to a defensive action of vibrating the blade.
[0084] As a possible implementation, the action corresponding to the first control is a non-offensive action. The first control set that triggers the display of the second control (the control corresponding to the first attack action) includes a third control, and the action corresponding to the third control can also be a non-offensive action. This method of including controls corresponding to non-offensive actions in the control set corresponding to the attack control can enable the virtual character to quickly switch from an attack action to a non-offensive action, which can better meet the needs of actual applications.
[0085] The actions corresponding to the above-mentioned first control are defensive actions, dodging actions, jumping actions, squatting actions, sliding actions or crawling actions, etc. These actions are usually frequently used actions in melee scenes. Using them as the actions corresponding to the first control can better improve the convenience of operation.
[0086] Defensive actions, evasive actions, jumping actions, squatting actions, sliding actions or crawling actions are common virtual actions in games. Defensive actions are actions in which the player character resists attacks to reduce the damage to itself. Optionally, the sword-shaking action is a defensive action that can cause the attacker's weapon to fall. Evading actions are fast movements of the player character over a short distance (usually predetermined by the game system or calculated by the game system) to avoid enemy attacks. Usually, it is a fast movement, with a speed greater than the default movement speed of the virtual character. The default situation includes the movement of the virtual character without the help of skills, props, vehicles, etc.; usually the distance is short, for example, 1 meter, 2 meters, 3 meters, 5 meters, 10 meters, etc. in the virtual environment. The short distance here is relative to other long-distance movements. For example, in some games, the virtual character can achieve long-distance movement in the virtual environment through props such as ziplines; the virtual character can enter a fast running state to move long distances in the virtual environment, such as the "continuous running" function commonly seen in some games. Jumping actions are actions in which the player character jumps upward. Crouching is the action of the player character crouching down. Sliding is the action of the player character lowering the center of gravity (for example, crouching or leaning the body) and sprinting. Crawl is the action of the player character crouching down and moving.
[0087] Optionally, the method further includes: canceling the display of the first control set, so that when the controls in the first control set do not need to be operated, the first control set is no longer displayed, thereby reducing unnecessary obstruction of the interface by the first control set.
[0088] As a possible implementation, the above-mentioned cancellation of displaying the first control set may include: in response to the end of the first touch operation, canceling the display of the first control set. Optionally, if the first touch operation is a click operation, the first control set may not be displayed. If the first touch operation is an operation of long pressing and then sliding, the display of the first control set is canceled when the finger of the sliding operation leaves the touch terminal screen. This method of canceling the display of the first control set at the end of the first touch operation is simple and reasonable. When the first touch operation ends, it means that there is no need to operate the controls in the first control set anymore. Therefore, timely canceling the display of the first control set can reduce the time that the first control set occupies the graphical user interface and optimize the graphical user interface.
[0089] In other examples, the above-mentioned step of canceling the display of the first control set may also include one of the following: (1) canceling the display of the first control set in response to the determination of the first target control; (2) canceling the display of the first control set in response to the duration of the first touch operation reaching a set time threshold; (3) canceling the display of the first control set in response to the virtual character performing an action corresponding to the first target control. The specific method of canceling the display of the first control set can be selected according to actual needs, and this embodiment does not limit this.
[0090] Optionally, the first action set includes a first sub-action set and a second sub-action set, the first sub-action set is an action set corresponding to the resident controls in the graphical user interface, and the second sub-action set is an action set corresponding to the non-resident controls in the graphical user interface. During the game, the target action set can be determined from the first action set according to the state of the virtual character, and then the target action can be determined from the target action set according to the sliding operation. If the above-mentioned graphical user interface displays the first control set, as a possible implementation, the first control set includes a first sub-control set and a second sub-control set, the controls contained in the first sub-control set are a subset of the resident controls, and the controls contained in the second sub-control set are a subset of the non-resident controls. The above method takes into account that the combat scenes in the game usually have certain tendencies, some games are more inclined to near-field combat scenes, and some games are more inclined to long-range combat scenes. Therefore, according to the combat scenes preferred by the specific game, some controls are permanently displayed in the graphical user interface.
[0091] The first control and the second control (i.e., the first attack control) displayed in the graphical user interface can both be resident controls. In this way, the second control as an attack control is resident and displayed in the graphical user interface, and the first control as a non-attack control can also be resident and displayed in the graphical user interface, and the control set corresponding to the second control (first attack control) can include a third control, and the third control is used to control the virtual character to perform the action corresponding to the first control. As a possible implementation, the first control set also includes a fourth control, the first control set includes a first sub-control set and a second sub-control set, the first sub-control set includes a third control, the second sub-control set includes a fourth control, the controls included in the first sub-control set are a subset of resident controls, and the controls included in the second sub-control set are a subset of non-resident controls. In this embodiment, the first control set is divided into a first sub-control set and a second sub-control set according to whether the control is a resident control, so that the non-resident controls do not need to be continuously displayed in the graphical user interface, and can be displayed only through the display of the first control set, which alleviates the problem of a large number of controls in the graphical user interface.
[0092] See also Figure 6 Another graphical user interface diagram is shown in the above Figure 5On the basis of, in the first control set corresponding to the horizontal stroke control 18, in addition to the above-mentioned knife vibration control 17a, it also includes: dodge control 20a, jump horizontal stroke combination control 22 and crouch horizontal stroke combination 23 control, wherein the knife vibration control 17a and the dodge control 20a are controls in the first sub-control set, and the jump horizontal stroke combination control 22 and the crouch horizontal stroke combination control 23 are controls in the second sub-control set. Among them, the jump horizontal stroke combination 22 control is used to trigger the above-mentioned virtual character to perform jumping actions and horizontal stroke actions in sequence, and the crouch horizontal stroke combination 23 control is used to trigger the above-mentioned virtual character to perform crouching actions and horizontal stroke actions in sequence.
[0093] Figure 6 The dodge control 20a in the first control set is located on the left side of the horizontal stroke control 18, the swing knife control 17a is located on the right side of the horizontal stroke control 18, the jump horizontal stroke combination control 22 is located on the upper side of the horizontal stroke control 18, and the crouch horizontal stroke combination control 23 is located on the lower side of the horizontal stroke control 18. This control layout method can make it easier for players to distinguish the various controls in the first control set. After the player clicks the horizontal stroke control 18 once or multiple times to trigger the virtual character to perform a horizontal stroke action, the player can continue to touch the horizontal stroke control 18. The touch can be a finger pressing on the horizontal stroke control 18 without releasing the finger, and the outer periphery of the horizontal stroke control 18 is displayed as follows. Figure 5 The first control set shown above, according to the player Figure 6 The different operations of the first control set shown are as follows:
[0094] (1) The finger pressed on the horizontal stroke control 18 slides to the right from the position of the horizontal stroke control 18, that is, the finger slides toward the knife vibration control 17a. After sliding to a certain extent, for example: the sliding distance is greater than the set distance threshold, the virtual character is controlled to perform the knife vibration action corresponding to the knife vibration control 17a. The player does not need to find the knife vibration control 17 in the resident controls of the graphical user interface, nor does he need to change the falling position of the finger. The virtual character can switch from the horizontal stroke action corresponding to the horizontal stroke control 18 to the knife vibration action corresponding to the knife vibration control 17a, which is smoother and more convenient in operation, thereby reducing the problem of accidental touch. In addition, if the virtual character is in a horizontal stroke charging state, the charging state of the virtual character will be directly interrupted by the knife vibration action through the above-mentioned sliding operation in the right direction, so that the virtual character can quickly switch from the attack state to the defense state.
[0095] (2) The finger pressed on the horizontal stroke control 18 slides to the left from the position of the horizontal stroke control 18, that is, the finger slides toward the dodge control 20a. After sliding to a certain extent, for example, sliding to the area where the dodge control 20a is located, the virtual character is controlled to perform the dodge action corresponding to the dodge control 20a. The player does not need to find the dodge control 20 in the controls resident in the graphical user interface, nor does the finger drop position need to be changed. The virtual character can switch from the horizontal stroke action corresponding to the horizontal stroke control 18 to the dodge action corresponding to the dodge control 20a. Similar to the above method, this method of switching between the corresponding actions of the two controls with one slide is smoother and more convenient in operation. At the same time, if the virtual character is in the horizontal stroke process, the horizontal stroke action of the virtual character can be directly interrupted by the dodge action through the above-mentioned leftward sliding operation, so as to achieve quick dodge and reduce the degree of damage to the virtual character.
[0096] (3) The finger pressed on the horizontal stroke control 18 slides upward from the position of the horizontal stroke control 18, that is, the finger slides toward the jump horizontal stroke combination control 22. After sliding to a certain extent, for example, sliding to the area where the jump horizontal stroke combination control 22 is located and releasing the finger, the virtual character is controlled to perform the jump plus horizontal stroke combination action corresponding to the jump horizontal stroke combination control 22. The sliding direction of the sliding operation can be determined through the displayed first control set, and the finger can be lifted when releasing the jump plus horizontal stroke combination action. There is no need to lift the finger to click the jump horizontal stroke combination control 22 in the middle, so that the virtual character can switch from the horizontal stroke action corresponding to the horizontal stroke control 18 to the jump horizontal stroke action corresponding to the jump horizontal stroke control 22, which is not only smoother and more convenient in operation. Moreover, based on the first horizontal stroke of the virtual character, through the above-mentioned upward sliding operation, the attack method can be adjusted according to the posture of the enemy character. For example, if the enemy character jumps up, the virtual character can hit the enemy character again while jumping up. This continuous attack method with different postures can quickly change the attack moves. At the same time, the jump horizontal stroke combination control 22 located above the horizontal stroke control 18 also takes into account the upward direction of the jump in the setting position of the control, which is more in line with operating habits.
[0097] (4) The finger pressed on the horizontal stroke control 18 slides downward from the position where the horizontal stroke control 18 is located, that is, the finger slides toward the crouching horizontal stroke combination control 23. After sliding to a certain extent, for example, sliding to the area where the crouching horizontal stroke combination control 23 is located, the virtual character is controlled to perform the crouching plus horizontal stroke combination action corresponding to the crouching horizontal stroke combination control 23. The sliding direction of the sliding operation can be determined by the displayed first control set, and the virtual character can be controlled to perform the crouching plus horizontal stroke combination action corresponding to the crouching horizontal stroke combination control 23 without lifting the finger to click the crouching horizontal stroke combination control 23 during the sliding operation. The horizontal strike action is switched to the crouching horizontal strike action corresponding to the crouching horizontal strike combination control 23, which is not only smoother and more convenient to operate, but also can adjust its own attack method according to the attack of the enemy character through the above-mentioned downward sliding operation based on the first horizontal strike of the virtual character. For example, when the enemy character attacks with a horizontal strike, the virtual character can strike the enemy character again while crouching, which can not only avoid the horizontal strike attack of the enemy character, but also cause damage to the enemy character with the second horizontal strike, thereby increasing the chance of defeating the enemy character and being able to quickly change attack moves.
[0098] The settings of the jumping horizontal strike combination control and the crouching horizontal strike combination control in the above-mentioned first control set have an inherent logical association with the horizontal strike control. The horizontal strike control mainly serves the purpose of horizontally attacking the enemy character. Therefore, on this basis, the attack method configured in the first control set is horizontal strike attack. This setting method mainly takes into account that when the player clicks the horizontal strike control, it is likely to apply the horizontal strike attack skill. Compared with clicking the horizontal strike control multiple times to achieve a combo, the setting method of the jumping horizontal strike combination control and the crouching horizontal strike combination control can be based on the horizontal strike, plus the adjustment of the character's posture, which is faster and more convenient in operation, and richer and more powerful in function. Moreover, this method of triggering the combination action does not require two separate controls to be implemented. It only needs to trigger the jumping horizontal strike combination control or the crouching horizontal strike combination control once to trigger the combination action. The triggering efficiency is higher and the operation is simpler.
[0099] Optionally, the controls in the first control set can also be adjusted according to the user's attack habits, for example, the jump horizontal strike combination control and the crouch horizontal strike combination control in the first control set can also be replaced with a jump vertical strike combination control and a crouch vertical strike combination control. Alternatively, only one of the jump horizontal strike combination control and the crouch horizontal strike combination control is replaced with a control with a vertical strike function, which can be a combination control or a separate vertical strike control.
[0100] See also Figure 7The schematic diagram of another graphical user interface shown in the figure, in this embodiment, the second control is a vertical hit control 19 as an example for explanation, the first control set corresponding to the vertical hit control 19 includes a knife vibration control 17a, a dodge control 20a, a jump vertical hit combination control 24 and a crouch vertical hit combination control 25, wherein the knife vibration control 17a and the dodge control 20a are controls in the first sub-control set, and the jump vertical hit combination control 24 and the crouch vertical hit combination control 25 are controls in the second sub-control set. Among them, the jump vertical hit combination control 24 is used to trigger the above-mentioned virtual character to perform jumping actions and vertical hit actions in sequence, and the crouch vertical hit combination control 25 is used to trigger the above-mentioned virtual character to perform crouching actions and vertical hit actions in sequence.
[0101] In order to make it easier for players to distinguish the various controls in the first control set, Figure 7 The dodge control 20a in the first control set is located on the left side of the vertical click control 19, the swing knife control 17a is located on the right side of the vertical click control 19, the jump vertical click combination control 24 is located on the upper side of the vertical click control 19, and the crouch vertical click combination control 25 is located on the lower side of the vertical click control 19. After the player clicks the vertical click control 19 once or multiple times to trigger the virtual character to perform a vertical click action, the player can continue to touch the vertical click control 19. The touch can be a finger pressing on the vertical click control 19 without releasing the finger. The vertical click control 19 is displayed as follows: Figure 6 The first control set shown above, according to the player Figure 7 The different operations of the first control set shown are as follows:
[0102] (1) The finger pressed on the vertical click control 19 slides to the right from the position of the vertical click control 19, that is, the finger slides toward the vibration knife control 17a. After sliding to a certain extent, for example, sliding to the area where the vibration knife control 17a is located, the virtual character is immediately controlled to perform the vibration knife action corresponding to the vibration knife control 17a. The player does not need to find the vibration knife control 17 in the controls resident in the graphical user interface, nor does he need to change the falling position of the finger. The virtual character can switch from the vertical click action corresponding to the vertical click control 19 to the vibration knife action corresponding to the vibration knife control 17a. The operation is smoother and more convenient, and the problem of accidental touch is reduced. In addition, if the character is in the vertical click power accumulation state, the virtual character's power accumulation state can also be directly interrupted by the vibration knife action through the above-mentioned sliding operation in the right direction, so that the virtual character can quickly switch from the attack state to the defense state.
[0103] (2) The finger pressed on the vertical click control 19 slides to the left from the position of the vertical click control 19, that is, the finger slides toward the dodge control 20a in the first control set. After sliding to a certain extent, for example, the sliding distance is greater than the preset distance threshold, the virtual character is controlled to perform the dodge action corresponding to the dodge control 20a. The player does not need to find the dodge control 20 in the controls resident in the graphical user interface, nor does the player need to change the falling position of the finger. The virtual character can switch from the vertical click action corresponding to the vertical click control 19 to the dodge action corresponding to the dodge control 20a. Similar to the above method, this method of switching the corresponding actions of the two controls with one slide is smoother and more convenient in operation. In addition, if the virtual character is in the process of vertical clicking, the vertical click action of the virtual character can be directly interrupted by the dodge action through the above-mentioned leftward sliding operation, so as to achieve quick dodge and reduce the degree of damage to the virtual character.
[0104] (3) The finger pressed on the vertical stroke control 19 slides upward from the position of the vertical stroke control 19, that is, the finger slides toward the jump vertical stroke combination control 24 in the first control set. After sliding to a certain extent, for example, sliding to the area where the jump vertical stroke combination control 24 is located and releasing the finger, the virtual character is controlled to perform the jump plus vertical stroke combination action corresponding to the jump vertical stroke combination control 24. The sliding direction can be determined by the displayed first control set. The finger can be lifted when releasing the jump plus vertical stroke combination action. There is no need to lift the finger to click the jump vertical stroke combination control 24 in the middle, so that the virtual character can switch from the vertical stroke action corresponding to the vertical stroke control 19 to the jump vertical stroke action corresponding to the jump vertical stroke combination control 24. Not only is the operation smoother and more convenient. Moreover, based on the first vertical stroke of the virtual character, through the above-mentioned upward sliding operation, the attack method can be adjusted according to the posture of the enemy character. For example, if the enemy character jumps up, the virtual character can vertically strike the enemy character again while jumping up. This continuous attack method with different postures can quickly change the attack moves. At the same time, the jump vertical click combination control 24 located above the vertical click control 19 also takes into account the upward direction of the jump in the setting position of the control, which is more in line with operating habits.
[0105] (4) The finger pressed on the vertical strike control 19 slides downward from the position of the vertical strike control 19, that is, the finger slides toward the crouching vertical strike combination control 25. After sliding to a certain extent, for example, sliding to the area where the crouching vertical strike combination control 25 is located, the virtual character is controlled to perform the combined action of crouching plus vertical strike corresponding to the crouching vertical strike combination control 25. The sliding direction can be determined by the first control set displayed, and the sliding operation process does not require lifting the finger to click the crouching vertical strike combination control 25, so that the virtual character can switch from the vertical strike corresponding to the vertical strike control 19 to the crouching vertical strike corresponding to the crouching vertical strike combination control 25. Not only is the operation smoother and more convenient, but also, based on the first vertical strike of the virtual character, through the above-mentioned downward sliding operation, the virtual character can adjust its own attack method according to the attack of the enemy character. For example, when the enemy character attacks horizontally, the virtual character can vertically strike the enemy character again while crouching, which can not only avoid the horizontal attack of the enemy character, but also cause damage to the enemy character by the second vertical strike, thereby increasing the probability of defeating the enemy character and quickly changing the attack moves.
[0106] The settings of the jumping vertical attack combination control and the crouching vertical attack combination control in the above-mentioned first control set have an inherent logical association with the vertical attack control. The vertical attack control mainly serves the purpose of vertical attack on the enemy character. Therefore, on this basis, the attack method configured in the first control set is vertical attack. This setting method mainly takes into account that when the player clicks the vertical attack control, it is likely to apply the vertical attack skill. Compared with clicking the vertical attack control multiple times to achieve a combo, the setting method of the jumping vertical attack control and the crouching vertical attack control not only does not require lifting the finger to release the vertical attack action again, but also allows the adjustment of the character's posture on the basis of the vertical attack. The operation is faster and more convenient, and the functions are richer and more powerful. Moreover, this triggering method of the combination action does not require two separate controls to be implemented. It only needs to trigger the jumping vertical attack combination control or the crouching vertical attack combination control once to trigger the combination action, which reduces the complexity of the operation, has higher triggering efficiency, simplifies the operation, and effectively reduces the player's fatigue during the game.
[0107] Optionally, the jump vertical stroke combination control and the crouch vertical stroke combination control in the first control set corresponding to the vertical stroke control can also be replaced with a jump horizontal stroke combination control and a crouch horizontal stroke combination control according to the player's operation preference. Alternatively, only one of the controls is replaced with a control with a horizontal stroke function, which can be a combination control or a separate horizontal stroke control.
[0108] The above-mentioned graphical user interface includes a movement control area, and the movement control area and the operation area where the first attack control is located are respectively located on both sides of the graphical user interface; controlling the virtual character to perform a dodge action (here refers to the dodge control in the first control set) may include: determining the dodge direction corresponding to the dodge control according to the character orientation control operation in the movement control area, and controlling the virtual character to perform a dodge action in the dodge direction; or, according to the dodge control with a preset dodge direction, controlling the virtual character to perform a dodge action in the preset dodge direction. Specifically, in the above-mentioned Figure 6 and Figure 7 In the corresponding (2), the avoidance control in the first control set is triggered. In the embodiment of the present disclosure, the following methods are provided to determine the direction of the avoidance action:
[0109] (21) The dodge direction is determined by the left mobile joystick (or the left mobile control area). In this method, if the left hand operates the mobile joystick, the direction of the character's dodge action is consistent with the control direction of the mobile joystick. For example, when the right hand finger slides from the position of the horizontal stroke control 18 to the left to trigger the dodge control 20a in the first control set, if the left hand finger drags the mobile joystick to the left, the virtual character turns left and performs a dodge action to the left at the current position.
[0110] (22) If there is no control operation on the moving joystick, the current direction of the virtual character is determined as the dodge direction. In this method, when the dodge control 20a in the first control set is triggered, if the left hand does not operate the moving joystick, the dodge action is performed in the direction of the current direction of the virtual character.
[0111] (23) The dodge control carries direction information, and the direction corresponding to the dodge control is determined as the dodge direction. In this method, whether the joystick is operated or not can be ignored, and the virtual character is controlled to perform the dodge action in the direction corresponding to the dodge control. For example: the dodge control 20a in the first control set is configured in the right direction, then when the dodge control 20a in the first control set is triggered, the virtual character is controlled to perform the dodge action to the right at the current position.
[0112] (24) The dodge control carries direction information, and the dodge direction is determined according to the direction corresponding to the dodge control and the direction of the mobile joystick. In this method, if the dodge control in the first control set is triggered and the mobile joystick has a control operation, the control direction of the mobile joystick is prioritized as the dodge direction; if the dodge control in the first control set is triggered and the mobile joystick has no control operation, the direction corresponding to the dodge control is prioritized as the dodge direction.
[0113] The direction of the above dodge control can be configured by the player in the settings. If the player does not configure this item, the direction of the dodge control is the default direction.
[0114] The horizontal and vertical controls as the first attack controls can appear in the same game as permanent controls in the graphical user interface of the game. Of course, in addition to the horizontal and vertical controls, other attack controls may also be permanent controls or non-resident controls displayed in the graphical user interface of the game, and the other attack controls may also be configured with a control set similar to the first control set. Based on this, the method may further include: displaying a fifth control in the graphical user interface, wherein the fifth control is a second attack control, and the attack angle of the first attack action corresponding to the first attack control is different from the attack angle of the second attack action corresponding to the second attack control.
[0115] The attack direction of an attack action is usually consistent with the direction of the virtual character. The attack direction is to guide the virtual character to attack the target object, while the attack angle of an attack action usually refers to the direction of the trajectory of the attack action. For example, how to attack the target object, whether to attack from top to bottom or from left to right, etc.
[0116] Among them, the first attack action is a melee attack action in which the angle between the virtual attack damage surface determined according to the movement of the melee weapon in the three-dimensional virtual environment (which can be a surface determined by the movement trajectory of the melee weapon in the three-dimensional virtual environment, or a surface determined by the starting position and the ending position of the melee weapon in the three-dimensional virtual environment) and the designated plane in the three-dimensional virtual environment (ground plane, horizontal plane) is less than the angle threshold; the virtual attack damage surface can be a plane or a curved surface, and the above-mentioned angle can be the angle between planes or the angle between the tangent surface corresponding to the curved surface and the plane; the second attack action is a melee attack action in which the angle between the virtual attack damage surface determined according to the movement of the melee weapon in the three-dimensional virtual environment and the designated plane in the three-dimensional virtual environment is greater than the angle threshold. During the execution of the first attack action by the first virtual character, the target virtual character that collides with the virtual attack damage surface will receive the attack damage of the first attack action. See. Figure 8 The attack scenario diagram shown is Figure 8The first attack action is taken as an example of the horizontal strike action corresponding to the sword 70, the movement trajectory 71 of the sword 70 in the three-dimensional virtual environment determines the virtual attack damage surface 72, the designated plane in the three-dimensional virtual environment is the horizontal plane 73, and the virtual attack damage surface 72 forms an angle 723 with the horizontal plane 73. The second attack action is taken as an example of the vertical strike action corresponding to the sword 70, the movement trajectory 74 of the sword 70 in the three-dimensional virtual environment determines the virtual attack damage surface 75, and the virtual attack damage surface 75 forms an angle 753 with the horizontal plane 73. The angle 753 formed by the virtual attack damage surface 75 of the vertical strike action and the horizontal plane 73 is greater than the angle 723 formed by the virtual attack damage surface 72 of the horizontal strike action and the horizontal plane 73.
[0117] Similar to the first attack control, based on the display of the second attack control in the graphical user interface, the method further includes the following steps: in response to a third touch operation on the second attack control, if the third touch operation is a click operation, the virtual character is controlled to perform a second attack action corresponding to the second attack control; if the third touch operation is a slide operation, a second target action is determined from the second action set according to the slide operation, and the virtual character is controlled to perform the second target action. If the third touch operation is a long press operation, the second control set is displayed, and a second target control is determined from the controls included in the second control set according to a slide operation continuous with the long press operation, and the virtual character is controlled to perform an action corresponding to the second target control; wherein the controls included in the second control set correspond to the actions included in the second action set. The second control set may include the third control, and the third control is used to trigger the virtual character to perform an action corresponding to the first control.
[0118] In this embodiment, by displaying the above-mentioned second attack control (i.e., the fifth control) in a graphical user interface, the user (player) can control the virtual character to perform an action (e.g., a horizontal strike action, a vertical strike action, etc.) corresponding to the attack angle of the second attack control by touching the second attack control in the graphical user interface; the user can also long press the second attack control in the graphical user interface to display a control set corresponding to the second attack control (referred to as a second control set), and the second control set includes a third control that can be used to trigger and control the virtual character to perform an action corresponding to the first control. If the touch operation is a click operation, the virtual character can be controlled to perform the second attack action. If the touch operation is a sliding operation, the second target control is determined from the controls included in the second control set according to the sliding operation, and the virtual character is controlled to perform the action corresponding to the second target control. If the second target control is the third control in the first control set, the virtual character can be controlled to perform the action corresponding to the first control in the graphical user interface. In this way, if the user needs to control the virtual character to perform a second attack action, the user can click on the second attack control originally displayed in the graphical user interface, and long press the second attack control to display a control set corresponding to the second attack control (referred to as the second control set), and the second control set includes a third control that can be used to trigger and control the virtual character to perform an action corresponding to the first control; if the user needs to control the virtual character to perform horizontal and vertical actions, etc., this can be achieved by touching the fifth control originally displayed in the graphical user interface, and can also be achieved by touching the third control in the control set corresponding to the second attack control (referred to as the second control set). The displayed second control set allows the user to more intuitively and clearly The position of each control in the control set is clearly determined. When a control in the second control set needs to be operated, the second target control can be accurately determined from the second control set according to the sliding operation, without the user lifting his finger and clicking on other controls in the graphical user interface. During the whole process, the user does not need to find and locate another control (controls corresponding to actions such as horizontal and vertical swiping actions) in the interface. The sliding operation on the second attack control can easily determine the second target control from the second control set, and then trigger the virtual character to perform the action corresponding to the second target control, thereby realizing the rapid control of the virtual character, such as rapid control of attack moves or attack and defense conversion. By displaying the second control set when the second attack control is long pressed, an intuitive reference basis is provided for the user to operate the control. The user does not need to remember the operation method of triggering the controls in the second control set. The user can slide towards the control in the second control set to achieve the desired operation. In this operation process, the user does not need to lift his finger or shift his sight to achieve control switching. The user does not need to remember anything special, and can quickly respond in the interaction. The operation is more convenient, and the problem of misoperation caused by more interface controls is effectively alleviated.At the same time, this method of quickly controlling virtual characters also improves the consistency of user operations.
[0119] The horizontal stroke control is the first attack control, the vertical stroke control is the second attack control, and the dodge control is the first control. If the player needs to strike the enemy virtual character horizontally, the first attack control can be touched; if the player needs to strike the enemy character vertically, the second attack control can be touched; and during the attack process, the target control can be selected by sliding from the corresponding control set to avoid the attack action of the enemy virtual character.
[0120] Optionally, the method further includes: canceling the display of the second control set, so that when the controls in the second control set do not need to be operated, the second control set is no longer displayed, thereby reducing unnecessary obstruction of the interface by the second control set.
[0121] As a possible implementation, the above-mentioned cancellation of display of the second control set includes: responding to the end of the third touch operation, canceling the display of the second control set. If the third touch operation is a click operation, the second control set is not displayed. If the third touch operation is a long press followed by a slide operation, the second control set is canceled when the finger of the slide operation leaves the touch terminal screen. This method of canceling the display of the second control set when the third touch operation ends is simple and reasonable. When the third touch operation ends, it means that there is no need to operate the controls in the second control set anymore. Therefore, timely canceling the display of the second control set can reduce the time that the second control set occupies the graphical user interface and optimize the graphical user interface.
[0122] In other examples, the above-mentioned step of canceling the display of the second control set may also include one of the following: (1) canceling the display of the second control set in response to the determination of the second target control; (2) canceling the display of the second control set in response to the duration of the third touch operation reaching a set time threshold; (3) canceling the display of the second control set in response to the virtual character performing an action corresponding to the second target control. The specific method of canceling the display of the second control set can be selected according to actual needs, and this embodiment does not limit this.
[0123] Optionally, the description of other related processing and technical effects involved in the second attack control can refer to the above content corresponding to the first attack control, and the embodiments of the present disclosure will not be repeated here.
[0124] In an optional embodiment, the graphical user interface includes a first attack control. If the first touch operation acting on the first attack control is a long press operation and the pressing time is greater than or equal to the first time threshold, the virtual character is controlled to perform a third attack action. Optionally, the third attack action and the first attack action cause different damage values to the enemy virtual character. For example, the third attack action and the first attack action have different attack strengths and / or attack durations. Specifically, the first attack action is a normal attack, and the third attack action is a charged attack. By long pressing the first attack control, the first control set is displayed and the virtual character is controlled to perform the third attack action. The function of the first attack control can be expanded, so that the player can sample different operation modes of the first attack control in different combat scenarios to trigger the virtual character to perform different attack actions to achieve different attack effects.
[0125] If the first touch operation is a long press operation and the pressing duration is greater than or equal to the first time threshold, controlling the virtual character to perform the third attack action may include: if the first touch operation is a long press operation, controlling the virtual character to perform a preparatory action for the third attack action, and after the pressing duration is greater than or equal to the first time threshold, controlling the virtual character to perform the third attack action. The preparatory action for the third attack action may be controlling the posture of the virtual character or controlling the action of the virtual character holding a weapon, etc. The specific preparatory action is related to the weapon currently held by the virtual character, the current combat scene of the virtual character, or the third attack action corresponding to the first attack control, etc. The preparatory action for the third attack action is used to indicate that the virtual character is ready to perform the third attack action.
[0126] If the first touch operation is a long press operation and the press duration is greater than or equal to the first time threshold, controlling the virtual character to perform the third attack action may also include: if the first touch operation is a long press operation and at the end of the long press operation, the press duration of the long press operation is greater than or equal to the first time threshold and less than the second time threshold, triggering the virtual character to perform the third attack action at the end of the long press operation, wherein the second time threshold is greater than the first time threshold. Alternatively, if the first touch operation is a long press operation and the press duration of the long press operation is equal to the second time threshold, automatically triggering the virtual character to perform the third attack action.
[0127] The above-mentioned method of triggering the virtual character to perform the third attack action can be selected from one or more specific ones according to the actual game, and the disclosed embodiment does not limit this. Taking the third attack action as the charged attack of the first attack action as an example, if the player long presses the first attack control, it means that a charged attack is to be performed. When the long press duration is between the first time threshold and the second time threshold, if the player lifts the finger to end the long press operation, the virtual character is controlled to perform a charged attack (i.e., the third attack action); or when the player long presses for more than the second time threshold, the virtual character is automatically controlled to perform a charged attack.
[0128] As a possible implementation, similar to the first touch operation corresponding to the first attack control, the method further includes: if the third touch operation corresponding to the second attack control is a long press operation and the press duration is greater than or equal to the first time threshold, controlling the virtual character to perform a fourth attack action. The fourth attack action causes a different damage value to the enemy virtual character than the second attack action.
[0129] The first time threshold and the second time threshold may be pre-configured according to the actual game, and this embodiment does not limit this.
[0130] On the basis of the above-mentioned long press triggering the third attack action, the above-mentioned method further includes: if the first touch operation is a long press operation and the pressing time of the long press operation is greater than or equal to the first time threshold and less than the second time threshold, in response to the continuous sliding operation of the long press operation, a third target control is determined from the first control set, and the virtual character is controlled to perform the action corresponding to the third target control. In this way, in the process of the player triggering the third attack action by long pressing the first attack control, if the player wants to make the virtual character give up performing the third attack action (even if the virtual character is currently able to perform the third attack action) due to combat needs, the player can slide the finger on the basis of the long press operation, and determine the third target control (for example, a defensive control) from the first control set according to the direction of the finger sliding operation, and then trigger the virtual character to perform the action corresponding to the third target control, thereby realizing the timely adjustment of the combat strategy. For example, the implementable third attack action can be interrupted in time, and the defensive action can be quickly entered, so that the combat scene in the game is more in line with the actual process in real combat, and the game experience is more vivid and real. However, in the related art, if the first touch operation is a long press operation and the pressing duration of the long press operation is greater than or equal to the first time threshold and less than the second time threshold, in response to the end of the long press operation, the virtual character will be controlled to perform a third attack action. In this way, if the player lifts his finger to end the long press action and clicks the defense control in the graphical user interface again, the virtual character will first perform the third attack action and then the defense action, making it impossible to adjust the virtual character's combat strategy in time and unable to switch the offense and defense status in time.
[0131] In addition, the above method further includes: if the first touch operation is a short press operation with a pressing duration less than the first time threshold, in response to the continuous sliding operation of the short press operation, a third target action is determined from the first control set, and the virtual character is controlled to perform the third target action. In this way, when the player wants to trigger the charging operation by long pressing the first attack control, but changes his mind according to the combat scenario and wants to interrupt the unfinished charging operation, the finger does not need to be lifted, and the sliding operation can be performed immediately, which can trigger the virtual character to quickly switch to other target actions, thereby realizing the timely adjustment of the combat strategy and improving the flexibility of the game operation.
[0132] For example, if the player long presses the first attack control to display the first control set, and the third attack action is a charged attack, if the player wants to interrupt the current charged attack and quickly enter the sword shaking action, there is no need to lift the finger. The finger slides to the third target control in the first control set, and the virtual character can be directly controlled to interrupt the current charged attack and execute the action corresponding to the third target control, thereby quickly defending against the attack of the enemy virtual character and gaining a greater combat advantage for the player. In addition, if the player wants to interrupt the current charged attack and quickly enter other actions, the finger can also be slid to the corresponding target control in the first control set (such as the above-mentioned first target control or the above-mentioned second target control or the above-mentioned third target control) without lifting the finger, and the virtual character can be directly controlled to interrupt the current charged attack and execute the action corresponding to the target control, thereby improving the flexibility of game operation.
[0133] As a possible implementation, determining the first target action may include: confirming the first target action from the first action set according to the sliding direction of the sliding operation; or, confirming the first target action from the first action set according to the sliding trajectory of the sliding operation. For example: determining the action in the first action set corresponding to the sliding direction of the sliding operation as the first target action; or, when the first control set is displayed, determining the control in the first control set that is directly opposite to the sliding direction of the sliding operation as the first target control, and the action corresponding to the first target control is the first target action; or, determining the control in the first control set that is closest to the end position point of the sliding trajectory of the sliding operation as the first target control, and the action corresponding to the first target control is the first target action. The above method can quickly and accurately determine the first target action from the first action set.
[0134] The timing of determining the first target control from the controls included in the first control set according to the sliding operation may include one of the following: (1) the moving distance of the touch point of the sliding operation reaches a set distance threshold; (2) the moving distance of the touch point of the sliding operation reaches the above-mentioned set distance threshold and the movement ends; (3) the touch point of the sliding operation moves to the area where the first target control is located; (4) the touch point of the sliding operation moves to the area where the first target control is located and the movement ends.
[0135] The first control set can be displayed in a variety of ways, for example, in the form of a roulette wheel on the periphery of the second control. Based on this, the first control set is displayed as follows: displaying a first roulette wheel containing the first control set, in which the controls in the first control set are arranged. Usually, the first roulette wheel is located near the first attack control to facilitate the player to select the target control from the roulette wheel. As a possible implementation, the first roulette wheel surrounds the first attack control, or the first roulette wheel surrounds a preset position in a blank area in a graphical user interface, and optionally, the preset position is associated with the position of the second control, for example: the preset position is a point within a first distance range from the center of the first attack control.
[0136] For the implementation of the first roulette wheel around the first attack control, the form of the first roulette wheel can be referred to above Figure 6 and 7 The form of the first control set in the graphical user interface schematic diagram, of course, the form of the first wheel can also adopt other deformation forms of this form.
[0137] During the above-mentioned first roulette display process, the permanent controls in the graphical user interface are still displayed in their original positions. In order to reduce the occlusion effect of the first roulette on the permanent controls, there is a certain distance between each permanent control. In this way, during the roulette display process, the player can quickly select the next control to be triggered from the roulette, and can also conveniently select other permanent controls outside the roulette according to actual combat needs.
[0138] The transparency of the first wheel is greater than a preset transparency threshold. In this way, the occlusion effect of the first wheel on the resident controls in the graphical user interface can be reduced.
[0139] In order to further reduce the problem of accidental touches, the direction from the first attack control to the third control in the first control set is different from the direction from the first attack control to the fourth control in the first control set. For example, the third control and the fourth control in the first control set are on the left and right sides of the first attack control, respectively. This control layout method facilitates the player to accurately select the corresponding target control during the sliding operation.
[0140] As a possible implementation, the method further includes: displaying a first control indication in a first direction of the first attack control, and displaying a second control indication in a second direction of the first attack control, wherein the first control indication is used to represent that when the first control set corresponding to the first attack control is displayed, controls in the first control set are displayed in the first direction of the first attack control; and the second control indication is used to represent that when the first control set corresponding to the first attack control is displayed, controls in the first control set are displayed in the second direction of the first attack control. The first control indication and the second control indication may be preset graphic marks or graphic plus color marks, etc., as long as they can serve the purpose of indicating that controls in the first control set will correspond to the direction of the first attack control. Figure 6 and 7 Taking the graphical user interface shown in FIG. 1 as an example, the arrow-like graphic on the outer circle of the first attack control is the first control indication and the second control indication, such as Figure 7 The number of the first control indication and the second control indication is associated with the number of controls in the first control set. Each control in the first control set corresponds to a control indication. As a possible implementation, when the first control set is not displayed, the displayed first attack control also carries the control indication, so that the player can distinguish between controls configured with a control set (or action set) and controls not configured with a control set (or action set), and the player can know in advance which direction of the control will have controls in the control set (or action set), and other information.
[0141] The angle between the ray starting from the first attack control and pointing to the third control in the first control set and the ray starting from the first attack control and pointing to the fourth control in the first control set is greater than the angle threshold. The angle threshold can be any value between 20° and 45°, for example, the angle threshold is 20°, 30° or 45°, etc. In this way, the setting method of the position of the controls in the first control set can effectively reduce the problem of accidental touches in sliding operations.
[0142] As a possible implementation, the first control may also be a dodge control, based on which the method includes: in response to a click operation on the dodge control, controlling the virtual character to perform a first dodge action; in response to a long press operation on the dodge control, controlling the virtual character to perform a second dodge action, wherein the dodge distance and / or the state after dodge of the first dodge action and the second dodge action are different, and the state includes: jogging or sprinting. This method of triggering the dodge action corresponding to the dodge control according to different operation types can realize multiple actions for one control, thereby simplifying the number of controls in the graphical user interface.
[0143] As another possible implementation, the first control may also be a jump control, based on which the method includes: in response to a click operation on the jump control, controlling the virtual character to perform a first jump action; in response to a long press operation on the jump control, controlling the virtual character to perform a second jump action, wherein the first jump action and the second jump action have different jumping postures and / or jumping heights. This method of triggering the jump action corresponding to the jump control according to different operation types can realize multiple actions for one control, thereby simplifying the number of controls in the graphical user interface.
[0144] As a possible implementation, the dodge control may also be configured with an action set with a crouching action, so as to quickly control the virtual character to crouch to avoid the attack of the enemy virtual character by sliding operation on the basis of controlling the virtual character to dodge. Alternatively, the dodge control may also be configured with a control set with a crouching control, so as to quickly control the virtual character to crouch to avoid the attack of the enemy virtual character by sliding operation on the basis of controlling the virtual character to dodge.
[0145] The above-mentioned graphical user interface also includes a sixth control, which is a jumping control. The above-mentioned method also includes the following steps: responding to a fourth touch operation acting on the sixth control, if the fourth touch operation is a click operation, controlling the virtual character to perform a jumping action; if the fourth touch operation is a sliding operation, determining a fourth target action from the third action set according to the sliding operation, and controlling the virtual character to perform the fourth target action; the third action set at least includes a crouching action.
[0146] The above method also includes: if the fourth touch operation is a long press operation, displaying the third control set, and determining the fourth target control from the controls included in the third control set based on a sliding operation continuous with the long press operation, controlling the virtual character to perform the action corresponding to the fourth target control; in response to the end of the fourth touch operation, canceling the display of the third control set.
[0147] The technology corresponding to the dodging control as the sixth control is similar to the technology corresponding to the second control and the fifth control mentioned above, and will not be repeated here.
[0148] As another possible implementation, the jump control may also be configured with a control set having a crouch control, so as to quickly control the virtual character to crouch through a sliding operation to avoid attacks from enemy virtual characters based on controlling the virtual character to jump.
[0149] The graphical user interface also includes a sixth control, which is a jump control. The method also includes the following steps:
[0150] (1) in response to a fourth touch operation on a sixth control, determining a type of the fourth touch operation;
[0151] (2) if the fourth touch operation is a click operation, the virtual character is controlled to perform a jumping action; if the fourth touch operation is a long press followed by a slide operation, the third control set is displayed, a fourth target control is determined from the controls included in the third control set according to the slide operation, and the virtual character is controlled to perform an action corresponding to the fourth target control; wherein the third control set includes at least a crouching control, and the crouching control is used to trigger the virtual character to perform a crouching action;
[0152] (3) Cancel displaying the third control set.
[0153] The technology corresponding to the jump control as the sixth control is similar to the technology corresponding to the second control and the fifth control mentioned above, and will not be repeated here.
[0154] See also Fig. 9 1 is a schematic diagram of another graphical user interface shown in FIG. 1 . In this embodiment, the sixth control is a dodge control. The third control set corresponding to the dodge control 20 includes a crouch control 26. The crouch control is located below the dodge control. When the player clicks the dodge control, the virtual character performs the dodge action corresponding to the dodge control. At the same time, the dodge control is displayed as follows: Fig. 9 The third control set shown in the figure only has a crouching control in the third control set of this embodiment. Considering that the crouching control is used to lower the height of the virtual character, the crouching control in the third control set in the figure is set directly below the dodge control. Of course, as a possible implementation, the first control set can also be set diagonally below the dodge control.
[0155] If the player's finger slides downward from the location of the dodge control, that is, the finger slides toward the crouch control, after sliding to a certain extent, for example: sliding to the area where the crouch control is located, the virtual character is controlled to perform the crouching action corresponding to the crouching control. By sliding the finger from the dodge control to the crouching control on the lower side, the player character can switch from the dodge action corresponding to the dodge control to the crouch action corresponding to the crouch control. The operation is smoother and more convenient, and the problem of accidental touches is effectively reduced.
[0156] In addition to the above-mentioned attack controls, posture adjustment controls (the above-mentioned jump, crouch or dodge controls) or defense controls (the above-mentioned blade vibration controls), the virtual character of this embodiment will also have some special skills. Accordingly, the above-mentioned method may also include: displaying a seventh control on the graphical user interface, wherein the seventh control is a skill control for triggering the virtual character to perform a skill release, and the first attack control is an action control for triggering the virtual character to perform a first attack action. By setting the skill controls, the player can perform skill attacks on the enemy virtual character at the right time to improve the attack effect.
[0157] The skills corresponding to the above skill controls have a cooldown time, while the actions corresponding to the above action controls have no cooldown time. That is, when the skill control is triggered, the virtual character releases the skill, and the time is counted at the same time. Only when the time reaches its cooldown time, the skill control can be triggered again to make the virtual character release the skill. However, the action control has no cooldown time. After the action control is triggered, there is no need to wait, and the next action control can be triggered directly, so that the virtual character continuously performs the action corresponding to the action control.
[0158] In the game, different virtual characters usually have different skills, and different virtual characters can have the ability to perform the same action. Based on this, there are a first virtual character and a second virtual character in the virtual environment. The skills of the first virtual character are different from those of the second virtual character. Both the first virtual character and the second virtual character can perform a first attack action. For example, the first virtual character has a defense skill for a specified attack. If the defense skill is released, the opponent's specified attack is invalid. The second virtual character has a skill for doubling the attack damage. If the skill is released, the current attack will cause double damage to the opponent. The first virtual character and the second virtual character can both perform horizontal or vertical attack actions, as well as jumps, dodges, and other actions.
[0159] As a possible implementation, the above-mentioned first attack action is a contact attack action performed by the virtual character's limbs and / or weapons. Contact attack refers to an attack in which the attacker's limbs or weapons come into contact with the attacked party, such as hitting the enemy's body with fists, chopping or stabbing the enemy's body with a knife or sword, etc., which are common melee attack actions in games.
[0160] As a possible implementation, if the first touch operation is a sliding operation, then determining the first target action from the first action set according to the sliding operation, and controlling the virtual character to perform the first target action may include: if the first touch operation is a sliding operation, then determining the first target action from the first action set according to the sliding operation, determining whether the action interruption condition is met according to the current action state of the virtual character and the first target action; if met, controlling the virtual character to perform the first target action.
[0161] The above-mentioned current action state refers to the action that the virtual character is performing before the current sliding operation. For example, before the player's current sliding operation, the player clicks the horizontal stroke control (or jump control), and here "the current action state of the virtual character" refers to the action state of the virtual character currently performing the horizontal stroke (or jump) because the player clicks the horizontal stroke control (or jump control).
[0162] Determining whether the action interruption condition is met according to the current action state of the virtual character and the first target action may include:
[0163] If the action corresponding to the control that triggers the virtual character to execute the current action state and the first target action are both a collection of multiple actions, the action interruption condition is met;
[0164] If an interruption point is set on the action trajectory corresponding to the current action state of the virtual character, and the triggering moment of the first target action occurs after the moment corresponding to the interruption point, the action interruption condition is met; for example: an interruption to the dodge action is added at 0.2 seconds on the attack track of horizontal strike 1. If the player triggers a dodge command after the horizontal strike 1 action is played for 0.2 seconds (for example, the dodge command is triggered by a sliding operation on the first attack control), the virtual character will interrupt the current horizontal strike action and immediately perform the dodge action. Conversely, when the horizontal strike action has not been played for 0.2 seconds, the player triggers the dodge command, the virtual character will not interrupt the current horizontal strike action, that is, the dodge command will not take effect.
[0165] If the preset interruption action set corresponding to the control that triggers the virtual character to execute the current action state includes the first target action, the action interruption condition is met.
[0166] The method further includes: if the action interruption condition is not met, not controlling the virtual character to perform the first target action. Alternatively, if the action interruption condition is not met, controlling the virtual character to continue to perform the currently unfinished action.
[0167] As a possible implementation, if the above-mentioned action interruption condition is not met, the virtual character can also be controlled to continue to perform the current unfinished action, and when the action is completed, the first target action is performed.
[0168] In an optional embodiment, the controls in the first control set can have different functions from the resident controls. Figure 6 Taking the displayed graphical user interface as an example, there is a knife vibration control on the right side of the horizontal stroke control in the first control set, and there is also a knife vibration control on the right side of the outside of the first control set (a control that is resident in the graphical user interface). The knife vibration control in the roulette wheel allows the player to quickly perform the knife vibration action through sliding operations. The executed knife vibration action can interrupt the action currently being performed by the virtual character, so as to achieve the purpose of quickly releasing the knife vibration action. The knife vibration control that is resident in the graphical user interface can make the virtual character perform the knife vibration action after completing the current action. This knife vibration triggering mechanism does not affect the completion of the current action of the virtual character, and can enable the character to obtain all the incentive values corresponding to the action.
[0169] Since the vibration knife action released by the controls in the first control set is fast, it may affect the completion of the action currently being performed by the virtual character. Therefore, when the controls in the first control set are used, the incentive value obtained by the virtual character for the action can be determined according to the completion of the current action state of the virtual character. Based on this, the above method also includes: updating the incentive information corresponding to the virtual character according to the completion of the current action state of the virtual character. For example: the completion of the action state is positively correlated with the incentive value. The higher the completion, the higher the incentive value. The highest incentive value is the incentive value corresponding to the original action. For example, if the completion of the action state exceeds 90% of the original action, the full incentive value of the action is obtained. If the completion of the action state is less than 90% of the original action, only half of the full incentive value of the action is obtained.
[0170] As a possible implementation, in the above technology, if the action corresponding to the control in the first control set is triggered after the sliding operation is completed, there may be a regret mechanism, that is, during the sliding operation, if the sliding track or the sliding direction points from the third control to the fourth control, the fourth control is determined as the target control, and the virtual character is controlled to perform the action corresponding to the fourth control.
[0171] In order to better understand the above technology, this embodiment provides an example of an application scenario. Fig.10 The graphical user interface schematic diagram shown, wherein the content displayed by the graphical user interface includes a game scene and virtual objects (or called virtual characters) in the game scene, and the player controls the virtual objects to move in the game scene. Fig.10 The interface in the figure shows a variety of controls, which are displayed on the game scene. The following are the descriptions of each control:
[0172] The backpack control 1000 triggers the display of the backpack interface in the graphical user interface through a touch operation on the control, which is used to view the items in the backpack. The items may include but are not limited to medicines, weapons, accessories, protective gear and other items. In an optional embodiment, the edge of the backpack control 1000 is provided with edge lines to indicate the amount of items in the backpack. The touch operation on the backpack control 1000 may be a click, double-click, long press, slide and other operations.
[0173] Mobile control 1002, the circle filled with shadow is the joystick in the mobile control. In an optional embodiment, the mobile control 1002 is configured with a mobile response area, wherein the mobile response area may be the same size as the mobile control 1002, that is, the area in the graphical user interface corresponding to the mobile control 1002 is the mobile response area. In an optional embodiment, the size of the mobile response area may be larger than the size of the mobile control 1002, that is, the mobile control 1002 is set in the mobile response area. Specifically, the graphical user interface is divided into left and right areas from the middle, wherein the left area is the mobile response area of the mobile control 1002. The mobile control instruction is triggered by the touch operation acting on the mobile response area of the mobile control 1002, and the moving direction of the virtual object is controlled according to the mobile control instruction. Among them, the touch operation acting on the mobile response area of the mobile control 1002 can be click, double-click, long press, slide and other operations.
[0174] The attack control 1014 triggers the attack instruction by the specified touch operation acting on the attack response area of the attack control 1014, and controls the virtual character to perform the attack action in the game scene according to the attack instruction. Among them, the attack action triggered by the attack control 1014 corresponds to the current assembly state of the virtual character. For example, when the virtual character is equipped with a long-range weapon, the attack action triggered by the attack control is a shooting action, that is, the right hand can perform a shooting operation by triggering the attack control 1014; when the virtual character is equipped with a melee weapon, the attack action triggered by the attack control 1014 is a slashing action, etc. In an optional embodiment, only one of the attack controls 1014 is displayed, and it is set on the lower right side of the graphical user interface, or, in a feasible embodiment, there can be two attack controls, one is the attack control 1004 on the left side of the graphical user interface, and the other is the attack control 1014 on the right side of the graphical user interface. Among them, the display position of the attack control can be adjusted according to the position setting instruction, wherein the position setting instruction can be triggered in the setting interface or in the process of the game. The designated touch operation acting on the attack control may be a click, double-click or long-press operation, wherein a click or double-click is used to control the virtual character to perform a normal attack action, and a long-press operation is used to control the virtual character to perform a charged attack action. The attack control 1014 of this embodiment has a control indication, and when the attack control 1014 is long-pressed, a first control set is displayed in the graphical user interface, and the first control set may include at least one of a posture action control, a defense control or other attack controls. If the touch operation is a sliding operation, a first target control is determined from the first control set according to the sliding operation, and the virtual character is controlled to perform an action corresponding to the first target control.
[0175] The gesture control 1008 and 1010 trigger the gesture adjustment instruction by the touch operation acting on the gesture control to adjust the posture of the virtual character in the game scene. Among them, triggering the gesture control 1008 can control the virtual character to jump; triggering the gesture control 1010 can control the virtual object to dodge. The gesture control 1008 and 1010 are mostly used in the scene where the virtual character avoids the attack of the enemy virtual character in close combat. According to the needs of the actual application scene, the gesture control can also include other controls, such as crouching control, sprinting control, etc. Among them, the touch operation acting on the gesture control can be click, double-click, long press, slide, etc.
[0176] The vibration knife control 1011 is used to quickly knock down the enemy's weapon. When the player touches the vibration knife control 11 to knock down the enemy's weapon, the player's virtual character can pick up the weapon. The touch operation acting on the vibration knife control can be click, double-click, long press, slide and other operations.
[0177] Weapon slot 1012, triggering the weapon slot can switch the weapon used by the player. The touch operation acting on the weapon slot can be click, double click, long press, slide and other operations.
[0178] The field of view adjustment control 1026 (which can be a small eye icon) is used to control the shooting parameters of the virtual camera that presents the game screen, thereby adjusting the field of view of the game scene displayed in the graphical user interface. In an optional embodiment, it is determined that a touch operation acting on the field of view adjustment control 1026 is detected, and the shooting parameters of the virtual camera are adjusted according to the touch operation, wherein the shooting parameters include but are not limited to the position, orientation, and viewing angle of the virtual camera. For the convenience of user operation, the designated blank area in the graphical user interface can also be used to adjust the field of view of the game scene. Among them, the touch operation acting on the field of view adjustment control 1026 can be operations such as clicking, double-clicking, long pressing, and sliding.
[0179] The marking control 1028 is used to mark the virtual characters, virtual objects, etc. in the game scene by a touch operation on the marking control. The touch operation on the marking control 1028 can be a click, double-click, long press, slide, etc.
[0180] The setting control 1032 is used to set the basic functions of the current game. Clicking the control 1032 displays a setting menu for the user to perform setting operations.
[0181] Message controls 1034 and 1036, wherein the message control 1034 can be used to view system notifications, and the message control 1036 can be used to view messages sent by teammates, or to send messages to teammates.
[0182] The mini-map 1038 is used to display the position of the virtual character controlled by the player, and may also display the positions of some of the virtual characters of other players.
[0183] In addition to the above-mentioned controls, it may also include a lock control, a hook lock control, a lens mode switching control, a battle encyclopedia control, a speaker switch control, a microphone switch control, an expression control, and a text chat control, etc. The functions of these controls can be referred to in related games, and the embodiments of the present disclosure will not be repeated here.
[0184] The movement control of the above virtual character can include two control methods:
[0185] (1) In non-remote combat mode, if the mobile joystick is moved downward, the virtual character's direction is adjusted to face the virtual camera, and the virtual character is controlled to move based on the current direction. This method of controlling the virtual character's direction by moving the joystick in non-remote combat mode can make the virtual character turn to face the virtual camera when the mobile joystick is dragged downward. The movement based on this is more in line with the movement of characters in real combat scenes. For example: in a melee combat scene, the player's virtual character chooses to temporarily escape when it is unable to resist the attack of the enemy virtual character. Turning forward to escape has a stronger sense of direction and is more vivid than running backward. For another example: in a melee combat scene, an enemy virtual character suddenly approaches behind the player's virtual character. In order to quickly attack the enemy virtual character, the player can drag the mobile joystick downward with his left hand to make the player's virtual character turn quickly. At the same time, the right hand operates the attack control to release the attack action on the approaching enemy virtual character. This mobile joystick function can improve the player's response speed during combat and is more in line with the behavior and actions performed in actual combat.
[0186] (2) In the long-range combat mode, considering that long-range combat usually requires the crosshair or lock function of long-range weapons, in the long-range combat mode, when the mobile joystick is moved downward, the virtual character is controlled to move backward, and the virtual character still faces away from the virtual camera, so as not to affect the realization of the crosshair or lock function in the long-range attack.
[0187] In addition, the mobile joystick in the embodiment of the present disclosure has another function, that is, adjusting the moving speed of the virtual character according to the drag amplitude of the mobile joystick. The larger the amplitude of the mobile joystick dragging per unit time, the faster the virtual character moves. In this way, the player can make the virtual character enter the sprinting action from fast walking only by operating with the left hand, without operating the specific sprinting control with the right hand. Therefore, the sprinting control can no longer be set on the right side, reducing the number of resident controls on the page. Based on this function, if the player has entered the sprinting action, when pulling the mobile joystick back, the sprinting state will not be interrupted, and the virtual character will continue to maintain the sprinting state for a certain period of time. If the player does not quickly drag the mobile joystick again during this period, the virtual character will be controlled to enter the fast walking state from the sprinting state. If the player quickly drags the mobile joystick again during this period, the virtual character will continue to be controlled to the sprinting state. This setting method, on the one hand, avoids the direct deceleration of the character caused by the mobile joystick being unable to move again after being dragged to the edge of the movable area, and can also alleviate the problem of excessive burden on the fingers caused by continuous and rapid dragging of the mobile joystick. When the virtual character needs to run to a specific target location in order to complete the current task, the player can quickly drag the mobile joystick multiple times to make the virtual character sprint to the target location, saving task execution time and ensuring that the task can be completed smoothly.
[0188] In the melee attack scene, the attack direction of the above-mentioned virtual character is mainly controlled by snap. Snap refers to the auxiliary steering function, which is a function point on the action track. Its main function is to help the player adjust the direction to the enemy target when the player releases the attack move. That is, when there is no locked target, the attack direction of the player's virtual character is the direction the character is currently facing. When there is a locked target, the attack direction is the direction where the locked target is located. In order to make the attack process more vivid and realistic, this embodiment sets a direction adjustment function point on the attack action track corresponding to the attack control. When the attack action is released, the direction adjustment function point uses the attack direction of the attack action as the basis for adjusting the direction of the character, and adjusts the direction of the character to face the attack direction, so that the character releases the attack action facing the locked target.
[0189] On the basis of the above-mentioned virtual character orientation control, in order to avoid the rapid switching of the screen in the game scene following the character orientation and affecting the player's viewing, in this embodiment, the shooting angle of the virtual camera is bound to the motionroot point (root motion point, which does not change with the change of the character's orientation) of the player's virtual character. The shooting angle of the virtual camera moves with the movement of the character's motionroot point. In this way, when the player's virtual character only changes its orientation, the game scene presented to the player does not change.
[0190] In an optional embodiment, another virtual character control method is provided, see Fig.11 , the method comprises the following steps:
[0191] Step S1102, displaying a first attack control on a graphical user interface;
[0192] The first attack control corresponds to a first action set, and the first action set includes at least two action subsets. Each action subset corresponds to a state of the virtual character. In this embodiment, the state of the virtual character includes two states: ground state and floating state. The first action set includes two action subsets, namely a first action subset corresponding to the ground state and a second action subset corresponding to the floating state.
[0193] The first action set corresponding to the above-mentioned first attack control, the action subsets in the first action set, and the virtual character states corresponding to each action subset can all be customized according to user needs and can be customized in the game settings page. For example: in the settings page, multiple attack controls can be provided for users to select the first attack control, multiple action lists can be provided for users to select the first action set corresponding to the first attack control, and an operation window that divides the first action set into multiple action subsets, and multiple states can be provided for users to select each state corresponding to the action subset. This customization method can reduce the user's understanding cost and make the operation simpler.
[0194] Step S1104, in response to the first touch operation applied to the first attack control, if the first touch operation is a sliding operation, determining a target action subset from the first action set according to the state of the virtual character, and determining a first target action from the target action subset according to the sliding operation.
[0195] Optionally, if the state of the virtual character is a ground state, according to the correspondence between the above state and the action subset, the determined target action subset is the first action subset; if the state of the virtual character is a floating state, according to the correspondence between the above state and the action subset, the determined target action subset is the second action subset.
[0196] If the first touch operation is a click operation, the virtual character is controlled to perform a first attack action corresponding to the first attack control.
[0197] The first attack control is pre-configured with processing methods corresponding to different touch operation modes. When the first touch operation is applied to the first attack control, different processing methods will be triggered according to the touch operation mode of the first touch operation, thereby enabling the first attack control to have multiple functions, which not only improves the convenience of operation but also reduces the number of controls arranged on the page.
[0198] Step S1106, controlling the virtual character to perform a first target action.
[0199] The above method displays a first attack control on a touch graphical user interface. If the first touch operation on the first attack control is a sliding operation, a target action subset is determined from the first action set according to the state of the virtual character, and a first target action is determined from the target action subset according to the sliding operation, and the virtual character is controlled to perform the first target action. The first target action may be an offensive action or a defensive action, a jumping action, or the like. The above method of determining the target action subset according to the state of the virtual character and then determining the first target action from the target action subset according to the sliding operation enables the user to more quickly and coherently realize the connection between the first attack action and the first target action. When it is necessary to control the virtual character to perform an action in the target action subset, it can be triggered by sliding the first attack control without the user having to lift his finger and click other controls of the graphical user interface, thereby realizing rapid control of the virtual character, such as rapid control of attack moves or attack and defense conversion. In this operation process, users can switch controls without lifting their fingers or shifting their sights. At the same time, the method of determining the target action subset according to the virtual character state reduces the complexity of the operation and the user's fatigue during play. Users can respond quickly during the interaction, and the operation is more convenient, effectively alleviating the problem of misoperation caused by too many interface controls. At the same time, this method of quickly controlling virtual characters also improves the consistency of user operations.
[0200] The disclosed embodiment also provides another virtual character control method, which provides a graphical user interface through a touch terminal, wherein the touch terminal can be the local terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above. In this embodiment, the first action set is displayed, and the state of the virtual character includes the ground state and the floating state. Fig.12 , a flow chart of another virtual character control method according to one embodiment of the present disclosure, the method comprising the following steps:
[0201] Step S1202, displaying a first attack control on a graphical user interface;
[0202] The action set information corresponding to the first attack control is the same as above Fig.11 The description information in the method shown is similar and will not be repeated here. The display position of the actions in each action subset in the first action set is preset. Fig.13A schematic diagram of a method for defining an action subset and a character state is shown, wherein the first action set is presented in the form of a roulette, which is divided into four sectors. Roulette scheme 1 is the first action subset, which corresponds to the ground state of the virtual character (the slashed box in the figure indicates that the ground state is selected at this time). As shown in the figure, the user can set the rising dragon action, the shaking sword action and the dodge action in different positions of the roulette as needed. If you want to continue to add actions in the first action subset, you can drag the corresponding action control from the right to the "+" position in the roulette. If you want to delete an action in the first action subset, you can click the "×" icon corresponding to the action control in the roulette to delete it. If you want to reconfigure the first action subset, you can also click the reset roulette control below. If the configuration of the first action subset is completed, you can click the save control below to complete this configuration.
[0203] See also Fig.14 The schematic diagram of another action subset and role state definition method shown is similar to the configuration corresponding to the ground state above. Fig.14 It is mainly a configuration diagram of the second action subset corresponding to the floating state. Here, roulette solution 1 is the second action subset, which corresponds to the floating state of the virtual character. As shown in the figure, the slashed box indicates that the floating state is selected. The user can set the downward attack action, the swing knife action and the dodge action at different positions of the roulette wheel according to the needs. The editing and saving method of the second action subset is similar to that of the first action subset mentioned above, and will not be repeated here.
[0204] In some scenarios, the actions in the above roulette wheel can be set repeatedly, that is, the same action controls can be set at different positions in the roulette wheel.
[0205] For the same state of a virtual character, multiple action subsets can be set accordingly, such as Fig.15 Schematic diagram of another action subset and role state definition method shown in FIG. In this figure, the ground state corresponds to two first action subsets, such as Fig.15 As shown, roulette scheme 1 can be set to correspond to a first action subset, and roulette scheme 2 can be set to correspond to another first action subset, wherein different roulette schemes can correspond to different attack controls, or different weapons and equipment of the same attack control correspond to different roulette schemes. The editing and saving methods of the first action subset are similar to the above content and will not be repeated here.
[0206] Each action in the above action subset corresponds to a sector. If there are less than four actions in the action subset, there may be an empty sector. Of course, the sector division method of the roulette wheel is not limited to Figure 13-15 The four-sector division method in the embodiment can be divided into more sectors as needed, and this embodiment does not limit this.
[0207] Step S1204, responding to a first touch operation on a first attack control, if the first touch operation is a click operation, controlling the virtual character to execute a first attack action corresponding to the first attack control.
[0208] Step S1206: if the first touch operation is a long press operation, determine a target action subset from the first action set according to the state of the virtual character, and display a target control set corresponding to the target action subset.
[0209] The target control set is a control set corresponding to the actions in the target action subset. This embodiment is described by taking a wheel display target control set as an example.
[0210] If the state of the virtual character is the ground state, according to the correspondence between the above state and the action subset, the target control set is determined to be the control set corresponding to the first action subset; if the state of the virtual character is the floating state, according to the correspondence between the above state and the action subset, the target control set is determined to be the control set corresponding to the second action subset. When the state of the virtual character switches, the displayed target control set also switches accordingly.
[0211] Step S1208: If the long press operation of the first touch operation is followed by a sliding operation, a first target control is determined from the target control set according to the sliding operation.
[0212] The first target control may be specifically determined according to the direction of the sliding operation or the track of the sliding operation.
[0213] Step S1210, controlling the virtual character to execute an action corresponding to the first target control.
[0214] Similar to the above embodiment, the displayed target control set can be undisplayed based on time or events to reduce the obstruction of other controls or scenes in the interface.
[0215] The above method displays a first attack control on a touch graphical user interface, and the first attack control corresponds to a first action set, and the first action set includes at least two action subsets, and each action subset corresponds to a state of a virtual character. If the first touch operation acting on the first attack control is a click operation, the virtual character is controlled to perform the first attack action; if the first touch operation includes a long press operation, the target action subset is determined from the first action set according to the state of the virtual character, and the target control set corresponding to the target action subset is displayed. If the long press operation is followed by a sliding operation, the first target control is determined from the target control set according to the sliding operation, and the virtual character is controlled to perform the action corresponding to the first target control. The action corresponding to the first target control can be an offensive action or a defensive action, a jumping action, etc. The above method of determining the action subset and displaying the target control set according to the state of the virtual character can more intuitively guide the user's sliding operation, and then determine the first target control according to the sliding operation, so that the virtual character performs the action corresponding to the first target control. This method allows users to more quickly and coherently connect the first attack action with the first target action. When it is necessary to control the virtual character to perform an action in the target action subset, it can be triggered by sliding on the first attack control without the user having to lift their finger and click other controls on the graphical user interface, thereby realizing rapid control of the virtual character, such as rapid control of attack moves or attack and defense conversion. In this operation process, the user can switch controls without lifting their finger or shifting their sight. At the same time, the target action subset is determined according to the state of the virtual character and the corresponding control is displayed, which reduces the complexity of the operation and the user's fatigue in playing. The user can respond quickly in the interaction, the operation is more convenient, and the problem of misoperation caused by too many interface controls is effectively alleviated. At the same time, this method of quickly controlling the virtual character also improves the consistency of the user's operation.
[0216] One embodiment of the present disclosure provides a virtual character control method. The method can be performed on the basis of the method provided in the above embodiment. Fig.16 The flowchart of the virtual character control method shown in FIG. 1 includes the following steps:
[0217] Step S1602: providing a second action control corresponding to the second action at a predetermined position of the graphical user interface according to the current action of the virtual character and the fourth action set.
[0218] Among them, the current action of the virtual character refers to the action most recently performed by the virtual character, the fourth action set is a pre-configured action set, at least one fourth action set can be pre-configured, the fourth action set includes at least two actions, and the second action is an action in the fourth action set.
[0219] The predetermined position can be preset according to operating habits, or determined according to the location of the control that triggers the virtual character to perform the current action. For example, the predetermined position is the left adjacent position of the control that triggers the virtual character to perform the current action.
[0220] Assuming that the player clicks on the first attack control, the virtual character executes the first attack action corresponding to the first attack control, and the first attack action is pre-corresponded to a fourth action set, when the virtual character executes the first attack action, a second action control corresponding to the second action is provided at a predetermined position of the graphical user interface (such as the adjacent position to the left of the first attack control).
[0221] Step S1604, responding to the triggering operation on the second action control, controlling the virtual character to perform the second action.
[0222] The triggering operation for the second action control may be a single click action. The second action may be an attack action, a defense action, or a posture action.
[0223] If the virtual character currently has no action or the current action is not associated with the fourth action set, the graphical user interface does not display the second action control, so that the graphical user interface is relatively concise and clear.
[0224] The above method provides a second action control corresponding to the second action at a predetermined position of the graphical user interface when the virtual character performs the current action according to the current action of the virtual character and the fourth action set, so that when the virtual character performs the current action, triggering the virtual character to perform the second action is more convenient. The method of providing the second action control at the predetermined position can reduce the control redundancy in the second action control resident page, and can also facilitate the touch of the second action control, reducing the problem of accidentally touching the control.
[0225] As a possible implementation, the fourth action set includes at least two actions and an action sequence. The action sequence is usually set according to the need to control the virtual character in the game scene. In this way, the execution sequence of each action in the fourth action set is more in line with the operation needs.
[0226] When the fourth action set includes at least two actions, both actions can be referred to as second actions. Based on this, providing a second action control corresponding to the second action in the graphical user interface according to the current action of the virtual character and the fourth action set includes: providing a second action control corresponding to the second action in the graphical user interface according to the current action of the virtual character and the action sequence of the fourth action set. The second actions in the fourth action set can be executed in sequence according to the action sequence and displayed in the predetermined position.
[0227] Furthermore, the method further includes: providing a third action control corresponding to the third action at a predetermined position of the graphical user interface according to the second action and the fourth action set; and controlling the virtual character to perform the third action in response to a trigger operation on the third action control. The fourth action set includes multiple actions, the second action and the third action are both actions in the third action set, and the third action is located after the second action in the action sequence. For example: In some touch terminal games, the common operation for performing an air attack is to first click the jump control and then click the attack control in sequence to achieve an air attack. Through the actions in the fourth action set, the jump control and the attack control can be displayed in sequence at the same predetermined position, and the user can control the virtual character to achieve an air attack as needed without moving the finger position, which can greatly simplify the user's touch operation.
[0228] For another example, the fourth action set associated with the current action includes normal attack, aerial pursuit, ascending dragon, downward attack, first stage charge, second stage charge, and sword shake execution, and the action sequence is (1) normal attack, (2) aerial pursuit, (3) ascending dragon, (4) downward attack, (5) first stage charge, (6) second stage charge, and (7) sword shake execution. When the virtual character performs the current action, the normal attack control is first displayed at the predetermined position according to the above action sequence. After the normal attack control is touched, the virtual character performs the normal attack action, and then the aerial pursuit control is switched to be displayed at the predetermined position. When the aerial pursuit control is touched, the virtual character will perform the aerial pursuit action, and then the ascending dragon control is displayed at the predetermined position, and so on, until the user stops touching the control at the predetermined position or the controls in the fourth action set are executed in sequence according to the sequence number, then the control displayed at the predetermined position is no longer switched, or the above second action control is canceled from being displayed at the predetermined position.
[0229] The actions and their order in the fourth action set can be customized, see Fig.17 The diagram of the custom editing interface of the action set shown in the figure, wherein the interface provides six action controls for users to choose from, namely, normal attack, aerial pursuit, ascending dragon, downward attack, first stage charging, and second stage charging. Users can drag the icon of the action control to the sequence prompt bar below to add the action to the appropriate position in the action set. Users can also edit and modify the order of actions in the sequence prompt bar. For example, to delete an action in the action set, you can select the icon of the action in the sequence prompt bar, and an "×" will be displayed at the icon. Click the icon again to delete the action from the action set. If you need to continue adding actions to the action set, click the "+" control in the sequence prompt bar, and then select the action you want to add from the action list to add it to the action set.
[0230] In order to avoid conflicts caused by one current action corresponding to multiple fourth action sets, when editing the action set, the starting move is only assigned to one fourth action set. After the starting move is used, the icon of the action can be locked, and a prompt will be given that the icon cannot be set as the starting move repeatedly. In this way, other action sets will no longer be able to select the action corresponding to the starting move.
[0231] After the second action control is displayed at the predetermined position, if there is a touch operation on the second action control, the virtual character is controlled to perform the second action, and the third action control is displayed at the predetermined position. If no touch operation on the second action control is received within the first duration of the second action control being displayed, the second action control displayed at the predetermined position is cancelled, and the third action control is no longer displayed at the predetermined position.
[0232] The fourth action set is an action set determined from at least two action sets according to the current action. For example, the current action of the virtual character is the first-ranked action in the fourth action set. Alternatively, in order to associate an action with the fourth action set, as a possible implementation, the fourth action set is configured with a starting move, which may not be an action included in the fourth action set, or may be the first action included in the fourth action set; each fourth action set is configured with a starting move, and different fourth action sets correspond to different starting moves, so that when the current action of the virtual character is the same as the starting move, a second action control corresponding to the second action is provided in the graphical user interface according to the current action of the virtual character and the fourth action set.
[0233] When the attack control is touched to trigger the virtual character to perform an attack action, if the attack action is a starting move of the fourth action set, a second action control corresponding to the second action is provided in the graphical user interface according to the fourth action set.
[0234] In order to better prompt the user, the second action control displayed at the above-mentioned predetermined position can also be marked with collective prompt information, for example, text prompt information or symbol prompt information is displayed on the edge of the second action control, so that the user knows that the second action control is a special control followed by the next action, and the virtual character can be controlled continuously by clicking the controls displayed at the predetermined position in sequence.
[0235] Optionally, the various moves in the fourth action set can be displayed cyclically at the above predetermined position, and are not limited to displaying the above second action and the control corresponding to the second action, nor are they limited to stopping displaying the last move in the fourth action set. The icon of the above second action control can be consistent with the action content. For example, if the second action control is a jump control, then it can be used Fig.10 In the form of jump control 1008.
[0236] The above-mentioned providing the second action control corresponding to the second action in the graphical user interface according to the current action of the virtual character and the fourth action set includes: providing the second action control corresponding to the second action in the graphical user interface according to the virtual weapon used by the virtual character, the current action of the virtual character and the fourth action set. This method can meet the needs of users in the game to use different fourth action sets with different weapons, making the control of the virtual character more in line with actual application scenarios.
[0237] As a possible implementation, the above-mentioned providing a second action control corresponding to the second action in the graphical user interface based on the virtual weapon used by the virtual character, the current action of the virtual character and the fourth action set includes: determining a candidate action set based on the virtual weapon used by the virtual character; determining a fourth action set from the candidate action set based on the current action of the virtual character; and providing a second action control corresponding to the second action in the graphical user interface based on the current action of the virtual character and the action sequence of the fourth action set.
[0238] The above-mentioned virtual weapon can correspond to multiple action sets, and these action sets are the above-mentioned candidate action sets. The correspondence between virtual weapons and action sets can be customized. Fig.18 The schematic diagram of the editing interface of the correspondence between virtual weapons and action sets shown in the figure, the left side of the figure is a list of virtual weapons, providing virtual weapons for selection, such as: long sword, long sword, broadsword, dagger, gun and nunchaku. The right side is the editing interface of the fourth action set corresponding to the currently selected virtual weapon. Each virtual weapon can have multiple sets of fourth action sets. The action set corresponding to the long sword (the diagonal box in the figure represents the currently selected virtual weapon) includes scheme 1, scheme 2 and scheme 3 as an example. Scheme 1 includes normal attack, rising dragon, one stage of charging and two stages of charging. The actions in the set can be added and the order of the actions in the set can be modified through the editing control. At the same time, it can also include editing the corresponding action set through the editing controls corresponding to schemes 2 and 3.
[0239] In the above manner, the same action can be repeatedly used as a starting move in candidate action sets corresponding to different virtual weapons, while in candidate action sets corresponding to the same virtual weapon, the starting moves of each set are different.
[0240] The actions in the above-mentioned fourth action set can be actions corresponding to non-resident controls in the graphical user interface, or actions corresponding to resident controls in the graphical user interface. The actions in the fourth action set can be triggered by resident controls in the graphical user interface, or by action controls at predetermined positions, and the two do not affect each other.
[0241] As a possible implementation, the size and transparency of the action control (the control corresponding to the action in the fourth action set) displayed at the above-mentioned predetermined position and the position of the predetermined position in the graphical user interface can be customized according to user preferences. The action control displayed at the above-mentioned predetermined position can use the same icon, or can switch to display icons corresponding to different actions according to the order of the actions in the fourth action set.
[0242] The second action is the next action in the fourth action set to the current action (i.e., the action most recently performed by the avatar). For example, if the avatar is currently performing a normal attack action, then according to the action sequence in the fourth action set, the second action is the next action adjacent to the normal attack action.
[0243] As a possible implementation, the method further includes: in response to the click operation on the first attack control, controlling the virtual character to perform the first attack action, receiving a click operation on the first attack control within a first time after the virtual character performs the first attack action, and controlling the virtual character to perform a fourth attack action. The fourth attack action may be a stronger charge attack or heavy attack action than the first attack action. That is, the user can continuously click on the same attack control within a certain period of time to achieve different attack damages to the enemy virtual character.
[0244] As a possible implementation, the method further includes: receiving a click operation on the first attack control a first time after the virtual character is controlled to perform the first attack action in response to the click operation on the first attack control, and controlling the virtual character to perform the first attack action. If a click operation on the first attack control is received again after the first time, the virtual character is controlled to perform the first attack action, so that multiple attacks of the same degree can be achieved with the same attack control.
[0245] Based on the above method embodiment, the present disclosure also provides a virtual character control device, see Fig.19 , the device comprises:
[0246] A control display module 191, configured to display a first attack control on a graphical user interface;
[0247] The character control module 192 is used to respond to the first touch operation applied to the first attack control. If the first touch operation is a click operation, the virtual character is controlled to perform the first attack action corresponding to the first attack control; if the first touch operation is a sliding operation, the first target action is determined from the first action set according to the sliding operation, and the virtual character is controlled to perform the first target action.
[0248] The above device displays a first attack control in a graphical user interface, and the user controls the virtual character to perform a first attack action by touching the control. The user can also determine the first target action from the first action set by touching the first attack control, and control the virtual character to perform the first target action; that is, the first attack control can not only control the virtual character to perform the first attack action, but also control the virtual character to perform the first target action. Specifically, if the first touch operation acting on the first attack control is a click operation, the virtual character is controlled to perform the first attack action. If the first touch operation is a slide operation, the first target action is determined from the first action set according to the slide operation, and the virtual character is controlled to perform the first target action. The first target action can be the above-mentioned first attack action or other actions. If the user needs to control the virtual character to perform the first attack action, it can be done by clicking the first attack control originally displayed in the graphical user interface. If the user needs to control the virtual character to perform jumping actions, defensive actions, etc., in addition to being realized by touching the jumping control, defensive control, etc. originally displayed in the graphical user interface, it can also be realized by sliding the first attack control. The above method of determining the first target action from the first action set according to the sliding operation enables the user to more quickly and coherently realize the continuation of the first attack action and the first target action. When it is necessary to control the virtual character to perform an action in the first action set, the first target action can be accurately determined from the first action set according to the sliding operation by only acting on the first attack control, without the user having to lift his finger and click other controls of the graphical user interface. During the entire process from the first attack action to the first target action of the virtual character, the user does not need to find and locate another control (controls corresponding to actions such as defensive actions and jumping actions) in the interface. By sliding on the first attack control, the first target action can be easily determined from the first action set, and then the virtual character can be controlled to perform the first target action, realizing the rapid control of the virtual character, such as rapid control of attack moves or attack and defense conversion. In this operation process, the user can realize control switching without lifting his finger or shifting his sight. The user can react quickly in the interaction, the operation is more convenient, and the problem of misoperation caused by more interface controls is effectively alleviated. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0249] The first action set includes direction information and action information corresponding to the direction information; accordingly, the character control module 192 is also used to: determine the action in the first action set that matches the direction of the sliding operation as the first target action.
[0250] The character control module 192 is further used to determine a first target action from a first action set according to the sliding operation and the state of the virtual character.
[0251] The first action set includes at least two action subsets; accordingly, the character control module 192 is further used to: determine a target action subset from the first action set according to the state of the virtual character; and determine a first target action from the target action subset according to the sliding operation.
[0252] The states of the virtual character include: a ground state and a floating state.
[0253] The first action set is a user-defined set.
[0254] The character control module 192 is also used to: if the first touch operation is a long press operation, display a first control set, and determine a first target control from the controls included in the first control set based on a sliding operation continuous with the long press operation, and control the virtual character to perform an action corresponding to the first target control, wherein the controls included in the first control set correspond to the actions included in the first action set.
[0255] The first action set includes a first sub-action set and a second sub-action set, the first sub-action set is an action set corresponding to resident controls in the graphical user interface, and the second sub-action set is an action set corresponding to non-resident controls in the graphical user interface.
[0256] A direction directed from the first attack control to a third control in the first control set is different from a direction directed from the first control to a fourth control in the first control set.
[0257] The character control module 192 is further used to: confirm a first target action from the first action set according to a sliding trajectory of the sliding operation.
[0258] The character control module 192 is further configured to: if the first touch operation is a sliding operation, determine a first target action from the first action set according to the sliding operation, and determine whether an action interruption condition is satisfied according to the current action state of the virtual character and the first target action; if satisfied, control the virtual character to perform the first target action. If not satisfied, do not control the virtual character to perform the first target action. Alternatively, if not satisfied, control the virtual character to continue to perform the currently unfinished action.
[0259] The character control module 192 is also used to receive a click operation on the first attack control within a first time after responding to a click operation on the first attack control and controlling the virtual character to perform a fourth attack action.
[0260] The character control module 192 is also used to receive a click operation applied to the first attack control a first time after responding to the click operation applied to the first attack control and controlling the virtual character to perform the first attack action, and control the virtual character to perform the first attack action.
[0261] The control display module 191 is further used to display a first control on a graphical user interface. Accordingly, the character control module 192 is further used to respond to a second touch operation on the first control and control the virtual character to execute an action corresponding to the first control.
[0262] The action corresponding to the first control may be a non-offensive action. The action corresponding to the first control may be a defensive action, a dodging action, a jumping action, a squatting action or a crawling action.
[0263] Optionally, the first action set includes actions corresponding to the first control.
[0264] The first control and the first attack control displayed in the above graphical user interface are resident controls in the graphical user interface. The first action set includes a first sub-action set and a second sub-action set, the first sub-action set is an action set corresponding to the resident controls in the graphical user interface, and the second sub-action set is an action set corresponding to the non-resident controls in the graphical user interface.
[0265] The first control set includes a first sub-control set and a second sub-control set. The controls included in the first sub-control set are a subset of resident controls, and the controls included in the second sub-control set are a subset of non-resident controls.
[0266] The control display module 191 is further used to: display a second attack control on a graphical user interface, wherein an attack angle of a first attack action corresponding to the first attack control is different from an attack angle of a second attack action corresponding to the second attack control.
[0267] The character control module 192 is also used to: respond to the third touch operation on the second attack control, if the third touch operation is a click operation, control the virtual character to perform the second attack action corresponding to the second attack control; if the third touch operation is a slide operation, determine the second target action from the second action set according to the slide operation, and control the virtual character to perform the second target action. If the third touch operation is a long press operation, display the second control set, and determine the second target control from the controls included in the second control set according to the slide operation continuous with the long press operation, and control the virtual character to perform the action corresponding to the second target control; wherein the controls included in the second control set correspond to the actions included in the second action set.
[0268] The control display module 191 is further configured to cancel display of the second control set. Optionally, in response to the end of the third touch operation, the second control set is canceled.
[0269] The character control module 192 is further configured to control the virtual character to perform a third attack action if the first touch operation is a long press operation and the press duration is greater than or equal to the first time threshold. If the first touch operation is a long press operation, control the virtual character to perform a preparatory action for the third attack action, and control the virtual character to perform the third attack action after the press duration is greater than or equal to the first time threshold. If the first touch operation is a long press operation and at the end of the long press operation, the press duration of the long press operation is greater than or equal to the first time threshold and less than the second time threshold, then trigger the virtual character to perform the third attack action at the end of the long press operation, wherein the second time threshold is greater than the first time threshold. If the first touch operation is a long press operation and the press duration of the long press operation is equal to the second time threshold, automatically trigger the virtual character to perform the third attack action. If the first touch operation is a long press operation and the press duration of the long press operation is greater than or equal to the first time threshold and less than the second time threshold, in response to the continuous sliding operation of the long press operation, determine a third target action from the first action set, and control the virtual character to perform the third target action.
[0270] Optionally, the character control module 192 is further used to confirm a first target action from the first action set according to a sliding trajectory of the sliding operation.
[0271] The control display module 191 is further used to display a first wheel including a first control set, where controls in the first control set are arranged in the first wheel.
[0272] The first wheel mentioned above revolves around the first attack control.
[0273] The first wheel surrounds a preset position in a blank area of the graphical user interface.
[0274] A direction pointed from the first attack control to a third control in the first control set is different from a direction pointed from the first attack control to a fourth control in the first control set.
[0275] The above-mentioned control display module 191 is also used to display a first control indication in a first direction of the first attack control, and to display a second control indication in a second direction of the first attack control, wherein the first control indication is used to represent that when the first control set corresponding to the first attack control is displayed, controls in the first control set are displayed in the first direction of the first attack control; the second control indication is used to represent that when the first control set corresponding to the first attack control is displayed, controls in the first control set are displayed in the second direction of the first attack control.
[0276] An angle between a ray starting from the first attack control and pointing to a third control in the first control set and a ray starting from the first attack control and pointing to a fourth control in the first control set is greater than an angle threshold.
[0277] The above-mentioned first control is a dodge control; the character control module 192 is also used to: respond to a click operation on the dodge control, control the virtual character to perform a first dodge action; respond to a long press operation on the dodge control, control the virtual character to perform a second dodge action, wherein the dodge distance and / or the state after dodge of the first dodge action and the second dodge action are different, and the state includes: jogging or sprinting.
[0278] The first attack action may be a contact attack action performed by the virtual character's limbs and / or weapons.
[0279] The character control module 192 is also used for: if the first touch operation is a sliding operation, determining the first target control from the controls included in the first control set according to the sliding operation, and determining whether the action interruption condition is met according to the current action state of the virtual character and the action corresponding to the first target control; if met, controlling the virtual character to perform the action corresponding to the first target control.
[0280] The graphical user interface also includes a sixth control, which is a jump control. The character control module 192 is also used to: respond to the fourth touch operation acting on the sixth control, if the fourth touch operation is a click operation, control the virtual character to perform a jump action; if the fourth touch operation is a slide operation, determine the fourth target action from the third action set according to the slide operation, and control the virtual character to perform the fourth target action; the third action set at least includes a crouching action. If the fourth touch operation is a long press operation, display the third control set, and determine the fourth target control from the controls included in the third control set according to the slide operation continuous with the long press operation, and control the virtual character to perform the action corresponding to the fourth target control; in response to the end of the fourth touch operation, cancel the display of the third control set. And in response to the end of the fourth touch operation, cancel the display of the third control set.
[0281] The control display module 191 is also used to: display a seventh control on the graphical user interface, wherein the seventh control is a skill control for triggering the virtual character to perform a skill release, and the second control is an action control for triggering the virtual character to perform a first attack action.
[0282] The skills corresponding to the above skill controls have a cooldown time, while the actions corresponding to the action controls have no cooldown time.
[0283] The virtual environment corresponding to the above-mentioned graphical user interface includes a first virtual character and a second virtual character, the skills possessed by the first virtual character are different from the skills possessed by the second virtual character; and both the first virtual character and the second virtual character can perform a first attack action.
[0284] The first attack action is a contact attack action performed by the virtual character's limbs and / or weapons.
[0285] Based on the above method embodiment, the present disclosure also provides a virtual character control device, see Fig. 20 As shown, the device comprises:
[0286] A control providing module 2201, configured to provide a second action control corresponding to the second action at a predetermined position of the graphical user interface according to the current action of the virtual character and the fourth action set;
[0287] The operation execution module 2202 controls the virtual character to execute the second action in response to the triggering operation on the second action control.
[0288] The above device provides a second action control corresponding to the second action at a predetermined position of the graphical user interface according to the current action of the virtual character and the fourth action set when the virtual character performs the current action, so that it is more convenient to trigger the virtual character to perform the second action when the virtual character performs the current action. The method of providing the second action control at the predetermined position can reduce the control redundancy in the second action control resident page, and can also facilitate the touch of the second action control, reducing the problem of accidentally touching the control.
[0289] The fourth action set includes at least two actions and an action sequence.
[0290] The control providing module 2201 is further configured to provide a second action control corresponding to the second action in the graphical user interface according to the current action of the virtual character and the action sequence of the fourth action set.
[0291] The control providing module 2201 is also used to provide a third action control corresponding to a third action at the predetermined position of the graphical user interface according to the second action and the fourth action set; accordingly, the operation execution module 2202 is also used to respond to a trigger operation on the third action control and control the virtual character to perform the third action.
[0292] The fourth action set is an action set determined from at least two action sets according to the current action. The current action is a first-order action in the second action set.
[0293] Furthermore, the control providing module 2201 is also used to provide a second action control corresponding to the second action in the graphical user interface according to the virtual weapon used by the virtual character, the current action of the virtual character and the fourth action set.
[0294] The control providing module 2201 is also used to determine a candidate action set based on the virtual weapon used by the virtual character; determine a fourth action set from the candidate action set based on the current action of the virtual character; and provide a second action control corresponding to the second action in the graphical user interface based on the current action of the virtual character and the action sequence of the fourth action set.
[0295] As a possible implementation manner, the second action is the next-order action of the current action in the fourth action set.
[0296] The virtual character control device provided in the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned virtual character control method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the virtual character control device, reference may be made to the corresponding contents in the aforementioned virtual character control method embodiment.
[0297] The present disclosure also provides an electronic device, such as Fig.21 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device 100 includes a processor 1201 and a memory 1200, the memory 1200 stores computer executable instructions that can be executed by the processor 1201, and the processor 1201 executes the computer executable instructions to implement the above-mentioned virtual character control method.
[0298] exist Fig.21 In the illustrated embodiment, the electronic device 100 further includes a bus 1202 and a communication interface 1203 , wherein the processor 1201 , the communication interface 1203 and the memory 1200 are connected via the bus 1202 .
[0299] Among them, the memory 1200 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 1203 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 1202 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 1202 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.21 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0300] The processor 1201 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1201. The above processor 1201 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiment of the present disclosure can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 1201 reads the information in the memory and completes the steps of the virtual character control method of the above embodiment in combination with its hardware.
[0301] The embodiment of the present disclosure also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned virtual character control method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0302] The computer program product of the virtual character control method, device and electronic device provided in the embodiments of the present disclosure includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method in the previous method embodiment. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0303] Unless otherwise specifically stated, the relative steps, numerical expressions and numerical values of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.
[0304] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0305] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0306] Finally, it should be noted that the above embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A virtual character control method, characterized in that: The method comprises: displaying a first control and a first attack control on a graphical user interface; In response to a first touch operation applied to the first attack control, if the first touch operation is a click operation, controlling the virtual character to perform a first attack action corresponding to the first attack control; if the first touch operation is a slide operation, determining a target action subset from the first action set according to a state of the virtual character, and determining a first target action from the target action subset according to the slide operation; In response to a second touch operation applied to the first control, the virtual character is controlled to perform an action corresponding to the first control, where the action corresponding to the first control is a non-aggressive action.
2. The method according to claim 1, characterized in that The target action subset includes direction information and action information corresponding to the direction information; and determining the first target action from the first action set according to the sliding operation includes: An action in the first action set that matches the direction of the sliding operation is determined as a first target action.
3. The method according to claim 1, characterized in that: The determining a first target action from a target action subset according to the sliding operation includes: A first target action is determined from a target action subset according to the sliding operation and the state of the virtual character.
4. The method according to claim 1, characterized in that The first action set includes actions corresponding to the first control.
5. The method according to claim 1, characterized in that The state of the virtual character is the position state of the virtual character and / or the posture of the virtual character.
6. The method according to claim 1, characterized in that The first action set is a user-defined set.
7. The method according to claim 6, characterized in that Different action subsets may be set corresponding to different states of the virtual character.
8. The method according to claim 6, characterized in that Two or more action subsets may be set for the same state of the virtual character.
9. The method according to claim 7 or 8, characterized in that: The action subset may include repeated actions.
10. The method according to claim 6, characterized in that The method comprises: Providing a user-defined editing interface for the first action set; The user-defined editing interface includes a first action set presentation area and an optional action presentation area; wherein the first action set presentation area includes action controls corresponding to the actions included in the first action set, and the optional action presentation area includes action controls that can be added to the first action set presentation area.
11. The method according to claim 10, characterized in that The user-defined editing interface includes selection entries for different states of the virtual character.
12. The method according to claim 10, characterized in that The user-defined editing interface includes different first action set selection entrances for the same state.
13. The method according to claim 10, characterized in that The user-defined editing interface provides a function of adding and / or deleting action controls presented in the first action set presentation area.
14. The method according to claim 10, characterized in that The first action set presentation area is divided into a plurality of sub-areas, and the number of the sub-areas is equal to the number of actions in the first action set, or the number of the sub-areas is greater than the number of actions in the first action set.
15. The method according to claim 10, characterized in that The user-defined editing interface includes a reset control and / or a save control.
16. The method according to claim 1, characterized in that The target action subset includes combined actions.
17. The method according to claim 1, characterized in that The action corresponding to the first control is a defensive action, a dodging action, a jumping action, a crouching action, a sliding action or a crawling action.
18. The method according to claim 1, characterized in that The states of the virtual character include: a ground state and a floating state.
19. The method according to claim 1, characterized in that The first control and the first attack control displayed by the graphical user interface are resident controls in the graphical user interface.
20. The method according to claim 1, characterized in that The target action subset includes actions corresponding to resident controls in the graphical user interface and actions corresponding to non-resident controls in the graphical user interface.
21. The method according to claim 1, characterized in that The method further comprises: A first control indication is displayed in a first direction of the first attack control, and a second control indication is displayed in a second direction of the first attack control, wherein the first control indication is used to represent that when a first control set corresponding to the first attack control is displayed, controls in the first control set are displayed in the first direction of the first attack control; the second control indication is used to represent that when the first control set corresponding to the first attack control is displayed, controls in the first control set are displayed in the second direction of the first attack control; wherein the first control set is a set of controls corresponding to actions in the target action subset.
22. The method according to claim 21, characterized in that An angle between a ray starting from the first attack control and pointing to a third control in the first control set and a ray starting from the first attack control and pointing to a fourth control in the first control set is greater than an angle threshold.
23. The method according to claim 1, characterized in that The first control is a ducking control; and the method comprises: In response to a click operation on the dodge control, controlling the virtual character to perform a first dodge action; In response to a long press operation on the dodge control, the virtual character is controlled to perform a second dodge action, wherein the dodge distance and / or the state after the dodge are different between the first dodge action and the second dodge action, and the state includes: jogging or sprinting.
24. The method according to claim 1, characterized in that The graphical user interface also includes a sixth control, which is a jump control. The method includes: In response to the fourth touch operation applied to the sixth control, if the fourth touch operation is a click operation, the virtual character is controlled to perform a jumping action; if the fourth touch operation is a sliding operation, a fourth target action is determined from a third action set according to the sliding operation, and the virtual character is controlled to perform the fourth target action; the third action set at least includes a crouching action.
25. The method according to claim 1, characterized in that The method comprises: A seventh control is displayed on the graphical user interface, wherein the seventh control is a skill control for triggering the virtual character to release a skill, and the first attack control is an action control for triggering the virtual character to perform a first attack action.
26. The method according to claim 25, characterized in that The skill corresponding to the skill control has a cooling time, and the action corresponding to the action control has no cooling time.
27. The method according to claim 25, characterized in that The virtual environment corresponding to the graphical user interface includes a first virtual character and a second virtual character, the skills of the first virtual character are different from the skills of the second virtual character; and both the first virtual character and the second virtual character can perform the first attack action.
28. The method according to claim 1, characterized in that The first attack action is a contact attack action performed by the virtual character's limbs and / or weapons.
29. The method according to claim 1, characterized in that If the first touch operation is a sliding operation, determining a first target action from the first action set according to the sliding operation, and controlling the virtual character to perform the first target action, includes: If the first touch operation is a sliding operation, determining a first target action from the first action set according to the sliding operation, and determining whether an action interruption condition is satisfied according to the current action state of the virtual character and the first target action; If the conditions are met, the virtual character is controlled to perform the first target action.
30. The method according to claim 29, characterized in that The method comprises: If not satisfied, the virtual character is not controlled to perform the first target action.
31. The method according to claim 29, characterized in that The method comprises: If not satisfied, the virtual character is controlled to continue to perform the currently unfinished action.
32. The method according to claim 1, characterized in that The method comprises: providing a second action control corresponding to the second action at a predetermined position of the graphical user interface according to the current action of the virtual character and the fourth action set; In response to a triggering operation on the second action control, the virtual character is controlled to perform the second action.
33. The method according to claim 32, characterized in that The fourth action set includes at least two actions and an action sequence.
34. The method according to claim 33, characterized in that The providing a second action control corresponding to the second action in the graphical user interface according to the current action of the virtual character and the fourth action set includes: A second action control corresponding to the second action is provided in the graphical user interface according to the current action of the virtual character and the action sequence of the fourth action set.
35. The method according to claim 32, characterized in that The method comprises: providing a third action control corresponding to a third action at the predetermined position of the graphical user interface according to the second action and the fourth action set; In response to a triggering operation on the third action control, the virtual character is controlled to perform the third action.
36. The method according to claim 32, characterized in that The fourth action set is an action set determined from at least two action sets according to the current action.
37. The method according to claim 32, characterized in that The providing a second action control corresponding to the second action in the graphical user interface according to the current action of the virtual character and the fourth action set includes: A second action control corresponding to the second action is provided in the graphical user interface according to the virtual weapon used by the virtual character, the current action of the virtual character and the fourth action set.
38. The method according to claim 37, characterized in that The providing a second action control corresponding to the second action in the graphical user interface according to the virtual weapon used by the virtual character, the current action of the virtual character and the fourth action set comprises: Determining a candidate action set according to the virtual weapon used by the virtual character; Determining a fourth action set from the candidate action set according to the current action of the virtual character; A second action control corresponding to the second action is provided in the graphical user interface according to the current action of the virtual character and the action sequence of the fourth action set.
39. The method according to claim 33, characterized in that The second action is the next-order action of the current action in the fourth action set.
40. The method according to claim 1, characterized in that The method comprises: In response to the click operation on the first attack control, the virtual character is controlled to perform a first attack action, and within a first time after the click operation on the first attack control is received, the virtual character is controlled to perform a fourth attack action.
41. The method according to claim 1, characterized in that The method comprises: A first time after responding to a click operation on the first attack control and controlling the virtual character to perform a first attack action, a click operation on the first attack control is received and the virtual character is controlled to perform the first attack action.
42. An electronic device, characterized in that: It includes a processor and a memory, the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the virtual character control method described in any one of claims 1 to 41.
43. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by the processor, the computer-executable instructions prompt the processor to implement the virtual character control method described in any one of claims 1 to 41.
Citation Information
Cited By
Interaction method and device in virtual scene, equipment and storage medium
CN119597173A
