Display control method and device of skill, electronic equipment and storage medium
By receiving the first drag operation in the game to adjust the aiming direction or position, and entering a pause state, determining whether to cancel the skill release based on the movement speed of the second drag operation, the problem of complex and time-consuming skill cancellation operations in the existing technology is solved, achieving more efficient skill cancellation.
Patent Information
- Application Number
- CN202210442422.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-25
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2042-04-25
AI Technical Summary
In existing technologies, the operation of releasing and canceling skills is complex and time-consuming, especially in multiplayer online tactical battle games, where dragging and dropping to cancel skills takes a lot of time.
The aiming direction or position is adjusted by the first drag operation of the target skill control received. After entering a pause state, the touch point is determined, and the skill release is canceled based on the movement speed of the second drag operation.
The process of canceling skills has been simplified, improving the efficiency and convenience of releasing skills.
Smart Images

Figure CN114768248B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of skill control, and particularly relates to a skill display control method and device, electronic equipment and a storage medium. BACKGROUND
[0002] This section is intended to provide background information to facilitate a better understanding of embodiments of the present application recited in the claims. The description herein does not constitute admission of prior art.
[0003] At present, the release and cancellation of skills are commonly used in various games, such as MOBA (Multiplayer Online Battle Arena Game). At present, the release of skills in games is generally in the form of dragging, for example, in a touch screen operation, when a player wants to release a certain skill, the player first controls the position or direction of skill release by dragging the skill control, and then releases the skill when the player releases the operation finger. The cancellation is generally in the form of keeping the finger touch and dragging to the cancellation spell area before the release of the skill to determine the cancellation of the skill. However, the current skill cancellation method is not only complex in operation but also requires a lot of time. SUMMARY
[0004] Therefore, the present application aims to provide a skill display control method and device, electronic equipment and a storage medium.
[0005] To achieve the above object, the present application provides a skill display control method, comprising:
[0006] In response to receiving a first dragging operation on a target skill control, adjusting the aiming direction or aiming position of a target skill according to a touch point of the first dragging operation;
[0007] In response to the first dragging operation entering a pause state from a moving state, determining a target touch point corresponding to the pause state;
[0008] In response to receiving a second dragging operation moving from the target touch point, determining whether to cancel the release of the target skill based on a second moving speed of the second dragging operation.
[0009] In some embodiments, the determination of whether to cancel the release of the target skill based on the second moving speed specifically comprises:
[0010] In response to determining that the second moving speed is greater than a preset threshold, canceling the release of the target skill.
[0011] In some embodiments, the determination of whether to cancel the release of the target skill based on the second moving speed specifically comprises:
[0012] Determining a first moving speed of the first dragging operation;
[0013] in response to determining that the second movement speed is greater than the first movement speed, cancel releasing the target skill.
[0014] In some embodiments, the method further comprises:
[0015] determining a first movement speed of the first drag operation;
[0016] in response to the second movement speed being less than the first movement speed, adjusting the aiming direction or the aiming position of the target skill again according to an end touch point of the second drag operation;
[0017] in response to an end of the second drag operation, releasing the target skill according to a target aiming direction or a target aiming position determined according to an end touch point of the second drag operation.
[0018] In some embodiments, in response to a momentary movement speed of the first drag operation falling below a specified threshold, determining that the first drag operation enters a pause state from a movement state.
[0019] In some embodiments, determining whether to cancel releasing the target skill based on the second movement speed specifically comprises:
[0020] obtaining a first direction determined according to a start touch point of the first drag operation and the target touch point;
[0021] obtaining a second direction determined according to the target touch point and an end touch point of the second drag operation;
[0022] in response to the first direction being different from the second direction and the second movement speed being greater than a preset threshold, cancel releasing the target skill;
[0023] or, in response to the first direction being different from the second direction and the second movement speed being greater than the first movement speed, cancel releasing the target skill.
[0024] In some embodiments, determining whether to cancel releasing the target skill based on the second movement speed specifically comprises: in response to determining that an included angle between the first direction and the second direction is greater than a first preset included angle and the second movement speed is greater than a preset threshold, cancel releasing the target skill.
[0025] In some embodiments, determining whether to cancel releasing the target skill based on the second movement speed specifically comprises:
[0026] obtaining a first direction determined according to a start touch point of the first drag operation and the target touch point;
[0027] obtaining a second direction determined according to the target touch point and an end touch point of the second dragging operation;
[0028] In response to determining that the included angle between the first direction and the second direction is less than a second preset included angle and the second moving speed is greater than a preset threshold, canceling releasing the target skill;
[0029] Alternatively, in response to the included angle between the first direction and the second direction being less than a second preset included angle and the second moving speed being greater than the first moving speed, canceling releasing the target skill.
[0030] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically comprises:
[0031] obtaining a moving distance of the target touch point to an end touch point of the second dragging operation;
[0032] In response to determining that the second moving speed is greater than a preset threshold and the moving distance is greater than a preset distance, canceling releasing the target skill.
[0033] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically comprises:
[0034] obtaining a moving distance of the target touch point to an end touch point of the second dragging;
[0035] In response to determining that the included angle between the first direction and the second direction is greater than a first preset included angle and the second moving speed is greater than a preset threshold, and the moving distance is greater than a preset distance, canceling releasing the target skill.
[0036] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically comprises:
[0037] obtaining a moving distance of the target touch point to an end touch point of the second dragging operation stopping moving;
[0038] In response to determining that the second moving speed is greater than the first moving speed and the moving distance is greater than a preset distance, canceling releasing the target skill.
[0039] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically comprises:
[0040] obtaining a first direction determined according to a start touch point and a target touch point of the first dragging operation;
[0041] obtaining a second direction determined according to the target touch point and an end touch point of the second dragging operation;
[0042] In response to determining that the included angle between the first direction and the second direction is greater than a first preset included angle and the second movement speed is greater than the first movement speed, cancel releasing the target skill.
[0043] In some embodiments, determining whether to cancel releasing the target skill based on the second movement speed specifically includes:
[0044] obtaining a movement distance of the target touch point to an ending touch point of the second drag operation;
[0045] In response to determining that the included angle between the first direction and the second direction is greater than a first preset included angle and the second movement speed is greater than the first movement speed, and the movement distance is greater than a preset distance, cancel releasing the target skill.
[0046] In some embodiments, after receiving the first drag operation on the target skill control, the method further includes:
[0047] In response to receiving a skill release instruction, releasing the target skill based on the target touch point.
[0048] Based on the same inventive concept, the exemplary embodiments of the present application further provide a skill display control device, comprising:
[0049] A first triggering module, in response to receiving a first drag operation on a target skill control, adjusts a target skill aiming direction or aiming position according to a touch point of the first drag operation;
[0050] A second triggering module, in response to the first drag operation entering a pause state from a movement state, determines a target touch point corresponding to the pause state;
[0051] A skill control module, in response to receiving a second drag operation moving from the target touch point as a starting point, determines whether to cancel releasing the target skill based on a second movement speed of the second drag operation.
[0052] Based on the same inventive concept, the exemplary embodiments of the present application further provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, and the processor executes the program to implement the skill display control method as described above.
[0053] Based on the same inventive concept, the exemplary embodiments of the present application further provide a non-transitory computer readable storage medium, which stores computer instructions for causing a computer to execute the skill display control method as described above.
[0054] It can be seen from the above that the skill display control method, device, electronic device and storage medium provided by the application, when receiving a first drag operation on a target skill control, the aiming direction or aiming position of the target skill is adjusted based on the touch point of the first drag operation; when the first drag operation enters a pause state from a moving state, the target touch point corresponding to the pause state is determined; when receiving a second drag operation that moves from the target touch point as a starting point, it is determined whether to cancel releasing the target skill according to the second moving speed of the second drag operation, thereby improving the efficiency of canceling releasing the skill. BRIEF DESCRIPTION OF DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the application or related art, the drawings needed to be used in the embodiments or related art description will be briefly introduced. Obviously, the drawings in the following description are only embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.
[0056] Figure 1 A target skill display control schematic diagram in the prior art;
[0057] Figure 2 A target skill display control schematic diagram in an embodiment of the application;
[0058] Figure 3 A flowchart of a skill display control method in an embodiment of the application;
[0059] Figure 4 Another target skill display control schematic diagram in an embodiment of the application;
[0060] Figure 5 A structure schematic diagram of a skill display control device in an embodiment of the application;
[0061] Figure 6 A structure schematic diagram of a specific electronic device in an embodiment of the application. DETAILED DESCRIPTION
[0062] The principles and spirits of the application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are given only to enable those skilled in the art to better understand and implement the application, and do not limit the scope of the application in any way. On the contrary, these embodiments are provided to make the application more thorough and complete, and to fully convey the scope of the application to those skilled in the art.
[0063] According to the embodiments of the application, a skill display control method, device, electronic device and storage medium are provided.
[0064] In this document, it is to be understood that the number of elements in the figures are for illustration only and that any naming is merely for the purpose of distinguishing one element from another, without any limitation.
[0065] The principles and spirits of the present application will be explained in detail below with reference to several representative embodiments of the present application. SUMMARY
[0067] In the prior art, the release of a skill is generally achieved by dragging, for example, in a touch screen operation, when a player wants to release a certain skill, the player first drags a skill control to control the release position or direction of the skill, and then releases the skill when the player releases the finger. Figure 1 In which 201, 202, 203 are three different skill controls. For example, the target skill to be released corresponds to the skill control 201, the user adjusts the release position or direction of the target skill by dragging the skill control 201, 204 represents the position icon of the target skill release in the game scene, the position of the position icon is controlled by the user (through the finger in the figure) dragging the skill control 201, at this time, if the target skill corresponding to the skill control 201 is confirmed to be released, the skill is determined to be released (for example, the finger is released), if the player wants to cancel the target skill, the player needs to keep dragging and continue to slide from the current position of the user's finger to the specified skill canceling area 205. By Figure 1 It can be seen that the process of canceling the skill is complex and time-consuming.
[0068] To solve the above problems, the present application provides a skill display control method, specifically comprising: when receiving a first dragging operation on a target skill control, adjusting the aiming direction or aiming position of the target skill based on the touch point of the first dragging operation; when the first dragging operation enters a pause state from a moving state, determining the target touch point corresponding to the pause state; when receiving a second dragging operation moving from the target touch point as a starting point, determining whether to cancel the release of the target skill according to the second moving speed of the second dragging operation, thereby improving the efficiency of canceling the release of the skill. Reference Figure 2Wherein, 201, 202, 203 are three different skill controls. For example, the skill control corresponding to the target skill to be released is 201, the user adjusts the release position or direction of the target skill by dragging the skill control 201, 204 represents the position icon of the target skill release in the game scene, the position of the position icon is controlled by the user (through the finger in the figure) dragging the skill control 201, when the position of the position icon 204 is adjusted by dragging the skill control 201, if it is confirmed to release the target skill, the skill is determined to be released (for example, the finger is released), if it is wanted to cancel the target skill, the current touch point of the user's finger can be used as the starting point to slide in any direction and determine the second moving speed of the sliding, and then determine whether to cancel the release of the target skill according to the second moving speed. Figure 2 Compared with Figure 1 Obviously, the method of the present application takes less time and is simpler to operate.
[0069] After introducing the basic principles of the present application, the various non-limiting embodiments of the present application will be described in detail.
[0070] OVERVIEW OF APPLICATION SCENARIOS
[0071] In some specific application scenarios, the skill display control method of the present application can be applied to various game systems involving skill release, which can be controlled through a touch screen or other control components such as a handle and a mouse, without limitation.
[0072] In some specific application scenarios, the skill display control method of the present application can be applied to other systems involving skill release, for example, the system can be an interface system of a computer or a mobile phone, and the movement and cancellation of the interface icon can be realized through the skill display control method of the present application.
[0073] In some specific application scenarios, the skill display control method of the present application can be directly applied locally or run in a cloud server. When running in a cloud server, the obtained to-be-processed data is sent to the cloud server through a network, the to-be-processed data is processed by the server through the skill display control method of the present application, and the processing result is sent to the local through the network.
[0074] The skill display control method according to the exemplary embodiments of the present application will be described in conjunction with specific application scenarios. It should be noted that the above application scenarios are only shown for the purpose of facilitating understanding of the spirit and principles of the present application, and the embodiments of the present application are not limited in this respect. On the contrary, the embodiments of the present application can be applied to any applicable scenario.
[0075] Exemplary Method
[0076] Reference Figure 3 The embodiment of the present application provides a display control method of a skill, comprising the following steps:
[0077] S101, in response to receiving a first dragging operation on a target skill control, adjusting a aiming direction or a aiming position of the target skill according to a touch point of the first dragging operation.
[0078] In specific implementation, when the first dragging operation on the target skill control is received, the aiming direction or the aiming position of the target skill is adjusted according to the touch point of the first dragging operation. The aiming direction or the aiming position of the target skill is generally a direction or a position where the target skill wants to release the skill. It should be noted that the first dragging operation can be a dragging operation realized by a user on a touch screen, or a dragging operation realized by a control component on other display devices, for example, a dragging operation realized by a mouse on a computer.
[0079] In some embodiments, the step of adjusting the aiming direction or the aiming position of the target skill according to the touch point of the first dragging operation specifically comprises the following steps.
[0080] In response to receiving an initial touch point of the first dragging operation, a skill auxiliary area is generated in the periphery of the target skill control; and in response to the first dragging operation passing through the skill auxiliary area, the aiming direction and / or the aiming position of the target skill is adjusted according to the touch point of the first dragging operation in the skill auxiliary area.
[0081] In specific implementation, when the first dragging operation passes through the skill auxiliary area, a direction icon of the target skill release is displayed in the release range of the target skill. The position change of the direction icon corresponds to the position change of the touch point of the first dragging operation in the skill auxiliary area, that is, the direction icon moves along with the sliding of the first dragging operation in the skill auxiliary area. Optionally, when the first dragging operation passes through the skill auxiliary area, a position icon of the target skill release is displayed in the release range of the target skill. The position change of the position icon corresponds to the position change of the touch point of the first dragging operation in the skill auxiliary area. It should be noted that the direction icon and the position icon belong to two common forms of auxiliary skill release in games. Generally, the direction icon is used to guide the target skill to release along the direction icon from the character itself; and generally, the area icon is used to guide the target skill to release directly to the position where the position icon is located.
[0082] In some embodiments, the adjusting the aiming direction or aiming position of the target skill according to the touch point of the first drag operation in response to receiving the first drag operation on the target skill control further comprises:
[0083] generating a skill auxiliary area at the periphery of the target skill control in response to receiving the initial touch point of the first drag operation, and determining the aiming direction or aiming position of the target skill according to the touch point of the first drag operation in the skill auxiliary area and the center point of the skill auxiliary area in response to the first drag operation passing through the skill auxiliary area.
[0084] In practice, the aiming direction of the target skill can be determined by the direction of the line connecting the center point of the skill auxiliary area and the touch point of the first drag operation in the skill auxiliary area, i.e., controlling the virtual character to release the skill in the aiming direction; or the relative relationship between the virtual character releasing the target skill and the aiming position can be determined by the relative position of the center point of the skill auxiliary area and the touch point of the first drag operation in the skill auxiliary area.
[0085] S102, in response to the first drag operation entering the pause state from the moving state, determining the target touch point corresponding to the pause state.
[0086] In practice, the target touch point corresponding to the pause state can be determined when the first drag operation enters the pause state from the moving state. Optionally, to facilitate calculation, the second moving speed can be represented by the average speed of the second drag operation, or can be represented by the maximum speed of the second moving speed, which is not limited herein. Both the average speed and the maximum speed can be calculated by dividing the moving distance by the moving time. It should be noted that when the first drag operation on the target skill control enters the pause state from the moving state, if the user directly issues an instruction to determine the skill release, for example, the touch finger leaves the screen or the mouse button is released, the skill will be directly released.
[0087] In some embodiments, after the first drag operation on the target skill control is received, the method further comprises:
[0088] releasing the target skill based on the target touch point in response to receiving the instruction to determine the skill release.
[0089] In some embodiments, the method further comprises: determining that the first drag operation enters the pause state from the moving state in response to the instantaneous moving speed of the first drag operation falling below a specified threshold. Optionally, the specified threshold can be set to 0, or other values close to 0, which is not limited herein.
[0090] It should be noted that the determination skill release instruction herein can be a common determination skill release instruction such as touch finger leaving the screen or mouse button release, or other forms of determination skill release instructions such as adding a determination skill release area around the target touch point, or inputting a voice instruction, or performing a determination skill release instruction through color or other features, which all belong to the protection scope of the present application. When the determination skill release instruction is received, the target skill is released according to the target touch point.
[0091] In response to receiving a second drag operation of moving from the target touch point, it is determined whether to cancel releasing the target skill based on a second moving speed of the second drag operation.
[0092] In particular implementation, when the second drag operation of moving from the target touch point is received, it is determined whether to cancel releasing the target skill according to a second moving speed of the second drag operation, so that the operation of canceling releasing the skill is further simplified.
[0093] In some embodiments, the second drag operation is a drag operation of moving from the target touch point to the initial position of the target skill control.
[0094] In order to accurately cancel releasing the skill, in some embodiments, it is determined whether to cancel releasing the target skill based on the second moving speed, specifically including:
[0095] In response to determining that the second moving speed is greater than a preset threshold, the target skill is canceled to be released.
[0096] In particular implementation, after entering the pause state from the moving state through the first drag operation, the user can further adjust the aiming direction or aiming position of the target skill, at this time, if all the drag operations from the target touch point are directly regarded as the operation of canceling releasing the skill, the operation of the user who wants to adjust the aiming direction or aiming position of the target skill again will be affected. Considering that the adjustment of the aiming direction or aiming position of the target skill again generally belongs to relatively fine adjustment, at this time, the moving speed of the user's drag operation will not be particularly fast, and when the user wants to cancel releasing the skill, the drag operation is generally rapid, therefore, when the second moving speed of the second drag operation is greater than a preset threshold, the target skill is canceled to be released. Optionally, the preset threshold can be set according to needs, which is not limited herein.
[0097] In order to improve the experience of different users, in some embodiments, it is determined whether to cancel releasing the target skill based on the second moving speed, specifically including:
[0098] A first moving speed of the first drag operation is determined.
[0099] In response to determining that the second movement speed is greater than the first movement speed, the release of the target skill is cancelled.
[0100] In practical implementation, considering the different operating habits and dragging speeds of different users, if all users use a fixed preset threshold to determine whether to cancel the release of a target skill, it may not be able to accommodate the operating habits of various user types. For example, some users have faster hand speeds and may want the preset threshold value to be set higher, while some users have slower hand speeds and naturally want the preset threshold value to be set lower. Therefore, in some embodiments of this application, a first moving speed for the first drag operation of the target skill is first determined. This first moving speed represents the user's operating speed when normally releasing the skill. Then, when the second moving speed is greater than the first moving speed, it indicates that the user is performing the second drag operation at a speed exceeding their normal skill release speed, so the release of the target skill is canceled at this time.
[0101] In some embodiments, the method further includes:
[0102] Determine the first movement speed of the first drag operation;
[0103] In response to the second movement speed being less than the first movement speed, the aiming direction or aiming position of the target skill is readjusted according to the touch point of the second drag operation;
[0104] In response to the end of the second drag operation, the target skill is released according to the target aiming direction or target aiming position determined by the touch point at the end of the second drag operation.
[0105] It should be noted that the end touch point of the second drag operation and the touch point of the first drag operation are two different touch points. Optionally, these two touch points may overlap in special cases, but they are still two touch points.
[0106] To further improve the accuracy of canceling the release of a target skill, in some embodiments, determining whether to cancel the release of the target skill is based on the second movement speed, specifically including:
[0107] Determine the first movement speed of the first drag operation;
[0108] In response to determining that the second movement speed is greater than the first movement speed and greater than a preset threshold, the release of the target skill is cancelled.
[0109] To further improve the accuracy of canceling the release of a target skill, in some embodiments, determining whether to cancel the release of the target skill is based on the second movement speed, specifically including:
[0110] determining a first moving speed of the first dragging operation;
[0111] In response to determining that the second moving speed is greater than the first moving speed and a difference between the second moving speed and the first moving speed is greater than a preset difference, canceling releasing the target skill, so as to avoid triggering an instruction of canceling releasing the skill when the user is adjusting the aiming direction or aiming position of the target skill.
[0112] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically comprises:
[0113] obtaining a first direction determined according to a starting touch point of the first dragging operation and the target touch point;
[0114] obtaining a second direction determined according to the target touch point and an ending touch point of the second dragging operation;
[0115] In response to the first direction being different from the second direction and the second moving speed being greater than a preset threshold, canceling releasing the target skill.
[0116] Alternatively, in response to the first direction being different from the second direction and the second moving speed being greater than the first moving speed, canceling releasing the target skill.
[0117] It should be noted that the first direction is a direction of a straight line from the starting touch point to the target touch point, and the second direction is a direction of a straight line from the target touch point to the ending touch point of the second dragging operation.
[0118] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically comprises: in response to determining that an included angle between the first direction and the second direction is greater than a first preset included angle and the second moving speed is greater than a preset threshold, canceling releasing the target skill.
[0119] In specific implementation, considering the operation habit of the user, in order to avoid the user from being determined by the system to cancel releasing the target skill when the user wants to adjust the aiming direction or aiming position of the target skill, in some embodiments, the moving direction of the second dragging operation is limited. Since the user rarely moves from the target touch point to the initial position of the target skill control in releasing the skill, the target skill is canceled when the included angle between the first direction and the second direction is greater than the first preset included angle and the second moving speed is greater than the preset threshold. The preset included angle can be set as needed, and optionally, the preset included angle can be set as 165 degrees. Reference Figure 4 wherein 201, 202 and 203 are three different skill controls. For example, Figure 4The middle 201 is a current target skill control, and 204 represents a position icon of a target skill release in a game scene, a position of the position icon is controlled by dragging the skill control 201 by a user (by a finger in the figure), a first direction is a direction represented by an arrow from 201 to the finger in the figure, a second direction is a direction represented by an arrow with the finger in the figure as a starting point, and an included angle between the first direction and the second direction is a supplementary angle of an angle A in the figure. When the user adjusts a direction or a position of aiming of the target skill, the user rarely moves in a direction opposite to the first direction, and therefore, when the included angle between the first direction and the second direction is greater than a preset included angle, it is likely that the user does not want to adjust the direction or the position of aiming of the target skill at this time, but wants to cancel releasing a certain skill. Figure 4 In the middle, V1 represents a first moving speed, and V2 represents a second moving speed. When V2 is greater than a preset angle or V2 is greater than V1, it is likely that the user does not want to adjust the direction or the position of aiming of the target skill. After comprehensively considering the moving speed of the second dragging operation and the second direction, it can be more accurately determined whether to cancel releasing the target skill.
[0120] In some embodiments, a first vector can be obtained with the starting touch point as a starting point and the target touch point as a terminal point, and a module of the first vector is a moving distance from the starting touch point to the target touch point. A second vector can be obtained with the target touch point as a starting point and an ending touch point of the second dragging operation as a terminal point. An included angle between the first vector and the second vector, that is, an included angle between the first direction and the second direction, can be obtained by dot multiplication of the first vector and the second vector.
[0121] In some embodiments, the determining whether to cancel releasing the target skill based on the second moving speed specifically includes:
[0122] obtaining a first direction determined according to a starting touch point and a target touch point of the first dragging operation;
[0123] obtaining a second direction determined according to the target touch point and an ending touch point of the second dragging operation;
[0124] canceling releasing the target skill in response to determining that the included angle between the first direction and the second direction is less than a second preset included angle and the second moving speed is greater than a preset threshold;
[0125] Or, canceling releasing the target skill in response to the included angle between the first direction and the second direction being less than the second preset included angle and the second moving speed being greater than the first moving speed.
[0126] It should be noted that the second preset included angle and the first preset included angle are supplementary angles of each other, and the included angle between the first direction and the second direction in the embodiment is an acute angle, that is, Figure 4The angle A is the angle between the first direction and the second direction. Optionally, the angle between the first direction and the second direction in the present application can be an acute angle or an obtuse angle, which is not limited herein. When it is an obtuse angle, it is mainly compared with the first preset angle, and when it is an acute angle, it is mainly compared with the second preset angle.
[0127] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically includes:
[0128] Obtaining a moving distance of the target touch point to an ending touch point of the second dragging operation;
[0129] In response to determining that the second moving speed is greater than a preset threshold and the moving distance is greater than a preset distance, the target skill is canceled to be released.
[0130] In implementation, in order to make the second moving speed of the second dragging operation more representative, and prevent the determined second moving speed from not well reflecting the moving speed of the user in actual operation due to the moving distance being too short, in some embodiments, when determining whether to cancel releasing the target skill, in addition to considering the relationship between the second moving speed and the preset threshold, the moving distance of the target touch point to the ending touch point of the second dragging operation is further considered to be long enough. Therefore, when the second moving speed is greater than the preset threshold and the moving distance is greater than the preset distance, the target skill is canceled to be released.
[0131] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically includes:
[0132] Obtaining a moving distance of the target touch point to an ending touch point of the second dragging operation;
[0133] In response to determining that the angle between the first direction and the second direction is greater than a first preset angle, the second moving speed is greater than a preset threshold, and the moving distance is greater than a preset distance, the target skill is canceled to be released.
[0134] In implementation, in order to further improve the accuracy of canceling to release the target skill, the moving direction, the moving speed, and the moving distance of the second dragging operation are comprehensively considered. Only when all the three conditions are met, the target skill is canceled to be released.
[0135] In order to take into account the operation habit of the user and the accuracy of determining the second moving speed, in some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically includes:
[0136] Obtaining a moving distance of the target touch point to an ending touch point of the second dragging operation;
[0137] In response to determining that the second moving speed is greater than the first moving speed and the moving distance is greater than a preset distance, cancel releasing the target skill.
[0138] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically comprises:
[0139] obtaining a first direction determined according to a starting touch point and a target touch point of the first drag operation;
[0140] obtaining a second direction determined according to the target touch point and an ending touch point of the second drag operation;
[0141] In response to determining that the included angle between the first direction and the second direction is greater than a preset included angle and the second moving speed is greater than the first moving speed, cancel releasing the target skill.
[0142] In some embodiments, determining whether to cancel releasing the target skill based on the second moving speed specifically comprises:
[0143] obtaining a moving distance of the target touch point to the ending touch point of the second drag operation;
[0144] In response to determining that the included angle between the first direction and the second direction is greater than a preset included angle and the second moving speed is greater than the first moving speed, and the moving distance is greater than a preset distance, cancel releasing the target skill.
[0145] It should be noted that directly comparing the second moving speed with the first moving speed can enable different users to experience the convenience of canceling releasing the target skill while maintaining their own operation habits, and limiting the second direction of movement and the moving distance of the second drag operation can further improve the accuracy of canceling releasing the target skill. Optionally, a person skilled in the art can arbitrarily arrange the methods for improving the accuracy of canceling releasing the target skill mentioned in any of the above embodiments as needed, and all further limitations on the second drag operation are within the protection scope of the present application.
[0146] The display control method of the skill provided in the present application, when receiving a first drag operation on a target skill control, adjusts the aiming direction or aiming position of the target skill based on the touch point of the first drag operation; when the first drag operation enters a pause state from a moving state, determines a target touch point corresponding to the pause state; when receiving a second drag operation that moves from the target touch point as a starting point, determines whether to cancel releasing the target skill according to the second moving speed of the second drag operation, thereby improving the efficiency of canceling releasing the skill.
[0147] Exemplary Device
[0148] Based on the same inventive concept, the present application also provides a skill display control device corresponding to any of the above-mentioned embodiment methods.
[0149] Reference Figure 5 The skill display control device comprises:
[0150] A first triggering module 301 is configured to, in response to receiving a first dragging operation on a target skill control, adjust a targeting direction or a targeting position of a target skill according to a touch point of the first dragging operation.
[0151] A second triggering module 302 is configured to, in response to the first dragging operation entering a pause state from a moving state, determine a target touch point corresponding to the pause state.
[0152] A skill control module 303 is configured to, in response to receiving a second dragging operation of moving with the target touch point as a starting point, determine whether to cancel releasing the target skill based on a second moving speed of the second dragging operation.
[0153] For the convenience of description, the above device is described in various modules according to functions. Of course, in the implementation of the present application, the functions of each module can be implemented in one or more software and / or hardware.
[0154] The device of the above-mentioned embodiment is used to implement the corresponding skill display control method of any of the above-mentioned embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described here.
[0155] Based on the same inventive concept, the present application also provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the skill display control method of any of the above-mentioned embodiments when executing the program.
[0156] Figure 6 A more specific hardware structure of an electronic device provided in the present embodiment is shown, which can include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040 and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030 and the communication interface 1040 are connected to each other through the bus 1050 for communication within the device.
[0157] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits, etc., for executing relevant programs to implement the technical solutions provided by the embodiments of the present specification.
[0158] The memory 1020 can be implemented by a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, etc. The memory 1020 can store an operating system and other application programs, and when the technical solutions provided by the embodiments of the present specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called and executed by the processor 1010.
[0159] The input / output interface 1030 is configured to connect input / output modules to implement information input and output. The input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. The input devices can include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices can include a display, a speaker, a vibrator, an indicator light, etc.
[0160] The communication interface 1040 is configured to connect a communication module (not shown in the figure) to implement the communication interaction between the device and other devices. The communication module can realize communication through a wired manner (such as USB, network cable, etc.) or through a wireless manner (such as mobile network, WIFI, Bluetooth, etc.).
[0161] The bus 1050 includes a channel for transmitting information between various components (such as the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040) of the device.
[0162] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040, and the bus 1050, in the specific implementation process, the device can also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device can also only include the components necessary to implement the solutions of the embodiments of the present specification, and does not have to include all the components shown in the figure.
[0163] The electronic device of the above embodiment is used to implement the display control method of the corresponding skill in any of the preceding embodiments, and has the beneficial effects of the corresponding method embodiments, which are not repeated here.
[0164] Exemplary Program Product
[0165] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the display control method of the skill according to any of the above embodiments.
[0166] The computer-readable medium of the present embodiment includes permanent and non-permanent, removable and non-removable media, which can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible by a computing device.
[0167] The storage medium of the above embodiment stores computer instructions for causing the computer to perform a display control method of a skill according to any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which are not repeated here.
[0168] Those skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the present application (including claims) is limited to these examples; the above embodiments or technical features between different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes of the aspects of the embodiments of the present application as described above. In order to be brief, they are not provided in detail.
[0169] Additionally, to simplify the description and discussion, and so as not to obscure the embodiments of the application being presented, the well-known functions or constructions of integrated circuit (IC) chips and other components can or can not be shown in the figures and will be omitted as not to unnecessarily obscure the embodiments of the application being presented. Moreover, the devices can be shown in block diagram form in order to avoid obscuring the embodiments of the application, and this also acknowledges the fact that the details in regard to the implementation of the block diagram devices are highly dependent on the platform within which the embodiments of the application are to be implemented (i.e., these details should be well within the purview of one of ordinary skill in the art). Where specific details are set forth in order to describe an illustrative embodiment of the application, it will be apparent to one of ordinary skill in the art that the embodiments of the application can be practiced without, or with variation of, these specific details. Thus, the description is to be considered as illustrative only and not restrictive in nature.
[0170] While the application has been described in connection with specific embodiments thereof, it will be understood that many modifications, substitutions and changes will be apparent to those of ordinary skill in the art once they have the benefit of the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) can use the embodiments discussed.
[0171] It is intended that the embodiments of the application encompass all such substitutions, modifications and variations as fall within the scope of the appended claims. Accordingly, any omission, modification, equivalent replacement, improvement, etc. made in the spirit and principle of the embodiments of the application should be included in the scope of protection of the application.
Claims
1. A display control method of a skill, characterized by, The method comprises: in response to receiving a first dragging operation on a target skill control in a plurality of skill controls, adjusting a target skill aiming direction or aiming position according to a touch point of the first dragging operation; in response to the first dragging operation entering a pause state from a moving state, determining a target touch point corresponding to the pause state; in response to receiving a second dragging operation moving from the target touch point, determining whether to cancel releasing the target skill based on a second moving speed of the second dragging operation; the second dragging operation is a dragging operation moving from the target touch point to an initial position of the target skill control; wherein, based on the second moving speed, whether to cancel releasing the target skill is determined, specifically comprising: in response to determining that the second moving speed is greater than a preset threshold, or in response to determining that the second moving speed is greater than a first moving speed of the first dragging operation, the target skill is cancelled.
2. The method of claim 1, wherein, The method further comprises: in response to the second moving speed being less than the first moving speed, adjusting the target skill aiming direction or aiming position again according to a touch point of the second dragging operation; in response to the end of the second dragging operation with the second moving speed being less than the first moving speed, releasing the target skill according to a target aiming direction or target aiming position determined by an end touch point of the second dragging operation.
3. The method of claim 1, wherein, The method further comprises: in response to the instantaneous moving speed of the first dragging operation falling to a specified threshold, determining that the first dragging operation enters a pause state from a moving state.
4. The method of claim 1, wherein, Based on the second moving speed, whether to cancel releasing the target skill is determined, specifically comprising: obtaining a first direction determined according to a starting touch point of the first dragging operation and the target touch point; obtaining a second direction determined according to the target touch point and an end touch point of the second dragging operation; in response to the first direction being different from the second direction and the second moving speed being greater than a preset threshold, cancelling releasing the target skill; or, in response to the first direction being different from the second direction and the second moving speed being greater than the first moving speed, cancelling releasing the target skill.
5. The method of claim 4, wherein, Based on the second moving speed, whether to cancel releasing the target skill is determined, specifically comprising: in response to determining that an included angle between the first direction and the second direction is greater than a first preset included angle and the second moving speed is greater than a preset threshold, cancelling releasing the target skill.
6. The method of claim 1, wherein, Based on the second moving speed, whether to cancel releasing the target skill is determined, specifically comprising: obtaining a first direction determined according to a starting touch point of the first dragging operation and the target touch point; obtaining a second direction determined according to the target touch point and an end touch point of the second dragging operation; in response to determining that an included angle between the first direction and the second direction is less than a second preset included angle and the second moving speed is greater than a preset threshold, cancelling releasing the target skill; or, in response to the included angle between the first direction and the second direction being less than a second preset included angle and the second moving speed being greater than the first moving speed, cancelling releasing the target skill.
7. The method of claim 1, wherein, determining whether to cancel releasing the target skill based on the second moving speed, specifically comprising: obtaining a moving distance from the target touch point to an ending touch point of the second dragging operation; in response to determining that the second moving speed is greater than a preset threshold and the moving distance is greater than a preset distance, canceling releasing the target skill.
8. The method of claim 4, wherein, determining whether to cancel releasing the target skill based on the second moving speed, specifically comprising: obtaining a moving distance from the target touch point to an ending touch point of the second dragging; in response to determining that an included angle between the first direction and the second direction is greater than a first preset included angle, the second moving speed is greater than a preset threshold, and the moving distance is greater than a preset distance, canceling releasing the target skill.
9. The method of claim 1, wherein, determining whether to cancel releasing the target skill based on the second moving speed, specifically comprising: obtaining a moving distance from the target touch point to an ending touch point of the second dragging operation stopping moving; in response to determining that the second moving speed is greater than the first moving speed and the moving distance is greater than a preset distance, canceling releasing the target skill.
10. The method of claim 1, wherein, determining whether to cancel releasing the target skill based on the second moving speed, specifically comprising: obtaining a first direction determined according to a starting touch point of the first dragging operation and the target touch point; obtaining a second direction determined according to the target touch point and an ending touch point of the second dragging operation; in response to determining that an included angle between the first direction and the second direction is greater than a preset included angle and the second moving speed is greater than the first moving speed, canceling releasing the target skill.
11. The method of claim 10, wherein, determining whether to cancel releasing the target skill based on the second moving speed, specifically comprising: obtaining a moving distance from the target touch point to an ending touch point of the second dragging operation; in response to determining that an included angle between the first direction and the second direction is greater than a first preset included angle, the second moving speed is greater than the first moving speed, and the moving distance is greater than a preset distance, canceling releasing the target skill.
12. The method of claim 1, wherein, after responding to receiving the first dragging operation on the target skill control in the plurality of skill controls, the method further comprises: in response to receiving a skill release instruction, releasing the target skill based on the target touch point.
13. A skill display control device characterized by comprising: comprising: a first triggering module, in response to receiving the first dragging operation on the target skill control in the plurality of skill controls, adjusting a targeting direction or a targeting position of the target skill according to a touch point of the first dragging operation; a second triggering module, in response to the first dragging operation entering a pause state from a moving state, determining a target touch point corresponding to the pause state; a skill control module, in response to receiving a second dragging operation moving from the target touch point as a starting point, determining whether to cancel releasing the target skill based on a second moving speed of the second dragging operation; the second dragging operation is a dragging operation moving from the target touch point to an initial position of the target skill control; wherein the skill control module is specifically configured to: In response to determining that the second movement speed is greater than a preset threshold, or, in response to determining that the second movement speed is greater than a first movement speed of the first drag operation, cancel releasing the target skill.
14. An electronic device, comprising: A computer program product comprising a memory, a processor and a computer program stored on the memory and executable by the processor, the processor implementing the method of any of claims 1 to 12 when executing the program.
15. A non-transitory computer-readable storage medium, comprising: The non-transitory computer readable storage medium stores computer instructions for causing a computer to perform the method of any of claims 1 to 12.
Citation Information
Patent Citations
Information processing method, information processing device, electronic equipment and storage medium
CN107193479A