ACTION EXECUTION METHOD, ACTION EXECUTION DEVICE, COMPUTER PROGRAM, AND ELECTRONIC DEVICE

The action execution method in racing games adjusts the target object's trajectory through timed touch operations on a virtual button, reducing collisions and error rates by optimizing manual control of drift actions.

JP7531966B2Active Publication Date: 2024-08-13TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2021531788
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-05-05
Filing Date
2020-04-03
Publication Date
2024-08-13
Estimated Expiration
2040-04-03

AI Technical Summary

Technical Problem

Racing game applications face high error rates due to the player's manual control of drift actions, leading to increased susceptibility to centrifugal forces and collisions with the track.

Method used

An action execution method that includes setting a virtual button to a touch-permitted state after a target action, detecting a first touch operation, and within a time threshold, detecting a second touch to control the target object to perform an acceleration operation, adjusting its trajectory to reduce collisions.

Benefits of technology

Reduces the error rate of action execution by minimizing collisions and optimizing the target object's trajectory, thereby improving gameplay performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007531966000001
    Figure 0007531966000001
  • Figure 0007531966000002
    Figure 0007531966000002
  • Figure 0007531966000003
    Figure 0007531966000003
Patent Text Reader

Abstract

An action execution method, an action execution device, a storage medium, and an electronic device, the method including: a step (S202) of setting a button state of a first virtual button to a touch-permitted state when a target object controlled by a client completes one action combination during a process of executing one round of a game, wherein the first virtual button is used to trigger an acceleration operation to be performed on the target object; a step (S204) of detecting a first touch operation to be performed on the first virtual button in the touch-permitted state; a step (S206) of detecting a second touch operation to be performed on the control button for controlling the target object to perform the acceleration operation within a target period when the first touch operation is detected; and a step (S208) of controlling the target object to perform the target action during the acceleration operation when the second touch operation is detected within the target period, thereby solving the technical problem of a high error rate in action execution in related art.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application bearing application number 201910368919.9 and entitled "Action-Performing Method, Action-Performing Device, Storage Medium, and Electronic Device" filed with the China Patent Office on May 5, 2019, the entire contents of which are incorporated herein by reference.

[0002] TECHNICAL FIELD This application relates to the field of computers, and in particular to action execution. [Background technology]

[0003] At present, in the game scene of a racing game application, different racing tracks are often designed for players, and the racing tracks include curves with different turning angles. In order to shorten the time that a target object controlled by a player runs through the curve, the player often uses a control button installed in a human-computer interaction interface to control the target object to perform a drift action when passing through the curve.

[0004] However, due to the different levels of operation of the player manually controlling the target object to perform the drift action, the above target object will be more susceptible to the centrifugal force in the drifting process, and will tend to slide sideways on the curve, and will eventually get out of control and hit the wall, resulting in a longer time for the target object to complete the racing task. That is, in the action execution method provided by the related art, the requirements for the player's operation skill to control the target object to perform the drift action are relatively high, and the player is prone to operation errors, leading to the problem of a high execution error rate of the above action.

[0005] Currently, no effective solutions have been proposed for the above problems. Summary of the Invention [Problem to be solved by the invention]

[0006] SUMMARY OF THE DISCLOSURE The embodiments of the present application provide an action execution method, an action execution device, a storage medium and an electronic device to at least solve the technical problem of high error rate of action execution in the related art. [Means for solving the problem]

[0007] According to one aspect of an embodiment of the present application, there is provided an action execution method applicable to a data processing device, the method including: when a target object controlled by a client completes one action combination during a process of executing one round of a game, a step of setting a button state of a first virtual button to a touch-allowed state, wherein the first virtual button is used to trigger an accelerating operation to be performed on the target object; a step of detecting a first touch operation to be performed on the first virtual button in the touch-allowed state; when the first touch operation is detected, controlling the target object to perform the accelerating operation, and detecting a second touch operation to be performed on a control button for controlling the target object to perform a target action within a target period, wherein the target period is equal to or less than a first time threshold; and when the second touch operation is detected within the target period, controlling the target object to perform the target action during the execution of the accelerating operation.

[0008] According to another aspect of an embodiment of the present application, an action execution device is further provided, the action execution device including: a setting unit for setting a button state of a first virtual button to a touch permitted state when a target object controlled by a client completes one target action in the process of executing one round of a game, the setting unit being used to trigger an accelerating operation to be performed by the first virtual button on the target object; a first detection unit for detecting a first touch operation performed on the first virtual button in the touch permitted state; a second detection unit for detecting a second touch operation performed on a control button for controlling the target object to perform a target action within a target period when the first touch operation is detected, the second detection unit being equal to or less than a first time threshold; and a first execution unit for controlling the target object to perform the target action during the execution of the accelerating operation when the second touch operation is detected within the target period.

[0009] According to yet another aspect of an embodiment of the present application, there is further provided a storage medium having a computer program stored thereon, the computer program being configured to perform the above-mentioned method of performing an action when executed.

[0010] According to yet another aspect of an embodiment of the present application, there is further provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executed by the processor, the processor executing the above-mentioned action execution method by the computer program.

[0011] According to one aspect of embodiments of the present application, there is also provided a computer program product including instructions which, when executed on a computer, cause said computer to perform the above method of performing actions.

[0012] In an embodiment of the present application, in the process of playing one round of a game, if a first touch operation for triggering performing an acceleration operation on a target object is detected, and a second touch operation for performing on a control button for controlling the target object to perform a target action is detected within the target period, the target object is controlled to perform the above-mentioned target action during the execution of the acceleration operation, so that the speed of the target object generated by the acceleration operation is used to adjust the trajectory of the target object in the target action, and the number of collisions of the target object in one round of a game is reduced, thereby achieving the effect of reducing the error rate of action execution, and overcoming the problem in related technologies of high error rate due to the influence of the player's manual operation level.

[0013] The drawings described herein are provided for further understanding of the present application and constitute a part of the present application. The illustrative examples and the description thereof are for the purpose of interpreting the present application and are not to be construed as undue limitations of the present application. [Brief description of the drawings]

[0014] [Figure 1] FIG. 2 is a schematic diagram of a hardware environment for an arbitrary action execution method according to an embodiment of the present application. [Diagram 2] 1 is a flowchart of a method for performing any action according to an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of an arbitrary curve according to an embodiment of the present application. [Figure 4] FIG. 2 is a schematic diagram of a button state change of an arbitrary first virtual button according to an embodiment of the present application. [Diagram 5] FIG. 2 is a schematic diagram of a process for controlling a target object to perform an arbitrary target action according to an embodiment of the present application. [Figure 6] 4 is a flowchart of another method for performing an arbitrary action according to an embodiment of the present application. [Figure 7] 13 is a schematic diagram of acting forces when an arbitrary target object performs a target action according to an embodiment of the present application; [Figure 8] 13 is a schematic diagram of acting forces when another arbitrary target object performs a target action according to an embodiment of the present application. FIG. [Figure 9] 1 is a schematic diagram of acting forces when an arbitrary target object performs a target action according to the related art; [Figure 10] 1 is a schematic diagram of the configuration of an arbitrary action execution device according to an embodiment of the present application. [Figure 11] FIG. 1 is a schematic diagram of an arbitrary electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] In order to allow those skilled in the art to better understand the solution of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without inventive efforts should be included in the protection scope of the present application.

[0016] It should be noted that the terms "first", "second", and the like in the specification, claims, and drawings of this application are intended to distinguish between similar objects and not necessarily to describe a particular order or priority. It should be understood that the data used in this manner may be interchanged where appropriate, and that the embodiments of this application described herein may be performed in an order other than that shown or described herein. In addition, the terms "comprise" and "have" and variations thereof are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those explicitly listed, and may include those not explicitly listed or inherent in these processes, methods, products, or devices.

[0017] Regarding the technical problem of high error rate of action execution in related technologies in the background art, the embodiments of the present application provide an action execution method that can effectively solve the technical problem of high error rate of action execution in related technologies.

[0018] Specifically, in the action execution method according to the embodiment of the present application, in the process of executing one round of a game, when a target object controlled by a client completes one action combination, the button state of a first virtual button is set to a touch-permitted state, a first touch operation performed on the first virtual button in the touch-permitted state is detected, when the first touch operation is detected, the target object is controlled to execute an accelerating operation, and within a target period, a second touch operation is detected on a control button for controlling the target object to execute a target action, and when the second touch operation is detected within the target period, the target object is controlled to execute the target action during the execution of the accelerating operation. Note that the first virtual button triggers the accelerating operation to be executed on the target object, and the target period is equal to or less than a first time threshold.

[0019] Thus, in the embodiment of the present application, in the process of playing one round of a game, if a first touch operation for triggering performing an acceleration operation on a target object is detected, and a second touch operation for performing on a control button for controlling the target object to perform a target action is detected within the target period, the target object is controlled to perform the above-mentioned target action during the execution of the acceleration operation, so that the speed of the target object generated by the acceleration operation is used to adjust the trajectory of the target object in the target action, and the number of collisions of the target object in one round of a game is reduced, thereby achieving the effect of reducing the error rate of action execution, and overcoming the problem in related technologies of a high error rate due to the influence of the player's manual operation level.

[0020] The action execution method according to the embodiment of the present application can be applied to data processing devices such as terminal devices, servers, etc. The terminal devices can be specifically smartphones, computers, personal digital assistants (PDAs), tablet computers, etc., and the servers can be specifically application servers or web servers. In practical deployment, the servers can be standalone servers, cluster servers, or cloud servers.

[0021] When the action execution method according to the embodiment of the present application is performed by a terminal device, the terminal device obtains each touch operation (e.g., combination action, etc.) of the user on the client, and executes the action execution method according to the embodiment of the present application. When the action execution method according to the embodiment of the present application is performed by a server, the server obtains each touch operation of the user on the client uploaded from the terminal device, and executes the action execution method according to the embodiment of the present application.

[0022] It should be noted that the process of the server executing the process of controlling the target object to perform the target action during the execution of the acceleration operation is specifically as follows: The server itself directly controls the target object to perform the target action during the execution of the acceleration operation; or the server first generates a control command for controlling the target object to perform the target action during the execution of the acceleration operation and sends it to the terminal device, and the terminal device controls the target object to perform the target action during the execution of the acceleration operation based on the control command. Similarly, the process of the server executing the process of setting the button state of the first virtual button to the touch-allowed state is specifically as follows: The server itself directly sets the button state of the first virtual button to the touch-allowed state; or the server first generates a state change command for setting the button state of the first virtual button to the touch-allowed state and sends it to the terminal device, and the terminal device sets the button state of the first virtual button to the touch-allowed state based on the state change command.

[0023] In order to easily understand the technical solution according to the embodiments of the present application, the following provides an example of an application scenario in which the action execution method according to the embodiments of the present application can be applied, taking as an example the application of the action execution method according to the embodiments of the present application to a user device (i.e., a terminal device) on which a game application client is installed, as shown in FIG. 1.

[0024] As an optional embodiment, the above action execution method can be applied to, but is not limited to, a hardware environment as shown in FIG. 1. Assume that a game application client (e.g., a racing game application client as shown in FIG. 1) is installed on a user device 102, and the user device 102 includes a human-computer interaction screen 104, a processor 106, and a memory 108. The human-computer interaction screen 104 detects a human-computer interaction operation (e.g., a touch operation) through a human-computer interaction interface corresponding to the above client. The processor 106 generates a corresponding operation command based on the human-computer interaction operation, and controls a target object controlled by the above client to perform a corresponding action in response to the operation command. The memory 108 stores attribute information related to the operation command and the target object. For example, the attribute information includes, but is not limited to, button state information of a virtual button for controlling a target virtual object in the human-computer interaction interface displayed on the client.

[0025] In the process of executing one round of the game, when the target object controlled by the client completes one action combination, the user device 102 sets the button state of the first virtual button 110 displayed on the human-computer interaction screen 104 to a touch-allowed state. As in step S102, the processor 106 detects a first touch operation performed on the first virtual button in the touch-allowed state. Thereafter, as in steps S104 and S106, when the first touch operation is detected, the processor 106 controls the target object to perform an acceleration operation, and detects a second touch operation performed on the control button 112 for controlling the target object to perform a target action within the target period. When the second touch operation is detected within the target period, the processor 102 controls the target object to perform the target action during the execution of the acceleration operation. As in step S108, the human-computer interaction screen 104 displays the target action being performed by the target object.

[0026] As described above, in this embodiment, in the process of executing one round of a game, when the target object controlled by the client completes one action combination, the button state of the first virtual button for triggering an acceleration operation to be executed on the target object is set to a touch-permitted state. Then, a first touch operation to be executed on the first virtual button is detected. When the first touch operation is detected, the target object is controlled to execute an acceleration operation, and a second touch operation to be executed on the control button for controlling the target object to execute a target action is detected within the target period. When the second touch operation is detected within the target period, the target object is controlled to execute the target action during the execution of the acceleration operation, so that the target object uses the velocity generated by the acceleration operation to adjust the trajectory of the target object in the target action, and the number of collisions of the target object in one round of a game is reduced, thereby achieving the effect of reducing the error rate of action execution, and overcoming the problem in the related art of a high error rate due to the influence of the player's manual operation level.

[0027] Optionally, in this embodiment, the above-mentioned user device is a terminal device that supports running an application client, such as, but not limited to, a mobile phone, a tablet computer, a laptop, a PC, etc. The above is merely an example, and this embodiment is not limited thereto.

[0028] Optionally, as an optional embodiment, as shown in FIG. 2, the above action execution method includes the following steps: In step S202, during the process of executing one round of the game, when the target object controlled by the client completes one action combination, the button state of the first virtual button is set to a touch-allowed state, and the first virtual button triggers an acceleration operation to be performed on the target object.

[0029] In step S204, a first touch operation performed on the first virtual button in the touch permitted state is detected.

[0030] In step S206, if a first touch operation is detected, a target object is controlled to perform an acceleration operation, and a second touch operation is detected within a target period to be performed on a control button for controlling the target object to perform a target action, the target period being less than or equal to a first time threshold.

[0031] In step S208, if a second touch operation is detected within the target period, the target object is controlled to execute the target action while the acceleration operation is being executed.

[0032] Optionally, in this embodiment, the above action execution method can be applied in the process of executing one round of a game, but is not limited thereto. When the target object controlled by the client completes one action combination, the button state of the first virtual button for triggering an acceleration operation to be performed on the target object is adjusted and set to a touch-permitted state. Then, the action trajectory of the target object performing the target action is automatically adjusted using the speed generated in the process of the target object performing the acceleration operation, thereby reducing the number of collisions of the target object, thereby achieving a reduction in the error rate of the target object performing the target action. For example, taking the above game application as an example that the above game application is a racing game application, the above target object participating in one round of a game is a virtual object operated and controlled by the racing game application, such as a virtual character, virtual equipment, virtual vehicle, etc., but is not limited thereto. In the process of controlling the target object to perform one round of game tasks on the racing track, if an acceleration operation to be performed on the target object is detected and it is detected that the target object is controlled to perform a drift action within the target period, the target object is controlled to perform a drift action using the increased speed after performing the acceleration operation, so that the action trajectory formed by the target object in the process of performing the drift action is biased toward the moving direction of the target object, thereby reducing the number of collisions of the target object on the racing track. This embodiment is not limited to this.

[0033] As described above, in this embodiment, when a first touch operation for triggering the execution of an acceleration operation on a target object is detected during the execution of one round of a game, and a second touch operation for performing on a control button for controlling the target object to perform a target action is detected within the target period, the target object is controlled to perform the above-mentioned target action during the execution of the acceleration operation, so that the target object uses the speed generated by the acceleration operation to adjust the trajectory of the target object in the target action, thereby reducing the number of collisions of the target object in one round of a game, thereby achieving the effect of reducing the error rate of action execution, and overcoming the problem in related technologies of a high error rate due to the influence of the player's manual operation level.

[0034] Optionally, in this embodiment, the above action combination includes, but is not limited to, at least two actions performed when the target object passes through a curve installed on the racing track. For example, the curve includes, but is not limited to, an S-shaped curve, and the corresponding action combination includes, but is not limited to, a bidirectional drift action. For example, when an S-shaped curve 302 as shown in FIG. 3 is installed on the racing track, the action combination performed by the target object includes, but is not limited to, a left drift action and a right drift action. The above is merely an example, and this embodiment is not limited thereto.

[0035] Furthermore, in this embodiment, the above target action includes, but is not limited to, a drift action performed when the target object passes through a curve installed on a racing track. That is, the above target action includes, but is not limited to, one action in the above action combination, for example, a drift action to the left or a drift action to the right. The above is merely an example, and this embodiment is not limited thereto.

[0036] Optionally, in this embodiment, the first virtual button is for, but is not limited to, triggering an acceleration operation to be performed on the target object. The button state of the first virtual button includes, but is not limited to, a touch-allowed state and a non-touch-allowed state. In the process of playing one round of a game, when the target object completes one action combination, the first virtual button correspondingly adjusts the button state of the first virtual button displayed on the human-computer interaction interface, for example, from a non-touch-allowed state to a touch-allowed state. For example, the first virtual button is taken as an "acceleration button" as an example, as shown in FIG. 4, the acceleration button 402 in the non-touch-allowed state is displayed as a white circle (as shown in FIG. 4(a)) and cannot receive a touch operation, and the acceleration button 404 in the touch-allowed state is displayed as a corresponding icon (a flame shown in FIG. 4(b)) and can receive a touch operation.

[0037] Optionally, in this embodiment, after detecting a first touch operation performed on a first virtual button in a touch-allowed state, the target object is controlled to perform an acceleration operation in response to the first touch operation, and within the target period, a second touch operation is detected to determine whether to control the target object to perform a target action during the execution of the acceleration operation. That is, by using the speed bonus effect generated by the acceleration operation to intervene in the target action performed by the target object, the action trajectory of the target object is biased toward the moving direction of the target object instead of the sliding direction, thereby reducing the influence of the centrifugal force received by the target object in the process of performing the target action, thereby reducing the number of collisions of the target object caused by sliding and reducing the error rate of the target object performing the target action.

[0038] It should be noted that the above target period is equal to or less than a first time threshold, and the first time threshold can be set to different values ​​according to different real-time requirements, but is not limited thereto. In this embodiment, when a first touch operation is detected, detecting a second touch operation within the target period is to minimize the time difference between the two touch operations, and to make the acceleration operation and the target action as simultaneous as possible. The above is only an example, and this embodiment is not limited thereto.

[0039] A specific description will be given with reference to the examples shown in FIG. 5 and FIG. Still assuming a racing game application as an example, in the process of playing one round of the game, the target object (virtual object 502 shown in FIG. 5) controlled by the client executes a combination of actions. For example, as shown in (a) and (b) of FIG. 5, the virtual object 502 first executes an action of drifting to the left, and then executes an action of drifting to the right. In the above process, the button state of the first virtual button is the acceleration button 402 in the non-touch allowed state, as shown in (a) and (b) of FIG. 5.

[0040] As shown in Fig. 5(c), when one of the above action combinations is completed, the button state of the first virtual button is adjusted and set to a touch-permitted state, for example, the acceleration button 404 in the touch-permitted state shown in the drawing. Furthermore, when a first touch operation is detected to be performed on the acceleration button 404 in the touch-permitted state, as shown in Fig. 5(d), when a second touch operation is detected to be performed on the control button 504 for controlling the virtual object 502 to perform an action of drifting to the left within the target period, the virtual object 502 is controlled to perform an action of drifting to the left while accelerating, so that the action trajectory of the virtual object 502 can be adjusted to be biased toward the traveling direction during the process of drifting to the left, and the influence of centrifugal force can be reduced, and the virtual object 502 can be prevented from colliding with the boundary of the racing track, thereby achieving the purpose of reducing the error rate.

[0041] Further, the logic flow of the action execution process shown in FIG. 5 above may be steps S602 to S612 shown in FIG. As in steps S602 and S604, the client controls the target object (virtual object 502 as shown in FIG. 5) to perform the action of drifting to the right first, and then controls the target object to perform the action of drifting to the left. After the target object completes the action combination of the above two drift actions, execute step S606 to adjust the first virtual button (accelerate button shown in FIG. 5) from the accelerate button 402 in the non-touch allowed state to the accelerate button 404 in the touch allowed state. Then, execute steps S608 to S612, specifically including the steps of detecting whether a first touch operation is performed on the first virtual button, controlling the target object to perform an accelerate operation when the first touch operation is detected, detecting whether a second touch operation is performed on the control button within the target period, and controlling the target object to perform a target action (e.g., an action of drifting to the left or an action of drifting to the right) during the execution of the accelerate operation when the above second touch operation is detected.

[0042] According to an embodiment of the present application, in the process of executing one round of a game, when a target object controlled by a client completes one action combination, the button state of a first virtual button for triggering an acceleration operation to be executed on the target object is set to a touch-permitted state. Then, a first touch operation to be executed on the first virtual button is detected. When the first touch operation is detected, the target object is controlled to execute an acceleration operation, and a second touch operation to be executed on a control button for controlling the target object to execute the target action within a target period is detected. When the second touch operation is detected within the target period, the target object is controlled to execute the target action during the execution of the acceleration operation, so that the target object uses the velocity generated by the acceleration operation to adjust the trajectory of the target object in the target action, thereby reducing the number of collisions of the target object during the process of one round of a game, thereby achieving the effect of reducing the error rate of action execution, and overcoming the problem of a high error rate due to the influence of the player's manual operation level in the related art. Furthermore, when the number of collisions is reduced, the time of one round of a game in which the target object participates is further shortened, and the winning rate of the target object is improved.

[0043] As an optional solution, the step of controlling the target object to perform the target action while performing the acceleration operation when a second touch operation is detected within the target period specifically includes the following steps S1 to S3. In step S1, the force received when the target object executes an acceleration operation is set as the action acting force when executing the target action. In step S2, the action action force is used to determine an actual velocity vector of the target object when it performs the target action. In step S3, a target action trajectory when the target object performs the target action is determined based on the actual velocity vector, and the number of collisions occurring when the target object performs the target action according to the target action trajectory is smaller than a target threshold value.

[0044] In this embodiment, in the process of executing one round of the game, the target object receives at least two acting forces, namely, a force for driving the target object to move forward and a friction force due to interaction with the track surface. For example, assuming that the target action is a drift action, in the process of the target object performing a drift action while performing an acceleration operation, the force for driving the target object to move forward, which is generated by the acceleration operation, is the action acting force of the target object. The friction force generated in the process of the target object performing the target action causes the target object to slide to the side of the track.

[0045] Specifically, a description will be given with reference to the example shown in FIG. 7. Taking a racing game application as an example, a virtual vehicle participating in one round of a racing game is a target object. In the process of performing an acceleration operation, it is assumed that the virtual vehicle performs a drift action to the right. The force received during the execution of the acceleration operation is a drift force 702 for performing a drift action to the right, as shown in FIG. 7. The friction force is a friction force 704 as shown in FIG. 7, which causes the virtual vehicle to generate a centrifugal velocity vector that slides to the left side of the track. The above is only an example, and this embodiment is not limited to this.

[0046] Optionally, in this embodiment, the above step S2 of using the action action force to determine the actual velocity vector when the target object performs the target action may include steps S21 to S22.

[0047] In step S21, a forward velocity vector of the target object when performing the target action is determined based on the action action force, and the magnitude of the forward velocity vector of the target object when performing the target action is greater than the magnitude of the forward velocity vector of the target object in an already completed target action.

[0048] In step S22, an actual velocity vector when the target object performs the target action is determined based on the forward velocity vector when the target object performs the target action and the centrifugal velocity vector generated when the target object performs the target action, and an angle between the direction of the actual velocity vector when the target object performs the target action and the direction of the forward velocity vector when the target object performs the target action is smaller than a first angle threshold.

[0049] It should be noted that the above-mentioned first angle threshold is set to different values ​​according to different scene settings, but is not limited thereto. For example, the above-mentioned first angle threshold is the angle between the actual velocity vector and the forward velocity vector when the target object directly executes the target action before executing the acceleration operation, but is not limited thereto. The above is only an example, and this embodiment is not limited thereto.

[0050] Specifically, a description will be given with reference to an example shown in FIG. Taking a racing game application as an example, it is assumed that a virtual vehicle participating in one round of a racing game is a target object. In the process of performing an acceleration operation, the virtual vehicle performs a drift action to the right, and the force received during the execution of the acceleration operation is an action acting force (e.g., a drift force to the right), which is used to determine a forward velocity vector (forward velocity vector 802 as shown in FIG. 8) in the process of the virtual vehicle drifting to the right, and the friction force generated in the process of the virtual vehicle running is used to determine a centrifugal velocity vector (centrifugal velocity vector 804 as shown in FIG. 8) of the virtual vehicle.

[0051] Further, as shown in Figure 8, the forward velocity vector 802 and the centrifugal velocity vector 804 are used to calculate a vector to obtain an actual velocity vector of the virtual vehicle (actual velocity vector 806 as shown in Figure 8). The angle α between the actual velocity vector 806 and the forward velocity vector 802 is less than a first angle threshold.

[0052] Also, assuming that FIG. 9 shows a situation where the target object directly performs the target action without performing an acceleration operation, a vector can be calculated based on the forward velocity vector 902 and the centrifugal velocity vector 904 to determine the actual velocity vector 906. The angle between the actual velocity vector 906 and the forward velocity vector 902 is β. Under the intervention of the acceleration operation, the forward velocity vector 802 shown in FIG. 8 is greater than the forward velocity vector 902 shown in FIG. 9. Correspondingly, by comparing FIG. 8 and FIG. 9, it can be seen that the angle α is smaller than the angle β. Here, it can be assumed, but not limited to, that the first angle threshold is the angle β.

[0053] In an embodiment of the present application, the force received by the target object when performing an acceleration operation is used as the action force when the target object performs the target action, and the action trajectory of the target object when performing the target action can be adjusted using the action force, thereby enabling optimization control of the action trajectory of the target object to be achieved, reducing the number of collisions due to the influence of frictional forces and reducing the execution error rate when the target object performs the target action.

[0054] As an optional solution, when detecting the first touch operation, controlling the target object to perform an acceleration operation may specifically include steps S31 to S33. In step S31, if a first touch operation is detected, the number of times that the first virtual button has currently been touched in one round of the game is determined. In step S32, a target acceleration that matches the number of times is obtained, and the larger the number of times, the larger the target acceleration becomes. In step S33, the target object is controlled to perform an acceleration operation based on the target acceleration.

[0055] Optionally, in this embodiment, the number of times the first virtual button is touched in one round of the game is greater than 1, but is not limited thereto. In this embodiment, as the number of times the first virtual button is touched increases, the target acceleration corresponding to the acceleration operation is also adjusted to increase, but is not limited thereto. That is, the more times the first virtual button is touched, the greater the target acceleration. Note that the target acceleration determines a corresponding adjustment ratio based on the number of times, but is not limited thereto.

[0056] Optionally, in this embodiment, the step S32 of obtaining a target acceleration matching the number of times may specifically include steps S41 to S43. In step S41, a target ratio matching the number of times is obtained. In step S42, the forward acceleration of the target object is adjusted and increased according to the target ratio to obtain an updated forward acceleration. In step S43, the updated forward acceleration is set as the target acceleration.

[0057] Optionally, in this embodiment, the step of obtaining a target ratio matching the number of times includes, but is not limited to, any of the following: 1) Search for the target ratio arranged for the current number of times from the pre-established mapping relationship. There may be no association relationship between the target ratios corresponding to different numbers of times, but this is not limited thereto. For example, when the current number of times is m, the corresponding target ratio is r m = 10%, and the current count is m+1, the corresponding target ratio is r m+1 = 12%, and the current count is m+2, the corresponding target ratio is r m+2 = 15%, where m is a positive integer. 2) Calculate the corresponding target ratio based on the current number of times. There may be, but is not limited to, a relationship between the target ratios corresponding to different numbers of times. For example, assume that the ratio increases by 5% with each adjustment. If the current number of times is m, the corresponding target ratio is r m = 10%, and the current count is m+1, the corresponding target ratio is r m+1 = 15% and the current count is m+2, the corresponding target ratio is r m+2 =20%.

[0058] It should be noted that the above is merely an example, and when the first virtual button is touched continuously in one round of a game, the above target ratio matching the number of times may include, but is not limited to, other arrangement methods. In this embodiment, it is not limited thereto.

[0059] According to an embodiment of the present application, as the number of times the first virtual button is touched increases, the acceleration effect of the acceleration operation is correspondingly adjusted, so that the target object completes one round of the game faster and more efficiently, shortens the participation time of the target object, and improves the winning rate of the target object.

[0060] As an optional solution, the above control button (i.e., the control button for controlling the target object to perform the target action) includes a first control button and a second control button, the first control button is for adjusting the traveling direction of the target object, and the second control button is for triggering the target object to perform the target action, and before setting the button state of the first virtual button to a touch-allowed state, the action execution method according to the embodiment of the present application may further include steps S210 and S212. In step S210, an operation command generated by pressing and holding a first control button and a second control button in a human-computer interaction interface displayed on a client is obtained. In step S212, in response to the operation command, the target object is controlled to perform an action combination, the action combination including a first action for controlling the target object to be performed according to a first direction as a traveling direction, and a second action for controlling the target object to be performed according to a second direction as a traveling direction.

[0061] Optionally, in this embodiment, the first control button is a direction button including, but not limited to, a left direction button and a right direction button. The second control button is a drift button for triggering a drift action, but not limited to, when the first control button and the second control button are pressed and held at the same time, an operation command is generated, and the operation command instructs the target object to perform an action combination, the action combination includes a first action to control the target object to perform according to a first direction as a moving direction, and a second action to control the target object to perform according to a second direction as a moving direction, for example, a drift action to the left and a drift action to the right.

[0062] According to an embodiment of the present application, before setting the button state of the first virtual button to the touch-allowed state, first detect whether the target object completes the execution of the action combination, and if the action combination is completed, determine to adjust the button state of the first virtual button to use the acceleration operation triggered by the first virtual button to intervene in the target action executed by the target object, thereby optimizing the action trajectory of the target object to execute the target action, shortening the time to participate in one round of the game, and improving the winning rate of the target object in one round of the game.

[0063] As an optional solution, the step of setting the button state of the first virtual button to a touch-allowed state may specifically include steps S51 to S52. In step S51, a target angle generated in the process of switching the target object from a first action to a second action is detected, and the target angle is the angle between the moving direction of the target object and the sliding direction of the target object. In step S52, if the target angle is equal to or smaller than the second angle threshold, it is determined to adjust the button state of the first virtual button from the non-touch permitted state to the touch permitted state.

[0064] Specifically, a description will be given with reference to FIG. 5. Taking a racing game application as an example, it is assumed that a target object (virtual object 502 as shown in the drawing) controlled by a client is detected to perform an action combination during the execution process of one round of the game. The drift angle generated when the virtual object 502 performs a first action (e.g., a drift action to the right) is a positive angle, for example, the included angle between the target object's forward direction (e.g., the direction of the forward speed vector of the virtual vehicle) and the sliding direction (e.g., the direction of the actual speed vector of the virtual vehicle) is +γ, and the drift angle generated when the target object performs a second action (e.g., a drift action to the left) is a negative angle, for example, the included angle between the target object's forward direction (e.g., the direction of the forward speed vector of the virtual vehicle) and the sliding direction (e.g., the direction of the actual speed vector of the virtual vehicle) is -θ. γ and θ may be any angle, and γ and θ may be the same or different.

[0065] Furthermore, currently, when the virtual object 502 has already completed a first action (e.g., a drift action to the right) and obtains an action command to perform a second action (e.g., a drift action to the left), in the process, a target angle (also called a drift angle) generated in the process of switching from the drift action to the right to the drift action to the left is detected, and the target angle gradually decreases from a positive angle to 0, and continues to decrease from 0 to a negative angle. If the second angle threshold is preset to 40°, when it is detected that the target angle has decreased to 40°, it is determined to adjust the button state of the first virtual button from a non-touch allowed state to a touch allowed state. Correspondingly, the human-computer interaction interface displayed on the client is correspondingly adjusted from the acceleration button 402 (shown as a white circle) in a non-touch allowed state to the acceleration button 404 (corresponding icon (e.g., a flame as shown in the drawing)) in a touch allowed state, as shown in (b) and (c) of FIG. 5.

[0066] According to an embodiment of the present application, by detecting the target angle, triggering an automatic adjustment of the button state for the first virtual button is controlled, the button state adjustment operation is simplified, the operation efficiency is improved, a simplified action execution operation is realized, and the action execution efficiency is improved.

[0067] It should be noted that, in the above-mentioned method embodiments, for ease of explanation, they are represented as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action order, since some steps can be performed in other orders or simultaneously according to the present application. Next, those skilled in the art should also know that all the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily required in the present application.

[0068] According to another aspect of the embodiment of the present application, an action execution device for implementing the above action execution method is also provided. Note that, since the action execution device according to the embodiment of the present application is a device corresponding to the above action execution method, for the sake of brevity, the technical details of the action execution device will not be repeated. For the technical details of the action execution device, reference may be made to the relevant contents of the above action execution method.

[0069] As shown in FIG. 10, the action execution device A setting unit 1002 for setting a button state of a first virtual button to a touch-permitted state when a target object controlled by a client completes one target action in a process of playing one round of a game, the setting unit 1002 being used to trigger an acceleration operation performed on the target object; a first detection unit 1004 for detecting a first touch operation performed on a first virtual button in a touch-enabled state; a second detection unit 1006 for detecting, when detecting the first touch operation, a second touch operation performed on a control button for controlling the target object to perform an acceleration operation within a target period, the second detection unit 1006 for detecting a second touch operation performed on the control button for controlling the target object to perform a target action, the target period being equal to or less than a first time threshold; and a first execution unit 1008 for controlling the target object to perform the target action during the execution of the acceleration operation when a second touch operation is detected within the target period.

[0070] As described above, in the embodiment of the present application, when the target object controlled by the client completes one action combination during the execution of one round of the game, the button state of the first virtual button for triggering the execution of an acceleration operation on the target object is set to a touch-permitted state. Then, a first touch operation performed on the first virtual button is detected. When the first touch operation is detected, the target object is controlled to execute an acceleration operation, and a second touch operation is detected on the control button for controlling the target object to execute the target action within the target period. When the second touch operation is detected within the target period, the target object is controlled to execute the target action during the execution of the acceleration operation, so that the target object uses the velocity generated by the acceleration operation to adjust the trajectory of the target object in the target action, thereby reducing the number of collisions of the target object in one round of the game, thereby achieving the effect of reducing the error rate of the action execution, and overcoming the problem of a high error rate due to the influence of the player's manual operation level in the related art. Furthermore, when the number of collisions is reduced, the time of one round of the game in which the target object participates is further shortened, and the winning rate of the target object is improved.

[0071] As an optional solution, the first execution unit 1008 specifically: a first determination module for determining a force received by the target object when the target object performs an acceleration operation as an action acting force when the target action is performed; a second determination module for determining an actual velocity vector of the target object when performing the target action using the action application force; and a third determination module for determining a target action trajectory when the target object performs the target action based on the actual velocity vector, wherein the number of collisions occurring when the target object performs the target action according to the target action trajectory is less than a target threshold.

[0072] As an optional solution, in this embodiment, the above second determination module specifically includes: a first determination sub-module for determining a forward velocity vector of the target object when the target object performs the target action based on the action action force, the forward velocity vector of the target object when the target object performs the target action being greater than the forward velocity vector of the target object in a target action that has already been completed; and a second determination sub-module for determining an actual velocity vector when the target object performs the target action based on a forward velocity vector when the target object performs the target action and a centrifugal velocity vector generated when the target object performs the target action, wherein an angle between a direction of the actual velocity vector when the target object performs the target action and a direction of the forward velocity vector when the target object performs the target action is smaller than a first angle threshold.

[0073] As described above, in an embodiment of the present application, the force received by the target object when it performs an acceleration operation is set as the action action force when the target object performs a target action, and this action action force can be used to adjust the action trajectory of the target object when it performs the target action. This makes it possible to realize optimization control over the action trajectory of the target object, reduce the number of collisions due to the influence of frictional forces, and reduce the execution error rate when the target object performs the target action.

[0074] As an optional solution, the second detection unit 1006 specifically includes: a fourth determination module for determining, if a first touch operation is detected, a number of times the first virtual button is currently touched in the one round of the game; an acquisition module for acquiring a target acceleration matching the number of times, the target acceleration being larger as the number of times is larger; and a control module for controlling the target object to perform an acceleration maneuver based on the target acceleration.

[0075] Optionally, in this embodiment, the number of times the first virtual button is touched in one round of the game is greater than 1, but is not limited thereto. In this embodiment, as the number of times the first virtual button is touched increases, the target acceleration corresponding to the acceleration operation is also adjusted to increase, but is not limited thereto. That is, the more times the first virtual button is touched, the greater the target acceleration. Note that the target acceleration can determine a corresponding adjustment ratio based on the number of times, but is not limited thereto.

[0076] As an optional solution, in this embodiment, the above acquisition module specifically includes: an acquisition sub-module for acquiring a target ratio matching the number of times; an adjusting sub-module for adjusting and increasing the forward acceleration of the target object according to the target ratio to obtain an updated forward acceleration; and a third determining sub-module for determining the updated forward acceleration as a target acceleration.

[0077] As an optional solution, in this embodiment, the above-mentioned acquisition submodule specifically searches for the target ratio arranged for the current number of times from the pre-established mapping relationship.The target ratios corresponding to different numbers may have no association relationship, but is not limited thereto.

[0078] As an optional solution, in this embodiment, the above-mentioned acquisition submodule can specifically calculate the corresponding target ratio according to the current number of times. There may be, but is not limited to, a relationship between the target ratios corresponding to different numbers of times.

[0079] It should be noted that the above is merely an example, and when the first virtual button is touched continuously in one round of a game, the above target ratio matching the number of times may include, but is not limited to, other arrangement methods. In this embodiment, it is not limited thereto.

[0080] As described above, in the embodiment of the present application, as the number of times the first virtual button is touched increases, the acceleration effect of the acceleration operation is adjusted accordingly, so that the target object completes one round of the game faster and more efficiently, shortens the participation time of the target object, and improves the winning rate of the target object.

[0081] In an optional solution, the control button includes a first control button and a second control button, the first control button adjusting the direction of travel of the target object and the second control button triggering the target object to perform a target action. The action execution device further comprises: an acquisition unit for acquiring an operation command generated by long pressing a first control button and a second control button in a human-computer interaction interface displayed on a client before setting a button state of a first virtual button into a touch-allowed state, where the first control button is for adjusting a moving direction of a target object, and the second control button is for triggering the target object to perform a target action, and the control buttons include a first control button and a second control button; a second execution unit for controlling the target object to execute the action combination in response to the operation command; The action combination includes a first target action that controls the target object to be executed in a first direction as a traveling direction, and a second target action that controls the target object to be executed in a second direction as a traveling direction.

[0082] As described above, in the embodiment of the present application, before setting the button state of the first virtual button to the touch-allowed state, first detect whether the target object has completed the execution of the action combination, and if the action combination is completed, determine to adjust the button state of the first virtual button to use the acceleration operation triggered by the first virtual button to intervene in the target action executed by the target object, thereby optimizing the action trajectory of the target object to execute the target action, shortening the time to participate in one round of the game, and improving the winning rate of the target object in one round of the game.

[0083] As an optional solution, the installation unit 1002 specifically includes: A detection module for detecting a target angle generated in a process in which the target object switches from a first target action to a second target action, the target angle being an angle between a moving direction of the target object and a sliding direction of the target object; and a placement module for determining to adjust a button state of the first virtual button from a non-touch-allowed state to a touch-allowed state when the target angle is less than or equal to a second angle threshold.

[0084] As described above, in the embodiment of the present application, by detecting the target angle, triggering the automatic adjustment of the button state of the first virtual button is controlled, the button state adjustment operation is simplified, and the operation efficiency is improved, thereby realizing a simplified action execution operation and improving the action execution efficiency.

[0085] According to another aspect of an embodiment of the present application, there is also provided an electronic device for performing the above-mentioned action execution method, and as shown in FIG. 11, the electronic device includes a memory 1102 and a processor 1104, wherein the memory 1102 stores a computer program, and the processor 1104 is configured to execute steps in any of the above-mentioned method embodiments by the computer program.

[0086] Optionally, in this embodiment, the above electronic device may be located in at least one of a plurality of network devices of a computer network.

[0087] Optionally, in this embodiment, said processor is configured to execute the following steps by a computer program: In the process of executing one round of the game, when the target object controlled by the client completes one target action, a button state of a first virtual button is set to a touch-permitted state, and the first virtual button is used to trigger an acceleration operation to be performed on the target object; detecting a first touch operation performed on a first virtual button in a touch-permitted state; when the first touch operation is detected, controlling the target object to perform an acceleration operation, and detecting a second touch operation performed on the control button for controlling the target object to perform a target action within a target period, the target period being equal to or less than a first time threshold; and when a second touch operation is detected within the target period, controlling the target object to perform the target action while the acceleration operation is being performed.

[0088] Optionally, those skilled in the art may understand that the configuration shown in FIG. 11 is only an example, and the electronic device may be a terminal device such as a smartphone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and a Mobile Internet Device (MID), a PAD, etc. FIG. 11 does not limit the configuration of the above electronic device. For example, the electronic device may include more or less components (e.g., a network interface, etc.) than those shown in FIG. 11, or a different configuration from that shown in FIG. 11.

[0089] The memory 1102 stores software programs and modules. Like the program instructions / modules corresponding to the action execution method and the action execution device in the embodiments of the present application, the processor 1104 executes each functional application and data processing by executing the software programs and modules stored in the memory 1102, that is, realizes the above-mentioned action execution method. The memory 1102 may include a high-speed random memory, and may include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1102 further includes a memory that is remotely installed with respect to the processor 1104, and these remote memories may be connected to the terminal through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local network, a mobile communication network, and combinations thereof. The memory 1102 may specifically store information such as control information or operation instructions related to the target object, but is not limited to such information. 11, the memory 1102 includes, but is not limited to, the setting unit 1002, the first detection unit 1004, the second detection unit 1006 and the first execution unit 1008 in the action execution device. It also includes, but is not limited to, other module units in the action execution device. In this example, they will not be described repeatedly.

[0090] Optionally, the above-mentioned transmission device 1106 transmits and receives data through a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1106 includes a network interface controller (NIC) and can connect to other network devices and routers through a network cable to communicate with the Internet or a local network. In one example, the transmission device 1106 is a Radio Frequency (RF) module for communicating with the Internet in a wireless manner.

[0091] The electronic device further includes a display 1108 for displaying the target object and the target action to be performed by the target object, and a connection bus 1110 for connecting each modular component in the electronic device.

[0092] According to yet another aspect of an embodiment of the present application, there is also provided a storage medium having a computer program stored thereon, the computer program being configured, when executed, to perform the steps of any of the method embodiments described above.

[0093] Optionally, in this embodiment, the above storage medium is configured to store a computer program for performing the following steps: In the process of executing one round of the game, when the target object controlled by the client completes one target action, a button state of a first virtual button is set to a touch-permitted state, and the first virtual button is used to trigger an acceleration operation to be performed on the target object; detecting a first touch operation performed on a first virtual button in a touch-permitted state; when the first touch operation is detected, controlling the target object to perform an acceleration operation, and detecting a second touch operation performed on the control button for controlling the target object to perform a target action within a target period, the target period being equal to or less than a first time threshold; and when a second touch operation is detected within the target period, controlling the target object to perform the target action while the acceleration operation is being performed.

[0094] Optionally, in this embodiment, those skilled in the art can understand that all or part of the steps in each method of the above embodiment can be completed by instructing the hardware related to the terminal device through a program. The program can be stored in a computer-readable storage medium, and the storage medium can include a flash memory disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.

[0095] According to one aspect of embodiments of the present application, there is also provided a computer program product comprising instructions, which when executed on a computer, cause said computer to perform the steps in any of the method embodiments described above.

[0096] The numbers of the examples in the present application above are for illustrative purposes only and do not represent the superiority or inferiority of the examples.

[0097] When the integrated units in the above embodiments are realized in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage media. Based on this understanding, the technical proposal of the present application, or the part contributing to the existing technology, or all or part of the technical proposal can be embodied in the form of a software product. The computer software product is stored in a storage medium. The computer software product includes some instructions for making one or more computer devices (such as personal computers, servers or network devices) execute all or part of the steps of the method in each embodiment of the present application.

[0098] In the above embodiments of the present application, the description of each embodiment has its own focus. For parts not described in detail in an embodiment, reference can be made to the relevant descriptions of other embodiments.

[0099] It should be understood that in some embodiments according to the present application, the disclosed client can be realized in other ways. Also, the above-described device embodiments are merely exemplary, for example, the division of the above units is merely a division of logical functions, and in actual implementation, other division ways may exist, for example, multiple units or components may be combined or integrated into other systems, or some features may be ignored or not implemented. On the other hand, the shown or discussed mutual couplings or direct couplings or communication connections may be indirect couplings or communication connections through some interfaces, units or modules, and may be in electrical or other forms.

[0100] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, i.e., they may be located in one place or distributed among multiple network units. According to actual needs, some or all of the units may be selected to realize the purpose of the solution of the embodiment.

[0101] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, may exist physically alone, or two or more units may be integrated into one unit. The above integrated unit may be realized in the form of hardware or a software functional unit.

[0102] The above are only preferred embodiments of the present application, and those skilled in the art can make some improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also fall within the protection scope of the present application. [Explanation of symbols]

[0103] 102 user devices 104 Human Computer Interaction Screen 106 processors 108 Memory 110 First Virtual Button 112 Control Button 302 S-shaped curve 402 Acceleration button 404 Acceleration button 502 Virtual Objects 504 Control Button 702 Drift Power 704 Frictional force 802 Forward velocity vector 804 Centrifugal Velocity Vector 806 Velocity Vector 902 Forward velocity vector 904 Centrifugal Velocity Vector 906 Velocity Vector 1002 Installation unit 1004 First detection unit 1006 Second detection unit 1008 First Execution Unit 1102 Memory 1104 processor 1106 Transmission Equipment 1108 Display 1110 Connection Bus

Claims

1. A drift action execution method executed by a data processing device, comprising: a step of acquiring an operation command generated by pressing and holding a first control button and a second control button for controlling a target object controlled by a client in a human-computer interaction interface displayed on the client during a process of executing one round of a game, the first control button being for adjusting a moving direction of the target object, the first control button being a directional button including a left direction button and a right direction button, and the second control button being for triggering the target object to execute a target action, which is a second drift action different from a first drift action; a step of controlling the target object in response to the operation command so that the target object executes one action combination in the first drift action, the action combination including a first action for controlling the target object to be executed in a first direction as the traveling direction, and a second action for controlling the target object to be executed in a second direction as the traveling direction, the first direction being a direction operated by one of the left direction button or the right direction button, and the second direction being a direction operated by the other of the left direction button or the right direction button; setting a button state of a first virtual button to a touch-allowed state when the action combination is completed, the first virtual button being used to trigger an accelerating operation to be performed on the target object; detecting a first touch operation performed on the first virtual button in the touch permitted state; a step of detecting, when the first touch operation is detected, a second touch operation performed on the first control button and the second control button for controlling the target object to perform the acceleration operation within a target period, the second touch operation being performed on the first control button and the second control button for controlling the target object to perform the target action, the target period being equal to or less than a first time threshold; if the first touch operation is detected, determining a number of times the first virtual button has currently been touched in the one round of the game; obtaining a target acceleration that matches the number of times, the greater the number of times, the greater the target acceleration; obtaining a target ratio matching the number of times; adjusting and increasing a forward acceleration of the target object according to the target ratio to obtain an updated forward acceleration; setting the updated forward acceleration as the target acceleration; controlling the target object to perform the acceleration operation based on the target acceleration; and if the second touch operation is detected within the target period, controlling the target object to perform the target action while performing the acceleration operation.

2. When the second touch operation is detected within the target period, the step of controlling the target object to perform the target action during the execution of the acceleration operation includes: a step of setting a force received by the target object when the target object executes the acceleration operation as an action acting force when the target object executes the target action; using the action exertion force to determine an actual velocity vector of the target object as it performs the target action; 2. The method of claim 1, further comprising: determining a target action trajectory when the target object performs the target action based on the actual velocity vector, wherein a number of collisions occurring when the target object performs the target action according to the target action trajectory is less than a target threshold.

3. said step of determining an actual velocity vector of said target object when performing said target action using said action exertion force comprising: determining a forward velocity vector of the target object when performing the target action based on the action application force; 3. The method of claim 2, further comprising: determining an actual velocity vector when the target object performs the target action based on a forward velocity vector when the target object performs the target action and a centrifugal velocity vector generated when the target object performs the target action, wherein an angle between a direction of the actual velocity vector when the target object performs the target action and a direction of the forward velocity vector when the target object performs the target action is smaller than a first angle threshold.

4. The step of setting the button state of the first virtual button to a touch permission state includes: A step of detecting a target angle generated in a process in which the target object switches from the first action to the second action, the target angle being an angle between the moving direction of the target object and a sliding direction of the target object; and determining to adjust a button state of the first virtual button from a non-touch-allowed state to the touch-allowed state if the target angle is less than or equal to a second angle threshold.

5. A drift action execution device, an acquisition unit for acquiring an operation command generated by pressing and holding a first control button and a second control button for controlling a target object controlled by a client in a human-computer interaction interface displayed on a client during a process of executing one round of a game, the first control button being for adjusting a moving direction of the target object, the first control button being a directional button including a left direction button and a right direction button, and the second control button being for triggering the target object to execute a target action, which is a second drift action different from a first drift action; a second execution unit for controlling the target object in response to the operation command so that the target object executes one action combination in the first drift action, the action combination including a first action for controlling the target object to execute according to a first direction as the traveling direction, and a second action for controlling the target object to execute according to a second direction as the traveling direction, the first direction being a direction operated by one of the left direction button or the right direction button, and the second direction being a direction operated by the other of the left direction button or the right direction button; a setting unit for setting a button state of a first virtual button into a touch-allowed state when the action combination is completed, the first virtual button being used to trigger an accelerating operation to be performed on the target object; a first detection unit for detecting a first touch operation performed on the first virtual button in the touch permitted state; a second detection unit for detecting, when the first touch operation is detected, a second touch operation performed on the first control button and the second control button for controlling the target object to perform the acceleration operation within a target period, the second touch operation being performed on the first control button and the second control button for controlling the target object to perform the target action, the target period being equal to or less than a first time threshold; a fourth determination module for determining, if the first touch operation is detected, a number of times the first virtual button is currently touched in the one round of the game; an acquisition module for acquiring a target acceleration matching the number of times, the target acceleration being greater the greater the number of times; an acquisition submodule for acquiring a target ratio matching the number of times; an adjustment sub-module for adjusting and increasing a forward acceleration of the target object according to the target ratio to obtain an updated forward acceleration; and a third determining sub-module for determining the updated forward acceleration as the target acceleration. a control module for controlling the target object to perform the acceleration operation based on the target acceleration; and a first execution unit for controlling the target object to perform the target action while performing the acceleration operation when the second touch operation is detected within the target period.

6. The first execution unit is a first determination module for determining a force received by the target object when the target object performs the acceleration operation as an action acting force when the target object performs the target action; a second determination module for determining an actual velocity vector of the target object when performing the target action using the action application force; and a third determination module for determining a target action trajectory of the target object when performing the target action based on the actual velocity vector, 6. The apparatus of claim 5, wherein a number of collisions occurring when the target object performs the target action according to the target action trajectory is less than a target threshold.

7. The second determination module: a first determination sub-module for determining a forward velocity vector of the target object when the target object performs the target action based on the action application force; a second determination sub-module for determining the actual velocity vector when the target object performs the target action based on a forward velocity vector when the target object performs the target action and a centrifugal velocity vector generated when the target object performs the target action; 7. The apparatus of claim 6, wherein an angle between a direction of the actual velocity vector when the target object performs the target action and a direction of a forward velocity vector when the target object performs the target action is less than a first angle threshold.

8. The installation unit includes: a detection module for detecting a target angle generated in a process in which the target object switches from the first action to the second action, the target angle being an angle between the moving direction of the target object and a sliding direction of the target object; and a placement module for determining to adjust a button state of the first virtual button from a non-touch allowing state to the touch allowing state when the target angle is less than or equal to a second angle threshold.

9. An electronic device including a memory and a processor, 5. An electronic device, characterized in that a computer program is stored in the memory, and the processor is arranged to carry out the method according to any one of claims 1 to 4 by means of the computer program.

10. A computer program comprising instructions, A computer program which, when executed on a computer, causes the computer to carry out the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Virtual vehicle drifting method and device in virtual world and storage medium

    CN109513210A

  • Video game apparatus

    JP1995116353A

  • Game system and server

    JP2016120131A