Method for controlling virtual objects, control device for virtual objects, computer equipment, and computer program

By integrating flight and non-flight controls based on the virtual object's movement state, the method and apparatus simplify user operations and enhance interaction efficiency in games with virtual objects.

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

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-04-07
Publication Date
2026-03-25

AI Technical Summary

Technical Problem

The existing user interfaces for controlling virtual objects in games with flight capabilities are complex, leading to inefficient human-computer interaction due to the large number of controls required for managing flight altitude and movement.

Method used

A method and apparatus that display activity controls based on the current movement state of the virtual object, merging controls for flight and non-flight modes, allowing different control functions through a single activity control, thereby reducing the need for additional flight-specific controls and optimizing user interface space.

Benefits of technology

This approach simplifies user operations by integrating flight and non-flight controls, enhancing the efficiency of human-computer interaction and reducing the complexity of the user interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026509808000001_ABST
    Figure 2026509808000001_ABST
Patent Text Reader

Abstract

This application relates to the field of human-computer interaction and discloses a method, apparatus, device, storage medium, and program product for controlling virtual objects. The method includes the steps of: displaying a virtual environment screen (302); controlling a virtual object to make it active within the virtual environment (304); and displaying activity controls in the current form based on the current movement state of the virtual object (306), wherein the current movement state is either a flying state or a non-flying state, the current form corresponds to the current movement state, and the activity controls in the current form are for realizing control functions in the current movement state. According to the above method, activity controls in the flying state and activity controls in the non-flying state are merged, different control functions are performed by different forms of a single activity control, the need to additionally install activity controls for controlling flight is avoided, the space occupied by controls in the user interface is saved, user operation is facilitated, and the efficiency of human-computer interaction is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application claims priority based on a Chinese patent application filed on June 9, 2023, with an application number of 202310684450.6 and an invention title of "Method, Apparatus, Device, Storage Medium, and Program Product for Controlling Virtual Objects", and all of its content is incorporated herein by reference.

[0002] Embodiments of this application relate to the technical field of human-computer interaction, and in particular, to a method, apparatus, device, storage medium, and program product for controlling virtual objects.

Background Art

[0003] Currently, as the content and functions of games are gradually becoming richer, virtual objects with flight capabilities have emerged in games.

[0004] In related technologies, the user interface of game applications includes a joystick operation control and an altitude adjustment operation control. Here, the joystick operation control is for controlling the movement of virtual objects in the horizontal direction (including controls in each horizontal direction such as forward, backward, left, and right). The altitude adjustment operation control is for controlling the movement of virtual objects in the vertical direction (including controls in the two directions of up and down). When the user does not adjust the flight altitude of the virtual object through the altitude adjustment operation control, the virtual object flies while maintaining the current flight altitude.

[0005] However, in the configuration provided by the above related technologies, the number of controls in the user interface is large, the player's operation is complex and inconvenient, and the efficiency of human-computer interaction is low.

Summary of the Invention

Problems to be Solved by the Invention

[0006] This application provides a method, apparatus, device, storage medium, and program product for controlling virtual objects. Its configuration is as follows: [Means for solving the problem]

[0007] According to one aspect of the present invention, a method for controlling a virtual object is provided. The method is: A step of displaying a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment, The steps include controlling the virtual object and making it active within the virtual environment, The method includes the step of displaying activity controls for the current form based on the current movement state of the virtual object, wherein the current movement state is either flying or not flying, the current form corresponds to the current movement state, and the activity controls for the current form are for realizing control functions in the current movement state.

[0008] According to one aspect of the present invention, a control device for virtual objects is provided. The device is A display module that displays a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment, Includes a control module that controls the virtual object and makes it active within the virtual environment, The display module displays activity controls for the current state based on the current movement state of the virtual object, the current movement state being either flying or not flying, the current state corresponding to the current movement state, and the activity controls for the current state for realizing control functions in the current movement state.

[0009] In another aspect of the present invention, a computer device is provided comprising a processor and memory, wherein at least one computer program is stored in the memory, and when loaded and executed by the processor, the at least one computer program implements the method for controlling a virtual object described in the above aspect.

[0010] According to another aspect of the present invention, a computer-readable storage medium storing at least one computer program is provided, which, when loaded and executed by a processor, enables the virtual object control method described in the above aspect.

[0011] According to another aspect of the present application, a computer program product is provided which includes a computer program, the computer program being stored in a computer-readable storage medium, and when the computer program is read from the computer-readable storage medium and executed by the processor of a computer device, it causes the computer device to implement the virtual object control method described in the above aspect. [Effects of the Invention]

[0012] The beneficial effects of the configuration provided in this application include at least the following:

[0013] In this invention, when a virtual object is in flight mode, the activity controls for flight mode are displayed, and when the virtual object is not in flight mode, the activity controls for non-flight mode are displayed. In other words, this invention merges the activity controls for flight mode and non-flight mode, and performs different control functions through different forms of a single activity control, thereby avoiding the need to additionally install activity controls for flight control, saving control space in the user interface, making user operation easier, and improving the efficiency of human-computer interaction. [Brief explanation of the drawing]

[0014] [Figure 1] It is a schematic diagram of a method for controlling a virtual object provided in one exemplary embodiment of the present application. [Figure 2] It is a schematic diagram of the architecture of a computer system provided in one exemplary embodiment of the present application. [Figure 3] It is a flowchart of a method for controlling a virtual object provided in one exemplary embodiment of the present application. [Figure 4] It is a schematic diagram of the conversion process from a three-dimensional space to a two-dimensional image provided in one exemplary embodiment of the present application. [Figure 5] It is a flowchart of a method for controlling a virtual object provided in one exemplary embodiment of the present application. [Figure 6] It is a schematic diagram of activity control provided in one exemplary embodiment of the present application. [Figure 7] It is a schematic diagram of an activity control trigger provided in one exemplary embodiment of the present application. [Figure 8] It is a schematic diagram of an activity control trigger provided in one exemplary embodiment of the present application. [Figure 9] It is a schematic diagram of an activity control trigger provided in one exemplary embodiment of the present application. [Figure 10] It is a schematic diagram of an activity control trigger provided in one exemplary embodiment of the present application. [Figure 11] It is a schematic diagram of an activity control trigger provided in one exemplary embodiment of the present application. [Figure 12] It is a flowchart of a method for controlling a virtual object provided in one exemplary embodiment of the present application. [Figure 13] It is a block diagram of a control device for a virtual object provided in one exemplary embodiment of the present application. [Figure 14] It is a schematic diagram of the configuration of a computer device provided in one exemplary embodiment of the present application.

Modes for Carrying Out the Invention

[0015] First, terms related to the embodiments of the present application will be introduced.

[0016] Virtual environment: A virtual environment that is displayed (or provided) when an application is executed on a terminal. The virtual environment may be a simulation environment for the real world, a semi-simulation semi-virtual environment, or a pure virtual environment. The virtual environment may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment. The present application does not limit this. The following embodiments will be described by taking the case where the virtual environment is a three-dimensional virtual environment as an example.

[0017] Virtual object: Refers to an operable character in a virtual environment. This operable character may be a virtual person, a virtual animal, an anime character, etc. For example, it may be a person, an animal, a plant, a wall, a stone, a pool, etc. displayed in the virtual environment. The virtual object is controlled by the user. The virtual object can be classified by job, for example, a pharmacist, a magician, a doctor, etc., and can also be classified by category, for example, humans, beasts, immortals, etc. Each virtual object has its own shape and volume within the virtual environment and occupies a part of the space within the virtual environment.

[0018] Multiplayer online game: Refers to a game in which the game server can provide simultaneous online access for a large number of players, and is also called a large-scale multiplayer online role-playing game. The game provides a virtual world for the user, and the user can create a virtual object in the game, control the virtual object to perform corresponding activities, and thus complete the tasks corresponding to the activities. Virtual objects controlled by multiple users can form teams to jointly complete the same task or fight against other teams.

[0019] Joystick Control: By dragging this control, you can control the horizontal movement of virtual objects (including control in each horizontal direction such as forward, backward, left, and right).

[0020] X / Y / Z axes: In the game, X represents forward / backward, Z represents left / right, and Y represents up / down. When a virtual object moves along the X / Z axis, it means it moves horizontally in the forward / backward or left / right directions. When a virtual object moves along the Y axis, it means its altitude changes vertically.

[0021] Tap operation: One of the operation modes, where tapping refers to clicking a button / area on the screen with your finger and then quickly releasing it.

[0022] Long press operation: This is one of the operating modes, where you click on a button / area on the screen with your finger and keep pressing it without releasing it.

[0023] Slide operation: This is one of the operation modes in which you press and hold a button / area on the screen with your finger, then drag it in a certain direction for a short distance (beyond a certain range from the original click position) and release it.

[0024] Drag operation: This is one of the operation modes in which you press and hold a button / area on the screen with your finger, drag it in a certain direction for a certain distance for a while (beyond a certain range from the original click position), and continue to hold it down.

[0025] Embodiments of the present invention provide schematic diagrams of a method for controlling virtual objects. As shown in Figure 1, the method may be performed by computer equipment, including terminals.

[0026] For example, a computer device displays a virtual environment screen, which contains a virtual object 10 located in the virtual environment. The computer device controls the virtual object 10 to make it active within the virtual environment. Based on the current movement state of the virtual object 10, the computer device displays activity controls for the current state. The current state corresponds to the current movement state, and the activity controls for the current state are for realizing control functions in the current movement state.

[0027] Activity control refers to a control that combines sub-controls that provide different control functions. Alternatively, activity control refers to a control that can provide at least two control functions. For example, activity control can control virtual object 10 to make it dodge and teleport, or it can control virtual object 10 to make it fly.

[0028] The current movement state is either flying or non-flying. The movement state refers to the state of the virtual object 10. Alternatively, the movement state refers to the positional state of the virtual object 10 in the virtual environment. Alternatively, the movement state refers to the motion state of the virtual object 10 in the virtual environment. It is not limited to these.

[0029] The "flight state" refers to the state in which virtual object 10 is floating in the air.

[0030] The non-flying state may optionally include, but is not limited to, any one of the following: ground state, solitary action state, auxiliary item mounted state, cooled state, or berserk state. The embodiments of this application are not specifically limited thereto.

[0031] The ground state refers to the state in which virtual object 10 is located on the ground of the virtual environment. Alternatively, the ground state refers to the state in which there is a support for the feet of virtual object 10 in the virtual environment.

[0032] The "solitary action" state refers to a state in which the virtual object 10 is not carrying any auxiliary items. Alternatively, the "solitary action" state refers to a state in which the virtual object 10 is acting independently.

[0033] The auxiliary item mounted state refers to a state in which a virtual object 10 is carrying an auxiliary item while in action. Alternatively, the auxiliary item mounted state refers to a state in which the virtual object 10 is acting in accordance with the mounted auxiliary item. Optionally, an auxiliary item includes, but is not limited to, at least one of a virtual vehicle, a virtual pet, or virtual equipment. The embodiments of this application do not specifically limit this. Optionally, a virtual vehicle includes at least one of a virtual airplane, a virtual tank, a virtual armored vehicle, or a virtual motorcycle.

[0034] The cooled state refers to a state in which the virtual object 10 is moving at a constant speed. Alternatively, the cooled state refers to a state in which the virtual object 10 is acting in normal mode. Alternatively, the cooled state refers to a state in which there is an upper limit to the movement speed of the virtual object 10.

[0035] The berserk state refers to a state in which the virtual object 10 is moving at an accelerated speed. Alternatively, the berserk state refers to a state in which the virtual object 10 is acting in accelerated mode. Alternatively, the berserk state refers to a state in which the virtual object 10 has no upper limit on its movement speed and can accelerate indefinitely.

[0036] In some embodiments, when the current movement state of the virtual object 10 is the ground state, the computer equipment displays the dodge sub-control 20 in the activity control in response to the virtual object 10 being in the ground state, as shown in part (a) of Figure 1. Optionally, the ground state includes, but is not limited to, the state in which the virtual object 10 is standing on the ground, the state in which the virtual object 10 is standing on a stone, the state in which the virtual object 10 is running on grass, or the state in which the virtual object 10 is crawling on grass. Embodiments of the present application do not specifically limit this.

[0037] In this case, the dodge sub-control 20 is used to control the virtual object to perform a dodge action on the ground or to switch the state of the virtual object 10. Optionally, the dodge sub-control 20 can control the virtual object to perform a dodge action or switch the state of the virtual object 10 using different trigger methods. For example, a short press of the dodge sub-control 20 may control the virtual object 10 to perform a dodge action, while a long press of the dodge sub-control 20 may switch the state of the virtual object 10.

[0038] State switching refers to, but is not limited to, switching the state of the virtual object 10 from a flying state to a non-flying state, switching the state of the virtual object 10 from a non-flying state to a flying state, switching the state of the virtual object 10 from a ground state to a flying state, or switching the state of the virtual object 10 from a flying state to a ground state. The embodiments of this application do not specifically limit this.

[0039] In some embodiments, if the current movement state of the virtual object 10 is the flight state, the computer equipment displays the dodge sub-control 20 and flight sub-control 30 in the activity control in response to the virtual object 10 being in the flight state, as shown in part (b) of Figure 1.

[0040] The flight sub-control 30 is used to control the virtual object 10 to perform flight actions in the air. Optionally, the flight sub-control 30 includes an upward flight sub-control and a downward flight sub-control. The upward flight sub-control controls the virtual object 10 to fly upwards, and the downward flight sub-control controls the virtual object 10 to fly downwards.

[0041] Optionally, the flight behavior of the virtual object 10 in the air may include, but not be limited to, at least one of the following. The example given is flying upwards, but the same applies to flying downwards.

[0042] Based on the trigger operation of the upper flight sub-control, the virtual object 10 flies upward at a constant speed for a certain period of time. For example, with each trigger operation, the virtual object 10 flies upward at a speed of 5 m / s for 3 seconds.

[0043] Based on the trigger operation of the upper flight sub-control, the virtual object 10 accelerates upward flight. For example, with each trigger operation, the virtual object 10 accelerates upward by 5 m / s 2 It flies upwards for 3 seconds with this acceleration.

[0044] Based on the trigger operation of the upper flight sub-control, the virtual object 10 flies upwards by a certain distance. For example, with each trigger operation, the virtual object 10 flies upwards by 5 meters.

[0045] Based on the trigger operation of the upper flight sub-control, virtual object 10 slows down and flies upwards.

[0046] In some embodiments, a computer device controls a virtual object 10 to perform skills in different control functions in response to an activity-controlled trigger mechanism. The trigger mechanism includes, but is not limited to, at least one of the following: tap, long press, slide, scroll, double-click, and triple-click. Embodiments of the present application are not specifically limited thereto.

[0047] For example, a computer device, in response to a tap operation based on a dodge sub-control 20, controls a virtual object 10 to perform a dodge instantaneous movement within the virtual environment. A dodge instantaneous movement refers to a quick move to a location other than the current location. For example, before tapping the dodge sub-control 20, the virtual object 10 is displayed in area A, and after tapping the dodge sub-control 20, the virtual object 10 is displayed in area B. Here, areas A and B are different areas.

[0048] For example, the computer device, in response to a long press operation based on the dodge sub-control 20, controls the virtual object 10 to switch its movement state within the virtual environment. For example, if the virtual object 10 is in the ground state, the computer device, in response to a long press operation based on the dodge sub-control 20, controls the virtual object 10 to switch to the flight state, causing the virtual object 10 to jump up from its original standing position and float in the air. If the virtual object 10 is in the flight state, the computer device, in response to a long press operation based on the dodge sub-control 20, controls the virtual object 10 to switch to the ground state, causing it to descend to the ground from its original floating position.

[0049] For example, the computer equipment controls the virtual object 10 to fly upwards in the virtual environment in response to an upslide operation based on the dodge sub-control 20 and the up flight sub-control. The computer equipment controls the virtual object 10 to fly downwards in the virtual environment in response to a downslide operation based on the dodge sub-control 20 and the down flight sub-control.

[0050] A virtual object 10 in flight can have a wider range of movement directions compared to a virtual object 10 in ground state. For example, a virtual object 10 in ground state can only move within a two-dimensional plane on the ground, but a virtual object 10 in flight state can move in three-dimensional space, moving forward, backward, left, right, and up and down.

[0051] In some embodiments, when the current movement state of the virtual object is an independent action state (non-flying state), a sub-control for controlling the virtual object 10 itself is displayed. When the current movement state of the virtual object is a flying state, a sub-control for controlling the virtual object 10 itself and a sub-control for controlling the virtual object 10 to perform flying actions are displayed. For example, when the current movement state is an independent action state, the virtual object 10 in the independent action state acts independently of the virtual object 10 itself.

[0052] In some embodiments, when the current movement state of the virtual object is an auxiliary item mounted state (non-flying state), a sub-control for controlling the auxiliary item is displayed, and when the current movement state of the virtual object is a flying state, a sub-control for controlling the auxiliary item and a sub-control for controlling the virtual object 10 to perform flying actions are displayed.

[0053] In some embodiments, when the virtual object is currently in a cooled state (non-flying state), a sub-control is displayed to control the virtual object 10 to move at a constant speed. When the virtual object is currently in a flying state, a sub-control is displayed to control the virtual object 10 to move at a constant speed, and a sub-control is displayed to control the virtual object to perform flight-like actions. For example, in the cooled state, the virtual object 10 moves within a certain speed range or moves at a constant speed. For example, the virtual object 10 is tracked using a running method, and the maximum speed of the virtual object 10 is 2 m / s.

[0054] In some embodiments, when the virtual object's current movement state is a ferocious state (non-flying state), sub-controls are displayed to control and accelerate the virtual object 10. When the virtual object's current movement state is a flying state, sub-controls are displayed to control and accelerate the virtual object 10, as well as sub-controls to control the virtual object to perform flying actions. For example, in a ferocious state, the virtual object 10 moves within a speed range with no upper limit, or moves while constantly accelerating. For example, in a ferocious state, the virtual object 10 is tracked in a running manner, and the speed of the virtual object 10 is constantly increasing with no upper limit.

[0055] In summary, this invention displays activity controls for flight mode when the virtual object is in flight mode, and activity controls for non-flight mode when the virtual object is not in flight mode. That is, this invention integrates activity controls for flight mode and non-flight mode, performing different control functions through different forms of a single activity control, avoiding the need to install additional activity controls for flight control, saving control space in the user interface, facilitating user operation, and improving the efficiency of human-computer interaction.

[0056] Figure 2 shows a block diagram of a computer system provided in one exemplary embodiment of the present application. This computer system 100 includes a first terminal 110, a server 120, and a second terminal 130.

[0057] In the first terminal 110, a client 111 that supports a virtual environment is installed and executed, and this client 111 may be a multiplayer online battle program. When the client 111 is executed in the first terminal 110, the user interface of the client 111 is displayed on the screen of the first terminal 110. This client 111 may be any one of the following: a battle royale shooting game, a virtual reality (VR) application program, an augmented reality (AR) program, a 3D map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online battle arena game (MOBA), or a simulation game (SLG). In this embodiment, the case where the client 111 is a MOBA game will be used as an example. The first terminal 110 is a terminal used by the first user 112. The first user 112 uses the first terminal 110 to control and activate a first virtual object located in the virtual environment, or to manipulate virtual items owned by a second virtual object. The first virtual object can be called a virtual object controlled by the first user 112. The first user 112 can perform operations such as assembly, disassembly, and unmounting on virtual items owned by the first virtual object. This invention is not limited to these operations. Schematically, the first virtual object is a virtual character, such as a simulation character or an anime character.

[0058] In the second terminal 130, a client 131 that supports the virtual environment is installed and executed, and this client 131 may be a multiplayer online battle program. When the client 131 is executed in the second terminal 130, the user interface of the client 131 is displayed on the screen of the second terminal 130. The client may be any one of the following: a battle royale shooting game, a VR application program, an AR program, a 3D map program, a virtual reality game, an augmented reality game, an FPS, a TPS, a MOBA, or an SLG. In this embodiment, the case where the client is a MOBA game will be used as an example. The second terminal 130 is a terminal used by the second user 113. The second user 113 uses the second terminal 130 to control and activate a second virtual object located in the virtual environment, or to manipulate virtual items owned by the second virtual object. The second virtual object can be called a virtual object controlled by the second user 113. Schematically, the second virtual object is a virtual character, such as a simulation character or an anime character.

[0059] Optionally, the first virtual object and the second virtual object may reside in the same virtual environment. Optionally, the first virtual object and the second virtual object may belong to the same faction, the same team, the same organization, be friends, or have temporary communication rights with each other. Optionally, the first virtual object and the second virtual object may belong to different factions, different teams, different organizations, or be in a hostile relationship.

[0060] Optionally, the clients installed on the first terminal 110 and the second terminal 130 are the same, or the clients installed on these two terminals are the same type of client on different operating system platforms (Android or iOS). The first terminal 110 can generally refer to one of several terminals, and the second terminal 130 can generally refer to another of several terminals. In this embodiment, only the first terminal 110 and the second terminal 130 will be described as examples. The types of devices of the first terminal 110 and the second terminal 130 may be the same or different. The types of devices include at least one of the following: smartphone, tablet computer, e-reader, MP3 player, MP4 player, laptop portable computer, and desktop computer.

[0061] Although only two terminals are shown in Figure 2, in different embodiments, there may be multiple other terminals 140 that can access the server 120. Optionally, there may also be one or more terminals 140 that correspond to developers, and these terminals 140 have a client development and editing platform that supports the virtual environment installed. Developers can edit and update clients on terminal 140 and transmit the updated client installation package to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 can download the client installation package from the server 120 to perform client updates.

[0062] The first terminal 110, the second terminal 130, and the other terminals 140 are connected to the server 120 via a wireless or wired network.

[0063] Server 120 includes at least one of the following: a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 120 provides backend services to clients that support a 3D virtual environment. Optionally, Server 120 handles primary computing tasks and terminals handle secondary computing tasks, or Server 120 handles secondary computing tasks and terminals handle primary computing tasks, or a distributed computing architecture is used between Server 120 and terminals for collaborative computing.

[0064] In a schematic example, server 120 includes a processor 122, a user account database 123, a battle service module 124, and a user input / output interface (I / O interface) 125. Here, the processor 122 loads instructions stored in server 120 and processes data in the user account database 123 and the battle service module 124. The user account database 123 stores data for user accounts used by the first terminal 110, the second terminal 130, and other terminals 140, such as the user account's profile picture, nickname, combat power index, and the service area where the user account is located. The battle service module 124 provides multiple battle rooms for user battles, such as 1v1 battles, 3v3 battles, 5v5 battles, etc. The user I / O interface 125 establishes communication with the first terminal 110 and / or the second terminal 130 via a wireless or wired network to exchange data.

[0065] Figure 3 is a flowchart of a method for controlling a virtual object provided in one exemplary embodiment of the present application. The method may be performed by computer equipment, which includes a terminal or a client on a terminal. The method includes the following steps:

[0066] Step 302 displays the virtual environment screen.

[0067] The virtual environment screen is used to display a view of the virtual environment. The virtual environment screen includes virtual objects located within the virtual environment. Optionally, the virtual environment screen is a view of the virtual environment. The image plane of the virtual environment screen is formed by obtaining model information of the 3D virtual model of the virtual environment and rendering the 3D virtual model as a screenshot.

[0068] The virtual environment is the environment in which virtual objects within a virtual world are located while an application program is running on the terminal. Optionally, in the embodiments of this invention, the virtual environment is observed within the virtual world by a camera model.

[0069] Step 304 involves controlling the virtual object and making it active within the virtual environment.

[0070] A virtual object refers to a virtual object controlled by the account logged into the device.

[0071] An object (also called a user) controls a virtual object and makes it act within the virtual environment through operational controls. An object can control and make the virtual object act by pressing buttons on one or more operational controls. This activity includes, but is not limited to, adjusting body posture, walking, running, jumping, riding, driving, aiming, picking up, and using throwing items. The embodiments of this application are not limited thereto.

[0072] Optionally, an object can control a virtual object to activate skills or use items by pressing buttons on one or more control buttons. An object can also control a virtual object through signals generated by long-pressing, clicking, double-clicking, and / or sliding on a touchscreen.

[0073] A method for optionally controlling and activating a virtual object includes: controlling and activating the virtual object using a virtual joystick on a terminal interface; controlling and activating the virtual object using an external device connected to the terminal (e.g., a steering wheel, VR glasses, VR helmet, etc.); controlling and activating the virtual object using voice; and controlling and activating the virtual object using tactile control. This application does not specifically limit the methods for controlling and activating a virtual object.

[0074] Step 306 displays the activity controls for the current form based on the current movement state of the virtual object.

[0075] The current movement state is either flying or non-flying, the current form corresponds to the current movement state, and the activity control of the current form is for realizing the control functions of the current movement state. The flying state refers to the state in which the virtual object is floating in the air.

[0076] An activity control includes at least two sub-controls. Each form of the activity control displays at least one of the at least two sub-controls. The number of sub-controls displayed differs between the different forms of the activity control. Each sub-control is designed to implement at least one control function.

[0077] Activity control is a combination of controls that provide different control functions. Alternatively, activity control refers to controls that can provide at least two control functions. For example, activity control can control a virtual object to make it dodge and teleport, or it can control a virtual object to make it fly. Movement state refers to a state relating to a virtual object. Alternatively, movement state refers to the positional state of a virtual object in a virtual environment. Alternatively, movement state refers to the motion state of a virtual object in a virtual environment.

[0078] Optionally, non-flying states include, but are not limited to, at least one of the following: ground state, solitary action state, auxiliary item mounted state, cooled state, and berserk state. The embodiments of this application are not specifically limited thereto.

[0079] The ground state refers to the state in which a virtual object is located on the ground of the virtual environment. Alternatively, the ground state refers to the state in which the virtual object has support in the virtual environment. For example, when a virtual object is in the ground state, only the dodge sub-control in the activity controls is displayed on the virtual environment screen, and the dodge sub-control is used to control the virtual object and make it dodge on the ground. When a virtual object is in the flight state, both the dodge sub-control and the flight sub-control in the activity controls are displayed on the virtual environment screen, and the dodge sub-control is used to control the virtual object and make it dodge in the air, while the flight sub-control is used to control the virtual object and make it fly in the air.

[0080] In summary, this invention displays activity controls for flight mode when the virtual object is in flight mode, and activity controls for non-flight mode when the virtual object is not in flight mode. That is, this invention integrates activity controls for flight mode and non-flight mode, performing different control functions through different forms of a single activity control, avoiding the need to install additional activity controls for flight control, saving control space in the user interface, facilitating user operation, and improving the efficiency of human-computer interaction.

[0081] Figure 4 is a schematic diagram of the transformation process from three-dimensional space to a two-dimensional image provided in one exemplary embodiment of the present invention. Figure 4 shows the process of mapping a feature point P in three-dimensional space 401 to a feature point p' in the imaging plane 403 (also called the image coordinate system or pixel coordinate system). The coordinates of the feature point p in three-dimensional space 401 are in three-dimensional form, and the coordinates of the feature point p' in the imaging plane 403 are in two-dimensional form. Three-dimensional space 401 is a three-dimensional space corresponding to a virtual environment. The camera plane 402 is determined by the orientation of the camera model. The camera plane 402 is a plane perpendicular to the camera model's imaging direction. The imaging plane 403 and the camera plane 402 are parallel to each other. The imaging plane 403 is the plane on which the virtual environment located within the field of view is imaged by the camera model when observing the virtual environment.

[0082] Figure 5 is a flowchart of a method for controlling a virtual object provided in one exemplary embodiment of the present application. The method may be performed by computer equipment, including a terminal. The method includes the following steps:

[0083] Step 502 displays the virtual environment screen.

[0084] The virtual environment screen is used to display a view of the virtual environment.

[0085] The virtual environment screen contains virtual objects located within the virtual environment.

[0086] Step 504 involves controlling the virtual object and making it active within the virtual environment.

[0087] A virtual object refers to a virtual object controlled by the account logged into the device.

[0088] The object controls the virtual object and makes it act within the virtual environment through operation controls. The object can control and make the virtual object act by pressing buttons on one or more operation controls. This activity includes, but is not limited to, adjusting body posture, walking, running, jumping, riding, driving, aiming, picking up, and using throwing items. The embodiments of the present application are not limited thereto.

[0089] In step 506, in response to the virtual object being in a non-flying state, the first function sub-control in the activity control is displayed.

[0090] The first function sub-control is for controlling the virtual object to perform basic actions. Optionally, when the non-flight state is a ground state, the basic actions include, but are not limited to, at least one of the following: dodge, somersault, high jump, and back somersault. The embodiments of this application are not limited to these. When the non-flight state is a standalone action state, the basic actions refer to actions performed by the virtual object itself, such as running. When the non-flight state is a cooling state, the basic actions refer to actions that control the virtual object to move within a certain speed range, or actions that control the virtual object to move at a constant speed. For example, the virtual object tracks using a running method, and the maximum speed of the virtual object is 2 m / s.

[0091] Activity control is a combination of sub-controls that provide different control functions. Alternatively, activity control refers to a control that can provide at least two control functions. For example, activity control can control a virtual object to make it dodge and teleport, or it can control a virtual object to make it fly.

[0092] As an example, as shown in the schematic diagram of the activity control in Figure 6, the activity control includes a first function sub-control 601 and a second function sub-control 602, each performing a different function. For example, the first function sub-control 601 is a dodge sub-control, and the second function sub-control 602 is a flight sub-control. The dodge sub-control controls the virtual object to perform a dodge action, and the flight sub-control controls the virtual object to perform a flight action. In the embodiment of the present application, the control that controls the dodge function and the control that controls the flight function are merged, and the flight effect of the virtual object is realized without adding any further controls for controlling the flight function. Optionally, the first function sub-control 601 and the second function sub-control 602 in the activity control are displayed according to the state of the virtual object. For example, when the virtual object is in a ground state, only the first function sub-control 601 in the activity control is displayed, i.e., only the dodge sub-control is displayed. When a virtual object is in flight, the first function sub-control 601 and the second function sub-control 602 in the activity control are displayed simultaneously, that is, the dodge sub-control and the flight sub-control are displayed simultaneously.

[0093] Taking the example of a non-flying state being the ground state, the ground state refers to a state where a virtual object is located on the ground of the virtual environment. Alternatively, the ground state refers to a state where the virtual object has support in the virtual environment.

[0094] Exemplary, a computer device displays a dodge sub-control in its activity control in response to a virtual object being in a ground state. Optionally, the ground state includes, but is not limited to, a virtual object standing on the ground, a virtual object standing on a stone, a virtual object running on grass, or a virtual object crawling on grass. The embodiments of this application are not specifically limited thereto.

[0095] The dodge sub-control is used to control virtual objects, enabling them to perform dodge actions or switch states.

[0096] State switching refers to, but is not limited to, switching the state of a virtual object from a flying state to a non-flying state, from a non-flying state to a flying state, from a ground state to a flying state, or from a flying state to a ground state. The embodiments of this application do not specifically limit this.

[0097] In some embodiments, a virtual object is controlled to execute a skill corresponding to the first function subcontrol in an activity control in response to a first trigger method based on a first function subcontrol. Optionally, the first trigger method includes, but is not limited to, at least one of a tap, long press, slide, scroll, double-click, or triple-click operation. Embodiments of the present application are not specifically limited thereto. Exemplarily, a computer device controls a virtual object to perform a dodge instantaneous movement within a virtual environment in response to a tap operation based on a dodge subcontrol.

[0098] Dodge teleportation refers to quickly moving to a location other than the current location. For example, before tapping the dodge sub-control, the virtual object is displayed in area A, and after tapping the dodge sub-control, the virtual object is displayed in area B. Here, areas A and B are different areas. Optionally, the distance of dodge teleportation is constant; for example, each time the dodge sub-control is tapped, the virtual object teleports 10 meters.

[0099] The method for determining the direction of the dodge teleportation, at the discretion of the player, is as follows:

[0100] If the direction of the dodge movement is not determined by joystick control, the direction of the dodge movement will be the direction corresponding to the forward direction of the virtual object's current position. That is, the dodge movement will be forward.

[0101] If the direction of the dodge movement is not determined by joystick control, the direction of the dodge movement will be the opposite direction to the direction forward of the virtual object's standing position. That is, the dodge movement will be backward.

[0102] If the direction of the dodge movement is not determined by joystick control, the direction of the dodge movement will be a direction that is at a certain angle to the orientation of the virtual object's standing position.

[0103] If the direction of the dodge movement is determined by the joystick control, the direction of the dodge movement will be the direction determined by the joystick control. In response to the dodge sub-control accepting a short press, it controls the virtual object to perform a dodge action along the direction corresponding to the joystick control.

[0104] As an example, Figure 7 shows a schematic diagram of an activity control trigger. As shown in Figure 7(a), a virtual environment screen is displayed within the computer device, and the virtual environment screen includes a virtual object 701 located in the virtual environment. When the virtual object 701 is in the ground state, only the dodge sub-control 702 in the activity control is displayed. By tapping the dodge sub-control 702, the virtual object 701 performs a dodge action within the virtual environment, as shown in Figure 7(b). Optionally, the direction of the dodge action is either the direction the virtual object 701's face is facing, or the opposite direction.

[0105] In one embodiment, the activity control switches the current movement state of the virtual object in response to a trigger operation. The first function sub-control switches the current movement state of the virtual object in response to a long press operation. For example, if the virtual object is in flight, the first function sub-control controls the virtual object to perform a descent in response to a long press operation, and if the virtual object is not in flight, the first function sub-control controls the virtual object to perform a takeoff in response to a long press operation.

[0106] For example, a computer device can control a virtual object and switch its movement state within a virtual environment in response to a long press operation based on a dodge sub-control.

[0107] For example, if a virtual object is in a ground state, the computer equipment will respond to a long press operation based on the dodge sub-control by controlling the virtual object to switch it to a flying state, causing the virtual object to jump up from its original standing position and float in the air. If a virtual object is in a flying state, the computer equipment will respond to a long press operation based on the dodge sub-control by controlling the virtual object to switch it back to a ground state, causing it to descend to the ground from its original floating position.

[0108] As an example, Figure 8 shows a schematic diagram of the activity control trigger. As shown in part (a) of Figure 8, a virtual environment screen is displayed within the computer device, and the virtual environment screen includes a virtual object 801 located in the virtual environment. When the virtual object 801 is in the ground state, only the dodge sub-control 802 in the activity control is displayed. By pressing and holding the dodge sub-control 802, the virtual object 801 switches its movement state within the virtual environment, as shown in part (b) of Figure 8. After the movement state of the virtual object 801 is switched, the virtual object 801 is in the flight state, floating in the air, and the dodge sub-control 802 and flight sub-control 803 in the activity control are displayed simultaneously. By triggering the flight sub-control 803, the virtual object 801 can be controlled to perform flight actions.

[0109] In step 508, in response to the virtual object being in flight, the first and second function subcontrols in the activity control are displayed.

[0110] The second function sub-control is used to control the virtual object and perform flight-related actions in the flight state. The flight state refers to the state in which the virtual object is floating in the air. For example, in response to the virtual object being in the flight state, the computer equipment simultaneously displays the dodge sub-control (first function sub-control) and the flight sub-control (second function sub-control) in the activity control.

[0111] Flight subcontrols are used to control virtual objects and make them fly in the air. Optionally, flight subcontrols include upper flight subcontrols and lower flight subcontrols. Upper flight subcontrols control virtual objects to make them fly upwards, and lower flight subcontrols control virtual objects to make them fly downwards.

[0112] In some embodiments, a computer device controls a virtual object to execute a skill corresponding to the second function subcontrol in response to a second trigger mechanism based on a second function subcontrol in activity control. Optionally, the second trigger mechanism includes, but is not limited to, at least one of the following: tap, long press, slide, scroll, double-click, or triple-click. The embodiments of this application are not specifically limited thereto.

[0113] In some embodiments, the computer equipment controls a virtual object to fly upwards within the virtual environment in response to a trigger operation based on an upward flight subcontrol, and controls the virtual object to fly downwards within the virtual environment in response to a trigger operation based on a downward flight subcontrol.

[0114] In one embodiment, the upper flight sub-control controls the virtual object to fly upwards within the virtual environment in response to a tap operation, and the lower flight sub-control controls the virtual object to fly downwards within the virtual environment in response to a tap operation.

[0115] In other embodiments, a virtual object is controlled to fly upwards within the virtual environment in response to a slide operation based on an upward flight subcontrol. A virtual object is controlled to fly downwards within the virtual environment in response to a slide operation based on a downward flight subcontrol.

[0116] Optionally, in response to the upper flight subcontrol accepting a slide operation, the virtual object is controlled to fly upwards within the virtual environment. The upper flight subcontrol is the starting point for the slide operation, and the slide operation is an operation in which the slide distance exceeds the slide distance threshold. In response to a slide operation based on the lower flight subcontrol, the virtual object is controlled to fly downwards within the virtual environment. The lower flight subcontrol is the starting point for the slide operation, and the slide operation is an operation in which the slide distance exceeds the slide distance threshold.

[0117] Optionally, the upper flight subcontrol is located above the first function subcontrol, and the lower flight subcontrol is located below the first function subcontrol. In response to an upslide operation between the first function subcontrol and the upper flight subcontrol, the virtual object is controlled to fly upwards within the virtual environment. An upslide operation is a slide operation that starts from the first function subcontrol. In response to a downslide operation between the first function subcontrol and the lower flight subcontrol, the virtual object is controlled to fly downwards within the virtual environment. A downslide operation is a slide operation that starts from the first function subcontrol.

[0118] Schematically, the upper flight subcontrol is represented as an upper edge presentation pattern, and the upslide operation is an operation in which the pilot slides from the first function subcontrol towards the location of the upper edge presentation pattern until the slide distance exceeds the slide distance threshold. The lower flight subcontrol is represented as a lower edge presentation pattern, and the downslide operation is an operation in which the pilot slides from the first function subcontrol towards the location of the lower edge presentation pattern until the slide distance exceeds the slide distance threshold.

[0119] As an example, Figure 9 shows a schematic diagram of an activity control trigger. As shown in part (a) of Figure 9, a virtual environment screen is displayed within the computer equipment, and the virtual environment screen includes a virtual object 901 located in the virtual environment, and the virtual object 901 is in a flying state, with the dodge subcontrol 902 and flight subcontrols in the activity control displayed simultaneously. The flight subcontrols include an up flight subcontrol 903 and a down flight subcontrol 904. By performing an upslide operation along the direction between the dodge subcontrol 902 and the up flight subcontrol 903, the virtual object 901 is controlled to fly upward within the virtual environment, as shown in part (b) of Figure 9.

[0120] As an example, Figure 10 shows a schematic diagram of an activity control trigger. As shown in part (a) of Figure 10, a virtual environment screen is displayed within the computer equipment, and the virtual environment screen includes a virtual object 1001 located in the virtual environment, and the virtual object 1001 is in a flying state, with the dodge sub-control 1002 and flight sub-control in the activity control displayed simultaneously. The flight sub-control includes an upper flight sub-control 1003 and a lower flight sub-control 1004. By performing a downslide operation along the direction between the dodge sub-control 1002 and the lower flight sub-control 1004, the virtual object 1001 is controlled to fly downward within the virtual environment, as shown in Figure 10(b).

[0121] In summary, the method provided in this embodiment displays the first function sub-control in the activity control when the virtual object is not in flight, and displays both the first and second function sub-controls in the activity control simultaneously when the virtual object is in flight, displaying different sub-controls for different movement modes, simplifying operation, saving control space in the user interface, reducing user interaction requirements, and improving the efficiency of human-computer interaction.

[0122] The method provided in this embodiment allows for the execution of different control functions by controlling a virtual object in response to different trigger methods such as tapping, long-pressing, and sliding, for the same activity control. This saves control space in the user interface, reduces user interaction requirements, and improves the efficiency of human-computer interaction.

[0123] In some embodiments, the virtual environment interface further displays joystick controls. In response to a composite trigger scheme based on joystick controls and activity controls, virtual objects are controlled to perform different control function skills along the direction corresponding to the joystick controls.

[0124] Optionally, the computer device controls a virtual object in response to a composite trigger system based on joystick control and dodge sub-controls, causing it to perform instantaneous dodge movements along the direction corresponding to the joystick control. The joystick control is for controlling the horizontal direction of the dodge.

[0125] Optionally, the computer equipment controls a virtual object in response to a combined trigger system based on joystick control and flight sub-controls, causing it to perform flight maneuvers along the direction corresponding to the joystick control. The joystick control is for controlling the horizontal direction of flight. The flight sub-controls are for controlling the vertical direction of flight.

[0126] Specifically, in response to an upslide operation between the first function sub-control and the upper flight sub-control, and a joystick operation of the joystick control, the virtual object is controlled to fly diagonally upward in the virtual environment according to the horizontal direction of the joystick operation. In response to a downslide operation between the first function sub-control and the lower flight sub-control, and a joystick operation of the joystick control, the virtual object is controlled to fly diagonally downward in the virtual environment according to the horizontal direction of the joystick operation.

[0127] As an example, Figure 11 shows a schematic diagram of an activity control trigger. As shown in part (a) of Figure 11, a virtual environment screen is displayed within the computer equipment. The virtual environment screen includes a virtual object 1101 located in the virtual environment and a joystick operation control 1105. The virtual object 1101 is in flight, and the dodge sub-control 1102 and flight sub-control in the activity control are displayed simultaneously. The flight sub-control includes an up flight sub-control 1103 and a down flight sub-control 1104. By performing an upslide operation along the direction between the dodge sub-control 1102 and the up flight sub-control 1103, and controlling the joystick operation control 1105 to determine the horizontal flight direction of the virtual object 1101 (for example, the direction determined by the joystick operation control 1105 is 45 degrees northwest), the virtual object 1101 is controlled to fly upward in the virtual environment with 45 degrees northwest as the horizontal direction, as shown in part (b) of Figure 11.

[0128] In some embodiments, a computer device controls a virtual object in response to a composite trigger scheme based on joystick operation control and activity control, causing it to perform skills of different control functions along a coupling direction. The coupling direction refers to the combined direction of the direction corresponding to the joystick operation control and the direction of the skills of different control functions.

[0129] Optionally, the computer device controls a virtual object to perform a dodge instantaneous movement along a first combined direction in response to a composite trigger scheme based on joystick operation control and dodge sub-control. The first combined direction refers to the combined direction of the direction corresponding to the joystick operation control and the dodge instantaneous movement direction corresponding to the dodge sub-control. For example, if the direction corresponding to the joystick operation control is west and the dodge instantaneous movement direction is north, the first combined direction will be northwest.

[0130] Optionally, the computer device controls a virtual object to perform flight maneuvers along a second coupling direction in response to a composite trigger system based on joystick control and flight sub-controls. The second coupling direction refers to the combined direction of the direction corresponding to the joystick control and the flight direction corresponding to the flight sub-control. For example, if the direction corresponding to the joystick control is west and the flight corresponding to the flight sub-control is upward, the second coupling direction will be the combined direction in three-dimensional space, which is west horizontally and upward vertically.

[0131] In summary, the method provided in this embodiment enriches the possible activity modes or skill activation modes of virtual objects and improves the efficiency of human-computer interaction, based on a combined triggering scheme of joystick operation control and activity control.

[0132] Figure 12 is a flowchart of a method for controlling a virtual object provided in one exemplary embodiment of the present application. The method may be performed by computer equipment, including a terminal. The method includes the following steps:

[0133] Step 1201: Obtain interaction behavior.

[0134] Interaction behavior refers to the trigger method by which a user interacts with dodge sub-controls in the user interface.

[0135] The trigger mechanism may optionally include, but is not limited to, at least one of the following: tap, long press, slide, scroll, double-click, or triple-click. The embodiments of this application are not specifically limited thereto.

[0136] For example, the computer device obtains the trigger method between the user and the dodge sub-control in the user interface, and executes step 1202 if the interaction operation is a tap operation, step 1206 if the interaction operation is an accidental touch operation, step 1208 if the interaction operation is a long press operation, and step 1212 if the interaction operation is a slide operation.

[0137] The method by which a computer device acquires interaction behavior is at least one of the following methods, but is not limited to these.

[0138] When the user triggers the dodge sub-control, it starts recording time and displays the duration as "A". When the finger is released, or when a certain duration (e.g., 1 second) is reached, the timing stops and the record resets.

[0139] When the user triggers a dodge sub-control, the system begins recording the finger coordinate position and denots the positional displacement span as B. When the finger is released or a certain positional span is reached, the system stops recording the displacement span and resets the record.

[0140] For example, the absolute value of the shift span is 30 pixels, and 30 pixels is the distance from the default state of the dodge sub-control to the flight sub-control.

[0141] The computer device determines the interaction behavior based on the length of the recorded time A and / or the positional shift B.

[0142] Step 1202: Tap operation.

[0143] A tap operation refers to clicking a button or area on the screen with your finger and then quickly releasing it.

[0144] The computer device obtains the parameters of the interaction operation and determines that the interaction operation is a tap operation if the duration A is less than 0.2 seconds and the positional shift |B| is less than 30 pixels.

[0145] If the interaction action in this case is a tap operation, perform step 1203.

[0146] Step 1203: Determine whether or not there is input to the joystick control.

[0147] Joystick controls are used to control the horizontal movement of virtual objects (including control of each horizontal direction such as forward, backward, left, and right).

[0148] For example, if the interaction action in this case is a tap operation, it is determined whether or not there is input to the joystick control. If there is input to the joystick control, step 1204 is executed; if there is no input to the joystick control, step 1205 is executed.

[0149] Step 1204: Make the character perform a dodge teleportation along the direction determined by the joystick control.

[0150] For example, if there is input to the joystick control, the system determines the direction corresponding to the joystick control and controls a virtual object to perform a dodge instantaneous movement along the direction determined by the joystick control. For instance, based on the direction determined by the joystick control, the system controls a virtual object to perform a dodge instantaneous movement of 10 meters along the direction determined by the joystick control.

[0151] Step 1205: Make the character perform a dodge teleport along the default direction.

[0152] For example, if there is no input to the joystick control, a virtual object is controlled to perform a dodge instantaneous movement along the default direction. For instance, the virtual object is controlled to perform a dodge instantaneous movement of 10 meters along the default direction.

[0153] The default direction includes at least one of the following directions:

[0154] The direction of the dodge teleportation is the direction forward of the virtual object's current position. That is, the dodge teleportation is performed forward.

[0155] The direction of the dodge teleportation is the opposite direction to the direction forward of the virtual object's current position. That is, the dodge teleportation is backward.

[0156] Step 1206: Incorrect touch operation.

[0157] The computer device obtains the parameters of the interaction and determines that the interaction was a false touch operation if the time duration A is 0.2 seconds or less and the positional displacement |B| is less than 30 pixels.

[0158] If the current interaction is an accidental touch, perform step 1207.

[0159] Step 1207: No change.

[0160] If this interaction is an accidental touch, no change will be displayed on the virtual environment screen.

[0161] Step 1208: Press and hold.

[0162] The computer device obtains the parameters of the interaction operation and determines that the interaction operation is a long press operation if the duration A is equal to 1 second (when it reaches 1 second, the timer stops; theoretically, there is no case where it is > 1 second) and the position shift |B| is less than 30 pixels.

[0163] The long-press operation is used to control virtual objects and switch their movement state within the virtual environment.

[0164] If the interaction action in this case is a long press operation, perform step 1209.

[0165] Step 1209: Determine whether or not the ground is in a normal state.

[0166] If the interaction action is a long press, the movement state of the virtual object is determined based on the flags of the virtual object.

[0167] A moving state refers to a state relating to a virtual object. Alternatively, a moving state refers to the positional state of a virtual object in a virtual environment. Alternatively, a moving state refers to the motion state of a virtual object in a virtual environment. Optionally, a moving state includes, but is not limited to, at least one of a ground state or a flight state. The embodiments of this application do not specifically limit this. A ground state refers to a state in which a virtual object is located on the ground in a virtual environment. Alternatively, a ground state refers to a state in which the virtual object has support in the virtual environment. A flight state refers to a state in which a virtual object is floating in the air.

[0168] The flag is a state identifier for the virtual object. The state identifier includes 0 and 1. 0 is the ground state, and 1 is the flight state. If the virtual object's state identifier is 0, the virtual object is in the ground state, only the dodge subcontrol in the activity controls is displayed, and sliding operations are not supported. If the virtual object's state identifier is 1, the virtual object is in the flight state, both the dodge and flight subcontrols in the activity controls are displayed simultaneously, and sliding operations are supported.

[0169] For example, if the virtual object is not in a ground state, step 1210 is performed; if the virtual object is in a ground state, step 1211 is performed.

[0170] Step 1210: Switch to ground state and lower to the ground.

[0171] If the virtual object is not in a ground state, i.e., if the virtual object is in a flying state, the virtual object's movement state is switched to a ground state, causing the virtual object to descend to the ground (lowering the virtual object's height on the y-axis to 0), the virtual object's state identifier is switched from 1 to 0, and the display of the flight sub-control button in the activity control is removed.

[0172] Step 1211: Switch to flight mode and let it float in the air.

[0173] If the virtual object is in a ground state, switch its movement state to a flight state to make it float in the air (raise the virtual object's height along the y-axis by 10 meters), change the virtual object's state identifier from 0 to 1, and add a flight sub-control button to the activity control.

[0174] Step 1212: Slide operation.

[0175] The computer equipment acquires the parameters of the current interaction and determines that the current interaction is a slide operation if the position shift |B| is equal to 30 pixels (recording stops when it reaches 30 pixels; theoretically, B cannot be greater than 30 pixels).

[0176] Slide operations are used to control virtual objects and make them fly within the virtual environment.

[0177] If the interaction action in this case is a slide operation, perform step 1213.

[0178] Step 1213: Fly along the sliding direction.

[0179] For example, a computer device controls a virtual object to fly along a sliding direction.

[0180] For example, if the value of position shift B is +30 pixels, the virtual object is controlled to fly 10 meters upwards within the virtual environment, and if the value of position shift B is -30 pixels, the virtual object is controlled to fly 10 meters downwards within the virtual environment.

[0181] Figure 13 shows a schematic diagram of the configuration of a virtual object control device provided in one exemplary embodiment of the present application. This device may be implemented as all or part of a computer device by software, hardware, or a combination of both. A display module 1301 that displays a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment, and It includes a control module 1302 that controls virtual objects and makes them active within a virtual environment, The display module 1301 displays activity controls for the current state based on the current movement state of the virtual object. The current movement state is either flying or not flying, the current state corresponds to the current movement state, and the activity controls for the current state are for implementing control functions in the current movement state.

[0182] In some embodiments, the activity control includes a first function subcontrol and a second function subcontrol. The display module 1301 further displays the first function subcontrol in the activity control in response to the virtual object being in flight.

[0183] In some embodiments, the display module 1301 further displays a first function subcontrol and a second function subcontrol in the activity control in response to the virtual object being in a non-flying state.

[0184] Here, the first function sub-control is for controlling the virtual object to perform basic actions, and the second function sub-control is for controlling the virtual object to perform flight actions in flight mode.

[0185] In some embodiments, the display module 1301 further displays the dodge sub-control in the activity control in response to the virtual object being in a ground state.

[0186] Here, the ground state refers to the state in which a virtual object is located on the ground within the virtual environment. In this case, the dodge subcontrol is used to control the virtual object and make it perform a dodge action on the ground.

[0187] In some embodiments, the display module 1301 further displays the dodge subcontrol and the second function subcontrol in the activity control in response to the virtual object being in flight.

[0188] In this case, the dodge sub-control is used to control the virtual object and make it perform a dodge maneuver in mid-air.

[0189] In some embodiments, the control module 1302 further switches the current movement state of the virtual object in response to the activity control receiving a trigger operation.

[0190] In some embodiments, the control module 1302 further switches the current movement state of the virtual object in response to the first function subcontrol receiving a trigger operation.

[0191] In some embodiments, the control module 1302 further switches the current movement state of the virtual object in response to a long press operation on the first function subcontrol.

[0192] In some embodiments, the control module 1302 further controls the virtual object to perform a descent operation in response to a long press operation of the first function subcontrol when the virtual object is in flight.

[0193] In some embodiments, the control module 1302 further controls the virtual object to perform a takeoff operation in response to a long press operation of the first function subcontrol when the virtual object is in a non-flight state.

[0194] In some embodiments, the control module 1302 further controls a virtual object to perform basic operations in response to a short press operation of the first function subcontrol.

[0195] In some embodiments, the virtual environment screen further displays joystick control, and the first function sub-control is a dodge sub-control. The control module 1302 further controls the virtual object to perform a dodge action along the direction corresponding to the joystick control in response to the dodge sub-control receiving a short press operation.

[0196] In some embodiments, the second function subcontrol includes an upward flight subcontrol and a downward flight subcontrol. The control module 1302 further controls the virtual object to fly upward in the virtual environment in response to a trigger operation based on the upward flight subcontrol, and controls the virtual object to fly downward in the virtual environment in response to a trigger operation based on the downward flight subcontrol.

[0197] In some embodiments, the control module 1302 further controls a virtual object to fly upward within the virtual environment in response to a slide operation based on an upward flight subcontrol.

[0198] In some embodiments, the control module 1302 further controls a virtual object to fly downwards within the virtual environment in response to a slide operation based on a downward flight subcontrol.

[0199] In some embodiments, the upper flight subcontrol is located above the first function subcontrol, and the lower flight subcontrol is located below the first function subcontrol. The control module 1302 further controls the virtual object to fly upward within the virtual environment in response to receiving an upslide operation between the first function subcontrol and the upper flight subcontrol. The upslide operation is a slide operation starting from the first function subcontrol.

[0200] In some embodiments, the upper flight subcontrol is located above the first function subcontrol, and the lower flight subcontrol is located below the first function subcontrol. The control module 1302 further controls the virtual object to fly downward within the virtual environment in response to receiving a downslide operation between the first function subcontrol and the lower flight subcontrol. The downslide operation is a slide operation starting from the first function subcontrol.

[0201] In some embodiments, the virtual environment interface further displays joystick control. The control module 1302 further controls the virtual object to fly diagonally upward in the virtual environment according to the horizontal direction of the joystick operation, in response to receiving an upslide operation between the first function subcontrol and the upward flight subcontrol, and a joystick operation of the joystick control.

[0202] In some embodiments, the virtual environment interface further displays joystick control. The control module 1302 further controls the virtual object to fly diagonally downward in the virtual environment according to the horizontal direction of the joystick operation, in response to receiving a downslide operation between the first function subcontrol and the down flight subcontrol, and joystick operation of the joystick control.

[0203] In some embodiments, the upper flight subcontrol is represented as an upper edge presentation pattern, and the upslide operation is an operation in which the user slides from a first function subcontrol towards the location of the upper edge presentation pattern until the slide distance exceeds a slide distance threshold.

[0204] In some embodiments, the down flight subcontrol is represented as a lower edge presentation pattern, and the down slide operation is an operation in which the aircraft slides towards the location of the lower edge presentation pattern, starting from the first function subcontrol, until the slide distance exceeds a slide distance threshold.

[0205] In summary, this invention displays activity controls for flight mode when the virtual object is in flight mode, and activity controls for non-flight mode when the virtual object is not in flight mode. That is, this invention integrates activity controls for flight mode and non-flight mode, performing different control functions through different forms of a single activity control, avoiding the need to install additional activity controls for flight control, saving control space in the user interface, facilitating user operation, and improving the efficiency of human-computer interaction.

[0206] Figure 14 shows a block diagram of a computer device 1400 provided in one exemplary embodiment of the present application. This computer device 1400 may be a portable mobile terminal, such as a smartphone, tablet computer, Moving Picture Experts Group Audio Layer III (MP3) player, or Moving Picture Experts Group Audio Layer IV (MP4) player. The computer device 1400 may also be referred to by other names, such as user device or portable terminal.

[0207] Typically, the computer device 1400 comprises a processor 1401 and memory 1402.

[0208] The processor 1401 may include one or more processing cores, for example, a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in the form of at least one hardware component from among Digital Signal Processing (DSP), Field Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1401 may include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state and is also called a Central Processing Unit (CPU). The coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1401 may incorporate a Graphics Processing Unit (GPU). The GPU is responsible for rendering and drawing content to be displayed on a display. In some embodiments, the processor 1401 may include an Artificial Intelligence (AI) processor for processing machine learning-related computational operations.

[0209] The memory 1402 may include one or more computer-readable storage media. These computer-readable storage media may be tangible and non-temporary. The memory 1402 may include high-speed random-access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-temporary computer-readable storage media in the memory 1402 store at least one instruction. When executed by the processor 1401, this at least one instruction enables the control method of a virtual object provided in the embodiments of the present application.

[0210] In some embodiments, the computer device 1400 optionally further includes a peripheral device interface 1403 and at least one peripheral device. Specifically, the peripheral device includes at least one of a radio frequency circuit, a touch display, a camera component, an audio circuit, and a power supply.

[0211] As those skilled in the art will understand, the configuration shown in Figure 14 is not limiting to the computer equipment 1400, and the computer equipment 1400 may include more or fewer components than shown, or may be a combination of some components, or may employ a different arrangement of components.

[0212] In embodiments of the present invention, a computer device comprising a processor and memory is further provided, wherein at least one program is stored in the memory, and when loaded and executed by the processor, the at least one program implements a method for controlling virtual objects provided in the embodiments of each of the above methods.

[0213] In embodiments of the present invention, a computer-readable storage medium storing at least one computer program is further provided, which, when loaded and executed by a processor, enables a method for controlling virtual objects provided in the embodiments of each of the above methods.

[0214] In embodiments of the present application, a computer program product including a computer program is further provided, the computer program being stored in a computer-readable storage medium, and when the computer program is read from the computer-readable storage medium and executed by a processor of a computer device, it causes the computer device to implement a method for controlling virtual objects provided in each embodiment of the above method.

[0215] To ensure understanding, in the specific embodiments of this application, with regard to data related to user data processing such as historical data and images, which relate to user identity or characteristics, user permission or consent is required to apply the above embodiments of this application to specific products or technologies, and the collection, use, and processing of such data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. [Explanation of Symbols]

[0216] 10 Virtual Objects 20 Dodge Subcontrol 30 Flight Subcontrols 45 Northwest 100 Computer Equipment Systems 110 Terminal 1 111 Clients 112 First User 113 Second User 120 servers 122 processors 123 User Account Database 124 Battle Service Module 125 I / O interfaces 130 Second Terminal 131 clients 140 devices 401 3D space 401 3D 402 Camera side 403 Image plane 601 First Function Subcontrol 602 Second Function Subcontrol 701 Virtual Object 702 Dodge Subcontrol 801 Virtual Object 802 Dodge Subcontrol 803 Flight Subcontrol 901 Virtual Object 902 Dodge Subcontrol 903 Upper Flight Subcontrol 904 Underfloor Subcontrol 1001 Virtual Object 1002 Dodge Subcontrol 1003 Upper Flight Subcontrol 1004 Underfloor Subcontrol 1101 Virtual Object 1102 Dodge Subcontrol 1103 Upper Flight Subcontrol 1104 Lower Flight Sub-control 1105 Joystick Control 1301 Display Module 1302 Control Module 1400 Computer equipment 1401 Processor 1402 memory 1403 Peripheral Interface

Claims

1. A method for controlling virtual objects, which is performed by a terminal device, A step of displaying a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment, The steps include controlling the virtual object and making it active within the virtual environment, The step of displaying activity controls for the current form based on the current movement state of the virtual object, wherein the current movement state is either flying or not flying, the current form corresponds to the current movement state, and the activity controls for the current form are for realizing control functions in the current movement state, A method for controlling virtual objects.

2. The aforementioned activity control includes a first functional subcontrol and a second functional subcontrol. The step of displaying activity controls in the current form based on the current movement state of the virtual object is: The steps include: displaying the first function subcontrol in the activity control in response to the virtual object being in the non-flight state; The steps include: displaying the first and second function subcontrols in the activity control in response to the virtual object being in the flight state, The first function sub-control is for controlling the virtual object to perform basic operations, and the second function sub-control is for controlling the virtual object to perform flight operations in the flight state. A method for controlling a virtual object according to claim 1.

3. The step of displaying the first function subcontrol in the activity control in response to the virtual object being in the non-flying state is: The step includes displaying the dodge sub-control in the activity control in response to the virtual object being in a ground state, The ground state refers to a state in which the virtual object is located on the ground within the virtual environment, in which case the dodge sub-control is used to control the virtual object to perform a dodge maneuver on the ground. A method for controlling a virtual object according to claim 2.

4. The step of displaying the first and second function subcontrols in the activity control in response to the virtual object being in the flight state is: The step includes displaying the dodge subcontrol and the second function subcontrol in the activity control in response to the virtual object being in the flight state, In this case, the dodge sub-control is used to control the virtual object to perform a dodge maneuver in mid-air. A method for controlling a virtual object according to claim 2.

5. The activity control further includes the step of switching the current movement state of the virtual object in response to the activity control receiving a trigger operation, A method for controlling a virtual object according to claim 1.

6. The first function subcontrol further includes the step of switching the current movement state of the virtual object in response to the first function subcontrol receiving a trigger operation, A method for controlling a virtual object according to claim 2.

7. The step of switching the current movement state of the virtual object in response to the first function subcontrol receiving a first trigger operation is: The first function sub-control accepts a long press operation, and the step includes switching the current movement state of the virtual object, A method for controlling a virtual object according to claim 6.

8. The step of switching the current movement state of the virtual object in response to the first function sub-control accepting a long press operation is: If the virtual object is in the flight state, the first function sub-control, in response to the long press operation, controls the virtual object to perform a descent operation; If the virtual object is in the non-flight state, the first function sub-control, in response to the long press operation, controls the virtual object to perform a takeoff operation, including the step of controlling the virtual object to perform a takeoff operation. A method for controlling a virtual object according to claim 7.

9. The step of controlling the virtual object to perform the basic type of operation in response to the first function sub-control receiving a short press operation, further includes: A method for controlling a virtual object according to claim 2.

10. The virtual environment screen further displays joystick operation controls, the first function sub-control is a dodge sub-control, and the step of controlling the virtual object to perform the basic type of operation in response to the first function sub-control accepting a short press operation is as follows: The step of controlling the virtual object to perform a dodge action along the direction corresponding to the joystick operation control in response to the dodge sub-control receiving the short press operation, A method for controlling a virtual object according to claim 9.

11. The aforementioned second function subcontrol includes an upper flight subcontrol and a lower flight subcontrol. The steps include: controlling the virtual object to fly upward within the virtual environment in response to a trigger operation based on the above-mentioned upper flight sub-control; The further step includes controlling the virtual object to fly downward within the virtual environment in response to a trigger operation based on the downward flight sub-control, A method for controlling a virtual object according to claim 2.

12. The step of controlling the virtual object to fly upward within the virtual environment in response to a trigger operation based on the above-mentioned upward flight sub-control is: The step of controlling the virtual object to fly upward within the virtual environment in response to a slide operation based on the above-mentioned upper flight sub-control, The step of controlling the virtual object to fly downward within the virtual environment in response to a trigger operation based on the downward flight subcontrol is: The steps include controlling the virtual object to fly downward within the virtual environment in response to a slide operation based on the downward flight sub-control, A method for controlling a virtual object according to claim 11.

13. The upper flight subcontrol is located above the first function subcontrol, and the lower flight subcontrol is located below the first function subcontrol. The step of controlling the virtual object to fly upward within the virtual environment in response to a trigger operation based on the above-mentioned upward flight sub-control is: A step of controlling the virtual object to fly upward within the virtual environment in response to receiving an upslide operation between the first function subcontrol and the upper flight subcontrol, wherein the upslide operation is a slide operation starting from the first function subcontrol. The step of controlling the virtual object to fly downward within the virtual environment in response to a trigger operation based on the downward flight subcontrol is: A step of controlling the virtual object to fly downward within the virtual environment in response to receiving a downslide operation between the first function subcontrol and the down flight subcontrol, wherein the downslide operation is a slide operation starting from the first function subcontrol. A method for controlling a virtual object according to claim 12.

14. The virtual environment interface further displays joystick control, and the step of controlling the virtual object to fly upward within the virtual environment in response to accepting an upslide operation between the first function subcontrol and the upward flight subcontrol is: The steps include controlling the virtual object to fly diagonally upward in the virtual environment according to the horizontal direction of the joystick operation in response to the upslide operation between the first function subcontrol and the upper flight subcontrol, and the joystick operation of the joystick operation control, A method for controlling a virtual object according to claim 13.

15. The virtual environment interface further displays joystick control, and in response to accepting a downslide operation between the first function subcontrol and the down flight subcontrol, the step of controlling the virtual object to fly downward within the virtual environment is: The steps include controlling the virtual object to fly diagonally downward in the virtual environment according to the horizontal direction of the joystick operation in response to the reception of the downslide operation between the first function subcontrol and the down flight subcontrol, and the joystick operation of the joystick operation control, A method for controlling a virtual object according to claim 13.

16. The aforementioned upper flight subcontrol is represented as an upper edge presentation pattern, and the upslide operation is an operation in which the first function subcontrol is used as a starting point to slide toward the location of the upper edge presentation pattern, and the slide distance exceeds the slide distance threshold. The aforementioned downward flight subcontrol is represented as a lower edge presentation pattern, and the downslide operation is an operation in which the sliding distance exceeds the slide distance threshold, starting from the first function subcontrol and sliding toward the location of the lower edge presentation pattern. A method for controlling a virtual object according to claim 13.

17. A control device for virtual objects, A display module that displays a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment, Includes a control module that controls the virtual object and makes it active within the virtual environment, The display module displays activity controls for the current state based on the current movement state of the virtual object, the current movement state being either flying or non-flying, the current state corresponding to the current movement state, and the activity controls for the current state for realizing control functions in the current movement state. A control device for virtual objects.

18. A computer device comprising a processor and memory, wherein at least one computer program is stored in the memory, and the at least one computer program, when loaded and executed by the processor, realizes the virtual object control method described in any one of claims 1 to 16.

19. A computer-readable storage medium storing at least one computer program, wherein the at least one computer program, when loaded and executed by a processor, enables the virtual object control method described in any one of claims 1 to 16.

20. A computer program product comprising a computer program, wherein the computer program is stored in a computer-readable storage medium, and when the computer program is read from the computer-readable storage medium and executed by the processor of a computer device, the computer program product causes the computer device to execute the virtual object control method described in any one of claims 1 to 16.