Shooting aiming method, device, equipment and storage medium in game
By displaying the prompt area of the preset part of the target virtual object in the shooting game and using the drag operation to adjust the aiming position, the problem of cumbersome aiming operations in the shooting game is solved, and the aiming accuracy and game experience are improved.
Patent Information
- Application Number
- CN202110222645.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-02-25
AI Technical Summary
In shooting games, aiming by adjusting the position of the crosshair is cumbersome, resulting in low aiming accuracy and affecting the game experience.
Display the prompt area of the preset position of the target virtual object in the game graphical user interface, and adjust the aiming position by dragging the touch point of the shooting control to the prompt area to achieve precise adjustment of the aiming position.
It simplifies the adjustment operation of the aiming position, improves the shooting aiming accuracy and game experience, and reduces the dependence on the crosshair adjustment.
Smart Images

Figure CN112957729B
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a shooting aiming method, device, equipment and storage medium in a game. Background Art
[0002] With the rapid development of electronic devices, especially mobile electronic devices, more and more applications are installed and run on electronic devices. In order to enrich people's lives, game applications are becoming more and more abundant, and game functions are becoming more and more.
[0003] Among them, shooting games are the mainstream online games and are more popular among most users. In shooting games, in order to ensure shooting accuracy, it is usually necessary to aim at the target first and then shoot. At present, in most shooting games, during the game operation, if you need to aim at a preset part of the target virtual object, that is, a specific part, you usually need to manually adjust the crosshairs to adjust the aiming position before shooting.
[0004] However, simply by adjusting the crosshairs, the crosshairs position of the virtual shooting tool may shift as the shooting progresses, making it difficult for gamers to accurately aim at the preset position. This is not only too cumbersome to operate, but also seriously affects the game experience of gamers. Summary of the invention
[0005] The purpose of this application is to provide a shooting aiming method, device, equipment and storage medium in the game to address the deficiencies in the above-mentioned prior art, so as to solve the problem of complicated operation in the shooting aiming process and improve the gaming experience of game players.
[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0007] In a first aspect, an embodiment of the present application provides a shooting aiming method in a game, wherein a graphical user interface of the game at least displays a game scene and a shooting control, and the game includes a controlled virtual object located in the game scene; the method comprises:
[0008] In response to the controlled virtual object aiming at the target virtual object, displaying a prompt area of a preset part of the target virtual object in the graphical user interface;
[0009] In response to the touch point of the drag operation on the shooting control being moved to the prompt area, the aiming position is adjusted to the preset position;
[0010] The controlled virtual object is controlled to perform a shooting operation based on the adjusted aiming position using a preset virtual shooting tool.
[0011] Optionally, the displaying of a prompt area of a preset part of the target virtual object in the graphical user interface includes:
[0012] Detecting the initial relative position of the preset part and the aiming position;
[0013] According to the initial relative position, the prompt area is displayed at a position in the graphical user interface that has a corresponding position relationship with the shooting control.
[0014] Optionally, the initial relative position includes: a relative distance and a relative direction; the corresponding position relationship is: the direction is the same as the relative direction, and there is a preset proportional relationship between the distance and the relative distance.
[0015] Optionally, after displaying the prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting control according to the initial relative position, the method further includes:
[0016] Detecting the dynamic relative position of the preset part and the aiming position;
[0017] According to the dynamic relative position, the prompt area is controlled to move relative to the shooting control.
[0018] Optionally, if there are multiple shooting controls displayed on the graphical user interface, displaying the prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting control according to the initial relative position includes:
[0019] According to the initial relative position, the prompt area is displayed at a position in the graphical user interface that has a corresponding position relationship with the preset shooting control; wherein the preset shooting control is a shooting control displayed in a preset display area in the graphical user interface among multiple shooting controls;
[0020] Correspondingly, the dragging operation is a dragging operation acting on the preset shooting control.
[0021] Optionally, if there are multiple shooting controls displayed on the graphical user interface, displaying the prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting control according to the initial relative position includes:
[0022] According to the initial relative position, displaying a prompt area at a position where each shooting control has a corresponding position relationship in the graphical user interface;
[0023] Correspondingly, the dragging operation acts on any shooting control among the multiple shooting controls.
[0024] Optionally, before the touch point in response to the drag operation on the shooting control moves to the prompt area and the aiming position is adjusted to the preset position, the method further includes:
[0025] Detecting whether a target area where the shooting control is located overlaps with the prompt area under the drag operation;
[0026] If there is an area overlap, it is determined that the touch point of the drag operation moves to the prompt area.
[0027] Optionally, the detecting whether a target area where the shooting control is located overlaps with the prompt area under the dragging operation includes:
[0028] Detecting whether the touch point of the drag operation coincides with a preset position of the prompt area;
[0029] If they overlap, it is determined that the target area and the prompt area overlap.
[0030] Optionally, the preset position is: a center position, an edge position, or a position of a preset detection frame.
[0031] Optionally, the detecting whether a target area where the shooting control is located overlaps with the prompt area under the dragging operation includes:
[0032] Detecting whether the target area covers all or part of the preset area of the prompt area;
[0033] If so, it is determined that the target area and the prompt area overlap.
[0034] Optionally, the method further includes:
[0035] If there is no area overlap, and a release operation continuous with the drag operation is detected, the shooting control is controlled to return to a preset display area on the graphical user interface.
[0036] Optionally, controlling the controlled virtual object to use a preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position includes:
[0037] When the touch point of the drag operation moves to the prompt area, detecting whether a release operation continuous with the drag operation is received;
[0038] If the release operation is detected, the controlled virtual object is controlled to use the preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position.
[0039] In a second aspect, an embodiment of the present application further provides a shooting aiming device in a game, wherein a graphical user interface of the game at least displays a game scene and a shooting control, and the game includes a controlled virtual object located in the game scene; the device comprises:
[0040] A display module, configured to display a prompt area of a preset part of the target virtual object in the graphical user interface in response to the controlled virtual object aiming at the target virtual object;
[0041] An adjustment module, for responding to a touch point of a drag operation on the shooting control moving to the prompt area, and adjusting the aiming position to the preset position;
[0042] The shooting control module is used to control the controlled virtual object to perform a shooting operation based on the adjusted aiming position using a preset virtual shooting tool.
[0043] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the shooting aiming method in any game provided in the first aspect is implemented.
[0044] In a fourth aspect, an embodiment of the present application further provides a storage medium having a computer program stored thereon, and when the computer program is read and executed, the shooting aiming method in any game provided in the first aspect above is implemented.
[0045] The beneficial effects of this application are:
[0046] In the shooting aiming method, device, equipment and storage medium in the game provided by the present application, a prompt area of a preset part of the target virtual object can be displayed in a graphical user interface in response to the controlled virtual object aiming at the target virtual object, and the touch point of the drag operation acting on the shooting control moves to the prompt area, and the aiming position is adjusted to the preset part, so as to control the controlled virtual object to use the preset virtual shooting tool to perform the shooting operation based on the adjusted aiming position. In this method, the shooting control can be dragged toward the prompt area by the drag operation of the shooting control, and the aiming position is adjusted to the preset part when the touch point of the drag operation moves to the prompt area, so that the adjustment of the aiming position is realized, and the aiming position does not need to be adjusted by adjusting the position of the crosshairs, which simplifies the adjustment operation of the aiming position. Moreover, since the prompt area is the prompt area of the preset part of the target virtual object, it is convenient for the player user to accurately and quickly adjust the aiming position to the preset part, so that accurate aiming of the preset part is realized, and the shooting aiming accuracy is improved, thereby improving the game experience of the game player. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 A schematic diagram of a flow chart of a shooting aiming method in a game provided by an embodiment of the present application;
[0049] Figure 2 A schematic diagram of an interface for displaying a prompt area in a game provided in an embodiment of the present application;
[0050] Figure 3 A schematic diagram of an interface for adjusting the aiming position in a game provided in an embodiment of the present application;
[0051] Figure 4 A flow chart of a method for displaying a prompt area in a shooting aiming method in a game provided by an embodiment of the present application;
[0052] Figure 5 A flow chart of a method for dynamically displaying a prompt area in a shooting aiming method in a game provided by an embodiment of the present application;
[0053] Figure 6 A schematic diagram of an interface of a dynamic display area in a game provided by an embodiment of the present application;
[0054] Figure 7 A schematic diagram of an interface of a dynamic display area when there are two shooting controls in a game provided by an embodiment of the present application Figure 1 ;
[0055] Figure 8 A schematic diagram of an interface of a dynamic display area when there are two shooting controls in a game provided by an embodiment of the present application Figure 2 ;
[0056] Fig. 9 A flow chart of a method for detecting a touch point of a drag operation moving to a prompt area in a shooting aiming method in a game provided by an embodiment of the present application;
[0057] Fig.10 A flow chart of a method for controlling a shooting operation in a shooting aiming method in a game provided by an embodiment of the present application;
[0058] Fig.11 A schematic diagram of a shooting aiming device in a game provided by an embodiment of the present application;
[0059] Fig.12A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0061] It should be noted that the terms "including" and "having" in various parts of the embodiments of the present application and the accompanying drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products or devices.
[0062] The method flow charts involved in the following embodiments of the present application are only exemplary and do not necessarily include all the contents and steps, nor do they have to be executed in the order described. For example, some steps can be decomposed, and these steps can be combined or partially combined. Therefore, the actual execution order can be changed according to the actual situation.
[0063] The functional modules in the block diagrams designed in the following embodiments of the present application are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software, or in one or more physical modules or integrated circuits, or in different networks and / or processors and / or microcontrollers.
[0064] The shooting aiming method in the game provided by the present application is illustrated by multiple examples as follows.
[0065] Figure 1A flowchart of a shooting aiming method in a game provided by an embodiment of the present application, the shooting aiming method in the game can be implemented by executing corresponding software codes by a processing device such as a processor in an electronic device installed with a game application or a client, or can be implemented by executing corresponding software codes by the processor of the electronic device and combined with other hardware entities. Among them, the electronic device can be, for example, a device of any form such as a desktop computer, a notebook, a personal digital assistant, a smart phone, a tablet computer and a game console. Specifically, the processor of the electronic device can generate a graphical user interface (Graphical User Interface, GUI) by running the game application and rendering it on the display device of the electronic device, also known as a graphical interactive interface or a graphical user interface. In the process of generating the graphical user interface, the game scene and corresponding controls can also be rendered on the graphical user interface. Among them, the graphical interactive interface is, for example, rendered and generated when the game application is running on the electronic device, and the user can operate on the graphical interactive interface of the display device of the electronic device to control the virtual object, thereby playing the game.
[0066] The shooting aiming method in the game can be applied to an electronic device that can present a graphical user interface. The graphical user interface of the game at least displays a game scene and a shooting control, and the game scene contains some or all of the controlled virtual objects.
[0067] The game application targeted by the embodiment of the present application is a shooting game, and the game scene is a shooting game scene. The shooting game can be a first-person shooting game or a third-person shooting game. If it is a first-person shooting game, the game scene may include some controlled virtual objects, such as the hands of the controlled virtual objects. If it is a third-person shooting game, the game scene may include all controlled virtual objects.
[0068] The controlled virtual object is a virtual object controlled by a touch operation input by a user in a game scene. The controlled virtual object may be, for example, a controlled virtual character or other types of virtual shooting subjects. The game scene may also include a virtual shooting tool operated by the controlled virtual object, such as a virtual gun, a virtual bow and arrow, or any other type of virtual shooting tool.
[0069] Figure 1 As shown, the shooting aiming method in the game may include:
[0070] S101. In response to a controlled virtual object aiming at a target virtual object, a prompt area of a preset part of the target virtual object is displayed in a graphical user interface.
[0071] The controlled virtual object aims at the target virtual object, which means that the distance between the aiming sight of the virtual shooting tool of the controlled virtual object and the target virtual object in the graphical user interface is less than a distance threshold.
[0072] In a possible implementation, the virtual object in the game scene can be aimed at by the crosshairs of the virtual shooting tool held by the controlled virtual object, and the aiming ray of the virtual shooting tool and the positional relationship between the virtual objects in the game scene are detected to determine that the first virtual object on the aiming ray is the target virtual object.
[0073] If the controlled virtual object aims at the target virtual object, a prompt area of a preset part of the target virtual object can be displayed on the image user interface. In response to the controlled virtual object aiming at the target virtual object, a crosshair can also be displayed at the aiming position of the target virtual object on the image user interface to indicate the aiming position.
[0074] The preset part may be, for example, a preset target shooting part on the target virtual object, such as a part with the highest degree of damage, or a part that meets other damage conditions, or other designated parts.
[0075] In an example scenario, if the target virtual object is a virtual object with health in the game scene, such as a virtual character of the opposing team or other shooting objects with life, the preset part can be, for example, the head of the target virtual object, or other specified parts, such as hands, legs, stomach, etc.
[0076] In another example scenario, if the target virtual object is a virtual object with health in the game scene, but the first part of the target virtual object, such as the head, is targeted and has protective gear, then the second part of the target virtual object, such as the leg, can be used as the preset part. The first part can be the part with the highest damage degree, and the second part can be the part with a lower damage degree than the first part but higher than other parts.
[0077] In another example scenario, if the target virtual object is a virtual object without health points in the game scene, such as a virtual moving target, the preset position may be a preset target position on the target virtual object, such as the bull's eye position of the virtual moving target.
[0078] The following explains the display of the prompt area through a graphical user interface in an example scenario. Figure 2 This is a schematic diagram of an interface for displaying a prompt area in a game provided by an embodiment of the present application. Figure 2As shown, a game scene and a shooting control 11 are displayed on a graphical user interface, and a controlled virtual object 12 and at least one other virtual object are present in the game scene. In response to the controlled virtual object 12 in the game scene aiming at a target virtual object 13, a prompt area 14 may be displayed on the graphical user interface, and the prompt area 14 may be a prompt area of a preset part of the target virtual object 13, such as a prompt area of a head area. The prompt area 14 may also display indication information of the preset part, such as an icon of the preset part. Figure 2 In the example shown, a head icon may be displayed in the prompt area 14 .
[0079] In response to the controlled virtual object 12 aiming at the target virtual object 13 , a crosshair 15 may also be displayed at the aiming position on the target virtual object 13 .
[0080] In actual application scenarios, the prompt area 14 can be displayed at any position in the graphical user interface, or at a position displayed in the graphical user interface based on the relative position relationship between the preset part and the aiming position.
[0081] S102, in response to the dragging operation on the shooting control, the touch point moves to the prompt area, and the aiming position is adjusted to the preset position.
[0082] After the prompt area is displayed, the player user can drag the shooting control toward the prompt area through a drag operation. When the touch point of the drag operation moves to the prompt area, the aiming position is adjusted to the preset position, thereby adjusting the aiming position of the controlled virtual object, so that the controlled virtual object aims at the preset position of the target virtual object.
[0083] The aiming position may be the position of the aiming crosshairs of the virtual shooting tool in the graphical user interface when the controlled virtual object aims at the target virtual object.
[0084] Adjusting the aiming position to the preset position may include: adjusting the position of the aiming crosshairs in the graphical user interface to the preset position, and adjusting the aiming position by adjusting the position of the aiming crosshairs on the graphical user interface, so that the user can promptly know that the aiming position is adjusted to the preset position.
[0085] Continue to explain with examples. Figure 3A schematic diagram of an interface for adjusting the aiming position in a game provided by an embodiment of the present application. If a user inputs a drag operation through the shooting control 11 to move the shooting control 11 to the prompt area 14, when the touch point of the drag operation moves to the prompt area 14, in response to the touch point of the drag operation moving to the prompt area 14, an overlapped area 16 is displayed on the graphical user interface to indicate the overlap of the shooting control 11 and the prompt area 14; at the same time, in response to the drag operation moving to the prompt area 14, the aiming position can be adjusted to the preset position, and the crosshair 15 displayed at the aiming position can be moved to the preset position to indicate that the aiming position has been adjusted to the preset position.
[0086] It should be noted that the above Figure 2 and Figure 3 The example of displaying a shooting control in a graphical user interface is used for explanation. In actual application scenarios, in order to facilitate the operation of the player user, the graphical user interface may display multiple shooting controls, such as two shooting controls. If multiple shooting controls are displayed in the graphical user interface, the dragging operation may be a touch operation acting on any shooting control, or a touch operation acting on a shooting control at a preset position.
[0087] S103: Control the controlled virtual object to use a preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position.
[0088] When the aiming position is adjusted to the preset position, the controlled virtual object can be directly controlled to use the preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position; or when the aiming position is adjusted to the preset position, if a shooting touch operation is detected, the controlled virtual object can be controlled to use the preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position. The preset virtual shooting tool is a virtual shooting tool held by the controlled virtual object.
[0089] The shooting aiming method in the game provided by the embodiment can respond to the controlled virtual object aiming at the target virtual object, display a prompt area of the preset part of the target virtual object in the graphical user interface, respond to the touch point of the drag operation acting on the shooting control moving to the prompt area, adjust the aiming position to the preset part, thereby controlling the controlled virtual object to use the preset virtual shooting tool to perform the shooting operation based on the adjusted aiming position. In this method, the shooting control can be dragged toward the prompt area by the drag operation of the shooting control, and when the touch point of the drag operation moves to the prompt area, the aiming position is adjusted to the preset part, thereby realizing the adjustment of the aiming position, without adjusting the aiming position by adjusting the crosshair position, simplifying the adjustment operation of the aiming position, and because the prompt area is the prompt area of the preset part of the target virtual object, it is convenient for the player user to accurately and quickly adjust the aiming position to the preset part, realizing accurate aiming of the preset part, improving the shooting aiming accuracy, and thus improving the game experience of the game player.
[0090] Based on the shooting aiming method in the above game, the embodiment of the present application can also provide an implementation example of displaying a prompt area in the shooting aiming method in the game. Figure 4 A flowchart of a method for displaying a prompt area in a shooting aiming method in a game provided by an embodiment of the present application. Figure 4 As shown, the prompt area for displaying the preset part of the target virtual object in the graphical user interface in the above S101 may include:
[0091] S401, detecting the initial relative position between the preset part and the aiming position.
[0092] S402. Display the prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting control according to the initial relative position.
[0093] The shooting aiming method in the game provided by this embodiment can detect the initial relative position of the preset part and the aiming position, and based on the initial relative position, display the prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting control. This can enable the player user to more accurately know the relative position of the aiming position and the preset part, so that the player user can more accurately drag the shooting control to the prompt area, thereby achieving precise adjustment of the aiming position.
[0094] Optionally, the initial relative position includes: a relative distance and a relative direction; the corresponding position relationship is: the direction is the same as the relative direction, and there is a preset proportional relationship between the distance and the relative distance.
[0095] That is to say, the relative distance and relative direction between the preset position and the aiming position determine the relative position between the shooting control 11 and the prompt area 14 in the graphical user interface, thereby determining the display position of the prompt area 14 on the graphical user interface.
[0096] For example, if the preset part is located at the upper left of the aiming position, the prompt area on the graphical user interface can be displayed at the upper left of the shooting control, and the distance between the prompt area and the shooting control can be: the distance between the preset part and the aiming position, or a distance that has a preset proportional relationship with the distance between the preset part and the aiming.
[0097] In another possible implementation, the embodiment of the present application may also provide an implementation method for dynamically displaying the prompt area based on the above-mentioned display prompt area. Figure 5 This is a flow chart of a method for dynamically displaying a prompt area in a shooting aiming method in a game provided by an embodiment of the present application. Figure 5 As shown, after displaying the prompt area at a position corresponding to the shooting control in the graphical user interface according to the initial relative position in the above S402, the method may further include:
[0098] S501, detecting the dynamic relative position of the preset part and the aiming position.
[0099] In a specific implementation, the dynamic relative position may be detected according to a preset detection frequency, or may be detected in real time.
[0100] S502: According to the dynamic relative position, control the prompt area to move relative to the shooting control.
[0101] In a specific implementation, the target display position in the graphical user interface that has a corresponding position relationship with the shooting control can be determined based on the dynamic relative position and the corresponding position relationship, and the prompt area can be controlled to move from the initial display position to the target display position to achieve the movement of the prompt area relative to the shooting control.
[0102] The following is an explanation of the dynamic display of the prompt area in conjunction with the graphical user interface in the example scene. Figure 6 This is a schematic diagram of an interface of a dynamic display area in a game provided by an embodiment of the present application. Figure 6 As shown, assuming that the target virtual object 13 is facing the controlled virtual object 12, at the first moment, if the controlled virtual object is aimed at the right shoulder of the target virtual object 12, then according to the relative positions of the right shoulder and the head, the prompt area 14 is displayed at the upper right corner of the shooting control 11 in the graphical user interface, wherein the distance between the prompt area 14 and the shooting control 11 can have a preset proportional relationship with the distance between the right shoulder and the head.
[0103] Due to dynamic factors such as the movement of the virtual object or the recoil of the gun, the controlled virtual object 12 aims at the left shoulder of the target virtual object 12 at the second moment. Then, according to the relative position of the left shoulder and the head, the prompt area 14 is displayed at the upper left corner of the shooting control 11 in the graphic user interface, that is, the prompt area 14 is moved from the upper right corner to the upper left corner for display. The distance between the prompt area 14 and the shooting control 11 may have a preset proportional relationship with the distance between the left shoulder and the head.
[0104] The shooting aiming method in the game provided by this embodiment can detect the dynamic relative position of the preset part and the aiming position, and control the prompt area to move relative to the shooting control according to the dynamic relative position, thereby realizing dynamic adjustment of the prompt area. No matter whether the aiming position and / or the preset part are changed due to dynamic factors such as the movement of the virtual object or the recoil of the virtual shooting tool, the dynamic adjustment of the prompt area and the subsequent dragging operation of dragging the shooting control to the prompt area can realize precise adjustment of the aiming position, effectively ensure the aiming accuracy of the target virtual object aiming at the preset position, and realize shooting accuracy.
[0105] In a possible implementation, the shooting controls displayed on the graphical user interface may be multiple, for example, multiple. It may also be one. If the number of shooting controls displayed on the graphical user interface is multiple, S402 in the above method displays a prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting control according to the initial relative position, which may include:
[0106] According to the initial relative position, the prompt area is displayed at a position in the graphical user interface that has a corresponding position relationship with the preset shooting control; wherein the preset shooting control is a shooting control displayed in a preset display area in the graphical user interface among multiple shooting controls;
[0107] Correspondingly, the dragging operation is a dragging operation acting on the preset shooting control.
[0108] The preset display area may be a preset area or a display area configured by a user.
[0109] For example, two shooting controls, such as a left shooting control and a right shooting control, may be displayed on the graphical user interface. Figure 7 A schematic diagram of an interface of a dynamic display area when there are two shooting controls in a game provided by an embodiment of the present application Figure 1 .like Figure 7As shown, the graphical user interface may display, for example, a left shooting control 111 and a right shooting control 112. In response to the controlled virtual object 12 aiming at the target virtual object 13, a prompt area 14 may be displayed at a position where the right shooting control has a corresponding positional relationship based on a preset part such as the head and the relative position of the aiming position.
[0110] The method provided in this embodiment can, by displaying the prompt area at a position that has a corresponding position relationship with a preset shooting control when there are multiple shooting controls, meet the user's shooting aiming needs and improve the shooting aiming accuracy while ensuring a simple interface and convenient operation.
[0111] In another possible implementation, if there are multiple shooting controls displayed on the graphical user interface, the method S402 in which a prompt area is displayed at a position in the graphical user interface that has a corresponding position relationship with the shooting control according to the initial relative position may include:
[0112] According to the initial relative position, a prompt area is displayed at a position where each shooting control has a corresponding position relationship in the graphical user interface;
[0113] Accordingly, the dragging operation acts on any shooting control among the multiple shooting controls.
[0114] For example, two shooting controls, such as a left shooting control and a right shooting control, may be displayed on the graphical user interface. Figure 8 A schematic diagram of an interface of a dynamic display area when there are two shooting controls in a game provided by an embodiment of the present application Figure 2 .like Figure 8 As shown, the graphical user interface may display, for example, a left shooting control 111 and a right shooting control 112. In response to the controlled virtual object 12 aiming at the target virtual object 13, a prompt area 14 may be displayed at positions where the left shooting control 111 and the right shooting control 112 have a corresponding positional relationship based on a preset part such as the head and the relative position of the aiming position.
[0115] The method provided in this embodiment can improve the shooting aiming accuracy by displaying the prompt area at a position corresponding to each shooting control when there are multiple shooting controls, thereby meeting the shooting aiming needs of users with different operating habits.
[0116] Optionally, based on the shooting aiming method in the game provided in any of the above embodiments, the embodiments of the present application may also provide some possible implementation methods for detecting the movement of the touch point of the drag operation acting on the shooting control to the prompt area. Fig. 9This is a flow chart of a method for detecting the movement of a touch point of a drag operation to a prompt area in a shooting aiming method in a game provided by an embodiment of the present application. Fig. 9 As shown, in the above S102, in response to the touch point of the drag operation acting on the shooting control moving to the prompt area, before adjusting the aiming position to the preset position, the method may also include:
[0117] S901, detecting whether the target area where the shooting control is located overlaps with the prompt area under the drag operation.
[0118] S902: If there is an area overlap, determine that the touch point of the drag operation moves to the prompt area.
[0119] When a drag operation acting on a shooting control is detected, the shooting control can be responded to by controlling the drag operation to move along with the drag operation. During the movement of the shooting control, it can be detected whether there is any regional overlap between the target area where the shooting control is located and the prompt area, thereby determining whether the touch point of the drag operation has moved to the prompt area. When there is regional overlap, it can be determined that the touch point of the drag operation has moved to the prompt area. At this time, the shooting control has been moved to the prompt area under the action of the drag operation.
[0120] On the contrary, if there is no area overlap, it is determined that the touch point of the drag operation has not moved to the prompt area.
[0121] In an implementation example, detecting in S901 whether the target area where the shooting control is located overlaps with the prompt area under the drag operation may include:
[0122] Detecting whether the touch point of the drag operation coincides with a preset position of the prompt area;
[0123] If they overlap, it is determined that the target area and the prompt area overlap. Otherwise, if they do not overlap, it is determined that the target area and the prompt area do not overlap.
[0124] The preset position may be, for example, a center position, an edge position, or a position of a preset detection frame such as an edge position of the detection frame.
[0125] In this method, by detecting the overlap of the preset position of the touch point and the prompt area, it is determined whether the target area and the prompt area overlap, which can make the detection of regional overlap more accurate, improve the accurate judgment of the touch point moving to the prompt area, and achieve more accurate judgment of the timing of aiming position adjustment.
[0126] In an implementation example, detecting in S901 whether the target area where the shooting control is located overlaps with the prompt area under the drag operation may include:
[0127] Detecting whether the target area covers all or part of the preset area of the prompt area;
[0128] If yes, it is determined that the target area overlaps with the prompt area. Otherwise, if the prompt area is not covered, or the part of the target area covering the prompt area does not meet the preset condition, it can be determined that the target area does not overlap with the prompt area.
[0129] In this method, by detecting the coverage of the target area and the prompt area, it is determined whether the target area and the prompt area overlap, which can also make the detection of area overlap more accurate, improve the accurate judgment of the touch point moving to the prompt area, and achieve more accurate judgment of the timing of aiming position adjustment.
[0130] In some other implementations, the present application also provides an implementation example of display adjustment of a graphical user interface when there is no area overlap. Optionally, the method may also include:
[0131] If there is no area overlap, and a release operation continuous with the drag operation is detected, the shooting control is controlled to return to the preset display area on the graphical user interface.
[0132] The preset display area may be, for example, the initial display area of the shooting control on the graphical user interface. That is, when the shooting control is moved to a position between the preset display area and the prompt area by a dragging operation, and the target area and the prompt area do not overlap, then at this time, once a release operation is detected, the shooting control may be controlled to return to the preset display area.
[0133] On the basis of the method shown in any of the above embodiments, the embodiment of the present application can also provide an implementation example of the shooting operation of the shooting aiming method in the game. Fig.10 This is a flow chart of a method for controlling the execution of a shooting operation in a shooting aiming method in a game provided by an embodiment of the present application. Fig.10 As shown, in S103 as described above, controlling the controlled virtual object to use a preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position may include:
[0134] S1001: When the touch point of the drag operation moves to the prompt area, detect whether a release operation continuous with the drag operation is received.
[0135] S1002: If the release operation is detected, control the controlled virtual object to use the preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position.
[0136] When the touch point of the drag operation moves to the prompt area, if a release operation is detected, it can be determined that the drag operation has been performed and there is no need to continue dragging the shooting control. At this time, the controlled virtual object can be controlled to use the preset virtual shooting tool to perform the shooting operation based on the adjusted aiming position. That is, in this implementation example, the touch point of the drag operation can be moved to the prompt area, and a release operation continuous with the drag operation is detected as a trigger condition for performing the shooting operation.
[0137] In some other possible implementation examples, when the touch point of the drag operation moves to the prompt area, after adjusting the aiming position, there is no need to wait for the detection of the release operation. That is, as long as it is detected that the touch point of the drag operation moves to the prompt area, the preset virtual shooting tool can be directly controlled to perform the shooting operation based on the adjusted aiming position.
[0138] In another possible implementation example, when the touch point of the drag operation moves to the prompt area, the timing of executing the shooting operation can be determined by detecting other operations or trigger conditions. The specific method can be set according to actual needs.
[0139] In the method provided by this embodiment, when the touch point of the drag operation moves to the prompt area, if a release operation is detected, the controlled virtual object is controlled to use the preset virtual shooting tool to perform the shooting operation based on the adjusted aiming position, so that the timing of executing the shooting operation can be more accurate, and there is no need for the user to input too many operations, which facilitates the implementation of operations in the actual game process, thereby improving the gaming experience of the player.
[0140] The following describes the apparatus, device, storage medium, etc. used to execute the shooting aiming method in the game provided by the present application. The specific implementation process and technical effects are as mentioned above and will not be repeated below.
[0141] Fig.11 A schematic diagram of a shooting aiming device in a game provided by an embodiment of the present application, such as Fig.11 As shown, the graphical user interface used by the shooting aiming device in the game at least displays a game scene and a shooting control, and the game includes a controlled virtual object located in the game scene. The shooting aiming device 1100 in the game may include:
[0142] The display module 1101 is used for displaying a prompt area of a preset part of the target virtual object in the graphical user interface in response to the controlled virtual object aiming at the target virtual object;
[0143] The adjustment module 1102 is used to respond to the touch point of the drag operation on the shooting control moving to the prompt area and adjust the aiming position to a preset position.
[0144] The shooting control module 1103 is used to control the controlled virtual object to perform a shooting operation based on the adjusted aiming position using a preset virtual shooting tool.
[0145] Optionally, the display module 1101 is specifically used to detect the initial relative position of the preset part and the aiming position; according to the initial relative position, a prompt area is displayed at a position in the graphical user interface that has a corresponding position relationship with the shooting control.
[0146] Optionally, the initial relative position includes: a relative distance and a relative direction; the corresponding position relationship is: the direction is the same as the relative direction, and there is a preset proportional relationship between the distance and the relative distance.
[0147] Optionally, the display module 1101 is also used to detect the dynamic relative position of the preset part and the aiming position; according to the dynamic relative position, the prompt area is controlled to move relative to the shooting control.
[0148] Optionally, if there are multiple shooting controls displayed on the graphical user interface, the display module 1101 is specifically configured to display a prompt area at a position in the graphical user interface that has a corresponding position relationship with the preset shooting control according to the initial relative position; wherein the preset shooting control is a shooting control displayed in a preset display area in the graphical user interface among the multiple shooting controls;
[0149] Correspondingly, the drag operation is a drag operation acting on the preset shooting control.
[0150] Optionally, if there are multiple shooting controls displayed on the graphical user interface, the display module 1101 is further configured to display a prompt area at a position where each shooting control has a corresponding position relationship in the graphical user interface according to the initial relative position;
[0151] Accordingly, the dragging operation acts on any shooting control among the multiple shooting controls.
[0152] Optionally, the shooting aiming device 1100 in the game further includes:
[0153] A detection module, used to detect whether the target area where the shooting control is located overlaps with the prompt area under the action of the drag operation;
[0154] The determination module is used to determine that the touch point of the drag operation moves to the prompt area if there is area overlap.
[0155] Optionally, the detection module is specifically used to detect whether the touch point of the drag operation coincides with a preset position of the prompt area; if so, it is determined that there is an area overlap between the target area and the prompt area.
[0156] Optionally, the preset position is: a center position, an edge position, or a position of a preset detection frame.
[0157] Optionally, the detection module is specifically used to detect whether the target area covers all or part of the preset area of the prompt area; if so, it is determined that there is an area overlap between the target area and the prompt area.
[0158] Optionally, the shooting aiming device 1100 in the game further includes:
[0159] The return control module is used to control the shooting control to return to the preset display area on the graphical user interface if there is no area overlap and a release operation continuous with the drag operation is detected.
[0160] Optionally, the shooting control module 1103 is specifically used to detect whether a release operation continuous with the dragging operation is received when the touch point of the dragging operation moves to the prompt area; if a release operation is detected, the controlled virtual object is controlled to use a preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position.
[0161] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0162] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0163] Fig.12 The electronic device 1200 is a schematic diagram of an electronic device provided in an embodiment of the present application. The electronic device 1200 includes a memory 1201 and a processor 1202. The memory 1201 and the processor 1202 are connected via a bus.
[0164] The memory 1201 is used to store programs, and the processor 1202 calls the programs stored in the memory 1201 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.
[0165] Optionally, the present application also provides a program product, such as a computer-readable storage medium, including a program, which is used to execute the above method embodiment when executed by a processor.
[0166] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0167] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0168] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0169] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
[0170] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A shooting aiming method in a game, It is characterized in that The graphical user interface of the game at least displays a game scene and a shooting control, and the game includes a controlled virtual object located in the game scene; the method comprises: In response to the controlled virtual object aiming at the target virtual object, a prompt area of a preset part of the target virtual object is displayed in the graphical user interface; wherein the prompt area is displayed at a position in the graphical user interface based on a relative positional relationship between the preset part and the aiming position; In response to the touch point of the drag operation on the shooting control being moved to the prompt area, the aiming position is adjusted to the preset position; The controlled virtual object is controlled to perform a shooting operation based on the adjusted aiming position using a preset virtual shooting tool.
2. The method according to claim 1, It is characterized in that The displaying of the prompt area of the preset part of the target virtual object in the graphical user interface includes: Detecting the initial relative position of the preset part and the aiming position; According to the initial relative position, the prompt area is displayed at a position in the graphical user interface that has a corresponding position relationship with the shooting control.
3. The method according to claim 2, It is characterized in that The initial relative position includes: a relative distance and a relative direction; the corresponding position relationship is: the direction is the same as the relative direction, and there is a preset proportional relationship between the distance and the relative distance.
4. The method according to claim 2, It is characterized in that After displaying the prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting control according to the initial relative position, the method further includes: Detecting the dynamic relative position of the preset part and the aiming position; According to the dynamic relative position, the prompt area is controlled to move relative to the shooting control.
5. The method according to claim 2, It is characterized in that If there are multiple shooting controls displayed on the graphical user interface, displaying the prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting controls according to the initial relative position includes: According to the initial relative position, the prompt area is displayed at a position in the graphical user interface that has a corresponding position relationship with the preset shooting control; wherein the preset shooting control is a shooting control displayed in a preset display area in the graphical user interface among multiple shooting controls; Correspondingly, the dragging operation is a dragging operation acting on the preset shooting control.
6. The method according to claim 2, It is characterized in that If there are multiple shooting controls displayed on the graphical user interface, displaying the prompt area at a position in the graphical user interface that has a corresponding position relationship with the shooting controls according to the initial relative position includes: According to the initial relative position, displaying a prompt area at a position where each shooting control has a corresponding position relationship in the graphical user interface; Correspondingly, the dragging operation acts on any shooting control among the multiple shooting controls.
7. The method according to claim 1, It is characterized in that Before the touch point in response to the drag operation on the shooting control moves to the prompt area and the aiming position is adjusted to the preset position, the method further includes: Detecting whether a target area where the shooting control is located overlaps with the prompt area under the drag operation; If there is an area overlap, it is determined that the touch point of the drag operation moves to the prompt area.
8. The method according to claim 7, It is characterized in that The detecting whether the target area where the shooting control is located overlaps with the prompt area under the dragging operation includes: Detecting whether the touch point of the drag operation coincides with a preset position of the prompt area; If they overlap, it is determined that the target area and the prompt area overlap.
9. The method according to claim 8, It is characterized in that The preset position is: a center position, an edge position, or a position of a preset detection frame.
10. The method according to claim 7, It is characterized in that The detecting whether the target area where the shooting control is located overlaps with the prompt area under the dragging operation includes: Detecting whether the target area covers all or part of the preset area of the prompt area; If so, it is determined that the target area and the prompt area overlap.
11. The method according to claim 7, It is characterized in that The method further comprises: If there is no area overlap, and a release operation continuous with the drag operation is detected, the shooting control is controlled to return to a preset display area on the graphical user interface.
12. The method according to any one of claims 1 to 11, It is characterized in that The controlling the controlled virtual object to use a preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position includes: When the touch point of the drag operation moves to the prompt area, detecting whether a release operation continuous with the drag operation is received; If the release operation is detected, the controlled virtual object is controlled to use the preset virtual shooting tool to perform a shooting operation based on the adjusted aiming position.
13. A shooting aiming device in a game, It is characterized in that The graphical user interface of the game at least displays a game scene and a shooting control, and the game includes a controlled virtual object located in the game scene; the device includes: A display module, configured to display a prompt area of a preset part of the target virtual object in the graphical user interface in response to the controlled virtual object aiming at the target virtual object; wherein the prompt area is displayed at a position in the graphical user interface based on a relative positional relationship between the preset part and the aiming position; An adjustment module, for responding to a touch point of a drag operation on the shooting control moving to the prompt area, and adjusting the aiming position to the preset position; The shooting control module is used to control the controlled virtual object to perform a shooting operation based on the adjusted aiming position using a preset virtual shooting tool.
14. An electronic device, It is characterized in that include: A memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the shooting aiming method in the game described in any one of claims 1 to 12 is implemented.
15. A storage medium, It is characterized in that The storage medium stores a computer program, and when the computer program is read and executed, the shooting aiming method in the game described in any one of claims 1 to 12 is implemented.
