Control method and device for improving aiming precision of virtual object and electronic equipment

By displaying the user's visible aiming and adsorption judgment areas in shooting mobile games, and determining whether to fire based on the intersection of these areas, the problem of the user being unable to accurately hit the target is solved, and the game experience and aiming accuracy are improved.

CN119565137APending Publication Date: 2025-03-07上海游卡网络技术有限公司
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411946552.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

In the prior art, when users play shooting mobile games, due to the limited screen display content and the difficult range of auxiliary aiming, users cannot accurately hit the desired shooting target, affecting the gaming experience.

Method used

By displaying the user-visible targeting determination area and the adsorption determination area in the terminal, and when the virtual object manipulated by the user meets the firing condition, it is determined whether the targeting determination area intersects or is tangent to the adsorption determination area, thereby performing the corresponding firing operation.

Benefits of technology

Improve the aiming accuracy of the user-controlled virtual objects, avoiding the situation where the bullet cannot hit the desired target, thereby improving user experience and stickiness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119565137A_ABST
    Figure CN119565137A_ABST
Patent Text Reader

Abstract

The invention discloses a control method for improving the aiming precision of a virtual object, and the method comprises the following steps: displaying a first virtual object and at least two keys in a terminal, the first virtual object being a virtual object operated by a user; the first key is a key for controlling a virtual object operated by a user to move; the second key is a key for controlling a virtual object operated by a user to open a mirror and fire; when the virtual object operated by the user meets the firing condition, the second key is pressed down, and the first virtual object is switched to be in the aiming state; when the first virtual object is in the aiming state, displaying an aiming judgment area visible to a user and an indication point in the terminal; if a second virtual object capable of being shot exists in the current screen, the second virtual object is a virtual object shot by the user, an adsorption judgment area and at least one striking point of the second virtual object are displayed in the terminal; and judging whether the aiming judgment area is intersected or tangent with the adsorption judgment area or not, and then executing corresponding actions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a control method, a device and an electronic device for improving the aiming accuracy of a virtual object. Background Art

[0002] With the rapid development of computer technology, games have gradually become a very common form of entertainment in people's daily lives. At present, there are many PVE shooting mobile games on the market. The so-called PVE refers to Player Versus Environment, that is, in the game, the user challenges the hostile target controlled by the game program; the so-called shooting game, that is, the user controls a virtual object, and the electronic game mainly simulates shooting and gun battles; the so-called mobile game, that is, the game running on mobile devices (such as mobile phones, tablets, smart watches, etc.).

[0003] One-key aiming and firing is a prior art, such as Chinese patent application CN110339562A, which discloses a control method, device, terminal and storage medium for virtual objects. It adopts the aiming means usually adopted by PVE-type shooting mobile games, that is, the aiming and firing buttons are bound to a virtual key position, and usually with auxiliary aiming to improve the user's operating efficiency. The so-called aiming refers to opening the aiming scope of the virtual weapon to aim at the object desired to be shot; the so-called firing refers to the virtual weapon starting to shoot; the so-called auxiliary aiming is an auxiliary means for the game program to assist the user to automatically move the crosshairs to the enemy unit. Usually, the judgment range of auxiliary aiming is not directly displayed on the user's mobile phone screen. The above is a control scheme for improving aiming accuracy in the prior art using PVE design mobile games as an example. Since the current one-key aiming and firing scheme will control the virtual object to fire immediately after the user presses the corresponding button, the user may not be able to accurately aim at the target and fire, resulting in a waste of bullets and a vacuum period such as changing bullets. Therefore, the game experience is deteriorated and user stickiness is affected.

[0004] In view of the above background, if the existing technology is used, when the one-touch aiming and firing button is pressed and the firing conditions are met (such as the firearm is not being reloaded and there are bullets in the firearm, etc.), the fire will be fired immediately. Due to the limitations of the assisted aiming judgment, the target of the bullet may not be what the user expects; and due to the limitations of the screen display, there may be no target that can be shot in the screen, resulting in the bullet not hitting any target, thereby affecting the user's normal gaming experience. Summary of the invention

[0005] In view of the above problems, the present invention provides a control method, device and electronic device for improving the aiming accuracy of virtual objects, which are used to solve the problem that the user cannot accurately hit the desired shooting target when the screen display content is limited and the range of auxiliary aiming is difficult to determine.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] A first aspect of the present invention provides a control method for improving the aiming accuracy of a virtual object, comprising the following steps:

[0008] Displaying a first virtual object and at least two buttons in the terminal, wherein the first virtual object is a virtual object manipulated by a user; the first button is a button for controlling the movement of the virtual object manipulated by the user; and the second button is a button for controlling the aiming and firing of the virtual object manipulated by the user;

[0009] When the virtual object manipulated by the user meets the firing condition, the second button is pressed, and the first virtual object switches to the aiming state;

[0010] When the first virtual object is in the aiming state, the terminal displays the aiming determination area and the indication point visible to the user; if there is a second virtual object that can be shot in the current screen, the second virtual object is the virtual object that the user shoots, and the terminal displays the adsorption determination area and the striking point of the second virtual object, and the striking point includes at least one;

[0011] Determine whether the aiming determination area intersects or is tangent to the adsorption determination area and then perform the corresponding action.

[0012] In a possible implementation manner, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing a corresponding action includes:

[0013] If the aiming determination area is not tangent to or intersects with the adsorption determination area, the first virtual object does not perform any operation.

[0014] In a possible implementation manner, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing a corresponding action includes:

[0015] If the aiming determination area is tangent to or intersects with the adsorption determination area, the distance between the indication point and the strike point is further calculated, and the strike point closest to the indication point is selected. The indication point is then moved to the strike point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

[0016] In a possible implementation manner, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing a corresponding action includes:

[0017] If the aiming determination area is tangent to or intersects with the adsorption determination areas of multiple second virtual objects, the distances between the indication point and all the striking points in each adsorption determination area that is tangent to or intersects with the aiming determination area are calculated respectively, and the striking point closest to the indication point is selected. The indication point is then moved to the striking point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

[0018] In a possible implementation manner, the adsorption determination area is an area covering the second virtual object.

[0019] In a possible implementation manner, the impact point is determined according to a damage point value of the second virtual object.

[0020] A second aspect of the present invention provides a control device for improving the aiming accuracy of a virtual object, comprising a display module, a state switching module and a judgment execution module.

[0021] A display module, used to display a first virtual object and at least two buttons, wherein the first virtual object is a virtual object manipulated by a user; the first button is a button for controlling the movement of the virtual object manipulated by the user; and the second button is a button for controlling the aiming and firing of the virtual object manipulated by the user;

[0022] A state switching module, used for pressing a second button when the virtual object manipulated by the user meets the firing condition, so that the first virtual object switches to the aiming state;

[0023] The display module is further used to display the aiming determination area and the indication point visible to the user when the first virtual object is in the aiming state; if there is a second virtual object that can be shot in the current screen, the second virtual object is the virtual object that the user shoots, and the adsorption determination area and the striking point of the second virtual object are displayed in the terminal, and the striking point includes at least one;

[0024] Determine whether the aiming determination area intersects or is tangent to the adsorption determination area and then perform the corresponding action.

[0025] In a possible implementation manner, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing a corresponding action includes:

[0026] If the aiming determination area is not tangent to or intersects with the adsorption determination area, the first virtual object does not perform any operation.

[0027] In a possible implementation manner, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing a corresponding action includes:

[0028] If the aiming determination area is tangent to or intersects with the adsorption determination area, the distance between the indication point and the strike point is further calculated, and the strike point closest to the indication point is selected. The indication point is then moved to the strike point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

[0029] In a possible implementation manner, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing a corresponding action includes:

[0030] If the aiming determination area is tangent to or intersects with the adsorption determination areas of multiple second virtual objects, the distances between the indication point and all the striking points in each adsorption determination area that is tangent to or intersects with the aiming determination area are calculated respectively, and the striking point closest to the indication point is selected. The indication point is then moved to the striking point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

[0031] In a possible implementation manner, the adsorption determination area is an area covering the second virtual object.

[0032] In a possible implementation manner, the impact point is determined according to a damage point value of the second virtual object.

[0033] A third aspect of the present invention provides an electronic device, comprising one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and the at least one program code is loaded and executed by the one or more processors to implement the operations performed by the control method for improving the aiming accuracy of a virtual object as described in any of the above items.

[0034] A fourth aspect of the present invention provides a storage medium, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed by the control method for improving the aiming accuracy of a virtual object as described in any of the above items.

[0035] The use of the present invention has the following beneficial effects: in the process of the player operating the virtual object, by adding the user-visible aiming determination area, adsorption determination area and the calculation logic of whether to trigger firing, the user will not fire when the aiming determination area and the adsorption determination area are not tangent or intersecting, which can prevent the bullet shot by the user from hitting the desired target. At the same time, the user can make the aiming determination area tangent or intersecting with the adsorption determination area by moving the virtual object or rotating the viewing angle, so that the bullet hits the desired target. In this way, the aiming accuracy of the user's control of the virtual object can be greatly improved, thereby improving the user experience and further improving user stickiness. Assisted aiming is a way to simplify user operations. Visualizing the aiming determination area and the adsorption determination area can better allow players to enjoy the help of assisted aiming, thereby enhancing the sense of control. From the perspective of user experience, it is also a solution that meets user expectations. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A flowchart of a control method for improving the aiming accuracy of a virtual object according to an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of a display interface in a specific application example;

[0038] Figure 3 A schematic diagram of a display interface when a first virtual object is switched to an aiming state in a specific application example;

[0039] Figure 4 A schematic diagram of a first virtual object determining whether to fire when a second virtual object is included in a specific application example;

[0040] Figure 5 A schematic diagram of a first virtual object firing at a second virtual object in a specific application example;

[0041] Figure 6 A schematic diagram of a first virtual object determining whether to fire when two second virtual objects are included in a specific application example;

[0042] Figure 7 This is a principle block diagram of a control device for improving the aiming accuracy of a virtual object according to an embodiment of the present invention;

[0043] Figure 8 The figure is a principle block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] In order to allow those skilled in the art to more intuitively understand the technical content of the embodiments of the present invention, the following will further explain it again using a PVE shooting mobile game as an example: In current mobile game products with PVE shooting as the core gameplay, the character played by the user (the first virtual object) is allowed to be controlled by the user by operating the virtual buttons displayed on the mobile phone. When the character played by the user (the first virtual object) is limited to the judgment range of the operating screen display content or the auxiliary aiming, the character played by the user (the first virtual object) will not be able to accurately shoot at the desired target (the aiming accuracy decreases).

[0046] Reference Figure 1 , which is a control method for improving the aiming accuracy of a virtual object according to an embodiment of the present invention, comprises the following steps:

[0047] S101, displaying a first virtual object and at least two buttons in a terminal, wherein the first virtual object is a virtual object manipulated by a user; the first button is a button for controlling movement of the virtual object manipulated by the user; and the second button is a button for controlling aiming and firing of the virtual object manipulated by the user;

[0048] S102, when the virtual object manipulated by the user meets the firing condition, the second button is pressed, and the first virtual object switches to the aiming state;

[0049] S103, when the first virtual object is in an aiming state, a user-visible aiming determination area and an indication point are displayed in the terminal; if there is a shootable second virtual object in the current screen, the second virtual object is a virtual object that the user shoots, an adsorption determination area and a striking point of the second virtual object are displayed in the terminal, and the striking point includes at least one;

[0050] S104, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing corresponding actions.

[0051] In a specific application example, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing corresponding actions may include:

[0052] If the aiming determination area is not tangent to or intersects with the adsorption determination area, the first virtual object does not perform any operation.

[0053] If the aiming determination area is tangent to or intersects with the adsorption determination area, the distance between the indication point and the strike point is further calculated, and the strike point closest to the indication point is selected. The indication point is then moved to the strike point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

[0054] If the aiming determination area is tangent to or intersects with the adsorption determination areas of multiple second virtual objects, the distance between the indication point and all the striking points in each adsorption determination area that is tangent to or intersects with the aiming determination area is calculated respectively, and the striking point closest to the indication point is selected, and then the indication point is moved to the striking point closest to the indication point, and at the same time, the first virtual object triggers the firing operation to shoot.

[0055] In the specific application examples, the game is used as an example to illustrate. The general principle of the control processing scheme is as follows: for the target game, the game screen of the target game can be displayed through a display device. For ease of understanding, in the following description, the user's operating character in the PVE shooting mobile game is used to replace the virtual object, the buttons in the PVE shooting mobile game are used to replace the control command input method for the virtual object, and the enemy target (i.e., the shooting target) of the user's operating character in the PVE shooting game is used to replace the calculation object of the virtual object's aiming accuracy. Figure 2 As shown, the display device 1 of the terminal may be a mobile phone screen of the user, and the display device 1 may include multiple buttons and virtual objects. Figure 2 Only two virtual objects and two buttons are displayed as an illustration, where the first virtual object 2 is a virtual object manipulated by the user; the second virtual object 5 is a virtual object that the user can shoot; the first button 3 is a button for controlling the movement of the virtual object operated by the user, and no matter what subsequent situation occurs, the first button 3 always remains available; the second button 4 is a button for controlling the virtual object operated by the user to aim and fire.

[0056] like Figure 3 As shown, when the user presses the second button 4, if the first virtual object 2 meets the firing condition (the firing condition can be implemented by a specific design. In this application embodiment, the firing condition is set as the virtual object 2 is not in the reloading state and there are bullets in the firearm), it will be processed by the client as an "aiming state". The expression of this state on the interface can be implemented by a specific design; in this application embodiment, the "aiming state" of the virtual object 2 is manifested as raising the weapon in hand and pointing forward.

[0057] In the embodiment of the present application, the range of the adsorption determination area 9 is determined by the volume of the attackable target, that is, the adsorption determination area 9 is the area covering the second virtual object 5, and the adsorption determination area must be larger than the volume of the target. The specific shape can be determined by the designer, but the edge of the area and the edge of the attackable target need to be greater than a value, which is also determined by the designer. The larger the value, the larger the adsorption determination area, and the easier it is for the user to use the adsorption function. Taking the extreme case as an example, when the volume of the attackable target is so large that it fills the entire user screen, the entire screen is within the adsorption determination area, and the user presses the one-button open-scope fire button to immediately adsorb to the nearest strike point.

[0058] In the embodiment of the present application, the strike point is determined according to the damage point value of the second virtual object. The interaction between the user and the area where the strike point is located will result in different results that will affect the number of strike points. Taking a shooting game as an example, attacking the enemy's head range causes 200 points of damage, attacking the body range causes 150 points of damage, and attacking the leg range causes 100 points of damage, then there are three strike points in the head, body, and leg ranges. The strike point is at the center of the continuous area where it is located. For a continuous area, it refers to an area that is not interrupted by other strike points. Taking a shooting game as an example, if you shoot the enemy's left and right hands, you will receive 100 points of damage, but in the user's screen display, the enemy's left and right hands are separated by the enemy's body, then the areas where the strike points of the left and right hands are located are not continuous, so each left and right hand needs a strike point; the calculation method of the center is determined by the designer, for example, the center of the circumscribed circle of the continuous area where the strike point is located (i.e., the circumcenter) is used as the strike point.

[0059] In addition, a firing direction indicator point 7 will appear in the center of the screen, and the expression of the indicator point 7 on the interface can be exerted by a specific design; in this application embodiment, it is expressed as a crosshair in a PVE shooting mobile game. A circle of user-visible aiming judgment area 8 will appear around the indicator point 7, and the expression of this area on the interface can be exerted by a specific design; in this application embodiment, it is expressed as a dotted circle. At the same time, a circle of user-visible adsorption judgment area 9 will appear around the virtual object 5, and the expression of this area on the interface can be exerted by a specific design; in this application embodiment, it is expressed as a dotted circle. Within the adsorption judgment area 9, user-invisible striking points 12, 11, and 10 will appear on the head, abdomen, and knees of the virtual object 5, respectively; at this time, the client device performs parameter calculations, that is, whether the aiming judgment area 8 is tangent to or intersects with the adsorption judgment area 9; in this application embodiment, the following logical relationship is proposed:

[0060] (1) If the aiming determination area 8 and the adsorption determination area 9 are not tangent or intersecting, the virtual object 2 will not perform any operation, such as Figure 3 This is the case shown.

[0061] (2) If the aiming determination area 8 is tangent to or intersects with the adsorption determination area 9, the client device will start to calculate the distance between the indication point 7 and the striking points 10, 11, and 12, and then the indication point 7 will move to the nearest striking point. The aiming determination area 8 and the adsorption determination area 9 will simultaneously become invisible to the user, and the virtual object 2 will trigger the firing operation.

[0062] When in logical relationship (1), the user can operate the first virtual object 2 by moving the first button 3 and the second button 4 or rotating the viewing angle (the rotating viewing angle can be exerted by a specific design. In this application embodiment, the condition is set as the blank area without buttons in the screen when the user slides) to move the direction in which the virtual object faces to control the movement of the aiming determination area 8. When the aiming determination area 8 intersects with the adsorption determination area 9, the client device determines that it is in logical relationship (2). When in logical relationship (2), because the aiming determination area 8 and the adsorption determination area 9 are invisible to the user, the logical relationship (1) will not be achieved through user operation until the user stops pressing the second button 4 or the first virtual object 2 no longer meets the firing condition.

[0063] like Figure 4 As shown, when the user achieves the tangency between the aiming determination area 8 and the adsorption determination area 9 in the above logical relationship (2) through operation, the client device will start to calculate the distance between the indication point 7 and the striking points 10, 11, 12. The distance is represented by line segments 13, 14, 15 that are invisible to the user in this embodiment of the application. Then, the client device will calculate the shortest line segment among the line segments 13, 14, 15, as shown in FIG. Figure 4 As shown, assuming that line segment 13 is the shortest of the three line segments, the indication point 7 will move to the striking point 10 of the corresponding line segment, and at the same time, the virtual object 2 triggers the firing operation. In the embodiment of the present application, it is manifested as the first virtual object 2 firing at the knee of the second virtual object 5.

[0064] like Figure 5 As shown, when the user reaches the above-mentioned determination condition, the first virtual object 2 fires at the knee of the second virtual object 5. When the first virtual object 2 triggers the firing operation, the aiming determination area 8 and the adsorption determination area 9 become invisible to the user at the same time.

[0065] like Figure 6 As shown in FIG. 1 , it is a special case that when two second virtual objects appear at the same time, that is, the aiming determination area 8 is tangent to or intersects with the adsorption determination area 91 and the adsorption determination area 92 at the same time, the client device will calculate the shortest line segment among the line segments 131, 141, 151, 132, 142, and 152, as shown in FIG. Figure 6As shown, assuming that line segment 142 is the shortest of the three line segments, the indication point 7 will move to the striking point 112 of the corresponding line segment, and at the same time, the virtual object 2 triggers the firing operation. In the embodiment of the present application, it is manifested as the first virtual object 2 firing at the waist of the second virtual object 52.

[0066] In the process of the player operating the virtual object, the above settings add the user-visible aiming determination area, adsorption determination area, and the calculation logic of whether to trigger firing, so that the user will not fire when the aiming determination area and the adsorption determination area are not tangent or intersecting, which can prevent the bullet shot by the user from hitting the desired target. At the same time, the user can make the aiming determination area tangent or intersecting with the adsorption determination area by moving the virtual object or rotating the viewing angle, so that the bullet hits the desired target. With this operation, the aiming accuracy of the user's control of the virtual object can be greatly improved, thereby improving the user experience and further improving user stickiness. Assisted aiming is a way to simplify user operations. Visualizing the aiming determination area and the adsorption determination area can better allow players to enjoy the help of assisted aiming, thereby enhancing the sense of control. From the perspective of user experience, it is a solution that meets user expectations.

[0067] For method embodiments, see Figure 7 , shown is a control device for improving the aiming accuracy of a virtual object according to an embodiment of the present invention, comprising a display module 201, a state switching module 202 and a judgment execution module 203, wherein the display module 201 is used to display a first virtual object and at least two buttons, wherein the first virtual object is a virtual object manipulated by a user; the first button is a button for controlling the movement of the virtual object manipulated by the user; the second button is a button for controlling the virtual object manipulated by the user to aim and fire; the state switching module 202 is used to press the second button when the virtual object manipulated by the user meets the firing condition, and the first virtual object switches to the aiming state; the display module 201 is further used to display a user-visible aiming determination area and an indication point when the first virtual object is in the aiming state; if there is a shootable second virtual object in the current screen, the second virtual object is the virtual object to be shot by the user, and the adsorption determination area and the striking point of the second virtual object are displayed in the terminal, and the striking point includes at least one; the judgment execution module 203 is used to determine whether the aiming determination area intersects or is tangent to the adsorption determination area and then perform a corresponding action.

[0068] In a specific application example, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing corresponding actions may include:

[0069] If the aiming determination area is not tangent to or intersects with the adsorption determination area, the first virtual object does not perform any operation.

[0070] If the aiming determination area is tangent to or intersects with the adsorption determination area, the distance between the indication point and the strike point is further calculated, and the strike point closest to the indication point is selected. The indication point is then moved to the strike point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

[0071] If the aiming determination area is tangent to or intersects with the adsorption determination areas of multiple second virtual objects, the distances between the indication point and all the striking points in each adsorption determination area that is tangent to or intersects with the aiming determination area are calculated respectively, and the striking point closest to the indication point is selected. The indication point is then moved to the striking point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

[0072] The specific implementation details in the device are the same as those described in the method and will not be repeated here.

[0073] Reference Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. Figure 8 The electronic device 300 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The electronic device 300 is presented in the form of a general-purpose computing device. The components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, a bus connecting different device components (including a storage unit 320 and a processing unit 310), an I / O interface 330, a display unit 340, etc. Among them, the storage unit stores a program code, and the program code can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the above-mentioned control method section for improving the aiming accuracy of virtual objects. For example, the processing unit 310 may perform the following steps:

[0074] S101, displaying a first virtual object and at least two buttons in a terminal, wherein the first virtual object is a virtual object manipulated by a user; the first button is a button for controlling movement of the virtual object manipulated by the user; and the second button is a button for controlling aiming and firing of the virtual object manipulated by the user;

[0075] S102, when the virtual object manipulated by the user meets the firing condition, the second button is pressed, and the first virtual object switches to the aiming state;

[0076] S103, when the first virtual object is in an aiming state, a user-visible aiming determination area and an indication point are displayed in the terminal; if there is a shootable second virtual object in the current screen, the second virtual object is a virtual object that the user shoots, an adsorption determination area and a striking point of the second virtual object are displayed in the terminal, and the striking point includes at least one;

[0077] S104, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing corresponding actions.

[0078] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 3201 and / or a cache storage unit 3202, and may further include a read-only storage unit (ROM) 3203. The storage unit 320 may also include a program / utility having a set (at least one) of program modules, the program modules including but not limited to: an operating device, one or more application programs, other program modules, and program data, each of which or some combination may include the implementation of a network environment.

[0079] The bus may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0080] The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device 300, and / or any device that enables the electronic device 300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface. Furthermore, the electronic device 300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network (Internet)) through a network adapter 350. The network adapter 350 may communicate with other modules of the electronic device 300 through a bus. The electronic device 300 displays the information to be displayed through the display unit 340. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices.

[0081] Through the description of the above implementation modes, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation mode of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, or a network device, etc.) to execute the control method for improving the aiming accuracy of a virtual object according to the present invention. When the computer program is executed by a data processing device, the computer-readable storage medium is enabled to implement the above method of the present invention, that is, it includes the following steps:

[0082] S101, displaying a first virtual object and at least two buttons in a terminal, wherein the first virtual object is a virtual object manipulated by a user; the first button is a button for controlling movement of the virtual object manipulated by the user; and the second button is a button for controlling aiming and firing of the virtual object manipulated by the user;

[0083] S102, when the virtual object manipulated by the user meets the firing condition, the second button is pressed, and the first virtual object switches to the aiming state;

[0084] S103, when the first virtual object is in an aiming state, a user-visible aiming determination area and an indication point are displayed in the terminal; if there is a shootable second virtual object in the current screen, the second virtual object is a virtual object that the user shoots, an adsorption determination area and a striking point of the second virtual object are displayed in the terminal, and the striking point includes at least one;

[0085] S104, determining whether the aiming determination area intersects or is tangent to the adsorption determination area and then performing corresponding actions.

[0086] The computer program may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, device or component, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0087] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution device, device, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.

[0088] The program code for performing the operation of the embodiments of the present invention may be written in any combination of one or more programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0089] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0090] It should be understood that the exemplary embodiments described herein are illustrative rather than restrictive. Although one or more embodiments of the present invention have been described in conjunction with the accompanying drawings, it should be understood by those skilled in the art that various changes in form and detail may be made without departing from the spirit and scope of the present invention as defined by the appended claims.

Claims

1. A control method for improving the aiming accuracy of a virtual object, characterized in that: The following steps are involved: Displaying a first virtual object and at least two buttons in the terminal, wherein the first virtual object is a virtual object manipulated by a user; the first button is a button for controlling the movement of the virtual object manipulated by the user; and the second button is a button for controlling the aiming and firing of the virtual object manipulated by the user; When the virtual object manipulated by the user meets the firing condition, the second button is pressed, and the first virtual object switches to the aiming state; When the first virtual object is in the aiming state, the terminal displays the aiming determination area and the indication point visible to the user; if there is a second virtual object that can be shot in the current screen, the second virtual object is the virtual object that the user shoots, and the terminal displays the adsorption determination area and the striking point of the second virtual object, and the striking point includes at least one; Determine whether the aiming determination area intersects or is tangent to the adsorption determination area and then perform the corresponding action.

2. The control method for improving the virtual object aiming accuracy according to claim 1, characterized in that: The corresponding actions are performed after judging whether the aiming determination area intersects or is tangent to the adsorption determination area, including: If the aiming determination area is not tangent to or intersects with the adsorption determination area, the first virtual object does not perform any operation.

3. The control method for improving the virtual object aiming accuracy according to claim 1, characterized in that: The corresponding actions are performed after judging whether the aiming determination area intersects or is tangent to the adsorption determination area, including: If the aiming determination area is tangent to or intersects with the adsorption determination area, the distance between the indication point and the strike point is further calculated, and the strike point closest to the indication point is selected. The indication point is then moved to the strike point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

4. The control method for improving the virtual object aiming accuracy according to claim 1, characterized in that: The corresponding actions are performed after judging whether the aiming determination area intersects or is tangent to the adsorption determination area, including: If the aiming determination area is tangent to or intersects with the adsorption determination areas of multiple second virtual objects, the distances between the indication point and all the striking points in each adsorption determination area that is tangent to or intersects with the aiming determination area are calculated respectively, and the striking point closest to the indication point is selected. The indication point is then moved to the striking point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

5. The control method for improving the virtual object aiming accuracy according to any one of claims 1 to 4, characterized in that: The adsorption determination area is an area covering the second virtual object.

6. The control method for improving the virtual object aiming accuracy according to any one of claims 1 to 4, characterized in that: The striking point is determined according to the damage point value of the second virtual object.

7. A control device for improving the aiming accuracy of a virtual object, characterized in that: It includes a display module, a state switching module and a judgment execution module. A display module, used to display a first virtual object and at least two buttons, wherein the first virtual object is a virtual object manipulated by a user; the first button is a button for controlling the movement of the virtual object manipulated by the user; and the second button is a button for controlling the aiming and firing of the virtual object manipulated by the user; A state switching module, used for pressing a second button when the virtual object manipulated by the user meets the firing condition, so that the first virtual object switches to the aiming state; The display module is further used to display the aiming determination area and the indication point visible to the user when the first virtual object is in the aiming state; if there is a second virtual object that can be shot in the current screen, the second virtual object is the virtual object that the user shoots, and the adsorption determination area and the striking point of the second virtual object are displayed in the terminal, and the striking point includes at least one; Determine whether the aiming determination area intersects or is tangent to the adsorption determination area and then perform the corresponding action.

8. The control device for improving the virtual object aiming accuracy according to claim 7, characterized in that: The corresponding actions are performed after judging whether the aiming determination area intersects or is tangent to the adsorption determination area, including: If the aiming determination area is not tangent to or intersects with the adsorption determination area, the first virtual object does not perform any operation.

9. The control device for improving the virtual object aiming accuracy according to claim 7, characterized in that: The corresponding actions are performed after judging whether the aiming determination area intersects or is tangent to the adsorption determination area, including: If the aiming determination area is tangent to or intersects with the adsorption determination area, the distance between the indication point and the strike point is further calculated, and the strike point closest to the indication point is selected. The indication point is then moved to the strike point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

10. The control device for improving the virtual object aiming accuracy according to claim 7, characterized in that: The corresponding actions are performed after judging whether the aiming determination area intersects or is tangent to the adsorption determination area, including: If the aiming determination area is tangent to or intersects with the adsorption determination areas of multiple second virtual objects, the distances between the indication point and all the striking points in each adsorption determination area that is tangent to or intersects with the aiming determination area are calculated respectively, and the striking point closest to the indication point is selected. The indication point is then moved to the striking point closest to the indication point, and at the same time, the first virtual object triggers a firing operation to shoot.

11. The control device for improving the virtual object aiming accuracy according to any one of claims 7 to 10, characterized in that: The adsorption determination area is an area covering the second virtual object.

12. The control device for improving the virtual object aiming accuracy according to any one of claims 7 to 10, characterized in that: The striking point is determined according to the damage point value of the second virtual object.

13. An electronic device, characterized in that: The terminal includes one or more processors and one or more memories, and at least one program code is stored in the one or more memories. The at least one program code is loaded and executed by the one or more processors to implement the operations performed by the control method for improving the aiming accuracy of virtual objects as described in any one of claims 1 to 6.

14. A storage medium, characterized in that: The storage medium stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed by the control method for improving the aiming accuracy of a virtual object as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Virtual object control method and device, terminal and storage medium

    CN110339562A