Methods, devices, terminals, and computer programs for controlling virtual objects

The method enables virtual objects to perform multiple actions through resource-based determination, addressing interface limitations and reducing misoperations in game applications.

JP7881626B2Active Publication Date: 2026-06-29TENCENT TECHNOLOGY (SHENZHEN) CO LTD

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2024-01-09
Publication Date
2026-06-29

Smart Images

  • Figure 0007881626000001
    Figure 0007881626000001
  • Figure 0007881626000002
    Figure 0007881626000002
  • Figure 0007881626000003
    Figure 0007881626000003
Patent Text Reader

Abstract

To provide a control method of a virtual object, a device, a terminal, and a computer program.SOLUTION: A method belongs to technical fields of computers and the Internet. The method includes the steps of: displaying a display screen and specific attack control corresponding to a virtual environment; determining a target operation from among at least two kinds of different operations on the basis of resources that a first virtual object has in response to touch control operation to specific attack control; and executing a target operation by controlling the first virtual object. Technical means provided by an embodiment of the present application avoids congestion of an interface because of too many icons, decreases a probability of a user's erroneous operation, ensures accuracy of operation, diversifies specific attack control, allows a user to control operation of specific attack control by controlling resources that the first virtual object has, further realizes different operation by using specific attack control, and enables flexible operation.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical fields of computers and the Internet, and particularly to a method, apparatus, terminal, and storage medium for controlling virtual objects.

[0002] This application claims the priority of a Chinese patent application with an application number of 202010848014.4 and an invention title of "Method, Apparatus, Terminal, and Storage Medium for Controlling Virtual Objects", which was filed on August 21, 2020, and the entire content of which is incorporated herein by reference.

Background Art

[0003] Currently, the types of skills of virtual objects in game application programs are increasing.

[0004] In related technologies, a user can control a first virtual object to use a skill to attack a second virtual object through skill control in a user interface. Here, the second virtual object and the first virtual object are located in different camps. Also, in a game application program, skill control is displayed in the user interface in the form of skill icons, and one skill icon refers to a unique skill, that is, different skill icons represent different skills, and the user can control the first virtual object to release different skills through different skill icons.

[0005] However, in the above related technologies, since a skill icon refers to a unique skill, when a virtual object has multiple skills, the area of the user interface is limited. Therefore, it may cause the size of the skill icon to be reduced and the positions to be close, and it is easy to cause misoperations.

Summary of the Invention

Means for Solving the Problems

[0006] Embodiments of the present application provide a method, apparatus, terminal, and storage medium for controlling virtual objects, which can reduce the probability of user error and ensure the accuracy of operations. The technical means are as follows.

[0007] According to one embodiment of the present invention, a method for controlling a virtual object is provided, the method being executed by a terminal, and the method is A step of displaying a display screen corresponding to a virtual environment and a specific attack control, wherein the specific attack control is used to control a first virtual object in the virtual environment and cause it to perform at least two different actions, A step of determining a target operation from among at least two different operations based on the resources possessed by the first virtual object in response to a touch control operation for the specified attack control, wherein the resources refer to items that need to be consumed to perform the operation corresponding to the specified attack control. The procedure includes the step of controlling the first virtual object to perform the target operation.

[0008] According to one embodiment of the present application, a control device for virtual objects is provided, the device is A control display module used to display a display screen corresponding to a virtual environment and a specific attack control, wherein the specific attack control is used to control a first virtual object in the virtual environment to perform at least two different actions, and An action determination module used to determine a target action from among at least two different actions based on the resources possessed by the first virtual object in response to a touch control operation for the specified attack control, wherein the resources refer to items that need to be consumed to perform the action corresponding to the specified attack control, The system includes an action execution module used to control the first virtual object and perform the target action.

[0009] According to one embodiment of the present invention, a terminal is provided, the terminal including a processor and memory, the memory storing at least one instruction, at least one program, code set, or instruction set, and the at least one instruction, at least one program, code set, or instruction set is loaded and executed by the processor to realize the method for controlling the virtual object.

[0010] According to one embodiment of the present invention, a computer-readable storage medium is provided, the readable storage medium storing at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to realize a method for controlling the virtual object.

[0011] According to one embodiment of the present invention, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, the processor executes the computer instructions, and thereby the computer device performs the method of controlling the virtual object. [Effects of the Invention]

[0012] The technical means provided by the embodiments of this application can bring about the following beneficial effects.

[0013] By controlling the first virtual object through specific attack controls, it is possible to make it perform at least two different actions, enabling one control to manage different actions, avoiding interface congestion caused by too many icons corresponding to operation controls, reducing the probability of user errors, ensuring accuracy of operations, and effectively ensuring the simplicity of the user interface by not needing to add new icons corresponding to operation controls in the user interface when increasing the actions of the first virtual object.

[0014] Furthermore, when a touch control operation on a specific attack control is detected, the system selects a different action that the first virtual object will attempt to perform from at least two different actions, based on the resources the first virtual object possesses. In other words, the action of the specific attack control differs when the first virtual object has different resources, thereby giving the specific attack control diversity. The user can control the action of the specific attack control by controlling the resources the first virtual object possesses, and can further achieve different actions using the specific attack control, resulting in flexible operation.

[0015] To more clearly explain the technical means of the embodiments of the present application, the drawings that will be used in describing the embodiments are briefly introduced below, and as will be apparent, the drawings described below are merely some embodiments of the present application, and those skilled in the art can obtain further drawings based on these drawings without any creative effort. [Brief explanation of the drawing]

[0016] [Figure 1] This is a schematic diagram of the execution environment for an application program provided by one embodiment of the present invention. [Figure 2] This is a flowchart of a method for controlling a virtual object provided by one embodiment of the present invention. [Figure 3] A schematic diagram illustrating the correspondence between numerical values ​​and target actions is provided as an example. [Figure 4] Exemplarily shown is a schematic diagram of a method for controlling a virtual object. [Figure 5] Exemplarily shown is a schematic diagram of the correspondence between another two types of numerical values and a target operation. [Figure 6] Exemplarily shown is a schematic diagram of the correspondence between another two types of numerical values and a target operation. [Figure 7] Exemplarily shown is a schematic diagram of the correspondence between another numerical value and a target operation. [Figure 8] Exemplarily shown is a schematic diagram of a notification method for one operation attribute. [Figure 9] This is a flowchart of a method for controlling a virtual object provided by another embodiment of the present application. [Figure 10] This is a block diagram of a control device for a virtual object provided by one embodiment of the present application. [Figure 11] This is a block diagram of a control device for a virtual object provided by another embodiment of the present application. [Figure 12] This is a structural block diagram of a terminal provided by one embodiment of the present application.

Embodiments for Carrying Out the Invention

[0017] To make the objectives, technical means, and advantages of the present application clearer, the embodiments of the present application will be described in more detail below in conjunction with the drawings.

[0018] As shown in reference to FIG. 1, a schematic diagram of an execution environment of an application program provided by one embodiment of the present application is shown. The execution environment of the application program may include a terminal 10 and a server 20.

[0019] Terminal 10 may be an electronic device such as a mobile phone, tablet computer, game host, e-book reader, multimedia playback device, wearable device, or PC (Personal Computer). A client terminal of an application program may be installed on terminal 10. Here, the application program may be an application program that needs to be downloaded and installed, or it may be an application program that can be used by clicking, and is not limited to this in the embodiments of the present invention.

[0020] In the embodiments of the present invention, the application program may be any application program that provides a virtual environment in which virtual objects for the user to substitute and manipulate can move within that virtual environment. Typically, the application program is a game application program, such as a Multiplayer Online Battle Arena (MOBA) game, a Battle Royale (BR) game, a Third-Person Shooting Game (TPS), a First-Person Shooting Game (FPS), and a Multiplayer Shooting Survival Game. Of course, in addition to game application programs, other types of application programs may also display virtual objects to the user and provide corresponding functions to those virtual objects. Examples include, but are not limited to, virtual reality (VR) application programs, augmented reality (AR) application programs, 3D map programs, military simulation programs, social application programs, and interactive entertainment application programs. Furthermore, different application programs may offer different forms of virtual objects and corresponding functions, all of which may be pre-configured according to actual needs, and are not limited to the embodiments of this application. Optionally, a client terminal of the above application program is executed in terminal 10. In some embodiments, the above application program is developed based on a three-dimensional virtual environment engine, for example, the Unity engine, which constructs a three-dimensional virtual environment, virtual objects, virtual tools, etc., and can provide the user with a more immersive gaming experience.

[0021] Here, the virtual environment is a scene displayed (or provided) when a client terminal of an application program (e.g., a game application program) is executed on the terminal. The virtual environment refers to a scene in which created virtual objects move (e.g., a game competition), and includes, for example, a virtual room, a virtual island, a virtual map, and a virtual building. The virtual environment may be a simulation environment of the real world, a semi-simulated, semi-fictional environment, or a purely fictional environment. The virtual environment may be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment, and is not limited to these in the embodiments of this application.

[0022] The virtual object described above may be a virtual character controlled by a user account within an application program, or a virtual character controlled by a computer program within the application program. Taking the application program as a game application program as an example, the virtual object may be a game character controlled by a user account within the game application program, or a game monster controlled by a computer program within the game application program. The virtual object may be in the form of a person, an animal, an animation, or other form, and is not limited thereto in the embodiments of this application. The virtual object may be displayed in three dimensions or in two dimensions, and is not limited thereto in the embodiments of this application. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional model created based on skeletal animation techniques. Each virtual object has its own shape and volume within the three-dimensional virtual environment and occupies a portion of the space within the three-dimensional virtual environment.

[0023] In one possible embodiment, the virtual objects include virtual objects located in the same faction and virtual objects located in different factions; that is, in the application program, virtual objects are divided into different factions. For example, in a MOBA game, 10 users are matched to play the game and divided into two teams, the Red Team and the Blue Team, that is, 5 people per team. In this case, the Red Team and the virtual objects within the Red Team are located in the same faction and are teammates with each other, the Blue Team and the virtual objects within the Blue Team are located in the same faction and are teammates with each other, and the virtual objects within the Red Team and the Blue Team are located in different factions and are adversaries with each other.

[0024] Server 20 is used to provide background services to client terminals of application programs in terminal 10. For example, server 20 may be a background server for the application program. Server 20 may be a single server, a server cluster consisting of multiple servers, or a single cloud computing service center. Selectively, server 20 may simultaneously provide background services to application programs in multiple terminals 10.

[0025] Terminal 10 and server 20 can communicate with each other via the network, as is optional.

[0026] As shown in Figure 2, a flowchart of a method for controlling a virtual object provided by one embodiment of the present invention is shown. The method can be applied in a terminal, for example, the entity executing each step may be a client terminal of an application program installed by terminal 10 in the execution environment of the application program shown in Figure 1. The method may include several steps (201-203) as follows.

[0027] Step 201: Display the display screen corresponding to the virtual environment and the specific attack controls.

[0028] A virtual environment refers to a scene used for virtual objects to move. Here, the virtual object may be a virtual character controlled by a user account, or a virtual character controlled by a computer program. Optionally, the virtual environment may include, but is not limited to, virtual islands, virtual maps, and virtual buildings. In the embodiments of this application, a user can control a first virtual object to interact with the virtual environment via a user account, for example, by entering or destroying virtual buildings in the virtual environment, or by attacking other virtual objects in the virtual environment. It should be noted that the user account may control one or more virtual objects, but is not limited to the embodiments of this application.

[0029] The display screen refers to a virtual environment screen displayed to the user on the user interface. Here, the virtual environment screen may be a screen acquired by a virtual camera from within the virtual environment. In one possible embodiment, the virtual camera acquires the virtual environment screen at a third viewpoint of the first virtual object. Optionally, the virtual camera is positioned diagonally above the first virtual object, and the client terminal observes the virtual environment centered on the first virtual object via the virtual camera, acquires a virtual environment screen centered on the first virtual object, and generates a display screen corresponding to the virtual environment. In another possible embodiment, the virtual camera acquires the virtual environment screen at a first viewpoint of the first virtual object. Optionally, the virtual camera is positioned directly in front of the first virtual object, and the client terminal observes the virtual environment from the viewpoint of the first virtual object via the virtual camera, acquires a virtual environment screen with the first virtual object as the first viewpoint, and generates a display screen corresponding to the virtual environment. In exemplary embodiments, the position of the virtual camera can be adjusted in real time. Optionally, the user can adjust the position of the virtual camera via control operations on the user interface and further acquire display screens corresponding to virtual environments at different positions. For example, the user can adjust the position of the virtual camera by dragging the display screen corresponding to the virtual environment, or, for example, by clicking on a location in the map display control, setting that location as the adjusted position of the virtual camera.

[0030] In embodiments of the present invention, a client terminal can display a display screen corresponding to the virtual environment within the user interface. Optionally, after receiving an execution command for the application program or a command to start a game, the client terminal can acquire a virtual environment screen via the virtual camera and display a display screen corresponding to the virtual environment based on the virtual environment screen. It is important to note that in embodiments of the present invention, the user interface further includes specific attack controls. Here, these specific attack controls refer to controls used to perform attack actions by controlling virtual objects in the user interface; for example, these controls may be in the form of buttons, joysticks, etc. In some embodiments, these specific attack controls are ordinary attack controls, which are used to perform ordinary attack actions by controlling virtual objects; these ordinary attack actions refer to attack actions that multiple virtual objects all possess; for example, multiple virtual objects belonging to the same type may have the same kind of ordinary attack actions. For example, in the case of a shooter-type virtual object, the normal attack action is a long-range physical attack action; in the case of a warrior-type virtual object, the normal attack action is a short-range physical attack action; and in the case of a mage-type virtual object, the normal attack action is a long-range spell attack action. Selectively, a normal attack action refers to an action that does not require the consumption of any virtual resources and has no cooldown time, and corresponding to such a normal attack action is an exclusive attack action, and such exclusive attack action is unique to one virtual object, meaning that different virtual objects have different exclusive attack actions, and each exclusive attack action has a corresponding exclusive attack control, through which the user can control the virtual object to execute the corresponding exclusive attack action. Normally, the above normal attack action is referred to as a normal attack, and the above exclusive attack action is referred to as a skill, and correspondingly, the normal attack control is referred to as a normal attack button, and the exclusive attack control is referred to as a skill button, the meaning of which will be understood by those skilled in the art.

[0031] In one possible embodiment, the client terminal displays a display screen corresponding to the virtual environment and simultaneously displays the specific attack control. That is, after receiving an execution command for the application program or a command to start a game match, the client terminal simultaneously displays the display screen corresponding to the virtual environment and the specific attack control.

[0032] In another possible embodiment, to ensure interface simplicity, the specific attack control is hidden within the user interface, and the client terminal displays the specific attack control after receiving a display command for the specific attack control. Optionally, the display command may be triggered and generated by the user within the display area of ​​the specific attack control, which may be any area within the user interface; or the display command may be triggered and generated by the user within the touch control area of ​​the specific attack control, i.e., the client terminal generates a display command for the specific attack control and then displays the specific attack control within the user interface when it detects a touch control operation on the specific attack control. Here, the touch control area may be the area surrounding the specific attack control.

[0033] In the embodiments of the present invention, the specific attack control is used to control a first virtual object in a virtual environment to perform at least two different actions. Here, the actions correspond to operations, which may be skill-casting operations, virtual item usage operations, state switching operations, etc., and are not limited to these in the embodiments of the present invention. The user can optionally control the first virtual object via the specific attack control to perform any one of the two different actions.

[0034] In one possible embodiment, the specific attack control is used to control a first virtual object in a virtual environment to unleash at least two different skills, such as an attack skill, a defensive skill, a healing skill, etc. Optionally, a client terminal detects a touch control operation on the specific attack control and then controls the first virtual object to unleash a skill, where the skill refers to any one of the at least two different skills. In an exemplary embodiment, the user interface may include multiple operation controls used to unleash skills, where different operation controls are used to unleash different skills, and different skills can be controlled and unleashed by the same operation control.

[0035] In another possible embodiment, the specific attack control is used to control a first virtual object in the virtual environment to cause it to use at least two different virtual items, such as virtual weapons, virtual tools, virtual equipment, etc. Optionally, the client terminal detects a touch control operation on the specific attack control and then controls the first virtual object to cause it to use a virtual item, where the virtual item refers to any one of the at least two different virtual items. In an exemplary embodiment, the user interface may include multiple operation controls used to use virtual items, different operation controls used to use different virtual items, and different virtual items can be controlled and used by the same operation controls.

[0036] In yet another possible embodiment, the specific attack control is used to control a first virtual object in the virtual environment to switch between at least two different states, for example, an attack state, a defense state, and a healing state. Here, the different states correspond to different talent skills, i.e., the virtual object can use different talent skills in different states. Optionally, after detecting a touch control operation on the specific attack control, the client terminal controls the first virtual object to switch states, where the state refers to any one of the at least two different states. In an exemplary embodiment, the user interface may include multiple operation controls used for switching states, where different operation controls are used to switch between different states, and the different states can also be controlled and switched by the same operation controls.

[0037] Furthermore, in exemplary embodiments, the designer may configure actions corresponding to the specific attack controls described above according to the actual situation, and this is not limited to the embodiments of the present application. In one possible embodiment, the at least two different actions are of the same type, for example, the at least two different actions include two different skill-casting actions. In another possible embodiment, the at least two different actions are of different types, for example, the at least two different actions include two different skill-casting actions and one virtual item usage action.

[0038] Step 202: In response to a touch control operation on a specific attack control, determine a target action from at least two different actions based on the resources possessed by the first virtual object.

[0039] A touch control operation refers to an operation triggered and generated by the user. In a terminal equipped with a touch panel, the touch control operation may be an operation by the user on the user interface. In a PC terminal, the touch control operation may be an operation on a key position on the user's keyboard. In the embodiments of the present application, the touch control operation may be an operation on the specific attack control. Selectively, the user can generate a touch control operation for the specific attack control by clicking the icon corresponding to the specific attack control in the user interface, or by pressing the key position corresponding to the specific attack control (e.g., the R key).

[0040] Selectively, the client terminal can display the user interface, then detect the user interface, and after detecting a touch control operation within the user interface, obtain the trigger position of the touch control operation. If the trigger position is located within the trigger area of ​​the specific attack control, the touch control operation is determined to be a touch control operation for the specific attack control.

[0041] In one possible embodiment, the position of each control within the user interface is fixed, and a fixed trigger area for each control is provided within the user interface. Here, the fixed trigger area may be any position within the user interface; for example, the fixed trigger area for a particular attack control is the area surrounding that attack control. Optionally, the client terminal can determine, based on the trigger position, whether the touch control operation lies within the fixed trigger area of ​​a particular attack control. If the touch control operation lies within the fixed trigger area of ​​a particular attack control, the touch control operation is determined to be a touch control operation for that particular attack control.

[0042] In another possible embodiment, the position of each control in the user interface is adjustable, meaning the user can adjust the position of each control in the user interface according to the actual situation, and a movable trigger area for each control is provided in the user interface. Here, the movable trigger area may be any area relative to the position of the control; for example, the movable trigger area for a particular attack control is an area consisting of a set of points whose distance from the center position of the particular attack control is less than a target value. Optionally, the client terminal can determine the distance between the trigger position and the center position of the particular attack control based on the trigger position. If the distance is less than the target value, the touch control operation is determined to be a touch control operation for the particular attack control.

[0043] In embodiments of the present invention, when a client terminal detects a touch control operation for the specific attack control, it determines a target operation from at least two different operations based on the resources possessed by the first virtual object. Here, the resources refer to items that need to be consumed to perform the operation corresponding to the specific attack control, and the target operation refers to the operation that the first virtual object needs to perform. Selectively, the at least two different operations include a first operation, a second operation, and a third operation, and the client terminal can determine the target operation based on the resource values. Selectively, step 202 includes several steps.

[0044] 1: Retrieve the numerical values ​​of the resources possessed by the first virtual object.

[0045] 2. Based on the range of possible values ​​to which the numerical value belongs, determine the target action from at least two different actions.

[0046] The correspondence between the range of possible values ​​for a numerical value and each action may be pre-stored in a configuration table. After determining that the numerical value of the resource possessed by the first virtual object falls within the range of possible values, the client terminal can determine the corresponding target action by querying the above configuration table.

[0047] In the embodiment of the present invention, after detecting a touch control operation against the specific attack control, the client terminal obtains a numerical value of the resources possessed by the first virtual object, and determines a target operation from among the at least two different operations based on the range of possible values ​​to which the numerical value belongs. Selectively, if the numerical value falls within the first range of possible values, the target operation is determined as the first operation; if the numerical value falls within the second range of possible values, the target operation is determined as the second operation; and if the numerical value falls within the third range of possible values, the target operation is determined as the third operation. Here, the first operation is used to counterattack the attack operation of the second virtual object; the second operation is used to decrease the movement speed of the second virtual object and increase the hit points of the first virtual object when the hit points of the second virtual object are decreasing; and the third operation is used to clear the hit points of the second virtual object when the hit points of the second virtual object are less than the target value. The second virtual object mentioned above refers to a virtual object located in a different faction than the first virtual object. The ranges of possible values ​​for the first, second, and third virtual objects are independent of each other and have no common parts.

[0048] For example, as can be seen in conjunction with Figure 3, after the client terminal detects a touch control operation against a specific attack control 30, the target operation is the first operation 32 when the resource value is within the first possible range 31, the target operation is the second operation 34 when the resource value is within the second possible range 33, and the target operation is the third operation 36 when the resource value is within the third possible range 35.

[0049] It should be explained that the descriptions of the first, second, and third operations above are merely illustrative and interpretive. In the illustrative examples, the designer can design the specific functions of each operation according to the actual situation, and this is not limited to the examples of the present invention.

[0050] Of course, in exemplary embodiments, the designer can flexibly set and adjust the quantity of actions corresponding to specific attack controls, and this is not limited to the embodiments of the present invention.

[0051] It should be further explained that the above description of the target action selection method is merely illustrative. In the illustrative embodiment, the client terminal can, after displaying a display screen corresponding to the virtual environment, detect the resources possessed by the first virtual object, determine different target actions based on the different resources, and, after detecting a touch control operation for the specific attack control, directly control the first virtual object to execute the target action.

[0052] The resources can be selectively collected and acquired through resource increase operations. In one possible embodiment, a client terminal can detect a resource increase operation after displaying a screen corresponding to the virtual environment. When a resource increase operation is detected, the resource increase value of the first virtual object is determined, and the resource values ​​of the first virtual object are updated based on the resource increase value.

[0053] Selectively, the resource increase operation described above includes at least one of the following: the first virtual object killing the second virtual object; the first virtual object causing the second virtual object to lose hit points; the first virtual object performing a fifth action causing the second virtual object to lose hit points; the first virtual object performing a fifth action; a touch control operation of the action control corresponding to the fifth action; and the first virtual object acquiring a resource increase tool. Here, the second virtual object refers to a virtual object located in a different faction than the first virtual object.

[0054] The first virtual object killing the second virtual object means that after the second virtual object receives an attack from the first virtual object, the second virtual object's hit points become zero. Here, the attack value of the first virtual object against the second virtual object may be less than the maximum hit points of the second virtual object, and of course, the attack value of the first virtual object against the second virtual object may be greater than or equal to the maximum hit points of the second virtual object; however, this is not limited to the embodiments of the present application. Optionally, after detecting that the first virtual object has killed the second virtual object, the client terminal may determine the resource increase value based on the attack value of the first virtual object against the second virtual object, and update the resource value of the first virtual object based on the resource increase value. Exemplarily, there is a positive correlation between the attack value and the resource increase value.

[0055] The first virtual object causing a loss of hit points in the second virtual object means that the first virtual object successfully attacks the second virtual object. Optionally, after detecting that the first virtual object has caused a loss of hit points in the second virtual object, the client terminal can determine the resource increase value based on the hit point loss of the second virtual object and update the resource value of the first virtual object based on the resource increase value. Exemplarily, there is a positive correlation between the hit point loss value and the resource increase value.

[0056] When the first virtual object performs the fifth action and causes a loss of hit points in the second virtual object, it means that the first virtual object successfully attacks the second virtual object using the fifth action. Here, the fifth action may be any action that the first virtual object can perform, for example, at least two different actions corresponding to the specific attack control. Optionally, after detecting that the first virtual object has performed the fifth action and caused a loss of hit points in the second virtual object, the client terminal may determine the resource increase value based on the hit point loss value of the second virtual object and update the resource value of the first virtual object based on the resource increase value. Exemplarily, there is a positive correlation between the hit point loss value and the resource increase value.

[0057] The first virtual object performing the fifth action means that the first virtual object performs the corresponding action. Here, the fifth action may be any action that the first virtual object can perform, for example, at least two different actions corresponding to the specific attack control, or the fifth action may be a specific action of the first virtual object, for example, the action of unleashing a certain skill, but is not limited to this in the embodiments of the present application. Optionally, after detecting that the first virtual object has performed the fifth action, the client terminal determines the resource increase value based on the fifth action and updates the resource value of the first virtual object based on the resource increase value. Here, the resource increase values ​​corresponding to different actions may be the same or different.

[0058] The touch control operation of the operation control corresponding to the fifth operation described above refers to a touch control operation of a certain operation. Here, the fifth operation may be any operation that the first virtual object can perform, for example, at least two different operations corresponding to the specific attack control described above, or the fifth operation may be a specific operation of the first virtual object, for example, the operation of a certain skill, and is not limited to this in the embodiments of the present application. Selectively, after the client terminal detects the touch control operation of the operation control corresponding to the fifth operation, it determines the resource increase value based on the fifth operation and updates the resource value of the first virtual object based on the resource increase value. Here, the resource increase values ​​corresponding to different operations may be the same or different.

[0059] The acquisition of a resource-increasing tool by the first virtual object means that the first virtual object collects resource-increasing tools in the virtual environment. Here, the resource-increasing tool may be placed at a specific location in the virtual environment when displaying a display screen corresponding to the virtual environment, or it may be an incentive tool that falls when the first virtual object completes a specific operation, and is not limited to these embodiments of the present application. Optionally, after detecting that the first virtual object has acquired a resource-increasing tool, the client terminal determines the resource-increasing value based on the resource-increasing tool and updates the resource values ​​of the first virtual object based on the resource-increasing value. Here, the resource-increasing values ​​corresponding to different resource-increasing tools may be the same or different.

[0060] It is important to explain that the above resources are simply items for the above-mentioned at least two types of actions; that is, the first virtual object consumes the resources only when it performs any action other than a normal attack action from among the at least two types of actions, and does not need to consume the resources when the first virtual object performs any action other than the at least two types of actions, and does not determine the corresponding action according to the resources.

[0061] Step 203: Control the first virtual object to perform the target action.

[0062] The target action refers to the action that the first virtual object needs to perform. Selectively, the target action may be any one of the at least two different actions described above. Here, the target action may be a skill-casting action, a virtual item-using action, a state-switching action, etc., and is not limited to these in the embodiments of this application.

[0063] In the embodiments of the present invention, the client terminal determines a target action from at least two different actions, and then controls the first virtual object to execute the target action. Optionally, when the client terminal controls the first virtual object to execute the target action, it can determine the target of the target action based on the range of action of the target action, and further control the first virtual object to execute the target action on that target. Here, the range of action refers to the effective range of the target action, such as the attack range of an attack skill, the throwing range of a virtual item, or the jump collision range of a virtual object. Optionally, different actions correspond to different ranges of action.

[0064] Selectively, after acquiring the scope of the target action described above, the client terminal can acquire attribute information of the target virtual object within that scope and select an action target corresponding to the target action based on that attribute information. Here, the target virtual object refers to the object that is the target of the target action. Selectively, if the target action is an attack action, the target virtual object refers to a second virtual object located in a different faction than the first virtual object, and if the target action is a buff action, the target virtual object refers to a virtual object located in the same faction as the first virtual object.

[0065] In one possible embodiment, the attribute information includes the hit points of the target virtual object. Selectively, the client terminal can sort the target virtual objects in order from smallest to largest hit points, and further select the top-sorted target virtual objects as the action targets corresponding to the target action, based on the number of action targets for the target action.

[0066] In another possible embodiment, the attribute information includes the distance between the target virtual object and the first virtual object. Optionally, the client terminal can sort the target virtual objects in descending order of distance, and further select the top-sorted target virtual objects as the action targets corresponding to the target action, based on the quantity of action targets for the target action.

[0067] Selectively, after determining the target of the above target operation, the client terminal controls the first virtual object to execute the above target operation on that target.

[0068] It should be explained that the above selection of target objects is merely illustrative and interpretive. In exemplary embodiments, the client terminal may also determine target objects corresponding to target behavior based on other information in the attribute information, such as the target virtual object's movement speed, the target virtual object's defense value, and the target virtual object's attack speed.

[0069] As described above, the technical means provided by the embodiment of the present invention makes it possible to control the first virtual object via a specific attack control to perform at least two different operations, enabling one control to control different operations, avoiding interface congestion caused by too many icons corresponding to operation controls, reducing the probability of user errors, ensuring accuracy of operations, and effectively ensuring the simplicity of the user interface by not requiring the addition of new icons corresponding to operation controls in the user interface when increasing the number of operations of the first virtual object.

[0070] Furthermore, when a touch control operation on a specific attack control is detected, the system selects a different action that the first virtual object will attempt to perform from at least two different actions, based on the resources the first virtual object possesses. In other words, the action of the specific attack control differs when the first virtual object has different resources, thereby giving the specific attack control diversity. The user can control the action of the specific attack control by controlling the resources the first virtual object possesses, and can further achieve different actions using the specific attack control, resulting in flexible operation.

[0071] The present invention is fully described below, as can be seen in conjunction with Figure 4.

[0072] Step 401: The client terminal detects a skill release command for the first virtual object.

[0073] Selectable, the user interface includes multiple skill operation controls, which are used to control a first virtual object to unleash skills, and different skill operation controls correspond to different skills.

[0074] In the embodiments of this invention, the user interface is detected after the client terminal displays the user interface. After detecting a touch control operation in the user interface, the skill operation control that is the target of the touch control operation is determined based on the position of the touch control operation, and a skill release command is generated for the first virtual object based on the skill operation control.

[0075] Step 402: Based on the skill release command, the client terminal controls the first virtual object to release a skill and increases the resources possessed by the first virtual object.

[0076] In the embodiment of the present invention, after detecting the skill release command, the client terminal controls the first virtual object to release the corresponding skill based on the skill release command, and increases the resources possessed by the first virtual object. Here, these resources are items that need to be consumed to perform an action corresponding to a specific attack control.

[0077] Selectively, when the client terminal controls the first virtual object to unleash a skill, it obtains a resource increase value corresponding to that skill, and further increases the resources possessed by the first virtual object based on that resource increase value, and updates the resource value currently possessed by the first virtual object.

[0078] The resource increase values ​​corresponding to different skills may be the same or different, and are not limited to the embodiments of this application.

[0079] In one possible embodiment, if different skills correspond to the same resource increase value, the client terminal can predict the resource increase value in advance, and furthermore, when controlling the first virtual object to unleash a skill, it can obtain the resource increase value without considering the skill, thereby improving the efficiency of updating resource values.

[0080] In another possible embodiment, if different skills correspond to different resource increase values, when the client terminal controls the first virtual object to unleash a skill, it must first determine the skill and then determine the resource increase value corresponding to that skill.

[0081] Step 403: The client terminal detects a touch control operation against a specific attack control.

[0082] In the embodiments of the present invention, the user interface includes specific attack controls, where each virtual object possesses an attack control. After the client terminal displays the user interface, it detects the user interface. After detecting a touch control operation within the user interface, it determines whether the touch control operation is an operation against a specific attack control based on the location of the touch control operation. Subsequently, if the touch control operation is an operation against a specific attack control, the client terminal determines that it has detected a touch control operation against a specific attack control.

[0083] Step 404: The client terminal determines the numerical value of the resources possessed by the first virtual object.

[0084] In the embodiment of the present invention, after detecting a touch control operation against a specific attack control, the client terminal obtains a numerical value of the resources possessed by the first virtual object, and then determines the operation that the first virtual object needs to perform based on the range of possible values ​​to which the numerical value belongs.

[0085] Step 405: If the number falls within the first range of possible values, the client terminal controls the first virtual object and performs the first action.

[0086] Step 406: If the number falls within the second range of possible values, the client terminal controls the first virtual object to perform the second action.

[0087] Step 407: If the number falls within the third range of possible values, the client terminal controls the first virtual object to perform the third action.

[0088] Step 408: If the value is smaller than the lower limit of the first possible range of values, the client terminal controls the first virtual object and causes it to perform a normal attack action.

[0089] The above is a brief introduction to the method for selecting target actions. In the embodiment of this application, the client terminal can determine the target action by combining the operational attributes of the touch control operation of a specific attack control based on the resources possessed by the first virtual object.

[0090] In the exemplary embodiment, step 202 above includes several steps:

[0091] 1: Retrieve the numerical values ​​of the resources possessed by the first virtual object.

[0092] 2. Determine the operation attributes of the touch control operation.

[0093] 3. Based on numerical values ​​and operational attributes, determine the target operation from at least two different operations.

[0094] Operation attributes are used to represent the attributes of the touch control operation described above. Different touch control operations have different operation attributes. Selectively, the operation attributes include, but are not limited to, at least one of the following: touch control time, touch control pressure, number of touch control cycles, and touch control direction.

[0095] Here, touch control time refers to the continuous duration of the touch control operation. Selectively, the client terminal can start timing measurement from the moment it detects a touch control operation, stop measurement when the touch control operation disappears, and obtain the touch control time of the touch control operation. Touch control pressure refers to the pressure value due to the user's touch control operation detected via a pressure sensor. Touch control count refers to the number of times the user continuously touches the control within a time threshold. For example, a single click operation corresponds to 1 touch control count, a double click operation corresponds to 2 touch control counts, and a triple click operation corresponds to 3 touch control counts. Touch control direction refers to the direction of the swipe trajectory when the touch control operation is a swipe operation.

[0096] In the embodiment of the present invention, after detecting a touch control operation in response to the above-mentioned normal attack, the client terminal obtains the numerical value of the resources possessed by the first virtual object and the operation attribute of the touch control operation, and further determines a target operation from among the at least two different operations based on the numerical value and operation attribute.

[0097] In one possible embodiment, the client terminal determines the target operation based on the range to which the numerical value of the resource possessed by the first virtual object belongs, in conjunction with the operation attribute of the touch control operation. Selectively, the target operation is determined as the first operation if the numerical value belongs to a first range of possible values ​​and the operation attribute is the first operation attribute. The target operation is determined as the second operation if the numerical value belongs to a second range of possible values ​​and the operation attribute is the first operation attribute, and the target operation is determined as the first operation if the numerical value belongs to a second range of possible values ​​and the operation attribute is the second operation attribute. If the numerical value falls within a third range of possible values ​​and the operation attribute is the first operation attribute, the target action is determined to be the third action. If the numerical value falls within a third range of possible values ​​and the operation attribute is the second operation attribute, the target action is determined to be the first action. If the numerical value falls within a third range of possible values ​​and the operation attribute is the third operation attribute, the target action is determined to be the second action.

[0098] It is important to note that the settings for the first, second, and third possible ranges of values ​​described above are not limited to those in the embodiments of this application. The first, second, and third possible ranges of values ​​may be selectable to be consecutive ranges of values, for example, the first possible range may be 10 to 20, the second possible range may be 20 to 30, and the third possible range may be 30 to 40. Alternatively, the first, second, and third possible ranges of values ​​may not be consecutive ranges of values, for example, the first possible range may be 10 to 20, the second possible range may be 30 to 40, and the third possible range may be 50 to 60.

[0099] It is important to note that the settings of the first, second, and third operation attributes described above are not limited to those in the embodiments of this application. The operation attributes corresponding to different touch control operations can be selected and vary. For example, if the touch control operation is a click operation, the operation attribute may be the number of touch operations, for example, the first operation attribute may be to perform a touch operation once, the second operation attribute may be to perform a touch operation twice, and the third operation attribute may be to perform a touch operation three times. Alternatively, the operation attribute may be the touch control duration, for example, the first operation attribute may be to perform a touch operation for 1 second, the second operation may be to perform a touch operation for 2 seconds, and the third operation attribute may be to perform a touch operation for 3 seconds. Also, for example, if the touch control operation is a swipe operation, the operation attribute may be the swipe direction, for example, the first operation attribute may be to swipe upwards, the second operation attribute may be to swipe downwards, and the third operation attribute may be to swipe left.

[0100] For example, as shown in conjunction with Figure 5, if the touch control operation is a click operation and the operation attribute is the number of touch operations, after the client terminal detects a touch control operation against a specific attack control 50, if the numerical value falls within the first range of possible values ​​51, and the touch control operation is a single-click operation 52, the target operation is the first operation 53. If the numerical value falls within the second range of possible values ​​54, and the touch control operation is a single-click operation 52, the target operation is the second operation 55, and if the touch control operation is a double-click operation 56, the target operation is the first operation 53. If the numerical value falls within the third range of possible values ​​57, and the touch control operation is a single-click operation 52, the target operation is the third operation 58, if the touch control operation is a double-click operation 56, the target operation is the first operation 53, and if the touch control operation is a triple-click operation 59, the target operation is the second operation 55.

[0101] In another possible embodiment, the client terminal determines the target operation based on the operation attribute of the touch control operation, in conjunction with the relationship between the numerical value of the resource possessed by the first virtual object and a threshold. Selectively, the target operation is determined as the first operation if the operation attribute is the first operation attribute and the numerical value is greater than the first threshold. The target operation is determined as the second operation if the operation attribute is the second operation attribute and the numerical value is greater than the second threshold, and the target operation is determined as the first operation if the operation attribute is the second operation attribute and the numerical value is less than the second threshold and greater than the first threshold. The target operation is determined as the third operation if the operation attribute is the third operation attribute and the numerical value is greater than the third threshold, and the target operation is determined as the second operation if the operation attribute is the third operation attribute and the numerical value is less than the third threshold and greater than the second threshold, and the target operation is determined as the first operation if the operation attribute is the third operation attribute and the numerical value is less than the second threshold and greater than the first threshold.

[0102] It should be explained that the settings of the first, second, and third thresholds described above are not limited to those in the embodiments of this application. The first, second, and third thresholds may be any numerical values, as selectable. For example, the first threshold may be 10, the second threshold 20, and the third threshold 30.

[0103] For example, as shown in conjunction with Figure 6, if the touch control operation is a click operation and the operation attribute is the number of touch operations, then after the client terminal detects a touch control operation against a specific attack control 60, if the touch control operation is a single click operation 61, and the numerical value is greater than the first threshold 62, then the target operation is the first operation 63. If the touch control operation is a double-click operation 64, and the numerical value is greater than the second threshold 65, then the target operation is the second operation 66, and if the numerical value is less than the second threshold 65 and greater than the first threshold 62, then the target operation is the first operation 63. If the touch control operation is a triple-click operation 67, and the numerical value is greater than the third threshold 68, then the target operation is the third operation 69, and if the numerical value is less than the third threshold 68 and greater than the second threshold 65, then the target operation is the second operation 66, and if the numerical value is less than the second threshold 65 and greater than the first threshold 62, then the target operation is the first operation 63.

[0104] It is important to explain that, in the embodiments of this application, the specific attack control described above is further used to control the first virtual object to perform normal attack actions. Here, a normal attack action refers to a physical attack action of the first virtual object. Optionally, the normal attack action may refer to an action that does not require the consumption of any virtual resources and has no cooldown time. Here, the cooldown time refers to the minimum time interval between the release of the same action, and the virtual resource may be the resource itself, or energy that other actions need to consume, and is not limited to this in the embodiments of this application. In exemplary embodiments, the normal attack action may be an action that multiple virtual objects all possess. Optionally, the normal attack actions corresponding to virtual objects of the same type are similar, for example, their attack ranges are similar. However, other actions that a virtual object possesses besides normal attack actions (e.g., referred to as skills) are unique, and each virtual object has different other actions (i.e., the exclusive attack actions described above), meaning that any of these other actions can be unique to a particular virtual object only, and other virtual objects cannot have such actions. In other words, in the embodiments of the present application, the first, second, and third operations of the first virtual object are all operations unique to the first virtual object, and other virtual objects cannot have the first, second, or third operations. The normal attack operations of the first virtual object are not operations unique to the first virtual object, and other virtual objects of the same type as the first virtual object can also have the same normal attack operations.

[0105] Selectively, the above at least two different actions further include a fourth action, which is a normal attack action.

[0106] In one possible embodiment, after the client terminal detects a touch control operation against the specific attack control, if the numerical value of the resources possessed by the first virtual object is smaller than a first threshold, the target operation is determined to be the fourth operation. Here, the first threshold may be less than or equal to the lower limit of the first range of possible values, and as shown in Figure 7, after the client terminal detects a touch control operation against the specific attack control 70, if the numerical value of the resources possessed by the first virtual object is smaller than the lower limit 71 of the first range of possible values ​​51, the target operation is the normal attack operation 72.

[0107] In another possible embodiment, after the client terminal detects a touch control operation for the specific attack control, if the numerical value of the resources possessed by the first virtual object is greater than the first threshold, and the touch control operation is a fourth operation attribute, the client terminal determines the target operation to be a normal attack operation. Here, the fourth operation attribute refers to any operation attribute different from the first, second, and third operation attributes.

[0108] Optionally, in embodiments of the present invention, notification items may be included around the specific attack control to ensure that the user accurately understands the operation attributes of the touch control operation and that the target operation performed by the first virtual object is an operation required by the user. For different operation attributes, the notification items have different display styles. Exemplarily, as shown in conjunction with Figure 8, a first notification item 81, a second notification item 82, and a third notification item 83 are placed around the specific attack control 80. If the touch control time corresponding to the touch control operation is 1 s, the first notification item 81 is highlighted; if the touch control time corresponding to the touch control operation is 2 s, the first notification item 81 and the second notification item 82 are highlighted; and if the touch control time corresponding to the touch control operation is 3 s, the first notification item 81, the second notification item 82, and the third notification item 83 are highlighted.

[0109] As described above, the target action is determined by a method that combines numerical values ​​and operational attributes. Of course, in other possible embodiments, in order to ensure flexibility and ease of operation, the client terminal may determine the target action based solely on the numerical values ​​of the resources possessed by the first virtual object. Optionally, the user interface may include a function on / off control, which is used to turn the resource collection function on or off. By controlling the on / off status of the resource collection function, the user can control the numerical values ​​of the resources possessed by the first virtual object and further control the target action corresponding to a specific attack control. Optionally, the specific steps are as follows:

[0110] 1: Display the function on / off control.

[0111] 2: When the resource collection function is turned on, the resource collection function for the first virtual object is turned off in response to a touch control operation on the function on / off control.

[0112] 3. When the resource collection function is turned off, the resource collection function for the first virtual object is turned on in response to a touch control operation on the function on / off control.

[0113] A function on / off control refers to a control used to turn a resource collection function on or off. Optionally, the function on / off control may be placed at any location in the user interface. In one possible embodiment, the client terminal displays the function on / off control simultaneously with displaying a screen corresponding to the virtual environment. In another possible embodiment, to ensure interface simplicity, the function on / off control is hidden within the user interface, and the client terminal displays the function on / off control after receiving a display command for it. Optionally, the display command may be triggered and generated by the user within the display area of ​​the function on / off control, which may be any area in the user interface. In another possible embodiment, the function on / off control is triggered and generated by the user within the touch control area of ​​the function on / off control; that is, when the client terminal detects a touch control operation on the function on / off control, it generates a display command for the function on / off control and then displays the function on / off control in the user interface. Here, the touch control area may be the area surrounding the function on / off control.

[0114] In the embodiments of the present invention, when the resource collection function is turned on, the client terminal detects a touch control operation on the function on / off control and turns off the resource collection function for the first virtual object. At this time, the first virtual object cannot collect the resources, and the target operation corresponding to the specific attack control is in a fixed state. When the resource collection function is turned off, the client terminal detects a touch control operation on the function on / off control and turns on the resource collection function for the first virtual object. At this time, the first virtual object can collect the resources, and the target operation corresponding to the specific attack control is in a changing state.

[0115] As shown in Figure 9, a flowchart of a method for controlling a virtual object provided by another embodiment of the present invention is shown. The method can be applied in a terminal, and for example, the entity executing each step may be terminal 10 (hereinafter referred to as the "client terminal") in the execution environment of the application program shown in Figure 1. The method may include the following steps (901-905).

[0116] Step 901: Display the display screen corresponding to the virtual environment and specific attack controls.

[0117] Step 902: In response to a touch control operation on a specific attack control, determine a target operation from at least two different operations based on the resources possessed by the first virtual object.

[0118] Step 903: Control the first virtual object to perform the target action.

[0119] Steps 901-903 described above are the same as steps 201-203 in the embodiment shown in Figure 2. For details, please refer to the embodiment in Figure 2, and they will not be described in detail here.

[0120] Step 904: Determine the resource reduction value for the first virtual object.

[0121] The resource depletion value is used to indicate the resources that the first virtual object consumes to perform a target operation. Selectively, the resource depletion values ​​corresponding to different target operations may be the same or different. In the embodiments of the present invention, the client terminal controls the first virtual object to perform the target operation and then obtains the resource depletion value of the first virtual object.

[0122] In one possible embodiment, the client terminal obtains the resource reduction value based on the target operation, i.e., the resource reduction value corresponding to the same target operation is fixed and does not change.

[0123] In another possible embodiment, the client terminal obtains the resource reduction value based on the effect of the target action, i.e., the resource reduction value corresponding to the same target action is the change value. Here, the effect is used to indicate the impact on the virtual environment or virtual objects after the target action is performed, and the effect includes at least one of the following: the quantity of targets of the target action, the combat power of the targets of the target action, the virtual resources possessed by the targets of the target action, and the hit point loss value of the targets due to the target action.

[0124] Step 905: Update the resource values ​​of the first virtual object based on the resource reduction value.

[0125] In the embodiment of the present invention, after obtaining the resource reduction value, the client terminal updates the resource value of the first virtual object based on the resource reduction value.

[0126] As described above, the technical means provided by the embodiment of the present application allows a first virtual object to be controlled via a specific attack control to perform at least two different actions, enabling one control to control different actions, improving the simplicity of the interface display, and the specific attack control's action differs when the first virtual object has different resources. This gives the specific attack control versatility, and the user can control the action of the specific attack control by controlling the resources possessed by the first virtual object, resulting in flexible operation, and ensuring fairness in game matches by consuming the resources possessed by the first virtual object after the target operation is executed.

[0127] The following are apparatus embodiments of the present application, which can be used to carry out the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.

[0128] As shown in Figure 10, a block diagram of a control device for a virtual object provided in one embodiment of the present invention is shown. The device has the function of implementing the control method for the virtual object, and this function may be implemented by hardware or by the hardware executing appropriate software. The device may be a terminal or installed in a terminal. The device 1000 may include a control display module 1010, an operation determination module 1020, and an operation execution module 1030.

[0129] The control display module 1010 is used to display a display screen corresponding to the virtual environment and specific attack controls, and the specific attack controls are used to control the first virtual object in the virtual environment and cause it to perform at least two different actions.

[0130] The operation determination module 1020 is used to determine a target operation from among the at least two different operations based on the resources possessed by the first virtual object, in response to a touch control operation for the specific attack control, where the resources refer to items that need to be consumed to perform the operation corresponding to the specific attack control.

[0131] The operation execution module 1030 is used to control the first virtual object and execute the target operation.

[0132] In an exemplary embodiment, as shown in Figure 11, the operation determination module 1020 further includes a numerical acquisition unit 1021 and an operation determination unit 1022.

[0133] The numerical acquisition unit 1021 is used to acquire the numerical values ​​of the resources possessed by the first virtual object.

[0134] The action determination unit 1022 is used to determine the target action from among the at least two different actions, based on the range of possible values ​​to which the above numerical value belongs.

[0135] In an exemplary embodiment, the above-mentioned at least two different operations include a first operation, a second operation, and a third operation, wherein the operation determination unit 1022 is used to determine the target operation as the first operation when the numerical value falls within a first range of possible values, to determine the target operation as the second operation when the numerical value falls within a second range of possible values, and to determine the target operation as the third operation when the numerical value falls within a third range of possible values, where the first range of possible values, the second range of possible values, and the third range of possible values ​​are independent of each other and have no common parts.

[0136] In an exemplary embodiment, as shown in Figure 11, the operation determination module 1020 further includes an attribute determination unit 1023.

[0137] The numerical acquisition unit 1021 described above is used to acquire the numerical values ​​of the resources possessed by the first virtual object described above.

[0138] The attribute determination unit 1023 is used to determine the operation attributes of the touch control operation described above.

[0139] The above-mentioned operation determination unit 1022 is further used to determine the target operation from among the above-mentioned at least two different operations based on the above-mentioned numerical values ​​and operation attributes.

[0140] In an exemplary embodiment, the above-mentioned at least two different operations include a first operation, a second operation, and a third operation, wherein the operation determination unit 1023 determines the target operation as the first operation if the numerical value falls within a first range of possible values ​​and the operation attribute is a first operation attribute, determines the target operation as the second operation if the numerical value falls within a second range of possible values ​​and the operation attribute is a first operation attribute, and determines the target operation as the second operation if the numerical value falls within a second range of possible values ​​and the operation attribute is a second operation attribute In some cases, the above target action is determined as the first action, and if the above numerical value falls within the third range of possible values ​​and the above operation attribute is the first operation attribute, the above target action is determined as the third action, and if the above numerical value falls within the third range of possible values ​​and the above operation attribute is the second operation attribute, the above target action is determined as the first action, and if the above numerical value falls within the third range of possible values ​​and the above operation attribute is the third operation attribute, the above target action is determined as the second action.

[0141] In an exemplary embodiment, at least two different operations include a first operation, a second operation, and a third operation, wherein the operation determination unit 1023 determines the target operation as the first operation if the operation attribute is a first operation attribute and the numerical value is greater than a first threshold, determines the target operation as the second operation if the operation attribute is a second operation attribute and the numerical value is greater than a second threshold, and determines the target operation as the second operation if the operation attribute is a second operation attribute and the numerical value is less than a second threshold and greater than a first threshold. This is used to determine the target action as the first action, and if the operation attribute is the third operation attribute and the numerical value is greater than the third threshold, the target action is determined as the third action; if the operation attribute is the third operation attribute and the numerical value is less than the third threshold and greater than the second threshold, the target action is determined as the second action; and if the operation attribute is the third operation attribute and the numerical value is less than the second threshold and greater than the first threshold, the target action is determined as the first action.

[0142] In an exemplary embodiment, the first action described above is used to counterattack the attack action of the second virtual object; the second action described above is used to reduce the movement speed of the second virtual object when the hit points of the second virtual object are reduced, and to increase the hit points of the first virtual object; and the third action described above is used to clear the hit points of the second virtual object when the hit points of the second virtual object are less than the target value, where the second virtual object refers to a virtual object located in a different faction from the first virtual object.

[0143] In an exemplary embodiment, the above-mentioned at least two different operations further include a fourth operation, the fourth operation being a normal attack operation, and the operation determination module 1020 is further used to determine the target operation as the fourth operation when the numerical value is smaller than a first threshold, or to determine the target operation as the fourth operation when the numerical value is larger than a first threshold and the operation attribute of the touch control operation is a fourth operation attribute.

[0144] In an exemplary embodiment, as shown in Figure 11, the device 1000 further includes a function-off module 1040 and a function-on module 1050.

[0145] The control display module 1010 described above is further used to display a function on / off control, and the function on / off control is used to turn the resource collection function on or off.

[0146] The function off module 1040 is used to turn off the resource collection function for the first virtual object in response to a touch control operation on the function on / off control when the resource collection function is turned on.

[0147] The function-on module 1050 is used to turn on the resource collection function for the first virtual object in response to a touch control operation on the function on / off control when the resource collection function is in the off state.

[0148] In an exemplary embodiment, as shown in Figure 11, the apparatus 1000 further includes a resource update module 1060.

[0149] The resource update module 1060 is used to determine the resource increase value of the first virtual object when it detects a resource increase operation, and to update the resource values ​​of the first virtual object based on the resource increase value.

[0150] In an exemplary embodiment, the resource increase operation includes at least one of the following: the first virtual object killing the second virtual object; the first virtual object causing the second virtual object to lose hit points; the first virtual object performing a fifth action causing the second virtual object to lose hit points; the first virtual object performing the fifth action; a touch control operation of the operation control corresponding to the fifth action; and the first virtual object acquiring a resource increase tool, wherein the second virtual object refers to a virtual object located in a different faction from the first virtual object.

[0151] In an exemplary embodiment, the resource update module 1060 is used to determine the resource reduction value of the first virtual object and to update the resource value of the first virtual object based on the resource reduction value.

[0152] As described above, the technical means provided by the embodiment of the present invention makes it possible to control the first virtual object via a specific attack control to perform at least two different operations, enabling one control to control different operations. This eliminates the need to add new icons corresponding to operation controls in the user interface when increasing the number of operations of the first virtual object, thus avoiding interface congestion due to too many icons, reducing the probability of user errors, and ensuring accuracy of operations.

[0153] Furthermore, when a touch control operation on a specific attack control is detected, the system selects a different action that the first virtual object will attempt to perform from at least two different actions, based on the resources the first virtual object possesses. In other words, the action of the specific attack control differs when the first virtual object has different resources, thereby giving the specific attack control diversity. The user can control the action of the specific attack control by controlling the resources the first virtual object possesses, and can further achieve different actions using the specific attack control, resulting in flexible operation.

[0154] It is important to note that the apparatus provided in the above embodiments, when describing its function, only illustrates the division of each functional module as an example. In actual applications, the above functions are completed by assigning them to different functional modules as needed; that is, all or some of the functions described above are completed by dividing the internal structure of the device into different functional modules. Furthermore, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is described in detail in the method embodiments and not here.

[0155] As shown in Figure 12, a structural block diagram of a terminal 1200 provided in one embodiment of the present application is shown. The terminal 1200 may be an electronic device such as a mobile phone, tablet computer, game host, e-book reader, multimedia playback device, wearable device, and PC. The terminal is used to implement the virtual object control method provided in the above embodiment. The terminal may be terminal 10 in the game execution environment shown in Figure 1. Specifically, it is as follows.

[0156] Typically, terminal 1200 includes a processor 1201 and memory 1202.

[0157] The processor 1201 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 1201 can be implemented in at least one hardware form from among DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1201 may further include a main processor and a coprocessor, the main processor being used to process data in the wake-up state and also called a CPU (Central Processing Unit), and the coprocessor being a low-power processor used to process data in the standby state. In some embodiments, the processor 1201 integrates a GPU (Graphics Processing Unit), which is used for rendering and drawing content that needs to be displayed on a display screen. In some embodiments, the processor 1201 may further include an AI (Artificial Intelligence) processor, which is used to process computational operations related to machine learning.

[0158] The memory 1202 may include one or more computer-readable storage media, which may be non-temporary. The memory 1202 may further include high-speed random-access memory and non-volatile memory, which may be, for example, one or more magnetic disk storage devices or flash storage devices. In some embodiments, the non-temporary computer-readable storage media in the memory 1202 are used to store at least one instruction, at least one program, code set, or instruction set, which, by and arrangement, are executed by one or more processors, thereby realizing a method for controlling the virtual object.

[0159] In some embodiments, the terminal 1200 may further include a peripheral device interface 1203 and at least one peripheral device. The processor 1201, memory 1202, and peripheral device interface 1203 can be connected via a bus or signal lines. Each peripheral device can be connected to the peripheral device interface 1203 via a bus, signal lines, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1204, a display screen 1205, a camera assembly 1206, an audio circuit 1207, a positioning assembly 1208, and a power supply 1209.

[0160] As those skilled in the art will understand, the structure shown in Figure 12 does not constitute a limitation on terminal 1200 and may include more or fewer assemblies, or combinations of some assemblies, or employ different assembly arrangements.

[0161] In an exemplary embodiment, a computer-readable storage medium is provided, the storage medium storing at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set, when executed by a processor, enables a method for controlling the virtual object.

[0162] The computer-readable storage medium may optionally include ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives), or optical discs, etc. Here, random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).

[0163] In exemplary embodiments, a computer program product or computer program is further provided, which includes computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, thereby causing the computer device to perform the method of controlling the virtual object.

[0164] To be understood, “plural” as used herein refers to two or more. “And / or” describes the relationship between related objects and indicates that there may be three types of relationships; for example, A and / or B can represent three cases: A existing alone, A and B existing together, and B existing alone. The letter “ / ” generally indicates that the preceding and succeeding related objects are in an “or” relationship. Furthermore, the step numbers used herein illustrate only one possible order of execution between the steps, and in some other embodiments, the steps may not be performed in the order of the numbers; for example, two different numbered steps may be performed simultaneously, or two different numbered steps may be performed in the reverse order shown, and this is not limited to the embodiments of this application.

[0165] The foregoing are merely illustrative examples of the present invention and do not limit it. Any modifications, substitutions with equivalents, or improvements made within the spirit and principles of the present invention should all be included within the technical scope of the patented invention. [Explanation of symbols]

[0166] 10 devices 20 servers 30 Specific Attack Controls 31 Range 32 1st action 33 Range 34 Second operation 35 range 36 3rd action 50 Specific Attack Controls 51 Range 52 Single-click operation 53 1st action 54 range 55 2nd operation 56. Double-click operation 57 Range 58 3rd action 59 Triple-click operation 60 Specific Attack Controls 61 Single-click operation 62 First threshold 63 1st action 64. Double-click operation 65 Second threshold 66 2nd action 67 Triple-click operation 68 Third threshold 69 3rd action 70 Specific Attack Controls 71 Lower limit 72 Attack Actions 80 Specific Attack Controls 81 First notification item 82 Second notification item 83 Third notification item 1000 devices 1010 Control Display Module 1020 Operation Determination Module 1021 Numerical acquisition unit 1022 Operation Determination Unit 1023 Attribute Determination Unit 1030 Operation Execution Module 1040 Function Off Module 1050 Function-on-Module 1060 Resource Update Module 1200 terminals 1201 Processor 1202 memory 1203 Peripheral device interface 1204 Radio frequency circuit 1205 Display Screen 1206 Camera Assembly 1207 Audio Circuit 1208 Positioning Assembly 1209 Power supply

Claims

1. A method for controlling a virtual object, which is executed by a terminal, A step of displaying a display screen, operation controls, and specific attack controls corresponding to a virtual environment, wherein the operation controls are icons used to unleash skills, and the specific attack controls are used to control a first virtual object in the virtual environment to perform at least two different actions, A step of updating the numerical value of the resources possessed by the first virtual object in response to a skill release operation via touch control operation on the aforementioned operation control, wherein the resources increase as the first virtual object performs the skill release operation. A step of determining a target action from among at least two different actions based on the updated numerical value of the resource in response to a touch control operation for the specified attack control, wherein if the numerical value of the resource is less than a first threshold, the target action is a normal attack that does not consume the resource. The steps include controlling the first virtual object to perform the target operation and Methods that include...

2. The step of determining the target operation from among the at least two different operations based on the resources possessed by the first virtual object is: The steps include obtaining the numerical value of the resource possessed by the first virtual object, A step of determining the target operation from among the at least two different operations based on the range of possible values ​​to which the aforementioned numerical value belongs. The method according to claim 1, including the method described in claim 1.

3. The aforementioned at least two different operations further include a first operation, a second operation, and a third operation. The step of determining the target operation from among the at least two different operations, based on the range of possible values ​​to which the aforementioned numerical value belongs, The step of determining the target action as the first action when the numerical value falls within the range of first possible values, The step of determining the target action as the second action when the aforementioned numerical value falls within a second range of possible values, If the aforementioned numerical value falls within a third range of possible values, the step of determining the target action as the third action is as follows: Includes, The method according to claim 2, wherein the range of the first possible value, the range of the second possible value, and the range of the third possible value are independent of each other and have no common part.

4. The step of determining a target operation from among the at least two different operations based on the resources possessed by the first virtual object is: The steps include obtaining the numerical value of the resource possessed by the first virtual object, The steps include determining the operation attributes of the touch control operation, A step of determining the target operation from among the at least two different operations based on the numerical values ​​and the operation attributes. The method according to claim 1, including the method described in claim 1.

5. The steps of determining the target operation from among the at least two different operations based on the numerical value and the operation attribute are as follows: The step of determining the target operation as the first operation when the numerical value falls within a first range of possible values ​​and the operation attribute is a first operation attribute, The steps include determining the target operation as the second operation if the numerical value falls within a second range of possible values ​​and the operation attribute is the first operation attribute, and determining the target operation as the first operation if the numerical value falls within a second range of possible values ​​and the operation attribute is the second operation attribute, The steps include determining the target operation as the third operation if the numerical value falls within the third range of possible values ​​and the operation attribute is the first operation attribute, determining the target operation as the first operation if the numerical value falls within the third range of possible values ​​and the operation attribute is the second operation attribute, and determining the target operation as the second operation if the numerical value falls within the third range of possible values ​​and the operation attribute is the third operation attribute. The method according to claim 4, including the method described in claim 4.

6. The aforementioned at least two different operations include a first operation, a second operation, and a third operation. The step of determining the target operation from among the at least two different operations based on the numerical values ​​and the operation attributes is: The step of determining the target operation as the first operation when the operation attribute is a first operation attribute and the numerical value is greater than the first threshold, The steps include determining the target operation as the second operation if the operation attribute is a second operation attribute and the numerical value is greater than the second threshold, and determining the target operation as the first operation if the operation attribute is a second operation attribute and the numerical value is less than the second threshold and greater than the first threshold, The steps include determining the target operation as the third operation if the operation attribute is a third operation attribute and the numerical value is greater than the third threshold, determining the target operation as the second operation if the operation attribute is a third operation attribute and the numerical value is less than the third threshold and greater than the second threshold, and determining the target operation as the first operation if the operation attribute is a third operation attribute and the numerical value is less than the second threshold and greater than the first threshold. The method according to claim 4, including the method described in claim 4.

7. The first action described above is used to counterattack the attack action of the second virtual object. The second operation is used to decrease the hit points of the second virtual object, reduce the movement speed of the second virtual object, and increase the hit points of the first virtual object. The third operation is used to clear the hit points of the second virtual object when the hit points of the second virtual object are smaller than the target value. The second virtual object refers to a virtual object that belongs to a different faction than the first virtual object. The method according to claim 3, 5, or 6.

8. The aforementioned at least two different actions further include a fourth action, the fourth action being a normal attack action, The step of determining the target operation from among the at least two different operations based on the resources possessed by the first virtual object is: If the aforementioned value is smaller than the first threshold, the step of determining the target action as the fourth action, or If the numerical value is greater than the first threshold and the operation attribute of the touch control operation is the fourth operation attribute, the target operation is determined to be the fourth operation. The method according to claim 5 or 6, including the method described in claim 5 or 6.

9. A step of displaying a function on / off control, wherein the function on / off control is used to turn the resource collection function on or off; When the resource collection function is turned on, the step of turning off the resource collection function for the first virtual object in response to a touch control operation on the function on / off control, When the resource collection function is turned off, the step of turning on the resource collection function for the first virtual object in response to a touch control operation on the function on / off control. The method according to any one of claims 1 to 6, further comprising:

10. The aforementioned resources are The first virtual object kills the second virtual object, The first virtual object causes a loss of hit points for the second virtual object, and The first virtual object acquires a resource-increasing tool. It increases by at least one of the following: The second virtual object refers to a virtual object that belongs to a different faction than the first virtual object. The method according to claim 1.

11. After the step of controlling the first virtual object to perform the target operation, The steps include determining the resource reduction value of the first virtual object, The steps include updating the value of the resources held by the first virtual object based on the resource reduction value, and The method according to any one of claims 1 to 6, further comprising:

12. A control device for virtual objects, A control display module used to display a display screen, operation controls, and specific attack controls corresponding to a virtual environment, wherein the operation controls are icons used to unleash skills, and the specific attack controls are used to control a first virtual object in the virtual environment to perform at least two different actions, An action determination module used to determine a target action from at least two different actions based on a numerical value of the resources possessed by the first virtual object in response to a touch control operation for the specified attack control, wherein if the numerical value of the resources is smaller than a first threshold, the target action is a normal attack that does not consume the resources, and An action execution module used to control the first virtual object and execute the target action, A resource update module that updates the numerical value of the resource in response to a skill release operation via touch control operation on the operation control, wherein the resource increases as the first virtual object performs the skill release operation. A device including a device.

13. A terminal comprising a processor and memory, wherein at least one program, code set, or instruction set is stored in the memory, and the processor loads and executes the at least one program, code set, or instruction set, thereby enabling the implementation of the method according to any one of claims 1 to 11.

14. A computer program that, when loaded and executed by a processor, carries out the method according to any one of claims 1 to 11.