Control method, device and electronic device for virtual character in game
By providing second control controls in MOBA games, it solves the problem of virtual character hosting or hanging up when teammate players are offline, ensuring game experience and fairness, and achieving the continuous combat effectiveness of virtual characters and improving the fun of the game.
Patent Information
- Application Number
- CN202110855288.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-27
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-07-27
AI Technical Summary
In existing MOBA games, when teammate players go offline, virtual characters can usually only be hosted or automatically hang up, affecting the game experience of other players and reducing the fun and fairness of the game.
Provides a second control control through a graphical user interface, allowing players to take over control of the second virtual character when it meets the takeover conditions, including monitoring hang-up signals, takeover requests and disconnection conditions to ensure that skills and positions during the game continue to be maintained and improved Game experience and fairness.
It is possible to maintain the combat effectiveness of virtual characters after teammate players go offline, which improves the fun and fairness of the game and improves the gaming experience of other players.
Smart Images

Figure CN113577780B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of game control, and in particular to a method, device and electronic equipment for controlling a virtual character in a game. Background Art
[0002] MOBA (Multiplayer Online Battle Arena) mobile games usually refer to multiplayer online competitive tactical games, and require players to control a virtual character and cooperate with other teammates during the game. In current MOBA games, since players can only control one virtual character at a time, when a teammate is offline, the character controlled by the teammate can usually only be managed or automatically hung up, which not only affects the gaming experience of other players, but also reduces the fun and fairness of the game. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a method, device and electronic device for controlling a virtual character in a game to alleviate the above technical problems.
[0004] In a first aspect, an embodiment of the present invention provides a method for controlling a virtual character in a game, wherein a game scene is displayed through a graphical user interface, wherein the game scene includes at least one virtual character, and the method includes: responding to a touch operation on a first control control in the graphical user interface, controlling the first virtual character to perform a virtual action corresponding to the first control control; when a second virtual character meets a takeover condition, providing a second control control for the second virtual character in the graphical user interface, wherein the second virtual character has a preset relationship with the first virtual character; and responding to a touch operation on the second control control, controlling the second virtual character to perform the virtual action corresponding to the second control control.
[0005] Preferably, in a possible implementation, the method further includes: determining that the second virtual character meets the takeover condition if at least one of the following behaviors is monitored: the terminal corresponding to the second virtual character sends a hang-up signal indication; the terminal corresponding to the second virtual character sends a takeover request indication; the second virtual character meets the offline condition.
[0006] Preferably, in a possible implementation, the above-mentioned first control control includes a first moving control; the response to the touch operation of the first control control in the graphical user interface controls the first virtual character to perform a virtual action corresponding to the first control control, including: responding to the touch operation of the first moving control, controlling the first virtual character to move in the game scene.
[0007] Preferably, in a possible implementation, the above-mentioned second control control includes a second mobile control for controlling the movement of the second virtual character in the game scene; the step of providing a second control control for the second virtual character in the graphical user interface includes: providing a first mobile control area in the graphical user interface, and the first mobile control is located in the first mobile control area; displaying the second mobile control in the first mobile control area; wherein the second mobile control and the first mobile control do not overlap.
[0008] Preferably, in a possible implementation manner, the first mobile control includes a first joystick control area; and the second mobile control does not overlap with the first mobile control, including: the second mobile control does not overlap with the first joystick control area.
[0009] Preferably, in a possible implementation, the second control control comprises a second movement control for controlling the movement of the second virtual character in the game scene; the step of providing a second control control for the second virtual character in the graphical user interface comprises: providing the second movement control within the first movement control.
[0010] Preferably, in a possible implementation, the above-mentioned first mobile control includes a first mobile control area and a first joystick operation area; providing the second mobile control in the first mobile control includes: displaying the second mobile control in the first mobile control area; wherein, the second mobile control and the first joystick operation area do not overlap.
[0011] Preferably, in a possible implementation, the above-mentioned first mobile control includes a first joystick operation area; providing the second mobile control in the first mobile control includes: embedding the second mobile control in the first joystick operation area so that the first joystick operation area and the second mobile control at least partially overlap.
[0012] Preferably, in a possible implementation, the above-mentioned first control control includes a first skill control corresponding to the first virtual character; the response to the touch operation of the first control control in the graphical user interface controls the first virtual character to perform the virtual action corresponding to the first control control, including: responding to the touch operation of the first skill control, controlling the first virtual character to release the first virtual skill corresponding to the first skill control.
[0013] Preferably, in a possible implementation, the above-mentioned second control control includes a second skill control for controlling the second virtual character to release a second virtual skill; the step of providing a second control control for the second virtual character in the graphical user interface includes: providing the second skill control within the first skill control.
[0014] Preferably, in a possible implementation, the above-mentioned response to the touch operation acting on the second control control controls the second virtual character to perform the virtual action corresponding to the second control control, including: responding to the touch operation acting on the second skill control, controlling the first virtual character to release the first virtual skill, and controlling the second virtual character to release the second virtual skill.
[0015] Preferably, in a possible implementation, the above-mentioned second control control includes a second skill control for controlling the second virtual character to release a second virtual skill; the step of providing a second control control for the second virtual character in the graphical user interface also includes: displaying the second skill control within a preset range of the first skill control.
[0016] Preferably, in a possible implementation, the step of displaying the second mobile control in the first mobile control area includes: obtaining the position relationship between the first virtual character and the second virtual character in the current game scene; determining the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship; and displaying the second mobile control in the first mobile control area according to the relative position relationship.
[0017] Preferably, in a possible implementation, the above-mentioned step of determining the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship includes: obtaining the distance between the first virtual character and the second virtual character in the game scene; when the distance is greater than a preset distance, generating a movement path of the second virtual character according to the game scene; controlling the second virtual character to automatically move to the preset position of the first virtual character according to the movement path, so that the distance between the first virtual character and the second virtual character in the game scene is less than or equal to the preset distance, so as to determine the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship within the preset distance.
[0018] Preferably, in a possible implementation, the method further includes: responding to a drag operation applied to the first joystick control area and / or the second mobile control, changing the relative position relationship between the first joystick control area and the second mobile control in the first mobile control area according to the drag operation; and controlling the position relationship between the first virtual character and the second virtual character in the game scene based on the relative position relationship.
[0019] Preferably, in a possible implementation, the above-mentioned step of controlling the positional relationship between the first virtual character and the second virtual character in the game scene based on the relative positional relationship includes: changing the positional relationship between the first virtual character and the second virtual character in the game scene according to the relative positional relationship, so that the first virtual character and the second virtual character are at a distance and direction corresponding to the first mobile control and the second mobile control in the game map corresponding to the game scene.
[0020] Preferably, in a possible implementation, the method further includes: responding to a collective touch operation acting on a target mobile control in the first mobile control area, wherein the target mobile control is any one of the first joystick control area and the second mobile control in the first mobile control area; controlling the other first joystick control areas and the second mobile controls in the roulette control area except the target mobile control to move within a preset range of the target mobile control; and changing the positional relationship between the first virtual character and the second virtual character in the game scene according to the current relative positional relationship between the first joystick control area and the second mobile control in the first mobile control area, so that the first virtual character and the second virtual character are gathered at the position corresponding to the target mobile control in the game map corresponding to the game scene.
[0021] Preferably, in a possible implementation, the method further includes: responding to a field of view switching operation acting on a target mobile control in the first mobile control area, wherein the target mobile control is any one of the first joystick control area and the second mobile control in the first mobile control area; switching the field of view presented by the graphical user interface to the field of view of the virtual character corresponding to the target mobile control.
[0022] In a second aspect, an embodiment of the present invention further provides a control device for a virtual character in a game, which displays a game scene through a graphical user interface, wherein the game scene includes at least one virtual character, and the device includes: a first control module, used to respond to a touch operation on a first control control in the graphical user interface, and control the first virtual character to perform a virtual action corresponding to the first control control; a takeover module, used to provide a second control control for the second virtual character in the graphical user interface when the second virtual character meets a takeover condition, wherein the second virtual character has a preset relationship with the first virtual character; and a second control module, used to respond to a touch operation on the second control control, and control the second virtual character to perform a virtual action corresponding to the second control control.
[0023] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method described in the first aspect.
[0024] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method described in the first aspect.
[0025] The embodiments of the present invention bring the following beneficial effects:
[0026] The control method, device and electronic device of virtual characters in the game provided by the embodiments of the present invention can respond to the touch operation on the first control control in the graphical user interface, control the first virtual character to perform the virtual action corresponding to the first control control, and provide a second control control for the second virtual character in the graphical user interface when the second virtual character meets the takeover condition; and respond to the touch operation on the second control control so as to control the second virtual character to perform the virtual action corresponding to the second control control, wherein the second virtual character and the first virtual character usually have a preset relationship, for example, virtual characters controlled by teammates, etc. Therefore, when the second virtual character meets the takeover condition, the second control control can continue to control the skills, position, etc. of the second virtual character during the game, so as to continue to maintain the combat effectiveness of the second virtual character after the player corresponding to the second virtual character goes offline, which not only improves the fun and fairness of the game, but also helps to improve the gaming experience of other players.
[0027] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0028] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0030] Figure 1 A flowchart of a method for controlling a virtual character in a game provided by an embodiment of the present invention;
[0031] Figure 2 A control schematic diagram of a virtual character provided by an embodiment of the present invention;
[0032] Figure 3 A schematic diagram of controlling another virtual character provided by an embodiment of the present invention;
[0033] Figure 4 A schematic diagram of controlling another virtual character provided by an embodiment of the present invention;
[0034] Figure 5 A schematic diagram of controlling another virtual character provided by an embodiment of the present invention;
[0035] Figure 6 A schematic diagram of the structure of a control device for a virtual character in a game provided by an embodiment of the present invention;
[0036] Figure 7 A schematic diagram of the structure of another control device for a virtual character in a game provided by an embodiment of the present invention;
[0037] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0039] At present, players of MOBA mobile games can usually only control one hero character at a time. When a teammate is offline, they can only host or hang up, which greatly affects the gaming experience of other players. Based on this, a control method, device and electronic device for a virtual character in a game provided by an embodiment of the present invention can effectively alleviate the above technical problems and improve the gaming experience of players.
[0040] To facilitate understanding of this embodiment, a method for controlling a virtual character in a game disclosed in an embodiment of the present invention is first introduced in detail.
[0041] In a possible implementation, an embodiment of the present invention provides a method for controlling a virtual character in a game, wherein a game scene is displayed through a graphical user interface, and the game scene includes at least one virtual character. Specifically, the method can be run on a terminal device or a server. For example, the terminal device can be a display device with a data transmission function close to the user side, such as a mobile terminal, a television, a computer, a handheld computer, etc.; and the terminal device can be a local terminal device or a network terminal device. Taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is conventionally downloaded and installed through an electronic device and run. The local terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen, etc. Furthermore, when the control method of the virtual character in the game of the embodiment of the present invention runs on the server, the control method of the virtual character in the game can be implemented and executed based on the cloud interaction system, wherein the cloud interaction system includes the above-mentioned server and client device. When playing the game, the player can operate the client device to send operation instructions to the server. The server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0042] Specifically, Figure 1 The flowchart of a method for controlling a virtual character in a game is shown, the method comprising the following steps:
[0043] Step S102, in response to a touch operation on a first control control in the graphical user interface, controlling the first virtual character to perform a virtual action corresponding to the first control control;
[0044] Step S104, when the second virtual character meets the takeover condition, providing a second control widget for the second virtual character in the graphical user interface;
[0045] The second virtual character has a preset relationship with the first virtual character. For example, the first virtual character and the second virtual character are virtual characters controlled by teammates, such as the first player controls the first virtual character, the second player controls the second virtual character, and the first player and the second player are teammates.
[0046] During a normal game, the first player and the second player both control corresponding virtual characters. Therefore, when the first player and the second player can control the virtual characters normally, the first player can control the first virtual character to perform virtual actions corresponding to the first control control through the first control control, such as implementing a certain skill, or changing a certain position, etc. Similarly, the second player can also control the corresponding second virtual character to perform corresponding virtual actions through the second control control.
[0047] When one of the players, such as the second player, needs to go offline temporarily, a hang-up signal can be sent, or a takeover request instruction can be sent to other teammate players to request other teammate players to take over the virtual character controlled by them. In addition, if the game client or background server detects that a player is offline, such as when the offline time exceeds a certain period of time, it can be determined that the player is offline. At this time, it can also be determined that the player meets the takeover conditions. At this time, the process of step S104 above can be performed to provide a second control control for the second virtual character in the graphical user interface of the first player, so that the first player can take over the second virtual character corresponding to the second player.
[0048] Therefore, if it is monitored that the second player has at least one of the following behaviors, it can be determined that the second virtual character meets the takeover condition: the terminal corresponding to the second virtual character sends an on-hook signal indication; the terminal corresponding to the second virtual character sends a takeover request indication; the second virtual character meets the offline condition. Among them, the on-hook signal indication sent by the terminal corresponding to the second virtual character can usually be the case when the second player suddenly leaves, but the terminal corresponding to the second virtual character communicates normally. At this time, when the terminal corresponding to the second virtual character detects that the second virtual character has not moved for more than a preset time, or other operations, it can send an on-hook indication to the server. In addition, the second player can also actively send a takeover request to the server through the terminal corresponding to the second virtual character to request other players to take over the virtual character. The offline condition satisfied by the above-mentioned second virtual character usually refers to the situation that the second virtual character has not moved for more than a preset time, or other operations, and the terminal corresponding to the second virtual character communicates abnormally. In this case, it can also be determined that the second virtual character meets the takeover condition.
[0049] When it is determined that the second virtual character meets the takeover condition, the above step S104 can be executed to display the second control widget of the second virtual character in the current graphical user interface for the first player to take over. For example, the takeover widget is displayed at the position of the second virtual character's avatar, and when other players click on the takeover widget, the other players can take over and control the second virtual character. In addition, the takeover request instruction issued by the player corresponding to the above second virtual character can be sent to the chat room of teammates in the form of a chat, or can be sent directly by the player corresponding to the second virtual character to a teammate player. The specific situation is subject to actual use, and the embodiment of the present invention does not limit this.
[0050] When another player takes over the first virtual character, the step S106 may be continued to be executed to take over and control the second virtual character.
[0051] Step S106 , in response to the touch operation on the second control component, controlling the second virtual character to perform a virtual action corresponding to the second control component.
[0052] The control method of a virtual character in a game provided by an embodiment of the present invention can respond to a touch operation on a first control control in a graphical user interface, control the first virtual character to perform a virtual action corresponding to the first control control, and provide a second control control for the second virtual character in the graphical user interface when the second virtual character meets a takeover condition; and respond to a touch operation on the second control control so as to control the second virtual character to perform a virtual action corresponding to the second control control, wherein the second virtual character and the first virtual character usually have a preset relationship, for example, virtual characters controlled by teammates, etc. Therefore, when the second virtual character meets the takeover condition, the second control control can continue to control the skills, position, etc. of the second virtual character during the game, so as to continue to maintain the combat effectiveness of the second virtual character after the player corresponding to the second virtual character goes offline, which not only improves the fun and fairness of the game, but also helps to improve the gaming experience of other players.
[0053] In actual use, the first control control and the second control control are controls for controlling the position and skills of the virtual character, for example, they can control the corresponding virtual character to move in the game scene, or release certain skills during the battle, etc. Therefore, the first control control and the second control control usually include corresponding skill controls and movement controls, and specifically, the first control control includes a first movement control; in the above step S102, in response to the touch operation on the first control control in the graphical user interface, when the first virtual character is controlled to perform the virtual action corresponding to the first control control, the first virtual character can be controlled to move in the game scene in response to the touch operation on the first movement control.
[0054] Furthermore, the second control widget may also include a second movement widget for controlling the second virtual character to move in the game scene.
[0055] At this time, in the above step S104, when providing a second control control for the second virtual character, a first mobile control area can be first provided in the graphical user interface, and the above first mobile control is located in the first mobile control area; then the second mobile control is displayed in the first mobile control area; wherein the second mobile control and the first mobile control do not overlap.
[0056] In actual use, the above-mentioned first mobile control can be set in the form of a joystick to facilitate the player to control the movement of the first virtual character. Therefore, the above-mentioned first mobile control includes a first joystick control area; and, within the first mobile control area, the second mobile control and the first mobile control do not overlap, which usually means that the above-mentioned second mobile control and the first joystick control area do not overlap.
[0057] Furthermore, in addition to the non-overlapping first and second mobile controls in the first mobile control area, a second mobile control can also be provided in the first mobile control. For example, the first mobile control is set as a roulette-style control. In this case, a second mobile control can be provided within the base of the roulette-style control, and the functional control for controlling the movement of the second virtual character is integrated into the first mobile control. The movement of the first and second virtual characters can be controlled simultaneously by one mobile control. For this implementation method of integrating the functional control for controlling the movement of the second virtual character into the first mobile control, in order to facilitate the distinction between the controlled first and second virtual characters, the first mobile control can include a first mobile control area and a first joystick operation area; when the second mobile control is provided in the first mobile control, the second mobile control can be displayed in the first mobile control area; wherein the second mobile control and the first joystick operation area do not overlap. Furthermore, the above-mentioned first mobile control may also include only the joystick operation area, that is, the first mobile control includes the first joystick operation area; when the second mobile control is provided in the first mobile control, the above-mentioned second mobile control can be embedded in the first joystick operation area so that the first joystick operation area and the second mobile control at least partially overlap, for example, the original first mobile control is divided into two display areas, and, in order to distinguish, the two areas can be set to different colors or patterns, so that one of the areas is embedded in the above-mentioned second mobile control to achieve the integration of the first mobile control and the second mobile control.
[0058] In specific implementation, the implementation of providing the first mobile control and the second mobile control can be set according to the actual usage or the control habits of the player, and the embodiment of the present invention does not limit this. In addition, through the first mobile control and the second mobile control provided above, after the first player takes over the second virtual character of the second player, the second virtual character can be normally controlled to move in the game scene and participate in the battle, etc. In addition, after taking over the second virtual character, in addition to controlling the movement of the second virtual character, the second virtual character can also be controlled to release a certain skill, so that the taken-over second virtual character and the originally controlled first virtual character can participate in the battle together.
[0059] Therefore, the first control control also includes a first skill control corresponding to the above-mentioned first virtual character; when responding to a touch operation on the first control control and controlling the first virtual character to perform a virtual action corresponding to the first control control, it can respond to a touch operation on the first skill control and control the first virtual character to release the first virtual skill corresponding to the first skill control.
[0060] Furthermore, the above-mentioned second control control also includes a second skill control for controlling the second virtual character to release a second virtual skill; when providing a second control control for the second virtual character in the graphical user interface, a second skill control can be provided in the above-mentioned first skill control, and the second skill control can be integrated with the first skill control, so that when controlling the second virtual character to perform the virtual action corresponding to the second control control, it can respond to the touch operation acting on the second skill control, control the first virtual character to release the first virtual skill, and control the second virtual character to release the second virtual skill.
[0061] Furthermore, in addition to the above-mentioned method of integrating the first skill control with the second skill control, the second skill control can also be set within a preset range of the first skill control, which can also facilitate the player to touch the second skill control and thereby control the second virtual character to release the second virtual skill.
[0062] Therefore, the above-mentioned second control control includes a second skill control for controlling the second virtual character to release a second virtual skill; at this time, when a second control control for the second virtual character is provided in the graphical user interface, the second skill control can be displayed within a preset range of the first skill control.
[0063] In actual use, the first mobile control area provided for displaying the first mobile control and the second mobile control is usually set on the left side of the graphical user interface, while the first skill control and the second skill control are usually set on the right side of the graphical user interface to facilitate player operation.
[0064] Furthermore, considering that the game scene presented by the graphical user interface is usually relatively broad, in order to facilitate the player to control the virtual character taken over, usually, when controlling the movement of the virtual character taken over, it is based on the positional relationship of the mobile controls. Specifically, when the second mobile control is displayed in the above-mentioned first mobile control area, a binding relationship between the mobile control and the virtual character can be established, and the relative positional relationship of the corresponding virtual characters is reflected by the positional relationship between the first mobile control and the second mobile control. Specifically, when the second mobile control is displayed in the first mobile control area, the positional relationship between the first virtual character and the second virtual character in the current game scene can be obtained; based on the positional relationship, the relative positional relationship between the first joystick operation area and the second mobile control in the first mobile control area is determined; and then the second mobile control is displayed in the first mobile control area according to the relative positional relationship.
[0065] For example, suppose that before the first player takes over the second virtual character of the second player, the second virtual character is in front of the left of the first virtual character. At this time, when the second mobile control is displayed in the first mobile control area, the second mobile control can also be displayed in front of the left of the first mobile control (first joystick operation area), and the distance between the first mobile control and the second mobile control can be determined according to a preset scale and the current distance between the first virtual character and the second virtual character in the game map.
[0066] Furthermore, considering that the scope of the virtual scenes involved in the game map is relatively wide, when determining the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area, it is possible to first determine whether the distance between the first virtual character and the second virtual character in the game scene is greater than a preset distance. If not, the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area is determined directly according to the position relationship between the first virtual character and the second virtual character in the current game scene. If it is greater than the preset distance, the second virtual character taken over can be first controlled to approach the first virtual character. When the distance is not greater than the preset distance, the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area is determined based on the current position relationship. Therefore, when determining the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area, the distance between the first virtual character and the second virtual character in the game scene can be obtained first; when the distance is greater than the preset distance, the movement path of the second virtual character is generated according to the game scene; the second virtual character is controlled to move naturally to the preset position of the first virtual character according to the movement path, so that the distance between the first virtual character and the second virtual character in the game scene is less than or equal to the preset distance, so as to determine the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship within the preset distance.
[0067] Specifically, when generating the movement path of the second virtual character, the virtual obstacles included in the current game map need to be considered. For example, it is necessary to bypass insurmountable obstacles, lakes, rivers, etc., and select passable roads to generate the above-mentioned movement path to make the game settings more reasonable, thereby increasing the game fun for players.
[0068] In addition, after the first mobile control is displayed in the first mobile control area, in order to facilitate the distinction from the second mobile control, different identifiers can be used to mark the above-mentioned first mobile control. For example, the first mobile control can be distinguished by different colors, or the name of the first virtual character can be displayed in the icon of the first mobile control, or icons of different shapes can be used for display, etc. The specific settings can be made according to actual usage, and the embodiments of the present invention are not limited to this.
[0069] Furthermore, the display formats of the first skill control and the second skill control may also be set to different styles, so as to distinguish the first skill control from the second skill control, making it easier for players to distinguish and control them.
[0070] In addition, considering that a virtual character usually has multiple skills, the number of the above-mentioned first skill controls and second skill controls is usually also multiple, so as to control the virtual character to release more skills through multiple skill controls or a combination of skill controls. Therefore, when providing the first skill control and the second skill control, at least one first skill control corresponding to the first virtual character can be displayed in a preset display format, and at least one second skill control corresponding to the second virtual character can be displayed, wherein the display format of at least one first skill control is different from the display format of at least one second skill control.
[0071] For example, the first skill control and the second skill control may be displayed in different colors, or in different shapes, or icons of different sizes may be used to display the first skill control and the second skill control, and so on. The specific display format may be set according to actual usage, and the embodiments of the present invention are not limited to this.
[0072] Furthermore, the at least one first skill control and the at least one second skill control each include a main skill control and at least one secondary skill control associated with the main skill control; for example, for the first virtual character, its skill control may include a main skill control and multiple secondary skill controls, and for the second virtual character, a main skill control and multiple secondary skill controls may also be configured accordingly, and the number of secondary skill controls may be determined according to the attributes of the virtual character. At the same time, in order to distinguish the skill controls of the first virtual character and the second virtual character, the main skill control and multiple secondary skill controls of the first virtual character may be displayed in the same format, and the main skill control and multiple secondary skill controls of the second virtual character may be displayed in a format different from that of the first virtual character.
[0073] In addition, for the above-mentioned implementation method including at least one secondary skill control, the method provided by the embodiment of the present invention further includes: responding to a merge touch operation on the main skill control, merging and displaying the main skill control and at least one secondary skill control associated with the main skill control; and, when merging and displaying, responding to an extended touch operation on the main skill control, distributing and extending the main skill control in the merged display state and at least one secondary skill control associated with the main skill control. For example, by long pressing the main skill control, at least one secondary skill control associated with the main skill control is dragged onto the main skill control to merge into one control. Similarly, the merged main skill control can be long pressed to distribute and extend the display of at least one secondary skill control associated with it, and so on.
[0074] Therefore, based on the second movement controls and second skill controls corresponding to the second virtual character provided above, after the first player takes over the second virtual character of the second player, while controlling the first virtual character to perform virtual actions corresponding to the first control controls, the takeover control of the second virtual character can be achieved through the second movement controls and second skill controls included in the second control controls.
[0075] For ease of understanding, Figure 2 A schematic diagram of controlling a virtual character is shown, wherein: Figure 2 In the example, the first player controls a first virtual character and a second virtual character. Specifically, Figure 2 As shown, it includes a first virtual character, a second virtual character, and a first mobile control and a second mobile control set in a first mobile control area, wherein the first mobile control area is set on the left side of the graphical user interface, and the skill controls of the first virtual character and the second virtual character are set on the right side of the graphical user interface. Figure 2 The circular area in the middle is the first mobile control area, and the area on the right is where the various skill controls are located, which can also be called the second mobile control area.
[0076] During the actual game process, the first mobile control area can be displayed in a semi-transparent manner, or only the outline can be displayed to facilitate players to view, and the game scene will not be blocked. Furthermore, for more skilled players, the first mobile control area can be directly set to a non-display state. The specific setting can be made according to actual usage, and the embodiment of the present invention is not limited to this.
[0077] Furthermore, in order to facilitate the distinction between the skill controls of the first virtual character and the second virtual character, Figure 2In the example, the first virtual character is the main hero, and the second virtual character is the character taken over by the player. The second virtual character taken over is also called the secondary hero. The corresponding skill controls of the main hero are the first skill controls, and the skill controls corresponding to the secondary hero are the second skill controls. Specifically, the first skill controls include the main hero general controls and at least one main hero skill control associated with it. The second skill controls of the second virtual character taken over by the player include the secondary hero general controls and at least one secondary hero skill control associated with the secondary hero general controls. Figure 2 As shown, the right side of the graphical user interface is an area for displaying skill controls, wherein the skill control corresponding to the solid line is the first skill control of the main hero, wherein the control with a larger display area is the general control of the main hero, and the remaining ones are at least one main hero skill control associated with the general control of the main hero, and the skill control corresponding to the dotted line is the second skill control of the secondary hero, wherein the control with a larger display area is the general control of the secondary hero, and the remaining ones are at least one secondary hero skill control associated with the general control of the secondary hero. In specific implementation, the number of at least one main hero skill control and at least one secondary hero skill control included in the above-mentioned first skill control and second skill control can be set according to actual usage, and the embodiment of the present invention does not limit this.
[0078] Furthermore, the skill controls of the above-mentioned different virtual characters are displayed in different colors, that is, the colors of the skill controls corresponding to the main hero are different from those of the skill controls corresponding to the secondary hero, so as to facilitate players to distinguish them.
[0079] Specifically, based on Figure 2 As shown in the control diagram, when the first player takes over the control of the second virtual character, the following process may be included:
[0080] In response to a drag operation on the first joystick control area and / or the second mobile control, the relative position relationship between the first joystick control area and the second mobile control in the wheel control area is changed according to the drag operation, so as to control the position relationship between the first virtual character and the second virtual character in the game scene based on the relative position relationship. Specifically, the position relationship between the first virtual character and the second virtual character in the game scene can be changed according to the relative position relationship, so that the first virtual character and the second virtual character are at a distance and direction corresponding to the first joystick control area and the second mobile control in the game map corresponding to the game scene.
[0081] Among them, the above-mentioned dragging operation acting on the first joystick control area and / or the second mobile control can be a dragging operation acting on the first joystick control area or the second mobile control alone, or it can be a dragging operation acting on the first joystick control area and the second mobile control of the first mobile control at the same time. Taking the dragging operation acting on the first joystick control area or the second mobile control alone as an example, the player can drag the first joystick control area or the second mobile control alone to change the relative position relationship between the first joystick control area and the second mobile control in the first mobile control area, such as dragging the first joystick control area away from the second mobile control in a certain direction. At this time, the first virtual character also moves away from the second virtual character in the direction of dragging the first joystick control area. Similarly, the player can achieve the same effect by dragging the second mobile control alone. Furthermore, when the player drags the first joystick control area and the second mobile control at the same time, the corresponding first virtual character and the second virtual character also move at the same time, so as to be at a distance and direction corresponding to the first joystick control area and the second mobile control in the game map corresponding to the game scene. Among them, Figure 2 Shown is an implementation in which the player simultaneously acts on the first joystick control area and the second movement control, and, Figure 2 In the embodiment, the first joystick control area and the second mobile control are simultaneously dragged away from each other. At this time, the first virtual character and the second virtual character also move away from each other accordingly.
[0082] Further, in Figure 2 On the basis of Figure 3 Another schematic diagram of controlling a virtual character is shown. Figure 2 , Figure 3 What is shown in FIG. 1 is an implementation of simultaneously dragging the first joystick control area and the second movement control area closer together.
[0083] pass Figure 2 and Figure 3 In the embodiment shown, the relative position of the first virtual character and the second virtual character can be set. Taking the simultaneous control of two virtual characters as an example, the first mobile control area has two mobile controls, namely the first mobile control (first joystick control area) and the second mobile control. Players can set the positions of the two mobile controls by dragging with two fingers at the same time, so that the two virtual characters are at a distance and direction corresponding to the mobile controls in the game map. In addition, players can also drag one of the mobile controls to any position in the roulette control area with a single finger, and control the corresponding virtual characters to move simultaneously according to the set relative positions. Among them, Figure 4 and Figure 5 The embodiments of the player dragging the second mobile control and the first mobile control separately are shown, as shown in FIG. Figure 4 and Figure 5As shown, the positional relationship between the first virtual character and the second virtual character in the game scene can also be changed by dragging separately, and the first virtual character and the second virtual character are at a distance and direction corresponding to the first mobile control and the second mobile control in the game map.
[0084] Furthermore, the process of the first player taking over the control of the second virtual character also includes:
[0085] Responding to a collective touch operation acting on a target mobile control in a first mobile control area, wherein the target mobile control is any one of a first joystick control area and a second mobile control in the first mobile control area; controlling other first joystick control areas and second mobile controls in the first mobile control area except the target mobile control to move within a preset range of the target mobile control; and changing a positional relationship between a first virtual character and a second virtual character in a game scene according to a relative positional relationship between the current first joystick control area and the second mobile control in the first mobile control area, so that the first virtual character and the second virtual character are gathered at a position corresponding to the target mobile control in a game map corresponding to the game scene.
[0086] Specifically, the above-mentioned collective touch operation can be set in advance by the player or the game developer, so that a shortcut to gather multiple virtual characters can be realized during the game. For example, the player can triple-click a mobile control with one finger to quickly move other mobile controls to the position of the mobile control, and at the same time, make the controlled virtual characters "gather" at a point on the game map, which is easy for the player to control in operations such as escaping.
[0087] Furthermore, the process of the first player taking over control of the second virtual character also includes: responding to a field of view switching operation acting on a target mobile control in the first mobile control area, wherein the target mobile control is any one of the first joystick control area and the second mobile control in the first mobile control area; switching the field of view presented by the graphical user interface to the field of view of the virtual character corresponding to the target mobile control.
[0088] In specific implementation, the player's field of view is usually set by default to the field of view of the main hero character, that is, the field of view of the first virtual character in the embodiment of the present invention. The player can manually switch to the field of view of the virtual character corresponding to the mobile control by double-clicking a certain mobile control with one finger to achieve field of view switching. Among them, when dragging the first joystick control area and / or the second mobile control, a certain distance restriction condition can also be pre-set, for example, with the preset minimum field of view of the virtual character as the upper limit, to ensure that when switching the field of view between virtual characters, all virtual characters are within the field of view.
[0089] In addition, considering that there are many obstacles in the game map, when the player controls the movement of multiple virtual characters, when one of the virtual characters encounters an obstacle, the player can be prompted. For example, when one of the virtual characters is blocked by an obstacle, the other virtual characters can move normally. For the blocked virtual character, the corresponding mobile control can be set with certain animation effects for prompting, such as the mobile control flashing red.
[0090] It should be understood that the above Figure 2 to Figure 5 The implementation method is just to take two virtual characters as an example, that is, the first player takes over one virtual character. In actual use, since there are many teammates, there are often multiple virtual characters that need to be taken over. Therefore, the player can also take over two or more virtual characters. Considering the difficulty of the operation, the player can usually control up to 3 virtual characters. The specific number can be set according to the actual use.
[0091] Furthermore, through the control method of virtual characters in the game provided by the embodiment of the present invention, special battle modes can also be implemented. For example, before the start of the game, a "one-to-many" challenge mode or a "double hero" challenge mode, etc., is set, so that after the start of the game, the player is configured with two or more controllable virtual characters to increase the fun of the game.
[0092] Further, based on the above implementation, the embodiment of the present invention also provides a control device for a virtual character in a game, which displays a game scene through a graphical user interface, wherein the game scene includes at least one virtual character, such as Figure 6 The structure diagram of a control device for a virtual character in a game is shown, and the device comprises:
[0093] A first control module 60, configured to respond to a touch operation on a first control control in the graphical user interface and control the first virtual character to perform a virtual action corresponding to the first control control;
[0094] A takeover module 62, configured to provide a second control control for the second virtual character in the graphical user interface when the second virtual character meets a takeover condition, wherein the second virtual character has a preset relationship with the first virtual character;
[0095] The second control module 64 is configured to respond to a touch operation on the second control component and control the second virtual character to execute a virtual action corresponding to the second control component.
[0096] Further, in Figure 6 On the basis of Figure 7 The schematic diagram of the structure of another control device for a virtual character in a game is also shown. Figure 6 In addition to the structure shown, the above device also includes:
[0097] The determination module 66 is used to determine that the second virtual character meets the takeover condition if at least one of the following behaviors is monitored: the terminal corresponding to the second virtual character sends an on-hook signal indication; the terminal corresponding to the second virtual character sends a takeover request indication; the second virtual character meets the offline condition.
[0098] Specifically, the first control control includes a first movement control, and the first control module 60 is used to: respond to a touch operation on the first movement control to control the first virtual character to move in the game scene.
[0099] Further, the second control widget includes a second movement widget for controlling the movement of the second virtual character in the game scene;
[0100] The takeover module 62 is also used for: providing a first mobile control area in the graphical user interface, wherein the first mobile control is located in the first mobile control area; displaying the second mobile control in the first mobile control area; wherein the second mobile control and the first mobile control do not overlap.
[0101] Furthermore, the first mobile control includes a first joystick control area, and the takeover module 62 is further used for: the second mobile control and the first joystick control area do not overlap.
[0102] Furthermore, the second control widget includes a second movement widget for controlling the movement of the second virtual character in the game scene; the takeover module 62 is also used to provide the second movement widget within the first movement widget.
[0103] Furthermore, the first mobile control includes a first mobile control area and a first joystick operation area, and the takeover module 62 is also used to: display the second mobile control in the first mobile control area; wherein the second mobile control and the first joystick operation area do not overlap.
[0104] Furthermore, the first mobile control includes a first joystick operation area, and the takeover module 62 is further used to: embed the second mobile control in the first joystick operation area so that the first joystick operation area and the second mobile control at least partially overlap.
[0105] Furthermore, the first control control includes a first skill control corresponding to the first virtual character, and the first control module 60 is further used to: respond to a touch operation on the first skill control, and control the first virtual character to release a first virtual skill corresponding to the first skill control.
[0106] Furthermore, the second control control includes a second skill control for controlling the second virtual character to release a second virtual skill, and the takeover module 62 is further used to provide the second skill control within the first skill control.
[0107] Furthermore, the second control module 64 is also used to: respond to a touch operation on the second skill control, control the first virtual character to release the first virtual skill, and control the second virtual character to release the second virtual skill.
[0108] Furthermore, the second control control includes a second skill control for controlling the second virtual character to release a second virtual skill, and the takeover module 62 is further used to display the second skill control within a preset range of the first skill control.
[0109] Furthermore, the takeover module 62 is also used to: obtain the position relationship between the first virtual character and the second virtual character in the current game scene; determine the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship; and display the second mobile control in the first mobile control area according to the relative position relationship.
[0110] Among them, the step of determining the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship includes: obtaining the distance between the first virtual character and the second virtual character in the game scene; when the distance is greater than a preset distance, generating a movement path of the second virtual character according to the game scene; controlling the second virtual character to automatically move to the preset position of the first virtual character according to the movement path, so that the distance between the first virtual character and the second virtual character in the game scene is less than or equal to the preset distance, so as to determine the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship within the preset distance.
[0111] Furthermore, the above-mentioned device also includes: a first operation module 68, which is used to respond to a drag operation acting on the first joystick operation area and / or the second mobile control, and change the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area according to the drag operation; based on the relative position relationship, control the position relationship between the first virtual character and the second virtual character in the game scene.
[0112] Among them, the step of controlling the positional relationship between the first virtual character and the second virtual character in the game scene based on the relative positional relationship includes: changing the positional relationship between the first virtual character and the second virtual character in the game scene according to the relative positional relationship, so that the first virtual character and the second virtual character are at a distance and direction corresponding to the first mobile control and the second mobile control in the game map corresponding to the game scene.
[0113] Furthermore, the above-mentioned device also includes: a second operation module 70, which is used to respond to a collective touch operation acting on a target mobile control in the first mobile control area, wherein the target mobile control is any one of the first joystick control area and the second mobile control in the first mobile control area; control the other first joystick control areas and the second mobile controls in the first mobile control area except the target mobile control to move within a preset range of the target mobile control; and change the positional relationship between the first virtual character and the second virtual character in the game scene according to the current relative positional relationship between the first joystick control area and the second mobile control in the first mobile control area, so that the first virtual character and the second virtual character are gathered at the position corresponding to the target mobile control in the game map corresponding to the game scene.
[0114] Furthermore, the above-mentioned device also includes: a third operation module 72, which is used to respond to the field of view switching operation acting on the target mobile control in the first mobile control area, wherein the target mobile control is any one of the first joystick control area and the second mobile control in the first mobile control area; and switch the field of view presented by the graphical user interface to the field of view of the virtual character corresponding to the target mobile control.
[0115] The control device for a virtual character in a game provided by an embodiment of the present invention has the same technical features as the control method for a virtual character in a game provided by the above embodiment, and therefore can solve the same technical problems and achieve the same technical effects.
[0116] Furthermore, an embodiment of the present invention also provides an electronic device, comprising a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement Figure 1 The method shown.
[0117] Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement Figure 1 The method shown.
[0118] Furthermore, an embodiment of the present invention also provides a schematic diagram of the structure of an electronic device, such as Figure 8 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 81 and a memory 80, the memory 80 stores computer executable instructions that can be executed by the processor 81, and the processor 81 executes the computer executable instructions to implement the control method of the virtual character in the above-mentioned game.
[0119] exist Figure 8 In the illustrated embodiment, the electronic device further includes a bus 82 and a communication interface 83 , wherein the processor 81 , the communication interface 83 and the memory 80 are connected via the bus 82 .
[0120] Among them, the memory 80 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 83 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 82 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 82 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0121] The processor 81 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 81 or the instruction in the form of software. The above processor 81 can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 81 reads the information in the memory and combines its hardware to complete the control method of the virtual character in the game in the above-mentioned embodiment.
[0122] The computer program product of the method, device and electronic device for controlling a virtual character in a game provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0123] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0124] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0125] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0126] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0127] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for controlling a virtual character in a game, It is characterized in that Displaying a game scene by means of a graphical user interface, wherein the game scene includes at least one virtual character, the method comprising: In response to a touch operation on a first control control in the graphical user interface, controlling the first virtual character to perform a virtual action corresponding to the first control control; When the second virtual character meets the takeover condition, providing a second control control for the second virtual character in the graphical user interface, wherein the second virtual character has a preset relationship with the first virtual character; In response to the touch operation on the second control control, controlling the second virtual character to perform a virtual action corresponding to the second control control; Displaying a first mobile control and a second mobile control in a first mobile control area, wherein the first control control includes the first mobile control, and the first mobile control includes a first joystick operation area; The step of displaying the second mobile control in the first mobile control area includes: Acquire the position relationship between the first virtual character and the second virtual character in the current game scene; Determine the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship; Displaying the second mobile control in the first mobile control area according to the relative position relationship; The first mobile control includes a first joystick control area; The method further comprises: In response to a drag operation on the first joystick control area and / or the second mobile control, changing a relative positional relationship between the first joystick control area and the second mobile control in the first mobile control area according to the drag operation; The positional relationship between the first virtual character and the second virtual character in the game scene is controlled based on the relative positional relationship.
2. The method according to claim 1, It is characterized in that The method further comprises: If at least one of the following behaviors is detected, it is determined that the second virtual character meets the takeover condition: The terminal corresponding to the second virtual character sends an on-hook signal indication; The terminal corresponding to the second virtual character sends a takeover request instruction; The second virtual character meets the offline condition.
3. The method according to claim 1, It is characterized in that The step of responding to a touch operation on a first control control in the graphical user interface and controlling the first virtual character to perform a virtual action corresponding to the first control control includes: In response to the touch operation on the first mobile control, the first virtual character is controlled to move in the game scene.
4. The method according to claim 3, It is characterized in that The second control widget comprises a second movement widget for controlling the second virtual character to move in the game scene; The step of providing a second control widget for the second virtual character in the graphical user interface comprises: Providing a first mobile control area in the graphical user interface, wherein the first mobile control is located in the first mobile control area; The second mobile control is displayed in the first mobile control area; wherein the second mobile control and the first mobile control do not overlap.
5. The method according to claim 4, It is characterized in that The second mobile control and the first mobile control do not overlap, including: The second mobile control and the first joystick control area do not overlap.
6. The method according to claim 3, It is characterized in that The second control widget comprises a second movement widget for controlling the second virtual character to move in the game scene; The step of providing a second control widget for the second virtual character in the graphical user interface comprises: The second mobile control is provided within the first mobile control.
7. The method according to claim 6, It is characterized in that The first mobile control includes a first mobile control area and a first joystick operation area; The providing the second mobile control in the first mobile control comprises: The second mobile control is displayed in the first mobile control area; wherein the second mobile control and the first joystick operation area do not overlap.
8. The method according to claim 6, It is characterized in that The first mobile control includes a first joystick operation area; The providing the second mobile control in the first mobile control comprises: The second mobile control is embedded in the first joystick operation area so that the first joystick operation area and the second mobile control at least partially overlap.
9. The method according to claim 1, It is characterized in that The first control widget includes a first skill widget corresponding to the first virtual character; The step of responding to a touch operation on a first control control in the graphical user interface and controlling the first virtual character to perform a virtual action corresponding to the first control control includes: In response to the touch operation on the first skill control, the first virtual character is controlled to release the first virtual skill corresponding to the first skill control.
10. The method according to claim 9, It is characterized in that The second control widget includes a second skill widget for controlling the second virtual character to release a second virtual skill; The step of providing a second control widget for the second virtual character in the graphical user interface comprises: The second skill control is provided within the first skill control.
11. The method according to claim 10, It is characterized in that The step of responding to the touch operation on the second control component and controlling the second virtual character to perform a virtual action corresponding to the second control component includes: In response to the touch operation applied to the second skill control, the first virtual character is controlled to release the first virtual skill, and the second virtual character is controlled to release the second virtual skill.
12. The method according to claim 9, It is characterized in that The second control widget includes a second skill widget for controlling the second virtual character to release a second virtual skill; The step of providing a second control widget for the second virtual character in the graphical user interface further includes: The second skill control is displayed within a preset range of the first skill control.
13. The method according to claim 1, It is characterized in that The step of determining the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship includes: Acquire the distance between the first virtual character and the second virtual character in the game scene; When the distance is greater than a preset distance, generating a moving path of the second virtual character according to the game scene; Control the second virtual character to automatically move to the preset position of the first virtual character according to the moving path, so that the distance between the first virtual character and the second virtual character in the game scene is less than or equal to the preset distance, so as to determine the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship within the preset distance.
14. The method according to claim 1, It is characterized in that The step of controlling the positional relationship between the first virtual character and the second virtual character in the game scene based on the relative positional relationship comprises: The positional relationship between the first virtual character and the second virtual character in the game scene is changed according to the relative positional relationship, so that the first virtual character and the second virtual character are at a distance and direction corresponding to the first mobile control and the second mobile control in the game map corresponding to the game scene.
15. The method according to claim 5 or 7, It is characterized in that The method further comprises: Responding to a collective touch operation acting on a target mobile control in the first mobile control area, wherein the target mobile control is any one of the first joystick control area and the second mobile control in the first mobile control area; Controlling other first joystick control areas and the second mobile controls in the first mobile control area except the target mobile control to move to a preset range of the target mobile control; Furthermore, the positional relationship between the first virtual character and the second virtual character in the game scene is changed according to the relative positional relationship between the first joystick control area and the second mobile control in the first mobile control area, so that the first virtual character and the second virtual character are gathered at the position corresponding to the target mobile control in the game scene.
16. The method according to claim 5 or 7, It is characterized in that The method further comprises: Responding to a field of view switching operation acting on a target mobile control in the first mobile control area, wherein the target mobile control is any one of the first joystick control area and the second mobile control in the first mobile control area; The field of view presented by the graphical user interface is switched to the field of view of the virtual character corresponding to the target mobile control.
17. A control device for a virtual character in a game, It is characterized in that Displaying a game scene by means of a graphical user interface, wherein the game scene includes at least one virtual character, the device includes: A first control module, configured to respond to a touch operation on a first control control in the graphical user interface and control a first virtual character to perform a virtual action corresponding to the first control control; a takeover module, configured to provide a second control control for the second virtual character in the graphical user interface when the second virtual character meets a takeover condition, wherein the second virtual character has a preset relationship with the first virtual character; A second control module, configured to respond to a touch operation on the second control control and control the second virtual character to perform a virtual action corresponding to the second control control; Displaying a first mobile control and a second mobile control in a first mobile control area, wherein the first control control includes the first mobile control, and the first mobile control includes a first joystick operation area; The first control module is specifically used to: Acquire the position relationship between the first virtual character and the second virtual character in the current game scene; Determine the relative position relationship between the first joystick operation area and the second mobile control in the first mobile control area based on the position relationship; Displaying the second mobile control in the first mobile control area according to the relative position relationship; The first mobile control includes a first joystick control area; The second control module is specifically used for: In response to a drag operation on the first joystick control area and / or the second mobile control, changing a relative positional relationship between the first joystick control area and the second mobile control in the first mobile control area according to the drag operation; The positional relationship between the first virtual character and the second virtual character in the game scene is controlled based on the relative positional relationship.
18. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method according to any one of claims 1 to 16.
19. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 16.
