Virtual object control method, device, terminal, storage medium and program product
By displaying a virtual mask around the virtual object, the problem of the virtual object's attack rate is too high in stealth, and the fairness of the game is achieved.
Patent Information
- Application Number
- CN202111505543.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-10
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2041-12-10
AI Technical Summary
In a battle game, when a virtual object attacks in an invisible state, the attack hit rate is too high, affecting the fairness of the game.
By displaying virtual masks around the virtual object, the virtual object is not visible to the virtual object outside the cover range, and the visibility of the virtual environment outside the cover range is reduced to control the attack rate.
Effectively control the attack hit rate of virtual objects in the invisible state and improve the fairness of the game.
Smart Images

Figure CN114130010B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of human-computer interaction, and in particular to a method, device, terminal, storage medium and program product for controlling a virtual object. Background Art
[0002] A fighting game is a game in which multiple user accounts compete in the same scene. Players can control virtual objects in the virtual environment to perform actions such as walking, running, climbing, and shooting. Multiple players can also team up online to collaboratively complete a task in the same virtual environment.
[0003] In the related art, when fighting, the user can control the virtual object to use virtual props, so that the virtual object has a stealth function. When the virtual object has the stealth function, the virtual object is invisible to other virtual objects in the virtual environment.
[0004] If a virtual object attacks in stealth mode, it is invisible to other virtual objects and can therefore attack at a closer distance. Accordingly, the attack hit rate is higher. Also, since the virtual object is invisible to other virtual objects, the virtual object can continue to attack. In this case, the fairness of the game will be affected. Summary of the invention
[0005] The embodiments of the present application provide a method, device, terminal, storage medium and product for controlling a virtual object, which can effectively control the attack hit rate of a virtual object in a stealth state, and help improve the fairness of the game. The technical solution is as follows:
[0006] In one aspect, an embodiment of the present application provides a method for controlling a virtual object, the method comprising:
[0007] In response to a placing operation on a virtual prop, controlling the first virtual object to place the virtual prop in a virtual environment;
[0008] When the first virtual object is within the prop action range of the virtual prop, a virtual mask is displayed around the first virtual object, and the first virtual object is invisible to a second virtual object outside the mask range of the virtual mask;
[0009] Based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask, a virtual environment picture is displayed, and the virtual mask is used to reduce the visibility of the virtual environment outside the mask range.
[0010] On the other hand, an embodiment of the present application provides a control device for a virtual object, the device comprising:
[0011] A control module, configured to control the first virtual object to place the virtual prop in the virtual environment in response to a placing operation on the virtual prop;
[0012] a first display module, configured to display a virtual mask around the first virtual object when the first virtual object is within the prop action range of the virtual prop, wherein the first virtual object is invisible to a second virtual object outside the mask range of the virtual mask;
[0013] The second display module is used to display a virtual environment picture based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask, wherein the virtual mask is used to reduce the visibility of the virtual environment outside the mask range.
[0014] On the other hand, an embodiment of the present application provides a terminal, which includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the control method of the virtual object as described in the above aspects.
[0015] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by a processor to implement the control method of a virtual object as described in the above aspects.
[0016] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a terminal reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the terminal performs the control method of a virtual object provided in various optional implementations of the above aspects.
[0017] The beneficial effects of the technical solution provided by the embodiments of the present application include at least:
[0018] In an embodiment of the present application, after the virtual object is controlled to place a virtual prop in a virtual environment, if the virtual object's virtual prop is within the prop action range, a virtual mask can be displayed around the virtual object, thereby making the virtual object invisible to other virtual objects in the virtual environment, that is, achieving a stealth effect; and after the virtual mask is displayed around the virtual object, the virtual mask can reduce the visibility of the virtual object to the virtual environment outside the mask range, that is, there are certain restrictions on the observation field of the virtual object, so that when the virtual object attacks in a stealth state, the attack hit rate of the virtual object can be effectively controlled to avoid the situation where the hit rate is too high during the attack, which helps to improve the fairness of the game. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 A schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application is shown;
[0021] Figure 2 A flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application is shown;
[0022] Figure 3 A schematic diagram of an interface showing a control process of a virtual object according to an exemplary embodiment of the present application is shown;
[0023] Figure 4 A flowchart showing a method for using a virtual object provided by another exemplary embodiment of the present application is shown;
[0024] Figure 5 A schematic diagram of an interface showing a virtual prop delivery process according to an exemplary embodiment of the present application is shown;
[0025] Figure 6 A schematic diagram of an interface showing different prop action ranges corresponding to different estimated placement positions provided by an exemplary embodiment of the present application;
[0026] Figure 7 A schematic diagram of an interface of a virtual mask provided by an exemplary embodiment of the present application is shown;
[0027] Figure 8 A flowchart showing a method for using a virtual object provided by another exemplary embodiment of the present application is shown;
[0028] Fig. 9A schematic diagram of an interface of a map display control of a client corresponding to a second virtual object provided by an exemplary embodiment of the present application is shown;
[0029] Fig.10 A schematic diagram of an interface showing a process of displaying prompt information after a second virtual object enters a mask range provided by an exemplary embodiment of the present application is shown;
[0030] Fig.11 A flowchart of a method for controlling a virtual object provided by another exemplary embodiment of the present application is shown;
[0031] Fig.12 is a structural block diagram of a control device for a virtual object provided by an exemplary embodiment of the present application;
[0032] Fig.13 A structural block diagram of a terminal provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0033] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0034] The term "multiple" as used herein refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0035] First, the nouns involved in the embodiments of the present application are introduced:
[0036] Virtual environment: is a virtual environment displayed (or provided) when an application is running on a terminal. The virtual environment can be a simulation of the real world, a semi-simulation and semi-fictitious environment, or a purely fictitious environment. The virtual environment can be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, and this application does not limit this. The following embodiments are described by taking a three-dimensional virtual environment as an example.
[0037] Virtual object: refers to an active object in a virtual environment. The active object can be a virtual person, a virtual animal, an animated character, etc., such as a person or an animal displayed in a three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional model created based on animation skeleton technology. Each virtual object has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment.
[0038] Virtual props: refers to props that virtual objects can use in virtual environments, including virtual weapons that can change the attribute values of other virtual objects, supply props such as bullets, defense props such as shields, armor, armored vehicles, virtual beams, virtual shock waves, etc., which are used by virtual objects to release skills through their hands, and parts of the virtual object's body, such as hands and legs. Among them, virtual props that can change the attribute values of other virtual objects include long-range virtual props such as pistols, rifles, and sniper rifles, short-range virtual props such as daggers, knives, swords, and ropes, and throwing virtual props such as throwing axes, throwing knives, grenades, flash bombs, and smoke bombs.
[0039] Please refer to Figure 1 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment may include: a first terminal 110, a server 120 and a second terminal 130.
[0040] The first terminal 110 runs an application 111 that supports a virtual environment, and the application 111 can be a multiplayer online battle program. When the first terminal runs the application 111, the user interface of the application 111 is displayed on the screen of the first terminal 110. The application 111 can be any one of a multiplayer online tactical competitive (MOBA) game, a battle royale shooting game, and a simulation game (SLG). In this embodiment, the application 111 is an example of a first-person shooting (FPS) game. The first terminal 110 is a terminal used by a first user 112, and the first user 112 uses the first terminal 110 to control a first virtual object located in a virtual environment to perform activities. The first virtual object can be called the main control virtual object of the first user 112. The activities of the first virtual object include, but are not limited to: adjusting body posture, crawling, walking, running, riding, flying, jumping, driving, picking up, shooting, attacking, throwing, and releasing skills. Schematically, the first virtual object is a first virtual character, such as a simulated character or an anime character.
[0041] The second terminal 130 runs an application 131 that supports a virtual environment, and the application 131 may be a multiplayer online battle program. When the second terminal 130 runs the application 131, the user interface of the application 131 is displayed on the screen of the second terminal 130. The client may be any one of a MOBA game, a battle royale shooting game, and an SLG game. In this embodiment, the application 131 is an FPS game as an example. The second terminal 130 is a terminal used by a second user 132. The second user 132 uses the second terminal 130 to control a second virtual object in a virtual environment to perform activities. The second virtual object may be referred to as a master virtual character of the second user 132. Schematically, the second virtual object is a second virtual character, such as a simulated character or an anime character.
[0042] Optionally, the first virtual object and the second virtual object are in the same virtual world. Optionally, the first virtual object and the second virtual object may belong to the same camp, the same team, the same organization, have a friend relationship, or have temporary communication permissions. Optionally, the first virtual object and the second virtual object may belong to different camps, different teams, different organizations, or have a hostile relationship.
[0043] Optionally, the applications running on the first terminal 110 and the second terminal 130 are the same, or the applications running on the two terminals are the same type of applications on different operating system platforms (Android or IOS). The first terminal 110 may refer to one of a plurality of terminals, and the second terminal 130 may refer to another of a plurality of terminals. This embodiment is only illustrated by taking the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device types include at least one of: a smart phone, a tablet computer, an e-book reader, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, a laptop portable computer, and a desktop computer.
[0044] Figure 1Only two terminals are shown, but in different embodiments, there are multiple other terminals that can access the server 120. Optionally, there are one or more terminals corresponding to the developer, on which a development and editing platform for an application supporting a virtual environment is installed. The developer can edit and update the application on the terminal, and transmit the updated application installation package to the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 can download the application installation package from the server 120 to update the application.
[0045] The first terminal 110 , the second terminal 130 and other terminals are connected to the server 120 via a wireless network or a wired network.
[0046] The server 120 includes at least one of a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services for applications that support virtual environments. Optionally, the server 120 undertakes the main computing work and the terminal undertakes the secondary computing work; or, the server 120 undertakes the secondary computing work and the terminal undertakes the main computing work; or, the server 120 and the terminal adopt a distributed computing architecture for collaborative computing.
[0047] In an illustrative example, the server 120 includes a memory 121, a processor 122, a user account database 123, a battle service module 124, and a user-oriented input / output interface (I / O interface) 125. The processor 122 is used to load instructions stored in the server 120 and process data in the user account database 123 and the battle service module 124; the user account database 123 is used to store data of user accounts used by the first terminal 110, the second terminal 130 and other terminals, such as the user account's avatar, the user account's nickname, the user account's combat power index, and the service area where the user account is located; the battle service module 124 is used to provide multiple battle rooms for users to fight, such as 1V1 battle, 3V3 battle, 5V5 battle, etc.; the user-oriented I / O interface 125 is used to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 through a wireless network or a wired network.
[0048] Please refer to Figure 2 , which shows a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. Figure 1 Taking the first terminal 110 or the second terminal 130 in the implementation environment or other terminals in the implementation environment as an example, the method includes the following steps:
[0049] Step 201: In response to a virtual prop placement operation, control a first virtual object to place the virtual prop in a virtual environment.
[0050] The method of the embodiment of the present application is applied in a virtual environment. In a possible implementation, the terminal displays the virtual environment through a virtual environment screen. Optionally, the virtual environment screen is a screen that observes the virtual environment from the perspective of a virtual object. The viewing angle refers to the observation angle when observing the virtual environment from the first-person perspective or the third-person perspective of the virtual object. Optionally, in the embodiment of the present application, the viewing angle is the angle when observing the virtual object through a camera model in the virtual environment.
[0051] Optionally, the camera model automatically follows the virtual object in the virtual environment, that is, when the position of the virtual object in the virtual environment changes, the camera model changes with the position of the virtual object in the virtual environment, and the camera model is always within a preset distance range of the virtual object in the virtual environment. Optionally, during the automatic following process, the relative position of the camera model and the virtual object does not change. The camera model refers to a three-dimensional model located around the virtual object in the virtual environment. When the first-person perspective is adopted, the camera model is located near the head of the virtual object or at the head of the virtual object; when the third-person perspective is adopted, the camera model can be located behind the virtual object and bound to the virtual object, or can be located at any position at a preset distance from the virtual object. Through the camera model, the virtual object in the virtual environment can be observed from different angles. Optionally, when the third-person perspective is a first-person over-the-shoulder perspective, the camera model is located behind the virtual object (for example, the head and shoulders of the virtual character). Optionally, in addition to the first-person perspective and the third-person perspective, the perspective also includes other perspectives, such as a bird's-eye view; when the bird's-eye view is adopted, the camera model can be located above the head of the virtual object, and the bird's-eye view is a perspective for observing the virtual environment from an aerial perspective. Optionally, the camera model will not be actually displayed in the virtual environment, that is, the camera model is not displayed in the virtual environment displayed in the user interface.
[0052] In an embodiment of the present application, a virtual prop is provided, and the virtual prop can make a first virtual object hidden from the observation field of other virtual objects.
[0053] Optionally, the virtual props may be props equipped by the first virtual object before entering the game, or the virtual props may be props picked up in the virtual environment after entering the game. Alternatively, the virtual props may be props used by the first virtual object to trigger the release of a target skill.
[0054] In a possible implementation, when the virtual props are placed in the virtual environment, they become effective, and the user can trigger the placement of the virtual props by triggering the prop placement control corresponding to the virtual props. When the terminal receives the placement operation of the virtual props, the first virtual object is controlled to place the virtual props in the virtual environment. It should be noted that controlling the first virtual object to place the virtual props in the virtual environment can be executed by the terminal or by the server, and this embodiment does not limit this.
[0055] Indicatively, Figure 3 As shown, after receiving the operation of placing the virtual prop, the terminal controls the first virtual object to place the virtual prop 301 in the virtual environment.
[0056] Step 202: When the first virtual object is within the prop action range of the virtual prop, a virtual mask is displayed around the first virtual object, and the first virtual object is invisible to a second virtual object outside the mask range of the virtual mask.
[0057] Optionally, the virtual props have a prop range, wherein the prop range may be a spherical range, a square range, or an irregular range, etc. When the first virtual object is within the prop range, the virtual prop will take effect on the first virtual object, that is, a virtual mask is displayed around the first virtual object, and the first virtual object is invisible to the second virtual object outside the mask range. Correspondingly, the virtual mask is invisible to the second virtual object outside the mask range. The second virtual object may belong to the same camp as the first virtual object, or may belong to a different camp from the first virtual object.
[0058] Optionally, the virtual mask is a mask centered on the first virtual object, which may be a spherical mask, a square mask, or a diamond mask, etc., which is not limited in this embodiment. During the movement of the first virtual object, the virtual mask moves with the first virtual object, that is, it remains centered on the first virtual object. And during the display of the virtual mask, the first virtual object can perform any action, such as attacking, jumping, climbing, etc.
[0059] In a possible implementation, whether the first virtual object is within the prop range is determined by the distance between the first virtual object and the virtual prop. When the distance between the first virtual object and the virtual prop is less than the prop range, it is determined that the first virtual object is within the prop range.
[0060] Optionally, displaying a virtual mask around the first virtual object may be executed by the terminal control, or may be executed by the server control. When executed by the terminal, the terminal obtains the distance between the first virtual object and the virtual prop, and when it is determined that the first virtual object is within the effective range of the prop according to the distance, the virtual mask is displayed around the first virtual object. When executed by the server, the server may obtain the distance between the first virtual object and the virtual prop, and after determining that the first virtual object is within the effective range of the prop according to the distance, the virtual mask is displayed around the first virtual object. Alternatively, the process may be executed by the terminal in cooperation with the server. When the terminal determines that the first virtual object is within the effective range of the prop, it sends an instruction to the server, and after receiving the instruction, the server displays a virtual mask around the first virtual object.
[0061] After displaying the virtual mask around the first virtual object, the server may obtain the distance between the first virtual object and each second virtual object, and when the distance between the second virtual object and the first virtual object is greater than the mask range of the virtual mask, the first virtual object and the virtual mask are hidden in the field of view of the second virtual object. For example, when the mask is a spherical mask with a target radius, if the distance between the first virtual object and the second virtual object is greater than the target radius, it is determined that the second virtual object is outside the mask range, and the first virtual object and the virtual mask are hidden in the field of view of the second virtual object.
[0062] Indicatively, Figure 3 As shown, the first virtual object 302 is within the prop action range of the virtual prop 301 , and at this time, a virtual mask 303 is displayed around the first virtual object.
[0063] Step 203: displaying a virtual environment picture based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask, wherein the virtual mask is used to reduce the visibility of the virtual environment outside the mask range.
[0064] When a virtual mask is displayed around the first virtual object, the second virtual object outside the mask range is not visible. At this time, if the first virtual object attacks the second virtual object, the hit rate can be greatly improved, which may cause the failure rate of the second virtual object to be too high, affecting the fairness of the game. Therefore, in this embodiment, the observation field of the first virtual object is limited by the virtual mask. When a virtual mask is displayed around the first virtual object, the visibility of the virtual environment outside the mask range is reduced, affecting the observation field of the first virtual object, thereby achieving the effect of controlling the attack hit rate of the first virtual object.
[0065] In a possible implementation, according to the position of the first virtual object in the virtual environment and the mask range of the virtual mask, the virtual environment within the mask range of the first virtual object and the virtual environment outside the mask range are determined, so that the virtual environment within the mask range and the virtual environment outside the mask range are displayed in the virtual environment screen based on different display modes. For the virtual environment outside the virtual mask range, the visibility is reduced, for example, the visibility is reduced to 0, and the display is performed based on the reduced visibility.
[0066] Indicatively, Figure 3 As shown, after the virtual mask 303 is displayed around the first virtual object 301, the displayed virtual environment screen only includes the virtual environment within the mask range, and the virtual environment outside the mask range is not displayed.
[0067] To sum up, in the embodiments of the present application, after the virtual object is controlled to place virtual props in the virtual environment, if the virtual object's virtual props are within the prop action range, a virtual mask can be displayed around the virtual object, thereby making the virtual object invisible to other virtual objects in the virtual environment, that is, achieving a stealth effect; and after the virtual mask is displayed around the virtual object, the virtual mask can reduce the visibility of the virtual object to the virtual environment outside the mask range, that is, there are certain restrictions on the observation field of the virtual object, so that when the virtual object attacks in the stealth state, the attack hit rate of the virtual object can be effectively controlled to avoid the situation where the hit rate is too high during the attack, which helps to improve the fairness of the game.
[0068] In this embodiment, the virtual props can be placed into the virtual environment by the user controlling the first virtual object. When the placement position is different, the corresponding props have different effective ranges. When the first virtual object is within the effective range of the props, the first virtual object in the virtual mask can attack. In a possible implementation, the limiting effect of the virtual mask on the field of view of the first virtual object is determined according to the attack state of the first virtual object. This will be described below with exemplary embodiments.
[0069] Please refer to Figure 4 , which shows a flow chart of a method for controlling a virtual object provided by another exemplary embodiment of the present application. Figure 1 The first terminal 110 or the second terminal 130 in the implementation environment shown or other terminals in the implementation environment are used as examples for description. The method includes the following steps.
[0070] Step 401, display the target skill control.
[0071] In this embodiment, the virtual props are a skill weapon of the virtual object. In a possible implementation, a target skill control is displayed in the virtual environment screen, wherein the target skill control is used to activate the virtual props.
[0072] Indicatively, Figure 5 As shown, a target skill control 501 is displayed in the virtual environment screen.
[0073] Step 402, in response to a triggering operation on a target skill control, displaying a prop delivery control.
[0074] Optionally, the trigger operation may be a click operation, a long press operation, a sliding operation, etc., which is not limited in this embodiment. When a trigger operation is received on a target skill control, it is determined that the virtual prop is activated. At this time, a prop delivery control is displayed in the virtual environment screen, and the prop delivery control is used to trigger the delivery of the virtual prop.
[0075] Optionally, when the prop delivery control is displayed, the attack control can be switched to the prop delivery control, or a new prop delivery control can be created in the virtual environment screen.
[0076] After receiving the trigger operation on the target skill control, the terminal adjusts the state of the first virtual object to the pre-delivery state.
[0077] In one possible implementation, there are usage restrictions for virtual props. When the target skill control is triggered, the terminal sets the target skill control to an untriggerable state. When the target time is reached, the target skill control is set to a triggerable state again. Alternatively, when the number of virtual objects defeated by the first virtual object reaches the target number, the target skill control is set to a triggerable state again, thereby avoiding the continuous use of virtual props. Optionally, the target skill unlocking progress is displayed in the target skill control, and the remaining unlocking progress is prompted. When the unlocking progress reaches 100%, the target skill control is set to a triggerable state.
[0078] Indicatively, Figure 5 As shown, when a trigger operation is received on the target skill control 501, the prop delivery control 502 is displayed, and the state of the first virtual object 503 is switched to a pre-delivery state.
[0079] Step 403, in response to the triggering operation of the prop placement control, the estimated placement position and distance information are displayed, where the distance information is used to indicate the distance between the virtual ground projection position of the estimated placement position and the first virtual object.
[0080] In a possible implementation, when a trigger operation on a prop delivery control is received, the terminal determines an estimated delivery position according to the delivery state of the first virtual object.
[0081] The user can adjust the estimated placement position by adjusting the pre-placement state of the first virtual object. That is, the user can change the estimated placement position by adjusting the placement direction and the placement angle of the first virtual object. Optionally, when there is a virtual obstacle in the placement direction, the estimated placement position will be before the virtual obstacle, that is, the virtual props cannot pass through the virtual obstacle during the placement process.
[0082] Optionally, after the estimated placement position is determined, the estimated placement position may be displayed, and the distance between the estimated placement position and the first virtual object may be displayed at the same time. When determining the distance between the two, the projection position of the estimated placement position on the virtual ground is first determined, so that the distance between the projection position and the first virtual object is determined as the distance between the estimated placement position and the first virtual object, and the distance is displayed.
[0083] Optionally, the estimated drop position and distance information remain displayed during the triggering of the prop drop control.
[0084] Indicatively, Figure 5 As shown, when a trigger operation is received on the prop delivery control 502, an estimated delivery position 504 and distance information 505 are displayed. The estimated delivery position 504 is determined according to the delivery direction and delivery angle of the first virtual object 503.
[0085] Step 404, based on the placement height corresponding to the estimated placement position, determine the props action range of the virtual props, and the placement height is positively correlated with the props action range.
[0086] Optionally, after the estimated placement position is determined, the placement height can be determined according to the distance between the estimated placement position and the virtual ground. The prop action range of the virtual prop is a spherical range, and the higher the placement height, the larger the prop action range of the virtual prop.
[0087] Step 405: Display the scope of the prop in the virtual environment screen and / or in the map display control.
[0088] After the prop action range of the virtual prop is determined, the prop action range can be displayed, thereby reminding the user of the size of the prop action range in the pre-throwing stage.
[0089] Optionally, the scope of the props may be displayed in the virtual environment screen, for example, by highlighting the boundaries of the scope of the props.
[0090] Alternatively, the scope of the item can be displayed in the map display control. Alternatively, the scope of the item can be displayed in both the virtual environment screen and the map display control, which is not limited in this embodiment.
[0091] Indicatively, Figure 6 As shown, when the expected delivery position is position 601, the effective range of the prop is a first range 602; when the expected delivery position is position 603, the effective range of the prop is a second range 604.
[0092] Step 406, display the height adjustment controls.
[0093] After the props range is displayed, the user may need to adjust the height of the virtual props, thereby adjusting the props range. In a possible implementation, to facilitate the user to adjust the height of the virtual props, the terminal may display a height adjustment control in the virtual environment screen to quickly adjust the height of the virtual props.
[0094] Step 407, in response to the triggering operation of the height adjustment control, adjusting the placement height.
[0095] In a possible implementation, the height adjustment control may include an upward adjustment control and a downward adjustment control, wherein the upward adjustment control is used to increase the placement height, and the downward adjustment control is used to decrease the placement height. When the terminal receives a trigger operation on the upward adjustment control, the estimated placement position may be increased; when the terminal receives a trigger operation on the downward adjustment control, the estimated placement position may be decreased.
[0096] In another possible implementation, the height adjustment control is only a single control, and different triggering operations on the height adjustment control correspond to different adjustment methods. For example, when the triggering operation is sliding upward, the placement height can be increased; when the triggering operation is sliding downward, the placement height can be decreased. The terminal can adjust the placement height corresponding to the expected placement position according to the triggering operation of the height adjustment control.
[0097] Indicatively, Figure 6 As shown, height adjustment controls are displayed in the virtual environment screen, including an upward adjustment control 605 and a downward adjustment control 606. The user can adjust the placement height by triggering the two adjustment controls.
[0098] Step 408 : in response to the triggering operation of the prop-dropping control being completed, controlling the first virtual object to drop the virtual prop in the virtual environment.
[0099] When the terminal determines that the trigger operation of the prop delivery control is completed, the first virtual object can be controlled to deliver the virtual prop according to the estimated delivery position before the trigger operation is completed. After the virtual prop delivery is completed, the display of the prop delivery control and the height adjustment control can be stopped.
[0100] Indicatively, Figure 5As shown, when the estimated delivery position 504 and the distance information 505 are displayed, if the terminal detects a trigger operation on the prop delivery control, such as the end of a long press operation, the first virtual object can be controlled to deliver the virtual prop 506 to the estimated delivery position 504.
[0101] Step 409 : Display a virtual mask around the first virtual object when the first virtual object is within the prop action range of the virtual prop and there is no virtual obstacle between the first virtual object and the virtual prop.
[0102] Among them, the virtual obstacle refers to an obstacle that blocks the first virtual object's observation field of view of the virtual prop. In a possible implementation, the virtual obstacle affects the effect of the virtual prop. When the first virtual object is within the prop range of the virtual prop, the terminal also needs to determine whether there is a virtual obstacle between the first virtual object and the virtual prop that can hinder the observation of the virtual prop. If so, it is determined that the virtual prop cannot take effect, that is, the virtual mask cannot be displayed around the first virtual object. When the first virtual object is within the prop range of the virtual prop and there is no virtual obstacle between the first virtual object and the virtual prop, a virtual mask is displayed around the first virtual object.
[0103] During the display of the virtual mask, it is necessary to determine in real time whether the first virtual object is within the prop range of the virtual prop and whether there is a virtual obstacle between the first virtual object and the virtual prop according to the moving position of the first virtual object. If the first virtual object moves out of the prop range or there is a virtual obstacle between the first virtual object and the virtual prop, the display of the virtual mask will be stopped until the first virtual object moves into the prop range or moves to a position without virtual obstacles, and then the display of the virtual mask will be resumed.
[0104] Step 410: determine the virtual environment outside the mask range based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask.
[0105] When displaying the virtual environment screen based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask, it is necessary to determine the virtual environment outside the mask range of the virtual mask and the virtual environment within the mask range, so as to display the virtual environment outside the mask range and the virtual environment within the mask range based on different methods.
[0106] After the virtual mask is displayed around the first virtual object, since the virtual mask moves according to the movement of the first virtual object, the virtual environment outside the mask range changes according to the movement of the virtual mask. In a possible implementation, the virtual environment outside the mask range is determined according to the position information of the first virtual object in the virtual environment and the mask range.
[0107] Optionally, determining the virtual environment outside the mask range may include the following steps:
[0108] Step 1: Based on the distance between the first virtual object and the virtual prop, a target radius is determined, and the distance and the target radius are positively correlated.
[0109] In one possible case, the virtual mask is a spherical mask with the first virtual object as the center and a radius as the target radius. The target radius may change with the distance between the first virtual object and the virtual prop. The closer the first virtual object is to the virtual prop, the larger the target radius. That is, the prop effect of the virtual prop is different at different positions within the prop's range of action, and the closer the first virtual object is to the virtual prop, the stronger the prop effect of the virtual prop.
[0110] Step 2: Determine a mask range based on the position of the first virtual object in the virtual environment and the target radius.
[0111] After determining the target radius according to the distance between the first virtual object and the virtual prop, the current position of the first virtual object is determined as the center, and a spherical range is obtained according to the target radius, and the spherical range is the mask range.
[0112] Step 3: Based on the mask range, determine the virtual environment outside the mask range.
[0113] When the terminal determines that the spherical range is outside, the terminal determines the virtual environment outside the spherical range in the virtual environment as the virtual environment outside the mask range.
[0114] Step 411, determining the visibility of the target in the virtual environment outside the mask range.
[0115] Since the virtual mask is used to reduce the visibility of the virtual environment outside the mask range, the terminal needs to determine the reduced visibility of the virtual environment outside the mask range, that is, the target visibility. In a possible implementation, different target visibilities may be determined according to different states of the first virtual object.
[0116] Optionally, when the first virtual object is in a non-attack state, the target visibility is determined to be the first visibility. When the first virtual object is not attacking, the target visibility may be determined to be the first visibility, wherein the first visibility is 0, that is, when the first virtual object is in a non-attack state, the virtual environment outside the mask range is not visible to the first virtual object.
[0117] Optionally, when the first virtual object is in an attacking state, the target visibility is determined to be a second visibility, wherein the first visibility is lower than the second visibility.
[0118] When the first virtual object is in an attacking state, since the first virtual object is in an attacking state, it indicates that it needs to attack other virtual objects. During the attacking process, there may be a situation where its own position is exposed. For example, when the first virtual object uses a virtual firearm to attack, if the first virtual object hits the second virtual object, the second virtual object can judge the position of the first virtual object according to the hitting situation. At this time, if the first virtual object cannot observe the virtual environment outside the mask range, it cannot observe the second virtual object, and the probability of being attacked is relatively high. Therefore, in order to ensure fairness in the game, when the first virtual object is in an attacking state, the target visibility is determined to be the second visibility, and the second visibility is higher than the first visibility, that is, under the second visibility, the virtual environment outside the mask range is displayed more clearly than the virtual environment outside the mask range under the first visibility. However, the second visibility is lower than the original visibility, that is, it is lower than the visibility corresponding to the virtual environment outside the original mask range, so that the first virtual object can observe the blurred virtual environment outside the mask range, avoiding excessive impact on the attack hit rate of the first virtual object.
[0119] Indicative, Figure 3 The target visibility of the virtual mask 303 is the first visibility, and Figure 7 The target visibility of the virtual mask 701 is the second visibility. Under the second visibility, the virtual environment outside the virtual mask 701 is displayed blurred.
[0120] Step 412: displaying a virtual environment picture corresponding to the virtual environment outside the mask range based on the target visibility.
[0121] After determining the virtual environment outside the mask range and the corresponding target visibility, the virtual environment screen corresponding to the virtual environment outside the mask range can be displayed based on the target visibility. In a possible implementation, the visibility of the virtual environment outside the mask range can be adjusted by adjusting the transparency of the virtual mask.
[0122] At the same time, the virtual environment image corresponding to the virtual environment within the mask range remains unchanged.
[0123] In this embodiment, during the process of dropping virtual props, the expected drop position and distance information can be displayed, and the corresponding prop range can be determined according to different drop heights, and the prop range can be displayed during the pre-throwing process to prompt the user, so that the user can drop the virtual props to the appropriate position according to the prompt information, thereby improving the accuracy of virtual prop drop.
[0124] In this embodiment, the visibility of the virtual environment outside the virtual mask is determined according to the different attack states of the first virtual object, so that the visibility is adjusted to avoid the virtual mask from restricting the field of view of the first virtual object too much, thereby avoiding a significant impact on the attack hit rate of the first virtual object and ensuring the fairness of the game.
[0125] In a possible case, the first virtual object can be hidden from the second virtual object outside the virtual mask only when the first virtual object and the second virtual object are within the prop action range of the virtual prop.
[0126] Please refer to Figure 8 , which shows a flow chart of a method for controlling a virtual object provided by another exemplary embodiment of the present application. Figure 1 The first terminal 110 or the second terminal 130 in the implementation environment shown or other terminals in the implementation environment are used as examples for description. The method includes the following steps.
[0127] Step 801: In response to a virtual prop placement operation, control a first virtual object to place the virtual prop in a virtual environment.
[0128] The implementation of this step can refer to the above step 201, which will not be described in detail in this embodiment.
[0129] Step 802: When the first virtual object is located within the prop action range of the virtual prop, a virtual mask is displayed around the first virtual object.
[0130] When a virtual mask is displayed around the first virtual object, the first virtual object is invisible to second virtual objects outside the mask range. In a possible implementation, the first virtual object is invisible to all second virtual objects outside the mask range, and the second virtual objects and the first virtual object belong to different camps.
[0131] In another possible implementation, since the first virtual object has a stealth effect with respect to the second virtual object through the virtual prop, the first virtual object can be hidden from the field of vision of the second virtual object only when both the first virtual object and the second virtual object are located within the prop action range of the virtual prop.
[0132] Optionally, when the second virtual object is outside the mask range and within the action range of the prop, the first virtual object is invisible to the second virtual object, and the second virtual object and the first virtual object belong to different camps.
[0133] That is, when the second virtual object is outside the mask range and within the range of the prop, the first virtual object is hidden by the second virtual object; and if the second virtual object is outside the mask range and outside the range of the prop, the virtual prop cannot take effect on the second virtual object. Therefore, the first virtual object cannot be hidden by the second virtual object. At this time, the second virtual object can observe the first virtual object, or the second virtual object can observe the virtual mask displayed around the first virtual object.
[0134] When the first virtual object is invisible to the second virtual object, in order to improve the concealment effect of the first virtual object on the second virtual object, the corresponding position indicator of the first virtual object is hidden at the same time. The position indicator refers to an indicator in the map display control used to indicate the position information of the virtual object. When the first virtual object moves within a preset distance around the second virtual object, the position indicator corresponding to the first virtual object will be displayed in the map display control of the client corresponding to the second virtual object, thereby prompting the corresponding position of the first virtual object.
[0135] When the first virtual object is invisible to the second virtual object, when the first virtual object moves within a preset distance around the second virtual object, the direction indicator corresponding to the first virtual object is not displayed in the map display control of the client corresponding to the second virtual object, thereby further improving the concealment effect of the first virtual object.
[0136] Indicatively, Fig. 9 As shown, the map display control 901 of the client corresponding to the second virtual object displays the orientation indicator 902 of the first virtual object. When a virtual mask is displayed around the first virtual object and the second virtual object is outside the mask range and within the prop range, the orientation indicator 902 stops being displayed.
[0137] Step 803: When the second virtual object moves into the mask range, a prompt message is displayed, where the prompt message is used to indicate that the second virtual object has entered the mask range and the position where the second virtual object has entered.
[0138] After the virtual mask is displayed around the first virtual object, since the first virtual object is invisible only to the second virtual object outside the mask range, and if the second virtual object is within the mask range, the first virtual object is visible to the second virtual object, that is, if the second virtual object moves from outside the mask range to within the mask range, the first virtual object will be exposed to the field of view of the second virtual object. When the second virtual object moves into the mask range of the first virtual object, the first virtual object may not be able to perceive the second virtual object. For example, when the second virtual object enters the mask range behind the first virtual object, the first virtual object cannot perceive the second virtual object entering the mask range, and the probability of being attacked is high.
[0139] Therefore, in a possible implementation, when the second virtual object moves into the mask range, the terminal will display a prompt message, wherein the prompt message may be a text prompt, a graphic prompt, or a special effect prompt, etc., which is not limited in this embodiment. For example, when it is a text prompt, it may display that the second virtual object enters the mask range and the angle of entry; when it is a special effect prompt, the virtual mask may flash and the area where the second virtual object enters may be highlighted.
[0140] Indicatively, Fig.10 As shown, when the second virtual object 1001 enters the mask range, the virtual mask 1002 flashes, and the area entered by the second virtual object 1001 is highlighted.
[0141] In another possible implementation, after the second virtual object enters the mask range, the prompt information may not be displayed in time. Therefore, when the second virtual object approaches the virtual mask, the warning information may be displayed in advance, wherein the warning information may include the position information of the second virtual object. Optionally, when the second virtual object enters the target range, the warning information is displayed, wherein the target range is larger than the mask range. When the second virtual object enters the mask range, the display of the warning information is stopped, and the prompt information is displayed to prompt the first virtual object that the second virtual object has entered the mask range.
[0142] It should be noted that, when the second virtual object enters the mask range, the second virtual object within the mask range is also invisible to other second virtual objects outside the mask range.
[0143] In addition to the case where the second virtual object enters the mask range, there may also be a case where a third virtual object enters the mask range, where the third virtual object belongs to the same camp as the first virtual object. When the third virtual object enters the mask range, the third virtual object is also invisible to the second virtual object outside the mask range.
[0144] Step 804: display the virtual environment picture based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask.
[0145] When the virtual environment image corresponding to the virtual environment outside the mask range is displayed, the visibility of the virtual environment outside the mask range is reduced. In this case, the third virtual object belonging to the same camp as the first virtual object may be outside the mask range, which will affect the first virtual object's observation field of the third virtual object and affect the team battle.
[0146] Therefore, in a possible implementation, when the third virtual object is outside the mask range and within the effect range of the prop, the third virtual object is visible to the first virtual object, and the first virtual object and the third virtual object belong to the same camp. That is, when the third virtual object is outside the mask range, the visibility of the third virtual object to the first virtual object remains unchanged and remains at the original visibility, and only the visibility of the virtual environment except the third virtual object is reduced.
[0147] Step 805: In response to the virtual prop being destroyed, stop displaying the virtual mask.
[0148] During the normal effect period of the virtual prop, a virtual mask is displayed around the first virtual object within the prop's effect range. To prevent the virtual mask from being displayed continuously and causing the first virtual object's invisibility effect to last too long, in this embodiment, a destructible mechanism is provided for the virtual prop. When the virtual prop is destroyed, the virtual mask around the first virtual object stops being displayed.
[0149] Optionally, the virtual props can be attacked by the virtual object using virtual props such as firearms. When the attack value reaches the target value, it is determined that the virtual props are destroyed and the virtual mask around the first virtual object stops being displayed. Alternatively, the virtual props can be interfered with by other interfering virtual props. When the virtual props are within the prop action range of the interfering virtual props, it is determined that the virtual props are destroyed and the virtual mask around the first virtual object stops being displayed.
[0150] Step 806 , in response to the virtual props being in the virtual environment for a duration that reaches the props duration, stop displaying the virtual mask.
[0151] In another possible implementation, the virtual props may not be destroyed for a long time. To prevent the virtual props from being effective for too long, the virtual props are set with a prop duration. When the virtual props are placed in the virtual environment and the duration reaches the prop duration, the virtual mask around the first virtual object stops being displayed. For example, the prop duration is 3 minutes. When the virtual props are placed in the virtual environment for 3 minutes, the virtual mask stops being displayed.
[0152] In this embodiment, when a second virtual object enters the mask range, the user will be prompted through prompt information that the second virtual object has entered the virtual mask, and at the same time the entry direction will be prompted, so that the user can perceive the direction information of the second virtual object in time.
[0153] In this embodiment, when the virtual prop is destroyed or the prop duration is reached, the display of the virtual mask can be stopped to prevent the first virtual object from being hidden for a long time and affecting the game.
[0154] In combination with the above embodiments, in an illustrative example, the control process of the virtual object is as follows: Fig.11 shown.
[0155] Step 1101, display the target skill control.
[0156] Step 1102, determine whether a trigger operation for the target skill control is received, if so, execute step 1103, if not, execute step 1101.
[0157] Step 1103, display the prop usage controls.
[0158] Step 1104 , determining whether a trigger operation for using a prop control is received, if so, executing step 1105 , if not, executing step 1103 .
[0159] Step 1105: Switch the first virtual object to a pre-delivery state.
[0160] Step 1106, determine whether the triggering operation of the prop usage control is completed, if so, execute step 1107, if not, execute step 1105.
[0161] Step 1107: Control the first virtual object to place virtual props in the virtual environment.
[0162] Step 1108 , determining whether the first virtual object is within the range of the prop, if so, executing step 1109 , if not, executing step 1107 .
[0163] Step 1109: display a virtual mask around the first virtual object, so that the first virtual object is invisible to the second virtual object outside the mask range.
[0164] Step 1110 , determining whether the second virtual object enters the virtual mask, if so, executing step 1111 , if not, executing step 1109 .
[0165] Step 1111, displaying the second virtual object.
[0166] Step 1112, determine whether the prop duration has been reached, if so, execute step 1113.
[0167] Step 1113, stop displaying the virtual mask.
[0168] Fig.12 : is a structural block diagram of a virtual object control device provided by an exemplary embodiment of the present application, the device comprising:
[0169] The control module 1201 is used for controlling the first virtual object to place the virtual prop in the virtual environment in response to the placing operation of the virtual prop;
[0170] A first display module 1202 is configured to display a virtual mask around the first virtual object when the first virtual object is within the prop action range of the virtual prop, so that the first virtual object is invisible to a second virtual object outside the mask range of the virtual mask;
[0171] The second display module 1203 is used to display the virtual environment picture based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask, and the virtual mask is used to reduce the visibility of the virtual environment outside the mask range.
[0172] Optionally, the second display module 1203 includes:
[0173] A first determining unit, configured to determine the virtual environment outside the mask range based on a position of the first virtual object in the virtual environment and a mask range of the virtual mask;
[0174] A second determining unit, configured to determine the visibility of an object in the virtual environment outside the mask range;
[0175] A first display unit is configured to display a virtual environment picture corresponding to the virtual environment outside the mask range based on the target visibility.
[0176] Optionally, the second determining unit is further configured to:
[0177] When the first virtual object is in a non-attack state, determining the target visibility to be a first visibility;
[0178] When the first virtual object is in an attacking state, the target visibility is determined to be a second visibility, wherein the first visibility is lower than the second visibility.
[0179] Optionally, the virtual mask is a spherical mask with the first virtual object as the center and a target radius.
[0180] Optionally, the first determining unit is further configured to:
[0181] Determine the target radius based on the distance between the first virtual object and the virtual prop, wherein the distance is positively correlated with the target radius;
[0182] Determining the mask range based on the position of the first virtual object in the virtual environment and the target radius;
[0183] Based on the mask range, the virtual environment outside the mask range is determined.
[0184] Optionally, the control module 1201 includes:
[0185] A second display unit, for displaying a target skill control;
[0186] A third display unit, configured to display a prop delivery control in response to a triggering operation on the target skill control;
[0187] a fourth display unit, configured to display an estimated placement position and distance information in response to a triggering operation on the prop placement control, wherein the distance information is used to indicate a distance between the estimated placement position on the virtual ground and the first virtual object;
[0188] A control unit is used to control the first virtual object to drop the virtual prop in the virtual environment in response to the end of the triggering operation on the prop dropping control.
[0189] Optionally, the device further comprises:
[0190] A first determination module is used to determine the prop action range of the virtual prop based on the placement height corresponding to the estimated placement position, and the placement height is positively correlated with the prop action range;
[0191] The third display module is used to display the scope of the prop in the virtual environment screen and / or in the map display control.
[0192] Optionally, the device further comprises:
[0193] a fourth display module, for displaying height adjustment controls;
[0194] An adjustment module is used to adjust the delivery height in response to a triggering operation on the height adjustment control.
[0195] Optionally, the first display module 1202 is further used for:
[0196] When the first virtual object is located within the prop action range of the virtual prop and there is no virtual obstacle between the first virtual object and the virtual prop, the virtual mask is displayed around the first virtual object.
[0197] Optionally, when the second virtual object is outside the mask range and within the effective range of the prop, the first virtual object is invisible to the second virtual object, and the second virtual object and the first virtual object belong to different camps.
[0198] Optionally, when the third virtual object is outside the mask range and within the effective range of the prop, the third virtual object is visible to the first virtual object, and the first virtual object and the third virtual object belong to the same camp.
[0199] Optionally, the device further comprises:
[0200] The fifth display module is used to display prompt information when the second virtual object moves into the mask range, wherein the prompt information is used to indicate that the second virtual object enters the mask range and the entry position of the second virtual object.
[0201] Optionally, the device further comprises:
[0202] A first stopping module, configured to stop displaying the virtual mask in response to the virtual prop being destroyed;
[0203] or,
[0204] The second stopping module is configured to stop displaying the virtual mask in response to the virtual prop being in the virtual environment for a time period that reaches the prop duration.
[0205] To sum up, in the embodiments of the present application, after the virtual object is controlled to place virtual props in the virtual environment, if the virtual object's virtual props are within the prop action range, a virtual mask can be displayed around the virtual object, thereby making the virtual object invisible to other virtual objects in the virtual environment, that is, achieving a stealth effect; and after the virtual mask is displayed around the virtual object, the virtual mask can reduce the visibility of the virtual object to the virtual environment outside the mask range, that is, there are certain restrictions on the observation field of the virtual object, so that when the virtual object attacks in the stealth state, the attack hit rate of the virtual object can be effectively controlled to avoid the situation where the hit rate is too high during the attack, which helps to improve the fairness of the game.
[0206] Please refer to Fig.13 , which shows a block diagram of a terminal 1300 provided by an exemplary embodiment of the present application. The terminal 1300 may be a portable mobile terminal, such as a smart phone, a tablet computer, a Moving Picture Experts Group Audio Layer III (MP3) player, or a Moving Picture Experts Group Audio Layer IV (MP4) player. The terminal 1300 may also be referred to as a user device, a portable terminal, or other names.
[0207] Typically, the terminal 1300 includes a processor 1301 and a memory 1302 .
[0208] The processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1301 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 1301 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1301 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1301 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.
[0209] The memory 1302 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1302 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1302 is used to store at least one instruction, which is used to be executed by the processor 1301 to implement the method provided in the embodiment of the present application.
[0210] In some embodiments, the terminal 1300 may further include: a peripheral device interface 1303 and at least one peripheral device. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1304, a touch display screen 1305, a camera component 1306, an audio circuit 1307, a positioning component 1308 and a power supply 1309.
[0211] The peripheral device interface 1303 may be used to connect at least one peripheral device related to input / output (I / O) to the processor 1301 and the memory 1302. In some embodiments, the processor 1301, the memory 1302, and the peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0212] The radio frequency circuit 1304 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 1304 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1304 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 1304 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a wireless fidelity (Wireless Fidelity, WiFi) network. In some embodiments, the radio frequency circuit 1304 may also include circuits related to near field communication (NFC), which is not limited in this application.
[0213] The touch display screen 1305 is used to display a user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 1305 also has the ability to collect touch signals on the surface or above the surface of the touch display screen 1305. The touch signal may be input to the processor 1301 as a control signal for processing. The touch display screen 1305 is used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the touch display screen 1305 may be one, and the front panel of the terminal 1300 is set; in other embodiments, the touch display screen 1305 may be at least two, which are respectively set on different surfaces of the terminal 1300 or are folded; in still other embodiments, the touch display screen 1305 may be a flexible display screen, which is set on a curved surface or a folded surface of the terminal 1300. Even, the touch display screen 1305 may also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The touch display screen 1305 may be prepared using materials such as a liquid crystal display (LCD) and an organic light-emitting diode (OLED).
[0214] The camera assembly 1306 is used to capture images or videos. Optionally, the camera assembly 1306 includes a front camera and a rear camera. Typically, the front camera is used to realize video calls or selfies, and the rear camera is used to realize the shooting of photos or videos. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, and a wide-angle camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, and the fusion of the main camera and the wide-angle camera to realize panoramic shooting and virtual reality (VR) shooting functions. In some embodiments, the camera assembly 1306 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0215] The audio circuit 1307 is used to provide an audio interface between the user and the terminal 1300. The audio circuit 1307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1301 for processing, or input them into the radio frequency circuit 1304 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1300. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1301 or the radio frequency circuit 1304 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1307 may also include a headphone jack.
[0216] The positioning component 1308 is used to locate the current geographical location of the terminal 1300 to implement navigation or location-based service (LBS). The positioning component 1308 can be a positioning component based on the Global Positioning System (GPS), Beidou system or Galileo system.
[0217] The power supply 1309 is used to power various components in the terminal 1300. The power supply 1309 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1309 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0218] In some embodiments, the terminal 1300 further includes one or more sensors 1310 , including but not limited to: an acceleration sensor 1311 , a gyroscope sensor 1312 , a pressure sensor 1313 , a fingerprint sensor 1314 , an optical sensor 1315 , and a proximity sensor 1316 .
[0219] The acceleration sensor 1311 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 1300. For example, the acceleration sensor 1311 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1301 can control the touch display screen 1305 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1311. The acceleration sensor 1311 can also be used for collecting game or user motion data.
[0220] The gyro sensor 1312 can detect the body direction and rotation angle of the terminal 1300, and the gyro sensor 1312 can cooperate with the acceleration sensor 1311 to collect the user's 3D actions on the terminal 1300. The processor 1301 can implement the following functions based on the data collected by the gyro sensor 1312: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0221] The pressure sensor 1313 can be set on the side frame of the terminal 1300 and / or the lower layer of the touch display screen 1305. When the pressure sensor 1313 is set on the side frame of the terminal 1300, it can detect the user's holding signal of the terminal 1300, and perform left and right hand recognition or shortcut operation according to the holding signal. When the pressure sensor 1313 is set on the lower layer of the touch display screen 1305, the operability control on the UI interface can be controlled according to the user's pressure operation on the touch display screen 1305. The operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0222] The fingerprint sensor 1314 is used to collect the user's fingerprint to identify the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1301 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1314 can be set on the front, back, or side of the terminal 1300. When a physical button or a manufacturer logo is set on the terminal 1300, the fingerprint sensor 1314 can be integrated with the physical button or the manufacturer logo.
[0223] The optical sensor 1315 is used to collect the ambient light intensity. In one embodiment, the processor 1301 can control the display brightness of the touch display screen 1305 according to the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 1305 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 1305 is reduced. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 according to the ambient light intensity collected by the optical sensor 1315.
[0224] The proximity sensor 1316, also called a distance sensor, is usually arranged on the front of the terminal 1300. The proximity sensor 1316 is used to collect the distance between the user and the front of the terminal 1300. In one embodiment, when the proximity sensor 1316 detects that the distance between the user and the front of the terminal 1300 is gradually decreasing, the processor 1301 controls the touch display screen 1305 to switch from the screen-on state to the screen-off state; when the proximity sensor 1316 detects that the distance between the user and the front of the terminal 1300 is gradually increasing, the processor 1301 controls the touch display screen 1305 to switch from the screen-off state to the screen-on state.
[0225] Those skilled in the art will understand that Fig.13 The structure shown in the figure does not constitute a limitation on the terminal 1300, and the terminal 1300 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0226] An embodiment of the present application further provides a computer-readable storage medium, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the control method of the virtual object described in the above embodiments.
[0227] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal executes the control method of a virtual object provided in various optional implementations of the above aspects.
[0228] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented with hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication media include any media that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that a general or special-purpose computer can access.
[0229] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling a virtual object, characterized in that: The method comprises: In response to a placing operation on a virtual prop, controlling the first virtual object to place the virtual prop in a virtual environment; When the first virtual object is within the prop action range of the virtual prop, a virtual mask is displayed around the first virtual object, the first virtual object is invisible to a second virtual object outside the mask range of the virtual mask, and the first virtual object is visible to the second virtual object within the virtual mask range, wherein when the first virtual object is within the prop action range, the virtual mask moves with the first virtual object; Based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask, a virtual environment picture is displayed, and the virtual mask is used to reduce the visibility of the virtual environment outside the mask range.
2. The method according to claim 1, characterized in that The displaying of the virtual environment picture based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask includes: Determine the virtual environment outside the mask range based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask; Determining visibility of objects in the virtual environment outside the mask range; A virtual environment picture corresponding to the virtual environment outside the mask range is displayed based on the target visibility.
3. The method according to claim 2, characterized in that The determining the visibility of the target in the virtual environment outside the mask range comprises: When the first virtual object is in a non-attack state, determining the target visibility to be a first visibility; When the first virtual object is in an attacking state, the target visibility is determined to be a second visibility, wherein the first visibility is lower than the second visibility.
4. The method according to claim 2, characterized in that: The virtual mask is a spherical mask with the first virtual object as the center and the target radius; The determining the virtual environment outside the mask range based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask includes: Determine the target radius based on the distance between the first virtual object and the virtual prop, wherein the distance is positively correlated with the target radius; Determining the mask range based on the position of the first virtual object in the virtual environment and the target radius; Based on the mask range, the virtual environment outside the mask range is determined.
5. The method according to any one of claims 1 to 4, characterized in that: In response to the operation of placing the virtual prop, controlling the first virtual object to place the virtual prop in the virtual environment includes: Display target skill controls; In response to a triggering operation on the target skill control, displaying a prop delivery control; In response to a triggering operation on the prop placement control, an estimated placement position and distance information are displayed, wherein the distance information is used to indicate the distance between the estimated placement position on the virtual ground projection position and the first virtual object; In response to the triggering operation of the prop-dropping control being completed, the first virtual object is controlled to drop the virtual prop in the virtual environment.
6. The method according to claim 5, characterized in that After displaying the estimated delivery location and distance information, the method further includes: Determining the prop action range of the virtual prop based on the placement height corresponding to the estimated placement position, wherein the placement height is positively correlated with the prop action range; The effective range of the prop is displayed in the virtual environment screen and / or in the map display control.
7. The method according to claim 6, characterized in that After displaying the scope of the item in the virtual environment screen and / or in the map display control, the method further includes: Display height adjustment controls; In response to a triggering operation on the height adjustment control, the delivery height is adjusted.
8. The method according to any one of claims 1 to 4, characterized in that: The step of displaying a virtual mask around the first virtual object when the first virtual object is within the prop action range of the virtual prop comprises: When the first virtual object is located within the prop action range of the virtual prop and there is no virtual obstacle between the first virtual object and the virtual prop, the virtual mask is displayed around the first virtual object.
9. The method according to any one of claims 1 to 4, characterized in that: When the second virtual object is outside the mask range and within the effective range of the prop, the first virtual object is invisible to the second virtual object, and the second virtual object and the first virtual object belong to different camps; When the third virtual object is outside the mask range and within the effective range of the prop, the third virtual object is visible to the first virtual object, and the first virtual object and the third virtual object belong to the same camp.
10. The method according to any one of claims 1 to 4, characterized in that: After displaying the virtual mask around the first virtual object, the method further includes: When the second virtual object moves into the mask range, prompt information is displayed, where the prompt information is used to indicate that the second virtual object has entered the mask range and the entry position of the second virtual object.
11. The method according to any one of claims 1 to 4, characterized in that: After displaying the virtual mask around the first virtual object, the method further includes: In response to the virtual prop being destroyed, stopping displaying the virtual mask; or, In response to the virtual prop being in the virtual environment for a time period that reaches the prop duration, the virtual mask stops being displayed.
12. A control device for a virtual object, characterized in that: The device comprises: A control module, configured to control the first virtual object to place the virtual prop in the virtual environment in response to a placing operation on the virtual prop; a first display module, configured to display a virtual mask around the first virtual object when the first virtual object is within the prop action range of the virtual prop, wherein the first virtual object is invisible to a second virtual object outside the mask range of the virtual mask, and the first virtual object is visible to the second virtual object within the virtual mask range, wherein when the first virtual object is within the prop action range, the virtual mask moves with the first virtual object; The second display module is used to display a virtual environment picture based on the position of the first virtual object in the virtual environment and the mask range of the virtual mask, wherein the virtual mask is used to reduce the visibility of the virtual environment outside the mask range.
13. A terminal, characterized in that: The terminal includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the control method of the virtual object as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the control method of the virtual object as described in any one of claims 1 to 11.
15. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of the terminal reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the control method of the virtual object as described in any one of claims 1 to 11.
Citation Information
Patent Citations
Virtual prop control method and device, equipment and computer readable storage medium
CN112057864A