Methods, apparatus, electronic devices, and storage media for controlling virtual characters
The method enhances virtual character control in action games by using click and slide operations on a graphical user interface to facilitate seamless transitions between attack and defense actions, improving control consistency and speed.
Patent Information
- Application Number
- JP2024538961
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-04-21
- Filing Date
- 2023-05-15
- Publication Date
- 2026-11-19
- Estimated Expiration
- 2043-05-15
AI Technical Summary
Existing methods for controlling virtual characters in action games using touch devices face issues with inconsistent and error-prone control transitions between attack and defense actions due to limitations in human-computer interaction.
A method and apparatus that utilize a graphical user interface where a click operation performs an attack action and a slide operation determines a target action from a predefined set, allowing seamless transitions without lifting the finger or shifting gaze, enhancing control consistency and speed.
Enables rapid and consistent control of virtual characters by allowing users to switch between attack and defense actions intuitively through touch operations, reducing errors and improving user interaction efficiency.
Smart Images

Figure 0007954211000001 
Figure 0007954211000002 
Figure 0007954211000003
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This disclosure claims priority to a Chinese patent application filed on April 21, 2023, with application number 202310452466.4 and entitled "Method, Apparatus, Electronic Device and Storage Medium for Controlling Virtual Character", the content of which is incorporated into this disclosure by reference in its entirety.
[0002] This disclosure claims priority to a Chinese patent application filed on May 19, 2022, with application number 202210558052.5 and entitled "Method, Apparatus and Electronic Device for Controlling Virtual Character", the content of which is incorporated into this disclosure by reference in its entirety. TECHNICAL FIELD
[0003] The present disclosure relates to the field of game technology, and in particular, to a method for controlling a virtual character, an apparatus for controlling a virtual character, an electronic device, and a storage medium. BACKGROUND ART
[0004] Action games (ACT) are a type of electronic game. In a broad sense, they refer to all real-time interactive games containing action elements, such as shooting games and sports games. In a narrow sense, they refer to games that use physical combat and cold weapons as the main combat means.
[0005] In recent years, with the popularization of mobile terminals, a large number of shooting games for mobile touch terminals have emerged. 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 modifiable combat attack actions, and more flexible conversion between attack and defense.
[0006] Because of the limitations imposed by touch as a method of human-computer interaction, technical solutions related to the physical combat and / or combat control of virtual characters using cold weapons on touch devices may face the following technical problems: namely, when a player controls a virtual character to change attack actions or switch between offense and defense, the controls may be inconsistent and prone to accidental touches. [Overview of the Initiative] [Problems that the invention aims to solve]
[0007] This disclosure provides a method for controlling a virtual character, an apparatus for controlling a virtual character, an electronic device, and a computer-readable storage medium that at least partially resolve the shortcomings of related technical solutions. [Means for solving the problem]
[0008] In a first aspect, one embodiment of the present disclosure provides a method for controlling a virtual character, the method comprising: displaying a first attack control on a graphical user interface; and, in response to a first touch operation acting on the first attack control, controlling the virtual character to perform a first attack action corresponding to the first attack control if the first touch operation is a click operation; and, if the first touch operation is a slide operation, determining a first target action from a first set of actions in response to the slide operation, and controlling the virtual character to perform the first target action.
[0009] In a second aspect, an embodiment of the present disclosure also provides a device for controlling a virtual character, the device comprising: a control display module configured to display a first attack control on a graphical user interface; and a character control module configured to control the virtual character to perform a first attack action corresponding to the first attack control in response to a first touch operation acting on the first attack control, if the first touch operation is a click operation, and if the first touch operation is a slide operation, to determine a first target action from a first set of actions in response to the slide operation and control the virtual character to perform the first target action.
[0010] In a third aspect, an embodiment of the present disclosure also provides an electronic device comprising a processor and memory, the memory storing computer executable instructions that can be executed by the processor, and the processor implementing a method for executing computer executable instructions to control the aforementioned virtual character.
[0011] In a fourth aspect, an embodiment of the present disclosure also provides a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement a method for controlling the aforementioned virtual characters.
[0012] In a method for controlling a virtual character provided by one embodiment of the present disclosure, a user (player) can control the virtual character to perform a first attack action by touching a first attack control on a graphical user interface, and the user can also determine a first target action from a first action set and control the virtual character to perform the first target action by touching the first attack control on the graphical user interface. That is, the first attack control can not only control the virtual character to perform a first attack action, but also control the virtual character to perform a 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 a first attack action, and if the first touch operation is a slide operation, the first target action is determined from the first action set in response to the slide operation and the virtual character is controlled to perform the first target action. The first target action may be the first attack action described above, or it may be any other action. In this way, when a user needs to control the virtual character to perform a first attack action, they can do so by clicking the first attack control originally displayed in the graphical user interface. Similarly, when a user needs to control the virtual character to perform actions such as jump actions or defensive actions, they can do so by sliding the first attack control, in addition to touching the jump controls, defensive controls, etc., originally displayed in the graphical user interface. This method of determining the first target action from the first action set in response to the sliding operation allows the user to perform the continuation of the first attack action and the first target action more quickly and consistently.When it is necessary to control a virtual character to perform an action in a first action set, the user can accurately determine the first target action from the first action set simply by sliding on the first attack control, without having to lift their finger and click on other controls in the graphical user interface. Throughout the entire process of the virtual character from the first attack action to the first target action, the user does not need to find and position other controls within the interface (controls corresponding to defensive actions, jump actions, etc.), but can easily determine the first target action from the first action set simply by sliding on the first attack control, and then trigger the virtual character to perform the first target action. This enables rapid control of the virtual character, such as high-speed control of changes in attack behavior or transitions between offense and defense. In this operation process, the user can switch controls without lifting their finger or shifting their gaze, and the user can respond quickly during interaction, making operation more convenient and effectively reducing the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation. [Brief explanation of the drawing]
[0013] To more clearly illustrate the technical solutions in specific embodiments of this disclosure or related technologies, the following drawings are briefly presented as necessary for use in describing those specific embodiments or related technologies. Obviously, the drawings in the following description are some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these without any creative effort. [Figure 1] This is a schematic flowchart of a method for controlling a virtual character provided by one embodiment of the present disclosure. [Figure 2] This is a schematic flowchart of a method for controlling another virtual character provided by one embodiment of the present disclosure. [Figure 3] This is a schematic diagram of a graphical user interface provided by one embodiment of the present disclosure. [Figure 4] This is a schematic flowchart of a method for controlling another virtual character provided by one embodiment of the present disclosure. [Figure 5] This is a schematic diagram of a graphical user interface corresponding to a close-range combat scene provided by one embodiment of the present disclosure. [Figure 6] This is a schematic diagram of a graphical user interface corresponding to another close-range combat scene provided by one embodiment of the present disclosure. [Figure 7] This is a schematic diagram of another graphical user interface provided by one embodiment of the present disclosure. [Figure 8] This is a schematic diagram of another graphical user interface provided by one embodiment of the present disclosure. [Figure 9] This is a schematic diagram of an attack scene provided by one embodiment of the present disclosure. [Figure 10] This is a schematic diagram of another graphical user interface provided by one embodiment of the present disclosure. [Figure 11] This is a schematic diagram of another graphical user interface provided by one embodiment of the present disclosure. [Figure 12] This is a schematic flowchart of a method for controlling another virtual character provided by one embodiment of the present disclosure. [Figure 13] This is a schematic flowchart of a method for controlling another virtual character provided by one embodiment of the present disclosure. [Figure 14] This is a schematic diagram of a method for defining action subsets and character states provided by one embodiment of the present disclosure. [Figure 15] This is a schematic diagram of another method for defining action subsets and character states provided by one embodiment of the present disclosure. [Figure 16]is a schematic diagram of another method for defining action subsets and character states provided by an embodiment of the present disclosure. [Figure 17] is a schematic flowchart of another method for controlling a virtual character provided by an embodiment of the present disclosure. [Figure 18] is a schematic diagram of a custom editing interface for an action set provided by an embodiment of the present disclosure. [Figure 19] is a schematic diagram of an editing interface for the correspondence between a virtual weapon and an action set provided by an embodiment of the present disclosure. [Figure 20] is a schematic structural diagram of an apparatus for controlling a virtual character provided by an embodiment of the present disclosure. [Figure 21] is a schematic structural diagram of another apparatus for controlling a virtual character provided by an embodiment of the present disclosure. [Figure 22] is a schematic structural diagram of another apparatus for controlling a virtual character provided by an embodiment of the present disclosure. [Figure 23] is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION OF EMBODIMENTS
[0014] The technical solutions of the present disclosure will be described clearly and completely below with reference to the embodiments. It is apparent that the described embodiments are a part rather than all of the embodiments of the present disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
[0015] First, terms related to the present disclosure will be described.
[0016] (1) Virtual scene (game scene) A virtual scene is a virtual scene that is displayed (or provided) when an application is running on a terminal or server. Optionally, the virtual scene may be a simulated environment of the real world, a semi-simulated and semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be a 2D virtual scene, a 2.5D virtual scene, or a 3D virtual scene, and the virtual environment may be the sky, land, or sea, with the land including environmental elements such as deserts and cities. Of these, a virtual scene is a scene with complete game logic for virtual objects controlled by the user. For example, in a sandbox 3D shooting game, the virtual scene is a 3D game world for the player to control virtual objects for combat, and examples of virtual scenes include at least one element from mountains, plains, rivers, lakes, seas, deserts, skies, plants, buildings, and vehicles. For example, in a 2D or 2.5D card game, a virtual scene is a scene that displays the release of cards or virtual objects corresponding to cards, and examples of virtual scenes include arenas, battlefields, or other "field" elements or other elements that can display the situation of a card battle. In a 2D or 2.5D multiplayer online tactical competitive game, a virtual scene is a 2D or 2.5D terrain scene for virtual objects to battle in, and examples of virtual scenes include elements such as canyon-style mountains, railway tracks, rivers, classrooms, tables and chairs, and lecterns.
[0017] (2) Game Interface A game interface refers to an interface corresponding to an application provided or displayed through a graphical user interface, and such interface includes a UI interface and a game screen for player interaction. In an optional embodiment, the UI interface may include game controls (e.g., skill controls, movement controls, function controls), indicators (e.g., directional indicators, role indicators), information display areas (e.g., kill count, game time), or game setting controls (e.g., system settings, store, gold coins). In an optional embodiment, the game screen is a display screen corresponding to a virtual scene displayed by a terminal device, and the game screen may include virtual objects such as game characters, NPC characters, and AI characters that execute game logic within the virtual scene.
[0018] (3) Virtual objects A virtual object refers to a dynamic object that can be controlled in a virtual scene. Optionally, such a dynamic object may be a virtual person, a virtual animal, an animated person, etc. The virtual object may be a character controlled by a player via an input device, or an artificial intelligence (AI) set up for virtual environment combat through training, or a non-player character (NPC) set up for virtual scene combat. Optionally, the virtual object may be a virtual person competing in the virtual scene. Optionally, the number of virtual objects in the virtual scene combat may be predetermined or dynamically determined based on the number of clients participating in the combat, but is not limited to the embodiments of this disclosure. In one possible implementation, a user can control a virtual object to move within the virtual scene, for example, to run, jump, crawl, etc., and can also control a virtual object to fight other virtual objects using skills, virtual props, etc., provided by the application.
[0019] (4) Player Character A player character refers to a virtual object that a player can control and move within the game environment. It is also called a player virtual character or player virtual object, and in some electronic games, it may be called a Shikigami character or hero character. A player character can take at least one of several forms, such as a virtual person, virtual animal, or virtual vehicle.
[0020] In the course of a long-term research and development process, the applicant of this disclosure has discovered that, due to limitations imposed by the human-computer interaction method of touch, technical solutions related to the physical combat and / or combat control of virtual characters using cold weapons on touch terminals may have the following technical problems: namely, when a player controls a virtual character to change attack actions or switch between offense and defense, the controls are inconsistent and prone to errors. This disclosure provides a method, apparatus, electronic device, and computer-readable storage medium for controlling a virtual character that at least partially resolves the shortcomings of the relevant technical solutions.
[0021] The method for controlling a virtual character according to the present invention accepts control operations on the virtual character via a touch terminal device.
[0022] In one possible embodiment, the control logic code for the virtual character can be executed on a touch terminal device or a server. The touch terminal device may be a local terminal device. If the method for controlling the virtual character is executed on a server, this method can be implemented and executed based on a cloud interaction system, which includes a server and client devices.
[0023] In optional embodiments, various cloud applications, such as cloud games, can be run on the cloud interaction system. Taking cloud games as an example, cloud games refer to a gaming method based on cloud computing. In the execution mode of cloud games, the execution unit of the game program and the display unit of the game screen are separated, the storage and execution of the method for controlling virtual characters are completed on the cloud game server, and the role of the client device is to send and receive data and display the game screen. For example, the client device may be a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, or handheld computer, but the terminal device that performs information processing is the cloud game server in the cloud. When playing a game, the player operates the client device to send operation commands to the cloud game server, the cloud game server executes the game according to the operation commands, encodes and compresses data such as the game screen, and returns it to the client device via the network. Finally, the client device decodes and outputs the game screen.
[0024] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device is configured to store the game program and display the game screen. The local terminal device is configured to interact with the player through a graphical user interface, that is, to download, install, and run the game program through an electronic device as in the conventional way. The local terminal device can provide the graphical user interface to the player in various ways, for example, by rendering and displaying it on the terminal's display screen or by providing it to the player through holographic projection. For example, the local terminal device may include a display and a processor, the display being configured to display the graphical user interface, the graphical user interface including the game screen, and the processor being configured to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display.
[0025] In one possible embodiment, an embodiment of the present disclosure provides a method for controlling a virtual character and providing a graphical user interface via a touch terminal, where the touch terminal may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. Referring to Figure 1, a method for controlling a virtual character according to one embodiment of the present disclosure includes the following steps:
[0026] Step S102: Display the first attack control in the graphical user interface.
[0027] This embodiment provides a graphical user interface via a touch terminal, and optionally, in addition to the first attack control, the graphical user interface also includes at least a portion of the game scene and a virtual character (in particular, the player's virtual character).
[0028] In step S104, in response to a first touch operation acting on a first attack control, 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; if the first touch operation is a slide operation, a first target action is determined from a first action set in accordance with the slide operation, and the virtual character is controlled to perform the first target action.
[0029] The above method also allows the user to control a virtual character to perform a first attack action by displaying a first attack control on a touch graphical user interface, and by touching the control, the user can control a virtual character to perform a first attack action, or by touching the first attack control, the user can determine a first target action from a first action set 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 a first attack action, but also control the virtual character to perform a 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 a first attack action, and if the first touch operation is a slide operation, the first target action is determined from a first action set in response to the slide operation and the virtual character is controlled to perform the first target action. The first target action may be the first attack action described above, or it may be any other action. When a user needs to control a virtual character to perform a first attack action, they can do so by clicking the first attack control originally displayed in the graphical user interface. Similarly, when a user needs to control a virtual character to perform actions such as jumping or defending, they can do so by sliding the first attack control, in addition to touching the jump control, defending control, etc., originally displayed in the graphical user interface. This method of determining the first target action from the first action set in response to the aforementioned sliding operation allows the user to perform the continuation of the first attack action and the first target action more quickly and consistently.When it is necessary to control a virtual character to perform an action in a first action set, the user can accurately determine the first target action from the first action set simply by sliding on the first attack control, without having to lift their finger and click on other controls in the graphical user interface. Throughout the entire process of the virtual character from the first attack action to the first target action, the user does not need to find and position other controls within the interface (controls corresponding to defensive actions, jump actions, etc.), but can easily determine the first target action from the first action set simply by sliding on the first attack control, and then control the virtual character to perform the first target action. This enables rapid control of the virtual character, such as high-speed control of changes in attack behavior or transitions between offense and defense. In this operation process, the user can switch controls without lifting their finger or moving their gaze, and the user can respond quickly during interaction, making operation more convenient and effectively reducing the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0030] The primary target action here can be a non-attack action such as a jump action, a sword swing action, a dodge action, a sliding shovel action, a crawling action, or a crouching action.
[0031] The correspondence between actions in the first action set and slide operations can be pre-configured, and different actions can be associated with different slide operation modes. For example, the actions in the first action set correspond to the slide direction of a slide operation, and if the slide direction of the slide operation acting on the first attack control is different, the first target action determined from the first action set will be different depending on the slide operation. Based on this, the first action set includes direction information and action information corresponding to that direction information. Accordingly, determining the first target action from the first action set in response to the slide operation includes determining the action in the first action set that matches the direction of the slide operation as the first target action.
[0032] The directional information included in the first action set may be at least two of the four directions up, down, left, and right, or at least two of the four directions up-left, straight up, right-right, straight down, left-down, and straight left, with each direction corresponding to one action. For example, if the first action set includes a jump action and a crouch action, and the directional information for the jump action is upward and the directional information for the crouch action is downward, then an upward slide operation can be associated with a jump action, and a downward slide operation can be associated with a crouch action. If the first touch operation acting on the first attack control is an upward slide operation, then the first target action from the first action set is determined to be a jump action, and the virtual character is controlled to perform the jump action. Similarly, if the first touch operation acting on the first attack control is a downward slide operation, then the first target action from the first action set is determined to be a crouch action, and the virtual character is controlled to perform the crouch action.
[0033] The above method associates action information with direction information in the first action set, allowing actions within the first action set to be matched according to the direction of the slide operation acting on the first attack control. For example, by setting the first target action to an action corresponding to the same action direction as the slide operation direction, so that the action direction of the first target action matches the direction of the slide operation, the method is more in line with the user's operating habits and reduces the memory cost of the correspondence between slide operations and target actions.
[0034] Determining a first target action from a first set of actions in response to the above slide operation includes determining a first target action from a first set of actions in response to the slide operation and the state of the virtual character. Here, the state of the virtual character mainly includes information about the movement of the virtual character, and 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, a floating state, etc. Optionally, a floating state refers to an unsupported aerial state of the virtual character in the virtual scene, for example, a state in which the virtual character is flying into the air. A ground state refers to a state in which the virtual character is supported within the hypothetical virtual scene, for example, a state in which the virtual character is standing on the ground (i.e., the ground is supporting the virtual character). Postures include an upright state, a crouching state, a prone state, a jumping state, etc. By considering the correlation between the state of the virtual character and the next action that the virtual character is suitable to perform in this way, user operation and memory costs are further simplified.
[0035] Optionally, the first action set includes at least two action subsets, each corresponding to one state of the virtual character. Based on this, determining a first target action from the first action set in accordance with the slide operation and the state of the virtual character includes determining a target action subset from the first action set based on the state of the virtual character, and determining a first target action from the target action subset based on the slide operation. By dividing the actions within the first action set into multiple action subsets in accordance with the state of the virtual character, it becomes possible to divide the actions more finely when controlling the virtual character to perform them, resulting in more precise control of the virtual character.
[0036] Taking the above example of a virtual character state including a ground state and a floating state, the first action set corresponding to the first attack control includes two action subsets: a first action subset corresponding to the ground state and a second action subset corresponding to the floating state, where the first action subset may include sword-swinging actions, dodge actions, and rising attack actions. The second action subset may include sword-swinging actions, downward slashing attack actions, and dodge actions. The above virtual character states can be set based on the virtual character's identity or actual needs, and the embodiments of this disclosure are not limited thereto.
[0037] Optionally, the first action set described above is a user-customized set. Users can customize the first action set based on their usage habits, the identity of their virtual character, and their personal preferences. The definition process may include correspondences between actions in the first action set and the direction of slide operations, or correspondences between subsets of actions in the first action set and the state of the virtual character.
[0038] In addition to the first attack control described above, the graphical user interface described above may include other controls, which may be resident or non-resident controls. Based on this, the method described above further includes the steps of displaying the first control on the graphical user interface and controlling a virtual character to perform an action corresponding to the first control in response to a second touch operation acting on the first control.
[0039] Here, the second touch operation may be a click operation, a double-click operation, a re-press operation, a long-press operation, etc. Specifically, it can be flexibly set according to the requirements of the game design, and the embodiments of this disclosure are not limited thereto.
[0040] When the touch terminal receives a second touch operation acting on a first control, it controls the virtual character to perform an action corresponding to the first control. Here, the action corresponding to the first control is a pre-set action for that control, and may be a posture control action or a defensive action, etc. The direction of the action is usually the direction the virtual character is currently facing, and the orientation of the virtual character can be controlled by a movement control (such as a movement joystick).
[0041] 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. In a possible embodiment, if the first control is a dodge control, the dodge control may 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. Alternatively, in another possible embodiment, the dodge direction of the dodge action is determined by the type of second touch operation acting on the first control (i.e., the dodge control). For example, if the second touch operation is a left slide operation, the virtual character dodges to the left; if the second touch operation is a right slide operation, the virtual character dodges to the right; and if the second touch operation is a click operation, the virtual character dodges in the direction the virtual character is currently facing.
[0042] In a possible embodiment, the first action set includes actions corresponding to a first control.
[0043] In combat scenes, considering that the virtual character performs attack actions via touch input on the first attack control, it is sometimes necessary to dodge or defend against enemy attacks, and sometimes to change the attack method. Therefore, it is necessary to switch controls to change the attack method, and to dodge or defend while attacking. To avoid excessive movement of the player's gaze when switching controls, in this embodiment, even when the first control is displayed on the graphical user interface, the first action set contains actions corresponding to the first control. Therefore, the user can determine the action corresponding to the first control from the first action set as the first target action by sliding on the first attack control, and furthermore, control the virtual character to perform the action corresponding to the first control without switching from the first attack control to the first control. This allows the player to consistently and accurately control the transformation of the virtual character's attack actions or the transformation of offense and defense. For example, after a player controls a virtual character to perform an attack action using a first attack control, if the player wants to control the virtual character to perform a defensive action in response to changes in the surrounding combat situation, a slide operation acting on the first attack control allows the player to determine the defensive action from the first action set corresponding to the first attack control, enabling a rapid transition from attack to defense. Compared to related technical solutions, the player's touch finger does not need to be lifted to move from the first attack control to the defensive control set in the graphical user interface and perform a click operation, improving the continuity of the transition from attack to defense, reducing the difficulty for the user in finding the defensive control in the graphical user interface during combat, and reducing the possibility of accidental operation.
[0044] Optionally, the above method includes the steps of: if the first touch operation is a long press operation, displaying a first set of controls; determining a first target control from the controls included in the first set of controls in response to a slide operation following the long press operation; and controlling a virtual character to perform an action corresponding to the first target control (i.e., the first target action described above), where the controls included in the first set of controls correspond to the actions included in the first set of actions, i.e., the first set of actions is a set of actions corresponding to each control in the first set of controls. In this way, the user can determine the first target action in the first set of actions more intuitively and clearly, reducing memory costs and improving the accuracy of the operation.
[0045] A long press is an operation in which the duration of touch between a touch medium (such as a finger) and a control is longer than a time threshold, and the time threshold may be a time set by the game developer or user, such as 0.2 seconds, 0.3 seconds, or 0.5 seconds.
[0046] The aforementioned combination of long-press and continuous sliding operations means that the first touch operation may consist of two stages: the first stage being a long-press and the second stage being a sliding operation. Since the finger does not lift (remove from the touchscreen) during both stages, the long-press and sliding operations are operationally consistent.
[0047] The above-described display of the first control set allows the user to more intuitively and clearly determine the position of each control within the control set. When it is necessary to operate a specific control within the first control set, the user can accurately determine the first target control from the first control set with a simple slide operation, without having to lift their finger and click on other controls in the graphical interface. Throughout the entire process, the user does not need to search for and position other controls (controls corresponding to actions such as defensive actions or jump actions) within the interface. A first touch operation (long press + slide operation) on the first attack control allows for easy determination of the first target control from the first control set. Furthermore, rapid control of the virtual character is achieved, such as quickly controlling changes in attack behavior or switching between offense and defense by triggering the virtual character to perform the first target action corresponding to the first target control.
[0048] Referring to an embodiment of the present disclosure shown in Figure 2, a method for controlling another virtual character is provided, which includes the following steps:
[0049] Step S202: Display the first attack control on the graphical user interface.
[0050] Step S204: In response to a first touch operation that acts on the first attack control, if the first touch operation is a long press operation, display the first control set.
[0051] Step S206: In response to a slide operation following a long press operation, a first target control is determined from the controls included in the first control set, and the virtual character is controlled to perform an action corresponding to the first target control.
[0052] Here, the controls included in the first set of controls correspond to the actions included in the first set of actions.
[0053] The method shown in Figure 2 is the same as the method shown in Figure 1. 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. If the first touch operation is a slide operation, a first target action is determined from a first action set in response to the slide operation, and the virtual character is controlled to perform the first target action.
[0054] The method described above provides an intuitive reference base for the user to manipulate controls by long-pressing the first set of controls displayed by the first attack control, allowing the user to more intuitively and clearly determine the position of each control within the control set. When it is necessary to manipulate a specific control within the first set of controls, the user can accurately determine the first target control from the first set of controls with a simple slide operation, without having to release their finger and click on other controls in the graphical interface. Throughout the entire process, the user does not need to search for and position other controls (controls corresponding to actions such as defensive actions or jump actions) within the interface, and can easily determine the first target control from the first set of controls. Furthermore, rapid control of the virtual character is achieved, such as quickly controlling changes in attack behavior or switching between offense and defense, by triggering the virtual character to perform the first target action corresponding to the first target control.
[0055] Referring to the schematic diagram of the graphical user interface in one of the selectable embodiments shown in Figure 3, this diagram includes virtual character A (i.e., the virtual character described above, which is the player's virtual character) and virtual character B, which fights against virtual character A. A first control 11 and a second control 12 (i.e., the first attack control) are displayed in the lower right corner of the graphical user interface. When the player's finger presses and holds the second control 12, a first set of controls is displayed around the second control 12, which includes control 13 (i.e., the third control, which is the same control as the action corresponding to the first control). Next, when the player slides the finger performing the press and hold operation from the second control 12 to control 13, the touch terminal controls the virtual character to perform the action corresponding to the first control.
[0056] In possible embodiments, the first set of controls may also include other controls, such as controls 14, 15, and 16 in Figure 3. These other controls are used to trigger the virtual character to perform other attack actions or to trigger the virtual character to perform evasion or defense actions.
[0057] Regardless of whether the first set of controls is displayed in the above embodiment, during operation, the user does not need to lift their fingers or shift their gaze to switch controls, allowing for quicker reactions during interaction, making operation easier, and effectively mitigating the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0058] Embodiments of the present invention provide a method for controlling another virtual character and providing a graphical user interface via a touch terminal, the touch terminal being the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. Referring to Figure 4, a method for controlling a virtual character according to another embodiment of the present disclosure includes the following steps:
[0059] Step S402: Display the first control and the second control on the graphical user interface. Here, the second control is the first attack control.
[0060] This embodiment provides a graphical user interface via a touch terminal, and optionally, in addition to the first and second controls, the graphical user interface also includes at least a portion of the game scene and a virtual character (in particular, the player's virtual character). Here, the first control may be a resident control other than an attack control, such as a jump control, a sword swing control, a dodge control, a sliding shovel control, a crawl control, or a crouch control.
[0061] Step S404: In response to a second touch operation acting on the first control, the virtual character is controlled to perform an action corresponding to the first control.
[0062] Here, the second touch operation may be a click operation, a double-click operation, a re-press operation, a long-press operation, etc. Specifically, it can be flexibly set according to the requirements of the game design, and the embodiments of this disclosure are not limited thereto.
[0063] Step S406: In response to a long press operation acting on the second control, the first set of controls is displayed, where the first set of controls includes at least a third control, the third control being used to trigger a virtual character to perform an action corresponding to the first control.
[0064] The third control and the first control are visually identical; for example, the icon for the third control is the same as the icon for the first control. Alternatively, the third control and the first control are visually different; for example, if both the first and third controls correspond to a dodge action, the dodge graphic in the icon for the first control is filled with green, and the dodge graphic in the icon for the third control is filled with red, or the icon for the first control is circular and the icon for the third control is fan-shaped.
[0065] If the touch operation acting on the second control is a click operation, the first control is not displayed, and the virtual character is controlled to perform the first attack action corresponding to the second control.
[0066] Optionally, a click operation here is an operation whose duration of action on the second control falls within a pre-set time threshold.
[0067] Step S408: In response to a slide operation following a long press operation acting on the second control, a first target control is determined from the controls included in the first control set according to the slide operation, and the virtual character is controlled to perform an action corresponding to the first target control.
[0068] Optionally, the above slide operation refers to an operation in which the length of the movement trajectory of the touch point of the touch operation acting on the second control exceeds a preset length threshold. As for the specific method of determining the first target control, the control indicated by the slide operation may be used as the first target control, or the control corresponding to the position of the touch point at the end of the slide operation may be used as the first target control.
[0069] The distinction between click operations and slide operations is a conventional technique in this field, so it will not be explained again here.
[0070] According to the method for controlling a virtual character corresponding to Figure 4 in the embodiments of this disclosure, a user (player) can control the virtual character to perform an action (e.g., a jump action, a defensive action, etc.) corresponding to a first control of the graphical user interface by touching the first control of the first control. The user can also display a set of controls (referred to as the first control set) corresponding to a first attack control (i.e., a second control) of the graphical user interface by long-pressing the first attack control of the graphical user interface, and the first control set includes a third control that can trigger the virtual character to perform an action corresponding to the first control. If the touch operation acting on the second control is a click operation, the virtual character can be controlled to perform a first attack action. If a slide operation is performed after a long-press operation acting on the second control, a first target control is determined from the controls included in the first control set in response to the slide operation, and the virtual character can be controlled to perform an action corresponding to the first target control. If the first target control is the third control in the first control set, the virtual character can be controlled to perform an action corresponding to the first control in the graphical user interface. In this way, when a user needs to control a virtual character to perform a first attack action, they can click on the first attack control originally displayed in the graphical user interface, or long-press on the first attack control to display a set of controls corresponding to the first attack control (referred to as the first control set), the first control set containing third controls that can be used to trigger the virtual character to perform the action corresponding to the first control.When a user needs to control a virtual character to perform actions such as jump actions or defensive actions, this can be achieved by touching a first control that is originally displayed in the graphical user interface. This can be achieved by sliding on the first attack control to trigger a third control in the control set (referred to as the first control), thereby controlling the virtual character to perform actions such as jump actions or defensive actions. The aforementioned displayed first control set allows the user to determine the position of each control within the control set more intuitively and clearly. When a user needs to operate on a specific control within the first control set, they can accurately determine the first target control from the first control set with just a slide operation, without having to lift their finger and click on other controls in the graphical interface. Throughout the entire process, the user does not need to search for and position other controls (controls corresponding to actions such as defensive actions or jump actions) within the interface. A slide operation on the second control allows the user to easily determine the first target control from the first control set. Furthermore, by triggering the virtual character to perform the action corresponding to the first target control, rapid control of the virtual character is achieved, such as quickly controlling changes in attack behavior or switching between offense and defense. Because the first set of controls can be displayed when the second control is long-pressed, it provides an intuitive reference base for the user to interact with the controls. The user does not need to remember how to trigger the controls in the first set of controls; if they need to interact with any control in the first set of controls, they can do so by sliding towards that control. If the user remembers the correspondence between each control in the first set of controls and the direction of the slide, they do not need to long-press the second control, and the first set of controls will not be displayed.This method reduces interface occlusion caused by the first set of controls to some extent, and improves the speed and consistency of switching virtual character actions to some degree.
[0071] Referring to the schematic diagram of the graphical user interface corresponding to the close-range combat scene shown in Figure 5, the lower right of the graphical user interface controls displays a sword swing control 17 (corresponding to the first control mentioned above) and a side attack control 18 (corresponding to the second control mentioned above), as well as a vertical attack 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 wielding long swords, and that the player continuously clicks the side attack control, the player's virtual character A will perform multiple consecutive side attacks on the enemy's virtual character B, or perform a series of attacks corresponding to the number of clicks on the side attack control 18 and the time interval between clicks. At this time, if the player notices that the enemy is about to perform a special move (i.e., an attack that deals more damage), and wants to control the player's virtual character A to swing its sword (a defensive action for the character, usually used when an enemy character is about to attack with a special move, and the player manipulates the sword swing control to make the character perform the sword swing action, thereby defending against the enemy's special move and knocking down the enemy's weapon), the player needs to move their finger from the currently clicked horizontal attack control 18 to the permanent sword swing control 17 in the interface and click. In this process, the finger needs to "lift - move - click sword swing control", and because there is a certain gap between the horizontal attack control 18 and the sword swing control 17, this process is time-consuming, not fast and consistent, prone to accidental clicks, and difficult to click the sword swing control quickly and accurately.
[0072] Based on the above-mentioned problems of being fast, inconsistent, and prone to accidental clicks, this embodiment provides a method for controlling a corresponding virtual character. Following the corresponding example in Figure 5, if the player continues to click the side attack control 18, the player's virtual character A will perform multiple consecutive side attacks on the enemy virtual character, or perform a corresponding series of attacks depending on the number of clicks on the side attack control 18 and the time interval. In this embodiment, the side attack control 18 corresponds to a first action set, which may include a sword-swinging action, and the sword-swinging action corresponds to a rightward slide. At this point, if the player notices that the enemy is about to unleash a special move and wants to control the player's virtual character A to swing its sword, the player can slide their finger to the right from the side attack control 18 to control virtual character A to switch from an attack action to a sword-swinging action. In the aforementioned process of the virtual character quickly switching from an attack action to a sword-swinging action, the switch is performed by a finger slide operation, making the operation simple, fast, consistent, and reducing the likelihood of accidental operation.
[0073] Alternatively, based on the above-mentioned problems of being fast, inconsistent, and prone to accidental clicks, this embodiment provides a schematic diagram of another corresponding graphical user interface shown in Figure 6. Following the corresponding example in Figure 5, when the side attack control 18 is triggered by a long press (for example, the player may be preparing to use a charge attack), a first set of controls, including a sword swing control 17a, appears around the side attack control 18 in this embodiment, and the sword swing control 17a in the first set of controls is visually identical to the resident sword swing control 17 in the graphical user interface. At this point, if the player notices that an enemy is about to unleash a special move and wants to control the player's virtual character A to swing its sword, the player can slide their finger from the side attack control 18 to the sword swing control 17a in the first set of controls, or move their finger in the direction of the sword swing control 17a in the first set of controls. In this process, the finger can perform both long-press and slide operations on the same control, namely the horizontal attack control 18, which is relatively simple, fast, consistent, difficult to accidentally click, and allows the player's virtual character to quickly switch from attack actions to sword-swinging defensive actions.
[0074] In a possible embodiment, the action corresponding to the first control described above is a non-aggressive action. The first set of controls displayed by triggering a second control (a control corresponding to the first attack action) includes a third control, and the action corresponding to the third control may also be a non-aggressive action. This method of including controls corresponding to non-aggressive actions in the set of controls corresponding to attack controls allows for a rapid switching of the virtual character from attack actions to non-aggressive actions, better meeting the needs of actual applications.
[0075] The actions corresponding to the first control mentioned above include defensive actions, evasive actions, jumping actions, crouching actions, sliding shovel actions, or crawling actions. These actions are typically used frequently in close-quarters combat scenes, and using them as the actions corresponding to the first control can further improve the convenience of gameplay.
[0076] Defensive actions, dodge actions, jump actions, crouch actions, sliding shovel actions, or crawling actions are common virtual actions in games. Defensive actions are actions in which the player character resists an attack to reduce the damage taken, and optionally, sword-swinging actions are defensive actions that may cause the attacker to drop their weapon. Dodge actions are fast movement actions of a short distance (usually predetermined or calculated by the game system) that the player character uses to avoid enemy attacks. They are usually fast movements, faster than the virtual character's movement speed in default situations, which include situations where the virtual character moves without the help of skills, props, vehicles, etc. The distance is usually short, for example, 1 meter, 2 meters, 3 meters, 5 meters, 10 meters, etc. in the virtual environment. Short distances here are in comparison to other long distance movements, for example, in some games, the virtual character can use props such as ziplines to achieve long distances in the virtual environment. Virtual characters can enter a high-speed running state to travel long distances within the virtual environment, for example, there is a "continuous running" function common in some games. The jump action is when the player character jumps upwards. The crouch action is when the player character crouches downwards. The sliding shovel action is when the player character runs while lowering their center of gravity (for example, by crouching or leaning forward). The crawl action is when the player character moves while crouching.
[0077] Optionally, the above method also includes canceling the display of the first control set. Then, when you no longer need to interact with the controls in the first control set, the first control set will not be displayed, reducing unnecessary occlusion of the interface caused by the first control set.
[0078] In a possible embodiment, canceling the display of the first control set may include canceling the display of the first control set in response to the completion of a first touch operation. Optionally, if the first touch operation is a click operation, the first control set does not need to be displayed. If the first touch operation is a slide operation after a long press, the display of the first control set is canceled when the finger performing the slide operation leaves the touch terminal screen. Thus, canceling the display of the first control set when the first touch operation is completed is simple and reasonable, and immediately canceling the display of the first control set when the first touch operation is completed, i.e., when there is no longer any need to operate the controls in the first control set, reduces the time the first control set occupies the graphical user interface and optimizes the graphical user interface.
[0079] In other examples, the above 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 a 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; or (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 for canceling the display of the first control set can be selected according to actual needs, and this embodiment is not limited thereto.
[0080] Optionally, the first action set described above 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. During gameplay, a target action set can be determined from the first action set depending on the state of the virtual character, and then a target action can be determined from the target action set depending on the slide operation. If the graphical user interface described above displays the first control set, in a possible embodiment, the first control set includes a first sub-control set and a second sub-control set, where 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. The above method takes into account that there are usually certain preferences for combat scenes in games, and some games prefer close-quarters combat scenes, while others prefer long-range combat scenes, so some controls are permanently displayed in the graphical user interface according to the preferred combat scene in a particular game.
[0081] The first and second controls (i.e., the first attack control) displayed on the graphical user interface may both be resident controls. Then, the second control as an attack control is permanently displayed on the graphical user interface, and the first control as a non-attack control is also permanently displayed on the graphical user interface, and the control set corresponding to the second control (first attack control) may include a third control, which is used to control the virtual character to perform the actions corresponding to the first control described above. In a possible embodiment, the first control set may also include a fourth control, which includes a first sub-control set and a second sub-control set, which includes a third control, which includes a fourth control, which includes controls in the first sub-control set being a subset of resident controls, and controls in the second sub-control set being a subset of non-resident controls. In this embodiment, the first set of controls is divided into a first sub-set of controls and a second sub-set of controls depending on whether the controls are resident controls or not. Therefore, there is no need to continuously display non-resident controls in the graphical user interface, and they can only be displayed through the display of the first set of controls, thus mitigating the problem of having a large number of controls in the graphical user interface.
[0082] Referring to the schematic diagram of another graphical user interface shown in Figure 7, based on Figure 6 above, the first set of controls corresponding to the side attack control 18 includes, in addition to the sword swing control 17a, a combined jump and side attack control 22 and a combined crouch and side attack control 23, where the sword swing control 17a and the dodge control 20a are controls in the first sub-set of controls, and the combined jump and side attack control 22 and the combined crouch and side attack control 23 are controls in the second sub-set of controls. Of these, the combined jump and side attack control 22 is used to trigger the virtual character to perform a jump action and a side attack action in sequence, and the combined crouch and side attack control 23 is used to trigger the virtual character to perform a crouch action and a side attack action in sequence.
[0083] In the first control set shown in Figure 7, the dodge control 20a is located to the left of the side attack control 18, the sword swing control 17a is located to the right of the side attack control 18, the jump and side attack combined control 22 is located above the side attack control 18, and the crouch and side attack combined control 23 is located below the side attack control 18. This control layout makes it easier for the player to distinguish each control within the first control set, and the player can trigger the virtual character to perform a side attack action by clicking the side attack control 18 once or multiple times, and then continue to touch the side attack control 18, which can be used to press the side attack control 18 without releasing the finger, and the first control set shown in Figure 6 is displayed around the side attack control 18, and there are several situations depending on the player's different actions on the first control set shown in Figure 7.
[0084] (1) The finger pressing the side attack control 18 is slid to the right from the position of the side attack control 18, that is, the finger slides toward the sword swing control 17a. After sliding to a certain extent, for example, if the slide distance is greater than a set distance threshold, the virtual character is controlled to perform the sword swing action corresponding to the sword swing control 17a. The player does not need to search for the sword swing control 17 among the permanent controls, nor does the finger's landing position need to be changed. This allows the virtual character to switch from the side attack action corresponding to the side attack control 18 to the sword swing action corresponding to the sword swing control 17a, making the operation smoother and more convenient, and reducing the problem of accidental touches. Furthermore, if the virtual character is in a side attack charge state, the aforementioned rightward slide operation directly interrupts the virtual character's charge state with the sword swing action, allowing the virtual character to quickly transition from an attack state to a defense state.
[0085] (2) When the finger pressing the side attack control 18 is slid to the left from the position of the side attack control 18, that is, when the finger slides toward the dodge control 20a, and after sliding to a certain extent, for example, when the finger slides toward 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 search for the dodge control 20 among the permanent controls in the graphical user interface, nor does the finger's landing position need to be changed. The virtual character can be switched from the side attack action corresponding to the side attack control 18 to the dodge action corresponding to the dodge control 20a. As described above, this method of switching actions corresponding to two controls with a single slide makes the operation smoother and more convenient. At the same time, during the process of the virtual character performing a side attack, the leftward slide operation described above directly interrupts the virtual character's side attack action with a dodge action, enabling a quick dodge and reducing the amount of damage taken by the virtual character.
[0086] (3) The finger pressing the side attack control 18 is slid upward from the position of the side attack control 18, that is, the finger slides toward the combined jump and side attack control 22, and after sliding to a certain extent, for example, after sliding into the area where the combined jump and side attack control 22 is located, the finger is released, controlling the virtual character to perform the combined jump and side attack action corresponding to the combined jump and side attack control 22, and the sliding direction of the slide operation can be determined through the displayed first control set, the finger can be released when performing the combined jump and side attack action, and the finger can be raised midway to perform the combined jump and side attack control Without clicking Roll 22, the virtual character can switch from a side attack action corresponding to the side attack control 18 to a jump and side attack action corresponding to the combined jump and side attack control 22. This not only makes operation smoother and more convenient, but also allows the attack method to be adjusted according to the enemy character's posture, such as when the enemy character jumps, based on the virtual character's initial side attack. The virtual character can then jump and attack the enemy character again, and this continuous attack method incorporating different postures allows for rapid changes in attack actions. At the same time, the combined jump and side attack control 22, located above the side attack control 18, also takes into account that the jump direction is upward at the control's setting position, making it more in line with the user's operating habits.
[0087] (4) The finger pressing the side attack control 18 is slid downwards from the position of the side attack control 18, that is, the finger slides toward the crouch and side attack combined control 23, and after sliding to a certain extent, for example, sliding into the area where the crouch and side attack combined control 23 is located, the virtual character is controlled to perform the crouch and side attack combined action corresponding to the crouch and side attack combined control 23, and the sliding direction of the slide operation can be determined through the displayed first set of controls, and the virtual character can be controlled in relation to the side attack control 18 without lifting the finger and clicking the crouch and side attack combined control 23 during the sliding operation. From the corresponding side attack action, you can switch to a crouching and side attack action that corresponds to the combined crouching and side attack control 23, which not only makes the operation smoother and more convenient, but also, based on the virtual character's initial side attack, you can adjust your attack method in response to the enemy character's attack by sliding downwards as described above. For example, when the enemy character performs a side attack, the virtual character can crouch and simultaneously perform another side attack on the enemy character, not only dodging the enemy character's side attack but also dealing damage to the enemy character with another side attack, increasing the probability of winning against the enemy character and allowing you to quickly change your attack movements.
[0088] In the first control set described above, the settings for the combined jump and side attack control, and the combined crouch and side attack control, have an inherent logical relationship with the side attack control. Since the side attack control is mainly used for the purpose of attacking enemy characters with side attacks, the attack method placed in the first control set is the side attack. This placement method primarily takes into account that when the player clicks the side attack control, there is a high probability that the side attack skill will be applied. Compared to achieving combos by clicking the side attack control multiple times, the placement of the combined jump and side attack control and the combined crouch and side attack control allows for adjustment of the character's posture on top of the side attack, making the operation faster and more convenient, and the functionality richer and more powerful. Furthermore, the trigger method for such combined actions does not require two separate controls; the combined action can be triggered by simply triggering the combined jump and side attack control or the combined crouch and side attack control once, resulting in high trigger efficiency and simplified operation.
[0089] Optionally, the controls in the first control set described above can also be adjusted according to the user's attack habits. For example, the combined jump and side attack control, and the combined crouch and side attack control in the first control set can be replaced with a combined jump and vertical attack control, and a combined crouch and vertical attack control. Alternatively, only one of the combined jump and side attack control or the combined crouch and side attack control can be replaced with a control that also has a vertical attack function, and this control may be a combined control or a separate vertical attack control.
[0090] Referring to the schematic diagram of another graphical user interface shown in Figure 8, this embodiment will be described using the example where the second control is a vertical attack control 19. The first set of controls corresponding to the vertical attack control 19 includes a sword swing control 17a, a dodge control 20a, a combined jump and vertical attack control 24, and a combined crouch and vertical attack control 25, where the sword swing control 17a and the dodge control 20a are controls in the first sub-set of controls, and the combined jump and vertical attack control 24 and the combined crouch and vertical attack control 25 are controls in the second sub-set of controls. Of these, the combined jump and vertical attack control 24 is used to trigger the virtual character to perform a jump action and a vertical attack action in sequence, and the combined crouch and vertical attack control 25 is used to trigger the virtual character to perform a crouch action and a vertical attack action in sequence.
[0091] To make it easier for the player to distinguish each control within the first set of controls, in the first set of controls in Figure 8, the dodge control 20a is located to the left of the vertical attack control 19, the sword swing control 17a is located to the right of the vertical attack control 19, the jump and vertical attack combined control 24 is located above the vertical attack control 19, and the crouch and vertical attack combined control 25 is located below the vertical attack control 19. After the player clicks the vertical attack control 19 once or multiple times to trigger the virtual character to perform a vertical attack action, the player can continue to touch the vertical attack control 19, the touch being such that the finger is pressed against the vertical attack control 19 and does not need to be released, and the aforementioned first set of controls as shown in Figure 7 is displayed around the vertical attack control 19, and depending on the player's different actions on the first set of controls shown in Figure 8, there are several situations.
[0092] (1) When the finger pressing the vertical attack control 19 is slid to the right from the position of the vertical attack control 19, that is, the finger slides toward the sword swing control 17a, and after sliding to a certain extent, for example, when the finger slides into the area where the sword swing control 17a is located, the virtual character is controlled to immediately perform the vibration action corresponding to the sword swing control 17a. The player does not need to search for the sword swing control 17 among the permanent controls in the graphical user interface, nor does the finger's landing position need to be changed. This allows the virtual character to switch from the vertical attack action corresponding to the vertical attack control 19 to the sword swing action corresponding to the sword swing control 17a, making the operation smoother and more convenient, and reducing the problem of accidental touches. In addition, when the character is in a vertical attack charge state, the aforementioned rightward slide operation directly interrupts the virtual character's charge state with a sword swing action, allowing the virtual character to quickly transition from an attack state to a defense state.
[0093] (2) The finger pressing the vertical attack control 19 is slid to the left from the position of the vertical attack control 19, that is, the finger slides toward the dodge control 20a in the first set of controls. After sliding to a certain extent, for example, if the slide distance is greater than a 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 search for the dodge control 20 among the permanent controls in the graphical user interface, nor does the finger's landing position need to be changed. The virtual character can then switch from the vertical attack action corresponding to the vertical attack control 19 to the dodge action corresponding to the dodge control 20a. As described above, this method of switching actions corresponding to two controls with a single slide makes operation smoother and more convenient. Furthermore, during the process of the virtual character performing a vertical attack, the leftward slide operation described above directly interrupts the virtual character's vertical attack action with a dodge action, enabling a quick dodge and reducing the amount of damage taken by the virtual character.
[0094] (3) The finger pressing the vertical attack control 19 is slid upward from the position of the vertical attack control 19, that is, the finger slides toward the combined jump and vertical attack control 24 in the first control set, and after sliding to a certain extent, for example, after sliding into the area where the combined jump and vertical attack control 24 is located, the finger is released, controlling the virtual character to perform the combined jump and vertical attack action corresponding to the combined jump and vertical attack control 24, and the sliding direction of the slide operation can be determined through the displayed first control set, the finger can be raised when performing the combined jump and vertical attack action, and the finger can be raised midway through to perform the combined jump and vertical attack Without clicking the combined attack control 24, the virtual character can switch from a vertical attack action corresponding to the vertical attack control 19 to a jump and vertical attack action corresponding to the combined jump and vertical attack control 24. This not only makes operation smoother and more convenient, but also allows the attack method to be adjusted according to the enemy character's posture, such as when the enemy character jumps, based on the virtual character's initial vertical attack. The virtual character can then jump and perform another vertical attack on the enemy character. This continuous attack method, incorporating different postures, allows for rapid changes in attack actions. At the same time, the combined jump and vertical attack control 24, located above the vertical attack control 19, also takes into account that the jump direction is upward at the control's setting position, making it more responsive to user habits.
[0095] (4) The finger pressing the vertical attack control 19 is slid downwards from the position of the vertical attack control 19, that is, the finger slides toward the crouch and vertical attack combined control 25, and after sliding to a certain extent, for example, sliding into the area where the crouch and vertical attack combined control 25 is located, the virtual character is controlled to perform the crouch and vertical attack combined action corresponding to the crouch and vertical attack combined control 25, and the sliding direction can be determined through the displayed first set of controls, and the virtual character can perform the vertical attack corresponding to the vertical attack control 19 without lifting the finger and clicking the crouch and vertical attack combined control 25 during the sliding operation, From the attack action, you can switch to a crouch and vertical attack action corresponding to the combined crouch and vertical attack control 25, which not only makes the operation smoother and more convenient, but also allows you to adjust your attack method in response to the enemy character's attack by sliding downwards as described above, based on the virtual character's initial vertical attack. For example, if the enemy character performs a horizontal attack, the virtual character can crouch and simultaneously perform a vertical attack on the enemy character, not only dodging the enemy character's horizontal attack but also dealing damage to the enemy character with another vertical attack, increasing the probability of winning against the enemy character and allowing you to quickly change your attack movements.
[0096] In the first control set described above, the settings for the combined jump and vertical attack control, and the combined crouch and vertical attack control, have an inherent logical relationship with the vertical attack control. Since the vertical attack control is primarily used to attack enemy characters with vertical attacks, the attack method arranged in the first control set is the vertical attack. This arrangement primarily considers that when the player clicks the vertical attack control, there is a high probability that the attack skill will be applied. Compared to achieving combos by clicking the vertical attack control multiple times, the arrangement of the jump and vertical attack control, and the crouch and vertical attack control, allows the player to perform the vertical attack action again without lifting their finger. Not only that, it also allows for adjustment of the character's posture on top of the vertical attack, making the operation faster and more convenient, and the functionality richer and more powerful. Furthermore, this method of triggering combined actions does not require two separate controls; the combined action can be triggered by simply triggering the combined jump and vertical attack control or the combined crouch and vertical attack control once, reducing the complexity of the operation, making the trigger more efficient, simplifying the operation, and effectively reducing player fatigue during gameplay.
[0097] Optionally, the combined jump and vertical attack control, and the combined crouch and vertical attack control within the first control set corresponding to the vertical attack controls described above, can be replaced with combined jump and horizontal attack controls, or combined crouch and horizontal attack controls, depending on the player's preference. Alternatively, only one of them can be replaced with a control that also has a horizontal attack function, which may be a combined control or a separate horizontal attack control.
[0098] The graphical user interface described above includes a movement control area, and the movement control area and the operation area where the first attack controls are located are located on opposite sides of the graphical user interface, respectively. Controlling a virtual character to perform an evasion action (referring here to an evasion control in the first set of controls) may include determining an evasion direction corresponding to the evasion control according to a character orientation control operation in the movement control area and controlling the virtual character to perform an evasion action in that evasion direction, or controlling the virtual character to perform an evasion action in a predetermined evasion direction according to a predetermined evasion direction of the evasion control. Specifically, in (2) corresponding to Figures 7 and 8 above, an evasion control in the first set of controls is triggered. In embodiments of this disclosure, several methods are provided for determining the direction of an evasion action.
[0099] (21) The direction of dodge is determined by the left movement joystick (or the left movement control area). In this method, when the left hand operates the movement joystick, the direction of the character's dodge action becomes the same as the direction of the movement joystick's control. For example, if the fingers of the right hand slide to the left from the position of the side attack control 18 to trigger the dodge control 20a of the first control set, and the fingers of the left hand drag the movement joystick to the left, the virtual character will turn to the left and perform a dodge action to the left at the current position.
[0100] (22) If there is no control operation on the movement joystick, the current direction of the virtual character is determined as the direction of dodge. In this way, when the dodge control 20a in the first control set is triggered, if the left hand does not operate the movement joystick, the dodge action is performed in the current direction of the virtual character.
[0101] (23) The dodge control has directional information, and the direction corresponding to the dodge control is determined as the dodge direction. In this method, the presence or absence of an operation on the movement joystick can be ignored, and the virtual character is controlled to perform a dodge action in the direction corresponding to the dodge control. For example, if the dodge control 20a in the first control set is set to the right, when the dodge control 20a in the first control set is triggered, the virtual character is controlled to perform a dodge action to the right at the current position.
[0102] (24) The evasion control has directional information, and the evasion direction is determined based on the direction corresponding to the evasion control and the direction in which the movement joystick is operated. In this method, if an evasion control in the first control set is triggered at the same time as a control operation on the movement joystick, the control direction of the movement joystick takes precedence as the evasion direction, and if an evasion control in the first control set is triggered at the same time as no control operation on the movement joystick, the direction corresponding to the evasion control is used as the evasion direction.
[0103] The direction of the above dodge control can be set by the player in the settings; if the player does not set this item, the direction of the dodge control will be the default direction.
[0104] The first attack controls described above, namely the horizontal attack control and the vertical attack control, can appear simultaneously on the graphical user interface of the game as resident controls within the same game. Of course, in addition to the horizontal attack control and the vertical attack control described above, other attack controls may also be resident or non-resident controls displayed on the graphical user interface of the game. These other attack controls may also constitute a control set similar to the first control set. Based on this, the above method may further include displaying a fifth control on the graphical user interface, where 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.
[0105] The direction of an attack action typically coincides with the orientation of the virtual character and guides which target object the virtual character will attack. The angle of an attack action typically refers to the direction of the trajectory of the attack action's path. For example, how the target object is attacked—from top to bottom, from left to right, etc.
[0106] Of these, the first attack action is a melee attack action in which the angle between a virtual attack damage surface determined based on the movement of a melee weapon in a 3D virtual environment (which may be a surface determined by the movement trajectory of the melee weapon in a 3D virtual environment, or a surface determined by the start and end positions of the movement of the melee weapon in a 3D virtual environment) and a designated plane (ground, horizontal plane) in a 3D virtual environment is less than an angle threshold. The virtual attack damage surface may be a plane or a curved surface, and the angle may be the angle between two planes or the angle between a tangent plane corresponding to a curved surface and a plane. The second attack action is a melee attack action in which the angle between a virtual attack damage surface determined based on the movement of a melee weapon in a 3D virtual environment and a designated plane in a 3D virtual environment is greater than an angle threshold. During the first attack action performed by the first virtual character, a target virtual character that collides with the virtual attack damage surface takes attack damage from the first attack action. Referring to the schematic diagram of the attack scene shown in Figure 9, the first attack action in Figure 9 is an example of a horizontal attack action corresponding to the sword 70. In this case, the virtual attack damage surface 72 is determined by the movement trajectory 71 of the sword 70 in the 3D virtual environment. If the designated plane in the 3D virtual environment is the horizontal plane 73, the virtual attack damage surface 72 and the horizontal plane 73 form an angle 723. The second attack action is an example of a vertical attack action corresponding to the sword 70. In this case, the virtual attack damage surface 75 is determined by the movement trajectory 74 of the sword 70 in the 3D virtual environment. In this case, the virtual attack damage surface 75 and the horizontal plane 73 form an angle 753. The angle 753 between the virtual attack damage surface 75 and the horizontal plane 73 in the vertical attack action is larger than the angle 723 between the virtual attack damage surface 72 and the horizontal plane 73 in the horizontal attack action.
[0107] Similar to the first attack control described above, based on displaying the second attack control described above on a graphical user interface, the method described above further includes, in response to a third touch operation acting on the second attack control, the steps of: controlling a virtual character to perform a second attack action corresponding to the second attack control if the third touch operation is a click operation; and, if the third touch operation is a slide operation, determining a second target action from a second set of actions in response to the slide operation and controlling the virtual character to perform the second target action. If the third touch operation is a long press operation, a second set of controls is displayed, and in response to the slide operation following the long press operation, a second target control is determined from the controls included in the second set of controls and the virtual character is controlled to perform an action corresponding to the second target control, where the controls included in the second set of controls correspond to the actions included in the second set of actions, where the second set of controls may include the third control described above, the third control being used to trigger the virtual character to perform an action corresponding to the first control described above.
[0108] In this embodiment, by displaying the second attack control (i.e., the fifth control) described above on the graphical user interface, the user (player) can control the virtual character to perform an action at an attack angle corresponding to the second attack control (e.g., a horizontal attack action, a vertical attack action, etc.) by touching the second attack control in the graphical user interface. The user can also display a control set corresponding to the second attack control (referred to as the second control set) by long-pressing the second attack control in the graphical user interface, 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 a second attack action; if the touch operation is a slide operation, a second target control can be determined from the controls included in the second control set according to the slide operation, and the virtual character can be controlled to perform an action corresponding to the second target control; and if the second target control is the third control in the first control set, the virtual character can be controlled to perform an action corresponding to the first control in the graphical user interface. In this way, if a user needs to control a virtual character to perform a second attack action, they can click on the second attack control originally displayed in the graphical user interface and long-press on the second attack control to display the control set corresponding to the second attack control (referred to as the second control set), which includes a third control that can be used to trigger and control the virtual character to perform the action corresponding to the first control.When a user needs to control a virtual character to perform actions such as horizontal or vertical attacks, they can do so by touching a fifth control originally displayed on the touch graphical user interface, or by touching a third control within 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 determine the position of each control within the control set. When it is necessary to manipulate a specific control within the second control set, the user can accurately determine the second target control from the second control set based on the slide operation, simply by sliding their finger without having to lift their finger and click on other controls in the graphical user interface. Throughout the entire process, the user does not need to find and position other controls (controls corresponding to actions such as horizontal or vertical attacks) within the interface. They can easily determine the second target control from the second control set simply by sliding their finger on the second attack control, and further trigger the virtual character to perform the action corresponding to the second target control. This enables rapid control of the virtual character, such as high-speed control of changes in attack behavior or transitions between offense and defense. By displaying a second set of controls when a second attack control is long-pressed, the user is provided with an intuitive reference base for interacting with controls. Users do not need to remember how to trigger controls in the second set of controls; they can simply slide towards any control they need to interact with within the second set. This interaction process allows users to switch controls without lifting their fingers or shifting their gaze, enabling quick responses during interaction without requiring special memory, thus making operation more convenient and effectively mitigating the problem of accidental touches caused by too many interface controls.At the same time, this method of quickly controlling virtual characters also improves the consistency of user interaction.
[0109] When the above horizontal attack control is used as the first attack control, the above vertical attack control is used as the second attack control, and the above dodge control is used as the first control, the player can touch the first attack control when they need to attack the enemy virtual character horizontally, and when they need to attack the enemy character vertically, they can touch the first attack control. During an attack, the player can slide and select a target control from the corresponding control set to dodge the enemy virtual character's attack action.
[0110] Optionally, the above method also includes canceling the display of the second control set. This means that when you no longer need to interact with the controls within the second control set, the second control set will no longer be displayed, reducing unnecessary occlusion of the interface caused by the second control set.
[0111] In a possible embodiment, canceling the display of the second control set may include canceling the display of the second control set in response to the completion of a third touch operation. If the third touch operation is a click operation, the second control set is not displayed. If the third touch operation is a slide operation after a long press, the display of the second control set is canceled when the finger performing the slide operation leaves the touch terminal screen. Thus, canceling the display of the second control set when the third touch operation is completed is simple and reasonable, and immediately canceling the display of the second control set when the third touch operation is completed, i.e., when there is no longer any need to operate the controls in the second control set, reduces the time the second control set occupies the graphical user interface and optimizes the graphical user interface.
[0112] In other examples, the above 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 a 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; or (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 for canceling the display of the second control set can be selected according to actual needs, and this embodiment is not limited thereto.
[0113] Optionally, a description of other related processes and technical effects relating to the second attack control can be found by referring to the above description corresponding to the first attack control, and will not be described again in the embodiments of this disclosure.
[0114] In an optional embodiment, the graphical user interface includes a first attack control, and a first touch operation acting on the first attack control is a long press operation, controlling the virtual character to perform a third attack action if the press duration exceeds a first time threshold. Optionally, the third attack action and the first attack action have different damage values dealt to enemy virtual characters. For example, the attack intensity and / or duration corresponding to the third attack action and the first attack action are different, specifically, the first attack action is a normal attack and the third attack action is a charged attack. The functionality of the first attack control can be extended by displaying the first control set when the first attack control is long-pressed and controlling the virtual character to perform a third attack action, allowing the player to use different methods of operation on the first attack control in various combat scenes to trigger the virtual character to perform different attack actions and achieve different attack effects.
[0115] Controlling a virtual character to perform a third attack action when the first touch operation is a long press operation and the duration of the press exceeds a first time threshold may include controlling the virtual character to perform a preparatory action for the third attack action when the first touch operation is a long press operation, and then controlling the virtual character to perform the third attack action after the duration of the press exceeds the first time threshold. Of these, the preparatory action for the third attack action may be an action that controls the virtual character's posture or an action that controls the virtual character to hold a weapon. A specific preparatory action may be associated with the weapon currently held by the virtual character, the combat scene the virtual character is currently in, or the third attack action corresponding to the first attack control. The preparatory action for the third attack action is used to instruct the virtual character to prepare to perform the third attack action.
[0116] Controlling a virtual character to perform a third attack action if the first touch operation is a long press and the duration of the press is greater than or equal to a first time threshold may further include triggering the virtual character to perform a third attack action when the long press ends if the first touch operation is a long press and the duration of the long press is greater than or equal to a first time threshold but less than a second time threshold, provided that the second time threshold is greater than the first time threshold. Alternatively, if the first touch operation is a long press and the duration of the long press is equal to a second time threshold, the virtual character may be automatically triggered to perform a third attack action.
[0117] The method for triggering a virtual character to perform a third attack action may be one or more specifically selected depending on the actual game, and embodiments of this disclosure are not limited thereto. For example, if the third attack action is a charged attack of the first attack action, then when the player long-presses the first attack control, it means that they want to perform a charged attack, and if the time they hold it down is between a first time threshold and a second time threshold, then when the player releases their finger to end the long-press operation, the virtual character is controlled to perform a charged attack (i.e., the third attack action), or if the player's long-press time exceeds the second time threshold, the virtual character is automatically controlled to perform a charged attack.
[0118] In a possible embodiment, the method further includes controlling the virtual character to perform a fourth attack action if the third touch operation corresponding to the second attack control is a long press and the duration of the press is greater than or equal to a first time threshold, similar to the first touch operation corresponding to the first attack control described above. The fourth attack action and the second attack action differ in the amount of damage dealt to the enemy virtual character.
[0119] The first and second time thresholds described above can be set in advance according to the actual game, and this embodiment is not limited to that.
[0120] Based on the fact that a long press triggers a third attack action, the above method, if the first touch operation is a long press operation and the duration of the long press operation is greater than or equal to a first time threshold but less than a second time threshold, determines a third target control from the first set of controls in response to a slide operation following the long press operation, and controls the virtual character to perform an action corresponding to the third target control. In this way, during the process in which the player long-presses the first attack control to trigger the third attack action, if the player wishes to have the virtual character abandon the execution of the third attack action due to the necessity of combat (even if the virtual character is currently capable of performing the third attack action), the player slides their finger based on the long-press operation, and according to the direction of the finger slide operation, the third target control (e.g., a defensive control) is determined from the first set of controls, and the virtual character is further triggered to perform the action corresponding to the third target control, allowing for timely adjustment of the combat strategy. For example, the player can interrupt an executable third attack action in a timely manner and immediately switch to a defensive action, making the in-game combat scene more consistent with the actual process in real combat and resulting in a clearer and more realistic game experience. However, in conventional technology, the first touch operation is a long-press operation, and if the duration of the long-press operation is greater than or equal to the first time threshold but less than the second time threshold, the virtual character is controlled to perform the third attack action in response to the end of the long-press operation. Then, when the player releases their finger to end the long-press action and clicks the defense control on the graphical user interface again, the virtual character will first perform a third attack action, and then a defense action, making it impossible to adjust the virtual character's combat strategy in a timely manner or switch between attack and defense states in a timely manner.
[0121] Furthermore, the above method further includes, if the first touch operation is a short press operation where the holding time is less than a first time threshold, determining a third target action from the first set of controls in response to a slide operation following the short press operation, and controlling the virtual character to perform the third target action. In this way, if a player wants to interrupt an incomplete charge operation based on the battle situation while long-pressing a first attack control, they do not need to lift their finger, but can immediately slide to trigger the virtual character to quickly switch to another target action, enabling timely adjustments to battle strategies and improving the flexibility of game operation.
[0122] For example, if the first attack control is long-pressed 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 switch to a sword-swinging action, they can directly control the virtual character to interrupt the current charged attack and perform the action corresponding to the third target control by sliding their finger to the third target control within the first control set without having to lift their finger. Furthermore, they can quickly defend against attacks from enemy virtual characters, gaining a greater combat advantage. Additionally, if the player wants to interrupt the current charged attack and quickly switch to another action, they can directly control the virtual character to interrupt the current charged attack and perform the action corresponding to the target control by sliding their finger to the corresponding target control within the first control set (for example, the first target control, or the second target control, or the third target control, etc.) without lifting their finger, further improving the flexibility of gameplay.
[0123] In possible embodiments, the step of determining the first target action may include a step of identifying the first target action from a first action set according to the sliding direction of the slide operation, or a step of identifying the first target action from a first action set according to the sliding trajectory of the slide operation. For example, an action in the first action set corresponding to the sliding direction of the slide operation may be determined as the first target action; or, if a first control set is displayed, the control in the first control set that the sliding direction of the slide operation is facing may be determined as the first target control, and the action corresponding to the first target control may be set as the first target action; or, the control in the first control set closest to the end position of the sliding trajectory of the slide operation may be set as the first target control, and the action corresponding to the first target control may be set as the first target action. By the above method, the first target action can be determined quickly and accurately from the first action set.
[0124] The timing for determining the first target control from among the controls included in the first control set in response to the above slide operation may include any of the following: (1) when the distance traveled by the touch point due to the slide operation reaches a set distance threshold; (2) when the distance traveled by the touch point of the slide operation reaches the set distance threshold and the movement is completed; (3) when the touch point of the slide operation moves to the area where the first target control is located; or (4) when the touch point of the slide operation moves to the area where the first target control is located and the movement is completed.
[0125] The first set of controls described above can be displayed in various ways, for example, in the form of a roulette around the second set of controls. Based on this, displaying the first set of controls includes displaying a first roulette containing the first set of controls, with the controls in the first set of controls arranged on the first roulette. Typically, the first roulette is placed near the first attack controls to facilitate the player selecting a target control from the roulette. In possible embodiments, the first roulette surrounds the first attack controls, or the first roulette surrounds a preset position in a blank area of the graphical user interface, optionally associated with the position of the second control, for example, the preset position being a point within a first distance range from the center of the first attack controls.
[0126] Regarding the embodiment of the first roulette surrounding the first attack control, the format of the first roulette can refer to the format of the first control set in the schematic diagrams of the graphical user interface in Figures 7 and 8 described above. Of course, the format of the first roulette can also employ other variations of this format.
[0127] During the display process of the first roulette described above, the resident controls within the graphical user interface remain displayed in their original positions. To mitigate the occlusion effect of the first roulette on the resident controls, there is a certain interval between each resident control. In this way, during the display process of the roulette, the player can not only quickly select the next control that needs to be triggered from the roulette, but also easily select other resident controls besides the roulette based on the actual combat needs.
[0128] The transparency of the first roulette wheel described above is greater than the pre-set transparency threshold. In this way, the occlusion effect of the first roulette wheel on resident controls within the graphical user interface can be reduced.
[0129] To further mitigate 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 and fourth controls in the first control set are located to the left and right of the first attack control, respectively. This arrangement of controls makes it easier for the player to accurately select the corresponding target control during a slide operation.
[0130] In possible embodiments, the method further includes displaying a first control instruction in a first direction of the first attack control and a second control instruction in a second direction of the first attack control, wherein the first control instruction is used to indicate that a control in the first control set is displayed in a first direction of the first attack control when the first control set corresponding to the first attack control is displayed; and the second control instruction is used to indicate that a control in the first control set is displayed in a second direction of the first attack control when the first control set corresponding to the first attack control is displayed. The first and second control instructions described above may be pre-set graphic marks or graphics + color marks, etc., and should serve the purpose of indicating that a control in the first control set corresponds to that direction of the first attack control. Taking the graphical user interface shown in Figures 7 and 8 as an example, the graphics such as arrows on the outer circle of the first attack control are the first and second control instructions, such as control instruction 18a in Figure 8. The number of the first and second control instructions is associated with the number of controls in the first control set, where each control in the first control set corresponds to one control instruction. In a possible embodiment, the control instructions are also included in the first attack control that is displayed when the first control set is not displayed, so that the player can distinguish between controls that have a control set (or action set) set and controls that do not have a control set (or action set) set, and the player can know in advance information such as in which direction controls within a control set (or action set) are located.
[0131] 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 an angle threshold. The angle threshold can be any value between 20° and 45°, for example, the angle threshold is 20°, 30°, or 45°. This method of setting the positions of the controls in the first control set can effectively mitigate the problem of accidental touches during slide operations.
[0132] In a possible embodiment, the first control described above may be a dodge control. Based on this, the method described above includes controlling a virtual character to perform a first dodge action in response to a click operation on the dodge control, and controlling the virtual character to perform a second dodge action in response to a long press operation on the dodge control, wherein the first and second dodge actions have different dodge distances and / or states after dodging, the states including jogging or sprinting. This method, which triggers dodge actions corresponding to dodge controls depending on different operation types, allows for the implementation of multiple actions for a single control and simplifies the number of controls in the graphical user interface.
[0133] In another possible embodiment, the first control described above may be a jump control. Based on this, the method described above includes controlling a virtual character to perform a first jump action in response to a click operation on the jump control, and controlling the virtual character to perform a second jump action in response to a long press operation on the jump control, wherein the jump posture and / or jump height of the first jump action and the second jump action are different. This method, which triggers jump actions corresponding to a jump control depending on different operation types, allows for multiple actions to be performed for a single control and simplifies the number of controls in the graphical user interface.
[0134] In a possible embodiment, the dodge control may consist of an action set that includes a crouch action, thereby quickly controlling the virtual character to crouch and dodge an attack from an enemy virtual character by sliding, based on the control of the virtual character to dodge. Alternatively, the above dodge control may consist of a control set that includes a crouch control, thereby quickly controlling the virtual character to crouch and dodge an attack from an enemy virtual character by sliding, based on the control of the virtual character to dodge.
[0135] The graphical user interface further includes a sixth control, the sixth of which is a jump control. The method further includes, in response to a fourth touch operation acting on the sixth control, controlling a virtual character to perform a jump action if the fourth touch operation is a click operation, and, if the fourth touch operation is a slide operation, determining a fourth target action from a third set of actions in response to the slide operation, and controlling the virtual character to perform the fourth target action, the third set of actions including at least a crouching action.
[0136] The above method further includes the steps of: if the fourth touch operation is a long press operation, displaying the third control set; determining a fourth target control from among the controls included in the third control set in response to a slide operation following the long press operation; and controlling the virtual character to perform an action corresponding to the fourth target control; and canceling the display of the third control set in response to the end of the fourth touch operation.
[0137] The techniques corresponding to the sixth control, avoidance control, are the same as those corresponding to the second and fifth controls described above, so their explanation is omitted here.
[0138] In another possible embodiment, the jump control may consist of a control set that includes a crouch control, which, based on controlling the virtual character to jump, allows for quick control of the virtual character to crouch and dodge attacks from enemy virtual characters through a sliding operation.
[0139] The graphical user interface described above further includes a sixth control, the sixth of which is a jump control, and the method described above further includes the following steps.
[0140] (1) Determine the type of the fourth touch operation in response to the fourth touch operation acting on the sixth control; (2) If the fourth touch operation is a click operation, the virtual character is controlled to perform a jump action; if the fourth touch operation is a long press followed by a slide operation, the third set of controls is displayed, the fourth target control is determined from the controls included in the third set of controls according to the slide operation, and the virtual character is controlled to perform an action corresponding to the fourth target control, the third set of controls includes at least a crouch control, the crouch control is used to trigger the virtual character to perform a crouch action; (3) Cancel the display of the third control set.
[0141] The technique for the sixth control, jump control, is the same as the technique for the second and fifth controls described above, so its explanation is omitted here.
[0142] Referring to the schematic diagram of another graphical user interface shown in Figure 10, this embodiment describes an example where the sixth control is a dodge control, and the third set of controls corresponding to the dodge control 20 includes a crouch control 26, which 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, a third set of controls is displayed around the dodge control as shown in Figure 10, but in this embodiment, the third set of controls contains only a crouch control, and considering that the crouch control lowers the height of the virtual character, the crouch control in the third set of controls in the figure is set directly below the dodge control. Of course, in possible embodiments, the first set of controls could also be placed diagonally below the dodge control.
[0143] When the player's finger slides downwards from the dodge control position, that is, when the finger slides toward the crouch control and, after sliding a certain distance, for example, into the area where the crouch control is located, the virtual character is controlled to perform the crouch action corresponding to the crouch control. By sliding the finger from the dodge control to the lower crouch control, the player character can switch from the dodge action corresponding to the dodge control to the crouch action corresponding to the crouch control, making the operation smoother and more convenient, and effectively reducing the problem of accidental touches.
[0144] In addition to the attack controls, posture control (jump, crouch, or dodge controls) or defense control (sword swing controls) described above, the virtual character in this embodiment will also have several special skills. Correspondingly, the above method may further include displaying a seventh control on the graphical user interface, the seventh control being a skill control for triggering the virtual character to perform a skill, and the first attack control being an action control for triggering the virtual character to perform a first attack action. By setting the skill control, the player can perform skill attacks on enemy virtual characters at the right time, increasing the effectiveness of the attack.
[0145] Skills corresponding to the above skill controls have a cooldown period, while actions corresponding to the above action controls do not. In other words, when a skill control is triggered and the virtual character unleashes a skill, a timer starts counting down simultaneously, and only when the timer reaches its cooldown period can the skill control be triggered again, allowing the virtual character to unleash the skill again. In contrast, since action controls do not have a cooldown period, there is no need to wait after an action control is triggered, and the next action control can be triggered directly, allowing the virtual character to continuously perform actions corresponding to those action controls.
[0146] In games, different virtual characters typically possess different skills, and different virtual characters can have the ability to perform the same actions. Based on this, a virtual environment contains a first virtual character and a second virtual character. The skills of the first virtual character are different from those of the second virtual character, and both the first and second virtual characters can perform the first attack action. For example, the first virtual character has a defensive skill against a specified attack, and when this skill is activated, the opponent's specified attack becomes ineffective. The second virtual character has a skill that doubles attack damage, and when this skill is activated, the current attack deals double damage to the opponent. Both the first and second virtual characters can perform horizontal or vertical attack actions, as well as actions such as jumping and dodging.
[0147] In a possible embodiment, the first attack action described above is a contact attack action using the limbs and / or weapons of a virtual character. A contact attack refers to an attack in which the attacker's limbs or weapon make contact with the attacked person. For example, punching an enemy or cutting or stabbing an enemy with a knife or sword are common close-range attack actions in games.
[0148] In a possible embodiment, if the first touch operation is a slide operation, the step of determining a first target action from a first set of actions in response to the slide operation and controlling the virtual character to perform the first target action may include, if the first touch operation is a slide operation, determining a first target action from a first set of actions in response to the slide operation and determining whether an action interruption condition is met based on the virtual character's current action state and the first target action, and if so, controlling the virtual character to perform the first target action.
[0149] The "current action state" mentioned above refers to the action the virtual character was performing before the current slide operation. For example, if the player clicked the side attack control (or jump control) before performing the current slide operation, the "current action state of the virtual character" here refers to the action state in which the player clicked the side attack control (or jump control), causing the virtual character to perform a side attack (or jump).
[0150] The steps to determine whether an action interruption condition is met based on the virtual character's current action state and the first target action may include the following:
[0151] The action interruption condition is met if both the action corresponding to the control that triggers the virtual character to perform the current action state and the first target action are collective actions of multiple actions; If an interruption point is set in the action trajectory corresponding to the current action state performed by the virtual character, and the trigger time of the first target action occurs after the time corresponding to the interruption point, the action interruption condition is met. For example, if an interruption to a dodge action is added at 0.2 seconds of the attack trajectory of side attack 1, and the player triggers a dodge command after the side attack 1 action has been played for 0.2 seconds (for example, by triggering a dodge command through a slide operation acting on the first attack control), the virtual character will interrupt the current side attack action and immediately perform the dodge action. Conversely, if the player triggers a dodge command before the side attack action has been played for 0.2 seconds, the virtual character will not interrupt the current side attack action, meaning the dodge command will not be effective.
[0152] An action interruption condition is met if the first target action is included in the pre-configured set of interruption actions corresponding to the control that triggers the virtual character to perform the current action state.
[0153] The above method also includes not controlling the virtual character to perform the first target action if the above action interruption conditions are not met. Alternatively, if the above action interruption conditions are not met, the virtual character may be controlled to continue performing any actions that are not currently completed.
[0154] In a possible embodiment, if the above action interruption conditions are not met, the virtual character may be controlled to continue executing the currently incomplete action, and then execute the first target action once the execution of that action is complete.
[0155] In an optional embodiment, the controls in the first control set and the resident controls can be given differentiated functions. Taking the graphical user interface shown in Figure 7 as an example, there is a sword-swing control to the right of the side attack control in the first control set, and there is also a sword-swing control (a resident control of the graphical user interface) to the right of the control set outside the first control set. The sword-swing control in the roulette allows the player to quickly perform a sword-swing action by sliding, and the performed sword-swing action can interrupt the action currently being performed by the virtual character and achieve the objective of quickly unleashing the sword-swing action. The sword-swing control resident of the graphical user interface allows the virtual character to perform a sword-swing action after completing its current action, and such a sword-swing trigger mechanism does not affect the completion rate of the virtual character's current action, allowing the virtual character to obtain all incentive values corresponding to that action.
[0156] Using controls within the first set of controls can affect the completion rate of the action currently being performed by the virtual character, as it allows for the rapid execution of sword-swinging actions. Therefore, when using controls within the first set of controls, the incentive value that the virtual character receives for that action can be determined based on the completion rate of the virtual character's current action state. Based on this, the method described above further includes updating the incentive information corresponding to the virtual character based on the completion rate of the current action state being performed by the virtual character. For example, the completion rate of the action state has a positive relationship with the incentive value, with higher completion rates resulting in higher incentive values, the highest of which is the incentive value corresponding to the original action. For example, if the completion rate of the action state exceeds 90% of the original action, all incentive values for that action are received; if the completion rate of the action state is less than 90% of the original action, only half of all incentive values for that action are received.
[0157] In a possible embodiment, the above technology may have a regret mechanism, based on the fact that an action corresponding to a control in the first set of controls is triggered after the completion of a slide operation, namely, if during the slide operation the slide trajectory or direction of the slide points from a third control to a fourth control, the fourth control is determined as the target control and the virtual character is controlled to perform an action corresponding to the fourth control.
[0158] To better understand the above technology, this embodiment provides an example of an application scenario, referring to the schematic diagram of the graphical user interface shown in Figure 11. The content displayed by this graphical user interface includes a game scene and virtual objects (or virtual characters) within the game scene, and the player controls the virtual objects to move within the game scene. The interface in Figure 11 shows various controls, which are displayed in the game scene, and each control is introduced as follows:
[0159] Within this context, the backpack control 1000 is used to view items and props in the backpack, triggering the display of the backpack interface on the graphical user interface through touch operations acting on the control, and is used for browsing items and props, which include, but are not limited to, medical supplies, weapons, accessories, armor, and other props. In an optional embodiment, the edges of the backpack control 1000 are provided with edge lines to indicate the quantity of items in the backpack. The touch operations acting on the backpack control 1000 may include operations such as clicking, double-clicking, long-pressing, and sliding.
[0160] The movement control 1002 is represented by a circle filled with shadow, which is the joystick for movement control. In an optional embodiment, the movement control 1002 has a movement response area, which may be the same size as the movement control 1002. That is, the area in the graphical user interface corresponding to the movement control 1002 is the movement response area. In an optional embodiment, the size of the movement response area may be larger than the size of the movement control 1002. That is, the movement control 1002 is provided within the movement response area. Specifically, the graphical user interface is divided into left and right areas from the center, with the left area being the movement response area for movement control 1002. A movement control command is triggered through a touch operation acting on the movement response area of movement control 1002, and the direction of movement of the virtual object is controlled according to the movement control command. Of these, the touch operation acting on the movement response area of movement control 1002 may be an operation such as a click, double-click, long press, or slide.
[0161] The attack control 1014 triggers an attack command through a specific touch operation acting on the attack response area of the attack control 1014, and controls the virtual character to perform an attack action in the game scene in response to the attack command. The attack action triggered by the attack control 1014 corresponds to the virtual character's current equipment state. For example, if the virtual character is equipped with a ranged weapon, the attack action triggered by the attack control is a shooting action, meaning the right hand can perform a shooting operation by triggering the attack control 1014; if 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 set on the lower right side of the graphical user interface. Alternatively, in a feasible embodiment, there may be two attack controls, one attack control 1004 on the left side of the graphical user interface and one attack control 1014 on the right side of the graphical user interface. In this configuration, the display position of the attack controls can be adjusted according to a position setting command, which may be triggered in the setting interface or during gameplay. Of these, the specific touch operation that acts on the attack control may be a click, a double-click, or a long press. Here, a click or double-click is used to control the virtual character to perform a normal attack action, and a long press is used to control the virtual character to perform a charged attack action. The attack control 1014 in this embodiment has a control instruction, and when a long press is performed on the attack control 1014, a first set of controls is displayed on the graphical user interface, which may include at least one of a posture action control, a defense control, or other attack controls.If the touch operation is a slide operation, a first target control is determined from the first set of controls in response to the slide operation, and the virtual character is controlled to perform the action corresponding to the first target control.
[0162] The posture action controls 1008 and 1010 trigger posture adjustment commands through touch operations acting on the posture controls in order to adjust the posture of a virtual character in a game scene. Triggering posture action control 1008 allows the virtual character to perform a jump action, and triggering posture action control 1010 allows the virtual object to perform an evasion action. Posture action controls 1008 and 1010 are primarily used in scenes where a virtual character evades attacks from enemy virtual characters in close combat. Depending on the needs of the actual application scene, posture action controls may also include other controls such as crouch controls and sprint controls. The touch operations acting on the posture action controls may include clicks, double-clicks, long presses, and slides.
[0163] The sword-swing control 1011 is used to quickly knock away enemy weapons. After the player touches the sword-swing control 11 to knock away an enemy weapon, the player's virtual character can pick up the weapon. The touch operation acting on the sword-swing control may be a click, double-click, long press, slide, or other operation.
[0164] Regarding weapon slot 1012, triggering the weapon slot allows the player to switch the weapon they are using. The touch operation that affects the weapon slot may include clicks, double-clicks, long presses, slides, etc.
[0165] The field of view adjustment control 1026 (which may be a small eye icon) is used to control the shooting parameters of a virtual camera that represents the game image, thereby adjusting the field of view image of the game scene displayed in the graphical user interface. In an optional embodiment, if it is determined that a touch operation acting on the field of view adjustment control 1026 has been detected, the shooting parameters of the virtual camera are adjusted in response to the touch operation, and these shooting parameters include, but are not limited to, the position, orientation, and field of view of the virtual camera. To facilitate user operation, the field of view screen of the game scene can also be adjusted using a designated blank area in the graphical user interface. The touch operation on the field of view adjustment control 1026 may be an operation such as a click, double-click, long press, or slide.
[0166] The marking control 1028 marks virtual characters, virtual objects, etc., within the game scene through touch operations that act on the marking control. The touch operations applied to the marking control 1028 may include clicks, double-clicks, long presses, slides, etc.
[0167] The settings control 1032 is used to configure the basic functions of the current game. Clicking on control 1032 displays a settings menu for the user to perform configuration operations.
[0168] Of the message controls 1034 and 1036, message control 1034 can be used to view system notifications, and message control 1036 can be used to view messages sent by teammates or to send messages to teammates.
[0169] Minimap 1038 is used to display the location of the player's controlled virtual character, and can also display the location of some other players' virtual characters.
[0170] In addition to the controls described above, other controls such as lock controls, hook lock controls, lens mode switching controls, combat encyclopedia controls, speaker on / off controls, microphone on / off controls, facial expression controls, and text chat controls may also be included. The functions of these controls can be found in the relevant games, and the embodiments of this disclosure will not be described again.
[0171] The movement control of the virtual character described above may include the following two control methods:
[0172] (1) In non-ranged combat mode, moving the movement joystick downwards adjusts the virtual character's orientation to face the virtual camera, and the virtual character is controlled to move based on its current orientation. This method of controlling the virtual character's orientation via the movement joystick in non-ranged combat mode allows the virtual character to rotate to face the virtual camera when the movement joystick is dragged downwards, and the resulting movement is more in line with how people move in realistic combat scenes. For example, in a close-quarters combat scene, if the player's virtual character is defeated by an attack from an enemy virtual character, choosing to temporarily escape by turning and facing forward rather than running backwards will result in a stronger and clearer sense of speed and direction. As another example, in a close-quarters combat scene, if an enemy virtual character suddenly approaches the player's virtual character from behind, the player can quickly turn their virtual character around by dragging the movement joystick downwards with their left hand to attack the enemy virtual character, while simultaneously using the attack controls with their right hand to unleash an attack action on the approaching enemy virtual character. This movement joystick function can improve the player's response speed during combat, making it more consistent with actions performed in actual battles.
[0173] (2) In ranged combat mode, considering that ranged combat typically requires the provision of aiming or lock-on functionality for ranged weapons, in ranged combat mode, when the movement joystick is moved downward, the virtual character is controlled to move backward, and the virtual character's orientation remains facing away from the virtual camera so as not to affect the implementation of aiming or lock-on functionality in ranged attacks.
[0174] Furthermore, the movement joystick in the embodiment of this disclosure has one additional function: it adjusts the movement speed of the virtual character according to the drag amplitude of the movement joystick, with the larger the drag amplitude of the movement joystick per unit time, the faster the virtual character moves. In this way, the player can transition the virtual character from a brisk walk to a sprint action using only the left hand, without having to operate a specific sprint control with the right hand. Consequently, there is no need to set up a sprint control on the right side, and the number of controls that reside on the page is reduced. Based on this function, if the player is currently in a sprint action, pulling back the movement joystick will not interrupt the sprint state, and the sprint state of the virtual character will be maintained for a certain period of time. If the player does not quickly drag the movement joystick again within this time, the virtual character will be controlled to switch from a sprint state to a brisk walk state. If the player quickly drags the movement joystick again within this time, the virtual character will continue to be controlled in a sprint state. This configuration avoids the direct deceleration of the character caused by dragging the movement joystick to the edge of the movable area and then being unable to move again, while also mitigating the problem of excessive strain on the fingers caused by continuously dragging the movement joystick quickly. If the virtual character needs to run to a specific target location to complete the current task, the player can sprint the virtual character to the target location by quickly dragging the movement joystick multiple times, saving task execution time and ensuring that the task is completed successfully.
[0175] In the aforementioned melee attack scene of the virtual character, the attack direction is primarily controlled by snap, which represents an auxiliary steering function. Snap is a single functional point on the action trajectory, and its main function is to help the player adjust the steering toward the enemy target when launching an attack action. In other words, if no target is locked, the attack direction of the player's virtual character is the direction the character is currently facing. If a locked target exists, the attack direction is the bearing of the locked target. To make the attack process more realistic, in this embodiment, a direction adjustment functional point is set on the trajectory of the attack action corresponding to the attack control. When launching an attack action, the direction adjustment functional point uses the attack direction of the attack action as a reference for adjusting the character's orientation, adjusting the character's orientation to face the attack direction so that the character launches the attack action facing the locked target.
[0176] Based on the virtual character orientation control described above, in order to prevent the screen in the game scene from abruptly switching in accordance with the character's orientation and affecting the player's vision, in this embodiment, the shooting angle of the virtual camera is bound to the motion root point (motionroot point, which does not change even when the character's orientation changes) of the player's virtual character, and the shooting angle of the virtual camera moves in accordance with the movement of the character's motion root point. As a result, the game scene displayed to the player does not change simply because the player's virtual character changes orientation.
[0177] In an optional embodiment, a method for controlling another virtual character is provided, referring to Figure 12, which includes the following steps:
[0178] In step S1202, the first attack control is displayed on the graphical user interface.
[0179] Here, the first attack control corresponds to the first action set, which includes at least two action subsets. Each action subset corresponds to one state of the virtual character, and in this embodiment, if the virtual character has two states, a ground state and a floating state, then the two action subsets included in the first action set are the first action subset corresponding to the ground state and the second action subset corresponding to the floating state.
[0180] The first action set corresponding to the first attack control described above, the action subsets within the first action set, and the virtual character states corresponding to each action subset are all customizable according to user needs and can be customized on the game's settings page. For example, the settings page can provide multiple attack controls for the user to select a first attack control, provide multiple action lists for the user to select a first action set corresponding to the first attack control, divide the first action set into operation windows for multiple action subsets, and provide multiple states for the user to select an action subset corresponding to each state. This customization method reduces the user's understanding cost and makes operation easier.
[0181] In step S1204, in response to a first touch operation acting on the first attack control, if the first touch operation is a slide operation, a subset of target actions is determined from the first set of actions according to the state of the virtual character, and the first target action is determined from the subset of target actions according to the slide operation.
[0182] Optionally, if the virtual character is in a ground state, the first action subset is determined as the target action subset according to the correspondence between the state and the action subset described above, and if the virtual character is in a floating state, the second action subset is determined as the target action subset according to the correspondence between the state and the action subset described above.
[0183] 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.
[0184] The first attack control has pre-configured processing methods corresponding to different touch operation modes. When the first touch operation acts on the first attack control, it triggers a different processing method depending on the touch operation mode of the first touch operation. In this way, the first attack control has multiple functions, which not only improves the ease of operation but also reduces the number of controls that need to be placed on the page.
[0185] In step S1206, the virtual character is controlled to perform the first objective action.
[0186] The above method displays a first attack control on the graphical user interface via touch, but if the first touch operation acting on the first attack control is a slide operation, a target action subset is determined from the first action set according to the state of the virtual character, a first target action is determined from the target action subset according to the slide operation, and the virtual character is controlled to perform the first target action. The first target action may be an attack action, a defense action, a jump action, or other action. By determining the target action subset according to the state of the virtual character as described above, and further determining the first target action from the target action subset according to the slide operation, the user can achieve a continuity between the first attack action and the first target action more quickly and consistently. If it is necessary to control the virtual character to perform an action within the target action subset, this can be triggered by a slide operation acting on the first attack control without the user having to lift their finger and click on other controls in the graphical user interface, enabling rapid control of the virtual character, such as quickly controlling changes in attack behavior or switching between offense and defense. This operation process allows users to switch controls without lifting their fingers or shifting their gaze. Simultaneously, the method of determining a subset of target actions based on the virtual character's state reduces the complexity of the operation and user fatigue. This makes the operation more convenient, allowing users to respond quickly during interaction, and effectively mitigates the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0187] Embodiments of the present disclosure also provide a method for controlling another virtual character, the method providing a graphical user interface via a touch terminal, the touch terminal may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. While the embodiment illustrates an example showing a first set of actions and the virtual character's states including a ground state and a floating state, Figure 13 is a schematic flowchart of a method for controlling another virtual character according to one embodiment of the present disclosure, the method comprising the following steps.
[0188] In step S1302, the first attack control is displayed on the graphical user interface.
[0189] The relevant information for the action set corresponding to the first attack control is the same as the descriptive information in the method shown in Figure 12 above, and therefore will not be explained again here. Here, the display position of the actions within each action subset in the first action set is predetermined. Referring to the schematic diagram of how to define the action subsets and character states shown in Figure 14, the first action set is displayed in the form of a roulette, and the roulette is divided into four sectors. Roulette scheme 1 is the first action subset corresponding to the ground state of the virtual character (the shaded box in the figure indicates that the ground state is selected at this point). As shown in the figure, the user can set the Rising Dragon action, Sword Swing action, and Evade action to different positions on the roulette as needed. If you want to continue adding actions to the first action subset, you can drag the corresponding action control from the right to the "+" position on the roulette. If you want to delete an action within the first action subset, you can delete it by clicking the "×" icon corresponding to that action control on the roulette. If you want to reconfigure the first action subset, you can also click the Roulette Reset control at the bottom. Once you have finished configuring the first action subset, you can click the save control below to complete this configuration.
[0190] Referring to the schematic diagram of another method for defining action subsets and character states shown in Figure 15, Figure 15 is a schematic diagram of the configuration of a second action subset, which mainly corresponds to the floating state, similar to the configuration corresponding to the ground state described above. Here, Roulette Scheme 1 is the second action subset corresponding to the floating state of the virtual character. As shown in the figure, the shaded box indicates that the floating state is selected. The user can set the downward slash attack action, sword swing action, and dodge action to different positions on the roulette as needed, and the editing and saving method for the second action subset is the same as for the first action subset described above, so it will not be explained again here.
[0191] In some scenes, the actions on the roulette wheel can be set repeatedly; that is, the same action control can be set at different positions on the roulette wheel.
[0192] Multiple action subsets can be assigned to the same state of a virtual character. As shown in the schematic diagram of another method for defining action subsets and character states in Figure 16, in this diagram, the ground state corresponds to two first action subsets. As shown in Figure 16, Roulette Scheme 1 can be set to correspond to one first action subset, and Roulette Scheme 2 can be set to correspond to another first action subset. Here, different roulette schemes can correspond to different attack controls, or different weapon equipment for the same attack control can correspond to different roulette schemes. The method for editing and saving the first action subsets is the same as described above and will not be explained again here.
[0193] Each action within the above action subset corresponds to one sector, and if there are fewer than four actions within the action subset, there may be empty sectors. Of course, the method of dividing the roulette into sectors is not limited to the four-sector division method shown in Figures 14 to 16, and more sectors can be divided as needed, but this embodiment does not limit it.
[0194] In step S1304, in response to a first touch operation on a first attack control, 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.
[0195] In step S1306, if the first touch operation is a long press operation, a 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.
[0196] The above target control set is a control set corresponding to an action within the target action subset. In this embodiment, an example of displaying the target control set using a roulette wheel will be given for explanation.
[0197] If the virtual character is in a grounded state, according to the correspondence between the state and the action subset described above, the determined target control set is the control set corresponding to the first action subset. If the virtual character is in a floating state, according to the correspondence between the state and the action subset described above, the determined target control set is the control set corresponding to the second action subset. When the virtual character's state changes, the displayed target control set will also change accordingly.
[0198] In step S1308, if a slide operation follows a long press operation of the first touch operation, the first target control is determined from the target control set according to the slide operation.
[0199] The first target control may be determined specifically based on the direction of the slide operation or the trajectory of the slide operation.
[0200] In step S1310, the virtual character is controlled to perform an action corresponding to the first objective control.
[0201] Similar to the embodiment described above, the displayed target control set can be canceled based on time or events to reduce occlusion of other controls or scenes within the interface.
[0202] The above method displays a first attack control on the graphical user interface via touch, the first attack control corresponds to a first action set, the first action set includes at least two action subsets, each action subset corresponding to one state of the 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 is a long press operation, a target action subset is determined from the first action set according to the state of the virtual character, and a target control set corresponding to the target action subset is displayed. If a slide operation is performed following the long press operation, a first target action is determined from the target action set according to the slide operation, and the virtual character is controlled to perform an action corresponding to the first target action. The action corresponding to the first target control may be an attack action, a defense action, a jump action, or the like. The above method of determining the action subset based on the state of the virtual character and displaying the target control set can guide the user's slide operation more intuitively, and further determines the first target control based on the slide operation, causing the virtual character to perform an action corresponding to the first target control. This method allows users to achieve a more rapid and consistent continuity between the first attack action and the first target action. When it is necessary to control the virtual character to perform an action within a subset of target actions, this can be triggered by a slide operation acting on the first attack control without the user having to lift their finger and click on other controls in the graphical user interface. This enables rapid control of the virtual character, such as quickly controlling changes in attack behavior or shifts between offense and defense.This operation process allows users to switch controls without lifting their fingers or shifting their gaze. Simultaneously, the method of determining a subset of target actions based on the virtual character's state and displaying corresponding controls reduces the complexity of the operation and user gaming fatigue. This makes the operation more convenient, allowing users to respond quickly during interaction, and effectively mitigates the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0203] One embodiment of the present disclosure provides a method for controlling a virtual character. This method can be carried out based on the method provided in the above embodiment. Referring to the flowchart of the method for controlling a virtual character shown in Figure 17, this method includes the following steps:
[0204] In step S1702, a second action control corresponding to the second action is provided in a predetermined position on the graphical user interface, according to the virtual character's current action and the fourth action set.
[0205] Here, the current action of the virtual character refers to the last action performed by the virtual character, the fourth action set is a pre-configured action set, and at least one fourth action set can be pre-configured, the fourth action set contains at least two actions, and the second action set is the actions within the fourth action set.
[0206] The predetermined position can be set in advance according to operating habits and can be determined based on the position of the control that triggers the virtual character to perform the current action described above. For example, the predetermined position is adjacent to the left of the control that triggers the virtual character to perform the current action described above.
[0207] Assuming that the player clicks a first attack control, the virtual character performs a first attack action corresponding to the first attack control, and the first attack action is pre-associated with a fourth set of actions, when the virtual character performs the first attack action, a second action control corresponding to the second action is provided in a predetermined location on the graphical user interface (for example, adjacent to the left of the first attack control).
[0208] In step S1704, the virtual character is controlled to perform the second action in response to a trigger operation for the second action control.
[0209] The trigger operation for the second action control may be a click action. The second action may be an attack action, a defend action, or a stance action, etc.
[0210] If a virtual character currently has no actions, or if the current action is not associated with a fourth action set, the second action control described above will not be displayed in the graphical user interface to make the graphical user interface simpler and clearer.
[0211] The method described above makes it more convenient to trigger the virtual character to perform a second action when the virtual character performs its current action, by providing a second action control corresponding to the second action at a predetermined location on the graphical user interface, according to the virtual character's current action and a fourth set of actions, when the virtual character performs its current action. Placing the second action control at a predetermined location not only reduces the redundancy of controls that reside on the page, but also makes the second action control easy to touch, mitigating the problem of accidentally touching the control.
[0212] In a possible embodiment, the fourth action set described above includes at least two actions and an action sequence. Of these, the action sequence is typically set as needed to control a virtual character in a game scene. In this way, the order in which each action in the fourth action set is executed is better adapted to the operational needs.
[0213] If the fourth action set described above includes at least two actions, both of these actions can be referred to as the second action. Based on this, providing a second action control in the graphical user interface corresponding to the second action, according to the current action of the virtual character and the action order of the fourth action set, includes providing a second action control in the graphical user interface corresponding to the second action, according to the current action of the virtual character and the action order of the fourth action set. The second actions in the fourth action set are executed sequentially according to the action order and may be displayed in the predetermined positions described above.
[0214] Furthermore, the above method further includes the steps of providing a third action control corresponding to the third action in a predetermined position on 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, and both the second and third actions described above are actions within the third action set, with the third action following the second action in the action order. For example, in some touch terminal games, a common operation for performing an aerial attack is to sequentially click the jump control and then the attack control to perform the aerial attack. On the other hand, according to the actions in the fourth action set described above, the jump control and attack control can be displayed sequentially in the same predetermined position, and the user can control the virtual character to perform an aerial attack as needed without moving the position of their finger, greatly simplifying the user's touch operation.
[0215] As another example, the fourth set of actions associated with the current action includes normal attack, aerial pursuit, Rising Dragon, downward slash, 1-stage charge, 2-stage charge, and sword swing execution, with the action sequence being (1) normal attack, (2) aerial pursuit, (3) Rising Dragon, (4) downward slash, (5) 1-stage charge, (6) 2-stage charge, and (7) sword swing execution. When the virtual character performs the current action, according to the above action sequence, the normal attack control is first displayed in place, and after the user touches the normal attack control, the virtual character performs the normal attack action, switching to displaying the aerial pursuit control in place, and after the user touches the aerial pursuit control, the virtual character performs the aerial pursuit action, and then the Rising Dragon control is displayed in place, and so on. When the user stops touching the controls in place, or when the controls in the fourth set of actions are completed sequentially according to the numbers, the controls displayed in place are not switched, or the display of the second set of action controls in place is canceled.
[0216] The controls and action order within the fourth action set can be customized. Referring to the schematic diagram of the custom editing interface for the action set shown in Figure 18, the interface provides six action controls, including normal attack, aerial attack, uppercut, downward slash, one-stage charge, and two-stage charge, from which the user can select. The user can add the action to the appropriate position in the action set by dragging the action control icon to the order prompt bar below. The user can also edit and change the action order in the order prompt bar. For example, to delete an action in the action set, the user can select the icon of the action displayed in the order prompt bar, display an "x" on the icon, and click the icon again to delete the action from the action set. If it is necessary to continue adding actions to the action set, the user can add the action to the action set by clicking the "+" control in the order prompt bar and selecting the desired action from the action list.
[0217] To avoid conflicts caused by a single current action corresponding to multiple fourth action sets, when editing an action set, the start action is set for only one fourth action set. After that start action is used, the icon for that action can be locked, indicating that this icon cannot be repeatedly set as a start action, and then other action sets will no longer be able to select an action corresponding to this start action.
[0218] After the second action control is displayed at the designated location mentioned above, if a touch operation is performed on the second action control, the virtual character is controlled to perform the second action, and the third action control is displayed at the designated location. If no touch operation is received on the second action control within the first period during which the second action control is displayed, the second action control displayed at the designated location is canceled, and the third action control mentioned above is also removed from the designated location.
[0219] The fourth action set is an action set determined from at least two other action sets according to the current action. For example, the current action of a virtual character is the first-priority action in the fourth action set. Alternatively, in a possible embodiment, to associate an action with the fourth action set, the fourth action set may contain a start operation, which may not be an action included in the fourth action set, or it may be the first action included in the fourth action set. Each of the fourth action sets may contain one start operation, and different fourth action sets may correspond to different start operations. Thus, if the current action of a virtual character is the same as a start operation, 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.
[0220] When an attack control is touched and triggered for the virtual character to perform an attack action, if the attack action is the initiation action of a fourth action set, a second action control corresponding to the second action is displayed in the graphical user interface according to the fourth action set.
[0221] To provide the user with more appropriate prompts, set prompt information can also be marked on the second action control displayed in the predetermined location. For example, text prompt information or symbol prompt information can be displayed at the edge of the second action control to inform the user that the second action control is a special control that will lead to the next action, and the virtual character can be controlled sequentially and continuously by clicking the controls displayed in the predetermined location in order.
[0222] Optionally, the predetermined location described above can periodically display each action within the fourth action set, and is not limited to displaying the second action and the control corresponding to the second action, nor is it limited to displaying the last action within the fourth action set and then stopping the display. The icon for the second action control described above can match the content of the action; for example, if the second action control is a jump control, it may take the form of the jump control 1008 in Figure 11.
[0223] Providing a second action control in the graphical user interface that corresponds to the second action, based on the virtual character's current action and the fourth action set, includes providing a second action control in the graphical user interface that corresponds to the second action, based on the virtual weapon used by the virtual character, the virtual character's current action, and the fourth action set. This method can satisfy the user's need to use different fourth action sets with different weapons in the game, making the control of the virtual character more consistent with the actual application scene.
[0224] As a possible embodiment, providing a second action control in a graphical user interface corresponding to a second action, based on the virtual weapon used by the virtual character, the current action of the virtual character, and a fourth action set, includes 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, and providing a second action control in a graphical user interface corresponding to a second action according to the action order of the current action of the virtual character and the fourth action set.
[0225] The above-mentioned virtual weapon can correspond to multiple action sets, and these action sets are the candidate action sets mentioned above. The correspondence between virtual weapons and action sets is customizable. Referring to the schematic diagram of the editing interface for the correspondence between virtual weapons and action sets shown in Figure 19, the left side of the diagram is the virtual weapon list, which provides selectable virtual weapons, such as longsword, katana, broadsword, dagger, gun, and nunchuck. The right side is the editing interface for the fourth action set corresponding to the currently selected virtual weapon. Each virtual weapon can contain multiple fourth action sets. The diagram shows an example where the action set corresponding to the longsword (the shaded box in the diagram indicates the currently selected virtual weapon) includes scheme 1, scheme 2, and scheme 3. Scheme 1 includes normal attack, rising dragon, stage 1 charge, and stage 2 charge, and actions within the set can be added and the order of actions within the set can be changed via the editing controls. At the same time, it is also possible to edit the corresponding action sets via the editing controls corresponding to scheme 2 and scheme 3.
[0226] The method described above allows the same action to be reused as a starting action in candidate action sets corresponding to different virtual weapons, but within candidate action sets corresponding to the same virtual weapon, the starting actions for each set will be different.
[0227] The actions in the fourth action set described above may correspond to non-resident controls of the graphical user interface or to resident controls of the graphical user interface. The actions in the fourth action set may be triggered by resident controls within the graphical user interface or by action controls in a predetermined location, and these two do not affect each other.
[0228] In possible embodiments, the control size, transparency, and position of the action control (a control corresponding to an action in the fourth action set) displayed at the predetermined location can all be customized according to the user's preference. The action control displayed at the predetermined location may use the same icon, or it may switch between icons corresponding to different actions depending on the action order in the fourth action set.
[0229] The second action described above is the action that follows the current action (i.e., the most recent action performed by the virtual character) in the fourth action set. For example, if the virtual character is currently performing a normal attack action, according to the action order in the fourth action set, the second action is the next action adjacent to the normal attack action.
[0230] In a possible embodiment, the method further includes, upon receiving a click operation acting on the first attack control within a first time period after controlling the virtual character to perform a first attack action in response to a click operation acting on the first attack control, controlling the virtual character to perform a fourth attack action, where the fourth attack action may be a charge attack or heavy attack action that is more powerful than the first attack action. In other words, the user can inflict different attack damage on enemy virtual characters by repeatedly clicking the same attack control within a certain time period.
[0231] In a possible embodiment, the method further includes controlling the virtual character to perform a first attack action when a click operation acting on the first attack control is received a first time after the first time operation has been controlled to perform a first attack action in response to a click operation acting on the first attack control. If another click operation on the first attack control is received after the first time operation, the virtual character is controlled to perform a first attack action, thereby enabling multiple attacks of similar magnitude against the same attack control.
[0232] Based on the above-described embodiment of the method, the embodiments of the present disclosure also provide a device for controlling a virtual character, which, referring to Figure 20, includes the following:
[0233] The control display module 2001 displays the first attack control on the graphical user interface.
[0234] The character control module 2002 responds to a first touch operation acting on a first attack control by controlling the virtual character to perform a first attack action corresponding to the first attack control if the first touch operation is a click operation, and by determining a first target action from a first action set in accordance with the slide operation and controlling the virtual character to perform the first target action if the first touch operation is a slide operation.
[0235] The above-described device displays a first attack control on a graphical user interface, and the user can control a virtual character to perform a first attack action by touching the control. The user can also determine a first target action from a first action set and control the virtual character to perform the first target action by touching the first attack control. That is, the first attack control can not only control the virtual character to perform a first attack action, but also control the virtual character to perform a first target action. Specifically, if the first touch operation acting on the first attack control is a click operation, the device controls the virtual character to perform a first attack action, and if the first touch operation is a slide operation, the device determines a first target action from a first action set in response to the slide operation and controls the virtual character to perform the first target action. The first target action may be the first attack action described above, or it may be any other action. When a user needs to control a virtual character to perform a first attack action, they can do so by clicking the first attack control originally displayed in the graphical user interface. Similarly, when a user needs to control a virtual character to perform actions such as jumping or defending, they can do so by sliding the first attack control, in addition to touching the jump control, defending control, etc., originally displayed in the graphical user interface. This method of determining the first target action from the first action set in response to the aforementioned sliding operation allows the user to perform the continuation of the first attack action and the first target action more quickly and consistently.When it is necessary to control a virtual character to perform an action in a first action set, the user can accurately determine the first target action from the first action set based solely on a slide operation acting on the first attack control, without having to lift their finger and click on other controls in the graphical user interface. Throughout the entire process of the virtual character from the first attack action to the first target action, the user does not need to find and position other controls within the interface (controls corresponding to defensive actions, jump actions, etc.). The first target action from the first action set can be easily determined by a slide operation on the first attack control, and then the virtual character is controlled to perform the first target action. This enables rapid control of the virtual character, such as high-speed control of changes in attack behavior or transitions between offense and defense. In this operation process, the user can switch controls without lifting their finger or shifting their gaze, and the user can respond quickly during interaction, making operation more convenient and effectively reducing the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0236] The first action set described above includes direction information and action information corresponding to that direction information, and accordingly the character control module 2002 is also configured to determine the action in the first action set that matches the direction of the slide operation as the first target action.
[0237] The character control module 2002 is also configured to determine a first target action from a first set of actions in accordance with the slide operation and the state of the virtual character.
[0238] The first action set includes at least two action subsets, and accordingly, the character control module 2002 is also configured to determine a target action subset from the first action set based on the state of the virtual character, and to determine a first target action from the target action subset based on the slide operation.
[0239] The states of the virtual character include ground state and floating state.
[0240] The first action set mentioned above is a user-customized set.
[0241] The character control module 2002 is also configured to display a first set of controls when the first touch operation is a long press operation, to determine a first target control from the controls included in the first set of controls in response to a slide operation following the long press operation, and to control the virtual character to perform an action corresponding to the first target control, where the controls included in the first set of controls correspond to the actions included in the first set of actions.
[0242] 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.
[0243] The direction from the first attacking control to the third control in the first set of controls is different from the direction from the first attacking control to the fourth control in the first set of controls.
[0244] The character control module 2002 is also configured to determine a first target action from the first action set in accordance with the slide trajectory of the slide operation.
[0245] The character control module 2002 also determines a first target action from the first action set in response to the slide operation if the first touch operation is a slide operation, determines whether an action interruption condition is met based on the virtual character's current action state and the first target action, and if it is met, controls the virtual character to perform the first target action. If it is not met, does not control the virtual character to perform the first target action. Alternatively, if it is not met, controls the virtual character to continue performing any actions that are not currently completed.
[0246] The character control module 2002 also controls the virtual character to perform a fourth attack action if it receives a click operation acting on the first attack control within a first time period after it has controlled the virtual character to perform a first attack action in response to a click operation acting on the first attack control.
[0247] The character control module 2002 also controls the virtual character to perform the first attack action if it receives a click operation acting on the first attack control a first time after it has controlled the virtual character to perform the first attack action in response to a click operation acting on the first attack control.
[0248] The control display module 2001 described above is also configured to display a first control on a graphical user interface, and accordingly, the character control module 2002 also controls a virtual character to perform an action corresponding to the first control in response to a second touch operation acting on the first control.
[0249] The action corresponding to the first control described above is a non-aggressive action. The action corresponding to the first control described above may be a defensive action, an evasive action, a jump action, a crouching action, or a crawling action.
[0250] Optionally, the first action set includes actions corresponding to the first control.
[0251] The first control and the first attack control displayed in the graphical user interface described above are resident controls within 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 being an action set corresponding to the resident controls within the graphical user interface, and the second sub-action set being an action set corresponding to the non-resident controls within the graphical user interface.
[0252] The first control set includes a first sub-control set and a second sub-control set, wherein 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.
[0253] The control display module 2001 is also configured to display a second attack control on a graphical user interface, wherein 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.
[0254] The character control module 2002 also responds to a third touch operation acting on the second attack control by, if the third touch operation is a click operation, controlling the virtual character to perform a second attack action corresponding to the second attack control; if the third touch operation is a slide operation, determining a second target action from the second action set in response to the slide operation, and controlling the virtual character to perform the second target action. If the third touch operation is a long press operation, displaying a second control set, determining a second target control from the controls included in the second control set in response to a slide operation following the long press operation, and controlling the virtual character to perform an action corresponding to the second target control, where the controls included in the second control set correspond to the actions included in the second action set.
[0255] The control display module 2001 is also configured to cancel the display of the second set of controls. Optionally, it cancels the display of the second set of controls in response to the end of a third touch operation.
[0256] The character control module 2002 is also configured to control the virtual character to perform a third attack action if the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold. If the first touch operation is a long press operation, the virtual character is controlled to perform a preparation action for the third attack action, and after the duration of the press has exceeded the first time threshold, the virtual character is controlled to perform the third attack action. If the first touch operation is a long press operation and the duration of the long press operation is greater than or equal to a first time threshold but less than a second time threshold when the long press operation ends, the virtual character is triggered to perform a third attack action when the long press operation ends, where the second time threshold is greater than the first time threshold. If the first touch operation is a long press operation and the duration of the long press operation is equal to the second time threshold, the virtual character is automatically triggered to perform a third attack action. If the first touch operation is a long press operation, and the duration of the long press operation is greater than or equal to a first time threshold but less than a second time threshold, then in response to a slide operation following the long press operation, a third target action is determined from the first action set, and the virtual character is controlled to execute the third target action.
[0257] Optionally, the character control module 2002 is also configured to determine a first target action from the first action set in accordance with the slide trajectory of the slide operation.
[0258] The control display module 2001 is also configured to display a first roulette containing a first set of controls, the controls in the first set of controls arranged on the first roulette.
[0259] The aforementioned first roulette surrounds the first attack control.
[0260] The first roulette wheel encloses the preset positions of the blank areas in the graphical user interface.
[0261] The direction from the first attacking control to the third control in the first set of controls is different from the direction from the first attacking control to the fourth control in the first set of controls.
[0262] The control display module 2001 is also configured to display a first control instruction in a first direction of a first attack control and a second control instruction in a second direction of the first attack control, wherein the first control instruction indicates that a control in the first control set is displayed in the first direction of the first attack control when the first control set corresponding to the first attack control is displayed, and the second control instruction indicates that a control in the first control set is displayed in the second direction of the first attack control when the first control set corresponding to the first attack control is displayed.
[0263] 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 angular threshold.
[0264] The first control described above is a dodge control, and the character control module 2002 also controls the virtual character to perform a first dodge action in response to a click operation on the dodge control, and controls the virtual character to perform a second dodge action in response to a long press operation on the dodge control, wherein the first and second dodge actions differ in the dodge distance and / or state after the dodge, the state including jogging or sprinting.
[0265] The first attack action described above may also be a contact attack action performed by the limbs and / or weapons of the virtual character.
[0266] The character control module 2002 also determines a first target control from the controls included in the first control set in response to a first touch operation if the first touch operation is a slide operation, determines whether an action interruption condition is met based on the virtual character's current action state and the action corresponding to the first target control, and if it is met, controls the virtual character to perform the action corresponding to the first target control.
[0267] The graphical user interface further includes a sixth control, the sixth control being a jump control, and the character control module 2002 also responds to a fourth touch operation acting on the sixth control by controlling the virtual character to perform a jump action if the fourth touch operation is a click operation, and if the fourth touch operation is a slide operation, by determining a fourth target action from the third action set in accordance with the slide operation, and controlling the virtual character to perform the fourth target action, the third action set including at least a crouch action. If the fourth touch operation is a long press operation, the third control set is displayed, and in response to a slide operation following the long press operation, a fourth target control is determined from the controls included in the third control set, and the virtual character is controlled to perform an action corresponding to the fourth target control, and in response to the end of the fourth touch operation, the display of the third control set is canceled. In response to the end of the fourth touch operation, the display of the third control set is canceled.
[0268] The aforementioned control display module 2001 is also configured to display a seventh control on the graphical user interface, where 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.
[0269] Skills that correspond to the above skill control have a cooldown period, while actions that correspond to action control do not have a cooldown period.
[0270] In the virtual environment corresponding to the graphical user interface described above, there are a first virtual character and a second virtual character. The skills possessed by the first virtual character are different from those possessed by the second virtual character, and both the first and second virtual characters can perform the first attack action.
[0271] The first attack action described above is a contact attack action performed by the limbs and / or weapons of the virtual character.
[0272] Based on the above-described embodiment of the method, the embodiments of the present disclosure also provide a device for controlling a virtual character, which, as shown in Figure 21, includes the following:
[0273] The control providing module 2101 is configured to provide a second action control corresponding to the second action at a predetermined location on the graphical user interface, according to the current action of the virtual character and the fourth action set.
[0274] The operation execution module 2102 controls the virtual character to perform the second action in response to a trigger operation for the second action control.
[0275] When the virtual character performs the current action, the above apparatus provides the 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, which can make it 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 not only reduce the redundancy of controls where the second action control resides on the page, but also allow the second action control to be easily touched, mitigating the problem of accidentally touching the control.
[0276] The fourth action set includes at least two actions and an action sequence.
[0277] The control providing module 2101 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.
[0278] The control providing module 2101 is further configured 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, and correspondingly, the operation execution module 2102 is further configured to control the virtual character to perform the third action in response to a trigger operation on the third action control.
[0279] The fourth action set is an action set determined from at least two action sets according to the current action. The current action is the first-ranked action of the second action set.
[0280] Further, the control providing module 2101 is also configured to provide a second action control corresponding to the second action on 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.
[0281] The control providing module 2101 is further configured to determine a candidate action set according to the virtual weapon used by the virtual character, determine a fourth action set from the candidate action set according to the current action of the virtual character, and provide the second action control corresponding to the second action on the graphical user interface according to the current action of the virtual character and the action sequence of the fourth action set.
[0282] As a possible embodiment, the second action is an action positioned next to the current action in the fourth action set.
[0283] Based on the above method embodiments, the embodiments of the present disclosure also provide an apparatus for controlling a virtual character, and as shown in FIG. 22, the apparatus includes the following.
[0284] The first display module 2202 is configured to display a first control and a second control on a graphical user interface, where the second control is a first attack control.
[0285] The first control module 2204 controls the virtual character to execute the action corresponding to the first control in response to a second touch operation acting on the first control.
[0286] The second display module 2206 is configured to display a first set of controls in response to a long press operation acting on a second control, where the first set of controls includes at least a third control, the third control being used to trigger a virtual character to perform an action corresponding to the first control. If the touch operation acting on the second control is a click operation, the first control is not displayed, and the virtual character is controlled to perform a first attack action corresponding to the second control.
[0287] The second control module 2208, in response to a slide operation following a long press operation acting on the second control, determines a first target control from among the controls included in the first control set according to the slide operation, and controls the virtual character to perform an action corresponding to the first target control.
[0288] In the device for controlling the virtual character described above, provided in one embodiment of the present disclosure, a user (player) can control the virtual character to perform an action corresponding to a first control (e.g., a jump action, a defensive action, etc.) by touching a first control of the graphical user interface. The user can also display a set of controls corresponding to a first attack control (referred to as the first control set) by long-pressing a first attack control (i.e., a second control) of the graphical user interface. The first control set includes a third control that can trigger the virtual character to perform an action corresponding to the first control. If a slide operation is performed after a long-press operation, the device determines a first target control from among the controls included in the first control set in response to the slide operation, and controls the virtual character to perform an action corresponding to the first target control. If the first target control is the third control in the first control set, the virtual character can be controlled to perform an action corresponding to the first control in the graphical user interface. In this way, when a user needs to control a virtual character to perform a first attack action, they can click on the first attack control originally displayed in the graphical user interface, or long-press on the first attack control to display a set of controls corresponding to the first attack control (referred to as the first control set), the first control set containing third controls that can be used to trigger the virtual character to perform the action corresponding to the first control.When a user needs to control a virtual character to perform actions such as jump actions or defensive actions, this can be achieved by touching a first control originally displayed in the graphical user interface. This can be achieved by sliding on the first attack control to trigger a third control within the control set (referred to as the first control), thereby controlling the virtual character to perform actions such as jump actions or defensive actions. The displayed first control set allows the user to determine the position of each control within the control set more intuitively and clearly. When it is necessary to operate a specific control within the first control set, the user can accurately determine the first target control from the first control set with only a sliding operation, without having to lift their finger and click on other controls in the graphical interface. Throughout the entire process, the user does not need to search for and position other controls (controls corresponding to actions such as defensive actions or jump actions) within the interface. A sliding operation on the second control allows the user to easily determine the first target control from the first control set. Furthermore, by triggering the virtual character to perform actions corresponding to the first target control, rapid control of the virtual character is achieved, such as quickly controlling changes in attack behavior or switching between offense and defense. Because the first set of controls can be displayed when the second control is long-pressed, it provides an intuitive reference base for the user to interact with the controls. The user does not need to remember how to trigger the controls in the first set of controls; if they need to interact with any control in the first set of controls, they can do so by sliding towards that control. If the user remembers the correspondence between each control in the first set of controls and the direction of the slide, they do not need to long-press the second control, and the first set of controls will not be displayed.This method reduces interface occlusion caused by the first set of controls to some extent, and improves the speed and consistency of switching virtual character actions to some degree.
[0289] Regardless of whether the first set of controls is displayed in the above embodiment, during operation, the user does not need to lift their fingers or shift their gaze to switch controls, allowing for quicker reactions during interaction, making operation easier, and effectively mitigating the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0290] The device for controlling a virtual character provided by the embodiments of the present invention has the same implementation principle and technical effects as the embodiments of the method for controlling a virtual character described above. For the sake of brevity, for parts not mentioned in the embodiments of the device for controlling a virtual character, the corresponding content of the embodiments of the method for controlling a virtual character described above can be referenced.
[0291] Embodiments of this disclosure also provide an electronic device, and Figure 23 is a schematic diagram of the electronic device. The electronic device 2300 includes a processor 2301 and a memory 2304, the memory 2304 storing computer-executable instructions that can be executed by the processor 2301, and the processor 2301 executes the computer-executable instructions to implement a method for controlling the virtual character.
[0292] Specifically, processor 2301 is, The steps include displaying the first attack control in a graphical user interface, In response to a first touch operation acting on a first attack control, if the first touch operation is a click operation, the virtual character can be controlled to perform a first attack action corresponding to the first attack control; if the first touch operation is a slide operation, a first target action can be determined from a first action set in response to the slide operation, and the virtual character can be controlled to perform the first target action.
[0293] In an optional embodiment, based on the solution described above, the first action set includes direction information and action information corresponding to the direction information, and determining a first target action from the first action set in response to the slide operation can be achieved by specifically performing the step of determining an action in the first action set that coincides with the direction of the slide operation as the first target action.
[0294] In an optional embodiment, determining a first target action from a first set of actions in response to the slide operation described above, based on the solution described above, can be achieved by specifically performing the step of determining a first target action from a first set of actions in response to the slide operation and the state of the virtual character.
[0295] In an optional embodiment, based on the solution described above, the first action set includes at least two action subsets, and determining a first target action from the first action set in accordance with the slide operation and the state of the virtual character can be achieved by specifically performing the steps of determining a target action subset from the first action set based on the state of the virtual character, and determining a first target action from the target action subset based on the slide operation.
[0296] In an optional embodiment, based on the solution described above, the states of the virtual character include a ground state and a floating state.
[0297] In an optional embodiment, based on the aforementioned solution, the first action set described above is a user-customized set.
[0298] In an optional embodiment, based on the aforementioned solution, the following steps may be further performed: displaying a first control on a graphical user interface, and in response to a second touch operation acting on the first control, controlling a virtual character to perform an action corresponding to the first control.
[0299] In an optional embodiment, based on the aforementioned solution, the following steps may also be performed. The first action set includes the action corresponding to the first control.
[0300] In an optional embodiment, based on the aforementioned solution, when the first touch operation is a long press operation, the following step may also be performed: displaying a first control set, determining a first target control from the controls included in the first control set according to a slide operation following the long press operation, and controlling the virtual character to perform an action corresponding to the first target control, where the controls included in the first control set correspond to the actions included in the first action set.
[0301] In an optional embodiment, based on the aforementioned solution, the action corresponding to the first control described above is a non-aggressive action.
[0302] In an optional embodiment, based on the aforementioned solution, the action corresponding to the first control described above is a defense action, an evasion action, a jump action, a crouch action, a sliding shovel action, or a crawling action.
[0303] In an optional embodiment, the step of canceling the display of the first set of controls can also be performed based on the solution described above.
[0304] In an optional embodiment, canceling the display of the first set of controls described above based on the solution described above can be achieved by specifically performing the step of canceling the display of the first set of controls in response to the end of the first touch operation.
[0305] In an optional embodiment, based on the solution described above, the first control and the first attack control displayed in the graphical user interface are resident controls within the graphical user interface.
[0306] In an optional embodiment, based on the solution described above, the first action set includes a first sub-action set and a second sub-action set, the first sub-action set being an action set corresponding to resident controls in the graphical user interface, and the second sub-action set being an action set corresponding to non-resident controls in the graphical user interface.
[0307] In an optional embodiment, based on the solution described above, the first control set includes a first sub-control set and a second sub-control set, wherein 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.
[0308] In an optional embodiment, based on the solution described above, the step of displaying a second attack control on a graphical user interface may also be performed, wherein 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.
[0309] In an optional embodiment, based on the solution described above, the following steps can be further performed: if the third touch operation is a click operation, control the virtual character to perform a second attack action corresponding to the second attack control in response to a third touch operation acting on a second attack control; if the third touch operation is a slide operation, determine a second target action from a second set of actions in response to the slide operation and control the virtual character to perform the second target action.
[0310] In an optional embodiment, based on the solution described above, if the third touch operation is a long press operation, the second set of controls may be displayed, and in response to the slide operation following the long press operation, a second target control may be determined from the controls included in the second set of controls, and the virtual character may be controlled to perform an action corresponding to the second target control, where the controls included in the second set of controls correspond to the actions included in the second set of actions.
[0311] In an optional embodiment, the step of canceling the display of the second set of controls can be further performed based on the solution described above.
[0312] In an optional embodiment, canceling the display of the second set of controls described above, based on the solution described above, can be achieved by specifically performing the step of canceling the display of the second set of controls in response to the end of a third touch operation.
[0313] In an optional embodiment, based on the solution described above, the step of controlling the virtual character to perform a third attack action can be further performed if the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold.
[0314] In an optional embodiment, based on the solution described above, controlling the virtual character to perform a third attack action if the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold can be achieved by specifically performing the steps of controlling the virtual character to perform a preparation action for the third attack action if the first touch operation is a long press operation, and then controlling the virtual character to perform the third attack action after the duration of the press has exceeded the first time threshold.
[0315] In an optional embodiment, based on the solution described above, controlling a virtual character to perform a third attack action if the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold can be achieved by specifically performing the step of triggering the virtual character to perform a third attack action when the long press operation ends if the duration of the long press operation is greater than or equal to a first time threshold and less than a second time threshold, where the second time threshold is greater than the first time threshold.
[0316] In an optional embodiment, based on the solution described above, the step of automatically triggering the virtual character to perform a third attack action can be performed if the first touch operation is a long press operation and the duration of the long press operation is equal to a second time threshold.
[0317] In an optional embodiment, based on the solution described above, if the first touch operation is a long press operation, and the duration of the long press operation is greater than or equal to a first time threshold but less than a second time threshold, the further steps can be taken to determine a third target action from a first set of actions in response to a slide operation following the long press operation, and to control the virtual character to perform the third target action.
[0318] In an optional embodiment, determining a first target action from a first set of actions in response to the slide operation described above, based on the solution described above, can be achieved by specifically performing the step of confirming the first target action from the first set of actions in response to the slide trajectory of the slide operation.
[0319] In an optional embodiment, displaying the first set of controls described above based on the solution described above can be achieved by specifically performing the step of displaying a first roulette containing the first set of controls, the first roulette having the controls in the first set of controls arranged on it.
[0320] In an optional embodiment, based on the solution described above, the first roulette surrounds the first attack control.
[0321] In an optional embodiment, based on the solution described above, the first roulette surrounds a preset position in a blank area of the graphical user interface.
[0322] In an optional embodiment, based on the solution described above, 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.
[0323] In an optional embodiment, based on the solution described above, the steps of displaying a first control instruction in a first direction of the first attack control and a second control instruction in a second direction of the first attack control can be further performed, wherein the first control instruction indicates that a control in the first control set is displayed in a first direction of the first attack control when the first control set corresponding to the first attack control is displayed, and the second control instruction indicates that a control in the first control set is displayed in a second direction of the first attack control when the first control set corresponding to the first attack control is displayed.
[0324] In an optional embodiment, based on the solution described above, the angle between a ray starting from the first attack control and pointing to the third control in the first control set and a ray starting from the first attack control and pointing to the fourth control in the first control set is greater than the angular threshold.
[0325] In an optional embodiment, based on the solution described above, the first control described above is a dodge control, and the further steps of controlling the virtual character to perform a first dodge action in response to a click operation on the dodge control, and controlling the virtual character to perform a second dodge action in response to a long press operation on the dodge control, wherein the first and second dodge actions differ in the dodge distance and / or the state after the dodge, the state including jogging or sprinting.
[0326] In an optional embodiment, based on the solution described above, the graphical user interface further includes a sixth control, the sixth control being a jump control, and in response to a fourth touch operation acting on the sixth control, the further steps can be taken: if the fourth touch operation is a click operation, control the virtual character to perform a jump action; and if the fourth touch operation is a slide operation, determine a fourth target action from a third set of actions in response to the slide operation, and control the virtual character to perform the fourth target action, the third set of actions including at least a crouch action.
[0327] In an optional embodiment, based on the solution described above, if the fourth touch operation is a long press operation, the further steps can be taken to display the third set of controls, determine a fourth target control from among the controls included in the third set of controls in response to a slide operation following the long press operation, and control the virtual character to perform an action corresponding to the fourth target control, and to cancel the display of the third set of controls in response to the end of the fourth touch operation.
[0328] In an optional embodiment, based on the solution described above, the step of displaying a seventh control on a graphical user interface can be further performed, where the seventh control is a skill control for triggering the virtual character to perform a skill release, and the first control is an action control for triggering the virtual character to perform a first attack action.
[0329] In an optional embodiment, based on the solution described above, skills corresponding to the skill control have a cooldown period, while actions corresponding to the action control do not have a cooldown period.
[0330] In an optional embodiment, based on the solution described above, the virtual environment corresponding to the graphical user interface contains a first virtual character and a second virtual character, the skills of the first virtual character are different from those of the second virtual character, and both the first and second virtual characters can perform the first attack action.
[0331] In an optional embodiment, based on the solution described above, the first attack action is a contact attack action performed by the limbs and / or weapons of the virtual character.
[0332] In an optional embodiment, based on the solution described above, if the first touch operation is a slide operation, determining a first target action from a first set of actions in response to the slide operation and controlling the virtual character to perform the first target action can be achieved by performing the steps of: determining a first target action from a first set of actions in response to the slide operation if the first touch operation is a slide operation; determining whether an action interruption condition is met based on the virtual character's current action state and the first target action; and, if met, controlling the virtual character to perform the first target action.
[0333] In an optional embodiment, based on the solution described above, a further step may be taken in which the virtual character is not controlled to perform the first target action if it is not met.
[0334] In an optional embodiment, based on the solution described above, a further step can be taken to control the virtual character to continue performing any currently incomplete actions if the conditions are not met.
[0335] In an optional embodiment, based on the solution described above, the further steps may be taken to provide a second action control corresponding to a second action at a predetermined location on the graphical user interface, according to the current action of the virtual character and the fourth action set, and to control the virtual character to perform the second action in response to a trigger operation on the second action control.
[0336] In an optional embodiment, based on the solution described above, the fourth action set includes at least two actions and action sequences.
[0337] In an optional embodiment, providing a second action control corresponding to a second action at a predetermined location in the graphical user interface according to the current action of the virtual character and the fourth action set described above can be achieved by specifically performing the step of providing a second action control corresponding to a 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.
[0338] In an optional embodiment, based on the solution described above, the further steps may be to provide a third action control corresponding to a third action at a predetermined location in the graphical user interface according to a second action and a fourth set of actions, and to control a virtual character to perform the third action in response to a trigger operation on the third action control.
[0339] In an optional embodiment, based on the solution described above, the fourth set of actions is a set of actions determined from at least two sets of actions according to the current action.
[0340] In an optional embodiment, based on the solution described above, 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 can be achieved by specifically performing the step of 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.
[0341] In an optional embodiment, based on the solution described above, providing a second action control in the graphical user interface corresponding to a second action, based on the virtual weapon used by the virtual character, the current action of the virtual character, and a fourth action set, can be achieved by specifically performing the steps of: 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; and providing a second action control in the graphical user interface corresponding to a second action according to the action sequence of the current action of the virtual character and the fourth action set.
[0342] In an optional embodiment, based on the solution described above, the second action is the action that follows the current action in the fourth set of actions.
[0343] In an optional embodiment, based on the solution described above, if a click operation acting on the first attack control is received within a first time after controlling the virtual character to perform a first attack action in response to a click operation acting on the first attack control, the step of controlling the virtual character to perform a fourth attack action can be further performed.
[0344] In an optional embodiment, based on the solution described above, if a click operation acting on the first attack control is received a first time after the virtual character has been controlled to perform the first attack action in response to a click operation acting on the first attack control, the step of controlling the virtual character to perform the first attack action can be further performed.
[0345] During the virtual character control process described above, the user (player) can control the virtual character to perform a first attack action by touching a first attack control on the graphical user interface. The user can also determine a first target action from a first action set and control the virtual character to perform the first target action by touching the first attack control on the graphical user interface. In other words, the first attack control can not only control the virtual character to perform a first attack action, but also control the virtual character to perform a 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 a first attack action. If the first touch operation is a slide operation, the first target action is determined from the first action set in response to the slide operation, and the virtual character is controlled to perform the first target action. The first target action may be the first attack action described above, or it may be any other action. In this way, when a user needs to control the virtual character to perform a first attack action, they can do so by clicking the first attack control originally displayed in the graphical user interface. Similarly, when a user needs to control the virtual character to perform actions such as jump actions or defensive actions, they can do so by sliding the first attack control, in addition to touching the jump controls, defensive controls, etc., originally displayed in the graphical user interface. This method of determining the first target action from the first action set in response to the sliding operation allows the user to perform the continuation of the first attack action and the first target action more quickly and consistently.When it is necessary to control a virtual character to perform an action in a first action set, the user can accurately determine the first target action from the first action set simply by sliding on the first attack control, without having to lift their finger and click on other controls in the graphical user interface. Throughout the entire process of the virtual character from the first attack action to the first target action, the user does not need to find and position other controls within the interface (controls corresponding to defensive actions, jump actions, etc.), but can easily determine the first target action from the first action set simply by sliding on the first attack control, and then control the virtual character to perform the first target action. This enables rapid control of the virtual character, such as high-speed control of changes in attack behavior or transitions between offense and defense. In this operation process, the user can switch controls without lifting their finger or moving their gaze, and the user can respond quickly during interaction, making operation more convenient and effectively reducing the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0346] In the embodiment shown in Figure 23, the electronic device 2300 also includes a bus 2302 and a communication interface 2303, and the processor 2301, the communication interface 2303 and the memory 2304 are connected via the bus 2302.
[0347] Of these, memory 2304 may include high-speed random access memory (RAM) and may also include non-volatile memory such as disk memory. At least one communication interface 2303 (which may be wired or wireless) enables communication between the system network element and at least one other network element, allowing the use of the Internet, wide area network, local network, metropolitan area network, etc. Bus 2302 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 2302 can be divided into an address bus, data bus, control bus, etc. For ease of representation, only one bidirectional arrow is used in Figure 23, but this does not mean that there is only one bus or only one type of bus.
[0348] The processor 2301 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by hardware integrated logic circuits or software-form instructions within the processor 2301. The processor 2301 may be a general-purpose processor including a Central Processing Unit (CPU), a Network Processor (NP), 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, and discrete hardware components. The general-purpose processor may be a microprocessor, and the processor may be any conventional processor. The steps of the method disclosed in relation to embodiments of this disclosure may be implemented directly by a hardware decoding processor or by a combination of hardware and software modules within the decoding processor. The software module can be placed in a storage medium that is mature in this field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, or registers. The storage medium is placed in memory, and the processor 2301 reads the information in memory and, in combination with its hardware, completes the steps of the method for controlling the virtual character according to the above embodiment.
[0349] Embodiments of the present disclosure also provide a computer-readable storage medium that stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to perform a method for controlling the virtual character described above. Specific implementations can be found in the method embodiments described above.
[0350] Specifically, the processor is controlled by computer-executable instructions stored on a computer-readable storage medium. The steps include displaying the first attack control in a graphical user interface, In response to a first touch operation acting on a first attack control, the system can perform the following steps: if the first touch operation is a click operation, control the virtual character to perform a first attack action corresponding to the first attack control; if the first touch operation is a slide operation, determine a first target action from a first action set in response to the slide operation and control the virtual character to perform the first target action.
[0351] In an optional embodiment, based on the solution described above, the first action set includes direction information and action information corresponding to the direction information, and determining a first target action from the first action set in response to the slide operation can be achieved by specifically performing the step of determining an action in the first action set that coincides with the direction of the slide operation as the first target action.
[0352] In an optional embodiment, determining a first target action from a first set of actions in response to the slide operation described above, based on the solution described above, can be achieved by specifically performing the step of determining a first target action from a first set of actions in response to the slide operation and the state of the virtual character.
[0353] In an optional embodiment, based on the solution described above, the first action set includes at least two action subsets, and determining a first target action from the first action set in accordance with the slide operation and the state of the virtual character can be achieved by specifically performing the steps of determining a target action subset from the first action set based on the state of the virtual character, and determining a first target action from the target action subset based on the slide operation.
[0354] In an optional embodiment, based on the solution described above, the states of the virtual character include a ground state and a floating state.
[0355] In an optional embodiment, based on the solution described above, the first set of actions described above is a user-customized set.
[0356] In an optional embodiment, based on the solution described above, the further steps may be taken to display a first control on a graphical user interface and to control a virtual character to perform an action corresponding to the first control in response to a second touch operation acting on the first control.
[0357] In an optional embodiment, the following steps can also be performed based on the solution described above. The first set of actions includes actions corresponding to the first control.
[0358] In an optional embodiment, based on the solution described above, if the first touch operation is a long press operation, the system can further perform the steps of displaying a first set of controls, determining a first target control from among the controls in the first set of controls in response to a slide operation following the long press operation, and controlling the virtual character to perform an action corresponding to the first target control, where the controls in the first set of controls correspond to actions in the first set of actions.
[0359] In an optional embodiment, based on the solution described above, the action corresponding to the first control is a non-aggressive action.
[0360] In an optional embodiment, based on the solution described above, the action corresponding to the first control is a defensive action, an evasive action, a jump action, a crouching action, a sliding shovel action, or a crawling action.
[0361] In an optional embodiment, the step of canceling the display of the first set of controls can be further performed based on the solution described above.
[0362] In an optional embodiment, canceling the display of the first set of controls described above based on the solution described above can be achieved by specifically performing the step of canceling the display of the first set of controls in response to the end of the first touch operation.
[0363] In an optional embodiment, based on the solution described above, the first control and the first attack control displayed in the graphical user interface are resident controls within the graphical user interface.
[0364] In an optional embodiment, based on the solution described above, the first action set includes a first sub-action set and a second sub-action set, the first sub-action set being an action set corresponding to resident controls in the graphical user interface, and the second sub-action set being an action set corresponding to non-resident controls in the graphical user interface.
[0365] In an optional embodiment, based on the solution described above, the first control set includes a first sub-control set and a second sub-control set, wherein 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.
[0366] In an optional embodiment, based on the solution described above, the step of displaying a second attack control on a graphical user interface can be further performed, wherein 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.
[0367] In an optional embodiment, based on the solution described above, the following steps can be further performed: if the third touch operation is a click operation, control the virtual character to perform a second attack action corresponding to the second attack control in response to a third touch operation acting on a second attack control; if the third touch operation is a slide operation, determine a second target action from a second set of actions in response to the slide operation and control the virtual character to perform the second target action.
[0368] In an optional embodiment, based on the solution described above, if the third touch operation is a long press operation, the second set of controls may be displayed, and in response to the slide operation following the long press operation, a second target control may be determined from the controls included in the second set of controls, and the virtual character may be controlled to perform an action corresponding to the second target control, where the controls included in the second set of controls correspond to the actions included in the second set of actions.
[0369] In an optional embodiment, the step of canceling the display of the second set of controls can be further performed based on the solution described above.
[0370] In an optional embodiment, canceling the display of the second set of controls described above, based on the solution described above, can be achieved by specifically performing the step of canceling the display of the second set of controls in response to the end of a third touch operation.
[0371] In an optional embodiment, based on the solution described above, the step of controlling the virtual character to perform a third attack action can be further performed if the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold.
[0372] In an optional embodiment, based on the solution described above, controlling the virtual character to perform a third attack action if the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold can be achieved by specifically performing the steps of controlling the virtual character to perform a preparation action for the third attack action if the first touch operation is a long press operation, and then controlling the virtual character to perform the third attack action after the duration of the press has exceeded the first time threshold.
[0373] In an optional embodiment, based on the solution described above, controlling a virtual character to perform a third attack action if the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold can be achieved by specifically performing the step of triggering the virtual character to perform a third attack action when the long press operation ends if the duration of the long press operation is greater than or equal to a first time threshold and less than a second time threshold, where the second time threshold is greater than the first time threshold.
[0374] In an optional embodiment, based on the solution described above, the step of automatically triggering the virtual character to perform a third attack action can be performed if the first touch operation is a long press operation and the duration of the long press operation is equal to a second time threshold.
[0375] In an optional embodiment, based on the solution described above, if the first touch operation is a long press operation, and the duration of the long press operation is greater than or equal to a first time threshold but less than a second time threshold, the further steps can be taken to determine a third target action from a first set of actions in response to a slide operation following the long press operation, and to control the virtual character to perform the third target action.
[0376] In an optional embodiment, determining a first target action from a first set of actions in response to the slide operation described above, based on the solution described above, can be achieved by specifically performing the step of confirming the first target action from the first set of actions in response to the slide trajectory of the slide operation.
[0377] In an optional embodiment, displaying the first set of controls described above based on the solution described above can be achieved by specifically performing the step of displaying a first roulette containing the first set of controls, the first roulette having the controls in the first set of controls arranged on it.
[0378] In an optional embodiment, based on the solution described above, the first roulette surrounds the first attack control.
[0379] In an optional embodiment, based on the solution described above, the first roulette surrounds a preset position in a blank area of the graphical user interface.
[0380] In an optional embodiment, based on the solution described above, 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.
[0381] In an optional embodiment, based on the solution described above, the steps of displaying a first control instruction in a first direction of the first attack control and a second control instruction in a second direction of the first attack control can be further performed, wherein the first control instruction indicates that a control in the first control set is displayed in a first direction of the first attack control when the first control set corresponding to the first attack control is displayed, and the second control instruction indicates that a control in the first control set is displayed in a second direction of the first attack control when the first control set corresponding to the first attack control is displayed.
[0382] In an optional embodiment, based on the solution described above, the angle between a ray starting from the first attack control and pointing to the third control in the first control set and a ray starting from the first attack control and pointing to the fourth control in the first control set is greater than the angular threshold.
[0383] In an optional embodiment, based on the solution described above, the first control described above is a dodge control, and the further steps of controlling the virtual character to perform a first dodge action in response to a click operation on the dodge control, and controlling the virtual character to perform a second dodge action in response to a long press operation on the dodge control, wherein the first and second dodge actions differ in the dodge distance and / or the state after the dodge, the state including jogging or sprinting.
[0384] In an optional embodiment, based on the solution described above, the graphical user interface further includes a sixth control, the sixth control being a jump control, and in response to a fourth touch operation acting on the sixth control, the further steps can be taken: if the fourth touch operation is a click operation, control the virtual character to perform a jump action; and if the fourth touch operation is a slide operation, determine a fourth target action from a third set of actions in response to the slide operation, and control the virtual character to perform the fourth target action, the third set of actions including at least a crouch action.
[0385] In an optional embodiment, based on the solution described above, if the fourth touch operation is a long press operation, the further steps can be taken to display the third set of controls, determine a fourth target control from among the controls included in the third set of controls in response to a slide operation following the long press operation, and control the virtual character to perform an action corresponding to the fourth target control, and to cancel the display of the third set of controls in response to the end of the fourth touch operation.
[0386] In an optional embodiment, based on the solution described above, the step of displaying a seventh control on a graphical user interface can be further performed, where 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.
[0387] In an optional embodiment, based on the solution described above, skills corresponding to the skill control have a cooldown period, while actions corresponding to the action control do not have a cooldown period.
[0388] In an optional embodiment, based on the solution described above, the virtual environment corresponding to the graphical user interface contains a first virtual character and a second virtual character, the skills of the first virtual character are different from those of the second virtual character, and both the first and second virtual characters can perform the first attack action.
[0389] In an optional embodiment, based on the solution described above, the first attack action is a contact attack action performed by the limbs and / or weapons of the virtual character.
[0390] In an optional embodiment, based on the solution described above, if the first touch operation is a slide operation, determining a first target action from a first set of actions in response to the slide operation and controlling the virtual character to perform the first target action can be achieved by performing the steps of: determining a first target action from a first set of actions in response to the slide operation if the first touch operation is a slide operation; determining whether an action interruption condition is met based on the virtual character's current action state and the first target action; and, if met, controlling the virtual character to perform the first target action.
[0391] In an optional embodiment, based on the solution described above, a further step may be taken in which the virtual character is not controlled to perform the first target action if it is not met.
[0392] In an optional embodiment, based on the solution described above, a further step can be taken to control the virtual character to continue performing any currently incomplete actions if the conditions are not met.
[0393] In an optional embodiment, based on the solution described above, the further steps may be taken to provide a second action control corresponding to a second action at a predetermined location on the graphical user interface, according to the current action of the virtual character and the fourth action set, and to control the virtual character to perform the second action in response to a trigger operation on the second action control.
[0394] In an optional embodiment, based on the solution described above, the fourth action set includes at least two actions and action sequences.
[0395] In an optional embodiment, providing a second action control in the graphical user interface corresponding to the second action in accordance with the current action of the virtual character and the fourth action set described above can be achieved by specifically performing the step of providing a second action control in the graphical user interface corresponding to the second action in accordance with the current action of the virtual character and the action order of the fourth action set.
[0396] In an optional embodiment, based on the solution described above, the further steps may be to provide a third action control corresponding to a third action at a predetermined location in the graphical user interface according to a second action and a fourth set of actions, and to control a virtual character to perform the third action in response to a trigger operation on the third action control.
[0397] In an optional embodiment, based on the solution described above, the fourth set of actions is a set of actions determined from at least two sets of actions according to the current action.
[0398] In an optional embodiment, based on the solution described above, providing a second action control in the graphical user interface corresponding to the second action, according to the current action of the virtual character and the fourth action set, can be achieved by specifically performing the step of providing a second action control in the graphical user interface corresponding to the second action, based on the virtual weapon used by the virtual character, the current action of the virtual character, and the fourth action set.
[0399] In an optional embodiment, based on the solution described above, providing a second action control in the graphical user interface corresponding to a second action, based on the virtual weapon used by the virtual character, the current action of the virtual character, and a fourth action set, can be achieved by specifically performing the steps of: 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; and providing a second action control in the graphical user interface corresponding to a second action according to the action sequence of the current action of the virtual character and the fourth action set.
[0400] In an optional embodiment, based on the solution described above, the second action is the action that follows the current action in the fourth set of actions.
[0401] In an optional embodiment, based on the solution described above, if a click operation acting on the first attack control is received within a first time after controlling the virtual character to perform a first attack action in response to a click operation acting on the first attack control, the step of controlling the virtual character to perform a fourth attack action can be further performed.
[0402] In an optional embodiment, based on the solution described above, if a click operation acting on the first attack control is received a first time after the virtual character has been controlled to perform the first attack action in response to a click operation acting on the first attack control, the step of controlling the virtual character to perform the first attack action can be further performed.
[0403] During the virtual character control process described above, the user (player) can control the virtual character to perform a first attack action by touching a first attack control on the graphical user interface. The user can also determine a first target action from a first action set and control the virtual character to perform the first target action by touching the first attack control on the graphical user interface. In other words, the first attack control can not only control the virtual character to perform a first attack action, but also control the virtual character to perform a 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 a first attack action. If the first touch operation is a slide operation, the first target action is determined from the first action set in response to the slide operation, and the virtual character is controlled to perform the first target action. The first target action may be the first attack action described above, or it may be any other action. In this way, when a user needs to control the virtual character to perform a first attack action, they can do so by clicking the first attack control originally displayed in the graphical user interface. Similarly, when a user needs to control the virtual character to perform actions such as jump actions or defensive actions, they can do so by sliding the first attack control, in addition to touching the jump controls, defensive controls, etc., originally displayed in the graphical user interface. This method of determining the first target action from the first action set in response to the sliding operation allows the user to perform the continuation of the first attack action and the first target action more quickly and consistently.When it is necessary to control a virtual character to perform an action in a first action set, the user can accurately determine the first target action from the first action set simply by sliding on the first attack control, without having to lift their finger and click on other controls in the graphical user interface. Throughout the entire process of the virtual character from the first attack action to the first target action, the user does not need to find and position other controls within the interface (controls corresponding to defensive actions, jump actions, etc.), but can easily determine the first target action from the first action set simply by sliding on the first attack control, and then control the virtual character to perform the first target action. This enables rapid control of the virtual character, such as high-speed control of changes in attack behavior or transitions between offense and defense. In this operation process, the user can switch controls without lifting their finger or moving their gaze, and the user can respond quickly during interaction, making operation more convenient and effectively reducing the problem of errors caused by too many interface controls. At the same time, this method of quickly controlling the virtual character also improves the consistency of user operation.
[0404] The computer program products for methods, apparatus, and electronic devices for controlling virtual characters provided by embodiments of this disclosure include a computer-readable storage medium for storing program code, and can perform the methods in the aforementioned method embodiments using instructions contained in the program code. Specific implementations can be found in the method embodiments and will not be described again here.
[0405] Unless otherwise specified, the relative order of components and steps, formulas, and numerical values described in these embodiments do not limit the scope of this disclosure.
[0406] When functions are implemented in the form of software function units and sold or used as independent products, those functions can be stored on a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solutions of this disclosure, or parts of the technical solutions that contribute to related technologies, can be embodied in the form of a software product. Such computer software product is stored on a storage medium and contains several instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of various embodiments of this disclosure. The aforementioned storage mediums include various media capable of storing program code, such as U disks, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0407] In the description of this disclosure, directions or positional relationships indicated by terms such as “center,” “top,” “bottom,” “left,” “right,” “vertical,” “horizontal,” “inside,” and “outside” are based on the orientations or positional relationships shown in the drawings and are for illustrative purposes only. They do not indicate or imply that the devices or elements shown must have a specific orientation or must be constructed or operated in a specific orientation, and therefore should not be construed as limiting this disclosure. Furthermore, the terms “first,” “second,” and “third” are used for illustrative purposes only and should not be construed as indicating or implying relative importance.
[0408] Finally, it should be noted that the above-described embodiments are merely specific embodiments of the Disclosure and are used to illustrate the technical solutions of the Disclosure, not to limit them, and the scope of protection of the Disclosure is not limited thereto. Although the Disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art can easily come up with modifications or changes to the technical solutions described in the above-described embodiments, or replace some of the technical features with equivalent substitutes, within the disclosed technical scope. Such modifications, changes, or substitutions do not deviate from the essence of the corresponding technical solutions from the technical idea and scope, and are all within the scope of protection of the Disclosure. Therefore, the scope of protection of the Disclosure should be subject to the scope of protection of the claims.
Claims
1. A method for controlling a virtual character, The steps include displaying a first attack control in a graphical user interface, The steps include: controlling the virtual character to perform a first attack action corresponding to the first attack control in response to a first touch operation acting on the first attack control, if the first touch operation is a click operation, and determining a first target action from a first action set in response to the slide operation, and controlling the virtual character to perform the first target action; If the first touch operation is a long press operation, the steps include: displaying a first set of controls; determining a first target control from the controls included in the first set of controls in response to a slide operation following the long press operation; and controlling the virtual character to perform an action corresponding to the first target control, wherein the controls included in the first set of controls correspond to actions included in the first set of actions. The step of determining the first target action from the first action set in response to the slide operation is: The step includes determining the first target action from the first action set in accordance with the slide operation and the state of the virtual character. A method for controlling a virtual character characterized by the following features.
2. The first action set includes direction information and action information corresponding to the direction information. The step of determining the first target action from the first action set in response to the slide operation is further: The process includes a step of determining the first target action in the first action set that is consistent with the direction of the slide operation. The method according to feature 1.
3. The first action set includes at least two action subsets, The step of determining a first target action from a first action set according to the slide operation and the state of the virtual character is: Based on the state of the virtual character, the step of determining a target action subset from the first action set, The step of determining a first target action from the target action subset based on the slide operation, The method according to feature 1.
4. The states of the virtual character include grounded and floating states. The method according to feature 3.
5. The aforementioned first action set is a user-customized set. The method according to feature 1.
6. The aforementioned method, The steps include displaying a first control in a graphical user interface, The steps include controlling a virtual character to perform an action corresponding to the first control in response to a second touch operation acting on the first control. The method according to feature 1.
7. The first action set includes actions corresponding to the first control. The method according to feature 6.
8. The action corresponding to the first control described above is a non-aggressive action. The method according to feature 6.
9. The actions corresponding to the first control described above are a defensive action, a dodge action, a jump action, a crouch action, a sliding shovel action, or a crawling action. The method according to feature 6.
10. The aforementioned method, The process includes the step of canceling the display of the first set of controls. The method according to feature 1.
11. The step of canceling the display of the first control set is: The process includes the step of canceling the display of the first set of controls in response to the end of the first touch operation. The method according to the present invention, characterized by the present invention.
12. The first control and the first attack control displayed in the graphical user interface are resident controls within the graphical user interface. The method according to feature 6.
13. The first action set includes a first sub-action set and a second sub-action set, wherein 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. The method according to feature 1.
14. The first control set includes a first sub-control set and a second sub-control set, wherein 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. The method according to feature 1.
15. The aforementioned method, The process includes the step of displaying a second attack control on a graphical user interface, wherein the attack angle of a first attack action corresponding to the first attack control is different from the attack angle of a second attack action corresponding to the second attack control. The method according to feature 1.
16. The aforementioned method, The steps include controlling the virtual character to perform a second attack action corresponding to the second attack control in response to a third touch operation acting on the second attack control, if the third touch operation is a click operation, If the third touch operation is a slide operation, the process includes the steps of determining a second target action from a second set of actions in response to the slide operation and controlling the virtual character to perform the second target action. The method according to the specification of 15.
17. The aforementioned method, If the third touch operation is a long press operation, the process includes the steps of displaying a second set of controls, determining a second target control from the controls included in the second set of controls in response to a slide operation following the long press operation, and controlling the virtual character to perform an action corresponding to the second target control, wherein the controls included in the second set of controls correspond to actions included in the second set of actions. The method according to feature 16.
18. The aforementioned method, The process includes the step of canceling the display of the second set of controls. The method according to the present invention, characterized by the features of the present invention.
19. The step of canceling the display of the second set of controls is: The process includes the step of canceling the display of the second set of controls in response to the end of the third touch operation. The method according to feature 18.
20. The aforementioned method, If the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold, the process includes the step of controlling the virtual character to perform a third attack action. The method according to feature 1.
21. If the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold, the step of controlling the virtual character to perform a third attack action is: If the first touch operation is a long press operation, the method includes the step of controlling the virtual character to perform a preparation action for a third attack action, and after the duration of the press exceeds a first time threshold, controlling the virtual character to perform the third attack action. The method according to feature 20.
22. If the first touch operation is a long press operation and the duration of the press is greater than or equal to a first time threshold, the step of controlling the virtual character to perform a third attack action is: The first touch operation is a long press operation, and when the long press operation ends, the duration of the long press operation is greater than or equal to a first time threshold and less than a second time threshold, the step includes triggering the virtual character to perform a third attack action when the long press operation ends, wherein the second time threshold is greater than the first time threshold. The method according to feature 20.
23. The aforementioned method, The process further includes the step of automatically triggering the virtual character to perform a third attack action if the first touch operation is a long press operation and the duration of the long press operation is equal to the second time threshold. The method according to feature 22.
24. The aforementioned method, If the first touch operation is a long press operation, and the duration of the long press operation is greater than or equal to a first time threshold but less than a second time threshold, the process includes the step of determining a third target action from the first action set in response to a slide operation following the long press operation, and controlling the virtual character to perform the third target action. The method according to feature 22.
25. The step of determining a first target action from the first action set in response to the slide operation is: The process includes a step of confirming the first target action from the first action set according to the slide trajectory of the slide operation. The method according to feature 1.
26. The step of displaying the first set of controls is: The process includes the step of displaying a first roulette wheel which includes the first set of controls, wherein the controls in the first set of controls are placed on the first roulette wheel. The method according to feature 1.
27. The first roulette surrounds the first attack control. The method according to feature 26.
28. The first roulette wheel surrounds the preset positions of the blank areas of the graphical user interface. The method according to feature 26.
29. The direction from the first attack control to the third control in the first set of controls is different from the direction from the first attack control to the fourth control in the first set of controls. The method according to feature 1.
30. The aforementioned method, The steps further include displaying a first control instruction in a first direction of the first attack control and displaying a second control instruction in a second direction of the first attack control, wherein the first control instruction indicates that a control in the first control set is displayed in the first direction of the first attack control when the first control set corresponding to the first attack control is displayed, and the second control instruction indicates that a control in the first control set is displayed in the second direction of the first attack control when the first control set corresponding to the first attack control is displayed. The method according to feature 1.
31. 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 angular threshold. The method according to feature 1.
32. The first control described above is an avoidance control. The aforementioned method, The steps include controlling the virtual character to perform a first dodge action in response to a click operation on the dodge control, The steps include controlling the virtual character to perform a second dodge action in response to a long press operation on the dodge control, The first evasion action and the second evasion action differ in the evasion distance and / or the state after evasion, the state including jogging or sprinting. The method according to feature 6.
33. The graphical user interface further includes a sixth control, the sixth control being a jump control, The aforementioned method, The steps of controlling the virtual character to perform a jump action in response to a fourth touch operation acting on the sixth control, if the fourth touch operation is a click operation, If the fourth touch operation is a slide operation, the process includes the steps of determining a fourth target action from a third set of actions in response to the slide operation and controlling the virtual character to perform the fourth target action, The third action set includes at least a crouching action. The method according to feature 1.
34. The aforementioned method, If the fourth touch operation is a long press operation, the steps include: displaying a third set of controls; determining a fourth target control from the controls included in the third set of controls in response to a slide operation following the long press operation; and controlling the virtual character to perform an action corresponding to the fourth target control. The further step includes canceling the display of the third set of controls in response to the completion of the fourth touch operation. The method according to feature 33.
35. The aforementioned method, The process includes the step of displaying a seventh control on a 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. The method according to feature 1.
36. Skills corresponding to the aforementioned skill control have a cooldown period, while actions corresponding to the aforementioned action control do not have a cooldown period. The method according to feature 35.
37. The virtual environment corresponding to the graphical user interface contains a first virtual character and a second virtual character, the skills possessed by the first virtual character are different from those possessed by the second virtual character, and both the first and second virtual characters can perform the first attack action. The method according to feature 35.
38. The aforementioned first attack action is a contact attack action performed by the limbs and / or weapons of the virtual character. The method according to feature 1.
39. If the first touch operation is a slide operation, the steps of determining a first target action from the first action set in response to the slide operation and controlling the virtual character to perform the first target action are: If the first touch operation is a slide operation, the steps include determining a first target action from the first action set in response to the slide operation, and determining whether an action interruption condition is met based on the current action state of the virtual character and the first target action, The steps include, if the conditions are met, controlling the virtual character to perform the first target action. The method according to feature 1.
40. The aforementioned method, If the conditions are not met, the procedure includes not controlling the virtual character to perform the first objective action. The method according to feature 39.
41. The aforementioned method, If the condition is not met, the step includes controlling the virtual character to continue performing any actions that are not currently completed. The method according to feature 39.
42. The aforementioned method, The steps include providing a second action control corresponding to a second action at a predetermined location on the graphical user interface, according to the current action of the virtual character and the fourth action set, The steps include controlling the virtual character to perform the second action in response to a trigger operation on the second action control. The method according to feature 1.
43. The fourth action set includes at least two actions and action sequences. The method according to feature 42.
44. The step of providing a second action control in the graphical user interface corresponding to the second action, according to the current action of the virtual character and the fourth action set, is: The step includes providing a second action control in the graphical user interface that corresponds to the second action, according to the current action of the virtual character and the action order of the fourth action set. The method according to feature 43.
45. The aforementioned method, The steps include providing a third action control corresponding to the third action at a predetermined location in the graphical user interface according to the second action and the fourth action set, The steps include controlling the virtual character to perform the third action in response to a trigger operation on the third action control. The method according to feature 42.
46. The fourth action set is an action set determined from at least two action sets according to the current action. The method according to feature 42.
47. The step of providing a second action control in the graphical user interface corresponding to the second action, according to the current action of the virtual character and the fourth action set, is: The step includes providing a second action control in a graphical user interface that corresponds to a second action, based on the virtual weapon used by the virtual character, the current action of the virtual character, and a fourth action set. The method according to feature 42.
48. The step of providing a second action control corresponding to a second action in a 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, is: The steps include determining a candidate action set according to the virtual weapon used by the virtual character, The steps include determining a fourth set of actions from the candidate set of actions according to the current actions of the virtual character, The step of providing a second action control in a graphical user interface corresponding to a second action, according to the current action of the virtual character and the action order of the fourth action set. The method according to characteristic 47.
49. The second action described above is the action following the current action in the fourth action set described above. The method according to feature 43.
50. The aforementioned method, If a click operation acting on the first attack control is received within a first time after controlling the virtual character to perform a first attack action in response to a click operation acting on the first attack control, the steps include controlling the virtual character to perform a fourth attack action. The method according to feature 1.
51. The aforementioned method, If a click operation acting on the first attack control is received a first time after the virtual character has been controlled to perform a first attack action in response to a click operation acting on the first attack control, the process includes the step of controlling the virtual character to perform a first attack action. The method according to feature 1.
52. A device for controlling virtual characters, A control display module configured to display a first attack control on a graphical user interface, The system includes a character control module configured to, in response to a first touch operation acting on the first attack control, control the virtual character to perform a first attack action corresponding to the first attack control if the first touch operation is a click operation, and, if the first touch operation is a slide operation, determine a first target action from a first action set in response to the slide operation and control the virtual character to perform the first target action, The character control module, when the first touch operation is a long press operation, displays a first control set, determines a first target control from the controls included in the first control set in response to a slide operation following the long press operation, controls the virtual character to execute an action corresponding to the first target control, and the controls included in the first control set correspond to actions included in the first action set. The character control module is further used to determine the first target action from the first action set in accordance with the slide operation and the state of the virtual character. A device for controlling a virtual character characterized by the following features.
53. An electronic device comprising a processor and memory, The memory stores computer-executable instructions that can be executed by the processor, and the processor implements a method for controlling a virtual character according to any one of claims 1 to 51 by executing the computer-executable instructions. An electronic device characterized by the following features.
54. A computer executable instruction is stored, and when the computer executable instruction is called and executed by the processor, the computer executable instruction causes the processor to implement a method for controlling a virtual character as described in any one of claims 1 to 51. A computer-readable storage medium characterized by the following features.
Citation Information
Patent Citations
Tag element display method in virtual scene, computer equipment and storage medium
CN108671543A
Information sending method and device
CN109634453A
Method and device of interacting quick information in game and electronic device
CN110841291A
Control method and device for control in graphical user interface, equipment and storage medium
CN111701226A
Game control method and device
CN112957735A
