Method, device, equipment, chip, and computer program for controlling virtual objects
By displaying a linear skill indicator between virtual objects and determining the target based on the first object's direction, the method enhances skill activation accuracy in network games, allowing players to adjust directions for precise targeting.
Patent Information
- Application Number
- JP2024531735
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-02-28
- Filing Date
- 2022-11-28
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-11-28
AI Technical Summary
The accuracy of skill activation in network games is low due to the selection of the second virtual object being based on distance or attribute value, often not aligning with the player's intended target.
A method and apparatus for controlling virtual objects that display a linear skill indicator between a first virtual object and candidate objects, determining the second virtual object based on the heading direction of the first object, and updating the indicator as objects move, allowing players to adjust the direction for precise skill activation.
Improves the accuracy of skill activation by enabling players to quickly lock onto and aim at the intended target through directional adjustments, enhancing the precision of skill usage in network games.
Smart Images

Figure 2024543936000001_ABST
Abstract
Description
[Technical field]
[0001] This application claims priority to a Chinese patent application filed on February 28, 2022, bearing application number 202210189724.X, and entitled "Method, device, equipment and medium for controlling virtual objects," the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of virtual worlds, and in particular to a method, device, apparatus and medium for controlling virtual objects. [Background technology]
[0003] In network games having virtual environments, such as multiplayer online role-playing games, players take on the role of one or more virtual objects and control the activities and actions of the virtual objects in the virtual world of the game.
[0004] In a network game, a player controls a first virtual object to activate a skill, thereby reducing the attribute value of another virtual object. For example, when a player triggers a skill widget, the player generally selects a second virtual object that is closest to the first virtual object or has the lowest attribute value as a target for the skill activation. Summary of the Invention [Problem to be solved by the invention]
[0005] The second virtual object determined based on the distance or the magnitude of the attribute value may not be the player's desired target for skill activation, resulting in low accuracy in skill activation.
[0006] The embodiments of the present application provide a method, device, apparatus and medium for controlling a virtual object, and the technical solutions are as follows: [Means for solving the problem]
[0007] According to one aspect of the present application, a method for controlling a virtual object executed by a computer device is provided, the method including: displaying a first virtual object having a first skill and at least one candidate virtual object; if a second virtual object is located within a skill activation range of the first skill, displaying a linear skill indicator of the first skill between the first virtual object and the second virtual object, the second virtual object being one of the at least one candidate virtual object and determined based on a heading direction of the first virtual object, a first end of the linear skill indicator being located on the first virtual object, and a second end of the linear skill indicator being located on the second virtual object; if at least one of the first virtual object and the second virtual object moves, updating and displaying the linear skill indicator; and controlling the first virtual object to activate the first skill on the second virtual object in response to a skill activation operation.
[0008] According to one aspect of the present application, a control device for a virtual object is provided, the device including: a display module that displays a first virtual object having a first skill and at least one candidate virtual object; and a response module that controls the first virtual object to activate the first skill on a second virtual object in response to a skill activation operation, the display module further displays a linear skill indicator of the first skill between the first virtual object and the second virtual object when the second virtual object is located within a skill activation range of the first skill, the second virtual object being one of the at least one candidate virtual object and determined based on a direction in which the first virtual object is heading, a first end of the linear skill indicator is located on the first virtual object, and a second end of the linear skill indicator is located on the second virtual object; and the display module further updates and displays the linear skill indicator when at least one of the first virtual object and the second virtual object moves.
[0009] According to one aspect of the present application, a computer device is provided, the computer device including a processor, the processor executes the following operations: displaying a first virtual object having a first skill and at least one candidate virtual object; when a second virtual object is located within a skill activation range of the first skill, displaying a linear skill indicator of the first skill between the first virtual object and the second virtual object, the second virtual object being one of the at least one candidate virtual object and being determined based on a heading direction of the first virtual object, a first end of the linear skill indicator being located on the first virtual object and a second end being located on the second virtual object; updating and displaying the linear skill indicator when at least one of the first virtual object and the second virtual object moves; and controlling the first virtual object to activate the first skill on the second virtual object in response to a skill activation operation.
[0010] According to one aspect of the present application, a computer-readable storage medium is provided, the storage medium storing a computer program, the computer program being executed by a processor to realize the above-described method for controlling a virtual object.
[0011] According to one aspect of the present application, there is provided a chip, the chip including programmable logic circuitry and / or program instructions, which when operated, implements the method of controlling a virtual object as described above.
[0012] According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium, and a processor reading and executing the computer instructions from the computer-readable storage medium to realise the method for controlling a virtual object as described above. Effect of the Invention
[0013] The beneficial effects of the technical solutions provided by the embodiments of the present application at least include the following: Before activating the first skill, a second virtual object is determined based on the direction of the first virtual object, and a linear skill indicator of the first skill is automatically displayed between the first virtual object and the second virtual object, so that a player controlling the first virtual object can exchange the second virtual object by adjusting the direction of the first virtual object, thereby realizing quick locking and aiming at the object to which the first skill is applied before the skill activation operation, and improving the accuracy of the activation of the first skill. [Brief description of the drawings]
[0014] [Figure 1] 1 is a structural schematic diagram of a terminal provided by an exemplary embodiment of the present application; [Diagram 2] 1 is a structural block diagram of a computer system provided by one exemplary embodiment of the present application. [Diagram 3] FIG. 2 is an interface schematic diagram of a virtual object control method provided by an exemplary embodiment of the present application. [Figure 4] 1 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. [Diagram 5] 1 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. [Figure 6] FIG. 2 is an interface schematic diagram of a virtual object control method provided by an exemplary embodiment of the present application. [Figure 7] FIG. 2 is an interface schematic diagram of a virtual object control method provided by an exemplary embodiment of the present application. [Figure 8] FIG. 2 is an interface schematic diagram of a virtual object control method provided by an exemplary embodiment of the present application. [Figure 9]1 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. [Figure 10] FIG. 2 is a schematic diagram of determining an included position angle provided by one exemplary embodiment of the present application. [Figure 11] FIG. 2 is a schematic diagram of determining relative distance provided by one exemplary embodiment of the present application; [Figure 12] FIG. 2 is an interface schematic diagram of a virtual object control method provided by an exemplary embodiment of the present application. [Figure 13] 1 is a flowchart of determining a second virtual object provided by an exemplary embodiment of the present application. [Figure 14] 1 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. [Figure 15] 1 is a schematic diagram of a virtual object control device provided by one exemplary embodiment of the present application. [Figure 16] FIG. 2 is a structural block diagram of a terminal provided by an exemplary embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] The method provided by the present application is applied to an application program having a virtual environment and a virtual object. For example, the application program supporting the virtual environment is an application program in which a user can control a virtual object to move in the virtual environment. For example, the method provided by the present application can be applied to any one of a Virtual Reality (VR) application program, an Augmented Reality (AR) program, a 3D map program, a Virtual Reality game, an Augmented Reality game, a First-Person Shooting Game (FPS), a Third-Person Shooting Game (TPS), a Multiplayer Online Battle Arena Game (MOBA), and a Simulation Game (SLG).
[0016] For example, a game with a virtual environment is composed of one or more game world maps, the virtual environment in the game simulates a real-world scenario, and users can control the virtual objects in the game, such as walking, running, jumping, shooting, fighting, driving, using virtual props to attack other virtual objects, and using virtual props to accumulate power to attack other virtual objects, which is highly interactive, and multiple users can form teams online to play competitive games.
[0017] In some embodiments, the application program may be a shooting game, a racing game, a role-playing game, an adventure game, a sandbox game, a battle arena game, etc. The client supports at least one of a Windows operating system, a macOS operating system, an Android operating system, an IOS operating system, and a LINUX operating system, and clients of different operating systems can communicate and connect with each other. In some embodiments, the client is a program applied to a mobile terminal having a touch panel.
[0018] In some embodiments, the client is an application program developed based on a 3D engine, for example, the 3D engine is the Unity engine.
[0019] The terminal in this application may be a desktop computer, a notebook computer, a smartphone, a tablet, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, etc. A client supporting a virtual environment, for example, an application program client supporting a 3D virtual environment, is installed and executed on the terminal. The application program may be any one of a Battle Royale (BR) game, a virtual reality application program, an augmented reality program, a 3D map program, a third-person shooter game, a first-person shooter game, and a multiplayer online battle arena game. Optionally, the application program may be a standalone version of the application program, for example, a standalone version of a 3D game program, or a network online version of the application program.
[0020] FIG. 1 is a structural schematic diagram of a terminal provided by an exemplary embodiment of the present application, which includes a processor 101, a touch panel 102 and a memory 103. As shown in FIG.
[0021] The processor 101 is at least one of a single-core processor, a multi-core processor, an embedded chip, and a processor with instruction execution capabilities.
[0022] The touch panel 102 includes a general touch panel or a pressure-sensitive touch panel. The general touch panel measures a pressing or sliding operation applied to the touch panel 102, and the pressure-sensitive touch panel measures a pressing force applied to the touch panel 102.
[0023] The memory 103 stores executable programs for the processor 101. Schematically, the memory 103 stores a virtual environment program A, an application program B, an application program C, a touch (and pressure) sensing module 18, and a kernel layer 19 of an operating system. It should be noted that the virtual environment program A is an application program developed based on the three-dimensional virtual environment module 17. Optionally, the virtual environment program A includes, but is not limited to, at least one of a game program, a virtual reality program, a three-dimensional map program, and a three-dimensional demonstration program developed based on the three-dimensional virtual environment module (also called a virtual environment module) 17. For example, when the Android operating system is adopted as the operating system of the terminal, the virtual environment program A is developed by the Java programming language and the C# language, and for example, when the IOS operating system is adopted as the operating system of the terminal, the virtual environment program A is developed by the Object-C programming language and the C# language.
[0024] The 3D virtual environment module 17 is a module that supports multiple operating system platforms. Schematically, the 3D virtual environment module 17 is applicable to program development in multiple fields such as the game development field, the virtual reality (VR) field, and the 3D map field. In the embodiments of the present application, the specific type of the 3D virtual environment module 17 is not limited, and in the following embodiments, the 3D virtual environment module 17 is described as an example of a module developed by the Unity engine.
[0025] The touch (and pressure) sensing module 18 is a module for receiving touch events (and pressure touch control events) reported from the touch panel driving program 191. Optionally, the touch sensing module does not have a pressure sensing function and does not receive pressure touch control events. The touch event includes a type and a coordinate value of the touch event, and the type of the touch event includes, but is not limited to, a touch start event, a touch move event, and a touch end event. The pressure touch control event includes a pressure value and a coordinate value of the pressure touch control event. The coordinate value indicates the touch control position on the display of the pressure touch control operation. Optionally, an abscissa axis is constructed in the horizontal direction of the display, and an ordinate axis is constructed in the vertical direction of the display to obtain a two-dimensional coordinate system.
[0026] Schematically, the kernel layer 19 includes a touch panel driving program 191 and other driving programs 192. The touch panel driving program 191 is a module for detecting a pressure touch control event, and transmits the pressure touch control event to the pressure sensing module 18 after the touch panel driving program 191 detects the pressure touch control event.
[0027] The other driver programs 192 include a driver program for the processor 101, a driver program for the memory 103, a driver program for the network components, and a driver program for the audio components.
[0028] As will be appreciated by those skilled in the art, the above is merely a schematic example of the terminal structure. In different embodiments, the terminal may include more or less components. For example, the terminal may include a gravity acceleration sensor, a gyro sensor, a power source, etc.
[0029] FIG. 2 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application, where the computer system 200 includes a terminal 210 and a server cluster 220 .
[0030] A client 211 supporting a virtual environment is installed and executed on the terminal 210, and the client 211 may be an application program supporting the virtual environment. When the terminal executes the client 211, a user interface of the client 211 is displayed on the screen of the terminal 210. The client is any one of an FPS game, a TPS game, a MOBA game, a battle arena game, and an SLG game. In this embodiment, the client is an FPS game as an example. The terminal 210 is a terminal used by a first user 212. The first user 212 uses the terminal 210 to control a first virtual object located in a virtual environment to be active, and the first virtual object may be a first virtual character controlled by the first user 212. The activity of the first virtual character includes at least one of body posture adjustment, crawling, walking, running, cycling, flying, jumping, driving, picking, shooting, attacking, and throwing, but is not limited thereto. Schematically, the first virtual character is a simulated character or an animated character.
[0031] 2 shows only one terminal, in different embodiments there are multiple other terminals 240. In some embodiments, there is at least one other terminal 240 which is a terminal corresponding to a developer, and a client development and editing platform supporting a virtual environment is installed on the other terminal 240, the developer edits and updates the client on the other terminal 240, and transmits the updated client installation package to the server cluster 220 via a wired or wireless network, and the terminal 210 downloads the client installation package from the server cluster 220 to realize the client update.
[0032] Terminal 210 and other terminals 240 connect to server cluster 220 via a wireless or wired network.
[0033] The server cluster 220 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The server cluster 220 is for providing background services to clients supporting a 3D virtual environment. Optionally, the server cluster 220 performs main computing operations, and the terminal performs secondary computing operations, or the server cluster 220 performs secondary computing operations, and the terminal performs main computing operations, or a distributed computing architecture is used between the server cluster 220 and the terminal to perform collaborative computing.
[0034] Optionally, both the terminal and the server are computer devices.
[0035] In one schematic example, the server cluster 220 includes a server 221 and a server 226, and the server 221 includes a processor 222, a user account database 223, a battle service module 224, and a user-facing input / output interface (I / O interface) 225. The processor 222 reads instructions stored in the server 221 to process data in the user account database 223 and the battle service module 224, the user account database 223 stores data of user accounts used by the terminal 210 and other terminals 240, such as the avatar of the user account, the nickname of the user account, the combat power index of the user account, and the service area where the user account is located, the battle service module 224 provides a number of battle rooms for users to battle, and the user-facing I / O interface 225 establishes communication with the terminal 210 via a wireless or wired network to exchange data.
[0036] Combining the above introduction of the virtual environment and the description of the implementation environment, the following describes the method for controlling virtual objects provided by the embodiments of the present application.
[0037] FIG. 3 is an interface schematic diagram of a virtual object control method provided by an exemplary embodiment of the present application.
[0038] A display interface 310 displays a first virtual object 311 having a first skill and at least one candidate virtual object.
[0039] Note that the candidate virtual object may be a virtual character or a virtual object in the display interface 310. When there are multiple candidate virtual objects, the second virtual object is one of the multiple candidate virtual objects, and in FIG. 3, for example, the second virtual object is a virtual grass patch 312 and the first skill is a displacement skill.
[0040] When the second virtual object is located within the skill activation range of the first skill, a linear skill indicator 313 of the displacement skill is displayed between the first virtual object 311 and the virtual grass 312, with a first end of the linear skill indicator 313 being located at the first virtual object 311 and a second end of the linear skill indicator 313 being located at the virtual grass 312.
[0041] The player adjusts the direction of the first virtual object 311 by performing a rotation operation on the first virtual object 311 so that the first virtual object 311 faces the virtual grass 312. The direction of the virtual object is the direction in which the front of the virtual object faces. Optionally, the virtual object pointed to by the linear skill indicator 313 is also different according to the change in the direction of the first virtual object 311. For example, if the first virtual object 311 is adjusted so that it faces a virtual wall, the linear skill indicator 313 between the first virtual object 311 and the virtual grass 312 is canceled, and a linear skill indicator (not shown in FIG. 3) of the displacement skill is displayed between the first virtual object 311 and the virtual wall.
[0042] When the first virtual object 311 moves relative to the virtual grass 312, the linear skill indicator 313 is updated and displayed, for example, at least one of the display length and the display position of the linear skill indicator 313 is updated and displayed.
[0043] Optionally, the display length of the linear skill indicator 313 is updated and displayed based on the linear distance between the first virtual object 311 and the virtual grass 312. The virtual grass 312 is located in the direction in which the first virtual object 311 is heading, and the first virtual object 311 is controlled so as to move along the extension direction of the direction in which the player is heading, i.e., to move to the virtual grass 312, thereby shortening the linear distance between the first virtual object 311 and the virtual grass 312, and in this case, the display length of the linear skill indicator 313 is also shortened. The player controls the first virtual object 311 so as to move backward relative to the virtual grass 312, thereby lengthening the linear distance between the first virtual object 311 and the virtual grass 312, and in this case, the display length of the linear skill indicator 313 is also lengthened.
[0044] Optionally, the display position of the linear skill indicator 313 is updated and displayed based on the inclination angle of the virtual grass 312 with respect to the heading direction of the first virtual object 311. Also, for example, the virtual grass 312 is located in the northwest direction of the heading direction of the first virtual object 311, and the player still controls the first virtual object to move forward along the extension direction of the heading direction, in this case, the inclination angle of the virtual grass 312 with respect to the heading direction of the first virtual object 311 gradually increases, and thus the inclination angle of the display position of the linear skill indicator 313 with respect to the heading direction of the first virtual object 311 also gradually increases. At the same time, the straight-line distance between the first virtual object 311 and the virtual grass 312 becomes shorter, and in this case, the display length of the linear skill indicator 313 becomes shorter. Similarly, when the player controls the first virtual object 311 to move backward relative to the virtual bush 312, the inclination angle of the display position of the linear skill indicator 313 relative to the direction in which the first virtual object 311 is heading gradually decreases, and the display length of the linear skill indicator 313 increases.
[0045] In response to the skill activation operation, the first virtual object 311 is controlled to activate a displacement skill on the virtual grass 312, and a skill activation special effect of the displacement skill is displayed on the display interface 310, for example, the first virtual object 311 in FIG. 3 flies to the virtual grass 312.
[0046] Note that the skill activation operation may be realized based on a trigger operation on the skill widget 314 corresponding to the displacement skill. Optionally, the skill widget 314 may be displayed on the display interface 310, or may not be displayed on the display interface 310, or the skill widget 314 is in a semi-transparent display state on the display interface 310. If the skill widget 314 is not displayed on the display interface 310, the skill widget 314 is displayed on the display interface 310 after the player lightly touches the display interface 310.
[0047] Optionally, before controlling the first virtual object 311 to activate the first skill on the virtual grass 312, a prompt special effect is displayed on the virtual grass 312, where the prompt special effect indicates that the object to which the first skill is to be applied is the virtual grass 312.
[0048] In addition, the prompt special effect includes at least one of a highlight special effect, a blinking special effect, an aperture special effect, and a color special effect. For example, after a player triggers the skill widget 314, the virtual grass 312 is highlighted.
[0049] FIG. 4 is a flowchart of a virtual object control method provided in an exemplary embodiment of the present application, the method is applied to a terminal, and the method includes the following steps: Step 402: Display a first virtual object having a first skill and at least one candidate virtual object.
[0050] The first virtual object is a virtual character controlled by the first player. The candidate virtual object may be a virtual character controlled by the second player, or may be a virtual object not controlled by any player. For example, a virtual character controlled by the first player, a virtual character controlled by the second player, a virtual grass patch, a virtual wall, a virtual house, and a virtual vehicle are displayed on the display interface. The first virtual object is a virtual character controlled by the first player, and the virtual character controlled by the second player, the virtual grass patch, the virtual wall, the virtual house, and the virtual vehicle are all candidate virtual objects.
[0051] In addition, there are dynamic virtual objects and static virtual objects in the virtual environment. Schematically, the dynamic virtual objects may be controlled by the player or the server, such as a virtual character controlled by the player and a virtual monster controlled by the server. The static virtual objects may be virtual objects that constitute the virtual environment, or may be virtual objects placed in the virtual environment by the server or the player, such as a virtual wall or a virtual defensive facility placed in the virtual environment by the player.
[0052] In addition, both dynamic and static virtual objects may have health points. For example, a virtual monster controlled by a server has health points, and a virtual character controlled by a player can activate a skill on the virtual monster to reduce the virtual monster's health points. In addition, for example, a virtual defense facility placed by a player may also have health points, and another virtual character belonging to a different camp from the player can activate a skill on the virtual defense facility to reduce the virtual defense facility's health points. When the health points drop to zero, the display of the virtual defense facility is canceled, indicating that the virtual defense facility has been conquered.
[0053] Based on the above, the candidate virtual objects may be dynamic virtual objects, static virtual objects, virtual objects with health points, virtual objects without health points, virtual objects placed in the virtual environment by a player, or virtual objects placed in the virtual environment by a server.
[0054] Optionally, the candidate virtual objects include at least one of a player-controlled virtual object, a server-controlled virtual object, a virtual object constituting a virtual environment, a player-placed virtual object in the virtual environment, and a server-placed virtual object in the virtual environment, including situations in which the virtual objects and virtual objects each have health points and situations in which they do not have health points.
[0055] Schematically, the first skill is one of the skills possessed by the first virtual object, and the first skill can be determined according to actual needs, for example, the first skill can be a displacement skill, a health point recovery skill, a flash skill, a virtual attack skill, etc.
[0056] Step 404: If the second virtual object is located within a skill activation range of the first skill, display a linear skill indicator of the first skill between the first virtual object and the second virtual object, the second virtual object being one of the at least one candidate virtual object, and the second virtual object being determined based on a heading direction of the first virtual object.
[0057] Illustratively, a first end of the linear skill indicator is located on a first virtual object and a second end of the linear skill indicator is located on a second virtual object.
[0058] The skill activation range of the first skill may be determined according to actual needs. For example, the skill activation range is a circular range with the first virtual object as the center and a radius of n, where n is a positive integer and may be set according to actual needs.
[0059] Optionally, when multiple candidate virtual objects are displayed on the display interface, a distance between the first virtual object and each candidate virtual object is obtained, and a candidate virtual object located within a skill activation range is determined as an undetermined virtual object based on the distance between the first virtual object and the candidate virtual object, and then a second virtual object is determined from the undetermined virtual object.
[0060] For example, the second virtual object is a virtual object located in the direction in which the first virtual object faces. When a plurality of second virtual objects are displayed in the direction in which the first virtual object faces, the virtual object that is closest in linear distance to the first virtual object is determined to be the second virtual object.
[0061] Also, for example, a second virtual object is determined based on a position angle between the first virtual object and at least one candidate virtual object. The position angle is an angle formed by a first ray and a second ray, the first ray is determined based on the first position and the direction of the first virtual object, and the second ray is determined based on the first position and the positions of each candidate virtual object. Assuming that the at least one candidate virtual object includes a virtual object 1 and a virtual object 2, and based on the above definitions of the first ray and the second ray, it is obtained that the position angle corresponding to the virtual object 1 is 10° and the position angle corresponding to the virtual object 2 is 20°, and based on this, the virtual object having the smallest position angle is determined as the second virtual object, that is, the virtual object 1 is determined as the second virtual object. Optionally, when there are a plurality of virtual objects having the smallest position angle, the virtual object having the shortest straight-line distance to the first virtual object is determined as the second virtual object. Note that the included position angle corresponding to a virtual object located in the direction in which the first virtual object faces may be regarded as 0°, and a specific description of the included position angle will be given below.
[0062] Also, for example, the second virtual object is determined based on the relative distance between the first virtual object and at least one candidate virtual object. The relative distance is the vertical distance from the position of each candidate virtual object to the first ray, and the definition of the first ray can be referred to above. Still, it is assumed that the candidate virtual objects include at least virtual object 1 and virtual object 2, and based on the above definition, it is obtained that the vertical distance from the position of virtual object 1 to the first ray is 1 meter, the vertical distance from the position of virtual object 2 to the first ray is 1.3 meters, that is, the relative distance between virtual object 1 and the first virtual object is 1 meter, and the relative distance between virtual object 2 and the first virtual object is 1.3 meters, and based on this, the virtual object having the smallest relative distance is determined as the second virtual object, that is, the virtual object 1 is determined as the second virtual object. Optionally, when there are multiple virtual objects having the smallest relative distance, the virtual object having the smallest position angle is determined as the second virtual object. A specific explanation of the relative distance will be given below.
[0063] Schematically, the linear skill indicator of the first skill is displayed before the first skill is activated, and indicates the activation direction or the aimed direction of the first skill, thereby clearly indicating the granting object of the first skill to the player in the display interface. The linear skill indicator is one implementation form of the skill indicator, and the linear skill indicator is displayed between the virtual object that activates the first skill and the virtual object that receives the first skill, and indicates the activation side, the receiving side and the activation direction of the first skill. In the embodiment of the present application, the activation side of the first skill is the first virtual object, and the receiving side of the first skill is the second virtual object, i.e., the second virtual object is the granting object of the first skill, and the activation direction of the first skill is activated from the first virtual object to the second virtual object, so that the linear skill indicator points from the first virtual object to the second virtual object.
[0064] Here, the display of the linear skill indicator of the first skill does not require the player's operation. After the second virtual object enters the skill coverage of the first skill and before the first player controls the first virtual object to activate the first skill, the linear skill indicator is automatically displayed between the first virtual object and the second virtual object, prompting the first player that the grant object of the first skill is the second virtual object, so that the first player can determine the grant object in a timely manner. If the grant object is not the object required by the first player, the first player replaces the second virtual object by adjusting the direction of the first virtual object.
[0065] The display mode of the skill indicator may be determined according to actual needs. Optionally, the display mode of the skill indicator is one of a line, an arrow, a branch, a lightning bolt, a chain, a rope, or other graphics having a direction indicating function. For example, the display mode of the skill indicator is a plurality of curved lines having a direction, and the extension direction of the plurality of curved lines points to the second virtual object. Also, for example, the display mode of the skill indicator is a flashing one-way arrow, and the direction of the one-way arrow points is the direction in which the second virtual object is located.
[0066] Alternatively, the display aspect of the linear skill indicator is at least one line, the line may be straight or curved, a first end of the at least one line is located on the first virtual object, and a second end of the at least one line is located on the second virtual object. For example, referring to FIG. 3, taking the second virtual object as an example of a virtual grass patch 312, the display aspect of the linear skill indicator 313 is a plurality of curved lines shown in a block, and the extension direction of the plurality of curved lines points from the first virtual object 311 to the virtual grass patch.
[0067] Optionally, the linear skill indicator is displayed as at least one of a line, multiple lines, a curved line, multiple curved lines, a pattern formed by intertwining multiple curved lines, a lightning bolt, a chain, a loop, and a branching line.
[0068] In addition, the color change of the line, the thickness of the line, and the color shading in the display mode of the linear skill indicator can all be adjusted based on the relative positional relationship between the first virtual object and the second virtual object. For example, the color of the line of the corresponding linear skill indicator is different depending on the first skill. For example, the linear skill indicator of the first skill 1 is a red straight line, the linear skill indicator of the first skill 2 is a pattern formed by twisting one red curve and one yellow curve, and the linear skill indicator of the first skill 3 is a color lightning bolt.
[0069] Also, for example, the line thickness of the linear skill indicator is adjusted based on the linear distance between the first virtual object and the second virtual object. The closer the second virtual object is to the first virtual object, the thicker the line is, and the farther the second virtual object is from the first virtual object, the thinner the line is. Based on this, the player controls the distance between the first virtual object and the second virtual object based on the line thickness so that the first skill realizes the necessary skill activation for the second virtual object. Referring to FIG. 3, as the first virtual object 311 gradually approaches the virtual grass 312, the line of the linear skill indicator 313 gradually becomes thicker, prompting the player controlling the first virtual object 311 that the distance between them is shortening. Alternatively, the line thickness of the linear skill indicator may be opposite to the above example.
[0070] Also, for example, the line thickness of the linear skill indicator is adjusted based on the position angle or relative distance of the second virtual object relative to the first virtual object. Please refer to the above content for the related description of the position angle and relative distance. In the process in which the position angle or relative distance of the second virtual object relative to the first virtual object gradually increases, the line of the linear skill indicator gradually becomes thinner, and in the process in which the position angle or relative distance of the second virtual object relative to the first virtual object gradually decreases, the line of the linear skill indicator gradually becomes thicker. Referring to FIG. 3, the player controls the first virtual object 311 to rotate, and the direction of the first virtual object 311 changes from the direction of the virtual grass 312 to the left, and the line of the linear skill indicator 313 gradually becomes thinner, prompting the player to change the direction of the first virtual object 311. Or, the line thickness of the linear skill indicator may be opposite to the above example.
[0071] Optionally, if the first positional angle is a minimum of the plurality of positional angles, the line thickness of the linear skill indicator is inversely proportional to the first positional angle, or if the first relative distance is a minimum of the plurality of relative distances, the line thickness of the linear skill indicator is inversely proportional to the first relative distance. The smaller the positional angle or the relative distance, the thicker the line, and the larger the positional angle or the relative distance, the thinner the line. The first positional angle is a positional angle of the second virtual object relative to the first virtual object, the plurality of positional angles are positional angles of the plurality of candidate virtual objects relative to the first virtual object, the first relative distance is a relative distance of the second virtual object relative to the first virtual object, and the plurality of relative distances are relative distances of the plurality of candidate virtual objects relative to the first virtual object, the second virtual object being one of the plurality of candidate virtual objects.
[0072] Optionally, when the position angle or the relative distance of the second virtual object to the first virtual object exceeds a predetermined value, the display of the linear skill indicator is canceled. In this case, when the third virtual object is displayed within the skill coverage of the first skill, and the second position angle is smaller than the first position angle or the second relative distance is smaller than the first relative distance, a linear skill indicator is displayed between the first virtual object and the third virtual object. Note that the line thickness of the linear skill indicator changes based on the relative positions of the first virtual object and the third virtual object. The second position angle is the position angle of the third virtual object to the first virtual object, and the second relative distance is the relative distance of the third virtual object to the first virtual object.
[0073] Also, the change in the color density of the linear skill indicator is similar to the change in line thickness, so it may be referred to. For example, the closer the second virtual object is to the first virtual object, the darker the color is, and the farther the second virtual object is from the first virtual object, the lighter the color is. Also, for example, in the process in which the position angle or relative distance of the second virtual object to the first virtual object gradually increases, the line color of the linear skill indicator gradually becomes lighter, and in the process in which the position angle or relative distance of the second virtual object to the first virtual object gradually decreases, the color of the linear skill indicator gradually becomes darker.
[0074] Optionally, the second virtual object includes one of a virtual object having health points and a virtual object having no health points and not belonging to any faction.
[0075] The virtual object having health points may belong to the same camp as the first virtual object, or may belong to a different camp. If both belong to the same camp, the first skill activated from the first virtual object to the second virtual object increases the health points of the second virtual object, and if both belong to different camps, the first skill activated from the first virtual object to the second virtual object decreases the health points of the second virtual object.
[0076] A virtual object that does not have health points and does not belong to any camp is a virtual character or a virtual object located in the virtual environment, such as a virtual monster, a virtual patch of grass, a virtual house, a virtual vehicle, etc. displayed in the virtual environment.
[0077] The position of the second end of the linear skill indicator is different depending on the second virtual object. For example, if the second virtual object is a virtual object having health points, the second end of the linear skill indicator is located at one of the body, the sole, and the top of the second virtual object, and for example, if the second virtual object is a virtual grass in the virtual environment, the second end of the linear skill indicator is located at one of the root, the waist, and the top of the virtual grass.
[0078] Optionally, the linear skill indicator is a spatially linear skill indicator, and step 404 is realized as follows. A spatial linear skill indicator of the first skill is displayed between the first virtual object and the second virtual object, and a display position of the spatial linear skill indicator is higher than a virtual ground surface in the virtual environment.
[0079] The spatial linear skill indicator appears above the virtual ground to distinguish it from displayed objects on the virtual ground.
[0080] 3, taking the second virtual object as an example of a virtual grass patch 312, the display manner of the linear skill indicator 313 is a plurality of curved lines shown in a block, and the extension direction of the plurality of curved lines points from the first virtual object 311 to the virtual grass patch. A first end of the plurality of lines is located at the body of the first virtual object 311, a second end of the plurality of lines is located at the waist of the virtual grass patch, and the display position of the plurality of lines is higher than the virtual ground in the virtual environment.
[0081] The display manner of the spatial linear skill indicator is at least one line that is higher than the virtual ground in the virtual environment, and the relevant description of the at least one line can be found above.
[0082] Optionally, a height of the at least one line with respect to the virtual ground is determined based on a relative position of the first virtual object and the second virtual object and / or its own height.
[0083] Also, for example, the display height of the spatial linear skill indicator is adjusted based on the linear distance between the first virtual object and the second virtual object. The closer the second virtual object is to the first virtual object, the higher the display height of the spatial linear skill indicator is, and the farther the second virtual object is from the first virtual object, the lower the display height of the spatial linear skill indicator is. Alternatively, the display height may be the opposite of the above example.
[0084] Also, for example, the display height of the spatial linear skill indicator is adjusted based on the position angle or relative distance of the second virtual object to the first virtual object. In the process in which the position angle or relative distance of the second virtual object to the first virtual object gradually increases, the display height of the spatial linear skill indicator gradually decreases, and in the process in which the position angle or relative distance of the second virtual object to the first virtual object gradually decreases, the display height of the spatial linear skill indicator gradually increases. Alternatively, the display height may be the opposite of the above example.
[0085] Also, for example, the display height of the spatial linear skill indicator is adjusted based on the height of the first virtual object and the second virtual object themselves. When the height of the first virtual object and the height of the second virtual object are similar, the spatial linear skill indicator is displayed at the same horizontal height, and when the height of the first virtual object and the height of the second virtual object are different, the spatial linear skill indicator is displayed at a position where the first virtual object or the second virtual object is half the height away from the virtual ground, or a connecting line is created between the position where the first virtual object is half the height away from the virtual ground and the position where the second virtual object is half the height away from the virtual ground, and the connecting line is the display position of the spatial linear skill indicator.
[0086] Optionally, when the first included position angle is a minimum value of the plurality of included position angles or the first relative distance is a minimum value of the plurality of relative distances, the display height of the spatial linear skill indicator is inversely proportional to the first included position angle or the first relative distance, where the smaller the included position angle or the relative distance, the higher the display height of the spatial linear skill indicator, and the larger the included position angle or the relative distance, the lower the display height of the spatial linear skill indicator.
[0087] Optionally, when a position angle or a relative distance of the second virtual object to the first virtual object exceeds a predetermined value, display of the spatial linear skill indicator is canceled. In this case, when a third virtual object is displayed within the skill coverage of the first skill, and the second position angle is smaller than the first position angle or the second relative distance is smaller than the first relative distance, a spatial linear skill indicator is displayed between the first virtual object and the third virtual object. A display height of the spatial linear skill indicator changes based on a relative position between the first virtual object and the third virtual object.
[0088] When the linear skill indicator is a spatial linear skill indicator, the display position of the spatial linear skill indicator is higher than the virtual ground in the virtual environment, so that the display of the linear indicator on the display interface is more realistic and enhances the player's experience sense.
[0089] Step 406: When at least one of the first virtual object and the second virtual object moves, update and display the linear skill indicator.
[0090] Optionally, when at least one of the first virtual object and the second virtual object moves, at least one of a display length and a display position of the linear skill indicator is updated and displayed.
[0091] At least one of the first virtual object and the second virtual object is the first virtual object and / or the second virtual object. The display length and display position of the linear skill indicator change based on a change in the relative position between the first virtual object and the second virtual object. The change in the relative position between the first virtual object and the second virtual object is a change in linear distance, for example, the first virtual object or the second virtual object moves closer to or further away from the other person. Or, if the second virtual object is a static virtual object, the change in the relative position between the first virtual object and the second virtual object is a change due to the movement of the first virtual object relative to the second virtual object.
[0092] Schematically, the movement of a first virtual object is realized by a movement operation on the first virtual object by a first player controlling the first virtual object, and the movement of a second virtual object is realized by a movement operation on the second virtual object by a second player controlling the second virtual object.
[0093] 3, the display length of the linear skill indicator 313 is the total length of the graphics consisting of multiple curves. Optionally, the display length of the linear skill indicator 313 is updated based on the straight-line distance between the first virtual object 311 and the virtual grass 312.
[0094] Take for example a case where the virtual grass 312 is located in the direction in which the first virtual object 311 is heading. The player controls the first virtual object 311 to move toward the virtual grass 312 along the extension direction of the heading direction, in which case the linear distance between the first virtual object 311 and the virtual grass 312 is shortened, and the display length of the linear skill indicator 313 is correspondingly shortened. Alternatively, the player controls the first virtual object 311 to move backward relative to the virtual grass 312, in which case the linear distance between the first virtual object 311 and the virtual grass 312 is lengthened, and the display length of the linear skill indicator 313 is correspondingly lengthened.
[0095] Optionally, the display position of the linear skill indicator 313 is updated and displayed based on the inclination angle of the virtual grass 312 with respect to the direction in which the first virtual object 311 is heading.
[0096] Take for example that the virtual grass 312 is located in the northwest direction of the direction in which the first virtual object 311 is heading. The player still controls the first virtual object to move forward along the extension direction of the heading direction, in this case, the inclination angle of the virtual grass 312 with respect to the direction in which the first virtual object 311 is heading gradually increases, and thus the inclination angle of the display position of the linear skill indicator 313 with respect to the direction in which the first virtual object 311 is heading also gradually increases. Since the virtual grass 312 is immovable, in the display interface 310, the player can observe that the second end of the linear skill indicator 313 is held by the virtual grass 312 and the first end moves together with the first virtual object 311, so that the player can observe that the display position of the linear skill indicator 313 is gradually inclined, and the inclination angle of the display position of the linear skill indicator 313 with respect to the direction in which the first virtual object 311 is heading gradually increases. Furthermore, the straight-line distance between the first virtual object 311 and the virtual grass patch 312 becomes shorter, and in this case, the display length of the linear skill indicator 313 becomes shorter.
[0097] Similarly, when the player controls the first virtual object 311 to move backward relative to the virtual grass 312, the tilt angle of the display position of the linear skill indicator 313 relative to the direction in which the first virtual object 311 is heading becomes gradually smaller, and the display length of the linear skill indicator 313 becomes longer. Similarly, since the virtual grass 312 is immovable, in the display interface 310, the player can observe that the second end of the linear skill indicator 313 is held by the virtual grass 312 and the first end moves with the first virtual object 311, so that the player can observe that the display position of the linear skill indicator 313 gradually tilts, and the tilt angle of the display position of the linear skill indicator 313 relative to the direction in which the first virtual object 311 is heading becomes gradually smaller.
[0098] Step 408: In response to the skill activation operation, the first virtual object is controlled to activate the first skill on the second virtual object.
[0099] The skill activation operation is an operation that triggers the first skill.
[0100] Schematically, when the first virtual object is controlled to cause the second virtual object to activate the first skill, or after the skill is activated, a skill activation special effect of the first skill is displayed.
[0101] Optionally, the skill activation operation is realized based on a trigger operation on a skill widget corresponding to the first skill, and the skill widget may be displayed in the same interface as the first virtual object or may not be displayed in the display interface.
[0102] For example, the skill widget is in a semi-transparent state in the display interface, and the player clicks the skill widget to realize the skill activation operation. Also, for example, the skill widget is in a transparent state in the display interface, and the player touches or clicks the display interface to display the skill widget in the display interface, and in response to a trigger operation on the skill widget, the player controls the first virtual object to activate the first skill on the second virtual object, and displays the skill activation special effect of the first skill on the display interface. Or, the player touches or clicks the area where the skill widget is located, and controls the first virtual object to activate the first skill on the second virtual object, and displays the skill activation special effect of the first skill on the display interface.
[0103] Optionally, when the skill activation operation is realized based on a trigger operation on a skill widget corresponding to a first skill, step 404 is realized as follows: when the second virtual object is located within the skill activation range of the first skill, in response to a touch down operation on the skill widget corresponding to the first skill, display a linear skill indicator of the first skill between the first virtual object and the second virtual object; and step 408 is realized as follows: in response to a touch leave operation on the skill widget, control the first virtual object to activate the first skill on the second virtual object. Illustratively, the touch down operation is a touch start operation, and the touch leave operation is a touch end operation.
[0104] 3, the display interface 310 displays a skill widget 314. When the player touches and does not release the skill widget 314, a linear skill indicator 313 can be displayed between the first virtual object 311 and the virtual grass 312. If the virtual grass 312 is not the first skill-imparting object desired by the player, the player adjusts the direction of the first virtual object 311 in the state of touching and not releasing the skill widget 314 to exchange the first skill-imparting object. After determining the imparting object, the player releases the skill widget 314 to realize a touch-leave operation. In this case, the display of the linear skill indicator 313 can be maintained, or the display of the linear skill indicator 313 can be canceled, and the first virtual object 311 can be controlled to activate the first skill on the virtual grass 312 and display the skill activation special effect of the first skill on the display interface 310.
[0105] As described above, in the virtual object control method provided by the embodiments of the present application, before activating a first skill, a second virtual object is determined based on the direction of the first virtual object, and a linear skill indicator of the first skill is automatically displayed between the first virtual object and the second virtual object, so that a player controlling the first virtual object can exchange the second virtual object by adjusting the direction of the first virtual object, and can quickly lock onto and aim at the object to which the first skill is to be applied before the skill activation operation, thereby improving the accuracy of the activation of the first skill.
[0106] For example, a first player controls a first virtual object and a second player controls a second virtual object, the movement of the first virtual object and / or the second virtual object may result in different situations, for example, the first virtual object and the second virtual object approach each other, or for example, the first virtual object moves away from the second virtual object, or for example, the second virtual object exceeds the skill activation range of the first skill of the first virtual object. Based on different situations, the display status of the linear skill indicator will also be different.
[0107] Based on FIG. 4, FIG. 5 is a flowchart of a virtual object control method provided by an exemplary embodiment of the present application, in which step 406 is realized as step 4061 and / or step 4062, and is specifically as follows: Step 4061: When at least one of the first virtual object and the second virtual object moves, the display length of the linear skill indicator is updated and displayed based on the straight-line distance between the first virtual object and the second virtual object.
[0108] Note that the straight-line distance between the first virtual object and the second virtual object is the distance between a first position where the first virtual object is located and a position where the second virtual object is located, and a virtual obstacle between the first virtual object and the second virtual object does not affect the straight-line distance between them.
[0109] Optionally, step 4061 is implemented as follows: when the first virtual object or the second virtual object approaches an opponent, the display length of the linear skill indicator is shortened; or when the first virtual object or the second virtual object moves away from the opponent, the display length of the linear skill indicator is lengthened.
[0110] For example, as the first virtual object and the second virtual object become closer relative to each other, the display length of the linear skill indicator becomes shorter, and as the first virtual object and the second virtual object become farther apart relative to each other, the display length of the linear skill indicator becomes longer.
[0111] If the second virtual object is a dynamic virtual object, both the first virtual object and the second virtual object can move in the virtual environment, which may cause a change in the linear distance between the first virtual object and the second virtual object, and in this case, the display length of the linear skill indicator needs to be updated and displayed. If the second virtual object is a static virtual object, the first virtual object can move in the virtual environment, and the position of the second virtual object in the virtual environment is kept unchanged, which may still cause a change in the linear distance between the first virtual object and the second virtual object, and in this case, the display length of the linear skill indicator needs to be updated and displayed.
[0112] For example, a second virtual object is displayed in the direction of a first virtual object, and a first player controls the first virtual object to move to the second virtual object, and a second player controls the second virtual object to move to the first virtual object. In this case, the linear distance between the first virtual object and the second virtual object is quickly shortened. Based on the fact that the first end of the linear skill indicator is located on the first virtual object and the second end is located on the second virtual object, the display length of the linear skill indicator is updated and displayed, and the display length is also quickly shortened.
[0113] Also, for example, a second virtual object is displayed in the direction of the first virtual object, and the first player controls the first virtual object to move to the second virtual object, while the second virtual player is immobile. Similar to the above example, the linear distance between the first virtual object and the second virtual object gradually becomes shorter, and the display length of the linear skill indicator also gradually becomes shorter.
[0114] Schematically, the change in the increase in the display length of a linear skill indicator is similar to the change in the decrease in the display length of a linear skill indicator, so it is sufficient to refer to it and no further details will be given.
[0115] Step 4062: When at least one of the first virtual object and the second virtual object moves, the display position of the linear skill indicator is updated and displayed based on the tilt angle of the second virtual object with respect to the direction in which the first virtual object is heading.
[0116] Based on the related explanation of the position included angle in the above content, the tilt angle of the second virtual object with respect to the direction in which the first virtual object faces may be determined according to the first ray and the second ray.
[0117] For example, the first ray is determined based on the first position and the direction of the first virtual object, and the second ray is determined based on the first position and the position of the second virtual object. The first ray is determined based on an extension line in the direction of the first position, for example, one ray is determined with the first position as a starting point in the direction of the first virtual object, i.e., the first ray, and the second ray is determined based on a connecting line between the first position and the position where the second virtual object is located, for example, one ray is determined with the first position as a starting point in the direction from the first position to the position where the second virtual object is located, i.e., the second ray. Then, the included angle formed by the first ray and the second ray is determined as the inclination angle of the second virtual object with respect to the direction of the first virtual object.
[0118] As can be seen based on the above description, the tilt angle of the second virtual object with respect to the direction in which the first virtual object faces is the position angle of the second virtual object with respect to the first virtual object.
[0119] Optionally, step 4062 is implemented as follows: if the tilt angle increases, increase the tilt angle of the display position of the linear skill indicator relative to the direction in which the first virtual object is facing, or if the tilt angle decreases, decrease the tilt angle of the display position of the linear skill indicator relative to the direction in which the first virtual object is facing.
[0120] In an alternative realization scenario, the second virtual object is not located in the direction of the first virtual object, in which case the tilt angle of the second virtual object with respect to the direction of the first virtual object also changes based on the movement of the first virtual object and / or the second virtual object.
[0121] If the second virtual object is a dynamic virtual object, both the first virtual object and the second virtual object can move in the virtual environment, which may cause a change in the tilt angle corresponding to the second virtual object, and in this case, the display position of the linear skill indicator needs to be updated and displayed. If the second virtual object is a static virtual object, the first virtual object can move in the virtual environment, and the position of the second virtual object in the virtual environment is kept unchanged, which may still cause a change in the tilt angle corresponding to the second virtual object, and in this case, the display position of the linear skill indicator needs to be updated and displayed.
[0122] For example, a second virtual object is displayed to the northwest of a first virtual object, and a first player controls the first virtual object to move to the second virtual object, while the second virtual object is immovable. In this case, the second virtual object gradually approaches the first virtual object, and the inclination angle of the second virtual object with respect to the direction in which the first virtual object is heading gradually increases.
[0123] In this case, based on the first end of the linear skill indicator being located on the first virtual object and the second end being located on the second virtual object, the player can observe the change in the display interface of the linear skill indicator. Taking the display manner of the linear skill indicator as an example that is a straight line, the first end of the linear skill indicator moves synchronously with the first virtual object, and the second end is held by the second virtual object, the line length of the linear skill indicator gradually slopes, and the slope width changes with the movement of the first virtual object.
[0124] Similarly, the change in the tilt angle of the display position of the linear skill indicator relative to the direction in which the first virtual object is facing is similar to the change in the tilt angle of the display position of the linear skill indicator relative to the direction in which the first virtual object is facing, so it is sufficient to refer to this and no further details will be given.
[0125] Here, one of step 4061 and step 4062 may be executed, or both may be executed simultaneously. For example, when the first virtual object and / or the second virtual object moves, the display length of the linear skill indicator is updated and displayed based on the linear distance between the first virtual object and the second virtual object, and the display position of the linear skill indicator is updated and displayed based on the tilt angle of the second virtual object with respect to the direction in which the first virtual object faces.
[0126] There may be other situations when the first virtual object and / or the second virtual object moves, such as the direction of the first virtual object changes significantly, and the second virtual object moves to be outside the skill activation range of the first skill of the first virtual object.
[0127] Optionally, the virtual object control method provided by the embodiments of the present application further includes: canceling the display of the linear skill indicator when a change range of the direction of the first virtual object is greater than a change condition; or canceling the display of the linear skill indicator when the second virtual object exceeds a skill activation range of the first skill.
[0128] The change condition is set according to actual needs. For example, the change condition is that the change width of the heading direction of the first virtual object is equal to or greater than the change width threshold, and for example, the change condition is that the heading direction of the first virtual object has changed. With reference to FIG. 3, the change condition is taken as an example that the change width of the heading direction of the first virtual object 311 is equal to or greater than 90°. The player controls the first virtual object 311 to rotate, and the heading direction of the first virtual object 311 changes from the southeast direction to the northwest direction, and the change width of the heading direction of the first virtual object 311 is 180°, which satisfies the change condition, and therefore cancels the display of the linear skill indicator 313.
[0129] Optionally, the method for controlling a virtual object provided by the embodiment of the present application further includes canceling the display of a linear skill indicator between the first virtual object and the second virtual object and displaying a linear skill indicator between the first virtual object and the third virtual object when the direction of the first virtual object changes from the direction of the second virtual object to the direction of the third virtual object. The third virtual object is another one of the at least one candidate virtual object, and the third virtual object is located within the skill activation range of the first skill. The candidate virtual objects include a plurality of objects, and the third virtual object is one of the plurality of candidate virtual objects excluding the second virtual object.
[0130] Take for example that the second virtual object is a virtual grass and the third virtual object is a virtual castle wall. In the initial state, the direction of the first virtual object is toward the virtual grass, and the player controls the first virtual object to move, thereby changing the direction of the first virtual object from the virtual grass to the virtual castle wall. Based on the change, the display of the linear skill indicator between the first virtual object and the virtual grass is canceled, and a linear skill indicator is displayed between the first virtual object and the virtual castle wall. The player can observe in the display interface that the linear skill indicator between the first virtual object and the virtual grass disappears, and the linear skill indicator is displayed between the first virtual object and the virtual castle wall.
[0131] As described above, the virtual object control method provided by the embodiment of the present application changes the display length and / or display position of the linear skill indicator. The display length of the linear skill indicator is updated and displayed based on the linear distance between the first virtual object and the second virtual object, and the display position of the linear skill indicator is updated and displayed based on the tilt angle of the second virtual object with respect to the direction in which the first virtual object is heading. The embodiment of the present application further describes canceling the display of the linear skill indicator, and displaying the linear skill indicator in a situation in which the direction in which the first virtual object is heading has changed.
[0132] Based on the change in the display of the linear skill indicator according to the above content, the virtual object control method provided in the embodiments of the present application makes the display of the linear skill indicator more realistic, and provides the change status of the object to which the first skill is assigned to the player controlling the first virtual object in a timely manner, thereby further improving the accuracy of the activation of the first skill.
[0133] Based on FIG. 4, FIG. 6 is a flowchart of a virtual object control method provided by an exemplary embodiment of the present application, where the method further includes step 403, and step 408 is realized as step 4081 and step 4082, and is specifically as follows: Step 403: Determine a second virtual object from the at least one candidate virtual object based on a first position and a heading direction of the first virtual object.
[0134] The direction in which the first virtual object faces is the direction in which the face of the first virtual object faces. For example, if the face of the first virtual object faces in the southeast direction, the direction in which the first virtual object faces is the southeast direction.
[0135] Optionally, the second virtual object is determined from an undetermined virtual object of the at least one candidate virtual object. The undetermined virtual object is located within a skill activation range of the first skill, and the determination of the undetermined virtual object is realized as follows: obtain a distance between the first virtual object and each candidate virtual object, and determine the candidate virtual object located within the skill activation range as an undetermined virtual object according to the distance between the first virtual object and the candidate virtual object.
[0136] Schematically, a skill activation range of a first skill is determined based on a first position of a first virtual object. Then, when the number of undetermined virtual objects is 1, the undetermined virtual object is determined as a second virtual object, and when the number of undetermined virtual objects is more than 1, the second virtual object is determined based on the first position and the direction of the first virtual object.
[0137] In addition, the heading direction of the first virtual object changes according to the movement of the first virtual object in the virtual environment. Optionally, the method for controlling a virtual object provided by the embodiments of the present application further includes adjusting the heading direction of the first virtual object to face the second virtual object in response to a rotation operation on the first virtual object.
[0138] Taking a first player controlling a first virtual object as an example, when the first player controls the first virtual object to rotate 15° to the left, the heading direction of the first virtual object is adjusted 15° to the left. Assuming that virtual object 1 is displayed in the original heading direction of the first virtual object and virtual object 2 is displayed in the adjusted heading direction, before adjusting the heading direction of the first virtual object, a linear skill indicator is displayed between the first virtual object and virtual object 1, and after adjusting the heading direction of the first virtual object, a linear skill indicator is displayed between the first virtual object and virtual object 2.
[0139] FIG. 7 is an interface schematic diagram of a virtual object control method provided by an exemplary embodiment of the present application, in which a first virtual object 711 and a candidate virtual object 712 (i.e., a first virtual grass) are displayed on a display interface 710, and the first virtual object 711 has a first skill. Take for example that the second virtual object is the first virtual grass before adjusting the direction of the first virtual object 711. Referring to FIG. 7, a linear skill indicator 713 is displayed between the first virtual object 711 and the first virtual grass. Then, the first player controls the first virtual object 711 to rotate, so that the first virtual object 711 faces the second virtual grass pointed by the third virtual object 714. Correspondingly, the display of the linear skill indicator 713 between the first virtual object 711 and the first virtual grass is canceled, and the linear skill indicator 713 is displayed between the first virtual object 711 and the second virtual grass. Regarding the specific determination of the second virtual object, the above content may be referred to, and no further explanation will be given.
[0140] Step 4081: In response to the skill activation operation, a prompt special effect is displayed on the second virtual object.
[0141] Schematically, the prompt special effect is for indicating that the imparting object of the first skill is the second virtual object, where the prompt special effect is displayed after the skill activation operation.
[0142] For example, skill activation is realized by triggering the skill widget. The display sequence of the linear skill indicator and the prompt special effect is as follows: After the second virtual object enters the skill activation range of the first skill of the first virtual object, a linear skill indicator of the first skill is displayed between the first virtual object and the second virtual object, in this case, the first player who controls the first virtual object based on the linear skill indicator can obtain that the current granted object of the first skill is the second virtual object, and when the first player wants to exchange the granted object, the first player adjusts the direction of the first virtual object by a rotation operation on the first virtual object to exchange the second virtual object, in this case, the linear skill indicator is also exchanged and displayed accordingly. After the first player determines the granted object of the first skill, that is, after determining the second virtual object, trigger the skill widget. Then, in response to the trigger operation on the skill widget, a prompt special effect is displayed on the second virtual object to prompt the first player again for the granted object of the first skill. Optionally, the prompt special effect includes at least one of a highlight special effect, a blinking special effect, an aperture special effect, and a color special effect.
[0143] 8 is a schematic interface diagram of a virtual object control method provided by an exemplary embodiment of the present application, in which a first virtual object 811 and a candidate virtual object 812 are displayed on a display interface 810. Take for example that the second virtual object is a candidate virtual object (virtual grass) 812. In response to a trigger operation on a skill widget 813, a prompt special effect is displayed on the virtual grass to prompt that the virtual grass is an object to which a displacement skill is to be assigned.
[0144] For example, the prompt special effect is a highlight special effect, a highlight will appear on the virtual grass after the player triggers the skill widget 813; for example, the prompt special effect is a blinking special effect, the virtual grass will start to blink after the player triggers the skill widget 813, and the blinking time can be set according to actual needs; for example, the prompt special effect is an aperture special effect, an aperture will appear around the virtual grass after the player triggers the skill widget 813.
[0145] Step 4082: A first virtual object is controlled to activate a first skill on the second virtual object.
[0146] Schematically, when the first virtual object is controlled to activate the first skill, or after the first skill is activated, a skill activation special effect of the first skill is displayed. The skill activation special effect and the prompt special effect may be displayed simultaneously, or the prompt special effect may be displayed first and then the skill activation special effect, and the display period of the prompt special effect may be set according to actual needs.
[0147] 8, taking the first skill as an example where the skill is a displacement skill, after the player triggers the skill widget 813, a highlight appears on the virtual grass, and after the highlight lasts for 2 seconds, the first virtual object is controlled to activate the displacement skill, and a skill activation special effect is displayed, where the skill activation special effect is that the first virtual object 811 flies to the location where the virtual grass is located along the direction of the arrow.
[0148] As described above, in the virtual object control method provided by the embodiment of the present application, a linear skill indicator is displayed by determining a second virtual object according to a first position and a direction of a first virtual object. The direction of the first virtual object is adjusted by a rotation operation on the first virtual object, so that the player can adjust the direction of the first virtual object to select an object to be used to activate the first skill, thereby further improving the accuracy of the activation of the first skill. In addition, a prompt special effect is displayed on the second virtual object in response to the skill activation operation, thereby prompting the player again that the object to be used to activate the first skill is the second virtual object.
[0149] Based on the above, the second virtual object is determined in two ways: the position angle and the relative distance.
[0150] 6, and FIG. 9 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. If the second virtual object is determined by a position angle, step 403 is realized as step 4031 and step 409, and if the second virtual object is determined by a relative distance, step 403 is realized as step 4032 and step 410.
[0151] Optionally, the determination of the second virtual object has two implementations: Realization 1: The second virtual object is determined by the included position angle.
[0152] Step 4031: Determine a position angle of an undetermined virtual object of the at least one candidate virtual object relative to the first virtual object.
[0153] For a related explanation of the undetermined virtual object, please refer to the above content, and no further explanation will be given.
[0154] Optionally, the position angle is determined based on the relative positions of the first virtual object and the undetermined virtual object, and step 4031 is implemented as follows: determine the position angle as an angle formed by a first ray and a second ray, where the first ray is determined based on the first position and the heading direction, and the second ray is determined based on the first position and the second position of the undetermined virtual object.
[0155] FIG. 10 is a schematic diagram of determining a position angle provided by an exemplary embodiment of the present application, taking as an example that the at least one candidate virtual object includes a virtual object 1, a virtual object 2 and a virtual object 3.
[0156] After determining the first position and the heading direction of the first virtual object, the first ray can be determined. Referring to FIG. 10, the first position is the circular position where the first virtual object is located, and the direction indicated by the arrow is the heading direction, so that the first ray is a ray extending from the first position in the heading direction. Then, three second rays can be determined based on second positions corresponding to virtual object 1, virtual object 2, and virtual object 3. Taking the second ray corresponding to virtual object 1 as an example, the second ray is a ray extending from the first position to the circular position where virtual object 1 is located. If virtual object 1 is an undetermined virtual object determined from at least one candidate virtual object, an included angle 1 formed by the first ray and the second ray corresponding to virtual object 1 is determined as the position included angle of the undetermined virtual object with respect to the first virtual object.
[0157] Step 409: If the position angle satisfies the first condition, the undetermined virtual object is determined as the second virtual object.
[0158] Optionally, the first condition includes one of the following: the value of the position angle is the minimum value of the position angles corresponding to at least two undetermined virtual objects; and the value of the position angle is smaller than a first predetermined value. The first predetermined value can be determined according to actual needs.
[0159] When the number of undetermined virtual objects is at least two, at least two included position angles can be obtained, and then the undetermined virtual object corresponding to the smallest included position angle is determined as the second virtual object.
[0160] 10, take as an example that at least one candidate virtual object includes a virtual object 1, a virtual object 2, and a virtual object 3. If the above three virtual objects are all undetermined virtual objects, three position angles corresponding to the virtual object 1, the virtual object 2, and the virtual object 3 can be determined based on the definition of the above first ray and the second ray, and the three position angles are the included angle 1, the included angle 2, and the included angle 3. If the first condition includes that the value of the included angle is the minimum value of the position angles corresponding to at least two undetermined virtual objects, see FIG. 10, and the angle of the included angle 1 is the minimum value of the three position angles, then determine the virtual object 1 corresponding to the included angle 1 as the second virtual object.
[0161] Realization 2: The second virtual object is determined by the relative distance.
[0162] Step 4032: Determine a relative distance between the undetermined virtual object and the first virtual object of the at least one candidate virtual object.
[0163] As an example, the relative distance of an undetermined virtual object among at least one candidate virtual object with respect to the first virtual object is determined. Note that the above content may be referred to for the related description of the undetermined virtual object, and no detailed description will be given.
[0164] Optionally, the relative distance is determined based on a relative position between the first virtual object and the undetermined virtual object, and step 4032 is implemented as follows: determine a first ray based on a first position and a heading direction, and determine the perpendicular distance from a second position of the undetermined virtual object to the first ray as the relative distance.
[0165] FIG. 11 is a schematic diagram of determining a relative distance provided by one exemplary embodiment of the present application, taking as an example at least one candidate virtual object including virtual object 1, virtual object 2, and virtual object 3. After determining the first position and the heading direction of the first virtual object, a first ray can be determined. Referring to FIG. 11, the first position is the circle position where the first virtual object is located, and the direction indicated by the arrow is the heading direction, so that the first ray is a ray extending from the first position in the heading direction. Then, three relative distances can be determined based on the second positions corresponding to virtual object 1, virtual object 2, and virtual object 3. Taking the relative distance corresponding to virtual object 1 as an example, a perpendicular line 1 is drawn from the circle position where virtual object 1 is located to the first ray, and the length of the perpendicular line 1 is the perpendicular distance from the second position of virtual object 1 to the first ray, and the length of the perpendicular line 1 is determined as the relative distance corresponding to virtual object 1. If virtual object 1 is an undetermined virtual object determined from at least one candidate virtual object, distance 1 corresponding to vertical line 1 is determined as the relative distance of the undetermined virtual object to the first virtual object.
[0166] Step 410: If the relative distance satisfies a second condition, the undetermined virtual object is determined to be a second virtual object.
[0167] Optionally, the second condition includes one of the following: the value of the relative distance is the minimum value of the vertical distances corresponding to at least two undetermined virtual objects; and the value of the relative distance is smaller than a second predetermined value. The second predetermined value can be determined according to actual needs.
[0168] When the number of undetermined virtual objects is at least two, at least two relative distances can be obtained, and then the undetermined virtual object corresponding to the smallest relative distance is determined to be the second virtual object.
[0169] 11, take as an example that at least one candidate virtual object includes virtual object 1, virtual object 2, and virtual object 3. If the above three virtual objects are all undetermined virtual objects, three relative distances corresponding to virtual object 1, virtual object 2, and virtual object 3, respectively, can be determined based on the above definition of relative distance, and the three relative distances are distance 1, distance 2, and distance 3, respectively. If the second condition includes that the value of the relative distance is the minimum value among the vertical distances corresponding to at least two undetermined virtual objects, refer to FIG. 11, and the angle of distance 1 is the minimum value among the three relative distances, then virtual object 1 corresponding to distance 1 is determined as the second virtual object.
[0170] 12 is an interface schematic diagram of a virtual object control method provided by one exemplary embodiment of the present application, in which a first virtual object 1211 is displayed on a display interface 1210, the first virtual object 1211 has a first skill, and at least one candidate virtual object includes a first virtual grass 1212 and a second virtual grass 1213. A first player who controls the first virtual object 1211 adjusts the direction of the first virtual object 1211 from the direction of the second virtual grass 1213 to the direction of the first virtual grass 1212 by a rotation operation on the first virtual object 1211. Then, the first virtual grass 1212 is determined to be the second virtual object based on the first position and the direction of the first virtual object 1211. The above content can be referred to for the method of determining the second virtual object, and no further explanation will be given. When the first virtual grass 1212 is located within the skill activation range of the first skill, a linear skill indicator 1214 of the first skill is displayed between the first virtual object 1211 and the first virtual grass 1212, and the display form of the linear skill indicator 1214 is a plurality of curved lines. In response to the skill activation operation, the first virtual object 1211 is controlled so as to activate the first skill on the first virtual grass 1212. The arrows in FIG. 12 are not displayed on the display interface 1210 because they are merely to aid understanding.
[0171] As described above, in the virtual object control method provided by the embodiments of the present application, two methods for determining a second virtual object are provided, namely, when the second virtual object is determined based on a position angle, a method for determining an undetermined virtual object corresponding to a position angle that satisfies a first condition as the second virtual object, and when the second virtual object is determined based on a relative distance, a method for determining an undetermined virtual object corresponding to a relative distance that satisfies a second condition as the second virtual object.
[0172] FIG. 13 is a flowchart of determining a second virtual object provided by an exemplary embodiment of the present application, in which the method is applied in a terminal, and includes the following steps: Step 201: It is determined whether or not an undetermined virtual object exists within the skill activation range of the first skill.
[0173] Schematically, the first skill is activated from the first virtual object, and the undetermined virtual object is one of at least one candidate virtual object. For the related description of the first skill, the skill activation range, and the undetermined virtual object, please refer to the above content and no further description will be given.
[0174] If an undetermined virtual object exists within the skill activation range of the first skill, step 202 is executed, and if an undetermined virtual object does not exist within the skill activation range of the first skill, the skill activation operation is determined to be an invalid operation, that is, the first virtual object is controlled so as not to activate the first skill.
[0175] Step 202: It is determined whether the undetermined virtual object is unique.
[0176] If the undetermined virtual object is unique, execute step 203; if the undetermined virtual object is not unique, execute step 204.
[0177] Step 203: The undetermined virtual object is determined as the second virtual object.
[0178] Step 204: Determine the position angle of each undetermined virtual object relative to the first virtual object.
[0179] For the relevant description of the position angle, please refer to the above content, and no further description will be given. If the undetermined virtual object is not unique, multiple position angles can be obtained according to the relative positions of the first virtual object and each undetermined virtual object.
[0180] Step 205: Sort all included position angles to determine the minimum of all included position angles.
[0181] The position included angle corresponding to each undetermined virtual object can be obtained based on step 204. Then, the magnitudes of the obtained multiple position included angles are sorted to determine the minimum value of all the position included angles.
[0182] Step 206: The undetermined virtual object corresponding to the smallest position included angle is determined as the second virtual object.
[0183] Based on step 205, by sorting all the included position angles, the minimum value of all the included position angles can be determined, and the undetermined virtual object corresponding to the minimum included position angle is determined as the second virtual object.
[0184] FIG. 14 is a flowchart of a virtual object control method provided by an exemplary embodiment of the present application, which includes the following steps. Step 301: Determine a first position of a first virtual object and a corresponding position of at least one candidate virtual object.
[0185] Schematically, the first virtual object has a first skill. For the related description of the first virtual object and the candidate virtual object, please refer to the above content.
[0186] Step 302: When the undetermined virtual object is located within the skill activation range of the first skill of the first virtual object, a position angle of the undetermined virtual object with respect to the first virtual object is determined.
[0187] For the relevant explanation of the undetermined virtual object, skill activation range, and position angle, please refer to the above contents.
[0188] Step 303: Determine the undetermined virtual object corresponding to the smallest position included angle as a second virtual object, and display a linear skill indicator of the first skill between the first virtual object and the second virtual object.
[0189] Schematically, the second virtual object is determined according to the direction of the first virtual object, and the second virtual object in the embodiment of the present application is determined by the position angle. For the relevant description of the position angle and the linear skill indicator, please refer to the above content.
[0190] Step 304: In response to the skill activation operation, the first virtual object is controlled to activate the first skill on the second virtual object.
[0191] For relevant explanations on skill activation operations, please refer to the above content.
[0192] As described above, in the virtual object control method provided by the embodiments of the present application, before activating a first skill, a second virtual object is determined based on the direction of the first virtual object, and a linear skill indicator of the first skill is automatically displayed between the first virtual object and the second virtual object, so that a player controlling the first virtual object can exchange the second virtual object by adjusting the direction of the first virtual object, and can quickly lock onto and aim at the object to which the first skill is to be applied before the skill activation operation, thereby improving the accuracy of the activation of the first skill.
[0193] FIG. 15 is a schematic diagram of a virtual object control device provided by an exemplary embodiment of the present application, the device including: a display module 1520 for displaying a first virtual object having a first skill and at least one candidate virtual object; and a response module 1540 for controlling the first virtual object to activate the first skill on the second virtual object in response to a skill activation operation, the display module 1520 further displays a linear skill indicator of the first skill between the first virtual object and the second virtual object when the second virtual object is located within a skill activation range of the first skill, the second virtual object is one of the at least one candidate virtual object, the second virtual object is determined based on a direction in which the first virtual object is heading, a first end of the linear skill indicator is located on the first virtual object, and a second end of the linear skill indicator is located on the second virtual object; and the display module 1520 further updates and displays the linear skill indicator when at least one of the first virtual object and the second virtual object moves.
[0194] Optionally, the display module 1520 further updates and displays at least one of a display length and a display position of the linear skill indicator when at least one of the first virtual object and the second virtual object moves.
[0195] Optionally, the display module 1520 updates and displays a display length of the linear skill indicator based on a straight-line distance between the first virtual object and the second virtual object.
[0196] Optionally, the display module 1520 shortens a display length of the linear skill indicator when the first virtual object or the second virtual object moves closer to the opponent, or lengthens a display length of the linear skill indicator when the first virtual object or the second virtual object moves away from the opponent.
[0197] Optionally, the display module 1520 updates and displays a display position of the linear skill indicator based on a tilt angle of the second virtual object relative to a facing direction of the first virtual object.
[0198] Optionally, the display module 1520 increases the tilt angle of the display position of the linear skill indicator relative to the direction in which the first virtual object is facing when the tilt angle increases, or decreases the tilt angle of the display position of the linear skill indicator relative to the direction in which the first virtual object is facing when the tilt angle decreases.
[0199] Optionally, the display module 1520 further cancels the display of the linear skill indicator when a change range of the direction of the first virtual object is greater than a change condition, or cancels the display of the linear skill indicator when the second virtual object exceeds a skill activation range of the first skill.
[0200] Optionally, the display module 1520 further cancels the display of the linear skill indicator between the first virtual object and the second virtual object, and displays a linear skill indicator between the first virtual object and a third virtual object, when a heading direction of the first virtual object is changed from the second virtual object to a third virtual object, where the third virtual object is another one of the at least one candidate virtual object, and the third virtual object is located within a skill activation range of the first skill.
[0201] Optionally, the response module 1540, in response to a touchdown operation on a skill widget corresponding to the first skill, displays a linear skill indicator of the first skill between the first virtual object and the second virtual object, and, in response to a touchleave operation on the skill widget, controls the first virtual object to activate the first skill on the second virtual object.
[0202] Optionally, the linear skill indicator is a spatial linear skill indicator, and the display module 1520 displays the spatial linear skill indicator of the first skill between the first virtual object and the second virtual object, where a display position of the spatial linear skill indicator is higher than a virtual ground surface in the virtual environment.
[0203] Optionally, the apparatus further includes a determining module 1560 for determining a second virtual object from the at least one candidate virtual object based on the first position and the heading direction of the first virtual object.
[0204] Optionally, the determination module 1560 determines a position angle of an undetermined virtual object among the at least one candidate virtual object relative to a first virtual object, and determines the undetermined virtual object as a second virtual object if the position angle satisfies a first condition.
[0205] Optionally, the determination module 1560 determines an included angle formed by the first ray and the second ray to be a position included angle, where the first ray is determined based on the first position and the heading direction, and the second ray is determined based on the first position and a second position of the undetermined virtual object.
[0206] Optionally, the first condition includes one of: the value of the position angle being a minimum value of position angles corresponding to at least two undetermined virtual objects; and the value of the position angle being less than a first predetermined value.
[0207] Optionally, the determination module 1560 determines a relative distance between an undetermined virtual object among the at least one candidate virtual object and the first virtual object, and determines the undetermined virtual object as the second virtual object if the relative distance satisfies a second condition.
[0208] Optionally, the determination module 1560 determines a first ray based on the first position and the heading direction, and determines a perpendicular distance from a second position of the undetermined virtual object to the first ray as a relative distance.
[0209] Optionally, the second condition includes one of: the value of the relative distance being a minimum value of the vertical distances corresponding to the at least two undetermined virtual objects; and the value of the relative distance being less than a second predetermined value.
[0210] Optionally, the determination module 1560 further obtains a distance between the first virtual object and each candidate virtual object, and determines a candidate virtual object located within a skill activation range as an undetermined virtual object based on the distance between the first virtual object and the candidate virtual object.
[0211] Optionally, in response to the skill activation operation, the display module 1520 displays a prompt special effect on the second virtual object, the prompt special effect indicating that an application object of the first skill is the second virtual object, and controls the first virtual object to activate the first skill on the second virtual object.
[0212] Optionally, the response module 1540 further adjusts a heading direction of the first virtual object in response to a rotation operation on the first virtual object.
[0213] Optionally, the second virtual object includes one of a virtual object having health points and a virtual object having no health points and not belonging to any faction.
[0214] 16 is a structural block diagram of a terminal 1600 provided by an exemplary embodiment of the present application. The terminal 1600 can be a smartphone, a tablet, an MP3 player, an MP4 player, a notebook computer, or a desktop computer. The terminal 1600 can also be called a user equipment.
[0215] The terminal 1600 generally includes a processor 1601 and a memory 1602 .
[0216] The processor 1601 includes one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). The processor 1601 further includes a main processor, also called a CPU (Central Processing Unit), which processes data in a wake-up state, and a coprocessor, which is a low-power consumption processor, which processes data in a standby state. In some embodiments, the processor 1601 is integrated with a GPU (Graphics Processing Unit), which renders and draws content to be displayed on the display. In some embodiments, the processor 1601 further includes an AI (Artificial Intelligence) processor, which processes computing operations related to machine learning.
[0217] The memory 1602 includes one or more computer-readable storage media, which are non-transitory. The memory 1602 further includes high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash storage devices, etc. In some embodiments, the non-transitory computer-readable storage media in the memory 1602 stores at least one instruction that is executed by the processor 1601 to realize a method for controlling a virtual object provided by a method embodiment in the present application.
[0218] In some embodiments, the terminal 1600 optionally further includes a peripheral interface 1603 and at least one peripheral. The processor 1601, the memory 1602, and the peripheral interface 1603 are connected to each other via a bus or signal lines. Each peripheral is connected to the peripheral interface 1603 via a bus, signal line, or circuit board. Specifically, the peripheral further includes a touch display 1605.
[0219] The touch display 1605 displays a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display 1605 may further include a capability of collecting touch signals on or above the surface of the touch display 1605. The touch signals may be input as control signals to the processor 1601 for processing. In this case, the touch display 1605 may further provide virtual buttons and / or virtual keyboards (also referred to as soft buttons and / or soft keyboards). In some embodiments, the touch display 1605 is one and is located on the front panel of the terminal 1600, in other embodiments, the touch display 1605 is at least two and is located on different surfaces of the terminal 1600, or is folded, in other embodiments, the touch display 1605 is a flexible display and is located on a curved or folded surface of the terminal 1600. The touch display 1605 may also be located as a non-rectangular irregular graphic, i.e., an irregular screen. The touch display 1605 is manufactured from materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), and the like.
[0220] In some embodiments, terminal 1600 further includes one or more sensors 1609, including but not limited to a pressure sensor 1612.
[0221] The pressure sensor 1612 is provided on the side frame of the terminal 1600 and / or under the touch display 1605. When the pressure sensor 1612 is provided on the side frame of the terminal 1600, it detects a user's grip signal on the terminal 1600, and the processor 1601 performs left / right hand recognition or quick operation based on the grip signal collected from the pressure sensor 1612. When the pressure sensor 1612 is provided under the touch display 1605, the processor 1601 realizes control of an operable widget on the UI interface based on the user's pressure operation on the touch display 1605. The operable widget includes at least one of a button widget, a scrollbar widget, an icon widget, and a menu widget.
[0222] As will be appreciated by those skilled in the art, the architecture of FIG. 16 is not intended to limit terminal 1600, which may include more or fewer components than shown, may combine some components, or may employ different component arrangements.
[0223] The present application further provides a computer device, the computer device including a processor, the processor executes the steps of: displaying a first virtual object having a first skill and at least one candidate virtual object; when a second virtual object is located within a skill activation range of the first skill, displaying a linear skill indicator of the first skill between the first virtual object and the second virtual object, the second virtual object being one of the at least one candidate virtual object and being determined based on a heading direction of the first virtual object, a first end of the linear skill indicator being located on the first virtual object, and a second end of the linear skill indicator being located on the second virtual object; when at least one of the first virtual object and the second virtual object moves, updating and displaying at least one of a display length and a display position of the linear skill indicator; and controlling the first virtual object to activate the first skill on the second virtual object in response to a skill activation operation.
[0224] The present application further provides a computer-readable storage medium, in which a computer program is stored, and which, when executed by a processor, realizes the above-described method for controlling a virtual object.
[0225] The present application further provides a chip, the chip including programmable logic circuits and / or program instructions, which when operated, realizes the method for controlling a virtual object described above.
[0226] The present application further provides a computer program product or computer program, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium, and a processor reading and executing the computer instructions from the computer-readable storage medium, thereby realizing the method for controlling a virtual object as described above.
Claims
1. A method for controlling a virtual object executed by a computing device, comprising: displaying a first virtual object having a first skill and at least one candidate virtual object; displaying a linear skill indicator of the first skill between the first virtual object and the second virtual object when a second virtual object is located within a skill activation range of the first skill, the second virtual object being one of the at least one candidate virtual object and determined based on a direction in which the first virtual object is heading, a first end of the linear skill indicator being located on the first virtual object, and a second end of the linear skill indicator being located on the second virtual object; updating and displaying the linear skill indicator when at least one of the first virtual object and the second virtual object moves; and controlling the first virtual object in response to a skill activation operation to activate the first skill on the second virtual object.
2. canceling the display of the linear skill indicator when a change width of the direction of the first virtual object is greater than a change condition; Alternatively, the method for controlling a virtual object according to claim 1 , further comprising the step of canceling display of the linear skill indicator when the second virtual object exceeds a skill activation range of the first skill.
3. 2. The method for controlling a virtual object according to claim 1, further comprising: when a heading direction of the first virtual object is changed from a direction of the second virtual object to a direction of a third virtual object, canceling display of a linear skill indicator between the first virtual object and the second virtual object, and displaying a linear skill indicator between the first virtual object and the third virtual object, wherein the third virtual object is another one of the at least one candidate virtual object and is located within a skill activation range of the first skill.
4. The step of displaying a linear skill indicator of the first skill between the first virtual object and the second virtual object includes: displaying a linear skill indicator of the first skill between the first virtual object and the second virtual object in response to a touchdown operation on a skill widget corresponding to the first skill; The step of controlling the first virtual object in response to a skill activation operation so as to activate the first skill on the second virtual object includes: The method for controlling a virtual object according to claim 1 , further comprising the step of controlling the first virtual object to activate the first skill on the second virtual object in response to a touch leave operation on the skill widget.
5. the linear skill indicator is a spatially linear skill indicator; The step of displaying a linear skill indicator of the first skill between the first virtual object and the second virtual object includes:
2. The method for controlling a virtual object according to claim 1, further comprising the step of displaying a spatial linear skill indicator of the first skill between the first virtual object and the second virtual object, wherein a display position of the spatial linear skill indicator is higher than a virtual ground in a virtual environment.
6. The method of claim 1 , further comprising determining the second virtual object from the at least one candidate virtual object based on a first position and a heading direction of the first virtual object.
7. The step of determining the second virtual object from the at least one candidate virtual object based on a first position and a heading direction of the first virtual object includes: determining a position angle of an undetermined virtual object among the at least one candidate virtual object with respect to the first virtual object; The method for controlling a virtual object according to claim 6 , further comprising: determining the undetermined virtual object as the second virtual object when the positional angle satisfies a first condition.
8. The step of determining a position angle of an undetermined virtual object among the at least one candidate virtual object with respect to the first virtual object includes:
8. The method for controlling a virtual object according to claim 7, further comprising: determining an included angle formed by a first ray and a second ray as the position included angle, wherein the first ray is determined based on the first position and the heading direction, and the second ray is determined based on the first position and a second position of the undetermined virtual object.
9. The method of controlling a virtual object according to claim 7 , wherein the first condition includes that the value of the position angle is a minimum value among position angles corresponding to at least two undetermined virtual objects.
10. The method for controlling a virtual object according to claim 7 , wherein the first condition includes that the value of the position angle is smaller than a first predetermined value.
11. The step of determining the second virtual object from the at least one candidate virtual object based on a first position and a heading direction of the first virtual object includes: determining a relative distance between an undetermined virtual object of the at least one candidate virtual object and the first virtual object; The method for controlling a virtual object according to claim 6 , further comprising: determining the undetermined virtual object as the second virtual object when the relative distance satisfies a second condition.
12. The step of determining a relative distance between an undetermined virtual object among the at least one candidate virtual object and the first virtual object includes: determining a first ray based on the first position and the heading direction; The method for controlling a virtual object according to claim 11 , further comprising: determining a perpendicular distance from a second position of the undetermined virtual object to the first ray as the relative distance.
13. The method of controlling a virtual object according to claim 11 , wherein the second condition includes that the value of the relative distance is a minimum value among relative distances corresponding to at least two undetermined virtual objects.
14. The method of controlling a virtual object according to claim 11 , wherein the second condition includes that the value of the relative distance is smaller than a second predetermined value.
15. obtaining a distance between the first virtual object and each candidate virtual object; The method for controlling a virtual object according to claim 7 or 11, further comprising: determining, as the undetermined virtual object, a candidate virtual object located within the skill activation range, based on a distance between the first virtual object and the candidate virtual object.
16. A control device for a virtual object, comprising: a display module that displays a first virtual object having a first skill and at least one candidate virtual object; a response module that controls the first virtual object in response to a skill activation operation so as to activate the first skill on a second virtual object; The display module further displays a linear skill indicator of the first skill between the first virtual object and the second virtual object when the second virtual object is located within a skill activation range of the first skill, the second virtual object being one of the at least one candidate virtual object and determined based on a heading direction of the first virtual object, a first end of the linear skill indicator being located on the first virtual object, and a second end of the linear skill indicator being located on the second virtual object; The display module further includes a virtual object control device that updates and displays the linear skill indicator when at least one of the first virtual object and the second virtual object moves.
17. A computing device including a processor, The processor, Displaying a first virtual object having a first skill and at least one candidate virtual object; When a second virtual object is located within a skill activation range of the first skill, displaying a linear skill indicator of the first skill between the first virtual object and the second virtual object, the second virtual object being one of the at least one candidate virtual object and determined based on a direction in which the first virtual object is heading, a first end of the linear skill indicator being located on the first virtual object, and a second end of the linear skill indicator being located on the second virtual object; updating and displaying the linear skill indicator when at least one of the first virtual object and the second virtual object moves; and controlling the first virtual object to activate the first skill on the second virtual object in response to a skill activation operation.
18. A computer-readable storage medium on which a computer program is stored, the computer-readable storage medium realizing the method for controlling a virtual object according to any one of claims 1 to 15 by executing the computer program by a processor.
19. A chip, the chip including at least one of a programmable logic circuit and program instructions, the chip implementing the method for controlling a virtual object according to any one of claims 1 to 15 when the chip is operated.
20. A computer program product or computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium, and a processor reading and executing the computer instructions from the computer-readable storage medium, thereby realizing the method for controlling a virtual object according to any one of claims 1 to 15.
Citation Information
Patent Citations
Game system and program
JP2019136358A
Method and apparatus for controlling virtual object, and device and storage medium
WO2021244324A1
