Virtual character control method, device and electronic device

By responding to touch operations and performing virtual actions in the graphical user interface, and automatically following and picking props under takeover control instructions, the game experience problem caused by virtual characters is solved, and the stability of team collaboration and interaction is improved.

CN113694512BActive Publication Date: 2024-11-19NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110920136.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-11
Publication Date
2024-11-19
Estimated Expiration
2041-08-11

AI Technical Summary

Technical Problem

In team collaboration online games, virtual characters are disconnected or stuck, causing them to be unable to move normally or interact with teammates, affecting the game experience.

Method used

By responding to touch operations in the graphical user interface, the target virtual character executes the virtual actions corresponding to the functional control, and under the takeover control command, the first virtual character will automatically follow the target virtual character and pick up props to ensure that it is still in the event of disconnection. Be able to participate in game interaction.

Benefits of technology

Reduces the impact of virtual character disconnection on team collaboration, improves players' gaming experience, and avoids missed mission props and interaction barriers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113694512B_ABST
    Figure CN113694512B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device and electronic device for controlling a virtual character. The method comprises: responding to a touch operation on a function control in a graphical user interface, controlling a target virtual character in a game to perform a virtual action corresponding to the function control; responding to a takeover control instruction for a first virtual character in the game, controlling the first virtual character to automatically follow the target virtual character, and controlling the first virtual character to automatically pick up props. The present invention solves the technical problem in the related art that a virtual character in a game cannot act normally or interact with teammates after being disconnected, resulting in a poor gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device and electronic equipment for controlling a virtual character. Background Art

[0002] In the related art, different players in team collaboration online games can interact in the same game scene by operating their respective terminal devices. For example, in FPS (First person shooter) games, different players can form a team and perform game tasks together in the same game scene. However, team collaboration online games may have network failures or freezes in a certain terminal device, causing the corresponding virtual character to be disconnected or the game state to freeze. The virtual character that is disconnected or the game state is frozen appears to be motionless or slow and frozen in the game, unable to move normally or interact with teammates, affecting team collaboration and causing a bad game experience for players.

[0003] Currently, no effective solution has been proposed to the problem that virtual characters in games of the above-mentioned related technologies cannot act normally or interact with teammates after being disconnected, resulting in a poor gaming experience. Summary of the invention

[0004] The embodiments of the present invention provide a method, device and electronic device for controlling a virtual character, so as to at least solve the technical problem in the related art that the virtual character in the game cannot act normally or interact with teammates after being disconnected, resulting in a poor gaming experience.

[0005] According to one aspect of an embodiment of the present invention, a method for controlling a virtual character is provided, comprising: responding to a touch operation on a function control in a graphical user interface, controlling a target virtual character in a game to perform a virtual action corresponding to the function control; responding to a takeover control instruction for a first virtual character in the game, controlling the first virtual character to automatically follow the target virtual character, and controlling the first virtual character to automatically pick up props.

[0006] Further, controlling the first virtual character to automatically follow the target virtual character includes: controlling the first virtual character to follow the target virtual character to automatically perform at least part of the virtual action.

[0007] Further, controlling the first virtual character to follow the target virtual character to automatically perform at least part of the virtual action includes: responding to a target touch operation in the touch operation, controlling the target virtual character in the game to perform the target virtual action corresponding to the function control, and controlling the first virtual character to follow the target virtual character to automatically perform the target virtual action.

[0008] Further, in response to a target touch operation in the touch operation, the target virtual character in the game is controlled to execute the target virtual action corresponding to the function control while the first virtual character is controlled to follow the target virtual character to automatically execute the target virtual action, including any one of the following: the function control is a moving control, in response to the touch operation applied to the moving control, the target virtual character is controlled to move along the moving direction indicated by the target touch operation while the first virtual character is controlled to follow the target virtual character to move along the moving direction; and the function control is a posture control, in response to the touch operation applied to the posture control, the target virtual character is controlled to switch to the target posture indicated by the posture control while the first virtual character is controlled to switch to the target posture; and the function control is an aiming control, in response to the touch operation applied to the aiming control, the target virtual character is controlled to adjust the aiming direction while the first virtual character is controlled to adjust the aiming direction according to the same adjustment strategy; and the function control is a shooting control, in response to the touch operation applied to the shooting control, the target virtual character is controlled to execute the shooting action while the first virtual character is controlled to execute the shooting action.

[0009] Furthermore, before controlling the first virtual character to automatically pick up props, the above method also includes: responding to a touch operation on an aiming control, controlling the target virtual character to adjust the aiming direction; when the aiming direction is toward the first virtual character, displaying a first prop interface, the first prop interface is used to display the props picked up by the first virtual character; responding to a selection operation on an automatic picking control in the first prop interface, triggering the first virtual character's automatic prop picking function.

[0010] Furthermore, after displaying the first prop interface, the method further includes: responding to a touch operation on a first target prop in the first prop interface, changing the picking priority of the first target prop.

[0011] Furthermore, in response to the use operation of the second target prop in the first prop interface, the first virtual character or the target virtual character is controlled to use the second target prop.

[0012] Furthermore, before controlling the first virtual character or the target virtual character to use the second target prop, the method further includes: determining a user of the second target prop according to the type of the second target prop.

[0013] Furthermore, according to the type of the second target prop, the user of the second target prop is determined, including: when the type of the second target prop is a recovery prop, the user of the recovery prop is determined according to the life status of a virtual character belonging to the same camp as the first virtual character; when the type of the second target prop is a bullet prop, the user of the bullet prop is determined according to the number of bullet props in the backpacks of the first virtual character and the target virtual character.

[0014] Further, in response to a touch operation on the third target prop and the prop discard control in the first prop interface, the first virtual character is controlled to discard the third target prop.

[0015] Furthermore, controlling the first virtual character to automatically pick up props includes: obtaining a backpack usage rate of the target virtual character, the backpack usage rate being used to indicate the proportion of props occupied in the total capacity of the backpack; and determining that the backpack usage rate is greater than a preset value, controlling the first virtual character to automatically pick up props.

[0016] Furthermore, in response to a touch operation on a backpack control in a graphical user interface, a second prop interface is displayed, the second prop interface being used to display the props of the target virtual character; in response to an operation of using a fourth target prop in the second prop interface, the target virtual character is controlled to use the fourth target prop.

[0017] Furthermore, before responding to a takeover control instruction for the first virtual character in the game, the method includes: generating a takeover control instruction in response to a touch operation on a designated control; or receiving a takeover control instruction, wherein the takeover control instruction is generated by a server according to preset rules.

[0018] Furthermore, the designated control is an automatic following control, and a takeover control instruction is generated in response to a touch operation on the designated control, including: controlling the target virtual character to adjust the aiming direction in response to a touch operation on the aiming control; displaying the automatic following control when the aiming direction is toward the first virtual character; and triggering the generation of a takeover control instruction in response to a confirmation operation on the automatic following control.

[0019] Furthermore, the takeover control instruction is generated by the server according to the distance between the plurality of second virtual characters and the first virtual character, and the second virtual characters and the first virtual character belong to the same camp.

[0020] Furthermore, the first virtual character and the target virtual character have a preset relationship.

[0021] According to another aspect of an embodiment of the present invention, a control device for a virtual character is also provided, including: an execution module, used to respond to touch operations on function controls in a graphical user interface, and control a target virtual character in the game to perform virtual operation actions corresponding to the function controls; a following module, used to respond to a takeover control instruction for a first virtual character in the game, control the first virtual character to automatically follow the target virtual character, and control the first virtual character to automatically pick up a target prop.

[0022] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute any of the above-mentioned methods for controlling a virtual character when running.

[0023] According to another aspect of an embodiment of the present invention, a processor is provided, and the processor is used to run a program, wherein the program is configured to execute any of the above-mentioned methods for controlling a virtual character when running.

[0024] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any of the above methods for controlling a virtual character.

[0025] In an embodiment of the present invention, by responding to touch operations on function controls in a graphical user interface, a target virtual character in the game is controlled to execute a virtual action corresponding to the function control, and in response to a takeover control instruction for a first virtual character in the game, the first virtual character is controlled to automatically follow the target virtual character, and the first virtual character is controlled to automatically pick up props. This ensures that when the first virtual character is offline, the first virtual character can follow its teammates and automatically pick up props, thereby preventing the first virtual character from being unable to interact with teammates and missing out on mission props due to offline or lag, reducing the impact of the first virtual character's offline disconnection on teamwork, and improving the player's gaming experience. This further solves the technical problem in the related art that virtual characters in games are unable to act normally or interact with teammates after being offline, resulting in a poor gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0027] Figure 1 is a flow chart of a method for controlling a virtual character according to an embodiment of the present invention;

[0028] Figure 2 is a schematic diagram of an optional method for controlling a virtual character according to an embodiment of the present invention;

[0029] Figure 3 is a schematic diagram of an optional method for controlling a virtual character according to an embodiment of the present invention;

[0030] Figure 4 is a schematic diagram of a control device for a virtual character according to an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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 ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0033] Example 1

[0034] According to an embodiment of the present invention, an embodiment of a method for controlling a virtual character is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0035] In one embodiment of the present application, a method for controlling a virtual character can be run on a terminal device or a server. The terminal device can be a local terminal device. When the method for controlling a virtual character is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0036] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the control method of the virtual character are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the terminal device for information processing is the cloud game server in the cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0037] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.

[0038] In an optional implementation, an embodiment of the present invention provides a method for controlling a virtual character, providing a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or can be a client device in the cloud interaction system mentioned above.

[0039] Figure 1 is a flow chart of a method for controlling a virtual character according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0040] Step S102, in response to the touch operation on the function control in the graphical user interface, the target virtual character in the game is controlled to execute the virtual action corresponding to the function control.

[0041] The above-mentioned graphical user interface can be a graphical user interface on a terminal device for controlling the target virtual character, and the function control can be any control of the graphical user interface used to control the target virtual character. For example, the function control can be any one of a movement control, a posture control, an aiming control, and an aiming control. When the player performs a touch operation on the function control in the graphical user interface, the target virtual character performs a corresponding virtual action to achieve a corresponding game effect.

[0042] For example, Figure 2 is a schematic diagram of an optional method for controlling a virtual character according to an embodiment of the present invention, such as Figure 2 As shown, in the graphical user interface 200 of the terminal device for controlling the target virtual character, the function controls at least include a posture control 22, a movement control 23 and an aiming control 24. By clicking the posture control 22, the player can make the target virtual character present a posture consistent with the posture control 22, such as Figure 2 As shown, the posture control 22 is a control for a half-kneeling posture. By clicking the posture control 22, the target virtual character 31 presents a half-kneeling virtual action. The movement control 23 can be a moving joystick. By sliding the moving joystick in different directions, the target virtual character 31 can be controlled to move in the corresponding direction. By clicking the aiming control 24, the target virtual character 31 can perform a virtual action of opening the zoom lens. By sliding the aiming control 24, the target virtual character 31 can adjust the aiming direction according to the direction indicated by the sliding operation.

[0043] Step S104, in response to the takeover control instruction for the first virtual character in the game, controlling the first virtual character to automatically follow the target virtual character, and controlling the first virtual character to automatically pick up props.

[0044] The first virtual character is a virtual character that is offline or has a network lag in the game scene. Based on the takeover control command, the first virtual character can automatically follow the target virtual character after being offline, and pick up props in the game scene. After the first virtual character is disconnected and reconnected to re-enter the game, the automatically picked up props can be saved in the backpack, so as to prevent the offline virtual character from missing the props dropped by the task due to the offline, thereby reducing the impact of the first virtual character's offline on the team's combat effectiveness and improving the player's gaming experience.

[0045] In an optional embodiment, the first virtual character and the target virtual character have a preset relationship. The preset relationship can be determined according to the type of the game. For example, the preset relationship can be a relationship of the same camp, that is, the target virtual character and the first virtual character are virtual characters of the same camp, such as teammates, members of the same game alliance, etc. The preset relationship can also be a relationship of game friends, game lovers, family numbers, etc.

[0046] In an optional embodiment, controlling the first virtual character to automatically follow the target virtual character includes: controlling the first virtual character to follow the target virtual character to automatically perform at least part of the virtual action.

[0047] After the first virtual character follows the target virtual character, it can perform the same virtual actions as the target virtual character. The type and number of virtual actions that can be automatically performed can be set according to the game type. Only some of the virtual actions of the target virtual character can be automatically performed, or all virtual actions can be automatically performed. For example, virtual actions can include actions such as moving, standing, running, squatting, etc. After the first virtual character follows the target virtual character, the target virtual character needs to perform actions such as jumping obstacles and crawling according to the environment and game tasks in the game scene. The first virtual character can perform the same actions as the target virtual character to complete the same game task. By setting the first virtual character to follow the target virtual character and automatically perform at least some of the virtual actions, the first virtual character is prevented from being in a stationary state when disconnected, and the first virtual character can still participate in the interaction in the game when disconnected or stuck, thereby improving the player's interactive experience.

[0048] The takeover control instruction may be generated by a touch operation of the player on the terminal device controlling the target virtual character, or may be generated by the server according to the game state of the first virtual character in the game scene or the network state of the terminal device controlling the first virtual character.

[0049] In the present embodiment, by responding to the touch operation on the function control in the graphical user interface, the target virtual character in the game is controlled to execute the virtual action corresponding to the function control, and in response to the takeover control instruction for the first virtual character in the game, the first virtual character is controlled to automatically follow the target virtual character, and the first virtual character is controlled to automatically pick up props. This ensures that when the first virtual character is offline, the first virtual character can follow its teammates and automatically pick up props, thereby preventing the first virtual character from being unable to interact with teammates and missing task props due to offline or lag, reducing the impact of the first virtual character's offline disconnection on team collaboration, and improving the player's gaming experience, thereby solving the technical problem in the related art that the virtual character in the game is unable to act normally or interact with teammates after being offline, resulting in a poor gaming experience.

[0050] As an optional embodiment, controlling the first virtual character to follow the target virtual character to automatically perform at least part of the virtual action includes: responding to a target touch operation in the touch operation, controlling the target virtual character in the game to perform the target virtual action corresponding to the function control, and controlling the first virtual character to follow the target virtual character to automatically perform the target virtual action.

[0051] The target touch operation is a touch operation performed by the player on the terminal device for controlling the target virtual character. After the first virtual character follows the target virtual character, the player controls the target virtual character based on the target touch operation, thereby achieving indirect control of the first virtual character so that the first virtual character performs the target virtual action.

[0052] For example, in response to a target touch operation in a touch operation, controlling the target virtual character in the game to perform a target virtual action corresponding to the function control, while controlling the first virtual character to follow the target virtual character to automatically perform the target virtual action, includes any of the following:

[0053] The functional control is a moving control, which responds to a touch operation on the moving control, controls the target virtual character to move along the moving direction indicated by the target touch operation, and controls the first virtual character to follow the target virtual character to move along the moving direction. Figure 2 As shown, when the functional control is a mobile control 23, the touch operation acting on the mobile control 23 can be a sliding operation, and the target touch operation can be a sliding operation acting on the mobile control 23 in any direction. For example, the target touch operation is a sliding operation in the right direction, and the target virtual character 31 is controlled to move to the right, and the first virtual character following the target virtual character 31 also moves to the right, so that the moving direction of the first virtual character is the same as the moving direction of the target virtual character.

[0054] The functional control is a posture control, which responds to the touch operation on the posture control, controls the target virtual character to switch to the target posture indicated by the posture control, and controls the first virtual character to switch to the target posture. The target posture is the posture displayed by the target virtual character in the game interface. For example, Figure 2 As shown, when the functional control is a posture control 22, the touch operation acting on the posture control can be a click operation. Based on the click operation on the posture control 22, the posture of the target virtual character 31 can be switched. The posture control 22 can display an icon consistent with the target posture of the target virtual character 31, for example, Figure 2 As shown, the icon displayed by the posture control 22 is a half-kneeling posture (ie, the target posture), and the target virtual character and the first virtual character are switched to the half-kneeling posture at the same time.

[0055] In an optional embodiment, the graphical user interface 200 may also include a plurality of posture controls corresponding to different postures, such as a standing posture, a crawling posture, etc. Based on a click operation on different posture controls, the target virtual character and the first virtual character are controlled to switch to corresponding postures.

[0056] The functional control is an aiming control, which responds to a touch operation on the aiming control, controls the target virtual character to adjust the aiming direction, and controls the first virtual character to adjust the aiming direction according to the same adjustment strategy. Figure 2 As shown, when the functional control is an aiming control 24, the touch operation acting on the aiming control may include a click operation and a slide operation. Based on the click operation acting on the aiming control 24, the target virtual character and the first virtual character may simultaneously perform a virtual action of opening the zoom. Based on the slide operation acting on the aiming control 24, the target virtual character and the first virtual character may simultaneously adjust the aiming direction according to the direction indicated by the slide operation so that the aiming directions of the target virtual character and the first virtual character point to the same target.

[0057] The functional control is a shooting control, and in response to a touch operation on the shooting control, the target virtual character is controlled to perform a shooting action while the first virtual character is controlled to perform a shooting action. When the functional control is a shooting control, the touch operation on the shooting control may be a click operation, and based on the click operation on the shooting control, the target virtual character and the first virtual character may perform a shooting action at the same time.

[0058] As an optional embodiment, before controlling the first virtual character to automatically pick up props, the above method also includes: responding to a touch operation on an aiming control, controlling the target virtual character to adjust the aiming direction; when the aiming direction is toward the first virtual character, displaying a first prop interface, the first prop interface is used to display the props picked up by the first virtual character; responding to a selection operation on an automatic picking control in the first prop interface, triggering the first virtual character's automatic prop picking function.

[0059] The first prop interface may display the props picked up by the first virtual character, and the touch operation on the aiming control may be a sliding operation, for example, Figure 3 is a schematic diagram of an optional method for controlling a virtual character according to an embodiment of the present invention, such as Figure 3 As shown, in FPS games, based on a sliding operation on an aiming control, the player can control the target virtual character to aim the gun at the first virtual character, triggering the display of a first prop interface 25 on the graphical user interface 200 for controlling the target virtual character. The first prop interface 25 can display the props automatically picked up by the first virtual character after following in the form of a backpack. An automatic pickup control 26 is provided on the first prop interface 25, and the player can trigger the automatic pickup function by selecting the automatic pickup control 26.

[0060] In an optional embodiment, after displaying the first prop interface, the method further includes: responding to a touch operation on a first target prop in the first prop interface, changing the picking priority of the first target prop.

[0061] The first target prop is a prop displayed in the first prop interface. Players can change the picking priority of the first target prop by performing touch operations on the first target prop. The picking priority of the first target prop indicates the order in which the first virtual character automatically picks up multiple props. By changing the picking priority of the first target prop, the first virtual character can be controlled to selectively automatically pick up props that are beneficial to teamwork, thereby improving the gaming experience of teamwork.

[0062] Change the pickup priority of the first target item, which may include prohibiting the item from being picked up, increasing the pickup priority, or decreasing the pickup priority. Figure 3 As shown, the first target prop can be any one of the props 1-5 in the first prop interface 25, and the touch operation performed on the first target prop can be a double-click operation. Based on the double-click operation on each of the props 1-5, the props that are prohibited from being picked up are determined. For example, based on the player's double-click operation on props 2 and 5, a cancel icon 27 is displayed in the upper right corner of props 2 and 5, indicating that the first virtual character is not allowed to automatically pick up props 2 and 5, and can only automatically pick up props 1, 3 and 4.

[0063] The touch operation performed on the first target item may also be a sliding operation, and priority sorting of the plurality of first target items is achieved based on the sliding operation on the first target item. Figure 3 As shown, the priority order of the props can be realized based on sliding up and down any one of the props 1-5. For example, the priority order of the first virtual character automatically picking up props is: prop 1> prop 2> prop 3> prop 4. Based on the downward sliding operation of prop 1, the picking priority of prop 1 is reduced. When prop 1 is placed between prop 2 and prop 3, the priority order of the first virtual character automatically picking up props is changed to: prop 2> prop 1> prop 3> prop 4; based on the upward sliding operation of prop 4, the picking priority of prop 4 can be increased.

[0064] In an optional embodiment, in response to a use operation on the second target prop in the first prop interface, the first virtual character or the target virtual character is controlled to use the second target prop.

[0065] The second target prop is the prop obtained by the first virtual character based on the automatic pickup function. The player who controls the target virtual character can use the prop automatically picked up by the first virtual character in the game by using the second target prop, so as to avoid the first virtual character being unable to participate in teamwork due to disconnection and reducing the team's combat effectiveness. It should be noted that the first prop interface is the prop interface picked up by the first virtual character. Based on the above-mentioned use operation, the second target prop can be used by the first virtual character or the target virtual character, and the priority of the second target prop user can be determined according to the preset game rules.

[0066] The use operation of the second target prop may be a click operation on the second target prop, for example, Figure 3 As shown, the first target prop can be any one of the props 1-5 in the first prop interface 25. Based on a click operation on any one of the props 1-5, the corresponding prop can be used.

[0067] In an optional embodiment, before controlling the first virtual character or the target virtual character to use the second target prop, the method further includes: determining a user of the second target prop according to the type of the second target prop.

[0068] The above-mentioned user objects may be virtual characters, non-player characters, etc. in the game, and the type of the second target props may be determined according to the purpose and effect function of the props. For example, the type of the second target props may be recovery props and weapon props, etc. Different prop types may have different user objects. For example, recovery props may be used to restore the life value, physical strength or magic value of the virtual character, etc., and may enhance the combat effectiveness of the virtual character. The user object of the recovery props may be a virtual character belonging to the same camp as the first virtual character; weapon props may be used to reduce the life value of the virtual character, etc., and the user object of the weapon props may be a virtual character belonging to a different camp from the first virtual character or a non-player character, etc.

[0069] In an optional embodiment, the user of the second target prop is determined according to the type of the second target prop, including: when the type of the second target prop is a recovery prop, the user of the recovery prop is determined according to the life status of a virtual character belonging to the same camp as the first virtual character; when the type of the second target prop is a bullet prop, the user of the bullet prop is determined according to the number of bullet props in the backpacks of the first virtual character and the target virtual character.

[0070] For example, in FPS games, recovery items may include medicine items, which can be used to replenish teammates' health. When there are multiple teammates in the game, the users of the medicine items can be determined based on their health status. For example, the teammate with the lowest health can be determined as the user of the medicine items. Based on the player's use of the medicine items in the first item interface, the health bar of the teammate who has lost the most blood can be replenished, thereby increasing the team's survival rate.

[0071] For another example, when the type of the second target prop is a bullet prop, the user of the bullet prop is a teammate who needs to replenish bullet resources. The one with fewer bullet props between the first virtual character and the target virtual character can be determined as the user, and the virtual character that lacks ammunition can be replenished by using the bullet prop.

[0072] Through the above steps, when the first virtual character is offline or stuck and cannot normally participate in the game interaction, based on the player's operation on the first prop interface, the first virtual character or the target virtual character can be controlled to use the props automatically picked up after the first virtual character goes offline, thereby avoiding the first virtual character being unable to participate in team cooperation after going offline and reducing the team's combat effectiveness and survival rate, thereby improving the player's gaming experience.

[0073] As an optional embodiment, in response to a touch operation on the third target prop and the prop discard control in the first prop interface, the first virtual character is controlled to discard the third target prop.

[0074] The third target prop may be a prop that needs to be discarded in the first prop interface, and the touch operation on the third target prop and the prop discard control may be an operation of dragging the third target prop to the prop discard control, for example, Figure 3 As shown, the first prop interface 25 includes a prop discard control 28, the third target prop can be any one of the props 1-5, the prop discard control 28 is set on one side of the props 1-5, and the prop discard control 28 can include a prompt message "can be dragged to this side to discard". When the player needs to discard a certain prop, the prop can be dragged to the prop discard control 28 to implement the discard operation of the prop.

[0075] As an optional embodiment, controlling the first virtual character to automatically pick up props includes: obtaining the backpack usage rate of the target virtual character, the backpack usage rate is used to represent the proportion of props occupied in the total capacity of the backpack; determining that the backpack usage rate is greater than a preset value, and controlling the first virtual character to automatically pick up props.

[0076] In order to avoid the problem of resource competition between the first virtual character and the target virtual character when the first virtual character automatically picks up the props, it can be determined whether to allow the first virtual character to automatically pick up the props according to the backpack usage rate of the target virtual character. The above preset value can be determined according to the preset game rules, such as the preset value can be any reasonable value. For example, the above preset value can be 95%, which means that the backpack space of the target virtual character is small and the first virtual character can automatically pick up the props.

[0077] In an optional embodiment, when the target virtual character's backpack usage rate is 100%, that is, the target virtual character's backpack is full and can no longer pick up props, the first virtual character can pick up props, thereby avoiding the first virtual character who is offline from competing with the target virtual character for props. On the other hand, when the target virtual character's backpack is full, the first virtual character can continue to pick up props, adding more prop resources to the team, improving the team's strength in the game, and thereby improving the player's gaming experience.

[0078] As an optional embodiment, in response to a touch operation on a backpack control in a graphical user interface, a second prop interface is displayed, the second prop interface being used to display the props of the target virtual character; in response to an operation to use a fourth target prop in the second prop interface, the target virtual character is controlled to use the fourth target prop.

[0079] The second prop interface displays the props picked up by the target virtual character, and the fourth target prop can be any prop in the second prop interface. The use operation of the fourth target prop in the second prop interface can be a click operation on the fourth target prop, and the type of the fourth target prop can be the same as the type of the second target prop, for example, the fourth target prop can be a recovery prop, a bullet prop, etc.

[0080] In an optional implementation, the first prop interface and the second prop interface can be displayed simultaneously in the graphical user interface of the target virtual character, so that when the first virtual character is offline, the player controlling the target virtual character can use any props in the first prop interface and the second prop interface, thereby preventing the first virtual character from being unable to participate in team collaboration after being offline, thereby reducing the team's combat effectiveness and survival rate, and improving the player's gaming experience.

[0081] As an optional embodiment, before responding to a takeover control instruction for the first virtual character in the game, the method includes: generating a takeover control instruction in response to a touch operation on a designated control; or receiving a takeover control instruction, wherein the takeover control instruction is generated by a server according to preset rules.

[0082] The above-mentioned designated control may be an automatic follow control, and based on the player's touch operation on the automatic follow control, a takeover control instruction is generated. The automatic follow control may be a request for whether to agree to follow is displayed on a graphical user interface, and the target virtual character is determined and a takeover control instruction is generated based on the player's consent operation. For example, Figure 2 As shown, when the first virtual character is offline, in the graphical user interface 200 of the teammate who controls the first virtual character, an automatic follow control 21 is displayed, and the automatic follow control 21 may display a prompt message "Teammate *** has left the game, do you want to follow automatically", and if the teammate agrees, the teammate is determined to be the target virtual character to be followed. The automatic follow control 21 may include a confirmation option 211 and a cancellation option 212, and the confirmation option 211 is displayed as a "√" icon. By selecting the "√" icon, the teammate is determined to be the target virtual character, and the generation of a takeover control instruction for agreeing that the first virtual character follows the target virtual character is triggered, and the first virtual character is controlled to follow the target virtual character and automatically pick up props. The cancellation option 212 is displayed as an "×" icon. By selecting the "×" icon, it is determined that the teammate refuses to follow the first virtual character, and the automatic follow control is displayed in the graphical user interface corresponding to other teammates to determine the target virtual character.

[0083] In an optional embodiment, the takeover control instruction is generated by the server according to a preset rule, and the preset rule can be determined according to the game state of the first virtual character in the game scene or the network state of the terminal device that controls the first virtual character.

[0084] For example, the preset rule may be the maximum time that the first virtual character remains motionless in the game scene. When the time that the first virtual character remains motionless in the game scene exceeds the set maximum time, the server determines that the first virtual character is offline and generates the takeover control instruction. The preset rule may also be the number of times or time that the first virtual character receives interactive information sent by teammates. For example, after the number of times teammates send interactive information to the first virtual character reaches a set number, the first virtual character does not send any feedback information, and it is determined that the first virtual character is offline, and the takeover control instruction is generated. The preset rule may also be the number of times or duration of repeating the same action state. For example, when the first virtual character repeats the action corresponding to the player's last operation for a preset number of times, it is determined that the first virtual character is in a network lag state, and the takeover control instruction is generated.

[0085] For another example, the above preset rule may be that the network status of the terminal controlling the first virtual character is in a faulty state. The server may determine whether the network is in a faulty state based on the data transmission speed or data size of the network, and then determine that the first virtual character is in an offline state. The above preset rule may be the maximum duration of the first virtual character being in an offline state. When the offline duration of the first virtual character exceeds the above maximum duration, the server generates a takeover control instruction.

[0086] In an optional embodiment, the designated control is an automatic following control, and a takeover control instruction is generated in response to a touch operation on the designated control, including: in response to a touch operation on the aiming control, controlling the target virtual character to adjust the aiming direction; when the aiming direction is toward the first virtual character, displaying the automatic following control; in response to a confirmation operation on the automatic following control, triggering the generation of a takeover control instruction.

[0087] The touch operation of the aiming control may be a sliding operation on the aiming control to control the target virtual character to adjust the aiming direction. For example, in an FPS game, when the first virtual character is offline, the player can control the aiming direction of the muzzle toward the first virtual character by sliding the aiming control. At this time, an automatic follow control may be displayed on the graphical user interface for controlling the target virtual character, and the confirmation operation on the automatic follow control may be a click operation on a confirmation option in the automatic follow control. Based on the click operation, a takeover control instruction is generated.

[0088] In another optional embodiment, after the first virtual character follows the target virtual character to participate in the game interaction, the automatic follow control can be hidden, and the player controlling the target virtual character can redisplay the automatic follow control in the graphical user interface through a touch operation on the aiming control, and cancel the first virtual character's continued following at any time based on the cancellation operation of the automatic follow control. Figure 2 As shown, the player can control the aiming direction of the gun muzzle toward the first virtual character by sliding the aiming control, and the automatic follow control 21 can be displayed on the graphical user interface of the target virtual character. The cancellation operation of the automatic follow control is to click the cancel option 212 (i.e., the "×" icon). When the player who controls the target virtual character does not want the first virtual character to continue to follow, the automatic following of the first virtual character can be canceled by clicking the cancel option 212.

[0089] In addition, the automatic follow control can be hidden after the first virtual character follows the target virtual character. When the player controlling the target virtual character needs to change the following state of the first virtual character, the automatic follow control can be re-displayed in the game interface based on the touch operation of the aiming control. For example, after canceling the first virtual character following the target virtual character, the player controlling the target virtual character can trigger the display of the automatic follow control in its graphical user interface again by touching the aiming control to restore the automatic following of the first virtual character.

[0090] In an optional embodiment, the takeover control instruction is generated by the server according to the distance between the plurality of second virtual characters and the first virtual character, and the second virtual characters and the first virtual character belong to the same camp.

[0091] When there are multiple second virtual characters in the game scene, the server needs to select one virtual character from the multiple second virtual characters as the target virtual character. Specifically, the server can obtain the distance between each second virtual character in the game scene and the offline first virtual character, and determine the target virtual character to send the takeover control instruction from the multiple second virtual characters according to the multiple distances.

[0092] In an optional embodiment, the server can determine that the second virtual character that is closest to the first virtual character is the target virtual character, and generate a takeover control instruction. The first virtual character can move the minimum distance to complete following the target virtual character. For example, the above-mentioned multiple second virtual characters are all teammates of the first virtual character. When the first virtual character is offline, the server obtains the distance between multiple teammates and the first virtual character in the game scene, determines the teammate closest to the first virtual character as the target virtual character, and generates a takeover control instruction to control the first virtual character to automatically follow the target virtual character, and control the first virtual character to automatically pick up props.

[0093] In another optional implementation, after determining the second virtual character closest to the first virtual character, an automatic follow control can be displayed on the graphical user interface of the second virtual character closest to the first virtual character, and the player controlling the second virtual character can feedback whether to accept the follow by performing a confirmation option on the automatic follow control or a touch operation on the confirmation option. When the player performs a touch operation on the confirmation option, it is determined that the second virtual character closest to the first virtual character receives the follow request, and the second virtual character closest to the first virtual character is used as the target virtual character and a takeover control instruction is generated. When the player controlling the second virtual character closest to the first virtual character performs a touch operation on the cancel option, it is determined that the follow request is rejected. At this time, the server can sort the distances between the multiple second virtual characters and the first virtual character in the game scene, and display the automatic follow control on the graphical user interface of the second virtual character whose distance is second (i.e., only farther than the virtual character closest to the first virtual character) in order from small to large, asking whether to agree to the first virtual character to follow. If the second virtual character agrees to follow at this time, the second virtual character is determined to be the target virtual character and a takeover control instruction is generated. If the second virtual character ranked second in distance still refuses to follow, then the automatic follow control is displayed in the graphical user interfaces of other second virtual characters in order of the distance from small to large, asking whether they agree to the first virtual character to follow, so as to determine the target virtual character from multiple second virtual characters.

[0094] In another optional embodiment, the method for generating a takeover control instruction by a server based on the distance between multiple second virtual characters and a first virtual character may also include: the server obtains the distance between multiple second virtual characters and the first virtual character in the game scene, and obtains additional conditions such as the terrain of the game scene where the second virtual characters and the first virtual character are located, the game task being executed, etc., and combines the above distances and additional conditions to determine the target virtual character from the multiple second virtual characters and generate a takeover control instruction. For example, the second virtual character is a teammate of the first virtual character. After obtaining the distance between each teammate and the first virtual character, it is also necessary to determine the terrain conditions between each teammate and the first virtual character. If there are rivers, mountains, city walls, etc. between the nearest teammate and the first virtual character that cannot be directly crossed, resulting in the first virtual character having to take a long detour to follow the nearest teammate, then other teammates who are in the same terrain conditions as the first virtual character but are slightly farther away are reselected as the target virtual character. For another example, the teammate closest to the first virtual character may be performing a different subtask from the first virtual character, and it is not conducive for the first virtual character to follow the closest teammate, so the teammate closest to the first virtual character is selected as the target virtual character from the teammates performing the same subtask as the first virtual character.

[0095] Example 2

[0096] According to an embodiment of the present invention, an embodiment of a control device for a virtual character is provided. Figure 4 is a schematic diagram of a control device for a virtual character according to an embodiment of the present invention. Figure 4 As shown, the device comprises:

[0097] The execution module 41 is used to respond to the touch operation on the function control in the graphical user interface, and control the target virtual character in the game to execute the virtual operation action corresponding to the function control; the following module 42 is used to respond to the takeover control instruction for the first virtual character in the game, control the first virtual character to automatically follow the target virtual character, and control the first virtual character to automatically pick up the target props.

[0098] As an optional embodiment, the following module is further used to control the first virtual character to follow the target virtual character to automatically perform at least part of the virtual action.

[0099] As an optional embodiment, the following module is also used to: respond to a target touch operation in a touch operation, control the target virtual character in the game to execute a target virtual action corresponding to the function control, and control the first virtual character to follow the target virtual character and automatically execute the target virtual action.

[0100] As an optional embodiment, the following module is also used for any one of the following: the function control is a moving control, which responds to a touch operation on the moving control, controls the target virtual character to move along the moving direction indicated by the target touch operation, and controls the first virtual character to follow the target virtual character to move along the moving direction; and the function control is a posture control, which responds to a touch operation on the posture control, controls the target virtual character to switch to the target posture indicated by the posture control, and controls the first virtual character to switch to the target posture; and the function control is an aiming control, which responds to a touch operation on the aiming control, controls the target virtual character to adjust the aiming direction, and controls the first virtual character to adjust the aiming direction according to the same adjustment strategy; and the function control is a shooting control, which responds to a touch operation on the shooting control, controls the target virtual character to perform a shooting action, and controls the first virtual character to perform a shooting action.

[0101] As an optional embodiment, the above-mentioned device also includes: a trigger module, which is used to control the target virtual character to adjust the aiming direction in response to a touch operation on the aiming control before controlling the first virtual character to automatically pick up the props; when the aiming direction is toward the first virtual character, a first prop interface is displayed, and the first prop interface is used to display the props picked up by the first virtual character; in response to a selection operation on the automatic picking control in the first prop interface, the automatic prop picking function of the first virtual character is triggered.

[0102] As an optional embodiment, the above-mentioned device also includes: a changing module, which is used to change the picking priority of the first target prop in response to the touch operation on the first target prop in the first prop interface after displaying the first prop interface.

[0103] As an optional embodiment, the above-mentioned device also includes: a prop using module, which is used to respond to the use operation of the second target prop in the first prop interface and control the first virtual character or the target virtual character to use the second target prop.

[0104] As an optional embodiment, the apparatus further includes: an object determination module, which is used to determine a use object of the second target prop according to the type of the second target prop before controlling the first virtual character or the target virtual character to use the second target prop.

[0105] As an optional embodiment, the object determination module is also used to: when the type of the second target prop is a recovery prop, determine the use object of the recovery prop according to the life status of the virtual character belonging to the same camp as the first virtual character; when the type of the second target prop is a bullet prop, determine the use object of the bullet prop according to the number of bullet props in the backpacks of the first virtual character and the target virtual character.

[0106] As an optional embodiment, the above-mentioned device also includes: a discarding module, which is used to respond to the touch operation on the third target prop and the prop discarding control in the first prop interface, and control the first virtual character to discard the third target prop.

[0107] As an optional embodiment, the following module is also used to: obtain the backpack usage rate of the target virtual character, the backpack usage rate is used to indicate the proportion of props in the total capacity of the backpack; and when it is determined that the backpack usage rate is greater than a preset value, control the first virtual character to automatically pick up the props.

[0108] As an optional embodiment, the above-mentioned device also includes: a usage module, which is used to respond to the touch operation acting on the backpack control in the graphical user interface, display a second prop interface, and the second prop interface is used to display the props of the target virtual character; respond to the use operation of the fourth target prop in the second prop interface, and control the target virtual character to use the fourth target prop.

[0109] As an optional embodiment, the above-mentioned device also includes: an instruction generation module, which is used to generate a takeover control instruction in response to a touch operation on a designated control before responding to a takeover control instruction for the first virtual character in the game; or to receive a takeover control instruction, wherein the takeover control instruction is generated by a server according to preset rules.

[0110] As an optional embodiment, the designated control is an automatic following control, and the instruction generation module is also used to: respond to a touch operation on the aiming control, control the target virtual character to adjust the aiming direction; when the aiming direction is toward the first virtual character, display the automatic following control; respond to a confirmation operation on the automatic following control, trigger the generation of a takeover control instruction.

[0111] As an optional embodiment, the takeover control instruction is generated by the server according to the distance between the plurality of second virtual characters and the first virtual character, and the second virtual characters and the first virtual character belong to the same camp.

[0112] As an optional embodiment, the first virtual character and the target virtual character have a preset relationship.

[0113] It should be noted that the optional or preferred implementation of this embodiment can refer to the relevant description in Example 1, which will not be repeated here.

[0114] Example 3

[0115] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute any of the above-mentioned methods for controlling a virtual character when running.

[0116] The computer-readable storage medium is configured to store program codes for executing the following steps: in response to a touch operation on a function control in a graphical user interface, controlling a target virtual character in the game to execute a virtual action corresponding to the function control; in response to a takeover control instruction for a first virtual character in the game, controlling the first virtual character to automatically follow the target virtual character, and controlling the first virtual character to automatically pick up props.

[0117] According to another aspect of an embodiment of the present invention, a processor is provided, and the processor is used to run a program, wherein the program is configured to execute any of the above-mentioned methods for controlling a virtual character when running.

[0118] In this embodiment, the above-mentioned processor can be configured to perform the following steps through a computer program: responding to touch operations on function controls in a graphical user interface, controlling a target virtual character in the game to perform virtual actions corresponding to the function controls; responding to a takeover control instruction for a first virtual character in the game, controlling the first virtual character to automatically follow the target virtual character, and controlling the first virtual character to automatically pick up props.

[0119] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any of the above methods for controlling a virtual character.

[0120] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0121] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0122] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0124] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0125] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of 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 method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0126] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for controlling a virtual character, characterized in that: include: In response to a touch operation on a function control in a graphical user interface, a target virtual character in the game is controlled to perform a virtual action corresponding to the function control, wherein the function control includes an aiming control, and the virtual action corresponding to the function control includes adjusting an aiming direction; In response to a takeover control instruction for a first virtual character in the game, the first virtual character is controlled to automatically follow the target virtual character, and when the aiming direction is toward the first virtual character, the first virtual character is controlled to automatically pick up a prop.

2. The method according to claim 1, characterized in that The controlling the first virtual character to automatically follow the target virtual character comprises: The first virtual character is controlled to follow the target virtual character to automatically perform at least part of the virtual action.

3. The method according to claim 2, characterized in that The controlling the first virtual character to follow the target virtual character and automatically perform at least part of the virtual action includes: In response to a target touch operation in the touch operation, the target virtual character in the game is controlled to execute a target virtual action corresponding to the function control, and at the same time, the first virtual character is controlled to follow the target virtual character and automatically execute the target virtual action.

4. The method according to claim 3, characterized in that In response to the target touch operation in the touch operation, controlling the target virtual character in the game to perform the target virtual action corresponding to the function control, while controlling the first virtual character to follow the target virtual character to automatically perform the target virtual action, includes any one of the following: The function control includes a movement control, and in response to a touch operation on the movement control, controls the target virtual character to move along a movement direction indicated by the target touch operation, and controls the first virtual character to follow the target virtual character to move along the movement direction; and The function control includes a posture control, and in response to a touch operation on the posture control, the target virtual character is controlled to switch to a target posture indicated by the posture control, and the first virtual character is controlled to switch to the target posture; and The functional control includes an aiming control, and in response to a touch operation on the aiming control, controls the target virtual character to adjust an aiming direction, and controls the first virtual character to adjust an aiming direction according to the same adjustment strategy; and The functional control includes a shooting control, which controls the target virtual character to perform a shooting action while controlling the first virtual character to perform a shooting action in response to a touch operation on the shooting control.

5. The method according to claim 1, characterized in that When the aiming direction is toward the first virtual character, controlling the first virtual character to automatically pick up a prop includes: When the aiming direction is toward the first virtual character, a first prop interface is displayed, where the first prop interface is used to display the props picked up by the first virtual character; In response to a selection operation on an automatic pick-up control in the first prop interface, an automatic prop pick-up function of the first virtual character is triggered.

6. The method according to claim 5, characterized in that After displaying the first prop interface, the method further includes: In response to a touch operation on a first target item in the first item interface, a picking priority of the first target item is changed.

7. The method according to claim 5, characterized in that In response to a use operation of a second target prop in the first prop interface, the first virtual character or the target virtual character is controlled to use the second target prop.

8. The method according to claim 7, characterized in that Before controlling the first virtual character or the target virtual character to use the second target prop, the method further includes: According to the type of the second target item, a user of the second target item is determined.

9. The method according to claim 8, characterized in that Determining the user of the second target item according to the type of the second target item, including: when the type of the second target item is a recovery item, determining the user of the recovery item according to the life state of a virtual character belonging to the same camp as the first virtual character; When the type of the second target prop is a bullet prop, the user of the bullet prop is determined according to the quantity of the bullet props in the backpacks of the first virtual character and the target virtual character.

10. The method according to claim 5, characterized in that In response to a touch operation on a third target prop and a prop discard control in the first prop interface, the first virtual character is controlled to discard the third target prop.

11. The method according to claim 1, characterized in that: Controlling the first virtual character to automatically pick up the props includes: Obtaining a backpack usage rate of the target virtual character, where the backpack usage rate is used to indicate the proportion of props occupied in the total capacity of the backpack; It is determined that the backpack usage rate is greater than a preset value, and the first virtual character is controlled to automatically pick up props.

12. The method according to claim 1, characterized in that In response to a touch operation on a backpack control in the graphical user interface, a second prop interface is displayed, where the second prop interface is used to display the props of the target virtual character; In response to a use operation of a fourth target prop in the second prop interface, the target virtual character is controlled to use the fourth target prop.

13. The method according to claim 1, characterized in that Before responding to a takeover control instruction for a first virtual character in the game, the method includes: In response to a touch operation on a designated control, generating the takeover control instruction; or The takeover control instruction is received, wherein the takeover control instruction is generated by a server according to a preset rule.

14. The method according to claim 13, characterized in that The designated control is an automatic following control, and in response to a touch operation on the designated control, the takeover control instruction is generated, including: In response to a touch operation on an aiming control, controlling the target virtual character to adjust an aiming direction; When the aiming direction is toward the first virtual character, displaying the automatic following control; In response to the determination operation on the automatic following control, the generation of the takeover control instruction is triggered.

15. The method according to claim 13, characterized in that The takeover control instruction is generated by the server according to the distance between a plurality of second virtual characters and the first virtual character, and the second virtual characters and the first virtual character belong to the same camp.

16. The method according to claim 1, characterized in that The first virtual character and the target virtual character have a preset relationship.

17. A control device for a virtual character, characterized in that: include: An execution module, for responding to a touch operation on a function control in a graphical user interface, and controlling a target virtual character in the game to execute a virtual operation action corresponding to the function control, wherein the function control includes an aiming control, and the virtual action corresponding to the function control includes adjusting an aiming direction; The following module is used to control the first virtual character in the game to automatically follow the target virtual character in response to a takeover control instruction for the first virtual character, and to control the first virtual character to automatically pick up a target prop when the aiming direction is toward the first virtual character.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method for controlling a virtual character as claimed in any one of claims 1 to 16 when running.

19. A processor, characterized in that: The processor is used to run a program, wherein the program is configured to execute the method for controlling a virtual character as claimed in any one of claims 1 to 16 when running.

20. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method for controlling a virtual character as claimed in any one of claims 1 to 16.