Method and device for controlling virtual character in game and electronic equipment

文档序号:177563 发布日期:2021-11-02 浏览:20次 中文

阅读说明:本技术 游戏中虚拟角色的控制方法、装置及电子设备 (Method and device for controlling virtual character in game and electronic equipment ) 是由 郭献伦 于 2021-07-27 设计创作,主要内容包括:本发明提供了一种游戏中虚拟角色的控制方法、装置及电子设备,涉及游戏控制技术领域,该方法包括:响应针对图形用户界面中第一控制控件的触控操作,控制第一虚拟角色执行第一控制控件对应的虚拟动作;当第二虚拟角色满足接管条件,在图形用户界面中提供针对第二虚拟角色的第二控制控件;响应作用于第二控制控件的触控操作,控制第二虚拟角色执行第二控制控件对应的虚拟动作。本发明提供的游戏中虚拟角色的控制方法、装置及电子设备,当对第二虚拟角色接管之后,可以通过第二控制控件继续控制第二虚拟角色在游戏过程中的技能、站位等等,以继续保持第二虚拟角色的战斗力,不仅提升了游戏的趣味性和公平性,也有助提高其他玩家的游戏体验。(The invention provides a method and a device for controlling virtual characters in a game and electronic equipment, and relates to the technical field of game control, wherein the method comprises the following steps: responding to touch operation aiming at a first control in the graphical user interface, and controlling a first virtual role to execute a virtual action corresponding to the first control; when the second virtual role meets the takeover condition, providing a second control aiming at the second virtual role in the graphical user interface; and responding to the touch operation acted on the second control, and controlling the second virtual role to execute the virtual action corresponding to the second control. According to the control method, the control device and the electronic equipment for the virtual character in the game, after the second virtual character takes over, the skill, the station position and the like of the second virtual character in the game process can be continuously controlled through the second control so as to continuously keep the fighting capacity of the second virtual character, so that the interest and the fairness of the game are improved, and the game experience of other players is also improved.)

1. A method for controlling virtual characters in a game, wherein a game scene including at least one virtual character is displayed through a graphical user interface, the method comprising:

responding to touch operation aiming at a first control in the graphical user interface, and controlling a first virtual role to execute a virtual action corresponding to the first control;

when a second virtual role meets a takeover condition, providing a second control aiming at the second virtual role in the graphical user interface, wherein the second virtual role and the first virtual role have a preset relation;

and responding to the touch operation acted on the second control, and controlling the second virtual role to execute the virtual action corresponding to the second control.

2. The method of claim 1, further comprising:

determining that the second avatar satisfies the takeover condition if at least one of the following behaviors is monitored:

the terminal corresponding to the second virtual role sends an on-hook signal indication;

the terminal corresponding to the second virtual role sends a takeover request instruction;

the second virtual role satisfies a drop condition.

3. The method of claim 1, wherein the first control comprises a first movement control;

the responding controls a first virtual role to execute a virtual action corresponding to a first control in the graphical user interface aiming at the touch operation of the first control, and the responding comprises the following steps:

and responding to the touch operation aiming at the first mobile control, and controlling the first virtual character to move in a game scene.

4. The method of claim 3, wherein the second control comprises a second movement control for controlling movement of the second virtual character in the game scene;

providing a second control for the second virtual character in the graphical user interface, comprising:

providing a first movement control area at the graphical user interface, the first movement control being located within the first movement control area;

displaying the second movement control in the first movement control area; wherein the second movement control and the first movement control are not coincident.

5. The method of claim 4, wherein the first movement control comprises a first rocker control region;

the second movement control and the first movement control are not coincident, including:

the second movement control and the first rocker control region are not coincident.

6. The method of claim 3, wherein the second control comprises a second movement control for controlling movement of the second virtual character in the game scene;

providing a second control for the second virtual character in the graphical user interface, comprising:

providing the second movement control within the first movement control.

7. The method of claim 6, wherein the first movement control comprises a first movement control region and a first rocker operational region;

the providing the second movement control within the first movement control comprises:

displaying the second movement control within the first movement control zone; wherein the second movement control and the first rocker operational zone are not coincident.

8. The method of claim 6, wherein the first movement control comprises a first rocker operational area;

the providing the second movement control within the first movement control comprises:

embedding the second mobile control in the first rocker operation area so that the first rocker operation area and the second mobile control are at least partially overlapped.

9. The method of claim 1, wherein the first control comprises a first skill control corresponding to the first virtual character;

the responding controls a first virtual role to execute a virtual action corresponding to a first control in the graphical user interface aiming at the touch operation of the first control, and the responding comprises the following steps:

and responding to the touch operation aiming at the first skill control, and controlling the first virtual character to release the first virtual skill corresponding to the first skill control.

10. The method of claim 9, wherein the second control comprises a second skill control for controlling the second virtual character to release a second virtual skill;

the step of providing a second control for the second virtual character in the graphical user interface comprises:

providing the second skill control within the first skill control.

11. The method according to claim 10, wherein the controlling the second virtual character to execute the virtual action corresponding to the second control in response to the touch operation acting on the second control comprises:

and responding to the touch operation acted 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.

12. The method of claim 9, wherein the second control comprises a second skill control for controlling the second virtual character to release a second virtual skill;

providing a second control for the second virtual character in the graphical user interface, further comprising:

and displaying the second skill control within a preset range of the first skill control.

13. The method of claim 5 or 7, wherein the step of displaying the second movement control in the first movement control area comprises:

acquiring the position relation of the first virtual character and the second virtual character in the current game scene;

determining a relative positional relationship of the first rocker operating region and the second movement control in the first movement control region based on the positional relationship;

and displaying the second movement control in the first movement control area according to the relative position relation.

14. The method of claim 13, wherein the step of determining the relative positional relationship of the first rocker operating region and the second movement control in the first movement control region based on the positional relationship comprises:

acquiring the distance between the first virtual character and the second virtual character in the game scene;

when the distance is larger than a preset distance, generating a moving path of the second virtual character according to the game scene;

and controlling the second virtual character to automatically move to a 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 smaller than or equal to the preset distance, and determining the relative position relationship between the first rocker operation area and the second moving control in the first moving control area based on the position relationship in the preset distance.

15. The method according to claim 5 or 7, characterized in that the method further comprises:

responding to the dragging operation acted on the first rocker control area and/or the second mobile control, and changing the relative position relation of the first rocker control area and the second mobile control in the first mobile control area according to the dragging operation;

controlling a positional relationship of the first virtual character and the second virtual character in the game scene based on the relative positional relationship.

16. The method of claim 15, wherein the step of controlling the position relationship of the first virtual character and the second virtual character in the game scene based on the relative position relationship comprises:

and changing the position relation of the first virtual character and the second virtual character in the game scene according to the relative position relation so as to enable the first virtual character and the second virtual character to be located at the distance and the direction corresponding to the first mobile control and the second mobile control in a game map corresponding to the game scene.

17. The method according to claim 5 or 7, characterized in that the method further comprises:

responding to a set 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 rocker control area and the second mobile control in the first mobile control area;

controlling the other first rocker control areas and the second movement control in the first movement control area except the target movement control to move to a preset range of the target movement control;

and changing the position relationship of the first virtual character and the second virtual character in the game scene according to the relative position relationship between the current first rocker 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 integrated at the corresponding positions of the target mobile control in the game scene.

18. The method according to claim 5 or 7, characterized in that the method further comprises:

responding to a visual field 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 rocker control area and the second mobile control in the first mobile control area;

and switching the visual field presented by the graphical user interface to the visual field of the virtual character corresponding to the target mobile control.

19. An apparatus for controlling virtual characters in a game, wherein a game scene including at least one virtual character is displayed through a graphic user interface, the apparatus comprising:

the first control module is used for responding to touch operation aiming at a first control in the graphical user interface and controlling a first virtual role to execute a virtual action corresponding to the first control;

the takeover module is used for providing a second control for a second virtual role in the graphical user interface when the second virtual role meets takeover conditions, wherein the second virtual role has a preset relationship with the first virtual role;

and the second control module is used for responding to the touch operation acted on the second control and controlling the second virtual role to execute the virtual action corresponding to the second control.

20. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 18.

21. A computer-readable storage medium having stored thereon computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of any of claims 1 to 18.

Technical Field

The present invention relates to the field of game control technologies, and in particular, to a method and an apparatus for controlling a virtual character in a game, and an electronic device.

Background

Moba (multiplayer Online battlearena) hand games, which generally refer to tactical games for multiplayer Online competition, require players to manipulate a virtual character and collaborate with other teammates during the game. In the current MOBA game, because a player can only control one virtual character each time, when a teammate player goes off-line, the character controlled by the teammate player can only adopt a hosting or automatic on-hook mode generally, thereby not only influencing the game experience of other players, but also reducing the interest and fairness of the game.

Disclosure of Invention

In view of the above, the present invention provides a method, an apparatus and an electronic device for controlling a virtual character in a game, so as to alleviate the above technical problems.

In a first aspect, an embodiment of the present invention provides a method for controlling virtual characters in a game, where a game scene is displayed through a graphical user interface, the game scene includes at least one virtual character, and the method includes: responding to touch operation aiming at a first control in the graphical user interface, and controlling a first virtual role to execute a virtual action corresponding to the first control; when a second virtual role meets a takeover condition, providing a second control aiming at the second virtual role in the graphical user interface, wherein the second virtual role and the first virtual role have a preset relation; and responding to the touch operation acted on the second control, and controlling the second virtual role to execute the virtual action corresponding to the second control.

Preferably, in a possible embodiment, the method further comprises: determining that the second avatar satisfies the takeover condition if at least one of the following behaviors is monitored: the terminal corresponding to the second virtual role sends an on-hook signal indication; the terminal corresponding to the second virtual role sends a takeover request instruction; the second virtual meeting a drop condition.

Preferably, in a possible implementation, the first control includes a first movement control; the responding controls a first virtual role to execute a virtual action corresponding to a first control in the graphical user interface aiming at the touch operation of the first control, and the responding comprises the following steps: and responding to the touch operation aiming at the first mobile control, and controlling the first virtual character to move in a game scene.

Preferably, in a possible implementation, the second control includes a second movement control for controlling the second virtual character to move in the game scene; providing a second control for the second virtual character in the graphical user interface, comprising: providing a first movement control area at the graphical user interface, the first movement control being located within the first movement control area; displaying the second movement control in the first movement control area; wherein the second movement control and the first movement control are not coincident.

Preferably, in one possible embodiment, the first movement control comprises a first rocker control region; the second movement control and the first movement control are not coincident, including: the second movement control and the first rocker control region are not coincident.

Preferably, in a possible implementation, the second control includes a second movement control for controlling the second virtual character to move in the game scene; providing a second control for the second virtual character in the graphical user interface, comprising: providing the second movement control within the first movement control.

Preferably, in a possible implementation, the first movement control includes a first movement control region and a first rocker operation region; the providing the second movement control within the first movement control comprises: displaying the second movement control within the first movement control zone; wherein the second movement control and the first rocker operational zone are not coincident.

Preferably, in one possible embodiment, the first movement control comprises a first rocker operating region; the providing the second movement control within the first movement control comprises: embedding the second mobile control in the first rocker operation area so that the first rocker operation area and the second mobile control are at least partially overlapped.

Preferably, in a possible implementation, the first control includes a first skill control corresponding to the first virtual character; the responding controls a first virtual role to execute a virtual action corresponding to a first control in the graphical user interface aiming at the touch operation of the first control, and the responding comprises the following steps: and responding to the touch operation aiming at the first skill control, and controlling the first virtual character to release the first virtual skill corresponding to the first skill control.

Preferably, in a possible implementation, the second control includes a second skill control for controlling the second virtual character to release the second virtual skill; the step of providing a second control for the second virtual character in the graphical user interface comprises: providing the second skill control within the first skill control.

Preferably, in a possible implementation manner, the controlling, by responding to the touch operation performed on the second control, the second virtual character to execute the virtual action corresponding to the second control includes: and responding to the touch operation acted 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.

Preferably, in a possible implementation, the second control includes a second skill control for controlling the second virtual character to release the second virtual skill; providing a second control for the second virtual character in the graphical user interface, further comprising: and displaying the second skill control within a preset range of the first skill control.

Preferably, in a possible implementation, the step of displaying the second movement control in the first movement control area includes: acquiring the position relation of the first virtual character and the second virtual character in the current game scene; determining a relative positional relationship of the first rocker operating region and the second movement control in the first movement control region based on the positional relationship; and displaying the second movement control in the first movement control area according to the relative position relation.

Preferably, in a possible implementation, the step of determining the relative positional relationship between the first joystick operation region and the second movement control in the first movement control area based on the positional relationship includes: acquiring the distance between the first virtual character and the second virtual character in the game scene; when the distance is larger than a preset distance, generating a moving path of the second virtual character according to the game scene; and controlling the second virtual character to automatically move to a 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 smaller than or equal to the preset distance, and determining the relative position relationship between the first rocker operation area and the second moving control in the first moving control area based on the position relationship in the preset distance.

Preferably, in a possible embodiment, the method further comprises: responding to the dragging operation acted on the first rocker control area and/or the second mobile control, and changing the relative position relation of the first rocker control area and the second mobile control in the first mobile control area according to the dragging operation; controlling a positional relationship of the first virtual character and the second virtual character in the game scene based on the relative positional relationship.

Preferably, in a possible implementation manner, the step of controlling the position relationship of the first virtual character and the second virtual character in the game scene based on the relative position relationship includes: and changing the position relation of the first virtual character and the second virtual character in the game scene according to the relative position relation so as to enable the first virtual character and the second virtual character to be located at the distance and the direction corresponding to the first mobile control and the second mobile control in a game map corresponding to the game scene.

Preferably, in a possible embodiment, the method further comprises: responding to a set 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 rocker control area and the second mobile control in the first mobile control area; controlling the other first rocker control areas and the second movement control in the wheel disc control area except the target movement control to move to the preset range of the target movement control; and changing the position relationship of the first virtual character and the second virtual character in the game scene according to the relative position relationship between the current first rocker 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 integrated at the corresponding positions of the target mobile control in the game map corresponding to the game scene.

Preferably, in a possible embodiment, the method further comprises: responding to a visual field 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 rocker control area and the second mobile control in the first mobile control area; and switching the visual field presented by the graphical user interface to the visual field of the virtual character corresponding to the target mobile control.

In a second aspect, an embodiment of the present invention further provides a device for controlling virtual characters in a game, where a game scene is displayed through a graphical user interface, the game scene includes at least one virtual character, and the device includes: the first control module is used for responding to touch operation aiming at a first control in the graphical user interface and controlling a first virtual role to execute a virtual action corresponding to the first control; the takeover module is used for providing a second control for a second virtual role in the graphical user interface when the second virtual role meets takeover conditions, wherein the second virtual role has a preset relationship with the first virtual role; and the second control module is used for responding to the touch operation acted on the second control and controlling the second virtual role to execute the virtual action corresponding to the second control.

In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, where 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 in the first aspect.

In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method of the first aspect.

The embodiment of the invention has the following beneficial effects:

the method, the device and the electronic equipment for controlling the virtual character in the game provided by the embodiment of the invention can respond to the touch operation aiming at the first control in the graphical user interface, control the first virtual character to execute the virtual action corresponding to the first control, and provide the second control aiming at the second virtual character in the graphical user interface when the second virtual character meets the takeover condition; and responding to the touch operation acting on the second control, so as to control the second virtual character to execute the virtual action corresponding to the second control, wherein the second virtual character and the first virtual character generally have a preset relationship, for example, virtual characters controlled by teammate players and the like, therefore, after the second virtual character meets the takeover condition, the skill, the standing position and the like of the second virtual character in the game process can be continuously controlled through the second control, so that after the player corresponding to the second virtual character is offline, the fighting capacity of the second virtual character is continuously maintained, the interest and the fairness of the game are improved, and the game experience of other players is also improved.

Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.

Fig. 1 is a flowchart of a method for controlling a virtual character in a game according to an embodiment of the present invention;

fig. 2 is a schematic control diagram of a virtual character according to an embodiment of the present invention;

fig. 3 is a schematic control diagram of another virtual character according to an embodiment of the present invention;

fig. 4 is a schematic control diagram of another virtual character according to an embodiment of the present invention;

fig. 5 is a schematic control diagram of another virtual character according to an embodiment of the present invention;

fig. 6 is a schematic structural diagram of a control device for a virtual character in a game according to an embodiment of the present invention;

FIG. 7 is a schematic structural diagram of a control device for virtual characters in another game according to an embodiment of the present invention;

fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

Detailed Description

To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

At present, a player of an MOBA hand game can only control one hero character at a time, and often can only carry out hosting or on-hook after a teammate goes off-line, so that the game experience of other players is greatly influenced. Based on this, the method, the device and the electronic device for controlling the virtual character in the game provided by the embodiment of the invention can effectively alleviate the technical problems, so as to improve the game experience of the player.

For the convenience of understanding the present embodiment, a detailed description will be given to a method for controlling a virtual character in a game according to the present embodiment.

In a possible implementation manner, an embodiment of the present invention provides a method for controlling virtual characters in a game, in which a game scene is displayed through a graphical user interface, the game scene includes at least one virtual character, and specifically, the method may be executed in a terminal device or a server. For example, the terminal device may be a display device with a data transmission function near the user side, such as a mobile terminal, a television, a computer, a palm computer, and the like; the terminal device may be a local terminal device or a network terminal device. Taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. By way of example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, controlling the display of the graphical user interface on the display screen, and the like. Further, when the method for controlling a virtual character in a game according to the embodiment of the present invention is executed by a server, the method for controlling a virtual character in a game may be implemented and executed based on a cloud interaction system, where the cloud interaction system includes the server and a client device, and when playing the game, a player may operate the client device to send an operation instruction to the server, and the server executes the game according to the operation instruction, encodes and compresses data such as a game screen, returns the data to the client device through a network, and finally decodes the data and outputs the game screen through the client device.

Specifically, as shown in fig. 1, a flow chart of a method for controlling a virtual character in a game includes the following steps:

step S102, responding to touch operation aiming at a first control in a graphical user interface, and controlling a first virtual role to execute a virtual action corresponding to the first control;

step S104, when the second virtual role meets the takeover condition, providing a second control aiming at the second virtual role in the graphical user interface;

the second virtual role and the first virtual role have a preset relationship. For example, the first virtual character and the second virtual character are virtual characters controlled by teammate players, e.g., 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 teammate players.

In the normal game process, the first player and the second player both control the corresponding virtual characters, therefore, under the condition that the first player and the second player can normally control the virtual characters, the first player can control the first virtual character to execute the virtual action corresponding to the first control through the first control, for example, to implement a certain skill, or to change a certain station, and the like, and similarly, the second player can also control the corresponding second virtual character to execute the corresponding virtual action through the second control.

When there is a player, for example, the second player needs to be offline temporarily, an on-hook signal may be sent, or an takeover request instruction may be sent to the other teammate players to request the other teammate players to take over the virtual character controlled by the player, in addition, if the client or the background server of the game monitors that a certain player is offline, if the offline time exceeds a certain time, it may be determined that the player is offline, and at this time, it may also be determined that the player meets the takeover condition. At this time, the process of step S104 may be executed to provide a second control for the second virtual character in the graphical user interface of the first player, so that the first player takes over the second virtual character corresponding to the second player.

Thus, it may be determined that the second virtual character satisfies the takeover condition if at least one of the following actions is monitored by the second player: a terminal corresponding to the second virtual role sends an on-hook signal indication; a terminal corresponding to the second virtual role sends a takeover request instruction; the second virtual character satisfies a drop condition. The indication that the terminal corresponding to the second virtual character sends the on-hook signal may be that the second player leaves suddenly, but the terminal corresponding to the second virtual character communicates normally, at this time, the terminal corresponding to the second virtual character detects that the second virtual character does not move for more than a preset time period, or during other operations, the terminal corresponding to the second virtual character may send the on-hook indication to the server, and in addition, the second player may 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 drop condition that the second virtual character satisfies usually means that the second virtual character does not move for more than a preset time or performs other operations, and the terminal corresponding to the second virtual character is abnormal in communication.

When it is determined that the second virtual character meets the takeover condition, step S104 may be executed to display a second control of the second virtual character in the current graphical user interface for the first player to take over. For example, a takeover control is displayed at the avatar position of the second virtual character, and so on, and when other players click on the takeover control, the takeover control can be performed on the second virtual character by other players. In addition, the takeover request instruction sent by the player corresponding to the second virtual character may be sent to a chat room of a teammate in a chat mode, or may be sent to a certain teammate player by the player corresponding to the second virtual character alone and directly, and the embodiment of the present invention is not limited thereto specifically based on an actual use situation.

After the other players take over the first virtual character, the step S106 may be continuously performed to facilitate taking over control of the second virtual character.

And step S106, responding to the touch operation acted on the second control, and controlling the second virtual role to execute the virtual action corresponding to the second control.

The method for controlling the virtual character in the game provided by the embodiment of the invention can respond to the touch operation aiming at the first control in the graphical user interface, control the first virtual character to execute the virtual action corresponding to the first control, and provide the second control aiming at the second virtual character in the graphical user interface when the second virtual character meets the takeover condition; and responding to the touch operation acting on the second control, so as to control the second virtual character to execute the virtual action corresponding to the second control, wherein the second virtual character and the first virtual character generally have a preset relationship, for example, virtual characters controlled by teammate players and the like, therefore, after the second virtual character meets the takeover condition, the skill, the standing position and the like of the second virtual character in the game process can be continuously controlled through the second control, so that after the player corresponding to the second virtual character is offline, the fighting capacity of the second virtual character is continuously maintained, the interest and the fairness of the game are improved, and the game experience of other players is also improved.

In actual use, the first control and the second control are controls for controlling the station and the skill of the virtual character, for example, the corresponding virtual character may be controlled to move in a game scene, or a certain skill may be released during a battle, and the like. Thus, the first and second control controls described above typically comprise corresponding skill controls and movement controls, in particular the first control comprises a first movement control; in step S102, when the first virtual character is controlled to execute the virtual action corresponding to the first control in response to the touch operation directed to the first control in the graphical user interface, the first virtual character may be controlled to move in the game scene in response to the touch operation directed to the first mobile control.

Further, the second control may also include a second movement control for controlling the second virtual character to move in the game scene.

At this time, in the step S104, when the second control for the second virtual character is provided, a first movement control area may be provided on the graphical user interface, where the first movement control is located in the first movement control area; then displaying a second movement control in the first movement control area; wherein the second movement control and the first movement control are not coincident.

In practical use, the first movement control may be provided in the form of a joystick, which facilitates the player to control the movement of the first virtual character, and thus, the provided first movement control includes a first joystick control area; in addition, in the first movement control region, the second movement control and the first movement control do not coincide, which generally means that the second movement control and the first rocker control region do not coincide.

Further, in addition to the first and second movement controls that are not overlapped in the first movement control region, a second movement control may be provided in the first movement control, for example, the first movement control is set to be a wheel-style control, at this time, the second movement control may be provided within a base range of the wheel-style control, and then the function control that controls the movement of the second virtual character is integrated into the first movement control, and the movement of the first virtual character and the movement of the second virtual character may be controlled simultaneously by one movement control. For the embodiment of integrating the function control for controlling the movement of the second virtual character into the first movement control, in order to distinguish the first virtual character and the second virtual character to be controlled, the first movement control may include a first movement control area and a first rocker operation area; while providing the second movement control within the first movement control, the second movement control may be displayed within the first movement control region; wherein the second movement control and the first rocker operating region are not coincident. Further, the first movement control may also only include a rocker operation region, that is, the first movement control includes a first rocker operation region; when the second movement control is provided in the first movement control, the second movement control may be embedded in the first rocker operation region, so that the first rocker operation region and the second movement control are at least partially overlapped, for example, the original first movement control is divided into two display regions, and for distinguishing, the two regions may be set to different colors or patterns, so that one of the regions is embedded in the second movement control, so as to realize integration of the first movement control and the second movement control.

In a specific implementation, the above-mentioned implementation of providing the first moving control and the second moving control may be set according to an actual use situation or a control habit of a player, which is not limited in this embodiment of the present invention. Moreover, through the first mobile control and the second mobile control, 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 a game scene and participate in battle, and the like.

Therefore, the first control further comprises a first skill control corresponding to the first virtual character; when the first virtual character is controlled to execute the virtual action corresponding to the first control in response to the touch operation for the first control, the first virtual character may be controlled to release the first virtual skill corresponding to the first skill control in response to the touch operation for the first skill control.

Further, the second control also comprises a second skill control for controlling the second virtual character to release the second virtual skill; when a second control for a second virtual character is provided in the graphical user interface, the second skill control can be provided in the first skill control, and the second skill control is integrated with the first skill control, so that when the second virtual character is controlled to execute a virtual action corresponding to the second control, the first virtual character can be controlled to release the first virtual skill, and the second virtual character can be controlled to release the second virtual skill in response to a touch operation acting on the second skill control.

Furthermore, in addition to the manner of integrating the first skill control and the second skill control, the second skill control can be set within a preset range of the first skill control, so that a player can conveniently touch the second skill control, and the second virtual character is controlled to release the second virtual skill.

Therefore, the second control comprises a second skill control for controlling the second virtual character to release the second virtual skill; at this time, when a second control for a second virtual character is provided in the graphical user interface, the second skill control may be displayed within a preset range of the first skill control.

In practical use, the first movement control area provided for displaying the first movement control and the second movement control is generally disposed on the left side of the graphical user interface, and the first skill control and the second skill control are generally disposed on the right side of the graphical user interface, so as to facilitate operations of a player.

Further, considering that a game scene presented by a graphical user interface is generally wide, therefore, in order to facilitate a player to control a virtual character taken over, generally, when the virtual character taken over is controlled to move, the control is performed based on a position relationship of a mobile control, specifically, when the second mobile control is displayed in the first mobile control area, a binding relationship between the mobile control and the virtual character may be established, and a relative position relationship between the corresponding virtual character is reflected by the position 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 position relationship between the first virtual character and the second virtual character in the current game scene may be obtained; determining the relative position relation of the first rocker operation area and the second movement control in the first movement control area based on the position relation; and then displaying a second movement control in the first movement control area according to the relative position relation.

For example, assuming that the second virtual character is in front of the first virtual character before the first player takes over the second virtual character of the second player, at this time, when the second movement control is displayed in the first movement control area, the second movement control may also be displayed in front of the first movement control (the first joystick operation area), and the distance between the first movement control and the second movement control may be determined according to a preset scale and the distance between the current first virtual character and the second virtual character in the game map.

Further, considering that the range of the virtual scene related to the game map is wide, when determining the relative position relationship between the first rocker operation area and the second movement control in the first movement control area, it may be determined 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, determining the relative position relationship of the first rocker operating area and the second movement control in the first movement control area directly according to the position relationship of the first virtual character and the second virtual character in the current game scene, if the distance is larger than the preset distance, the second virtual character taken over can be controlled to be close to the first virtual character firstly, and when the distance is not greater than the preset distance, determining the relative position relationship between the first rocker operation area and the second movement control in the first movement control area based on the current position relationship. Therefore, when the relative position relation between the first rocker operation area and the second mobile control in the first mobile control area is determined, the distance between the first virtual character and the second virtual character in the game scene can be obtained firstly; when the distance is greater than the preset distance, generating a moving path of a second virtual character according to the game scene; and controlling the second virtual character to naturally move to a 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 smaller than or equal to a preset distance, and determining the relative position relation of the first rocker operating area and the second moving control in the first moving control area based on the position relation in the preset distance.

Specifically, when the movement path of the second virtual character is generated, the movement path needs to be generated by selecting a passable road in consideration of virtual obstacles included in the current game map, for example, obstacles that cannot be crossed, lakes, rivers, and the like, so that the game setting is more reasonable, and the game interest of the player is further improved.

In addition, after the first movement control is displayed in the first movement control area, in order to facilitate distinguishing from the second movement control, the first movement control may be marked with different identifiers, for example, the first movement control is distinguished in different colors, or a name of a first virtual character is displayed on an icon of the first movement control, or icons in different shapes are displayed, which may be specifically set according to an actual use situation, and this is not limited in the embodiment of the present invention.

Further, the display formats of the first skill control and the second skill control can be set to different styles, so that the first skill control and the second skill control can be displayed in a distinguishing manner, and the player can distinguish and control the skill controls conveniently.

In addition, considering that the skills of the virtual character are usually multiple, the number of the first skill control and the second skill control is usually multiple, so as to control the virtual character to release more skills through multiple skill controls or combinations of the skill controls, therefore, when the first skill control and the second skill control are provided, at least one first skill control corresponding to the first virtual character and at least one second skill control corresponding to the second virtual character can be displayed according to a preset display format, wherein the display format of the at least one first skill control is different from that of the at least one second skill control.

For example, the first skill control and the second skill control may be displayed in different colors, or the first skill control and the second skill control may be displayed in different shapes, or the first skill control and the second skill control may be displayed in icons with different sizes, and the specific display format may be set according to an actual use situation, which is not limited in this embodiment of the present invention.

Further, the at least one first skill control and the at least one second skill control each comprise a primary skill control and at least one secondary skill control associated with the primary skill control; for example, for a first virtual character, the skill controls of the first virtual character may include a main skill control and a plurality of secondary skill controls, and for a second virtual character, one main skill control and a plurality of secondary skill controls may be configured correspondingly, and the number of the secondary skill controls may be determined according to the attribute of the first virtual character, and meanwhile, in order to distinguish the skill controls of the first virtual character and the second virtual character, the main skill control and the plurality of secondary skill controls of the first virtual character may be displayed in the same format, and the main skill control and the plurality of secondary skill controls of the second virtual character may be displayed in a format different from that of the first virtual character.

In addition, for the above embodiment including at least one secondary skill control, the method provided in the embodiment of the present invention further includes: responding to the merging touch operation acting on the main skill control, and merging and displaying the main skill control and at least one secondary skill control associated with the main skill control; and responding to the expansion touch operation acting on the main skill control during the merged display, and performing distributed expansion display on 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 means of an operation mode of long-pressing the main skill control, dragging the at least one secondary skill control associated with the main skill control onto the main skill control to merge into one control, and likewise, by long-pressing the merged main skill control, performing distributed expansion display on the at least one secondary skill control associated with the main skill control, and the like may also be adopted.

Therefore, based on the provided second movement control and second skill control corresponding to the second virtual character, after the first player takes over the second virtual character of the second player, the first virtual character may be controlled to execute the virtual action corresponding to the first control, and at the same time, take over control of the second virtual character may be realized through the second movement control and the second skill control included in the second control.

For ease of understanding, fig. 2 shows a control diagram of a virtual character, wherein fig. 2 illustrates an example in which a first player controls a first virtual character and a second virtual character, and specifically, as shown in fig. 2, includes the first virtual character, the second virtual character, and a first movement control and a second movement control arranged in a first movement control area, wherein the first movement control area is arranged on the left side of the graphical user interface, and the skill controls of the first virtual character and the second virtual character are arranged on the right side of the graphical user interface. The circular area in fig. 2 is the first movement control area, and the right side is the area where each skill control is located, which may also be referred to as a second movement control area.

In the actual game process, the first mobile control area may be displayed in a semi-transparent manner, or only displays an outline to be viewed by a planar player, and meanwhile, a game scene is not blocked.

Further, in order to facilitate distinguishing the skill controls of the first virtual character and the second virtual character, in fig. 2, the first virtual character is taken as a primary hero, the second virtual character is taken as a character taken over by the player, the taken over second virtual character is also referred to as a secondary hero, the skill control of the primary hero in the corresponding skill controls is the first skill control, and the skill control corresponding to the secondary hero is the second skill control, specifically, the first skill control includes a primary hero general supply control and at least one primary hero skill control associated therewith, the second skill control taken over by the second virtual character of the player includes a secondary hero general supply control, and at least one secondary hero skill control associated with the secondary hero general supply control. As shown in fig. 2, the right side of the graphical user interface is an area for displaying skill controls, where the skill control corresponding to the solid line is a first skill control of a primary hero, where the control with a larger display area is a primary hero general supply control, the rest are at least one primary hero skill control associated with the primary hero general supply control, and the skill control corresponding to the dotted line is a second skill control of a secondary hero, where the control with a larger display area is a secondary hero general supply control, and the rest are at least one secondary hero skill control associated with the secondary hero general supply control. In a specific implementation, the number of at least one primary hero skill control and at least one secondary hero skill control included in the first skill control and the second skill control may be set according to an actual use situation, which is not limited in this embodiment of the present invention.

Furthermore, the displayed colors of the skill controls of the different virtual characters are different, that is, the colors of the skill controls corresponding to the main hero are different from the colors of the skill controls corresponding to the secondary hero, so that the players can distinguish the skill controls conveniently.

Specifically, based on the control diagram shown in fig. 2, when the first player takes over control of the second virtual character, the following process may be included:

responding to the dragging operation acted on the first rocker control area and/or the second movable control, and changing the relative position relation of the first rocker control area and the second movable control in the wheel disc control area according to the dragging operation; so as to control the position relation of the first virtual character and the second virtual character in the game scene based on the relative position relation. Specifically, the position relationship of the first virtual character and the second virtual character in the game scene may be changed according to the relative position relationship, so that the first virtual character and the second virtual character are located at the distance and the direction corresponding to the first rocker control area and the second movement control in the game map corresponding to the game scene.

The dragging operation acting on the first rocker control area and/or the second moving control may be a dragging operation acting on the first rocker control area of the first moving control or the second moving control separately, or may be a dragging operation acting on the first rocker control area of the first moving control and the second moving control simultaneously. Taking the dragging operation acting on the first rocker control area or the second moving control alone as an example, the player can drag the first rocker control area or the second moving control alone to change the relative position relationship of the first rocker control area and the second moving control in the first moving control area, for example, drag the first rocker control area to be away from the second moving control in a certain direction, and at this time, the first virtual character is also away from the second virtual character according to the dragging direction of the first rocker control area. Similarly, a single drag of the second movement control by the player may achieve the same effect. Further, when the player drags the first rocker control area and the second movement control at the same time, the corresponding first virtual character and the second virtual character also move at the same time, so that the distance and the direction corresponding to the first rocker control area and the second movement control are positioned in the game map corresponding to the game scene. Fig. 2 shows an embodiment in which a player acts on the first joystick control region and the second movement control at the same time, and fig. 2 shows an embodiment in which the first joystick control region and the second movement control are dragged away at the same time, at which time the first virtual character and the second virtual character also move away correspondingly.

Further, on the basis of fig. 2, fig. 3 shows a control schematic diagram of another virtual character, and with respect to fig. 2, fig. 3 shows an implementation of simultaneously dragging the first rocker control area and the second movement control close.

Through the embodiments shown in fig. 2 and fig. 3, the relative positions of the first virtual character and the second virtual character may be set, and taking the example of simultaneously controlling two virtual characters, the first movement control area has two movement controls, that is, the first movement control (the first rocker control area) and the second movement control, and the player may set the positions of the two movement controls through a double-finger simultaneous dragging operation, so that the two virtual characters are located at the distance and in the direction corresponding to the movement controls in the game map. In addition, the player can drag one of the mobile controls to any position of the roulette wheel control area through a single finger, and can control the corresponding virtual characters to move simultaneously according to the set relative position. Wherein, fig. 4 and 5 respectively show an embodiment that the player drags the second movement control and the first movement control separately, as shown in fig. 4 and 5, the position relationship of the first virtual character and the second virtual character in the game scene can also be changed by the way of dragging separately, and the first virtual character and the second virtual character are located at the distance and direction corresponding to the first movement control and the second movement control in the game map.

Further, the process of the first player taking over control of the second virtual character further includes:

responding to a set 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 rocker control area and a second mobile control in the first mobile control area; controlling other first rocker control areas and 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; and changing the position relation of the first virtual character and the second virtual character in the game scene according to the relative position relation of the current first rocker control area and the second movement control in the first movement control area, so that the first virtual character and the second virtual character are gathered at the position corresponding to the target movement control in the game map corresponding to the game scene.

Specifically, the set touch operation may be set in advance by a player or a game developer, so that a shortcut of a plurality of virtual character sets may be implemented during a game. For example, a player may click on a motion control by one finger, and may move other motion controls to the position of the motion control quickly, while the controlled virtual character "gathers" and one point on the game map, facilitating the player's control during escape or the like.

Further, the process of the first player taking over control of the second virtual character further includes: responding to the visual field switching operation of a target mobile control in the first mobile control area, wherein the target mobile control is any one of a first rocker control area and the second mobile control in the first mobile control area; and switching the visual field presented by the graphic user interface to the visual field of the virtual character corresponding to the target mobile control.

In a specific implementation, the view of the player is usually set as the view of the main hero character by default, that is, the view of the first virtual character in the embodiment of the present invention, and the player can manually switch to the view of the virtual character corresponding to a certain mobile control by double-clicking the mobile control with a single finger, so as to implement switching of the views. When the first rocker control area and/or the second mobile control are dragged, a certain distance limiting condition can be preset, for example, a preset minimum view of the virtual characters is taken as an upper limit, so that all the virtual characters are in a view range when the view is switched among the virtual characters.

In addition, considering that there are many obstacles in the game map, when the player controls a plurality of virtual characters to move, when one of the virtual characters encounters an obstacle, the player may be prompted, for example, when one of the virtual characters encounters an obstacle and is blocked, the other virtual characters may move normally, and the blocked virtual character may be prompted by setting a certain animation effect to the corresponding movement control, for example, by flashing the movement control in red.

It should be understood that the embodiments of fig. 2 to 5 are described by taking two virtual characters as an example, that is, the first player takes over one virtual character, and in actual use, because there are many teammates of players, there are many virtual characters that need to be taken over, and therefore, the player can take over two or more virtual characters. In consideration of the difficulty of operation, the player can control at most 3 virtual characters, and the specific number can be set according to the actual use condition.

Further, by the method for controlling virtual characters in a game provided by the embodiment of the invention, a special fighting mode can be realized, for example, a one-to-many challenge mode or a double hero challenge mode is set before the game is opened, so that two or more controllable virtual characters are configured for a player after the game is opened, and the interest of the game is increased.

Further, on the basis of the foregoing embodiment, an embodiment of the present invention further provides a device for controlling a virtual character in a game, where a game scene is displayed through a graphical user interface, the game scene includes at least one virtual character, and as shown in fig. 6, the device includes:

the first control module 60 is configured to respond to a touch operation for a first control in the graphical user interface, and control a first virtual character to execute a virtual action corresponding to the first control;

a takeover module 62, configured to provide, in the graphical user interface, a second control for a second virtual character when the second virtual character meets a takeover condition, where the second virtual character has a preset relationship with the first virtual character;

and a second control module 64, configured to respond to a touch operation applied to the second control, and control the second virtual character to execute a virtual action corresponding to the second control.

Further, on the basis of fig. 6, fig. 7 is a schematic structural diagram of another control apparatus for a virtual character in a game, and in addition to the structure shown in fig. 6, the apparatus further includes:

a determining module 66 configured to determine that the second avatar satisfies the takeover condition if at least one of the following behaviors is monitored: the terminal corresponding to the second virtual role sends an on-hook signal indication; the terminal corresponding to the second virtual role sends a takeover request instruction; the second virtual role satisfies a drop condition.

Specifically, the first control includes a first movement control, and the first control module 60 is configured to: and responding to the touch operation aiming at the first mobile control, and controlling the first virtual character to move in a game scene.

Further, the second control comprises a second movement control for controlling the second virtual character to move in the game scene;

the take-over module 62 is further configured to: providing a first movement control area at the graphical user interface, the first movement control being located within the first movement control area; displaying the second movement control in the first movement control area; wherein the second movement control and the first movement control are not coincident.

Further, the first motion control comprises a first rocker control region, and the takeover module 62 is further configured to: the second movement control and the first rocker control region are not coincident.

Further, the second control comprises a second movement control for controlling the second virtual character to move in the game scene; the take-over module 62 is further configured to: providing the second movement control within the first movement control.

Further, the first movement control includes a first movement control region and a first rocker operation region, and the takeover module 62 is further configured to: displaying the second movement control within the first movement control zone; wherein the second movement control and the first rocker operational zone are not coincident.

Further, the first movement control includes a first rocker operating region, and the takeover module 62 is further configured to: embedding the second mobile control in the first rocker operation area so that the first rocker operation area and the second mobile control are at least partially overlapped.

Further, the first control includes a first skill control corresponding to the first virtual character, and the first control module 60 is further configured to: and responding to the touch operation aiming at the first skill control, and controlling the first virtual character to release the first virtual skill corresponding to the first skill control.

Further, the second control includes a second skill control for controlling the second virtual character to release the second virtual skill, and the takeover module 62 is further configured to: providing the second skill control within the first skill control.

Further, the second control module 64 is further configured to: and responding to the touch operation acted 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.

Further, the second control includes a second skill control for controlling the second virtual character to release the second virtual skill, and the takeover module 62 is further configured to: and displaying the second skill control within a preset range of the first skill control.

Further, the takeover module 62 is further configured to: acquiring the position relation of the first virtual character and the second virtual character in the current game scene; determining a relative positional relationship of the first rocker operating region and the second movement control in the first movement control region based on the positional relationship; and displaying a second movement control in the first movement control area according to the relative position relation.

Wherein the step of determining the relative positional relationship of the first rocker operating region and the second movement control in the first movement control region based on the positional relationship comprises: acquiring the distance between the first virtual character and the second virtual character in the game scene; when the distance is larger than a preset distance, generating a moving path of the second virtual character according to the game scene; and controlling the second virtual character to automatically move to a 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 smaller than or equal to the preset distance, and determining the relative position relationship between the first rocker operation area and the second moving control in the first moving control area based on the position relationship in the preset distance.

Further, the above apparatus further comprises: a first operation module 68, configured to respond to a dragging operation applied to the first rocker operation area and/or the second mobile control, and change a relative position relationship between the first rocker operation area and the second mobile control in the first mobile control area according to the dragging operation; controlling a positional relationship of the first virtual character and the second virtual character in the game scene based on the relative positional relationship.

Wherein the step of controlling the positional relationship of the first virtual character and the second virtual character in the game scene based on the relative positional relationship includes: and changing the position relation of the first virtual character and the second virtual character in the game scene according to the relative position relation so as to enable the first virtual character and the second virtual character to be located at the distance and the direction corresponding to the first mobile control and the second mobile control in a game map corresponding to the game scene.

Further, the above apparatus further comprises: a second operation module 70, configured to respond to a set touch operation acting on a target mobile control in the first mobile control area, where the target mobile control is any one of a first rocker control area in the first mobile control area and the second mobile control; controlling the other first rocker control areas and the second movement control in the first movement control area except the target movement control to move to a preset range of the target movement control; and changing the position relationship of the first virtual character and the second virtual character in the game scene according to the relative position relationship between the current first rocker 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 integrated at the corresponding positions of the target mobile control in the game map corresponding to the game scene.

Further, the above apparatus further comprises: a third operation module 72, configured to respond to a view switching operation acting on a target mobile control in the first mobile control area, where the target mobile control is any one of a first rocker control area and the second mobile control in the first mobile control area; and switching the visual field presented by the graphical user interface to the visual field of the virtual character corresponding to the target mobile control.

The control device for the virtual character in the game provided by the embodiment of the invention has the same technical characteristics as the control method for the virtual character in the game provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.

Further, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory, where 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 shown in fig. 1.

Further, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the method shown in fig. 1.

Further, an embodiment of the present invention further provides a schematic structural diagram of an electronic device, as shown in fig. 8, which is the schematic structural diagram of the electronic device, where 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 method for controlling the virtual character in the game.

In the embodiment shown in fig. 8, the electronic device further comprises a bus 82 and a communication interface 83, wherein the processor 81, the communication interface 83 and the memory 80 are connected by the bus 82.

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 Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 83 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used. The bus 82 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus 82 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 8, but that does not indicate only one bus or one type of bus.

The processor 81 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 81. The Processor 81 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and the processor 81 reads information in the memory and completes the control method of the virtual character in the game of the foregoing embodiment in combination with hardware thereof.

The method and apparatus for controlling a virtual character in a game and the computer program product of an electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.

It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.

In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases for those skilled in the art.

The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.

In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.

Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that the following embodiments are merely illustrative of the present invention, and not restrictive, and the scope of the present invention is not limited thereto: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:非玩家角色NPC的控制方法、装置、设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类