Virtual object control method and device, equipment, storage medium and program product
By combining the display of active controls of different forms in the virtual environment according to the moving state of the virtual object, the complex operation of virtual aircraft is solved and the human-computer interaction efficiency is improved.
Patent Information
- Application Number
- CN202310684450.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-09
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, when controlling a virtual aircraft, it is necessary to operate six directions, including up, down, left, right, front and back, resulting in complex operations and low human-computer interaction efficiency.
By displaying active controls of different forms in the virtual environment, at least two sub-controls are displayed according to the moving state of the virtual object, each sub-control is used to implement a control function, simplifying operations and saving user interface space.
It reduces user operation requirements, improves human-computer interaction efficiency, and simplifies the control process of virtual objects.
Smart Images

Figure CN119097920A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of human-computer interaction technology, and in particular to a method, device, equipment, storage medium and program product for controlling a virtual object. Background Art
[0002] At present, with the gradual enrichment of game content and functions, virtual objects with flying capabilities have appeared in games.
[0003] In the related art, the user interface of the game application includes a joystick operation control and a height adjustment operation control; wherein the joystick operation control is used to control the movement of the virtual object in the horizontal direction, including the control of each horizontal direction such as front, back, left, and right; the height adjustment operation control is used to control the movement of the virtual object in the vertical direction, including the control of the up and down directions. If the user does not adjust the flight height of the virtual object through the height adjustment operation control, the virtual object maintains the current flight height and flies.
[0004] However, in the solutions provided by the above-mentioned related technologies, since the user needs to control six directions, namely up, down, left, right, front and back, when controlling the virtual aircraft to fly, the operation is complicated and inconvenient, and the human-computer interaction efficiency is low. Summary of the invention
[0005] The present application provides a control method, device, equipment, storage medium and program product of a virtual object, and the technical solution is as follows:
[0006] According to one aspect of the present application, a method for controlling a virtual object is provided, the method comprising:
[0007] Displaying a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment;
[0008] Controlling the virtual object to move in the virtual environment;
[0009] Based on the movement state of the virtual object, an active control in different forms is displayed, the active control includes at least two sub-controls, and the active control displays at least one sub-control of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in the different forms is different, and each sub-control is used to implement at least one control function.
[0010] According to one aspect of the present application, a control device for a virtual object is provided, the device comprising:
[0011] A display module, used for displaying a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment;
[0012] A control module, used for controlling the virtual object to move in the virtual environment;
[0013] The display module is used to display an active control in different forms based on the movement state of the virtual object, the active control includes at least two sub-controls, and the active control displays at least one sub-control of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in the different forms is different, and each of the sub-controls is used to implement at least one control function.
[0014] According to another aspect of the present application, a computer device is provided, which includes: a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the virtual object control method as described above.
[0015] According to another aspect of the present application, a computer storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the control method of the virtual object as described above.
[0016] According to another aspect of the present application, a computer program product is provided, which includes a computer program stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the control method of the virtual object as described above.
[0017] The beneficial effects of the technical solution provided by this application include at least:
[0018] By displaying a virtual environment screen; controlling the activity of a virtual object in the virtual environment; based on the movement state of the virtual object, displaying an activity control in different forms, the activity control includes at least two sub-controls, the activity control displays at least one of the at least two sub-controls in each form, the number of sub-controls displayed by the activity control in different forms is different, and each sub-control is used to implement at least one control function. The present application combines activity controls that provide different control functions and determines the display form of the activity control according to the movement state of the virtual object, which not only simplifies the operation, but also saves the area occupied by the control in the user interface, reduces the operation requirements for the user, and improves the efficiency of human-computer interaction. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a schematic diagram of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0021] Figure 2 is a schematic diagram of the architecture of a computer system provided by an exemplary embodiment of the present application;
[0022] Figure 3 is a flow chart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0023] Figure 4 is a schematic diagram of a transformation process from a three-dimensional space to a two-dimensional image provided by an exemplary embodiment of the present application;
[0024] Figure 5 is a flow chart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0025] Figure 6 is a schematic diagram of an activity control provided by an exemplary embodiment of the present application;
[0026] Figure 7 is a schematic diagram of a trigger activity control provided by an exemplary embodiment of the present application;
[0027] Figure 8 is a schematic diagram of a trigger activity control provided by an exemplary embodiment of the present application;
[0028] Fig. 9 is a schematic diagram of a trigger activity control provided by an exemplary embodiment of the present application;
[0029] Fig.10 is a schematic diagram of a trigger activity control provided by an exemplary embodiment of the present application;
[0030] Fig.11 is a schematic diagram of a trigger activity control provided by an exemplary embodiment of the present application;
[0031] Fig.12 is a flow chart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0032] Fig.13 is a block diagram of a control device for a virtual object provided by an exemplary embodiment of the present application;
[0033] Fig.14 It is a structural diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical scheme and advantages of the present application clearer, the implementation mode of the present application will be further described in detail below in conjunction with the accompanying drawings. The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation modes described in the following exemplary embodiments do not represent all implementation modes consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0035] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0036] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
[0037] First, the nouns involved in the embodiments of the present application are introduced:
[0038] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, and this application does not limit this. The following embodiments are illustrated by taking the virtual environment as a three-dimensional virtual environment.
[0039] Virtual object: refers to an active character in a virtual environment. The active character can be a virtual person, a virtual animal, a cartoon character, etc. For example, a person, an animal, a plant, a wall, a stone, a pool, etc. displayed in a virtual environment. The virtual object is controlled by the user. The virtual object can be classified by job, such as pharmacist, magician, medical practitioner, etc.; it can also be classified by category, such as human, beast, fairy, etc. Each virtual object has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment.
[0040] Multiplayer online games: refers to games whose servers can provide a large number of players online at the same time. They are also called massively multiplayer online role-playing games. The game provides users with a virtual world. In the game, users can create virtual objects, control virtual objects to carry out corresponding activities, and complete the tasks corresponding to the activities. Virtual objects controlled by multiple users can form a team to complete the same task together, or fight against other teams.
[0041] Joystick operation control: Drag this control to control the horizontal movement of the virtual object, including control in various horizontal directions such as front, back, left, and right.
[0042] X / Y / Z axis: In the game, X represents front and back, Z represents left and right, and Y represents up and down. When a virtual object moves in the X / Z axis direction, it moves in the horizontal plane; when a virtual object moves in the Y axis, it means that the height changes vertically.
[0043] Tap operation: An operation mode in which a finger taps a button or area on the screen and then quickly releases it.
[0044] Long press operation: An operation mode in which you tap a button or area on the screen with your finger and hold it down.
[0045] Sliding operation: An operation mode in which a finger is pressed on a button / area on the screen without releasing it, and then dragged in a certain direction for a certain distance (beyond a certain range of the original click position) and then released. This is called sliding.
[0046] Drag operation: An operation mode in which you press and hold a button / area on the screen, drag your finger in a certain direction for a certain distance (beyond a certain range of the original click position), and then continue to hold it without moving. This is called dragging.
[0047] The present application embodiment provides a schematic diagram of a method for controlling a virtual object, such as Figure 1 As shown, the method can be executed by a computer device, and the computer device includes a terminal or a client on the terminal.
[0048] Exemplarily, a computer device displays a virtual environment screen, which includes a virtual object 10 located in the virtual environment; the computer device controls the movement of the virtual object 10 in the virtual environment; the computer device displays an active control in different forms based on the movement state of the virtual object 10, the active control including at least two sub-controls, the active control displays at least one sub-control of the at least two sub-controls in each form, the active control displays different numbers of sub-controls in different forms, and each sub-control is used to implement at least one control function.
[0049] An active control refers to a control obtained by combining sub-controls that provide different control functions, or an active control refers to a control that can provide at least two control functions.
[0050] For example, the active control can control the virtual object 10 to dodge and teleport, and can also control the virtual object 10 to fly.
[0051] The movement state refers to a state related to the virtual object 10, or the movement state refers to the position state of the virtual object 10 in the virtual environment, or the movement state refers to the motion state of the virtual object 10 in the virtual environment; but not limited thereto.
[0052] Optionally, the moving state includes at least one of a ground state, a flying state, a solo state, a state of loading auxiliary props, a cooling state, and a violent state, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
[0053] The ground state refers to a state when the virtual object 10 is located on the ground in the virtual environment, or the ground state refers to a state when the virtual object 10 has a support in the virtual environment.
[0054] The flying state refers to a state in which the virtual object 10 is suspended in the air.
[0055] The independent state refers to the state in which the virtual object 10 in action does not carry any auxiliary props, or the independent state refers to the state in which the virtual object 10 acts by itself.
[0056] The state of loading auxiliary props refers to the state in which the virtual object 10 in action carries auxiliary props, or the state of loading auxiliary props refers to the state in which the virtual object 10 acts with the help of loaded auxiliary props.
[0057] Optionally, the auxiliary props include at least one of a virtual vehicle, a virtual pet, and virtual equipment, but are not limited thereto, and the embodiments of the present application do not make specific limitations on this.
[0058] Optionally, the virtual vehicle includes at least one of a virtual airplane, a virtual tank, a virtual armored vehicle, and a virtual motorcycle.
[0059] The cooling state means that the virtual object 10 in motion moves at a constant speed, or the cooling state means that the virtual object 10 moves in a normal mode, or the cooling state means that the moving speed of the virtual object 10 has an upper limit.
[0060] The frenzy state means that the virtual object 10 in action accelerates its movement, or the frenzy state means that the virtual object 10 moves in an accelerated mode, or the frenzy state means that the moving speed of the virtual object 10 has no upper limit and can be accelerated infinitely.
[0061] In some embodiments, when the first moving state is a ground state, such as Figure 1 As shown in FIG. 8( a ), in response to the virtual object 10 being in a ground state, the computer device displays a dodge sub-control 20 in the activity control.
[0062] Optionally, the ground state includes the virtual object 10 standing on the ground, the virtual object 10 standing on a stone, the virtual object 10 running on the grass, and the virtual object 10 crawling on the grass, but is not limited thereto and is not specifically limited in the embodiments of the present application.
[0063] The dodge sub-control 20 is used to control the virtual object to perform a dodge action or to switch the state of the virtual object 10 .
[0064] Optionally, the dodge sub-control 20 can control the virtual object 10 to perform a dodge action or switch the state of the virtual object 10 through different triggering modes.
[0065] State switching refers to switching the state of the virtual object 10 from a first moving state to a second moving state, or switching the state of the virtual object 10 from the second moving state to the first moving state, or 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, but is not limited to this, and the embodiments of the present application do not make specific limitations on this.
[0066] In some embodiments, when the second movement state is the flight state, such as Figure 1 As shown in FIG. 8( b ), in response to the virtual object 10 being in a flying state, the computer device simultaneously displays the dodge sub-control 20 and the fly sub-control 30 in the active control.
[0067] The flight sub-control is used to control the virtual object 10 to perform flying actions in the air.
[0068] Optionally, the flight sub-control 30 includes an upper flight sub-control and a lower flight sub-control; the upper flight sub-control is used to control the virtual object 10 to fly upward, and the lower flight sub-control is used to control the virtual object 10 to fly downward.
[0069] Optionally, the flying action of the virtual object 10 in the air includes at least one of the following, but is not limited thereto. Taking upward flight as an example, downward flight is described in the same way:
[0070] Based on the triggering operation of the virtual object, the virtual object 10 flies upward at a constant speed for a fixed time. For example, after each triggering operation, the virtual object 10 flies upward at a speed of 5 m / s for 3 seconds;
[0071] Based on the triggering operation of the virtual object, the virtual object 10 accelerates upward. For example, after each triggering operation, the virtual object 10 accelerates upward at 5 m / s. 2 Fly upwards at an acceleration of 3 seconds;
[0072] Based on the triggering operation of the virtual object, the virtual object 10 flies upward by a fixed distance, for example, the virtual object 10 flies upward by 5 meters after each triggering operation;
[0073] Based on the triggering operation of the virtual object, the virtual object 10 decelerates and flies upward.
[0074] In some embodiments, the computer device controls the virtual object 10 to perform skills in different control functions in response to a triggering mode based on the activity control.
[0075] The triggering method includes at least one of a tap operation, a long press operation, a sliding operation, a scrolling operation, a double-click operation, and a triple-click operation, but is not limited to this. The embodiments of the present application do not make specific limitations on this.
[0076] For example, in response to a click operation based on the dodge sub-control 20 , the computer device controls the virtual object 10 to perform dodge teleportation in the virtual environment.
[0077] Dodge teleportation refers to quickly moving to another location other than the current location. For example, before the dodge sub-control 20 is clicked, the virtual object 10 is displayed in area A, and after the dodge sub-control 20 is clicked, the virtual object 10 is displayed in area B, where area A and area B are different areas.
[0078] For example, in response to a long-press operation based on the dodge sub-control 20 , the computer device controls the virtual object 10 to switch the moving state in the virtual environment.
[0079] For example, when the virtual object 10 is in the ground state, the computer device controls the virtual object 10 to switch to the flying state in response to the long press operation based on the dodge subcontrol 20, and the virtual object 10 flies upward from the original standing position and suspends in the air. When the virtual object 10 is in the flying state, the computer device controls the virtual object 10 to switch to the ground state in response to the long press operation based on the dodge subcontrol 20, and descends from the original suspending position to the ground.
[0080] For example, the computer device controls the virtual object 10 to fly upward in the virtual environment in response to an upward sliding operation between the dodge sub-control 20 and the upper flight sub-control; the computer device controls the virtual object 10 to fly downward in the virtual environment in response to a downward sliding operation between the dodge sub-control 20 and the lower flight sub-control.
[0081] Compared with the virtual object 10 in the ground state, the virtual object 10 in the flying state can have more angles of movement directions. For example, the virtual object 10 in the ground state can only move in a two-dimensional plane on the ground, while the virtual object 10 in the flying state can move in three-dimensional space, and can move forward, backward, left, right, and up and down.
[0082] In some embodiments, when the first moving state is a solo state, a sub-control for controlling the virtual object 10 itself is displayed, and when the second moving state is a state of loading auxiliary props, a sub-control for controlling the virtual object 10 itself and a sub-control for controlling the auxiliary props are displayed at the same time.
[0083] For example, when the first moving state is a solo state, the virtual object 10 in the solo state relies on the virtual object 10 itself to move; when the second moving state is a state of loading auxiliary props, the virtual object drives the loaded auxiliary props to move at a faster speed, for example, the virtual object 10 moves in a virtual airplane.
[0084] In some embodiments, when the first moving state is a cooling state, a sub-control for controlling the uniform movement of the virtual object 10 is displayed, and when the second moving state is a violent state, a sub-control for controlling the uniform movement of the virtual object 10 and a sub-control for controlling the acceleration of the virtual object are displayed at the same time.
[0085] For example, when the first moving state is a cooling state, the virtual object 10 moves within a certain speed range, or the virtual object 10 moves at a constant speed, for example, the virtual object 10 chases by running, and the maximum speed of the virtual object 10 is 2 m / s. When the second moving state is a violent state, the virtual object 10 moves within a speed range with no upper speed limit, or the virtual object moves continuously at an accelerated speed, for example, the virtual object 10 in the violent state chases by running, and the speed of the virtual object 10 keeps increasing and has no upper limit.
[0086] In summary, the method provided in this embodiment displays a virtual environment screen; controls the activity of a virtual object in the virtual environment; and displays an active control in different forms based on the movement state of the virtual object, wherein the active control includes at least two sub-controls, and the active control displays at least one of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in different forms is different, and each sub-control is used to implement at least one control function. The present application combines active controls that provide different control functions and determines the display form of the active control according to the movement state of the virtual object, which not only simplifies the operation, but also saves the area occupied by the control in the user interface, reduces the operation requirements for the user, and improves the efficiency of human-computer interaction.
[0087] Figure 2 The following is a block diagram of a computer system according to an exemplary embodiment of the present application. The computer system 100 includes: a first terminal 110 , a server 120 , and a second terminal 130 .
[0088] The first terminal 110 is installed and runs a client 111 that supports a virtual environment, and the client 111 can be a multiplayer online battle program. When the first terminal runs the client 111, the user interface of the client 111 is displayed on the screen of the first terminal 110. The client 111 can be any one of a battle royale shooting game, a virtual reality (VR) application, an augmented reality (AR) program, a three-dimensional 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 tactical competitive game (MOBA), and a strategy game (SLG). In this embodiment, the client 111 is an MOBA game for 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 the first virtual object in the virtual environment to perform activities, or to operate the virtual items owned by the second virtual object. The first virtual object can be referred to as the virtual object of the first user 112. The first user 112 can assemble, disassemble, and uninstall the virtual items owned by the first virtual object, and this application does not limit this. Schematically, the first virtual object is a first virtual object, such as a simulated character or an animated character.
[0089] The second terminal 130 is installed and runs a client 131 that supports a virtual environment, and the client 131 can be a multiplayer online battle program. When the second terminal 130 runs the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. The client can be any one of a battle royale shooting game, a VR application, an AR program, a three-dimensional map program, a virtual reality game, an augmented reality game, an FPS, a TPS, a MOBA, and an SLG. In this embodiment, the client is an MOBA game 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 the second virtual object in the virtual environment to perform activities and operate the virtual items owned by the second virtual object. The second virtual object can be called a virtual object of the second user 113. Schematically, the second virtual object is a second virtual object, such as a simulated character or an anime character.
[0090] Optionally, the first virtual object and the second virtual object are in the same virtual environment. Optionally, the first virtual object and the second virtual object may belong to the same camp, the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different camps, different teams, different organizations, or have a hostile relationship.
[0091] Optionally, the client installed on the first terminal 110 and the second terminal 130 is the same, or the client installed on the two terminals is the same type of client on different operating system platforms (Android or IOS). The first terminal 110 may refer to one of a plurality of terminals, and the second terminal 130 may refer to another of a plurality of terminals. This embodiment is only illustrated by taking the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device type includes at least one of: a smart phone, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and a desktop computer.
[0092] Figure 2 Only two terminals are shown, but in different embodiments, there are multiple other terminals 140 that can access the server 120. Optionally, there are one or more terminals 140 corresponding to the developer, and a development and editing platform for the client supporting the virtual environment is installed on the terminal 140. The developer can edit and update the client on the terminal 140, and transmit the updated client installation package to the server 120 through 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 update the client.
[0093] The first terminal 110 , the second terminal 130 , and other terminals 140 are connected to the server 120 via a wireless network or a wired network.
[0094] The server 120 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services for the client supporting the three-dimensional virtual environment. Optionally, the server 120 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, the server 120 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, the server 120 and the terminal adopt a distributed computing architecture for collaborative computing.
[0095] In an illustrative example, the server 120 includes a processor 122, a user account database 123, a battle service module 124, and a user-oriented input / output interface (I / O interface) 125. The processor 122 is used to load instructions stored in the server 120 and process data in the user account database 123 and the battle service module 124; the user account database 123 is used to store data of user accounts used by the first terminal 110, the second terminal 130, and other terminals 140, such as the user account's avatar, the user account's nickname, the user account's combat power index, and the service area where the user account is located; the battle service module 124 is used to provide multiple battle rooms for users to fight, such as 1V1 battle, 3V3 battle, 5V5 battle, etc.; the user-oriented I / O interface 125 is used to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 through a wireless network or a wired network.
[0096] Figure 3 1 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. The method may be executed by a computer device, and the computer device includes a terminal or a client on the terminal. The method includes:
[0097] Step 302: Display the virtual environment screen.
[0098] The virtual environment screen is used to display the screen obtained by observing the virtual environment.
[0099] The virtual environment screen includes virtual objects located in the virtual environment.
[0100] Optionally, the virtual environment picture is a picture obtained by observing the virtual environment, and the imaging plane of the virtual environment picture is formed by acquiring model information of a three-dimensional virtual model of the virtual environment and rendering the three-dimensional virtual model as a screenshot.
[0101] The virtual environment is the environment in which the virtual object is located in the virtual world when the application in the terminal is running. Optionally, in an embodiment of the present application, the virtual object is observed in the virtual world through a camera model.
[0102] Optionally, the camera model automatically follows the virtual object in the virtual world, that is, when the position of the virtual object in the virtual world changes, the camera model changes simultaneously with the position of the virtual object in the virtual world, and the camera model is always within a preset distance range of the virtual object in the virtual world. Optionally, during the automatic following process, the relative position of the camera model and the virtual object does not change. In one example, the imaging plane is a plane perpendicular to the shooting direction of the camera model; for example, when the camera model uses a third-person perspective to shoot from above, the imaging plane is a horizontal plane in the virtual environment; when the camera model uses a first-person perspective to shoot from above, the imaging plane is parallel to the vertical direction. The horizontal plane is a plane perpendicular to the simulated gravity direction in the virtual environment, and the vertical direction is parallel to the simulated gravity direction in the virtual environment. Exemplarily, the camera model is also called a virtual camera (Virtual Camera). The shooting direction of the camera model is perpendicular to the imaging plane. The imaging plane is usually a rectangle, also called an imaging rectangle (Imaging Rectangle). The virtual photosensitive elements on the imaging plane correspond one-to-one to the pixels on the terminal screen. The virtual photosensitive elements record the light intensity and color when observing the virtual object through the camera model.
[0103] The camera model refers to a three-dimensional model located around the virtual object in the virtual world. When the first-person perspective is adopted, the camera model is located near the head of the virtual object or at the head of the virtual object; when the third-person perspective is adopted, the camera model can be located behind the virtual object and bound to the virtual object, or can be located at any position at a preset distance from the virtual object. Through the camera model, the virtual object located in the virtual world can be observed from different angles. Optionally, when the third-person perspective is a first-person over-the-shoulder perspective, the camera model is located behind the virtual object (such as the head and shoulders of the virtual object). Optionally, in addition to the first-person perspective and the third-person perspective, the perspective also includes other perspectives, such as a bird's-eye view; when the bird's-eye view is adopted, the camera model can be located above the head of the virtual object, and the bird's-eye view is a perspective of observing the virtual world from an aerial perspective. Optionally, the camera model will not be actually displayed in the virtual world, that is, the camera model is not displayed in the virtual world displayed in the user interface.
[0104] The camera model is located at an arbitrary position at a preset distance from the virtual object as an example for explanation. Optionally, one virtual object corresponds to one camera model, and the camera model can be rotated with the virtual object as the rotation center, such as: rotating the camera model with any point of the virtual object as the rotation center. During the rotation, the camera model not only rotates in angle, but also shifts in displacement. During the rotation, the distance between the camera model and the rotation center remains unchanged, that is, the camera model is rotated on the surface of a sphere with the rotation center as the center of the sphere, wherein any point of the virtual object can be the head, torso, or any point around the virtual object, and the embodiments of the present application do not limit this. Optionally, when the camera model observes the virtual object, the center of the camera model's viewing angle points to the direction of the point on the sphere where the camera model is located pointing to the center of the sphere.
[0105] Optionally, the camera model may also observe the virtual object at different directions of the virtual object at preset angles.
[0106] Step 304: Control the virtual object to move in the virtual environment.
[0107] A virtual object is a virtual object controlled by an account logged in to a terminal.
[0108] The object (also referred to as the user) controls the virtual object to perform activities in the virtual environment through the operation controls. The object can control the virtual object to perform activities by pressing one or more buttons in the operation controls. The activities include but are not limited to: adjusting body posture, walking, running, jumping, riding, driving, aiming, picking up and using at least one of throwing props. The embodiments of the present application are not limited to this.
[0109] Optionally, the subject can control the virtual object to release skills or use items by pressing buttons in one or more operation controls. The subject can also control the virtual object by signals generated by long pressing, clicking, double clicking and / or sliding on the touch screen.
[0110] Optionally, the methods of controlling the activities of virtual objects include: the object controls the activities of virtual objects through a virtual joystick on the terminal interface; the object controls the activities of virtual objects through an external device connected to the terminal (such as a handle, VR glasses, VR helmet, etc.); the object controls the activities of virtual objects through voice; the object controls the activities of virtual objects through somatosensory operations. This application does not specifically limit the methods of controlling the activities of virtual objects.
[0111] Step 306: Displaying activity controls in different forms based on the movement state of the virtual object.
[0112] The active control includes at least two sub-controls. The active control displays at least one sub-control of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in different forms is different. Each sub-control is used to implement at least one control function.
[0113] The active control is obtained by combining controls that provide different control functions, or the active control refers to a control that can provide at least two control functions. For example, the active control can control the virtual object to dodge and teleport, and can also control the virtual object to fly.
[0114] The movement state refers to a state related to the virtual object, or the movement state refers to a position state of the virtual object in the virtual environment, or the movement state refers to a motion state of the virtual object in the virtual environment.
[0115] Optionally, the moving state includes at least one of a ground state, a flying state, a solo state, a state of loading auxiliary props, a cooling state, and a violent state, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
[0116] The ground state refers to a state when the virtual object is located on the ground in the virtual environment, or the ground state refers to a state when the virtual object has a support in the virtual environment.
[0117] The flying state refers to the state when the virtual object is suspended in the air.
[0118] Exemplarily, when the virtual object is in a ground state, only the dodge sub-control in the active control is displayed in the virtual environment screen, and the dodge sub-control is used to control the virtual object to perform a dodge action or switch the state of the virtual object; when the virtual object is in a direction state, only the dodge sub-control in the active control is displayed in the virtual environment screen, and the dodge sub-control is used to control the virtual object to perform a dodge action or switch the state of the virtual object.
[0119] The solitary state refers to a state in which the virtual object in action does not carry any auxiliary props, or the solitary state refers to a state in which the virtual object acts on its own.
[0120] The auxiliary props loading state refers to the state in which the virtual object in action carries the auxiliary props, or the auxiliary props loading state refers to the state in which the virtual object acts by relying on the loaded auxiliary props.
[0121] Optionally, the auxiliary props include at least one of a virtual vehicle, a virtual pet, and virtual equipment, but are not limited thereto, and the embodiments of the present application do not make specific limitations on this.
[0122] Optionally, the virtual vehicle includes at least one of a virtual airplane, a virtual tank, a virtual armored vehicle, and a virtual motorcycle.
[0123] For example, the virtual object in the solo state runs forward; the virtual object in the auxiliary prop loading state rides on a virtual plane to move forward.
[0124] Exemplarily, when the virtual object is in a solo state, the sub-control for controlling the virtual object itself is displayed, and when the virtual object is in a state of loading auxiliary props, the sub-control for controlling the virtual object itself and the sub-control for controlling the auxiliary props are displayed at the same time.
[0125] The cooling state means that the virtual object in motion moves at a constant speed, or the cooling state means that the virtual object moves in a normal mode, or the cooling state means that the movement speed of the virtual object has an upper limit.
[0126] The frenzy state refers to that the virtual object in action accelerates its movement, or the frenzy state refers to that the virtual object moves in an accelerated mode, or the frenzy state refers to that there is no upper limit to the movement speed of the virtual object and it can accelerate infinitely.
[0127] For example, a virtual object in a cooling state runs forward at a constant speed; a virtual object in a frenzy state turns on the frenzy mode and runs forward at an accelerated speed.
[0128] Exemplarily, when the virtual object is in a cooling state, a sub-control for controlling the uniform movement of the virtual object is displayed, and when the virtual object is in a violent state, a sub-control for controlling the uniform movement of the virtual object and a sub-control for controlling the acceleration of the virtual object are displayed simultaneously.
[0129] In summary, the method provided in this embodiment displays a virtual environment screen; controls the activity of a virtual object in the virtual environment; and displays an active control in different forms based on the movement state of the virtual object, wherein the active control includes at least two sub-controls, and the active control displays at least one of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in different forms is different, and each sub-control is used to implement at least one control function. The present application combines active controls that provide different control functions and determines the display form of the active control according to the movement state of the virtual object, which not only simplifies the operation, but also saves the area occupied by the control in the user interface, reduces the operation requirements for the user, and improves the efficiency of human-computer interaction.
[0130] Figure 4 is a schematic diagram of a transformation process from a three-dimensional space to a two-dimensional image provided by an exemplary embodiment of the present application; Figure 4The process of mapping a feature point P in a three-dimensional space 401 to a feature point p' in an imaging plane 403 (image coordinate system, or pixel coordinate system) is shown. The coordinates of the feature point p in the 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. The three-dimensional space 401 is a three-dimensional space corresponding to the virtual environment. The camera plane 402 is determined by the posture of the camera model. The camera plane 402 is a plane perpendicular to the shooting direction of the camera model, and the imaging plane 403 and the camera plane 402 are parallel to each other. The imaging plane 403 is the plane of the virtual environment within the field of view when the virtual environment is observed when the camera model is imaged.
[0131] Figure 5 1 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. The method may be executed by a computer device, and the computer device includes a terminal or a client on the terminal. The method includes:
[0132] Step 502: Display the virtual environment screen.
[0133] The virtual environment screen is used to display the screen obtained by observing the virtual environment.
[0134] The virtual environment screen includes virtual objects located in the virtual environment.
[0135] Step 504: Control the virtual object to move in the virtual environment.
[0136] A virtual object is a virtual object controlled by an account logged in to a terminal.
[0137] The object controls the virtual object to perform activities in the virtual environment through the operation controls. The object can control the virtual object to perform activities by pressing one or more buttons in the operation controls. The activities include but are not limited to: adjusting body posture, walking, running, jumping, riding, driving, aiming, picking up and using at least one of throwing props. This embodiment of the present application is not limited to this.
[0138] Step 506: In response to the virtual object being in the first moving state, displaying a first functional sub-control in the active control.
[0139] The first function sub-control is used to control the virtual object to perform basic control functions.
[0140] Optionally, when the first moving state is a ground state, the basic control functions include controlling the execution of a dodging action, controlling the execution of a somersault action, controlling the execution of a high jump action, and controlling the execution of a backflip action, but are not limited to this, and the embodiments of the present application are not limited to this.
[0141] When the first moving state is a solitary state, the basic control function refers to relying on the virtual object itself to perform actions, for example, the virtual object chases by running.
[0142] When the first moving state is a cooling state, the basic control function refers to controlling the virtual object to move within a certain speed range, or controlling the virtual object to move at a constant speed, for example, the virtual object chases by running, and the maximum speed of the virtual object is 2m / s. The active control is obtained by combining sub-controls that provide different control functions, or the active control refers to a control that can provide at least two control functions. For example, the active control can control the virtual object to dodge and teleport, and can also control the virtual object to fly.
[0143] The movement state refers to a state related to the virtual object, or the movement state refers to a position state of the virtual object in the virtual environment, or the movement state refers to a motion state of the virtual object in the virtual environment.
[0144] For example, Figure 6 The schematic diagram of the active control shown, the active control includes a first function sub-control 601 and a second function sub-control 602, the first function sub-control 601 and the second function sub-control 602 respectively perform different skills, for example, the first function sub-control 601 is a dodge sub-control, 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 for controlling the dodge function and the control for controlling the flight function are merged, and the flight effect of the virtual object is achieved without adding additional controls for controlling the flight function. Optionally, the first function sub-control 601 and the second function sub-control 602 in the active control will be displayed following the state of the virtual object, for example, when the virtual object is in a ground state, only the first function sub-control 601 is displayed in the active control, that is, only the dodge sub-control is displayed; when the virtual object is in a flight state, the first function sub-control 601 and the second function sub-control 602 are displayed in the active control at the same time, that is, the dodge sub-control and the flight sub-control are displayed at the same time.
[0145] Taking the first movement state as the ground state as an example, the ground state refers to a state when the virtual object is located on the ground in the virtual environment, or the ground state refers to a state when the virtual object has a support in the virtual environment.
[0146] Exemplarily, in response to the virtual object being in a ground state, the computer device displays a dodge sub-control in the activity control.
[0147] Optionally, the ground state includes a virtual object standing on the ground, a virtual object standing on a stone, a virtual object running on the grass, or a virtual object crawling on the grass, but is not limited thereto and is not specifically limited in the embodiments of the present application.
[0148] The dodge sub-control is used to control the virtual object to perform dodge actions or switch the state of the virtual object.
[0149] State switching refers to switching the state of the virtual object from a first moving state to a second moving state, or, switching the state of the virtual object from the second moving state to the first moving state, or, switching the state of the virtual object from a ground state to a flying state, or, switching the state of the virtual object from a flying state to a ground state, but is not limited to this, and the embodiments of the present application do not make specific limitations on this.
[0150] In some embodiments, the computer device controls the virtual object to perform skills in different control functions in response to a triggering method based on the activity control.
[0151] The computer device controls the virtual object to execute the skill corresponding to the first functional sub-control in response to the first triggering mode based on the first functional sub-control in the activity control.
[0152] Optionally, the first trigger mode includes at least one of a tap operation, a long press operation, a sliding operation, a scrolling operation, a double-click operation, and a triple-click operation, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
[0153] Exemplarily, the computer device controls the virtual object to dodge and teleport in the virtual environment in response to a click operation based on the dodge sub-control.
[0154] Dodge teleportation refers to quickly moving to another location other than the current location. For example, before the dodge sub-control is clicked, the virtual object is displayed in area A, and after the dodge sub-control is clicked, the virtual object is displayed in area B, where area A and area B are different areas.
[0155] Optionally, the dodge teleport distance is fixed, for example, each time the dodge subcontrol is clicked, the virtual object dodges and teleports 10 meters.
[0156] Optionally, the direction of the dodge teleport is determined as follows:
[0157] When the direction of the dodge teleport is not determined by the joystick operation control, the direction of the dodge teleport is the direction corresponding to the virtual object's position facing forward, that is, the dodge teleport is forward;
[0158] When the direction of the dodge teleport is not determined by the joystick operation control, the direction of the dodge teleport is the opposite direction of the virtual object's position facing forward, that is, the dodge teleport is backward;
[0159] When the direction of the dodge teleport is not determined by the joystick operation control, the direction of the dodge teleport is a direction at a certain angle to the virtual object's position;
[0160] When the direction of the dodge teleport is determined by the joystick operation control, the direction of the dodge teleport is the direction determined by the joystick operation control.
[0161] For example, Figure 7 The schematic diagram of the trigger activity control shown is as follows Figure 7 As shown in FIG. 7( a ), a virtual environment screen is displayed in a computer device, and the virtual environment screen includes a virtual object 701 located in the virtual environment. When the virtual object 701 is on the ground, only a dodge sub-control 702 is displayed in the active control. By clicking the dodge sub-control 702, the virtual object 701 performs a dodge action in the virtual environment. Figure 7 Optionally, the direction of the evasive action is the direction in which the face of the virtual object 701 is facing, or the opposite direction to the direction in which the face of the virtual object 701 is facing.
[0162] For example, in response to a long-press operation based on the dodge sub-control, the computer device controls the virtual object to switch the moving state in the virtual environment.
[0163] For example, when the virtual object is in the ground state, the computer device responds to the long press operation based on the dodge subcontrol to control the virtual object to switch to the flying state, and the virtual object flies up from the original standing position and suspends in the air. When the virtual object is in the flying state, the computer device responds to the long press operation based on the dodge subcontrol to control the virtual object to switch to the ground state, and descend to the ground from the original suspending position.
[0164] For example, Figure 8 The schematic diagram of the trigger activity control shown is as follows Figure 8 As shown in FIG. 8( a ), a virtual environment screen is displayed in a computer device, and the virtual environment screen includes a virtual object 801 located in the virtual environment. When the virtual object 801 is on the ground, only the dodge subcontrol 802 is displayed in the active control. By long pressing the dodge subcontrol 802, the virtual object 801 switches the moving state in the virtual environment, as shown in FIG. Figure 8As shown in Figure (b), after the moving state of the virtual object 801 is switched, the virtual object 801 is in a flying state, the virtual object 801 is suspended in the air, and the dodge sub-control 802 and the flight sub-control 803 are displayed in the active control at the same time. By triggering the flight sub-control 803, the virtual object 801 can be controlled to perform flying actions.
[0165] Step 508: In response to the virtual object being in the second moving state, simultaneously displaying the first function sub-control and the second function sub-control in the active control.
[0166] The second function is used to control the virtual object to perform an additional type of control function in the second moving state.
[0167] Optionally, when the second moving state is a flying state, the additional control functions include at least one of controlling the execution of faster evasive actions in the air, controlling the execution of continuous somersaults in the air, controlling the execution of continuous high jumps in the air, and controlling the execution of continuous backflips in the air, but are not limited to these. The embodiments of the present application are not limited to this.
[0168] When the second moving state is the auxiliary prop loading state, the additional control function refers to the virtual object driving the loaded auxiliary prop to move at a faster speed, for example, the virtual object chases by driving an airplane.
[0169] When the second movement state is a frenzy state, the additional control function refers to controlling the virtual object to move within a speed range with no upper speed limit, or controlling the virtual object to continuously accelerate its movement. For example, the virtual object in the frenzy state chases by running, and the speed of the virtual object is constantly increasing and has no upper limit.
[0170] Taking the flying state as an example of the second moving state, the flying state refers to a state when the virtual object is suspended in the air.
[0171] Exemplarily, in response to the virtual object being in a flying state, the computer device simultaneously displays a dodge sub-control and a fly sub-control in the activity control.
[0172] The flight sub-control is used to control the virtual object to fly in the air.
[0173] Optionally, the flight sub-control includes an upper flight sub-control and a lower flight sub-control; the upper flight sub-control is used to control the virtual object to fly upward, and the lower flight sub-control is used to control the virtual object to fly downward.
[0174] In some embodiments, the computer device controls the virtual object to perform a skill corresponding to the second functional sub-control in response to a second triggering method based on the second functional sub-control in the active control.
[0175] Optionally, the second trigger mode includes at least one of a tap operation, a long press operation, a sliding operation, a scrolling operation, a double-click operation, and a triple-click operation, but is not limited to this. The embodiment of the present application does not make any specific limitation on this.
[0176] The computer device controls the virtual object to fly in the virtual environment in response to a sliding operation between the dodge sub-control and the fly sub-control.
[0177] Optionally, the distance of the flying action is fixed, for example, the virtual object flies 10 meters for each slide.
[0178] Optionally, the flying action of the virtual object in the air includes at least one of the following, but is not limited thereto, taking upward flight as an example:
[0179] Based on the triggering operation of the virtual object, the virtual object flies upward at a constant speed for a fixed time. For example, after each triggering operation, the virtual object flies upward at a speed of 5m / s for 3 seconds;
[0180] Based on the triggering operation of the virtual object, the virtual object 1 accelerates upward. For example, after each triggering operation, the virtual object 1 accelerates upward at 5 m / s. 2 Fly upwards at an acceleration of 3 seconds;
[0181] Based on the triggering operation of the virtual object, the virtual object flies upward by a fixed distance, for example, the virtual object flies upward by 5 meters after each triggering operation;
[0182] Based on the triggering operation of the virtual object, the virtual object decelerates and flies upward.
[0183] Optionally, the computer device controls the virtual object to fly upward in the virtual environment in response to an upward sliding operation between the dodge sub-control and the upward flight sub-control.
[0184] For example, Fig. 9 The schematic diagram of the trigger activity control shown is as follows Fig. 9 As shown in FIG. 1 (a), a virtual environment screen is displayed in a computer device, and the virtual environment screen includes a virtual object 901 located in the virtual environment. The virtual object 901 is in a flying state. A dodge sub-control 902 and a flight sub-control are displayed in the activity control at the same time. The flight sub-control includes an upper flight sub-control 903 and a lower flight sub-control 904. By sliding upward along the direction between the dodge sub-control 902 and the upper flight sub-control 903, as shown in FIG. Fig. 9 As shown in Figure (b) in the figure, the virtual object 901 is controlled to fly upward in the virtual environment.
[0185] Optionally, the computer device controls the virtual object to fly downward in the virtual environment in response to a downward sliding operation between the dodge sub-control and the downward flight sub-control.
[0186] For example, Fig.10 The schematic diagram of the trigger activity control shown is as follows Fig.10 As shown in Figure (a), a virtual environment screen is displayed in a computer device, and the virtual environment screen includes a virtual object 1001 located in the virtual environment. The virtual object 1001 is in a flying state. The activity control simultaneously displays a dodge sub-control 1002 and a flight sub-control. The flight sub-control includes an upper flight sub-control 1003 and a lower flight sub-control 1004. By sliding downward along the direction between the dodge sub-control 1002 and the lower flight sub-control 1004, as shown in FIG. Fig.10 As shown in Figure (b), the virtual object 001 is controlled to fly downward in the virtual environment.
[0187] In some embodiments, the computer device controls the virtual object to perform skills in different control functions along the direction corresponding to the joystick operation control in response to a composite triggering method based on the joystick operation control and the activity control.
[0188] Optionally, the computer device controls the virtual object to perform dodge teleportation along the direction corresponding to the joystick operation control in response to a composite triggering method based on the joystick operation control and the dodge sub-control.
[0189] Optionally, the computer device controls the virtual object to perform a flying action along a direction corresponding to the joystick operation control in response to a composite triggering method based on the joystick operation control and the flight sub-control.
[0190] For example, Fig.11 The schematic diagram of the trigger activity control shown is as follows Fig.11 As shown in Figure (a), a virtual environment screen is displayed in a computer device, and the virtual environment screen includes a virtual object 1101 and a joystick operation control 1105 located in the virtual environment. The virtual object 1101 is in a flying state, and a dodge sub-control 1102 and a flight sub-control are displayed in the active control at the same time. The flight sub-control includes an upper flight sub-control 1103 and a lower flight sub-control 1104. By sliding upward along the direction between the dodge sub-control 1102 and the upper flight sub-control 1103, the flight direction of the virtual object 1101 is determined by controlling the joystick operation control 1105. For example, the direction determined in the joystick operation control 1105 is 45 degrees northwest, as shown in FIG. Fig.11 As shown in Figure (b), the virtual object 1101 is controlled to fly at 45 degrees in the northwest direction in the virtual environment.
[0191] In some embodiments, the computer device controls the virtual object to perform skills in different control functions along the coupling direction in response to a composite triggering method based on the joystick operation control and the activity control.
[0192] The coupling direction refers to the coupling synthesis direction of the direction corresponding to the joystick operation control and the direction of the skills in different control functions.
[0193] Optionally, the computer device controls the virtual object to perform dodge teleportation along the first coupling direction in response to a composite triggering method based on the joystick operation control and the dodge sub-control.
[0194] The first coupling direction refers to the coupling synthesis direction of the direction corresponding to the joystick operation control and the dodge teleportation direction corresponding to the dodge sub-control.
[0195] For example, the direction corresponding to the joystick operation control is west, and the dodge teleport direction is north, then the first coupling direction is northwest.
[0196] Optionally, the computer device controls the virtual object to perform a flying action along the second coupling direction in response to a composite triggering method based on the joystick operation control and the flight sub-control.
[0197] The second coupling direction refers to the coupled synthetic direction of the direction corresponding to the joystick operation control and the flight direction corresponding to the flight sub-control.
[0198] For example, the direction corresponding to the joystick operation control is westward, and the flight corresponding to the flight sub-control is southward, then the second coupling direction is southwestward.
[0199] In summary, the method provided in this embodiment displays a virtual environment screen; controls the activity of a virtual object in the virtual environment; and displays an active control in different forms based on the movement state of the virtual object, wherein the active control includes at least two sub-controls, and the active control displays at least one of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in different forms is different, and each sub-control is used to implement at least one control function. The present application combines active controls that provide different control functions and determines the display form of the active control according to the movement state of the virtual object, which not only simplifies the operation, but also saves the area occupied by the control in the user interface, reduces the operation requirements for the user, and improves the efficiency of human-computer interaction.
[0200] The method provided in this embodiment displays the first functional sub-control in the active control when the virtual object is in the first moving state; and displays the first functional sub-control and the second functional sub-control in the active control at the same time when the virtual object is in the second moving state. Different sub-controls are displayed through different moving forms, which simplifies the operation, saves the area occupied by the controls in the user interface, reduces the operation requirements for the user, and improves the efficiency of human-computer interaction.
[0201] The method provided in this embodiment controls the virtual object to execute skills in different control functions according to different triggering methods such as tap operation, long press operation, and sliding operation for the same active control, thereby saving the area occupied by the control in the user interface, reducing the operation requirements for the user, and improving the efficiency of human-computer interaction.
[0202] The method provided in this embodiment is based on the composite triggering mode of the joystick operation control and the activity control, so that the virtual object can have more diverse activities or skill release modes, thereby improving the efficiency of human-computer interaction.
[0203] Fig.12 1 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. The method may be executed by a computer device, and the computer device includes a terminal or a client on the terminal. The method includes:
[0204] Step 1201: Get interaction actions.
[0205] Interactions are the ways in which users interact with controls in the user interface.
[0206] Optionally, the triggering method includes at least one of a tap operation, a long press operation, a sliding operation, a scrolling operation, a double-click operation, and a triple-click operation, but is not limited to this. The embodiment of the present application does not make any specific limitation on this.
[0207] Exemplarily, the computer device obtains the triggering mode between the user and the controls in the user interface, and executes step 1202 when the interaction action is a tap operation; executes step 1206 when the interaction action is an accidental touch operation; executes step 1208 when the interaction action is a long press operation; and executes step 1212 when the interaction action is a sliding operation.
[0208] The computer device obtains the interaction action in at least one of the following ways, but is not limited to these:
[0209] When the user triggers the control, the time starts to be recorded, and the time length is recorded as A; when the finger leaves, or after a certain length of time (for example, 1 second), the timer stops and the record is reset;
[0210] When the user triggers the control, the finger coordinate position starts to be recorded, and the position offset span is recorded as B; when the finger leaves or reaches a certain position span, the offset span recording stops and the record is reset.
[0211] For example, the absolute value of the offset span is 30 pixels, and 30 pixels is the distance from the default state of the dodge subcontrol to the fly subcontrol.
[0212] The computer device determines the interactive action based on the recorded time length A and / or position offset B.
[0213] Step 1202: Click operation.
[0214] A tap operation is when you tap a button or area on the screen with your finger and then quickly release it.
[0215] The computer device obtains the parameters of this interaction action, and determines that this interaction action is a tap operation when the time length A is less than 0.2 seconds and the position offset |B| is less than 30 pixels.
[0216] When the current interactive action is a tap operation, execute step 1203 .
[0217] Step 1203: Determine whether there is any input to the joystick operation control.
[0218] The joystick operation control is used to control the horizontal movement of the virtual object, including control in various horizontal directions such as front, back, left, and right.
[0219] Exemplarily, when the current interactive action is a tap operation, it is determined whether the joystick operation control has any input. If the joystick operation control has any input, step 1204 is executed; if the joystick operation control has no input, step 1205 is executed.
[0220] Step 1204: Perform evasive teleportation along the direction determined by the joystick operation control.
[0221] Exemplarily, when there is an input to the joystick operation control, the direction corresponding to the joystick operation control is determined, and the virtual object is controlled to dodge and teleport along the direction determined by the joystick operation control.
[0222] For example, according to the direction determined by the joystick operation control, the virtual object is controlled to dodge and teleport 10 meters along the direction determined by the joystick operation control.
[0223] Step 1205: Perform evasive teleportation along the default direction.
[0224] Exemplarily, when there is no input to the joystick operation control, the virtual object is controlled to dodge and teleport along a default direction.
[0225] For example, according to the direction determined by the joystick operation control, the virtual object is controlled to dodge and teleport 10 meters along the default direction.
[0226] The default orientation includes at least one of the following:
[0227] The direction of the dodge teleport is the direction corresponding to the virtual object's position facing forward, that is, the dodge teleport is forward;
[0228] The direction of the evasive teleport is the opposite direction of the direction in which the virtual object's position faces forward, that is, the evasive teleport is backward.
[0229] Step 1206: False touch operation.
[0230] The computer device obtains the parameters of this interaction action, and determines that this interaction action is an accidental touch operation when 0.2 seconds ≤ time length A ≤ 1 second and the position offset |B| is less than 30 pixels.
[0231] If the current interactive action is an accidental touch operation, execute step 1207 .
[0232] Step 1207: No change.
[0233] If the interactive action is an accidental touch operation, no other changes will be displayed in the virtual environment screen.
[0234] Step 1208: Long press operation.
[0235] The computer device obtains the parameters of this interaction action, and determines that this interaction action is a long press operation when the time length A is equal to 1 second (the timing stops after reaching 1 second, and theoretically it will not be greater than 1 second) and the position offset |B| is less than 30 pixels.
[0236] The long press operation is used to control the switching of the movement state of the virtual object in the virtual environment.
[0237] When the current interactive action is a long press operation, execute step 1209.
[0238] Step 1209: Determine whether it is in the ground state.
[0239] When the current interactive action is a long press operation, the movement state of the virtual object is determined according to the mark position of the virtual object.
[0240] The movement state refers to a state related to the virtual object, or the movement state refers to a position state of the virtual object in the virtual environment, or the movement state refers to a motion state of the virtual object in the virtual environment.
[0241] Optionally, the moving state includes at least one of a ground state and a flight state, but is not limited thereto, and the embodiments of the present application do not make specific limitations on this.
[0242] The ground state refers to a state when the virtual object is located on the ground in the virtual environment, or the ground state refers to a state when the virtual object has a support in the virtual environment.
[0243] The flying state refers to the state when the virtual object is suspended in the air.
[0244] The mark bit is the state identifier of the virtual object. The state identifier includes 0 and 1. 0 is the ground state, and 1 is the take-off state.
[0245] When the state identifier of the virtual object is 0, the virtual object is in the ground state, and only the dodge sub-control is displayed in the active control, and the sliding operation is not supported.
[0246] When the state identifier of the virtual object is 1, the virtual object is in a flying state, and the dodge sub-control and the flight sub-control buttons are displayed simultaneously in the activity control, and sliding operations can be supported.
[0247] Exemplarily, when the virtual object is not in a ground state, step 1210 is executed; when the virtual object is in a ground state, step 1211 is executed.
[0248] Step 1210: Switch to ground state and land on the ground.
[0249] When the virtual object is not in the ground state, that is, when the virtual object is in the flying state, the moving state of the virtual object is switched to the ground state and lands on the ground (the height of the virtual object on the y-axis is reduced to 0), and at the same time, the state flag of the virtual object is switched from 1 to 0, and the flying sub-control button in the active control is canceled.
[0250] Step 1211: Switch to flying state and float in the air.
[0251] When the virtual object is on the ground, the moving state of the virtual object is switched to the flying state and suspended in the air (increase the height of the virtual object on the y-axis by 10 meters), and at the same time, the state flag of the virtual object is switched from 0 to 1, and a flying sub-control button is added in the display activity control.
[0252] Step 1212: Slide operation.
[0253] The computer device obtains the parameters of this interaction action, and when the position offset |B| is equal to 30 pixels (recording stops after reaching 30 pixels, and theoretically B will not be greater than 30 pixels), it is determined that this interaction action is a sliding operation.
[0254] The sliding operation is used to control the virtual object to fly in the virtual environment.
[0255] When the current interactive action is a sliding operation, step 1212 is executed.
[0256] Step 1213: Fly along the sliding direction.
[0257] Exemplarily, the computer device controls the virtual object to fly along the sliding direction.
[0258] For example, when the value of the position offset B is +30 pixels, the virtual object is controlled to fly 10 meters upward in the virtual environment. When the value of the position offset B is -30 pixels, the virtual object is controlled to fly 10 meters downward in the virtual environment.
[0259] Fig.13 A schematic diagram of the structure of a virtual object control device provided by an exemplary embodiment of the present application is shown. The device can be implemented as all or part of a computer device through software, hardware, or a combination of both. The device includes:
[0260] A display module 1301 is used to display a virtual environment screen, wherein the virtual environment screen includes virtual objects in the virtual environment;
[0261] A control module 1302, used for controlling the virtual object to move in the virtual environment;
[0262] Display module 1301 is used to display an active control in different forms based on the moving state of the virtual object, the active control includes at least two sub-controls, and the active control displays at least one sub-control of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in the different forms is different, and each sub-control is used to implement at least one control function.
[0263] In some embodiments, the display module 1301 is further configured to display the first functional sub-control in the activity control in response to the virtual object being in the first moving state.
[0264] In some embodiments, the display module 1301 is further configured to simultaneously display the first function sub-control and the second function sub-control in the activity control in response to the virtual object being in the second moving state.
[0265] The first function sub-control is used to control the virtual object to perform a basic control function, and the second function sub-control is used to control the virtual object to perform an additional control function in the second moving state.
[0266] In some embodiments, the display module 1301 is further configured to display a dodge sub-control in the activity control in response to the virtual object being in a ground state.
[0267] The ground state refers to the state when the virtual object is located on the ground in the virtual environment, and the dodge sub-control is used to control the virtual object to perform a dodge action or to switch the state of the virtual object.
[0268] In some embodiments, the display module 1301 is further configured to simultaneously display the dodge sub-control and the flight sub-control in the activity control in response to the virtual object being in a flying state.
[0269] The flight state refers to the state when the virtual object is suspended in the air, and the flight sub-control is used to control the virtual object to perform a flight action in the air.
[0270] In some embodiments, the control module 1302 is further used to control the virtual object to perform skills in the different control functions in response to a triggering method based on the activity control.
[0271] In some embodiments, the control module 1302 is further used to control the virtual object to execute the skill corresponding to the first functional sub-control in response to a first triggering method based on the first functional sub-control in the activity control.
[0272] In some embodiments, the control module 1302 is further used to control the virtual object to execute the skill corresponding to the second functional sub-control in response to a second triggering method based on the second functional sub-control in the activity control.
[0273] In some embodiments, the control module 1302 is further used to control the virtual object to dodge and teleport in the virtual environment in response to a tap operation on the dodge sub-control.
[0274] In some embodiments, the control module 1302 is further configured to control the virtual object to switch the movement state in the virtual environment in response to a long press operation on the dodge sub-control.
[0275] In some embodiments, the control module 1302 is further configured to control the virtual object to fly in the virtual environment in response to a sliding operation based on the flight sub-control.
[0276] In some embodiments, the control module 1302 is further used to control the virtual object to fly in the virtual environment in response to the sliding operation between the dodge sub-control and the flight sub-control.
[0277] In some embodiments, the control module 1302 is further configured to control the virtual object to fly upward in the virtual environment in response to an upward sliding operation between the dodge sub-control and the upward flight sub-control.
[0278] In some embodiments, the control module 1302 is further configured to control the virtual object to fly downward in the virtual environment in response to a downward sliding operation between the dodge sub-control and the downward flight sub-control.
[0279] In some embodiments, the control module 1302 is further used to control the virtual object to execute skills in the different control functions along the direction corresponding to the joystick operation control in response to a composite triggering method based on the joystick operation control and the activity control.
[0280] Fig.14 The block diagram of the structure of a computer device 1400 provided by an exemplary embodiment of the present application is shown. The computer device 1400 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 1400 may also be called a user device, a portable terminal, or other names.
[0281] Typically, the computer device 1400 includes a processor 1401 and a memory 1402 .
[0282] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1401 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1401 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0283] The memory 1402 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1402 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1402 is used to store at least one instruction, which is used to be executed by the processor 1401 to implement the control method of the virtual object provided in the embodiment of the present application.
[0284] In some embodiments, the computer device 1400 may further include: a peripheral device interface 1403 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1404 , a touch display screen 1405 , a camera assembly 1406 , an audio circuit 1407 and a power supply 1408 .
[0285] The peripheral device interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral device interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0286] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1404 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1404 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0287] The touch display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1405 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1405. The touch signal may be input to the processor 1401 as a control signal for processing. The touch display screen 1405 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1405 may be one, and the front panel of the computer device 1400 is set; in other embodiments, the touch display screen 1405 may be at least two, which are respectively set on different surfaces of the computer device 1400 or are folded; in some embodiments, the touch display screen 1405 may be a flexible display screen, which is set on a curved surface or a folded surface of the computer device 1400. Even, the touch display screen 1405 can also be set as a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1405 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0288] The camera assembly 1406 is used to capture images or videos. Optionally, the camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting functions. In some embodiments, the camera assembly 1406 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0289] The audio circuit 1407 is used to provide an audio interface between the user and the computer device 1400. The audio circuit 1407 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1401 for processing, or input them into the radio frequency circuit 1404 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the computer device 1400. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as distance measurement. In some embodiments, the audio circuit 1407 may also include a headphone jack.
[0290] The power supply 1408 is used to power various components in the computer device 1400. The power supply 1408 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1408 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged through a wired line, and a wireless rechargeable battery is a battery that is charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0291] In some embodiments, the computer device 1400 further includes one or more sensors 1409 , including but not limited to: an acceleration sensor 1410 , a gyroscope sensor 1411 , a pressure sensor 1412 , an optical sensor 1413 , and a proximity sensor 1414 .
[0292] The acceleration sensor 1410 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the computer device 1400. For example, the acceleration sensor 1410 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1401 can control the touch display screen 1405 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1410. The acceleration sensor 1410 can also be used for collecting game or user motion data.
[0293] The gyro sensor 1411 can detect the body direction and rotation angle of the computer device 1400, and the gyro sensor 1411 can cooperate with the acceleration sensor 1410 to collect the user's 3D actions on the computer device 1400. The processor 1401 can implement the following functions based on the data collected by the gyro sensor 1411: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0294] The pressure sensor 1412 can be set on the side frame of the computer device 1400 and / or the lower layer of the touch display screen 1405. When the pressure sensor 1412 is set on the side frame of the computer device 1400, it can detect the user's grip signal of the computer device 1400, and perform left and right hand recognition or shortcut operations according to the grip signal. When the pressure sensor 1412 is set on the lower layer of the touch display screen 1405, it can control the operability controls on the UI interface according to the user's pressure operation on the touch display screen 1405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0295] The optical sensor 1413 is used to collect the ambient light intensity. In one embodiment, the processor 1401 can control the display brightness of the touch display screen 1405 according to the ambient light intensity collected by the optical sensor 1413. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1405 is reduced. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 according to the ambient light intensity collected by the optical sensor 1413.
[0296] The proximity sensor 1414, also called a distance sensor, is usually arranged on the front of the computer device 1400. The proximity sensor 1414 is used to collect the distance between the user and the front of the computer device 1400. In one embodiment, when the proximity sensor 1414 detects that the distance between the user and the front of the computer device 1400 is gradually decreasing, the processor 1401 controls the touch display screen 1405 to switch from the screen-on state to the screen-off state; when the proximity sensor 1414 detects that the distance between the user and the front of the computer device 1400 is gradually increasing, the processor 1401 controls the touch display screen 1405 to switch from the screen-off state to the screen-on state.
[0297] Those skilled in the art will understand that Fig.14 The structure shown in the figure does not constitute a limitation on the computer device 1400, and the computer device 1400 may include more or less components than shown in the figure, or combine some components, or adopt a different arrangement of components.
[0298] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the virtual object control method provided by the above-mentioned method embodiments.
[0299] An embodiment of the present application further provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the virtual object control method provided by the above-mentioned method embodiments.
[0300] An embodiment of the present application also provides a computer program product, which includes a computer program, and the computer program is stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes to implement the control method of the virtual object provided by the above-mentioned method embodiments.
[0301] It will be understood that in the specific implementation of the present application, the data involved, historical data, and data related to user data processing such as portraits related to user identity or characteristics, when the above embodiments of the present application are applied to specific products or technologies, need to obtain user permission or consent, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0302] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0303] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0304] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switching, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling a virtual object, characterized in that: The method comprises: Displaying a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment; Controlling the virtual object to move in the virtual environment; Based on the movement state of the virtual object, an active control in different forms is displayed, the active control includes at least two sub-controls, and the active control displays at least one sub-control of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in the different forms is different, and each sub-control is used to implement at least one control function.
2. The method according to claim 1, characterized in that The active control includes a first functional sub-control and a second functional sub-control; The displaying of activity controls with different control functions based on the movement state of the virtual object comprises: In response to the virtual object being in a first moving state, displaying the first functional sub-control in the activity control; In response to the virtual object being in a second moving state, simultaneously displaying the first function sub-control and the second function sub-control in the activity control; The first function sub-control is used to control the virtual object to perform a basic control function, and the second function sub-control is used to control the virtual object to perform an additional control function in the second moving state.
3. The method according to claim 2, characterized in that In response to the virtual object being in the first moving state, displaying the first functional sub-control in the activity control comprises: In response to the virtual object being in a ground state, displaying a dodge sub-control in the activity control; The ground state refers to the state when the virtual object is located on the ground in the virtual environment, and the dodge sub-control is used to control the virtual object to perform a dodge action or to switch the state of the virtual object.
4. The method according to claim 2, characterized in that: In response to the virtual object being in the second moving state, simultaneously displaying the first function sub-control and the second function sub-control in the activity control, comprises: In response to the virtual object being in a flying state, simultaneously displaying a dodge sub-control and a fly sub-control in the activity control; The flight state refers to the state when the virtual object is suspended in the air, and the flight sub-control is used to control the virtual object to perform a flight action in the air.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to a triggering mode based on the activity control, the virtual object is controlled to perform skills in the different control functions.
6. The method according to claim 5, characterized in that The step of controlling the virtual color calibration to execute the skills in the different control functions in response to the triggering mode based on the activity control comprises: In response to a first triggering mode based on a first functional sub-control in the activity control, controlling the virtual object to execute the skill corresponding to the first functional sub-control; In response to a second triggering method based on a second functional sub-control in the activity control, the virtual object is controlled to execute the skill corresponding to the second functional sub-control.
7. The method according to claim 6, characterized in that The controlling the virtual object to execute the skill corresponding to the first functional sub-control in response to the first triggering mode of the first functional sub-control in the activity control includes: In response to a click operation on the dodge sub-control, the virtual object is controlled to perform dodge teleportation in the virtual environment.
8. The method according to claim 6, characterized in that The controlling the virtual object to execute the skill corresponding to the first functional sub-control in response to the first triggering mode of the first functional sub-control in the activity control includes: In response to a long press operation on the dodge sub-control, the virtual object is controlled to switch the movement state in the virtual environment.
9. The method according to claim 6, characterized in that The controlling the virtual object to perform the skill operation corresponding to the second functional sub-control in response to the second triggering mode of the second functional sub-control in the active control includes: In response to a sliding operation based on the flight sub-control, the virtual object is controlled to fly in the virtual environment.
10. The method according to claim 9, characterized in that The step of controlling the virtual object to fly in the virtual environment in response to a sliding operation based on the flight sub-control comprises: In response to the sliding operation between the dodge sub-control and the fly sub-control, the virtual object is controlled to fly in the virtual environment.
11. The method according to claim 10, characterized in that The flight sub-control includes an upper flight sub-control and a lower flight sub-control; The step of controlling the virtual object to fly in the virtual environment in response to the sliding operation between the dodge sub-control and the fly sub-control comprises: In response to an upward sliding operation between the dodge sub-control and the upward flying sub-control, the virtual object is controlled to fly upward in the virtual environment.
12. The method according to claim 10, characterized in that The step of controlling the virtual object to fly in the virtual environment in response to the sliding operation between the dodge sub-control and the fly sub-control comprises: In response to a downward sliding operation between the dodge sub-control and the downward flight sub-control, the virtual object is controlled to fly downward in the virtual environment.
13. The method according to any one of claims 1 to 4, characterized in that: The virtual environment screen also displays a joystick operation control, and the method further includes: In response to a composite triggering method based on the joystick operation control and the activity control, the virtual object is controlled to execute skills in the different control functions along a direction corresponding to the joystick operation control.
14. A control device for a virtual object, characterized in that: The device comprises: A display module, used for displaying a virtual environment screen, wherein the virtual environment screen includes virtual objects located in the virtual environment; A control module, used for controlling the virtual object to move in the virtual environment; The display module is used to display an active control in different forms based on the movement state of the virtual object, the active control includes at least two sub-controls, and the active control displays at least one sub-control of the at least two sub-controls in each form. The number of sub-controls displayed by the active control in the different forms is different, and each of the sub-controls is used to implement at least one control function.
15. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to implement the control method of the virtual object according to any one of claims 1 to 13.
16. A computer storage medium, characterized in that: At least one computer program is stored in the computer-readable storage medium, and the at least one computer program is loaded and executed by the processor to implement the control method of the virtual object according to any one of claims 1 to 13.
17. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium; the computer program is read and executed from the computer-readable storage medium by a processor of a computer device, so that the computer device executes the control method of a virtual object as claimed in any one of claims 1 to 13.
