Virtual object control method and apparatus, terminal, and storage medium

JP2026016588A5Pending Publication Date: 2026-03-31TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-10-27
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

Existing virtual object control systems in fighting games simulate stamina consumption using a single stamina value, leading to low realism and reduced sense of immersion.

Method used

Implement multiple stamina display assemblies to indicate stamina consumption status of different body parts, allowing actions to be controlled based on the remaining stamina of these parts, enhancing the realism of stamina consumption.

Benefits of technology

Improves the realism of stamina consumption by simulating the impact of stamina on various actions, thereby enhancing the overall realism of the fighting game experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A virtual object control method and apparatus, a terminal, and a storage medium are provided.SOLUTION: Displaying at least two physical fitness display assemblies corresponding to the virtual object, the physical fitness display assemblies displaying physical fitness consumption conditions of corresponding body parts, different physical fitness display assemblies corresponding to different body parts (301), determining, according to a target control operation on the virtual object, a target physical fitness display assembly corresponding to the target control operation, the body part corresponding to the target physical fitness display assembly being consistent with a body part corresponding to a target action indicated by the target control operation (302), and controlling the virtual object to perform the target action; The first remaining stamina value displayed by the target stamina display assembly is updated to a second remaining stamina value smaller than the first remaining stamina value (303). The method, apparatus, terminal, and storage medium can improve the realism of physical strength consumption of a virtual object and the sense of realism of a battle game.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] Embodiments of the present invention claim priority to a Chinese patent application filed on October 15, 2020, bearing application number 202011104397.0 and entitled "Virtual object control method, device, terminal and storage medium," the entire contents of which are incorporated herein by reference.

[0002] TECHNICAL FIELD Embodiments of the present invention relate to the technical field of virtual scenes, and in particular to a method, device, terminal and storage medium for controlling a virtual object. [Background technology]

[0003] A competitive game is a game in which multiple user accounts compete in the same scene. Players can manipulate virtual objects in the virtual environment to perform actions such as walking, running, climbing, and shooting. Multiple players can also team up online to complete specific tasks in the same virtual environment.

[0004] In the related art, when a virtual object runs in a virtual environment, it triggers the consumption of its stamina. When all of its stamina is consumed, the virtual object cannot continue running and must wait until its stamina is restored in order to continue running. In addition, to facilitate a player's reasonable control of the virtual object's stamina, the virtual object's remaining stamina is displayed in the form of a stamina bar.

[0005] However, in related technologies, the stamina consumption of an object in a real environment is simulated with a single stamina value, and the realism of controlling the virtual object to perform the corresponding action is low, which reduces the sense of realism of the fighting game. Summary of the Invention

[0006] The embodiments of the present invention provide a method, device, terminal, and storage medium for controlling a virtual object, which can improve the realism of the stamina consumption of a virtual object and enhance the sense of reality of a fighting game.

[0007] In one aspect, an embodiment of the present invention provides a method for controlling a virtual object, executed by a terminal, the method including: displaying at least two stamina display assemblies corresponding to a virtual object, the stamina display assemblies being used to display the stamina consumption status of corresponding body parts, different stamina display assemblies corresponding to different body parts; controlling the virtual object to perform a target action indicated by the target control operation in response to a target control operation on the virtual object, the body part corresponding to the target stamina display assemblies coinciding with the body part corresponding to the target action indicated by the target control operation; and updating a remaining stamina value displayed by the target stamina display assemblies.

[0008] In another aspect, an embodiment of the present invention provides a control device for a virtual object, the device including: an assembly display module that displays at least two stamina display assemblies corresponding to a virtual object, the stamina display assemblies are used to display the stamina consumption status of corresponding body parts, and different stamina display assemblies correspond to different body parts; an object control module that controls the virtual object to perform a target action indicated by a target control operation on the virtual object, in response to a target control operation on the virtual object, the body part corresponding to the target stamina display assemblies coincides with the body part corresponding to the target action indicated by the target control operation; and a stamina value update module that updates a remaining stamina value displayed by the target stamina display assemblies.

[0009] In another aspect, an embodiment of the present invention provides a terminal including a processor and a memory, wherein the memory stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, the at least one program, code set or instruction set is loaded and executed by the processor to implement the method for controlling a virtual object according to the above aspect.

[0010] In another aspect, an embodiment of the present invention provides a computer-readable storage medium having stored thereon at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, code set or instruction set being loaded and executed by a processor to implement the method for controlling a virtual object according to the above aspect.

[0011] In another aspect, an embodiment of the present invention provides a computer program product or a computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium, the computer instructions being read by a processor of a terminal from the computer-readable storage medium, and the processor executing the computer instructions to implement the method for controlling a virtual object according to the above aspect.

[0012] In an embodiment of the present invention, multiple stamina display assemblies are used to display the stamina consumption status when performing actions of different body parts of a virtual object, thereby improving the realism of stamina consumption when performing actions of a virtual object compared to the display format of a single stamina value and stamina consumption in related technologies.In addition, by controlling the execution of actions of the virtual object based on the remaining stamina of different body parts and simulating the impact of stamina consumption on the execution of various actions, the realism of the execution of actions of the virtual object can be improved, and the realism of the fighting game can be further improved. [Brief explanation of the drawings]

[0013] [Figure 1] 1 is a schematic diagram of a strength display assembly in a virtual environment interface in the related art; [Figure 2] 1 is a schematic diagram of an implementation environment according to one exemplary embodiment of the present invention; [Figure 3] 1 is a flowchart of a method for controlling a virtual object according to an exemplary embodiment of the present invention. [Figure 4] FIG. 1 is a schematic diagram of an interface of a fitness display assembly according to one exemplary embodiment of the present invention. [Figure 5] 10 is a flowchart of a method for controlling a virtual object according to another exemplary embodiment of the present invention. [Figure 6] 10A-10C are schematic diagrams of interfaces of a strength display assembly corresponding to different target control operations according to one exemplary embodiment of the present invention. [Figure 7] 10A-10C are schematic diagrams of interfaces of a strength display assembly corresponding to different target control operations according to one exemplary embodiment of the present invention. [Figure 8] 10A-10C are schematic diagrams of interfaces of a strength display assembly corresponding to different target control operations according to one exemplary embodiment of the present invention. [Figure 9] 10 is a schematic diagram of an interface of the change status of the display effect of the physical strength display assembly before and after performing an operation according to another exemplary embodiment of the present invention; FIG. [Figure 10] 10 is a flowchart of a method for controlling a virtual object according to another exemplary embodiment of the present invention. [Figure 11] FIG. 10 is a schematic diagram of an interface of the changing status of the display effect of the strength display assembly in the strength recovery process according to another exemplary embodiment of the present invention; [Figure 12] 10 is a flowchart of a method for controlling a virtual object according to another exemplary embodiment of the present invention. [Figure 13] FIG. 2 is a block diagram of a configuration of a control device for a virtual object according to one exemplary embodiment of the present invention. [Figure 14] FIG. 2 is a block diagram of a terminal configuration according to one exemplary embodiment of the present invention. DETAILED DESCRIPTION OF THE INVENTION

[0014] First, some terminology related to the embodiments of the present invention will be introduced.

[0015] Virtual environment: A virtual environment that is displayed (or provided) when an application program is running on a terminal. The virtual environment may be a simulation environment of the real world, a semi-simulation and semi-fictional environment, or a purely fictional environment. The virtual environment may be any of a 2D virtual environment, a 2.5D virtual environment, and a 3D virtual environment, but the present invention is not limited thereto. In the following embodiment, the virtual environment will be described as a 3D virtual environment.

[0016] Virtual object: refers to a movable object in a virtual environment. The movable object may be a virtual character, a virtual animal, a cartoon or animation character, etc., such as a character or an animal displayed in a 3D virtual environment. Preferably, the virtual object is a 3D solid model created based on skeletal animation technology. Each virtual object has its own shape and volume in the 3D virtual environment and occupies a part of the space in the 3D virtual environment.

[0017] Shooting games include first-person shooters and third-person shooters. A first-person shooter is a shooter that the user can play from a first-person perspective, and the screen of the virtual environment in the game is a screen that observes the virtual environment from the perspective of a first virtual object. A third-person shooter is a shooter that the user can play from a third-person perspective, and the screen of the virtual environment in the game is a screen that observes the virtual environment from a third-person perspective (e.g., located behind the head of the first virtual object).

[0018] In the game, at least two virtual objects play a single-round competitive game in a virtual environment. The virtual objects avoid attacks by other virtual objects and dangers in the virtual environment (e.g., poison gas, swamps, etc.) in order to survive in the virtual environment. When the life value of a virtual object in the virtual environment reaches zero, the life of the virtual object in the virtual environment ends, and the virtual object that is finally alive in the virtual environment is declared the winner. Preferably, the competition begins when the first client joins the competition and ends when the last client leaves the competition, with each client being able to control one or more virtual objects in the virtual environment. Preferably, the competitive mode of the competition may include a single-player competitive mode, a two-player small-team competitive mode, or a multiplayer large-team competitive mode, although embodiments of the present invention are not limited to the competitive mode.

[0019] Virtual item: An item that can be used by virtual objects in a virtual environment, including virtual weapons that can change the attribute values ​​of other virtual objects, supply items such as bullets, defensive items such as shields, armor, and armored vehicles, virtual items that are displayed in the hands of virtual objects when they activate skills, such as virtual beams and virtual shock waves, and body parts such as the hands and feet of virtual objects. Here, virtual items that can change the attribute values ​​of other virtual objects include long-range virtual items such as pistols, rifles, and sniper rifles, short-range virtual items such as daggers, knives, swords, and ropes, and throwable virtual items such as flying axes, flying knives, grenades, flashbangs, and smoke bombs.

[0020] The method according to the present invention may be applied to a virtual reality application program, a three-dimensional map program, a military simulation program, a first-person / third-person shooter game, a multiplayer online battle arena (MOBA) game, etc. In the following embodiments, an in-game application will be taken as an example.

[0021] Virtual environment-based games often consist of one or more maps of a game world. The virtual environment within the game simulates a scene from the real world. Users control virtual objects within the game by walking, running, jumping, shooting, fighting, driving, switching between virtual items, and using virtual items to damage other virtual objects. In highly interactive games, multiple users can team up to play competitive games online.

[0022] In related technology, a virtual environment uses only a single energy bar to display the energy consumption of a virtual object, and controls the virtual object to perform a corresponding action based on a single energy value. As shown in FIG. 1, only an energy display assembly 101 is displayed in the virtual environment. When a player controls a virtual object in the virtual environment to run, the energy value of the corresponding energy display assembly 101 decreases. When the energy value of the energy display assembly 101 reaches 0, the virtual object cannot continue running (it can only walk) and must wait for its energy to recover. For this reason, in related technology, the energy value of a virtual object is displayed in a single format, and only the energy consumption of the entire virtual object is simulated. In other words, the single energy consumption display format results in a low sense of realism in the energy consumption of the virtual object, which affects the realism of the fighting game.

[0023] To solve the problem of the related art having a single display format for stamina consumption, an embodiment of the present invention introduces multiple stamina display assemblies to indicate the stamina consumption status of different body parts of a virtual object. For example, when a virtual object is shooting, the stamina of the body part related to the shooting action changes, thereby diversifying the stamina cost required for the virtual object to perform an action. Furthermore, by controlling the execution of the virtual object's action based on the remaining stamina of different body parts, the limit on stamina consumption for the player's operation can be increased, thereby improving the realism of the game.

[0024] 2 is a schematic diagram of an implementation environment according to one exemplary embodiment of the present invention, including a first terminal 210, a server 220, and a second terminal 230.

[0025] The first terminal 210 is executing an application program 211 that supports a virtual environment. The application program 211 may be a multiplayer online battle program. When the first terminal is executing the application program 211, a user interface of the application program 211 is displayed on the screen of the first terminal 210. The application program 211 may be any of a military simulation program, an MOBA game, a battle royale shooter game, and a simulation strategy game (SLG). In this embodiment, the application program 211 is an FPS game as an example. The first terminal 210 is used by a first user 212, and the first user 212 uses the first terminal 210 to control a first virtual object in the virtual environment to perform an action. The first virtual object may be referred to as the first user's 212 primary control virtual object. The movement of the first virtual object includes, but is not limited to, at least one of adjusting a body posture, crawling, walking, running, riding, jumping, hopping, driving, picking up, shooting, attacking, throwing, and activating a skill. For example, the first virtual object is a first virtual character, such as a simulated character or an animated character.

[0026] The second terminal 230 is executing an application program 231 that supports a virtual environment. The application program 231 may be a multiplayer online battle program. When the second terminal 230 executes the application program 231, a user interface of the application program 231 is displayed on the screen of the second terminal 230. The application program 231 may be a military simulation program, an MOBA game, a battle royale shooter game, or an SLG game. In this embodiment, the application program 231 is an FPS game as an example. The second terminal 230 is used by a second user 232, and the second user 232 uses the second terminal 230 to control a second virtual object in the virtual environment to perform actions. The second virtual object may be referred to as a primary virtual object of the second user 232. For example, the second virtual object may be a second virtual character, such as a simulated character or an animated character.

[0027] Preferably, the first virtual object and the second virtual object are in the same virtual world. Preferably, the first virtual object and the second virtual object belong to the same camp, team, or organization, and may have a friendship relationship or temporary communication rights. Preferably, the first virtual object and the second virtual object belong to different camps, teams, or organizations, or may have an enemy relationship.

[0028] Preferably, the application programs executed on the first terminal 210 and the second terminal 230 are the same, or the application programs executed on the two terminals are the same type of application programs on different operating system platforms (Android or IOS). The first terminal 210 may generally refer to one of multiple terminals, and the second terminal 230 may generally refer to one of multiple terminals. In this embodiment, the first terminal 210 and the second terminal 230 are simply described as an example. The device types of the first terminal 210 and the second terminal 230 may be the same or different. The device types include at least one of a smartphone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer.

[0029] 2 shows only two terminals, in different embodiments, there may be multiple other terminals that can access the server 220. Preferably, there may also be one or more terminals corresponding to developers, on which an application program development and editing platform that supports a virtual environment is installed, allowing the developers to edit and update the application programs on the terminals and transmit the updated application program installation packages to the server 220 via a wired or wireless network. The first terminal 210 and the second terminal 230 may download the application program installation packages from the server 220 to update the applications.

[0030] The first terminal 210, the second terminal 230 and other terminals are connected to the server 220 via a wireless network or a wired network.

[0031] The server 220 includes at least one of a single server, a server cluster configured by multiple servers, a cloud computing platform, and a virtualization center. The server 220 is used to provide background services to applications that support the 3D virtual environment. Preferably, the server 220 performs primary computing tasks and the terminal performs secondary computing tasks, or the server 220 performs secondary computing tasks and the terminal performs primary computing tasks, or the server 220 and the terminal employ a distributed computing architecture to perform collaborative computing.

[0032] In one illustrative example, server 220 includes memory 221, processor 222, user account database 223, match service module 224, and user-oriented input / output interface (I / O interface) 225. Here, processor 222 is used to load instructions stored in server 220 and process data in user account database 223 and match service module 224. User account database 223 is used to store data of user accounts used by first terminal 210, second terminal 230, and other terminals, such as user account profile pictures, user account nicknames, user account combat power indices, and service areas where user accounts are located. Match service module 224 is used to provide multiple match rooms for users to play matches, such as 1-on-1 matches, 3-on-3 matches, 5-on-5 matches, etc. The user-oriented I / O interface 225 is used to establish communication and exchange data with the first terminal 210 and / or the second terminal 230 via a wireless or wired network.

[0033] 3 is a flowchart of a method for controlling a virtual object according to an exemplary embodiment of the present invention. In this embodiment, the method is applied to the first terminal 210, the second terminal 230, or other terminals in the implementation environment shown in FIG. 2. The method includes the following steps:

[0034] Step 301: Display at least two stamina display assemblies corresponding to a virtual object. The stamina display assemblies are used to display the stamina consumption status of the corresponding body parts, and different stamina display assemblies correspond to different body parts.

[0035] The method of the embodiment of the present invention is applied to a virtual environment, the virtual environment including a first virtual object and a second virtual object, the first virtual object and the second virtual object belonging to different camps. In one possible aspect, the terminal displays the virtual environment on a virtual environment screen. Preferably, the virtual environment screen is a screen for observing the virtual environment from the viewpoint of the virtual object. The viewpoint (viewing angle) means a viewpoint of observation when observing a virtual object in the virtual environment from a first-person viewpoint or a third-person viewpoint. Preferably, in the embodiment of the present invention, the viewpoint is a viewpoint when observing a virtual object in the virtual environment using a camera model.

[0036] Preferably, the camera model automatically follows the virtual object in the virtual environment, i.e., when the position of the virtual object in the virtual environment changes, the camera model simultaneously changes to follow the position of the virtual object in the virtual environment, and the camera model is always within a predetermined distance range of the virtual object in the virtual environment. Preferably, during the automatic following process, the relative position of the camera model and the virtual object does not change.

[0037] A camera model refers to a three-dimensional model positioned around a virtual object in a virtual environment. When a first-person perspective is adopted, the camera model is positioned near or at the head of the virtual object. When a third-person perspective is adopted, the camera model is positioned behind the virtual object and may be fixed relative to the virtual object or may be positioned at any position a predetermined distance away from the virtual object. The camera model may be used to observe a virtual object positioned in the virtual environment from various angles. Preferably, when the third-person perspective is an over-the-shoulder perspective of the first-person perspective, the camera model is positioned behind the virtual object (e.g., the head and shoulders of the virtual object). Preferably, the camera model is not actually displayed in the virtual environment, i.e., the camera model is not displayed in the virtual environment displayed in the user interface.

[0038] As an example, the camera model may be located at an arbitrary position at a predetermined distance from the virtual object. Preferably, one virtual object corresponds to one camera model, and the camera model may rotate around the virtual object as the center of rotation. For example, the camera model may be rotated around an arbitrary point of the virtual object as the center of rotation, and during the rotation of the camera model, the camera model not only rotates by an angle but also shifts by a displacement. During the rotation, the distance between the camera model and the center of rotation is maintained as is, i.e., the camera model rotates on the surface of a sphere with the center of rotation as the center of the sphere. Here, the arbitrary point of the virtual object may be the head, torso, or any point around the virtual object, but the embodiment of the present invention is not limited thereto. Preferably, when the camera model observes a virtual object, the center of the viewpoint (viewing angle) of the camera model faces in the direction in which the point on the spherical surface where the camera model is located faces the center of the sphere. Preferably, the camera model can observe the virtual object at a predetermined angle along various directions of the virtual object.

[0039] In one possible aspect, the virtual environment interface displayed by the terminal includes at least two stamina display assemblies, where the stamina display assemblies are used to display the stamina value of a virtual object, and different stamina display assemblies are used to display the stamina values ​​of different body parts of the virtual object. When controlling the virtual object to perform a corresponding action, the stamina display assemblies may display the stamina consumption status and remaining stamina status of the different body parts when the virtual object performs the action. Here, the virtual environment interface further includes a screen (a first perspective screen or a third perspective screen) for observing the virtual environment through a camera model.

[0040] Preferably, in an embodiment of the present invention, at least two physical strength display assemblies are used to display the physical strength consumption status of different body parts, and the body parts of the virtual object may be divided according to different division rules. For example, the body parts of the virtual object may be divided into upper limb parts and lower limb parts, in which case the physical strength display assembly includes an upper limb physical strength display assembly and a lower limb physical strength display assembly. Alternatively, the upper limb parts and lower limb parts may be further divided, i.e., the upper limb parts may be divided into left upper limb parts and right upper limb parts, and the lower limb parts may be divided into left lower limb parts and right lower limb parts, in which case the physical strength display assembly includes a left upper limb physical strength display assembly, a right upper limb physical strength display assembly, a left lower limb physical strength display assembly, and a right lower limb physical strength display assembly.

[0041] Note that the body parts of the virtual object may be divided according to other division rules, and the embodiment of the present invention is not limited to the body part division method and the number of physical strength display assemblies.

[0042] Preferably, in an embodiment of the present invention, the physical strength display assembly (also referred to as a "component") may be displayed in the virtual environment interface in the form of a rectangle, an arc, a ring, a human body model, etc., or may be displayed in the virtual environment interface in the form of a number.

[0043] Preferably, the physical strength display assembly may be displayed at the bottom center position, the bottom left position, or the top center position in the virtual environment interface. The embodiment of the present invention is not limited to the display form or display position of the physical strength display assembly.

[0044] For example, as shown in Fig. 4, an upper limb stamina display assembly 401 and a lower limb stamina display assembly 402 are displayed on the virtual environment interface. The upper limb stamina display assembly 401 displays the stamina values ​​of the upper limbs and is used to display the stamina consumption status and stamina remaining status of the upper limbs when a virtual object performs an action. Similarly, the lower limb stamina display assembly 402 is used to display the stamina status of the lower limbs.

[0045] Step 302: Determine a target physical strength display assembly corresponding to the target control operation in response to the target control operation. The body part corresponding to the target physical strength display assembly matches the body part corresponding to the target action indicated by the target control operation.

[0046] Preferably, the target control operation is a trigger operation on an action widget for controlling an action of a virtual object, where the action widget for controlling the action of the virtual object may be displayed in a virtual environment interface, and when the terminal receives the trigger operation on the action widget, it determines that the target control operation on the virtual object has been received.

[0047] In one possible embodiment, by clicking an action widget in the virtual environment interface, the virtual object can be controlled to perform a corresponding action. For example, as shown in Fig. 4, when the direction widget 403 is dragged, the virtual object can be controlled to walk. When the aiming widget 404 is clicked, the virtual object can be controlled to perform a scope action. When the jump widget 405 is clicked, the virtual object can be controlled to jump.

[0048] When controlling a virtual object to move, different body parts need to be controlled to work together. For example, when controlling a virtual object to walk, the left and right lower limbs need to be controlled to move in order to walk. When controlling a virtual object to aim, the left and right upper limbs need to be controlled to aim the gun. When controlling a virtual object to throw, the right upper limb needs to be controlled to throw the virtual item.

[0049] To enhance the impact of energy consumption when controlling a virtual object to perform a target action and enhance the realism of energy consumption, in an embodiment of the present invention, when a target control operation is received for a virtual object, the terminal may determine a body part to be used to perform the target action corresponding to the target control operation, i.e., a target body part, and thereby determine a state for performing the target action based on the energy consumption status of the target body part.

[0050] Preferably, the terminal pre-establishes a correspondence relationship between a control operation, a body part, and a physical strength display assembly, and then determines a target body part corresponding to a target control operation based on the correspondence relationship, and further determines a target physical strength display assembly corresponding to the target body part.

[0051] Preferably, the target action may require the coordination of different body parts to be completed, i.e., the number of target physical strength display assemblies is at least one, and different actions performed by the virtual object may correspond to the same physical strength display assembly or different physical strength display assemblies.

[0052] For example, taking the case where the physical strength display assembly is divided into an upper limb physical strength display assembly and a lower limb physical strength display assembly as an example, the correspondence between control operations, body parts, and physical strength display assemblies is shown in Table 1.

[0053] [Table 1] Step 303: Control the virtual object to perform the target action, and update the first remaining vitality value displayed by the target vitality display assembly to a second remaining vitality value that is smaller than the first remaining vitality value.

[0054] In one possible embodiment, after the target stamina display assembly is determined, the terminal controls the virtual object to perform the target action based on the remaining stamina value indicated by the target stamina display assembly. Here, the state in which the virtual object performs the same action varies depending on the remaining stamina value. This can achieve the effect of different action execution states indicated by different stamina in reality.

[0055] Preferably, the terminal controls the virtual object to perform the target action based on a first remaining energy value indicated by the target energy display assembly. Here, the first remaining energy value refers to the current remaining energy value of the body part corresponding to the target energy display assembly. When the first remaining energy value is different, the state of the action performed by the body part corresponding to the target energy display assembly is different. That is, the remaining energy values ​​indicated by different energy display assemblies have different effects on the same action by the virtual object, and the remaining energy values ​​indicated by the same energy display assembly have different effects on different actions by the virtual object.

[0056] For example, if a virtual object performs a shooting action, the corresponding body part is an upper limb, and the target stamina display assembly is an upper limb stamina display assembly, the shooting stability will decrease sequentially when the remaining stamina values ​​indicated by the upper limb stamina display assembly are 100 points, 50 points, and 0 points, respectively. On the other hand, the remaining stamina values ​​indicated by the lower limb stamina display assembly do not affect the shooting stability.

[0057] After controlling the virtual object to perform the target action, the terminal determines the remaining stamina value of the body part corresponding to the target stamina display assembly after performing the target action, i.e., the second remaining stamina value. After the second remaining stamina value is determined, the terminal updates the first remaining stamina value displayed on the target stamina display assembly to the second remaining stamina value. This allows the target stamina display assembly to display the stamina consumption status of the virtual object performing the target action.

[0058] Then, the remaining stamina values ​​of different target stamina display assemblies are updated based on the stamina values ​​of the corresponding body parts. For example, if the body parts corresponding to the target movement are the upper limbs and the lower limbs, the remaining stamina values ​​of the upper limbs and the lower limbs after the target movement is performed are respectively determined. Thus, the remaining stamina value of the target stamina display assemblies corresponding to the upper limbs is updated based on the remaining stamina value of the upper limbs, and the remaining stamina value of the target stamina display assemblies corresponding to the lower limbs is updated based on the remaining stamina value of the lower limbs.

[0059] In the above embodiment, the control for the virtual object to perform the target action is executed by the terminal, but in another possible embodiment, the control for the virtual object to perform the target action may be executed by the server. That is, the server acquires the first remaining stamina value displayed by the target stamina display assembly, determines the execution state of the target action based on the first remaining stamina value, controls the virtual object to perform the target action based on the execution state, and the terminal displays a screen in which the virtual object performs the target action.

[0060] Alternatively, in another possible aspect, the control of the virtual object to perform the target action may be performed through interaction and cooperation between the terminal and the server. After the terminal obtains the first remaining energy value displayed by the target energy display assembly, the terminal transmits the first remaining energy value to the server. The server determines an execution state of the virtual object performing the target action based on the first remaining energy value and transmits the execution state to the terminal. The terminal controls the virtual object to perform the target action based on the execution state. That is, in this embodiment, the control of the virtual object to perform the target action may be performed only by the terminal, only by the server, or through interaction and cooperation between the terminal and the server, but this embodiment is not limited thereto.

[0061] As described above, in an embodiment of the present invention, multiple stamina display assemblies are used to display the stamina consumption status when performing actions of different body parts of a virtual object, thereby improving the realism of stamina consumption when performing actions of a virtual object compared to the display format of a single stamina value and stamina consumption in related technologies.In addition, by controlling the execution of actions of the virtual object based on the remaining stamina of different body parts and simulating the impact of stamina consumption on the execution of various actions, the realism of the execution of actions of the virtual object can be improved, and the realism of fighting games can be further improved.

[0062] 5 is a flowchart of a method for controlling a virtual object according to another exemplary embodiment of the present invention. In this embodiment, the method is applied to the first terminal 210, the second terminal 230, or other terminals in the implementation environment shown in FIG. 2. The method includes the following steps:

[0063] Step 501: If the remaining stamina values ​​indicated by the at least two stamina display assemblies are less than a second stamina threshold, display the at least two stamina display assemblies.

[0064] In one possible embodiment, the strength display assembly is always displayed in the virtual environment interface, which may cause the strength display assembly to obscure part of the virtual environment screen.

[0065] In another possible embodiment, to reduce occlusion of the virtual environment screen, when the remaining stamina value shown on the stamina display assembly is less than a second stamina threshold, at least two stamina display assemblies are displayed. This achieves the effect of presenting a stamina value. On the other hand, when the remaining stamina value is equal to or greater than the second stamina threshold, the terminal cancels the display of the stamina display assemblies, thereby reducing occlusion of the screen. For example, the second stamina threshold may be 100 points, and when the stamina value of a body part of the virtual object is less than 100 points, the terminal displays the stamina display assemblies.

[0066] Preferably, the at least two physical strength display assemblies may be an upper limb physical strength display assembly and a lower limb physical strength display assembly. In the embodiment of the present invention, the upper limb physical strength display assembly and the lower limb physical strength display assembly are described in detail as an example, but are not limited to this example.

[0067] Step 502: Determine a target physical strength display assembly corresponding to the target control operation in response to the target control operation on the virtual object. The body part corresponding to the target physical strength display assembly matches the body part corresponding to the target action indicated by the target control operation.

[0068] When determining a target physical strength display assembly corresponding to a target control operation, the determination may be based on a primary body part for performing a target action corresponding to the target control operation. The primary body part is also determined based on a body division status corresponding to the physical strength display assembly. If the physical strength display assembly includes an upper limb physical strength display assembly and a lower limb physical strength display assembly, the primary body part for performing the target action is determined to be an upper limb or a lower limb. If the primary body part is determined to be an upper limb, the corresponding target physical strength display assembly is determined to be an upper limb physical strength display assembly. If the primary body part is determined to be a lower limb, the corresponding target physical strength display assembly is determined to be a lower limb physical strength display assembly. If the primary body part is determined to be both an upper limb and a lower limb, the corresponding target physical strength display assembly is determined to be an upper limb physical strength display assembly and a lower limb physical strength display assembly.

[0069] Preferably, the terminal's determination of the corresponding target strength display assembly based on the target control operation may include the following scenarios:

[0070] 1. If the target action indicated by the target control operation is at least one of aiming, throwing, or close-range attack, determine the upper limb strength display assembly as the target strength display assembly.

[0071] Preferably, when the target action indicated by the target control operation is aiming, the terminal controls the virtual object to perform the aiming action. When performing the aiming action, the user needs to control a virtual item such as a pistol, rifle, or sniper rifle with the upper limbs to aim at the target. Therefore, the terminal determines an upper limb strength display assembly as the target strength display assembly. For example, as shown in FIG. 6 , the virtual object performs scope aiming and aiming, and the terminal determines an upper limb strength display assembly 601 as the target strength display assembly.

[0072] Preferably, when the target action indicated by the target control operation is a throw, the terminal controls the virtual object to perform a throwing action. When performing a throwing action, it is necessary to throw a throwable item such as a grenade or a smoke bomb at a target point with the upper limbs. Therefore, the terminal determines an upper limb strength display assembly as a target strength display assembly. For example, as shown in FIG. 7 , when the virtual object throws a virtual bomb, the terminal determines an upper limb strength display assembly 701 as a target strength display assembly.

[0073] Preferably, when the target action indicated by the target control operation is a close-range attack, the terminal controls the virtual object to attack another virtual object in the virtual environment using a close-range attack item (such as a dagger or a stick). Because the main body part for controlling the close-range attack item is the upper limbs, the terminal determines the upper limb strength display assembly as the target strength display assembly. For example, as shown in FIG. 8, the virtual object performs a close-range attack using an axe, and the terminal determines the upper limb strength display assembly 801 as the target strength display assembly.

[0074] 2. If the target action indicated by the target control operation is at least one of running and jumping, the lower limb physical strength display assembly is determined as the target physical strength display assembly.

[0075] Preferably, when the target control operation is running or jumping, the terminal controls the virtual object to run or jump, and since the action is mainly performed by the lower limbs, the terminal determines the lower limb strength display assembly as the target strength display assembly.

[0076] 3. If the target motion indicated by the target control operation is at least one of posture switching or climbing, the upper limb physical strength display assembly and the lower limb physical strength display assembly are determined as target physical strength display assemblies.

[0077] Preferably, when the target control operation is a posture change, the terminal controls the virtual object to change its posture. Here, the posture change may be a change from a standing posture to a crouching posture, a change from a crouching posture to a prone posture, or a change from a standing posture to a prone posture. In the posture change process, both the upper limbs and the lower limbs need to perform movements, so an upper limb strength display assembly and a lower limb strength display assembly are determined as target strength display assemblies.

[0078] In the embodiment of the present invention, only the corresponding target physical strength display assembly when switching postures is described, and the present invention is not limited to a specific switching posture.

[0079] Preferably, when the target control operation is climbing, the terminal controls the virtual object to perform a climbing action and determines the upper limb strength display assembly and the lower limb strength display assembly as the target strength display assembly to control the upper limbs and lower limbs of the virtual object to perform the action.

[0080] Step 503: Determine the expected stamina consumption value of the target action.

[0081] In one possible embodiment, the terminal pre-sets expected stamina consumption values ​​corresponding to different actions so that the user can intuitively know how the stamina values ​​of different body parts will be consumed when controlling the virtual object to perform an action while playing the game, thereby allowing the user to determine the expected stamina consumption value of a target action when controlling the virtual object to perform the target action.

[0082] The expected physical energy consumption value is the expected physical energy consumption value of the body part corresponding to the target physical energy display assembly. Preferably, when the target action is any of aiming, throwing, or close-range attack, the expected physical energy consumption value is the physical energy consumption value corresponding to the upper limbs, when the target action is any of running or jumping, the expected physical energy consumption value is the physical energy consumption value corresponding to the lower limbs, and when the target action is any of changing postures or climbing, the expected physical energy consumption value is the physical energy consumption value corresponding to the upper limbs and the lower limbs.

[0083] For example, Table 2 shows the correspondence between various actions and the expected stamina consumption values.

[0084] [Table 2] If the target action is aiming, the stamina consumption value of the upper limbs is predicted to be 5, and if the target action is changing posture, the stamina consumption value of the upper limbs and lower limbs is predicted to be 5 points.

[0085] In the embodiment of the present invention, the predicted physical energy consumption value of the target action means the predicted physical energy consumption value of one action or the predicted physical energy consumption value of an action within a unit period. For example, if the target action is aiming, the upper limb physical energy value consumed in one aiming is 5 points, and if the target action is running, the predicted physical energy consumption value of running within a unit period is 10 points, and the unit period may be 30 seconds, 1 minute, 5 minutes, etc., but the embodiment of the present invention is not limited thereto.

[0086] In order to further improve the realism of the energy consumption when the virtual object performs an action, in one possible aspect, an expected energy consumption value of the target action may be determined based on the current posture of the virtual object. Specifically, the following steps are included:

[0087] Step 1: Obtain a posture of a virtual object. The posture of the virtual object includes at least one of a standing posture, a crouching posture, and a prone posture.

[0088] In one possible embodiment, the terminal determines a fixed stamina consumption value based on the target action. This method cannot simulate the phenomenon that an object consumes different stamina when performing an action in different postures in a real environment. Therefore, to further improve the realism of the game, in another possible embodiment, the terminal may determine the expected stamina consumption value of the target action based on the current posture of the virtual object. Therefore, when determining the expected stamina consumption value of the target action, the terminal may first obtain the current posture of the virtual object, which may include at least one of a standing posture, a crouching posture, and a prone posture.

[0089] Step 2: Determine the expected stamina consumption value of the target movement based on the posture, where the expected stamina consumption value is different when the same movement is performed in different postures.

[0090] In one possible embodiment, the expected stamina consumption value of a virtual object when performing the same action in different postures is different. For example, when a virtual object performs an aiming action in a standing state, the expected stamina consumption value of the upper limbs is greater than the expected stamina consumption value of the upper limbs when the virtual object is in a prone state. In another example, when a virtual object performs a jumping action in a standing state, the expected stamina consumption value of the lower limbs is less than the expected stamina consumption value of the lower limbs when the virtual object is in a crouching state. For example, when a virtual object performs the same action, the expected stamina consumption values ​​of the action in different postures are shown in Table 3.

[0091] [Table 3] The above describes how the expected stamina consumption value differs depending on the posture. In real life, when the load of an object, i.e., the weight of the items being carried, differs, the stamina consumed when performing the same action also differs. Therefore, in another possible aspect, to further improve the realism of stamina consumption, the expected stamina consumption value of a target action may be determined based on the number of virtual items currently being carried by the virtual object.

[0092] Preferably, the expected stamina consumption value of the target action may be determined based on the filling rate of the virtual backpack. Here, the filling rate of the virtual backpack has a positive correlation with the expected stamina consumption value. Furthermore, when virtual backpacks of different capacities have the same filling rate, the expected stamina consumption value when the virtual object performs the target action also differs. Furthermore, the terminal may pre-store a correspondence between various virtual backpack capacities, their filling rates, and the expected stamina consumption value. Thus, by determining the filling rate of virtual items in the virtual object's current virtual backpack, the corresponding expected stamina consumption value can be determined.

[0093] For example, Table 4 shows the correspondence between the filling rate of a virtual backpack with maximum capacity stored in the terminal and the expected stamina consumption value.

[0094] [Table 4] For example, if the capacity of the virtual backpack currently held by the virtual object is 50% filled, the expected stamina consumption value of the upper limbs when controlling the virtual object to perform an aiming action is 5 points.

[0095] Step 504: Display the expected stamina consumption value by the target stamina display assembly. The display method of the expected stamina consumption value is different from the display method of the consumed stamina value and the current remaining stamina value.

[0096] In one possible embodiment, after determining the expected stamina consumption value of the target action, the terminal displays the expected stamina consumption value through a target stamina display assembly, where the display manner of the expected stamina consumption value is different from the display manner of the consumed stamina value and the current remaining stamina value.

[0097] For example, when it is detected that a virtual object has performed a target action, the stamina display assembly changes as shown in FIG. 9 . Before performing the target action, the stamina display assembly includes a remaining stamina value 901 displayed in a first manner and a consumed stamina value 902 displayed in a second manner. After determining the expected stamina consumption value of the target action, the stamina display assembly includes a remaining stamina value 901 displayed in a first manner, an expected stamina consumption value 903 displayed in a third manner, and a consumed stamina value 902 displayed in a second manner. Here, the remaining stamina value 901 is displayed in a bar-shaped shade, the expected stamina consumption value 903 is displayed in a block-shaped shade, and the consumed stamina value 902 is displayed in a transparent form. The display shown in FIG. 9 is merely an example and is not limited to this embodiment. In actual applications, the remaining stamina value, the expected stamina consumption value, and the consumed stamina value may be displayed in different colors, shapes, etc.

[0098] After the virtual object is controlled to perform the target action, the display of the predicted stamina consumption value is stopped.

[0099] In the example of the above steps, if the target action is aiming, the upper limb stamina display assembly displays an expected stamina consumption value of 5 points, and if the target action is climbing, the upper limb stamina display assembly and the lower limb stamina display assembly display an expected stamina consumption value of 10 points.

[0100] Step 505: If the first remaining stamina value indicated by the target stamina display assembly is greater than a first stamina threshold, control the virtual object to perform the target action with first parameters.

[0101] In the embodiment of the present invention, by introducing a first vitality threshold, it is possible to control the virtual object so that it performs the same action in different states when the remaining vitality value is different.

[0102] Preferably, the first stamina threshold is a predetermined value, and may be, for example, 0. When the remaining stamina value of the virtual object is greater than 0, the virtual object is controlled to perform a target action with first parameters.

[0103] Preferably, the first parameter may include at least one of the speed, strength, and stability of executing the movement of the virtual object, but embodiments of the present invention are not limited to a specific type of the first parameter.

[0104] Step 506: If the first remaining vitality value is smaller than the first vitality threshold, control the virtual object to perform a target action with second parameters.

[0105] In one possible embodiment, if the remaining energy value displayed by the energy display assembly is smaller than the first energy threshold, it means that a large amount of energy has been consumed by the body part corresponding to the virtual object. In this case, the virtual object is controlled to perform a target action with second parameters. Here, the effect of executing the target action with the second parameters is lower than the effect of executing the target action with the first parameters. This can simulate the effect of slowing down and struggling to execute an action when a large amount of energy is consumed in a real environment.

[0106] For example, if the remaining stamina value is less than 0, it means that the body part corresponding to the stamina display assembly has run out of stamina, and in this case, the virtual object is controlled to perform an action with second parameters.

[0107] In related art, when a virtual object runs out of stamina, the corresponding action cannot be executed, which affects the progress of the game. In contrast, in an embodiment of the present invention, when stamina is insufficient for a specific type of action, the virtual object can be controlled to execute the action with different execution effects depending on parameters. In one possible aspect, the actions that the virtual object can execute are divided into two types: actions that can be executed even when the remaining stamina value is less than a first stamina threshold, and actions that cannot be executed when the remaining stamina value is less than the first stamina threshold. This allows for more diverse restrictions on stamina consumption for controlling the virtual object.

[0108] In one possible aspect, when the current remaining vitality value is smaller than a first vitality threshold and the target action belongs to a first type of action, the terminal controls the virtual object to perform the target action with second parameters, where the first type of action includes at least one of aiming, throwing, and switching postures.

[0109] In one possible aspect, when the target action is a first type of action including at least one of aiming, throwing, and switching of posture, the virtual object is controlled to perform the target action with second parameters to ensure that the game can continue to be played normally and to avoid losing time in the game by waiting until the stamina value is restored before performing the operation.

[0110] Preferably, when the target action is aiming, the first parameter is a first aiming parameter, the second parameter is a second aiming parameter, and the aiming stability at the second aiming parameter is lower than the aiming stability at the first aiming parameter.

[0111] In one possible aspect, when the target action is aiming, the corresponding stamina display assembly is an upper limb stamina display assembly, and when the current remaining stamina value of the upper limb stamina display assembly is less than a first stamina threshold, the aiming stability parameter can be changed to reduce the execution effect of the virtual object and simulate a state in which the gun is held unstably when the upper limbs are actually fatigued.

[0112] Preferably, the aiming parameter may be a lens shake amplitude, and the lens shake amplitude of the second aiming parameter is greater than the lens shake amplitude of the first aiming parameter. For example, with the first aiming parameter, the lens shake amplitude when the virtual object aims is within a range of −5° to +5°, and with the second aiming parameter, the lens shake amplitude when the virtual object aims is within a range of −10° to +10°.

[0113] Preferably, when the target action is a throw, the first parameter is a first throw parameter, the second parameter is a second throw parameter, and the throw speed and / or throw distance for the second throw parameter is lower than the throw speed and / or throw distance for the first throw parameter.

[0114] In one possible aspect, when the target action is a throw, the corresponding stamina display assembly is an upper limb stamina display assembly, and when the current remaining stamina value of the upper limb stamina display assembly is less than a first stamina threshold, the execution effect of the virtual object can be reduced by changing the throw parameters.

[0115] Preferably, the throwing parameter may be a throwing speed, and the throwing speed of the second throwing parameter may be slower than the throwing speed of the first throwing parameter. For example, the time from the start to the end of throwing of the virtual object may be increased from 2 seconds to 4 seconds.

[0116] Preferably, the throwing parameter may be a throwing distance, and the throwing distance of the second throwing parameter may be smaller than the throwing distance of the first throwing parameter, for example, the maximum throwing range of the virtual object when thrown with the first throwing parameter is 100 m, while the maximum throwing range of the virtual object when thrown with the second throwing parameter is only 50 m.

[0117] Preferably, the throwing parameter may be a combination of a throwing speed and a throwing distance. For example, a first throwing parameter may be controlled so that the time from the start to the end of throwing the virtual object is 2 seconds and the throwing range can reach 100 m, and a second throwing parameter may be controlled so that the time from the start to the end of throwing the virtual object is 4 seconds and the throwing distance is only 50 m.

[0118] Preferably, when the target action is a posture change, the first parameter is a first change parameter, the second parameter is a second change parameter, and the posture change speed with the second change parameter is lower than the posture change speed with the first change parameter.

[0119] In one possible aspect, when the target action is a posture change, the corresponding physical strength display assembly is an upper limb physical strength display assembly and a lower limb physical strength display assembly, and when the current remaining physical strength values ​​of the upper limb physical strength display assembly and the lower limb physical strength display assembly are smaller than a first physical strength threshold, the parameters of the posture change can be changed to reduce the execution effect of the virtual object.

[0120] Preferably, the switching parameter may be a posture switching delay, and the delay of the first switching parameter may be smaller than the delay of the second switching parameter. For example, when controlling the virtual object to switch from a prone posture to a crouching posture, the delay may be increased from 1 second to 2 seconds, when the virtual object switches from a crouching posture to a standing posture, the delay may be changed from 1 second to 2 seconds, and when the virtual object switches from a prone posture to a standing posture, the delay may be changed from 2 seconds to 4 seconds.

[0121] Step 507: If the first remaining vitality value is less than the first vitality threshold and the target action belongs to a second type of action, cancel the response to the target control operation, where the second type of action includes at least one of running, jumping, climbing, and close-range attacking.

[0122] In one possible aspect, when the target action is a second type of action including at least one of running, jumping, climbing, and close-range attack, this type of action has little impact on the game, so if the remaining vitality value is smaller than the first vitality threshold, the execution of this type of action is prohibited. This makes it possible to simulate that the virtual object cannot be controlled to perform this type of action and cannot perform strenuous actions when the virtual object runs out of vitality.

[0123] Preferably, during the period in which the target action is prohibited, the operation control corresponding to the target control operation may be set to a non-triggered state to notify the user that use of the target action is prohibited.

[0124] Preferably, when the target action is running or jumping, the target physical strength display assembly is a lower limb physical strength display assembly, and therefore running or jumping is prohibited when the current remaining physical strength value indicated by the lower limb physical strength display assembly is smaller than a first physical strength threshold. When the target action is climbing, the target physical strength display assembly is an upper limb physical strength display assembly and a lower limb physical strength display assembly, and therefore climbing is prohibited when the current remaining physical strength value indicated by at least one physical strength display assembly of the upper limb physical strength display assembly or the lower limb physical strength display assembly is smaller than a first physical strength threshold. When the target action is a close-range attack, the target physical strength display assembly is an upper limb physical strength display assembly, and therefore close-range attack is prohibited when the current remaining physical strength value indicated by the upper limb physical strength display assembly is smaller than the first physical strength threshold.

[0125] Step 508: Determine a second remaining stamina value based on the first remaining stamina value and the expected stamina consumption value.

[0126] The terminal may determine the second remaining stamina value based on the first remaining stamina value and the predicted stamina consumption value, since the second remaining stamina value is the remaining stamina value of the body part corresponding to the target motion after the virtual object has executed the target motion. Here, the first remaining stamina value is the remaining stamina value of the body part corresponding to the target motion before the virtual object is controlled to execute the target motion, and the predicted stamina consumption value is the predicted stamina consumption value of the corresponding body part when the virtual object is controlled to execute the target motion, so the terminal determines the second remaining stamina value based on the difference between the first remaining stamina value and the predicted stamina consumption value.

[0127] Step 509: Update the target stamina display assembly based on the second remaining stamina value.

[0128] Preferably, after determining the second remaining stamina value, the terminal displays the second remaining stamina value on the target stamina display assembly.

[0129] For example, as shown in FIG. 9, after the target action is performed, the display of the predicted stamina consumption value 903 is stopped, and the remaining stamina value of the target stamina display assembly is updated to a second remaining stamina value 904 .

[0130] In this embodiment, a first stamina threshold and a second stamina threshold are introduced, and when the remaining stamina value of the target stamina display assembly is lower than the first stamina threshold, the target actions are divided into two types: actions that can be continued even when the remaining stamina value is lower than the first stamina threshold, and actions that cannot be continued when the remaining stamina value is lower than the first stamina threshold. When the virtual object's stamina is insufficient, the execution effect of the actions that can be continued is controlled using parameters, thereby simulating the difference between the effect of an object executing an action when stamina is insufficient and the effect of an object executing an action when stamina is sufficient in a real environment, thereby enhancing the realism of the game, ensuring that the game can be played normally, and avoiding wasting time in the game by waiting for the stamina value to recover.

[0131] In this embodiment, the virtual object may further display an expected stamina consumption value when performing an action, which allows the user to more easily grasp the stamina consumption value and remaining stamina value of various body parts when the virtual object performs the current target action, thereby improving the intuitiveness of the stamina display.

[0132] Preferably, after controlling the virtual object to perform the target action, the terminal may automatically restore the vitality value of the virtual object, or may restore the vitality value of the virtual object when an operation to use a virtual supply item is received. The following describes an exemplary embodiment.

[0133] 10 is a flowchart of a method for controlling a virtual object according to another exemplary embodiment of the present invention. In this embodiment, the method is applied to the first terminal 210, the second terminal 230, or other terminals in the implementation environment shown in FIG. 2. The method includes the following steps:

[0134] Step 1001: Display at least two strength display assemblies corresponding to a virtual object.

[0135] Step 1002: According to a target control operation on the virtual object, a target physical strength display assembly corresponding to the target control operation is determined.

[0136] Step 1003: The virtual object is controlled to perform the target action, and the first remaining vitality value displayed by the target vitality display assembly is updated to a second remaining vitality value.

[0137] The aspects of steps 1001 to 1003 may refer to the above embodiment, and the description thereof will be omitted in this embodiment.

[0138] Step 1004: A supply body part corresponding to the virtual supply item is determined according to the use operation for the virtual supply item. The virtual supply item is used to increase the remaining stamina value of the body part.

[0139] In one possible embodiment, the virtual object consumes stamina after performing a target action, and at this time, the stamina value may be restored using virtual supply items such as drinks, dishes, medicines, etc.

[0140] In one possible embodiment, a virtual object may increase the stamina of all body parts by using virtual supply items. In another possible embodiment, different virtual supply items may replenish different body parts. For example, a drink supply item may be used to restore the stamina of an upper limb, a la carte supply item may be used to restore the stamina of a lower limb, and a medicine supply item may be used to simultaneously replenish the stamina of both an upper limb and a lower limb.

[0141] In addition to determining the supply body part corresponding to the virtual supply item based on a fixed virtual supply item, the supply body part corresponding to the virtual supply item may be determined based on the physical energy consumption status of different body parts.

[0142] Preferably, when a use operation of a virtual supply item is accepted, the terminal obtains the current remaining stamina value of each current stamina display assembly and determines the corresponding supply body part based on each current remaining stamina value. In one possible embodiment, the terminal may determine the supply body part with the smallest current remaining stamina value as the supply body part corresponding to the virtual supply item. For example, if the remaining stamina value of the upper limbs indicated by the upper limb stamina display assembly is 30 points and the remaining stamina value of the lower limbs indicated by the lower limb stamina display assembly is 50 points, the terminal determines that the supply body part is the upper limb.

[0143] On the other hand, if the current remaining stamina values ​​shown by each stamina display assembly are the same, each supply body part may be determined to be a supply body part corresponding to a virtual supply item. Note that when the same virtual supply item is used to supply different body parts at the same time, the stamina recovery value of the different supply body parts is the same. For example, if the virtual supply item has a recoverable stamina value of 20 points and is used to supply both the upper and lower limbs at the same time, the stamina values ​​of the upper and lower limbs will be recovered by 10 points simultaneously.

[0144] Alternatively, in another possible aspect, the supply body part corresponding to the virtual supply item may be designated by the user. When the terminal receives an operation to use the virtual supply item, the terminal may display a selection widget corresponding to each body part on the virtual environment screen. When the terminal receives a selection operation on the target selection widget, the terminal determines the body part corresponding to the target selection widget as the supply body part for the virtual supply item.

[0145] Step 1005: The effect of supplementing the stamina value is displayed by the stamina display assembly corresponding to the supplemented body part.

[0146] In one possible embodiment, after replenishing a body part with a virtual supply item, the corresponding stamina display assembly displays the corresponding replenishing effect. Here, different virtual supply items replenish different stamina values. For example, when a drink supply item is used, the upper limb stamina display assembly indicates that 5 points of stamina have been restored. When a dish supply item is used, the lower limb stamina display assembly indicates that 5 points of stamina have been restored. When a medicine supply item is used, the upper and lower limb stamina display assemblies indicate that 10 points of stamina have been restored.

[0147] Step 1006: When the execution of the target motion is completed, the posture of the virtual object is acquired.

[0148] In one possible embodiment, after the execution of the target action is completed, the terminal stops controlling the virtual object to perform the action, and the stamina values ​​of the virtual object's body parts begin to recover at a fixed value. To further improve the realism of the game and simulate situations in which the object's stamina recovery varies depending on the pose in a real environment, in another possible embodiment, the current pose of the virtual object may be acquired to determine the recovery rate based on the pose of the virtual object, in order to simulate the stamina recovery situation of the object in a real environment. For example, if the target action is aiming, the pose of the virtual object after the action execution is completed may be a standing pose, a crouching pose, a prone pose, or the like. By acquiring the pose of the virtual object, the subsequent stamina recovery state of the virtual object can be controlled.

[0149] Step 1007: Determine a recovery speed of the stamina value corresponding to each of at least two stamina display assemblies based on the posture, wherein the recovery speeds of the stamina value corresponding to the same stamina display assemblies in different postures are different, and the recovery speeds of the stamina value corresponding to different stamina display assemblies in the same posture are different.

[0150] In one possible embodiment, after the execution of the target action is completed, the stamina value is automatically restored, for example, by 5 points within a unit period, which may be 10 seconds, 20 seconds, or the like.

[0151] In one possible embodiment, the recovery rate of the corresponding stamina value is determined based on the acquired current posture. An upper limb stamina display assembly and a lower limb stamina display assembly will be described as an example. The recovery rate of the stamina value corresponding to the same stamina display assembly in different postures is different. For example, the recovery rate of the upper limb stamina display assembly is prone > crouching > standing, and the recovery rate of the lower limb stamina display assembly is prone > standing > crouching. The recovery rate may be controlled by changing the stamina recovery value within a unit period. For example, in the upper limb stamina display assembly, when prone, the stamina value within the unit period recovers by 10 points, when crouching, the stamina value within the unit period recovers by 8 points, and when standing, the stamina value within the unit period recovers by 5 points. The unit period may be 10 seconds, 20 seconds, etc.

[0152] Preferably, the stamina recovery speeds corresponding to different stamina display assemblies in the same posture are different, for example, when the virtual object is currently crouching, the stamina recovery speed of the upper limbs is faster than that of the lower limbs, and when the virtual object is currently lying down, the stamina recovery speed of the upper limbs is slower than that of the lower limbs.

[0153] Step 1008: If the remaining stamina value indicated by the at least two stamina display assemblies recovers to the second stamina threshold, after highlighting the at least two stamina display assemblies, stop displaying the at least two stamina display assemblies.

[0154] In one possible embodiment, after the current remaining stamina values ​​indicated by the at least two stamina display assemblies have recovered to the second stamina threshold, the stamina display assemblies are highlighted to indicate to the player that the corresponding body parts have sufficiently recovered, and the display of the stamina display assemblies is stopped after the highlighting to reduce occlusion of the screen.

[0155] For example, as shown in FIG. 11, the stamina display assembly 1102 displayed in the virtual environment interface 1101 indicates that the stamina value will soon recover to full strength. When the stamina value recovers to full strength, the stamina display assembly 1102 displayed in the virtual environment interface 1101 is highlighted, and then the display stops after being highlighted, and the stamina display assembly in the virtual environment interface 1101 disappears.

[0156] Preferably, at least two physical strength display assemblies may be simultaneously displayed in the virtual environment interface. That is, the display of the physical strength display assemblies may be stopped after all of the body parts corresponding to the at least two physical strength display assemblies have recovered to the second physical strength threshold. Alternatively, the physical strength display assemblies may be individually displayed in the virtual environment interface. That is, after the body part corresponding to one of the physical strength display assemblies has recovered to the second physical strength threshold, the display of that physical strength display assembly may be stopped, while the remaining physical strength display assemblies may continue to be displayed.

[0157] In this embodiment, when the stamina of the virtual object is insufficient, virtual supply items are used to replenish the stamina values ​​of different body parts, and the stamina recovery speed is further determined based on different postures of the virtual object, thereby simulating the different stamina recovery speeds of objects under different conditions in a real environment, and further improving the realism of the game.

[0158] In the above embodiment, the following will take as an example a case where the body parts of a virtual object are divided into upper limbs and lower limbs. Figure 12 is a flowchart of a method for controlling a virtual object. As shown in Figure 12, the method includes the following steps:

[0159] Step 1201: The virtual object performs a target action and consumes stamina.

[0160] Step 1202: It is determined whether the body part that consumed the physical strength is an upper limb. If it is an upper limb, the process proceeds to step 1203; if not, the process proceeds to step 1204.

[0161] Step 1203: It is determined whether the physical strength of the upper limbs is 0. If it is 0, the process proceeds to step 1205; otherwise, the process proceeds to step 1201.

[0162] Step 1204: It is determined whether the physical strength of the lower limbs is 0. If it is 0, the process proceeds to step 1206; otherwise, the process proceeds to step 1201.

[0163] Step 1205: Negative effect on upper limbs (performs aiming, throwing, and posture switching actions with the second parameter, and prohibits close-range attacks).

[0164] Step 1206: Negative effect of lower limbs (execute the action of switching posture with the second parameter, prohibit the execution of actions such as running and jumping).

[0165] Step 1207: Detect whether the consumption of physical strength of the upper limbs has stopped. If it has stopped, proceed to step 1209; if not, proceed to step 1205.

[0166] Step 1208: Detect whether the consumption of the physical strength of the lower limbs has stopped. If it has stopped, proceed to step 1210; if not, proceed to step 1206.

[0167] Step 1209: Recover upper limb strength.

[0168] Step 1210: Recover lower limb strength.

[0169] 13 is a block diagram of a configuration of a virtual object control device according to an exemplary embodiment of the present invention. The device includes an assembly display module 1301, an assembly determination module 1302, and an object control module 1303.

[0170] The assembly display module 1301 displays at least two physical strength display assemblies corresponding to the virtual object. The physical strength display assemblies are used to display the physical strength consumption status of the corresponding body parts, and different physical strength display assemblies correspond to different body parts.

[0171] The assembly determination module 1302 determines a target physical strength display assembly corresponding to a target control operation in response to the target control operation on the virtual object. The body part corresponding to the target physical strength display assembly matches the body part corresponding to the target motion indicated by the target control operation.

[0172] The object control module 1303 controls the virtual object to perform the target action and updates the first remaining vitality value displayed by the target vitality display assembly to a second remaining vitality value that is smaller than the first remaining vitality value.

[0173] Preferably, the object control module 1303 includes a first control unit and a second control unit.

[0174] The first control unit controls the virtual object to perform the target action with first parameters when the first remaining vitality value is greater than a first vitality threshold.

[0175] The second control unit controls the virtual object to perform the target action with second parameters when the first remaining vitality value is smaller than a first vitality threshold.

[0176] Preferably, the effect of executing the target action with the second parameter is lower than the effect of executing the target action with the first parameter.

[0177] Preferably, the second control unit controls the virtual object to perform the target action with second parameters when the first remaining vitality value is smaller than the first vitality threshold and the target action belongs to a first type of action, wherein the first type of action includes at least one of aiming, throwing, and switching of stance.

[0178] Preferably, the apparatus further includes a cancellation module.

[0179] The cancel module cancels the response to the target control operation when the first remaining vitality value is less than the first vitality threshold and the target action belongs to a second type of action, the second type of action including at least one of running, jumping, climbing, and close-range attacking.

[0180] Preferably, when the target action is aiming, the first parameter is a first aiming parameter, the second parameter is a second aiming parameter, and the aiming stability at the second aiming parameter is lower than the aiming stability at the first aiming parameter.

[0181] Preferably, when the target action is a throw, the first parameter is a first throw parameter, the second parameter is a second throw parameter, and the throw speed and / or throw distance for the second throw parameter is lower than the throw speed and / or throw distance for the first throw parameter.

[0182] Preferably, when the target action is a posture change, the first parameter is a first change parameter, the second parameter is a second change parameter, and the posture change speed with the second change parameter is lower than the posture change speed with the first change parameter.

[0183] Preferably, the apparatus further includes a first determination module and a first display module.

[0184] The first determination module determines an expected stamina expenditure value of the target action.

[0185] The first display module displays the expected stamina consumption value through the target stamina display assembly, and the display manner of the expected stamina consumption value is different from the display manner of the consumed stamina value and the current remaining stamina value.

[0186] Preferably, the object control module 1303 further includes a second determination module and an update module.

[0187] The second determination module determines a second remaining stamina value based on the first remaining stamina value and the expected stamina consumption value.

[0188] The update module updates the target strength display assembly based on the second remaining strength value.

[0189] Preferably, the first determining module includes a first obtaining unit and a first determining unit.

[0190] The first acquisition unit acquires a posture of the virtual object, the posture of the virtual object including at least one of a standing posture, a crouching posture, and a prone posture.

[0191] The first determination unit determines an expected physical energy consumption value of the target action based on the posture, and the expected physical energy consumption value is different when the same action is performed in different postures.

[0192] Preferably, the apparatus further includes an obtaining module and a third determining module.

[0193] The acquisition module acquires the posture of the virtual object when the execution of the target action is completed.

[0194] The third determination module determines a recovery rate of the stamina value corresponding to each of the at least two stamina display assemblies based on the posture, wherein the recovery rates of the stamina value corresponding to the same stamina display assemblies in different postures are different, and the recovery rates of the stamina value corresponding to different stamina display assemblies in the same posture are different.

[0195] Preferably, the fitness display assembly includes an upper limb fitness display assembly and a lower limb fitness display assembly.

[0196] Preferably, the assembly determination module 1302 includes a second determination unit, a third determination unit and a fourth determination unit.

[0197] The second determination unit determines the upper limb strength display assembly as the target strength display assembly when the target action indicated by the target control operation is at least one of aiming, throwing, or close-range attack.

[0198] The third determination unit determines the lower limbs physical strength display assembly as the target physical strength display assembly when the target action indicated by the target control operation is at least one of running or jumping.

[0199] The fourth determination unit determines the upper limb physical strength display assembly and the lower limb physical strength display assembly as target physical strength display assemblies when the target motion indicated by the target control operation is at least one of posture switching or climbing.

[0200] Preferably, the assembly display module 1301 displays the at least two stamina display assemblies when the remaining stamina values ​​indicated by the at least two stamina display assemblies are less than a second stamina threshold.

[0201] Preferably, the apparatus further includes a display stop module.

[0202] The display stop module stops displaying the at least two stamina display assemblies after highlighting the at least two stamina display assemblies when the remaining stamina value indicated by the at least two stamina display assemblies recovers to a second stamina threshold.

[0203] Preferably, the apparatus further includes a fourth determination module and a second display module.

[0204] The fourth determination module determines a supply body part corresponding to the virtual supply item in response to a use operation on the virtual supply item, and the virtual supply item is used to increase the remaining stamina value of the body part.

[0205] The second display module displays the supplement effect of the stamina value through a stamina display assembly corresponding to the supplement body part.

[0206] In an embodiment of the present invention, multiple stamina display assemblies are used to display the stamina consumption status when performing actions of different body parts of a virtual object, thereby improving the realism of stamina consumption when performing actions of a virtual object compared to the display format of a single stamina value and stamina consumption in related technologies.In addition, by controlling the execution of actions of the virtual object based on the remaining stamina of different body parts and simulating the impact of stamina consumption on the execution of various actions, the realism of the execution of actions of the virtual object can be improved, and the realism of the fighting game can be further improved.

[0207] In this embodiment, a first stamina threshold and a second stamina threshold are introduced, and when the remaining stamina value of the target stamina display assembly is lower than the first stamina threshold, the target actions are divided into two types: actions that can be continued even when the remaining stamina value is lower than the first stamina threshold, and actions that cannot be continued when the remaining stamina value is lower than the first stamina threshold. When the virtual object's stamina is insufficient, the execution effect of the actions that can be continued is controlled using parameters, thereby simulating the difference between the effect of an object executing an action when stamina is insufficient and the effect of an object executing an action when stamina is sufficient in a real environment, thereby enhancing the realism of the game, ensuring that the game can be played normally, and avoiding wasting time in the game by waiting for the stamina value to recover.

[0208] In this embodiment, the virtual object further displays the predicted stamina consumption value when performing an action, and when the remaining stamina value of the target stamina display assembly is greater than the second stamina threshold, the stamina display assembly is highlighted, and the display of the stamina display assembly is stopped after the highlighting, so that the user can more easily grasp the current stamina consumption value and remaining stamina value of various body parts of the virtual object, and occlusion of the screen can be reduced.

[0209] In this embodiment, when the stamina of the virtual object is insufficient, virtual supply items are used to replenish the stamina values ​​of different body parts, and the stamina recovery speed is further determined based on different postures of the virtual object, thereby simulating the different stamina recovery speeds of objects under different conditions in a real environment, and further improving the realism of the game.

[0210] 14 is a block diagram of a configuration of a terminal according to an exemplary embodiment of the present invention. The terminal may be a portable mobile terminal, such as a smartphone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, etc. The terminal may also be referred to as a user device, a portable terminal, or other names.

[0211] Generally, the terminal includes a processor 1401 and a memory 1402 .

[0212] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1401 may include a main processor and a coprocessor. The main processor is a processor used to process data in an awake state and is also referred to as a CPU (Central Processing Unit). The coprocessor is a low-power processor used to process data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is used to render and draw content that needs to be displayed on a display screen. In some embodiments, the processor 1401 may further include an AI (Artificial Intelligence) processor, which is used to process computational operations related to machine learning.

[0213] Memory 1402 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 1402 may further include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices or flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in memory 1402 is used to store at least one instruction, which is executed by processor 1401 to implement a method according to an embodiment of the present invention.

[0214] It should be understood by those skilled in the art that terminal 1400 is not limited to the configuration shown in FIG. 14 and may include more or fewer components than those shown, may combine certain components, or may employ different component arrangements.

[0215] An embodiment of the present invention further provides a computer-readable storage medium having at least one instruction stored therein, the at least one instruction being loaded and executed by a processor to implement the method for controlling a virtual object described in each of the above embodiments.

[0216] An embodiment of the present invention further provides a computer program product including at least one instruction stored on a computer-readable storage medium, the instruction being loaded and executed by a processor to implement the method for controlling a virtual object described in each of the above embodiments.

Claims

1. A method for controlling a virtual object, which is performed by a terminal, A step of displaying at least two physical strength display assemblies corresponding to the virtual object, each of the at least two physical strength display assemblies being used to display the physical strength consumption status of the corresponding body part of the virtual object, and different physical strength display assemblies corresponding to different body parts of the virtual object, The steps include controlling the virtual object to perform the target action in response to a target control operation that instructs the virtual object to perform the target action, The steps include updating the remaining physical strength value displayed by the target physical strength display assembly, The target physical fitness display assembly corresponds to the body parts of the virtual object used to perform the target movement, A method for controlling a virtual object to perform the target action, comprising controlling the virtual object to perform the target action according to parameters that change based on the current fitness values ​​of the body parts of the virtual object as indicated by the target fitness display assembly.

2. The step of controlling the virtual object to perform the target operation is: If the remaining physical strength value is greater than the first physical strength threshold, the virtual object is controlled to perform the target action with the first parameters. If the remaining physical strength value is less than the first physical strength threshold and the target action belongs to a first type of action, the virtual object is controlled to perform the target action with a second parameter. If the remaining physical strength value is less than the first physical strength threshold and the target action belongs to the second type of action, the step of canceling the response to the target control operation, Includes, The method according to claim 1, wherein the effect of performing the target operation with the second parameter is lower than the effect of performing the target operation with the first parameter.

3. The first type of operation includes at least one of aiming, throwing, and changing posture, The method according to claim 2, wherein the second type of action includes at least one of running, jumping, climbing, and close-range attacking.

4. When the target movement is aiming, the first parameter is a first aiming parameter, the second parameter is a second aiming parameter, and the aiming stability with the second aiming parameter is lower than the aiming stability with the first aiming parameter. If the target action is throwing, the first parameter is a first throwing parameter, the second parameter is a second throwing parameter, and the throwing velocity and / or throwing distance with the second throwing parameter is lower than the throwing velocity and / or throwing distance with the first throwing parameter. If the target operation is a change of posture, the first parameter is a first switching parameter, the second parameter is a second switching parameter, and the posture switching speed with respect to the second switching parameter is lower than the posture switching speed with respect to the first switching parameter. The method according to claim 3.

5. The method is: In response to the target control operation, after determining the target physical strength display assembly from among the at least two physical strength display assemblies that corresponds to the body part of the virtual object used to perform the target movement, The steps include determining the estimated physical energy expenditure for the aforementioned target movement, The method according to any one of claims 1 to 4, further comprising the step of displaying the predicted energy expenditure value using the target energy expenditure display assembly, wherein the method of displaying the predicted energy expenditure value is different from the method of displaying the energy expenditure value consumed and the current remaining energy value.

6. The step of updating the remaining physical strength value displayed by the target physical strength display assembly is: The steps include determining other remaining stamina values ​​that are smaller than the aforementioned remaining stamina value, based on the aforementioned remaining stamina value and the aforementioned estimated stamina consumption value, The steps include updating the target physical strength display assembly based on the other remaining physical strength values, The method according to claim 5.

7. The step of determining the expected physical energy consumption value of the target movement is: A step of obtaining the posture of the virtual object, wherein the posture of the virtual object includes at least one of a standing posture, a crouching posture, and a prone posture. A step of determining the expected physical exertion value of the target movement based on the aforementioned posture, wherein the expected physical exertion value differs when the same movement is performed in a different posture, and this step is included. The method according to claim 5.

8. The method, after controlling the virtual object to perform the target action, When the execution of the target action is completed, the steps include obtaining the pose of the virtual object, A step of determining the rate of physical recovery corresponding to each of the at least two physical fitness indicator assemblies based on the aforementioned posture, further comprising the steps of: the rate of physical recovery corresponding to the same physical fitness indicator assembly differs for different postures, and the rate of recovery of the physical fitness value corresponding to different physical fitness indicator assemblies differs for the same posture; The method according to claim 7.

9. The physical fitness display assembly includes an upper limb physical fitness display assembly and a lower limb physical fitness display assembly, The method further includes the step of determining, in response to the target control operation, the physical strength indicator assembly from among the at least two physical strength indicator assemblies that corresponds to the body part of the virtual object used to perform the target movement as the target physical strength indicator assembly, the step of determining, If the target action indicated by the target control operation is at least one of aiming, throwing, or close-range attack, the step of determining the upper limb strength indicator assembly as the target strength indicator assembly, If the target action indicated by the target control operation is at least one of running or jumping, the step of determining the lower limb physical strength display assembly as the target physical strength display assembly, If the target action indicated by the target control operation is at least one of changing posture or climbing, the step of determining the upper limb strength indicator assembly and the lower limb strength indicator assembly as the target strength indicator assembly includes: The method according to any one of claims 1 to 4.

10. The step of displaying at least two physical strength indicator assemblies corresponding to the virtual object is: The step of displaying the at least two fitness indicator assemblies if the remaining fitness value indicated by the at least two fitness indicator assemblies is less than a second fitness threshold, This method is The process further includes the step of highlighting the at least two fitness indicator assemblies if the remaining fitness value indicated by the at least two fitness indicator assemblies recovers to the second fitness threshold, and then stopping the display of the at least two fitness indicator assemblies. The method according to any one of claims 1 to 4.

11. The method is: A step of determining a supply body part corresponding to a virtual supply item in response to an operation on the virtual supply item, wherein the virtual supply item is used to increase the remaining stamina value of the supply body part; The step further includes displaying the effect of supplementing physical strength values ​​using a physical strength indicator assembly corresponding to the supplemented body part, The method according to any one of claims 1 to 4.

12. A control device for virtual objects, A control device for virtual objects, comprising a processor and memory, wherein computer executable instructions are stored in the memory, and when the computer executable instructions are loaded and executed by the processor, the method according to any one of claims 1 to 11 is realized.

13. A computer program, A computer program that, when loaded and executed by a processor, causes the processor to perform the method according to any one of claims 1 to 11.