Method, device, terminal device and computer program for controlling virtual characters

The method and device enhance virtual character control by combining joystick-based movement and attack controls to provide multiple movement options, simplifying interfaces and reducing errors, thus improving flexibility and realism.

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

Patent Information

Application Number
JP2024532567
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-05-10
Filing Date
2023-04-07
Publication Date
2024-11-08
Estimated Expiration
2043-04-07

AI Technical Summary

Technical Problem

Existing virtual character control methods in virtual environments offer limited movement options, primarily relying on a single method, which can lead to complex and error-prone interfaces.

Method used

A method and device that utilize a joystick control unit for movement and attack control, allowing for various movement methods such as speed increase, deceleration, rotation, and turning, by combining operations on these control units to enrich movement options without requiring additional controls.

Benefits of technology

Enriches the movement control of virtual characters by simplifying the interface layout, reducing operational errors, and enhancing flexibility and realism in virtual environment interactions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024541631000001_ABST
    Figure 2024541631000001_ABST
Patent Text Reader

Abstract

A method, apparatus, device and storage medium for controlling a virtual character, which belong to the computer and internet technical fields. The method includes a step of displaying a movement control unit and an attack control unit (301), a step of controlling the movement of the first virtual character in response to a first operation on the movement control unit (302), a step of increasing an impulse corresponding to the first virtual character in response to a second operation on the attack control unit when the first virtual character is in a moving state (303), a step of controlling the first virtual character to move at an increased speed when the impulse satisfies a first condition (304), and a step of clearing the impulse corresponding to the first virtual character (305). The present application enriches the movement methods of the virtual character, does not require a special control unit, and can control the virtual character to move at an increased speed by triggering a combination of existing control units, enriches the functions of the existing movement control unit and skill control unit, simplifies the interface layout, and helps reduce erroneous operations caused by an overly complicated interface layout.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] (CROSS-REFERENCE TO RELATED APPLICATIONS) This application claims priority to a Chinese patent application filed on May 10, 2022, application number 202210507783.7, entitled "Virtual character control method, apparatus, device and storage medium," the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the field of computer and internet technology, and in particular to a method, apparatus, device and storage medium for controlling a virtual character. [Background technology]

[0003] The user can control the movement of the virtual character within the virtual environment.

[0004] In the related technology, a user controls the movement of a virtual character using a left roulette, and when an operation on the left roulette is detected, the direction indicated by the operation is determined as the movement direction of the virtual character, and the movement of the virtual character is controlled based on the movement direction.

[0005] However, in the above related art, the virtual character has only one movement method. Summary of the Invention [Problem to be solved by the invention]

[0006] The embodiments of the present application provide a method, apparatus, device and storage medium for controlling a virtual character, which can enrich the movement manner of the virtual character. [Means for solving the problem]

[0007] According to one aspect of an embodiment of the present application, there is provided a method for controlling a virtual character, the method being executed by a terminal device, the method comprising: displaying a movement control unit and an attack control unit, wherein the movement control unit is a joystick control unit for controlling the movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action; controlling movement of the first virtual character in response to a first operation on the movement control unit; When the first virtual character is in a moving state, increasing an impulse corresponding to the first virtual character in response to a second operation on the attack control unit; a step of controlling the first virtual character to move at an accelerating speed when the impulse satisfies a first condition, wherein the moving speed of the first virtual character during the accelerating movement is greater than the moving speed of the first virtual character before the accelerating movement; and clearing the impulse corresponding to the first virtual character.

[0008] According to one aspect of an embodiment of the present application, there is provided a method for controlling a virtual character, the method being executed by a terminal device, the method comprising: displaying a movement control unit and an attack control unit, wherein the movement control unit is a joystick control unit for controlling movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action; controlling movement of the first virtual character in response to a first operation on the movement control unit; a step of controlling the first virtual character to decelerate when the first operation is stopped; and a step of controlling the first virtual character to decelerate with additional acceleration in response to a second operation on the attack control unit during the process of the first virtual character decelerating until the first virtual character stops moving.

[0009] According to one aspect of an embodiment of the present application, there is provided a method for controlling a virtual character, the method being executed by a terminal device, the method comprising: displaying a movement control unit and an attack control unit, wherein the movement control unit is a joystick control unit for controlling the movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action; a step of controlling the first virtual character to move in a turning motion in response to a direction adjustment operation on the movement control unit; and a step of controlling the first virtual character to decelerate its turning movement in response to an operation on the attack control unit while the first virtual character is turning and moving.

[0010] According to one aspect of an embodiment of the present application, there is provided a control device for a virtual character, the device comprising: a control unit display module used to display a movement control unit and an attack control unit, wherein the movement control unit is a joystick control unit for controlling the movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action; a character movement module used to control movement of the first virtual character in response to a first operation on the movement control unit; an impulse increasing module used to increase an impulse corresponding to the first virtual character in response to a second operation on the attack control unit when the first virtual character is in a moving state; an accelerating movement module used to control the first virtual character to move at an accelerating speed when the impulse satisfies a first condition, wherein a movement speed of the first virtual character during the accelerating movement is greater than a movement speed of the first virtual character before the accelerating movement; an impulse clearing module used to clear an impulse corresponding to the first virtual character.

[0011] According to one aspect of an embodiment of the present application, there is provided a control device for a virtual character, the device comprising: a control unit display module used to display a movement control unit and an attack control unit, wherein the movement control unit is a joystick control unit for controlling the movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action; a character movement module used to control movement of the first virtual character in response to a first operation on the movement control unit; a first deceleration module used to control the first virtual character to decelerate when the first operation is stopped; and a second deceleration module used to control the first virtual character to decelerate with additional acceleration in response to a second operation on the attack control unit during the process of the first virtual character's deceleration until the first virtual character stops moving.

[0012] According to one aspect of an embodiment of the present application, there is provided a control device for a virtual character, the device comprising: a control unit display module used to display a movement control unit and an attack control unit, wherein the movement control unit is a joystick control unit for controlling the movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action; a turning control module used to control the first virtual character to turn in response to a direction adjustment operation on the movement control unit; and a deceleration control module used to control the first virtual character to decelerate its turning movement in response to an operation on the attack control unit while the first virtual character is turning and moving.

[0013] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a terminal device, the terminal device including a processor and a memory, a computer program stored in the memory, and the computer program being loaded and executed by the processor to realize the above-mentioned method for controlling a virtual character.

[0014] According to one aspect of an embodiment of the present application, an embodiment of the present application provides a computer-readable storage medium having a computer program stored therein, the computer program being loaded and executed by a processor to realize the above-described method for controlling a virtual character.

[0015] According to one aspect of an embodiment of the present application, there is provided a computer program product, the computer program product including a computer program stored in a computer-readable storage medium, wherein a processor of a terminal device reads the computer program from the computer-readable storage medium and executes the computer program, thereby causing the terminal device to execute the virtual character control method. [Effects of the Invention]

[0016] The technical solutions provided in the embodiments of the present application can bring about the following beneficial effects:

[0017] As the virtual character moves, operations are performed on the attack control unit to accumulate impulses, and when the accumulated impulses meet certain conditions, the virtual character is controlled to move at an accelerated speed, thereby enriching the movement methods of the virtual character. Furthermore, when controlling the virtual character to move at an accelerated speed, there is no need to provide a special control unit; the virtual character can be controlled to move at an accelerated speed by triggering a combination of existing control units. This enriches the functions of the existing movement control unit and skill control unit, simplifies the interface layout, and helps reduce operational errors caused by an interface layout that is too complicated. [Brief explanation of the drawings]

[0018] [Figure 1] 1 is a schematic diagram of a control system for a virtual character provided in one embodiment of the present application. [Figure 2] 1 shows an exemplary schematic diagram of a control system for a virtual character. [Figure 3] 1 is a flowchart of a method for controlling a virtual character provided in one embodiment of the present application. [Figure 4] 1 shows an exemplary schematic diagram of an impulse prompt bar. [Figure 5] 10A and 10B are schematic diagrams of movement speed indication icons, by way of example; [Figure 6] 10A and 10B are schematic diagrams of an accelerated movement of a first virtual character, respectively, exemplarily shown. [Figure 7] 10 is a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. [Figure 8] 10A and 10B are exemplary diagrams illustrating a first virtual character rapidly stopping movement; [Figure 9] 10 is a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. [Figure 10] 10 is a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. [Figure 11] 10 shows an exemplary schematic diagram of a transition scheme for a target moving state. [Figure 12] 10 is a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. [Figure 13] 10A and 10B are schematic diagrams illustrating exemplary movement modes of a first virtual character during a non-linear deceleration state; [Figure 14] 1 shows an exemplary schematic diagram of a method for determining a target direction. [Figure 15] 10 is a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. [Figure 16] 10A and 10B are schematic diagrams illustrating movement modes of a first virtual character in a linear deceleration state, respectively; [Figure 17] 10 is a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. [Figure 18] 10A and 10B are schematic diagrams illustrating exemplary movement modes of a first virtual character in an accelerating state; [Figure 19] 10 is a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. [Figure 20] 10A and 10B are schematic diagrams illustrating exemplary movement modes of a first virtual character in a first deceleration state; [Figure 21] 10 is a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. [Figure 22] 10A and 10B are schematic diagrams illustrating exemplary movement modes of a first virtual character in a second deceleration state; [Figure 23] FIG. 2 is a block diagram of a control device for a virtual character provided in an embodiment of the present application. [Figure 24] FIG. 2 is a block diagram of a control device for a virtual character provided in an embodiment of the present application. [Figure 25] FIG. 2 is a block diagram of a control device for a virtual character provided in an embodiment of the present application. [Figure 26] FIG. 2 is a block diagram of a control device for a virtual character provided in an embodiment of the present application. [Figure 27] FIG. 2 is a block diagram of a control device for a virtual character provided in an embodiment of the present application. [Figure 28] FIG. 2 is a structural block diagram of a terminal device provided in one embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0019] In order to make the objectives, technical solutions and advantages of the present application clearer, the following describes the embodiments of the present application in more detail with reference to the drawings.

[0020] 1, there is shown a schematic diagram of a virtual character control system provided in one embodiment of the present application. The virtual character control system may include a terminal device 10 and a server 20.

[0021] The terminal device 10 may be, for example, a mobile phone, a tablet personal computer, a game console, an e-book reader, a multimedia player, a wearable device, a personal computer (PC), or other electronic device, although the embodiments of the present application are not limited thereto. In some embodiments, the terminal device 10 includes an application program client. Here, the application program may be an application program that needs to be downloaded and installed, or may be a quick-run application program, although the embodiments of the present application are not limited thereto. For example, the lens in the application program is a bird's-eye view, such as a multiplayer online battle arena (MOBA) game, a third-person shooter (TPS), a multiplayer gunfight survival game, an augmented reality (AR) application program, a three-dimensional map program, a social application program, or an interactive entertainment application program. In addition, the forms of virtual characters provided by different application programs and the corresponding functions also vary, and can be configured in advance according to actual requirements, although the embodiments of the present application are not limited thereto. Of course, in an exemplary embodiment, the same application program may provide a user with multiple types of virtual characters with different functions, and the embodiments of the present application are not limited thereto.

[0022] The virtual character refers to a virtual character controlled by a user in an application program. For example, if the application program is a game application program, the virtual character refers to a game character controlled by a user in the game application program. The virtual character may be in the form of a human, an animal, an animated character, or other forms, and the embodiments of the present application are not limited thereto. The virtual character may be displayed in three dimensions or two dimensions, and the embodiments of the present application are not limited thereto.

[0023] The server 20 is used to provide background services to the terminal devices 10. The server 20 may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. In some embodiments, the server 20 may be a background server for a client of the application program. In an exemplary embodiment, the server 20 provides background services to multiple terminal devices 10.

[0024] Data is transmitted between the terminal device 10 and the server 20 via a network.

[0025] In an embodiment of the present application, a user can control the flexible movement of a virtual character in the application program. For example, as shown in FIG. 2, the terminal device 10 displays a movement control unit ("movement control") for controlling the movement of the virtual character and an attack control unit ("attack control") for controlling the virtual character to perform an attack action. When a trigger operation on the movement control unit or the attack control unit is detected, the terminal device 10 transmits a frame synchronization command to the server 20, which then forwards the frame synchronization command to multiple client terminal devices running the application program. Here, the multiple terminal devices include the terminal device 10. Correspondingly, after receiving the frame synchronization command, the terminal device 10 determines a target movement state of the virtual character based on the triggered states of the movement control unit and the attack control unit, obtains movement parameters corresponding to the target movement state from a preset movement parameter set based on the target movement state, and controls the movement of the virtual character based on the movement parameters.

[0026] It should be noted that the above introduction of FIG. 2 is merely exemplary and explanatory, and in the exemplary embodiment, the functions of the terminal device 10 and the server 20 can be flexibly configured and adjusted, and the embodiments of the present application are not limited thereto.

[0027] 3 shows a flowchart of a virtual character control method provided in one embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (301 to 305).

[0028] In step 301, the movement control unit and the attack control unit are displayed.

[0029] In some embodiments of the present application, a user interface displays a movement control unit and an attack control unit. Here, the movement control unit is a joystick control unit for controlling the movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action, where the first virtual character refers to a virtual character controlled by a user's account. In some embodiments, the attack action refers to an action performed by the first virtual character that can cause damage to an action target, where the damage includes, but is not limited to, at least one of a decrease in life points, a decrease in defense power, a decrease in attack power, a decrease in movement speed, etc., and the embodiments of the present application are not limited thereto.

[0030] In some embodiments, the user interface includes a virtual environment screen, and after launching the application program, the client displays the virtual environment screen and a plurality of controls for controlling the first virtual character on the user interface, optionally including a control for controlling movement of the virtual object and an attack control for controlling the virtual character to perform an attack operation.

[0031] Of course, in another possible embodiment, the user interface does not include a virtual environment screen. For example, to reduce the occlusion of the control units from the virtual environment screen, after the application program is launched, a virtual environment screen is displayed on the client of the first terminal device, and multiple control units for controlling the first virtual character are displayed on the client of the second terminal device. After detecting a user's trigger operation on the control units, the second terminal device generates a corresponding command based on the trigger operation and transmits the command to the first terminal device. In response, after receiving the command, the first terminal device controls the first virtual character to perform a corresponding action based on the command. Here, the multiple control units include a movement control unit and an attack control unit.

[0032] In an embodiment of the present application, the virtual environment screen includes a first virtual character. The client can acquire the virtual environment screen from a third-person perspective. Illustratively, a virtual camera is provided in the virtual environment, and the client acquires the virtual environment screen based on the virtual camera. In one possible embodiment, the position of the virtual camera in the virtual environment is fixed. In another possible embodiment, the position of the virtual camera in the virtual environment is adjustable, and the position of the virtual camera can be adjusted according to actual conditions to flexibly view different positions in the virtual environment.

[0033] In some embodiments, the attack operation of the first virtual character includes a normal attack and a skill attack. Here, the normal attack does not require the consumption of virtual resources when executed, and there is no cooldown period between adjacent normal attacks. There is a cooldown period between adjacent skill attacks. Also, due to differences in the positioning of the virtual characters, the skill attacks of some virtual characters require the consumption of virtual resources when executed. In exemplary embodiments, the normal attack may be referred to as a normal attack, and the skill attack may be referred to as a non-normal attack.

[0034] In one possible embodiment, the attack control unit is one of a plurality of attack control units. In some examples, the attack control unit is set by a game designer by selecting an attack control unit from the plurality of attack control units. Illustratively, the designer sets a normal attack control unit as the attack control unit. Here, the normal attack control unit is used to control the first virtual character to perform a normal attack.

[0035] In another possible embodiment, the attack control unit is a normal attack control unit or a skill attack control unit in an abnormal response state among the plurality of attack control units. Here, the normal attack control unit is used to control a first virtual character to perform a normal attack, and the skill attack control unit is used to control the first virtual character to release a skill. The abnormal response state refers to a state in which the skill attack control unit cannot control the first virtual character to release a corresponding skill. For example, if the first virtual character lacks virtual resources required to perform a skill attack, the skill attack control unit corresponding to the skill attack is in an abnormal response state. In some embodiments, after displaying the plurality of attack control units, the client acquires a response state corresponding to each of the plurality of attack control units, where the plurality of attack control units includes a normal attack control unit and at least one skill attack control unit. Furthermore, if the plurality of attack control units includes a control unit in an abnormal response state, the client determines the control unit in the abnormal response state as the attack control unit. If the plurality of attack control units does not include a control unit in an abnormal response state, the client determines the normal attack control unit as the attack control unit. The response state is used to characterize whether the first virtual character can execute the skill corresponding to the skill control.

[0036] In some embodiments, to facilitate the user's quick selection of an attack control unit from multiple skill attack control units, when the skill attack control unit transitions from a non-abnormal response state to an abnormal response state, the client controls the skill attack control unit to switch from the first display mode to the second display mode. This method allows the user to intuitively view the attack control unit selected from multiple skill attack control units.

[0037] In step 302, the movement of a first virtual character is controlled in response to a first operation on a movement control unit.

[0038] In an embodiment of the present application, after displaying the movement control device, the client detects the movement control device, and if a first operation on the movement control device is detected, the client controls the movement of a first virtual character.

[0039] In some embodiments, the first operation includes a direction adjustment operation and a non-direction adjustment operation. In one possible embodiment, the first operation is a direction adjustment operation, and after the direction adjustment operation on the movement control unit is detected, the client obtains a target direction indicated by the direction adjustment operation, and the client controls the first virtual character to move along the target direction. In another possible embodiment, the first operation is not a direction adjustment operation, and the first operation is selectably a non-direction adjustment operation. After the non-direction adjustment operation on the movement control unit is detected, the client controls the first virtual character to move along a historical movement direction ("past movement direction"). Here, if the first virtual character moves before the client detects the non-direction adjustment, the historical movement direction is the direction indicated by the non-direction adjustment operation. of detection death If the first virtual character is in a stationary (non-moving) state before the client detects the non-direction adjustment operation, the historical movement direction is the movement direction of the first virtual character when the client detects the non-direction adjustment operation. of detection death This is the orientation of the first virtual character when

[0040] In some embodiments, when the client controls the movement of the first virtual character, the client controls the first virtual character to move at an accelerated speed and the first virtual character to move at a constant speed. Illustratively, when the client detects a first operation on the movement control unit, if the movement speed of the first virtual character does not reach a maximum movement speed, the client controls the first virtual character to move at an accelerated speed until the movement speed of the first virtual character reaches the maximum movement speed, and if the movement speed of the first virtual character reaches the maximum movement speed, the client controls the first virtual character to move at a constant speed at the maximum movement speed.

[0041] In step 303, if the first virtual character is in a moving state, the impulse corresponding to the first virtual character is increased in response to a second operation on the attack control unit.

[0042] In an embodiment of the present application, after the client displays the attack control unit, it detects the attack control unit, detects a second operation on the attack control unit, and when the first virtual character is in a moving state, the client increases the impulse corresponding to the first virtual character.

[0043] In some embodiments, the impulse can be understood as a virtual energy that changes the speed at which a virtual object moves in the virtual environment. To facilitate a user in determining the accumulated impulse, the client displays the accumulated impulse. The user interface further includes an impulse prompt bar, which is used to indicate the impulse accumulated by the first virtual character. In some embodiments, the accumulation of impulse is related to at least one of an attack speed of the first virtual character, a number of hits of the attacking operation, and a duration of the second operation.

[0044] In one possible embodiment, the accumulation of impulses is related to the attack speed of the first virtual character. In some examples, when a second operation on the attack control unit is detected, the client updates the impulse based on the attack speed of the first virtual character and displays the increasing impulse in the impulse prompt bar. Here, the attack speed of the first virtual character is related to the frequency of the second operation. For example, if the second attack operation is a click operation and the terminal device detects that the frequency of the user performing the second operation on the attack control unit is twice per second, the attack speed of the first virtual character is also twice per second.

[0045] Optionally, the impulse increase rate is positively correlated with the attack speed, i.e., the faster the attack speed, the faster the impulse increase rate, and the slower the attack speed, the slower the impulse increase rate.

[0046] In one possible embodiment, the accumulation of impulses is related to the number of hits of the attacking action. In some examples, when a second operation on the attack control unit is detected, the client controls the first virtual character to perform an attacking action against a second virtual character within the attacking range. Here, the attacking range refers to the effective range of the attacking action corresponding to the attacking control unit, and the first virtual character can perform an attacking action against any other virtual character within the attacking range. Furthermore, the client updates the impulses based on the number of hits of the attacking action and displays the progress of the impulses increase in the impulse prompt bar. Here, the rate of increase of the impulses is positively correlated with the number of hits, i.e., the more hits there are, the faster the impulses increase, and the fewer hits there are, the slower the impulses increase.

[0047] In one possible embodiment, the accumulation of impulses is related to the duration of the second operation. In some embodiments, when a second operation on the attack control is detected, the client updates the impulse based on the duration of the second operation and displays the impulse increase process in the impulse prompt bar. For example, the client records the duration of the second operation on the attack control and determines the impulse accumulated by the second operation based on the duration of the second operation. Here, the rate of increase of the impulse is positively correlated with the duration, i.e., the longer the duration, the faster the impulse increase rate, and the shorter the duration, the slower the impulse increase rate. Based on the effect of the second operation, the impulse accumulated by the operation is continuously accumulated, enriching the gameplay and improving the fun of the game.

[0048] In some embodiments, in the embodiments of the present application, the impulse prompt bar includes a plurality of first sub-icons, which characterize the accumulated impulses. Taking the correlation between the accumulation of impulses and the attack speed of the first virtual character as an example, the impulse prompt bar 41 in FIG. 4 includes a plurality of first sub-icons 42, which correspond to the third and fourth display modes. The attack speed of the first virtual character and the number of first sub-icons 42 displayed in the fourth display mode are positively correlated. That is, the faster the attack speed of the first virtual character, the more first sub-icons 42 are displayed in the fourth display mode in the impulse prompt bar 41. The slower the attack speed of the first virtual character, the fewer first sub-icons 42 are displayed in the fourth display mode in the impulse prompt bar 41.

[0049] In step 304, if the impulse satisfies a first condition, the first virtual character is controlled to move at an increased speed.

[0050] In some embodiments, the first condition is used to control a threshold at which accelerated movement occurs in the first virtual character. Accelerated movement refers to the first virtual character moving at an inconstant speed in the virtual environment. In some embodiments of the present application, when the impulse satisfies the first condition, the client controls the first virtual character to move at an accelerated speed. Here, the movement speed of the first virtual character during the accelerated movement is greater than the movement speed of the first virtual character before the accelerated movement. In some embodiments, the first condition refers to the impulse being greater than a threshold. Optionally, the threshold is preset.

[0051] For example, the threshold is equal to the maximum value of impulses that the virtual character can accumulate, and when the impulses are fully accumulated (i.e., the threshold is equal to the maximum impulse), the client determines that the impulse satisfies the first condition. Using FIG. 4 as an example, the client determines that the impulse satisfies the first condition when each of the first sub-icons 42 is displayed in the fourth display mode. The movement speed of the first virtual character before the accelerated movement refers to the movement direction of the first virtual character when the impulse satisfies the first condition. When the accelerated movement is not performed, the movement speed of the first virtual character in the virtual environment is constant (e.g., v0), and the movement speed of the first virtual character before the accelerated movement refers to this constant movement speed, i.e., v0.

[0052] In some embodiments, when the impulse satisfies the first condition, the step of the client controlling the first virtual character to move at an accelerated speed includes the step of the client controlling the first virtual character to move at an accelerated speed in the virtual environment in response to a third operation on the attack control unit, wherein the third operation includes at least one of, but is not limited to, a click operation, a slide operation, a press and hold operation, and the like.

[0053] Selectably, when the impulse satisfies a first condition, the client controls the first virtual character to move at an accelerated speed in the virtual environment in response to a first operation on the movement control unit and a third operation on the attack control unit. In some embodiments, the client controls the first virtual object to move at the same speed as before the accelerated movement in response to the disappearance of the third operation. The disappearance of the third operation refers to the disappearance of a signal from the screen indicating that the client has detected the third operation. For example, the disappearance of the third operation refers to the client detecting the disappearance of a click operation on the attack control unit.

[0054] In some embodiments, the step of controlling, by the client, the first virtual character to move at an accelerated speed when the impulse satisfies the first condition includes the step of automatically controlling, by the client, the first virtual character to move at an accelerated speed when the impulse satisfies the first condition. That is, in the present embodiment, the accelerated speed movement is automatically triggered, which helps to reduce the complexity of the operation of controlling the virtual character to move at an accelerated speed. In some embodiments, when the impulse satisfies the first condition, the client controls the first virtual character to move at an accelerated speed along a target movement direction. Here, the target movement direction refers to a direction in which the first virtual character moves at an accelerated speed. Optionally, the target movement direction is the movement direction of the first virtual character when the impulse satisfies the first condition. By controlling the virtual character to move at an accelerated speed in a determined target movement direction, the user can control the virtual character to move at an accelerated speed in a clear direction, which improves the predictability of the accelerated movement of the virtual character and helps the user to easily determine the timing for controlling the virtual character to move at an accelerated speed based on the game play.

[0055] In one possible embodiment, in order to reduce the amount of calculation in the accelerated movement process, the movement direction of the first virtual character cannot be changed in the process of controlling the first virtual character to move at the accelerated speed. In some embodiments, when it is detected that the impulse satisfies a first condition, the client directly controls the first virtual character to move at the accelerated speed along the target movement direction. In some embodiments, when it is detected that the impulse satisfies the first condition, the client controls the first virtual character to move at the accelerated speed along the opposite direction to the target movement direction. Controlling the first virtual character to move in the opposite direction to the target movement direction helps control the first virtual character to avoid attacking acts in the virtual environment and improves the richness of the movement process of the first virtual character.

[0056] Optionally, the client sends a detection stop command to the operating system of the terminal device executing the application program, the detection stop command being used to control the operating system of the terminal device to stop detecting operations on the movement control unit, thereby reducing power consumption of the terminal device. In some embodiments, the detection stop command includes a duration of the accelerated movement. The operating system of the terminal device determines an end time of the accelerated movement based on the duration of the accelerated movement operation, and after the duration of the accelerated movement ends, the operating system automatically resumes detection of operations on the movement control unit. In other embodiments, after the duration of the accelerated movement ends, the client sends a detection recovery command to the operating system, the detection recovery command being used to control the operating system of the terminal device to return to a normal state. Upon receiving the detection recovery command, the operating system resumes detection of operations on the movement control unit of the movement control unit.

[0057] In another possible embodiment, the movement direction of the first virtual character can be changed during the accelerated movement process to improve the flexibility of the movement of the first virtual character. In some examples, when the client detects that the impulse satisfies a first condition, if the client does not detect a direction adjustment operation on the movement control unit, the client controls the first virtual character to accelerate along a target movement direction, and if the client detects a direction adjustment operation on the movement control unit, the client controls the first virtual character to accelerate along a target direction indicated by the direction adjustment operation. In some examples, the direction adjustment operation on the movement control unit refers to a slide operation performed on the movement control unit. Selectably, the direction adjustment operation on the movement control unit includes a slide operation. The target direction refers to the direction indicated by the direction adjustment operation. Selectably, the target direction and the target movement direction are different.

[0058] In some embodiments, when a direction adjustment operation on the movement control unit is detected, the step of the client controlling the first virtual character to move at an accelerated speed along the target direction indicated by the direction adjustment operation includes the following: the client determines that the end signal of the direction adjustment operation is in a first region corresponding to the movement control unit, and the client determines the direction corresponding to the first region as the target movement direction. Then, the client controls the first virtual character to move at an accelerated speed along the target direction. For example, if the movement control unit includes six regions, each region being region 1, region 2, region 3, region 4, region 5, and region 6, and different regions correspond to different movement directions, and the client determines that the end signal of the direction adjustment operation corresponds to region 1 on the movement control unit, the client determines direction 1 corresponding to region 1 as the target direction, and the client controls the first virtual character to move at an accelerated speed in direction 1.

[0059] In some embodiments, when the impulse satisfies a first condition, the step of the client controlling the first virtual character to move at an accelerated speed includes the step of the client detecting whether or not a direction adjustment operation on the movement control unit is present; if the direction adjustment operation on the movement control unit is not detected, the client executing a step of controlling the first virtual character to move at an accelerated speed along a target movement direction; and if the direction adjustment operation on the movement control unit is detected, controlling the first virtual character to move at an accelerated speed along the target direction indicated by the direction adjustment operation.

[0060] The above method makes it possible to control the direction of acceleration movement of the virtual character, and by performing a direction adjustment operation, the user can control the virtual character to accelerate in any direction in the virtual environment, which helps to improve the flexibility of the virtual character's acceleration movement and provides a variety of operating methods for controlling the movement of the virtual character.

[0061] In some embodiments, the step of the client controlling the first virtual character to move at an accelerated speed along the target movement direction includes the step of the client controlling the first virtual character to move at an accelerated speed until the movement speed of the first virtual character increases to a maximum speed corresponding to the accelerated movement, and the step of the client controlling the first virtual character to move at a decelerated speed until the movement speed of the first virtual character decreases from the maximum speed corresponding to the accelerated movement to the movement speed before the accelerated movement.

[0062] In some embodiments, the maximum speed corresponding to the accelerated movement refers to the maximum speed at which the virtual character moves in the virtual environment. Optionally, the maximum speed corresponding to the accelerated movement is preset. For example, the maximum speed corresponding to the accelerated movement is equal to 1.5 times the movement speed before the accelerated movement. Optionally, the maximum speed corresponding to the accelerated movement is proportional to the impulses accumulated by the first virtual character. That is, the more impulses accumulated by the first virtual character, the higher the maximum speed corresponding to the accelerated movement, and the fewer impulses accumulated by the first virtual character, the lower the maximum speed corresponding to the accelerated movement. Note that the maximum speed corresponding to the accelerated movement is set according to actual needs, and is not limited thereto.

[0063] In some embodiments, to improve the realism of the accelerated movement of the first virtual character, the accelerated movement process includes an acceleration movement process and a deceleration movement process. When the client detects that the impulse satisfies a first condition, the client controls the first virtual character to accelerate until the movement speed of the first virtual character increases to a maximum speed corresponding to the accelerated movement, and then controls the first virtual character to decelerate until the movement speed of the first virtual character decreases from the maximum speed corresponding to the accelerated movement to the movement speed before the accelerated movement. In some embodiments, in the acceleration movement process, the client obtains an acceleration corresponding to the accelerated movement, and further controls the first virtual character to accelerate based on the acceleration corresponding to the accelerated movement.

[0064] This method imparts a layered structure to the virtual character's acceleration process, accelerating first and decelerating later, helping the player understand the progress of the acceleration process. The acceleration process is divided into two stages, acceleration and deceleration, allowing the player to perceive and distinguish the movement effects of the acceleration and deceleration stages with the naked eye. Based on the movement effects of the virtual character during the acceleration process, the player can determine whether the current time belongs to the acceleration or deceleration stage of the acceleration process, thereby predicting the end time of the acceleration process and facilitating early planning of further operations that need to be performed on the virtual character after the acceleration process. This method improves the operability of the virtual character and enriches gameplay. At the same time, this method makes the acceleration process of the virtual character more similar to actual acceleration.

[0065] In step 305, the impulse corresponding to the first virtual character is cleared.

[0066] In some embodiments, when the impulse satisfies the first condition, the client controls the first virtual character to move at an increased speed and clears the impulse corresponding to the first virtual character. As shown in Figure 4, when the impulse satisfies the first condition, the client controls the first virtual character to move at an increased speed and switches the display mode of each first sub-icon 42 from the fourth display mode to the third display mode.

[0067] Selectably, the client clears all impulses corresponding to the virtual character, or clears a subset of the impulses corresponding to the virtual character.

[0068] In some embodiments, the user interface further includes a movement speed instruction icon to facilitate the user's intuitive understanding of the movement speed of the first virtual character. In an embodiment of the present application, the client displays the movement speed instruction icon of the first virtual character, and the movement speed instruction icon is used to indicate the movement speed of the first virtual character. Furthermore, the client acquires the movement speed of the first virtual character and changes the display manner of the movement speed instruction icon based on the movement speed. For example, as shown in FIG. 5, the movement speed instruction icon 51 includes a plurality of second sub-icons 52, which correspond to the fifth display mode and the sixth display mode, and there is a positive correlation between the movement speed of the first virtual character and the number of second sub-icons 52 displayed in the sixth display mode, i.e., the faster the movement speed of the first virtual character, the more second sub-icons 52 are displayed in the sixth display mode in the movement speed instruction icon 51, and the slower the movement speed of the first virtual character, the fewer second sub-icons 52 are displayed in the sixth display mode in the movement speed instruction icon 51.

[0069] For example, as shown in FIG. 6, the user interface includes a movement control unit 61 and an attack control unit 62, and when a first operation on the movement control unit 61 is detected, the client controls the movement of a first virtual character 63; further, when a second operation on the attack control unit 62 is detected, the client displays the increasing process of the impulse in the impulse prompt bar 64; then, when the impulse satisfies a first condition, the client controls the first virtual character 63 to move at an increased speed, and clears the impulse corresponding to the first virtual character 63 in the impulse prompt bar 64.

[0070] It should be noted that the above introduction of step 304 and step 305 is merely exemplary and explanatory, and does not limit the order of execution of step 304 and step 305 in the exemplary embodiment. For example, when the impulse satisfies a first condition, the first virtual character is controlled to move at an increased speed first, and the impulse corresponding to the first virtual character is subsequently cleared; alternatively, when the impulse satisfies a first condition, the impulse corresponding to the first virtual character is initially cleared, and the first virtual character is subsequently controlled to move at an increased speed; alternatively, when the impulse satisfies a first condition, the first virtual character is controlled to move at an increased speed and the impulse corresponding to the first virtual character is simultaneously cleared; and the embodiments of the present application are not limited thereto.

[0071] Optionally, the client clearing the impulse corresponding to the first virtual character can be understood as consuming the impulse accumulated when the first virtual character performs an attack operation, and accelerating the movement speed of the first virtual character.

[0072] As described above, in the technical solutions provided in the embodiments of the present application, during the process of the virtual character's movement, operations are performed on the attack control unit to accumulate impulses, and when the accumulated impulses meet certain conditions, the virtual character is controlled to move at an accelerated speed, thereby enriching the movement methods of the virtual character; and when controlling the virtual character to move at an accelerated speed, there is no need to provide a special control unit; the virtual character can be controlled to move at an accelerated speed by triggering a combination of existing control units, which enriches the functions of the existing movement control unit and skill control unit, simplifies the interface layout, and helps reduce operational errors caused by an overly complicated interface layout.

[0073] 7 shows a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (701 to 704):

[0074] In step 701, the movement control unit and the attack control unit are displayed.

[0075] This step is the same as or similar to step 301 in the above embodiment, and the specifics thereof are referred to in the above introduction, and the description thereof will be omitted here.

[0076] In step 702, the movement of a first virtual character is controlled in response to a first operation on a movement control unit.

[0077] In some embodiments, the client displays the movement control device, detects the movement control device, and controls the movement of a first virtual character when a first operation on the movement control device is detected. In some embodiments, the first operation includes a direction adjustment operation and a non-direction adjustment operation.

[0078] In some embodiments, controlling the movement of the first virtual character includes accelerating movement and uniform movement. Optionally, when a first operation on the movement control unit is detected, the client controls the first virtual character to accelerate until the movement speed of the first virtual character reaches a maximum movement speed, and further controls the first virtual character to move uniformly at the maximum movement speed.

[0079] By accelerating uniformly, the virtual character reaches the starting speed, and by including a starting acceleration process in the movement process of the virtual character, it is possible to improve the simulation of the movement process of the virtual character.

[0080] In step 703, when the first operation is stopped, the first virtual character is controlled to decelerate.

[0081] In some embodiments of the present application, when the client detects that the first operation has stopped, the client controls the first virtual character to decelerate. In some embodiments, the client acquires acceleration corresponding to the decelerating motion, and further controls the first virtual character to perform uniform deceleration based on the acceleration corresponding to the decelerating motion.

[0082] In some embodiments, if a second operation on the attack control unit is not detected during the deceleration of the first virtual character, the client continues to control the first virtual character to perform uniform deceleration until the first virtual character stops moving. Optionally, the acceleration during uniform deceleration is preset. The client can determine the duration of the uniform deceleration based on the movement speed of the first virtual character and the acceleration during the uniform deceleration. Furthermore, if the direction of movement of the first virtual character cannot be changed during the uniform deceleration, the client may early determine the movement path of the first virtual character during the uniform deceleration. In a multiplayer game, the client must transmit position information of the first virtual character to the server, and the server transmits the position information of the first virtual character to clients running on other terminal devices. In this case, by configuring the first virtual character to perform uniform deceleration, the server and other clients can also quickly learn the position information of the first virtual character in the virtual environment. This method helps avoid a problem of multiple clients not obtaining the position information of the first virtual character synchronized due to network transmission delays.

[0083] By controlling the first virtual character to perform uniform deceleration motion, the terminal device can predict the time required for uniform deceleration motion, which helps reduce the amount of calculations performed by the terminal device and the power consumption of the terminal device.

[0084] In step 704, in the process of the first virtual character decelerating, in response to a second operation on the attack control unit, the first virtual character is controlled to decelerate with additional acceleration until the first virtual character stops moving.

[0085] In some embodiments, if a second operation on the attack control unit is detected during the deceleration of the first virtual character, the client controls the first virtual character to decelerate with additional acceleration until the first virtual character stops moving. Decelerating with additional acceleration is used to shorten the time it takes for the first virtual character to decelerate and stop moving. For example, when the first operation stops, the client controls the first virtual character to decelerate, and if the client does not detect a second operation on the attack control unit, it would take five seconds for the first virtual character to decelerate and stop moving, whereas if the client detects a second operation on the attack control unit, it would take four seconds for the first virtual character to decelerate and stop moving.

[0086] In an embodiment of the present application, if a second operation on the attack control unit is detected during the deceleration of the first virtual character, the client acquires an additional acceleration and updates the acceleration corresponding to the deceleration based on the additional acceleration to obtain the updated acceleration. For example, if the acceleration corresponding to the deceleration is a0 and the additional acceleration is a0, the updated acceleration is a2 = a0 + a1. (The directions of the three accelerations a0, a1, and a2 are the same.)

[0087] Furthermore, the client controls the first virtual character to decelerate based on the updated acceleration until the first virtual character stops moving. Note that the updated acceleration is greater than the acceleration corresponding to the deceleration, i.e., after the first operation stops, the user can control the first virtual character to quickly stop moving by performing a second operation on the attack control unit. For example, as shown in FIG. 8 , the user interface includes a movement control unit 81 and an attack control unit 82, and when the client detects that the first operation on the movement control unit 81 has disappeared, the client controls the first virtual character 83 to decelerate. Furthermore, when the client detects a second operation on the attack control unit 82, the client controls the first virtual character 83 to quickly stop moving.

[0088] In one possible embodiment, the acceleration corresponding to the deceleration motion is updated and the client directly replaces the acceleration corresponding to the deceleration motion with an additional acceleration to obtain an updated acceleration; in another possible embodiment, the acceleration corresponding to the deceleration motion is updated and the client superimposes the additional acceleration on top of the acceleration corresponding to the deceleration motion to obtain an updated acceleration.

[0089] A method is provided for shortening the deceleration of a virtual character based on an attack operation during the process of the virtual character decelerating, thereby shortening the time it takes for the virtual character to stop moving, thereby expanding the game operation space and improving game playability. In the method provided in this application, the virtual character can perform an attack operation during the process of moving (i.e., moving and attacking simultaneously in the virtual environment), and the attack operation affects the virtual character's movement speed. In this method, an attack operation can be performed during the process of the virtual character's deceleration. On the one hand, the virtual character's movement speed is slowed, providing the player with more reaction time to determine the direction of the attack operation, which helps improve the accuracy of the virtual character's attack operation. On the other hand, during the process of performing an attack operation, the virtual character can decelerate in the virtual environment, making the virtual character's movement position in the virtual environment less predictable by other users, which helps the virtual character avoid attacks in the virtual environment, improving the virtual character's survival space in the game, further accelerating the game progress, shortening the time consumed in the game, and reducing the power consumption of the terminal device.

[0090] As described above, in the technical solutions provided in the embodiments of the present application, while the virtual character is moving, an operation is performed on the attack control unit to control the virtual character to stop moving quickly, thereby enriching the movement methods of the virtual character; and when controlling the virtual character to stop moving quickly, there is no need to provide a special control unit; by triggering a combination of existing control units, the virtual character can be controlled to stop moving quickly, which enriches the functions of the existing movement control unit and skill control unit, simplifies the interface layout, and helps reduce operational errors caused by an overly complicated interface layout.

[0091] 9 shows a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (901 to 903):

[0092] In step 901, the movement control unit and the attack control unit are displayed.

[0093] This step is the same as or similar to step 301 in the above embodiment, and the specifics thereof are referred to in the above introduction, and the description thereof will be omitted here.

[0094] In step 902, the first virtual character is controlled to move in a turning motion in response to a direction adjustment operation on the movement control unit.

[0095] The turning movement refers to a movement method in which the direction of movement of the first virtual character changes as the first virtual character moves. Selectably, the angular velocity of the first virtual character during the turning movement is constant, or the angular velocity of the first virtual character during the turning movement is dynamically changed. Selectably, the angular velocity of the first virtual character during the turning movement is related to whether the first virtual character performs an attack operation during the turning movement.

[0096] In some embodiments, after displaying the movement control device, the client detects the movement control device, and when a direction adjustment operation on the movement control device is detected, the client controls the first virtual character to move in a turning motion.

[0097] In some embodiments, the client acquires a target direction indicated by the direction adjustment operation, and a turning acceleration, a turning angular velocity, and a maximum turning speed corresponding to the turning movement, and the client controls the first virtual character to turn based on the turning acceleration, the turning angular velocity, and the maximum turning speed corresponding to the turning movement. During the turning movement, the client controls the movement direction of the first virtual character to change toward the target direction.

[0098] The turning movement is also called curvilinear movement.

[0099] In step 903, in the process of the first virtual character turning and moving, the first virtual character is controlled to decelerate its turning movement in response to an operation on the attack control unit.

[0100] In some embodiments of the present application, after displaying the attack control unit, the client detects the attack control unit, detects an operation on the attack control unit, and, if the first virtual character is in the process of turning, controls the first virtual character to decelerate while turning. In some embodiments, the client acquires a target direction indicated by the direction adjustment operation, and a turning acceleration, turning angular velocity, and maximum turning speed corresponding to the turning deceleration movement, and further controls the first virtual character to decelerate while turning based on the turning acceleration, turning angular velocity, and maximum turning speed corresponding to the turning deceleration movement, and controls the moving direction of the first virtual character to change toward the target direction during the turning deceleration movement.

[0101] In addition, during the turning deceleration movement, the speed at which the orientation of the first virtual character changes is greater than the speed at which the direction of movement changes. In some embodiments, the first virtual character has an expression orientation and a logical orientation, where the expression orientation of the first virtual character is the orientation of the first virtual character, and the logical orientation of the first virtual character corresponds to the direction of movement of the first virtual character. Here, the orientation of the first virtual character can be understood as the orientation of the first virtual character displayed in the user interface.

[0102] In some embodiments, the movement control unit further corresponds to a non-directional adjustment operation. When a non-directional adjustment operation for the movement control unit is detected, the client controls the first virtual character to move in a straight line. Furthermore, when an operation for the attack control unit is detected during the linear movement of the first virtual character, the client controls the first virtual character to move in a straight line while decelerating. For specific details of this step, please refer to the following embodiments. By causing the first virtual character to move in a straight line while decelerating, it is not necessary to change the movement method of the first virtual character during the deceleration process, which helps to simplify the processing logic of the terminal device.

[0103] The above operation on the attack control unit may be referred to as a second operation on the attack control unit, and the above direction adjustment operation and non-direction adjustment operation on the movement control unit may be referred to as a first operation on the movement control unit.

[0104] As described above, in the technical solutions provided in the embodiments of the present application, the virtual character is controlled to rotate by adjusting the direction of the movement control unit, and the virtual character is controlled to rotate and decelerate by operating the attack control unit during the virtual character's rotation, thereby enriching the movement methods of the virtual character. Furthermore, when controlling the virtual character to rotate and decelerate, there is no need to provide a special control unit; the virtual character can be controlled to rotate and decelerate by triggering a combination of existing control units, which enriches the functions of the movement control unit and skill control unit, simplifies the interface layout, and helps reduce operational errors caused by an overly complicated interface layout.

[0105] The following provides an overall introduction to the first virtual character control method in this application.

[0106] 10 shows a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (1001 to 1003):

[0107] In step 1001, the movement control unit and the attack control unit are displayed.

[0108] In some embodiments, the user interface further includes a first virtual character, and an impulse prompt bar and a movement speed indication icon corresponding to the first virtual character.

[0109] In step 1002, a target movement state of the first virtual character is determined based on the triggered states of the movement control unit and the attack control unit.

[0110] In an embodiment of the present application, after displaying the movement control unit and the attack control unit, the client detects the movement control unit and the attack control unit, and further determines a target movement state of the first virtual character based on the triggered states of the movement control unit and the attack control unit. Here, the target movement state refers to the movement state the first virtual character is about to enter, and the triggered state is used to indicate a change in the trigger operation for the control unit. For example, a change from no trigger operation to a trigger operation is a triggered state, a change from a trigger operation to no trigger operation is another triggered state, a change from a first operation type to a second operation type is a further triggered state, etc.

[0111] In some embodiments, the movement control unit corresponds to a plurality of types of trigger operations. Illustratively, a user controls the first virtual character to move in different directions by different trigger operations, or controls the first virtual character to move at different speeds by different trigger operations, or controls the first virtual character to move in different directions at different speeds by different trigger operations.

[0112] In some embodiments, the attack control unit corresponds to one or more types of trigger operations. In one possible embodiment, the attack control unit corresponds to one type of trigger operation, and the user controls the first virtual character to perform an attack action and adjust the target movement state of the first virtual character through the trigger operation. In another possible embodiment, the attack control unit corresponds to multiple types of trigger operations, and the user controls the first virtual character to perform different attack actions through different trigger operations. In this case, the multiple types of trigger operations include a target trigger operation, and the user controls the target movement state of the first virtual character through the target trigger operation, and the target trigger operation does not correspond to a skill, i.e., the user can only adjust the target movement state of the first virtual character through the target trigger operation, but cannot control the first virtual character to perform an attack action.

[0113] In an embodiment of the present application, the target movement state includes a non-linear deceleration state, a linear deceleration state, an acceleration state, a first deceleration state, and a second deceleration state, where the linear deceleration state, the first deceleration state, and the second deceleration state are three different deceleration states, and the first virtual character moves in different manners in different deceleration states.

[0114] In some embodiments, the client determines a target movement state of a first virtual character based on a first operation on a movement control unit and a second operation on an attack control unit. Here, the first operation may be a drag operation. For example, in some embodiments, the user controls the movement of the first virtual character by dragging a joystick. Similarly, the second operation may be any operation, such as a single click operation, a double click operation, a strong press operation, or a slide operation, although the embodiments of the present application are not limited thereto. In some embodiments, the first operation and the second operation may be the same operation or different operations, although the embodiments of the present application are not limited thereto.

[0115] In some embodiments, if a client detects a first operation on a movement control device and detects a second operation on an attack control device within the duration of the first operation, and the first operation is a direction adjustment operation, the client determines that the target movement state of the first virtual character is a non-linear deceleration state. For example, if the direction adjustment operation is a drag operation on a joystick, and the drag direction does not match the current movement direction of the first virtual character, and the second operation is a click operation, the client determines that the target movement state of the first virtual character is a non-linear deceleration state when the client detects a drag operation on a movement control device and detects a click operation on the attack control device within the duration of the drag operation. In embodiments of the present application, the non-linear deceleration state is also referred to as a drift state or a turning state.

[0116] In some embodiments, if a first operation on a movement control unit is detected and a second operation on an attack control unit is detected within the duration of the first operation, and the first operation is not a direction adjustment operation, the client determines that the target movement state of the first virtual character is a linear deceleration state. Illustratively, the first operation is a drag operation on a joystick, and the drag direction matches the current movement direction of the first virtual character, and the second operation is a click operation, i.e., if the client detects a drag operation on a movement control unit and a click operation on an attack control unit is detected within the duration of the drag operation, the client determines that the target movement state of the first virtual character is a linear deceleration state.

[0117] In some embodiments, when a first operation on a movement control unit is detected and a second operation on an attack control unit is not detected within the duration of the first operation, the client determines that the target movement state of the first virtual character is an acceleration state. Exemplarily, the first operation may be a drag operation on a joystick, and the second operation may be any operation. That is, when the client detects a drag operation on a joystick and no operation on an attack control unit is detected within the duration of the drag operation, the client determines that the target movement state of the first virtual character is an acceleration state. Of course, in exemplary embodiments, the first operation and the second operation may be the same operation or different operations, and the embodiments of the present application are not limited thereto.

[0118] In some embodiments, if a first operation on a movement control unit is detected and a second operation on an attack control unit is detected within a first time period after the first operation is lost, the client determines that the target movement state of the first virtual character is a first deceleration state. Exemplarily, the first operation is a drag operation on a joystick and the second operation is a press operation. That is, if the client detects a press operation on the attack control unit within a first time period after the drag operation on the joystick is lost, the client determines that the target movement state of the first virtual character is a first deceleration state. In some embodiments, the time the first virtual character is in the first deceleration state is equal to the press time of the press operation. Exemplarily, the start time of the first deceleration state is the start time of the press operation, and the end time of the first deceleration state is the end time of the press operation. In some embodiments, in the first deceleration state, the minimum velocity of the first virtual character is zero, and the first time period is equal to or less than the time required for the velocity of the first virtual character to decrease to zero. Note that, since it is not possible to guarantee that the velocity of the first virtual character will be constant, the first time period also changes flexibly. For example, if it is determined that the target movement state of the first virtual character at a certain time is the second deceleration state, the time required for the velocity of the first virtual character to decrease to zero is determined based on the velocity of the first virtual character at that time, and the first time period is further determined based on that time. Of course, in an exemplary embodiment, the first operation and the second operation may be the same operation or different operations, and the embodiment of the present application is not limited thereto.

[0119] In some embodiments, if a first operation on a movement control unit is detected and a second operation on an attack control unit is not detected after the first operation is lost, the client determines that the target movement state of the first virtual character is a second deceleration state. Exemplarily, the first operation may be a drag operation on a joystick, and the second operation may be an arbitrary operation. That is, if the client detects that the drag operation on the joystick is lost and does not detect any operation on the attack control unit, the client determines that the target movement state of the first virtual character is a second deceleration state. Of course, in exemplary embodiments, the first operation and the second operation may be the same operation or different operations, and the embodiments of the present application are not limited thereto.

[0120] In an embodiment of the present application, since the attack control unit can control the first virtual character to perform an attack action, when the user can control the first virtual character to perform an attack action by a second operation, the client increases the impulse corresponding to the first virtual character when the second operation on the attack control unit is detected, and controls the first virtual character to move at an increased speed when the impulse satisfies a first condition.

[0121] For example, the relationship between the target movement state and the operation is shown in Table 1 below.

[0122] [Table 1]

[0123] In an embodiment of the present application, after the accelerated movement ends, the client continues to control the movement of the first virtual character in a previous movement state, where the previous movement state refers to the movement state of the first virtual character when the impulse satisfies a first condition.

[0124] In an embodiment of the present application, a first virtual character corresponds to a virtual carrier, and the client displays the movement state of the first virtual character by rendering the movement effect of the virtual carrier. When the first virtual character moves using the virtual carrier, it can realize drift (non-linear deceleration state), gentle braking (linear deceleration state), acceleration, sudden braking (first deceleration state), and normal braking (second deceleration state). Taking into account the inertia of the virtual carrier during movement, the realism of the movement of the virtual carrier carrying the first virtual character is improved. In one possible embodiment, there is a binding relationship between the first virtual character and the virtual carrier, i.e., when the user controls the first virtual character to enter a game, the first virtual character is automatically loaded by the virtual carrier and the user can understand that the virtual carrier is a part of the first virtual character; in another possible embodiment, there is a non-binding relationship between the first virtual character and the virtual carrier, i.e., after the user controls the first virtual character to enter a game, the client calls the virtual carrier in response to a call operation on the virtual carrier and loads the first virtual character by the virtual carrier.

[0125] In step 1003, the movement of the first virtual character is controlled based on the target movement state.

[0126] In some embodiments of the present application, the client determines a target movement state of a first virtual character and then controls the movement of the first virtual character based on the target movement state. In some embodiments, the client obtains movement parameters corresponding to the target movement state and further controls the movement of the first virtual character based on the movement parameters. In some embodiments, the movement parameters are obtained based on a pre-configured parameter set.

[0127] In one possible embodiment, the pre-configured parameter set records a correspondence relationship between a target moving state and a moving parameter. In some embodiments, after obtaining a target moving state, the client directly obtains the moving parameter corresponding to the target moving state from the pre-configured parameter set, which is simple and efficient to operate.

[0128] In another possible embodiment, the pre-configured parameter set records a correspondence between an operation and a movement parameter, and a correspondence between a target movement state and a calculation rule. In some embodiments, after obtaining the target movement state, the client obtains the movement parameter corresponding to the target operation and the calculation rule corresponding to the target movement state from the pre-configured parameter set, and further calculates the movement parameter based on the calculation rule to obtain the movement parameter corresponding to the target movement state. This method makes the parameter configuration flexible, and movement parameters corresponding to different target movement states can be obtained by different combinations of the same parameters, thereby enriching the movement methods of the first virtual character and reducing the number of parameter configurations required. Here, the target operation may include a first operation on the movement control unit, where the first operation is a direction adjustment operation; a first operation on the movement control unit, where the first operation is not a direction adjustment operation; the first operation on the movement control unit being lost; and a second operation on the attack control unit.

[0129] As described above, in the technical solution provided in the embodiments of the present application, the movement state that the virtual character is about to enter is determined according to the triggered state of the movement control unit and the attack control unit, and different movement methods corresponding to different movement states enrich the movement methods of the virtual character, thereby improving the policy and flexibility when controlling the virtual character.

[0130] In addition, the target movement state of the virtual character is determined based on operations on the movement control unit and operations on the attack control unit, and the target movement state is one of a non-linear deceleration state, a linear deceleration state, an acceleration state, a first deceleration state, and a second deceleration state, thereby improving the movement flexibility of the virtual character.

[0131] Furthermore, by controlling the movement of the virtual character using movement parameters, the movement control of the virtual character becomes more flexible and realistic compared to the fixed moving animation in the related art.

[0132] In some embodiments, mutual conversion may be performed between different target moving states. Illustratively, as shown in FIG. 11, the specific steps are as follows:

[0133] In step 1101, the client detects a first operation on the movement control unit and a second operation on the attack control unit.

[0134] In step 1102, the client determines whether the first operation is a direction adjustment operation. If the first operation is a direction adjustment operation, steps 1103 to 1105 are executed, and if the first operation is not a direction adjustment operation, step 1106 is executed.

[0135] In step 1103, the client determines that the desired movement state of the first virtual character is a non-linear deceleration state.

[0136] In step 1104, the client determines whether the movement direction of the first virtual character has been transformed to match the target direction. If the movement direction of the first virtual character has been transformed to match the target direction, the client executes step 1106; if the movement direction of the first virtual character has not been transformed to match the target direction, the client continues to execute step 1104.

[0137] In step 1105, the client determines whether the first operation and the second operation have been lost. If the first operation has not been lost and the second operation has not been lost, it executes step 1106; if the first operation has been lost and the second operation has not been lost, it executes step 1107; if the first operation has not been lost and the second operation has been lost, it executes step 1108; and if the first operation has been lost and the second operation has been lost, it executes step 1109.

[0138] In step 1106, the client determines that the target movement state for the first virtual character is a linear deceleration state.

[0139] In step 1107, the client determines that the target movement state of the first virtual character is a first deceleration state.

[0140] In step 1108, the client determines that the target movement state of the first virtual character is an acceleration state.

[0141] In step 1109, the client determines that the target movement state of the first virtual character is a second deceleration state.

[0142] In an embodiment of the present application, the deceleration efficiency corresponding to the first deceleration state is greater than the deceleration efficiency corresponding to the second deceleration state, which is greater than the deceleration efficiency corresponding to the linear deceleration state. Illustratively, the first deceleration state is referred to as a hard braking state, the second deceleration state is referred to as a normal braking state, and the linear deceleration state is referred to as a gentle braking state.

[0143] Below, we introduce the movement methods corresponding to different target movement states.

[0144] 12 shows a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (1201 to 1203):

[0145] In step 1201, the movement control section and the attack control section are displayed. The above step 1201 is similar to step 1001 in the embodiment of Fig. 10, and the specifics thereof are to be referred to in the embodiment of Fig. 10, and the description thereof will be omitted here.

[0146] In step 1202, a first operation on the movement control unit is detected, and a second operation on the attack control unit is detected within the duration of the first operation, and if the first operation is a direction adjustment operation, it is determined that the target movement state of the first virtual character is a non-linear deceleration state.

[0147] Optionally, the non-linear deceleration state refers to a movement state in which the movement is decelerated during the course of curved movement. As shown in Fig. 13, when a direction adjustment operation for the movement control unit 131 and a second operation for the attack control unit 132 are detected, the client controls the first virtual character 133 to move from a first position 134 to a second position 135 by a turning deceleration method.

[0148] In step 1203, the movement of the first virtual character is controlled based on the non-linear deceleration state.

[0149] In an exemplary embodiment, the above step 1203 includes at least one of the following steps:

[0150] 1. Obtain the target direction indicated by the direction adjustment operation on the movement control unit.

[0151] In an embodiment of the present application, when it is determined that the target movement state of the first virtual character is a non-linear deceleration state, the client obtains, based on the direction adjustment operation, a target direction indicated by the direction adjustment operation, where the target direction is used to indicate the final movement direction of the first virtual character in the non-linear deceleration state.

[0152] In one possible embodiment, the direction adjustment operation is a drag operation on a joystick, and the client determines the target direction based on the drag method of the drag operation. For example, as shown in Fig. 14, the target direction points from a center point 141 of a movement control unit 140 to a final position 142 of the drag operation.

[0153] In another possible embodiment, the direction adjustment operation is a slide operation on the movement control unit, and the client determines the target direction based on the start position and end position of the slide operation. In some examples, the client determines a connecting line between the start position and the center point of the movement control unit as a first connecting line, a connecting line between the end position and the center point of the movement control unit as a second connecting line, and further determines an angle from the first connecting line to the second connecting line as a transformation angle, and determines the target direction by rotating the current direction of the first virtual character by the transformation angle. Here, the rotation direction corresponding to the current direction is the same as the slide direction of the slide operation.

[0154] 2. Obtain the movement parameters corresponding to the non-linear deceleration state.

[0155] In an embodiment of the present application, after determining that the target movement state of the first virtual character is a non-linear deceleration state, the client obtains movement parameters corresponding to the non-linear deceleration state, where the movement parameters include a turning acceleration, a turning velocity, and a turning angular velocity corresponding to the non-linear deceleration state.

[0156] In one possible embodiment, the movement parameters have a correspondence relationship only with the target movement state. In some examples, after determining that the target movement state of the first virtual character is a non-linear deceleration state, the client directly obtains the movement parameters corresponding to the non-linear deceleration state from the pre-configured parameter set.

[0157] In another possible embodiment, the movement parameters are associated with the target movement state and the first operation. In some embodiments, after determining that the target movement state of the first virtual character is a non-linear deceleration state, the client obtains base movement parameters corresponding to the non-linear deceleration state, the base movement parameters including a base turning acceleration, a base turning velocity, and a turning angular velocity of the first virtual character, and further determines offset movement parameters corresponding to the non-linear deceleration state based on attribute information of the direction adjustment operation, the offset movement parameters including an offset turning acceleration, an offset turning velocity, and an offset turning angular velocity of the first virtual character, and then determines the movement parameters corresponding to the non-linear deceleration state based on the base movement parameters and the offset movement parameters. In some embodiments, the base movement parameters are obtained from a pre-configured parameter set.

[0158] In some embodiments, the attribute information of different types of direction adjustment operations is different. Illustratively, if the direction adjustment operation is a slide operation, the attribute information of the direction adjustment operation includes a slide speed, and the client determines an offset movement parameter based on the slide speed, where the slide speed and the value of the offset movement parameter have a positive correlation, i.e., the larger the slide speed, the larger the offset value corresponding to the offset movement parameter; if the direction adjustment operation is a single-click operation, the attribute information of the direction adjustment operation includes a pressing pressure, and the client determines an offset movement parameter based on the pressing pressure, where the pressing pressure and the value of the offset movement parameter have a positive correlation, i.e., the larger the pressing pressure, the larger the offset value corresponding to the offset movement parameter; if the direction adjustment operation is a multi-click operation, the attribute information of the direction adjustment operation includes a click count, and the client determines an offset movement parameter based on the click count, where the click count and the value of the offset movement parameter have a positive correlation, i.e., the larger the click count, the larger the offset value corresponding to the offset movement parameter.

[0159] In a further possible embodiment, the movement parameters are related to a target movement state and a basis operation for determining the target movement state. Illustratively, the basis operation for the non-linear deceleration state includes a direction adjustment operation for the movement control unit and a second operation for the attack control unit. When obtaining the movement parameters, the client obtains a parameter corresponding to the direction adjustment operation and a parameter corresponding to the second operation, obtains a calculation rule corresponding to the non-linear deceleration state, and further calculates the parameter corresponding to the direction adjustment operation and the parameter corresponding to the second operation based on the calculation rule to obtain the movement parameters. In some embodiments, the parameter corresponding to the direction adjustment operation and the parameter corresponding to the second operation are obtained from a pre-configured parameter set.

[0160] 3. The client controls the first virtual character to move along a curve based on the turning acceleration, turning speed, and turning angular velocity corresponding to the non-linear deceleration state, and controls the moving direction of the first virtual character to change from the current direction to the target direction during the curved movement.

[0161] In some embodiments, the turning acceleration is used to characterize the rate of change in the numerical value of the velocity of the first virtual character during a non-linear deceleration state, the turning velocity refers to the minimum numerical value of the velocity that the first virtual character can reach during a non-linear deceleration state, and the turning angular velocity is used to characterize the rate of change in the direction of the velocity of the first virtual character.

[0162] In an embodiment of the present application, during the course of curved movement, the movement direction of the first virtual character is adjusted based on the turning angular velocity until the movement direction of the first virtual character becomes the target direction, and the speed of the first virtual character is adjusted based on the turning acceleration until the speed of the first virtual character becomes the turning speed.

[0163] In the embodiment of the present application, during the curved movement, the orientation of the first virtual character is simultaneously controlled to change so that the orientation of the first virtual character always matches the direction of the speed. For example, in the embodiment of the present application, the orientation of the first virtual character includes a logical orientation and an expression orientation, where the logical orientation refers to the orientation that the first virtual character should theoretically display, and the expression orientation refers to the orientation that the first virtual character actually displays on the user interface. To create a drift effect, in a non-linear deceleration state (i.e., a turning state), the change in the expression orientation when the first virtual character turns is faster than the change in the logical orientation. The client controls the movement direction of the first virtual character based on the logical orientation and controls the character transformation of the first virtual character based on the expression orientation, thereby creating a drift effect. In one possible embodiment, the turning angular velocity includes two types of turning angular velocity, a first turning angular velocity and a second turning angular velocity, where the first turning angular velocity controls the logical orientation of the first virtual character and the second turning angular velocity controls the expression orientation of the first virtual character, and the first turning angular velocity is smaller than the second turning angular velocity. In another possible embodiment, the turning angular velocity includes only one turning angular velocity, and based on the turning angular velocity, the client controls the logical orientation to change and then the expression orientation to change. For example, after determining that the target transition state of the first virtual character is a non-linear deceleration state, the client controls the expression orientation of the first virtual character to change in the i-th frame and controls the logical orientation of the first virtual character to change in the i+1-th frame. Here, i is an arbitrary value, and the embodiments of the present application are not limited thereto.

[0164] As described above, in the technical solutions provided in the embodiments of the present application, the virtual character is controlled to move in a non-linear deceleration state by performing a direction adjustment operation on the movement control unit and an operation on the attack control unit, thereby enriching the movement methods of the virtual character; and when controlling the target movement state of the virtual character to transition to a non-linear deceleration state, there is no need to provide a special control unit; the virtual character can be controlled to enter a non-linear deceleration state based on the existing control unit, and the transition to the non-linear deceleration state is realized by combining the control units, enriching the functions of the existing movement control unit and skill control unit, and simplifying the interface layout, which is helpful in reducing operational errors caused by an overly complicated interface layout.

[0165] In addition, when determining the movement parameters of the non-linear deceleration state, adjustments are made based on the offset movement parameters and the basic movement parameters in addition to the basic movement parameters to avoid the movement parameters of the non-linear deceleration state being inaccurate.

[0166] 15 shows a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (1501 to 1503):

[0167] In step 1501, the movement control section and the attack control section are displayed. The above step 1501 is similar to step 1001 in the embodiment of Fig. 10, and the specifics thereof are to be referred to in the embodiment of Fig. 10, and the description thereof will be omitted here.

[0168] In step 1502, a first operation on the movement control unit is detected, and a second operation on the attack control unit is detected within the duration of the first operation, and if the first operation is not a direction adjustment operation, it is determined that the target movement state of the first virtual character is a linear deceleration state.

[0169] In the embodiment of the present application, the linear deceleration state refers to a movement state in which gradual deceleration occurs during linear movement. For example, as shown in Fig. 16, when a first operation (not a direction adjustment operation) on the movement control unit 131 and a second operation on the attack control unit 132 are detected, the client controls the first virtual character 133 to move from a first position 134 to a third position 161 by linear deceleration.

[0170] In step 1503, the movement of the first virtual character is controlled based on the linear deceleration state. In an exemplary embodiment, the step 1503 includes at least one of the following steps:

[0171] 1. Obtaining movement parameters corresponding to a linear deceleration state. In an embodiment of the present application, after the client determines that the target movement state of the first virtual character is a linear deceleration state, it obtains movement parameters corresponding to the linear deceleration state, where the movement parameters include the linear velocity and linear acceleration of the first virtual character.

[0172] In one possible embodiment, the movement parameters have a correspondence relationship only with the target movement state. In some examples, after the client determines that the target movement state of the first virtual character is the linear deceleration state, the client directly obtains the movement parameters corresponding to the linear deceleration state from the pre-configured parameter set.

[0173] In another possible embodiment, the movement parameters are associated with a target movement state, the first operation. In some embodiments, after determining that the target movement state of the first virtual character is a linear deceleration state, the client obtains base movement parameters corresponding to the linear deceleration state, the base movement parameters including a base linear acceleration and a base linear velocity of the first virtual character, and further determines offset movement parameters corresponding to the linear deceleration state based on attribute information of the first operation (not the directional adjustment operation), the offset movement parameters including an offset linear acceleration and an offset linear velocity of the first virtual character, and then determines the movement parameters corresponding to the linear deceleration state based on the base movement parameters and the offset movement parameters. In some embodiments, the base movement parameters are obtained from a pre-configured parameter set. In some embodiments, the attribute information of different types of first operations is different, specifically similar to the attribute information of the directional adjustment operation, and description thereof will be omitted here.

[0174] In a further possible embodiment, the movement parameters are related to a target movement state and a ground operation for determining the target movement state. Illustratively, the ground operation for the linear deceleration state includes a first operation on the movement control unit and a second operation on the attack control unit. When obtaining the movement parameters, the client obtains a parameter corresponding to the first operation and a parameter corresponding to the second operation, obtains a calculation rule corresponding to the linear deceleration state, and further calculates the parameter corresponding to the first operation and the parameter corresponding to the second operation based on the calculation rule to obtain the movement parameters. In some embodiments, the parameter corresponding to the first operation and the parameter corresponding to the second operation are obtained from a pre-configured parameter set.

[0175] Illustratively, taking the linear acceleration as an example, when acquiring the linear acceleration, a first acceleration and a second acceleration are acquired, where the first acceleration refers to the acceleration corresponding to the acceleration state, and the second acceleration refers to the acceleration corresponding to the operation on the attack control unit, and the linear acceleration of the first virtual character is determined based on the first acceleration and the second acceleration. In an embodiment of the present application, the client determines the linear acceleration of the first virtual character based on the first acceleration, the second acceleration, and a calculation rule corresponding to the linear deceleration state.

[0176] In the embodiment of the present application, the first acceleration may be referred to as an acceleration corresponding to a first operation on the movement control unit.

[0177] 2. Controlling the first virtual character to move based on the linear acceleration and linear velocity.

[0178] In some embodiments, linear acceleration is used to characterize the rate of change in the velocity value of the first virtual character during linear deceleration, and linear velocity refers to the minimum velocity value that the first virtual character can reach during linear deceleration, and in some embodiments, the linear velocity is zero.

[0179] In an embodiment of the present application, the first virtual character is controlled to move at a variable speed along the current direction based on the linear acceleration until the speed of the first virtual character reaches a linear speed, and then the first virtual character is controlled to continue moving at a constant speed along the current direction based on the linear speed.

[0180] In some embodiments, the current direction of the first virtual character may be the previous movement direction of the first virtual character or the orientation of the first virtual character, and embodiments of the present application are not limited thereto.

[0181] As described above, in the technical solution provided in the embodiments of this application, the virtual character is controlled to move in a linear deceleration state by performing a non-directional adjustment operation on the movement control unit and an operation on the attack control unit, thereby enriching the movement methods of the virtual character.

[0182] 17 shows a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (1701 to 1705):

[0183] In step 1701, the movement control unit and the attack control unit are displayed.

[0184] In step 1702, a first operation on the movement control unit is detected, and a second operation on the attack control unit is detected within the duration of the first operation, and if the first operation is a direction adjustment operation, it is determined that the target movement state of the first virtual character is a non-linear deceleration state.

[0185] In step 1703, the movement of the first virtual character is controlled based on the non-linear deceleration state. The above steps 1701 to 1703 are similar to steps 1201 to 1203 in the embodiment of Fig. 12, and for specifics, refer to the embodiment of Fig. 12, and the description thereof will be omitted here.

[0186] In step 1704, if the first operation is present and the second operation is absent, the target movement state of the first virtual character is determined to be an acceleration state. In the embodiment of the present application, the acceleration state refers to the acceleration movement state of the first virtual character. For example, as shown in FIG. 18, the client detects a first operation on the movement control unit 131, and if no operation on the attack control unit 132 is detected, controls the first virtual character 133 to move from the first position 134 to the fourth position 181 by acceleration.

[0187] In step 1705, the movement of the first virtual character is controlled based on the acceleration state. In an exemplary embodiment, the step 1705 includes at least one of the following steps:

[0188] 1. Obtain the movement parameters corresponding to the acceleration state.

[0189] In an embodiment of the present application, after determining that the target movement state of the first virtual character is an acceleration state, the client obtains movement parameters corresponding to the acceleration state, where the movement parameters include a first acceleration and a maximum velocity of the first virtual character, and the first acceleration refers to the acceleration corresponding to the acceleration state.

[0190] In one possible embodiment, the movement parameters have a correspondence relationship only with the target movement state. In some examples, after the client determines that the target movement state of the first virtual character is an acceleration state, the client directly obtains the movement parameters corresponding to the acceleration state from the pre-configured parameter set.

[0191] In another possible embodiment, the movement parameters are associated with a target movement state, i.e., a first operation. In some embodiments, after determining that the target movement state of the first virtual character is an acceleration state, the client obtains base movement parameters corresponding to the acceleration state, the base movement parameters including a base first acceleration and a base maximum velocity of the first virtual character, and further determines offset movement parameters corresponding to the acceleration state based on attribute information of the first operation, the offset movement parameters including an offset first acceleration and an offset maximum velocity of the first virtual character, and then determines the movement parameters corresponding to the acceleration state based on the base movement parameters and the offset movement parameters. In some embodiments, the base movement parameters are obtained from a pre-configured parameter set. In some embodiments, the attribute information of different types of first operations is different, specifically similar to the attribute information of the direction adjustment operation, and description thereof will be omitted here.

[0192] In a further possible embodiment, the movement parameter is related to a target movement state and a basis operation for determining the target movement state. Illustratively, the basis operation for the acceleration state is a first operation on the movement control unit, and when acquiring the movement parameter, the client acquires a parameter corresponding to the first operation, acquires a calculation rule corresponding to the acceleration state, and further calculates the parameter corresponding to the first operation based on the calculation rule to obtain the movement parameter. In some embodiments, the parameter corresponding to the first operation is acquired from a preconfigured parameter set.

[0193] 2. Controlling the movement of the first virtual character based on the first acceleration and maximum velocity.

[0194] In some embodiments, the first acceleration is used to characterize the rate of change in the numerical value of the velocity of the first virtual character when in an acceleration state, and the maximum velocity refers to the maximum numerical value of the velocity that the first virtual character can reach when in an acceleration state.

[0195] In some embodiments, the first virtual character is controlled to move at a constant acceleration along the current direction based on the first acceleration until the velocity of the first virtual character increases to a maximum velocity, and then the first virtual character is controlled to continue moving at a constant velocity along the current direction based on the maximum velocity. In some embodiments, the current direction of the first virtual character may be the previous movement direction of the first virtual character or the orientation of the first virtual character, and the embodiments of the present application are not limited thereto.

[0196] In some embodiments, the acceleration state may also be referred to as a linear acceleration state, in which the first operation is not a direction adjustment operation, and correspondingly, the target movement state of the first virtual character may be a turning acceleration state, in which the first operation on the movement control unit is a direction adjustment operation, where the movement parameters corresponding to the turning acceleration state include a first acceleration, a maximum velocity, and a turning angular velocity of the first virtual character.

[0197] As described above, in the technical solutions provided in the embodiments of the present application, the virtual character is controlled to move in an accelerated state by operating the movement control unit, thereby enriching the movement methods of the virtual character.

[0198] 19 shows a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (1901 to 1905):

[0199] In step 1901, the movement control unit and the attack control unit are displayed.

[0200] In step 1902, a first operation on the movement control unit is detected, and a second operation on the attack control unit is detected within the duration of the first operation, and if the first operation is a direction adjustment operation, it is determined that the target movement state of the first virtual character is a non-linear deceleration state.

[0201] In step 1903, the movement of the first virtual character is controlled based on the non-linear deceleration state. The above steps 1901 to 1903 are similar to steps 1201 to 1203 in the embodiment of Fig. 12, and for specific details, refer to the embodiment of Fig. 12, and the description thereof will be omitted here.

[0202] In step 1904, if the first operation is lost and a second operation is present, the target movement state of the first virtual character is determined to be a first deceleration state. In the embodiment of the present application, the first deceleration state refers to a movement state of rapid deceleration during the linear movement of the first virtual character. For example, as shown in FIG. 20, when the client detects that the first operation for the movement control unit 131 has been lost and a second operation for the attack control unit 132 has been detected, the client controls the first virtual character 133 to move from the first position 134 to the fifth position 201 using rapid deceleration.

[0203] In step 1905, the movement of the first virtual character is controlled based on the first deceleration state. In an exemplary embodiment, the step 1905 includes at least one of the following steps:

[0204] 1. Obtain the movement parameters corresponding to the first deceleration state.

[0205] In an embodiment of the present application, after determining that the target movement state of the first virtual character is the first deceleration state, the client obtains movement parameters corresponding to the first deceleration state, where the movement parameters include a third acceleration of the first virtual character, and the third acceleration refers to the acceleration corresponding to the first deceleration state.

[0206] In one possible embodiment, the movement parameters have a correspondence relationship only with the target movement state. In some examples, after the client determines that the target movement state of the first virtual character is the first deceleration state, the client directly obtains the movement parameters corresponding to the first deceleration state from the pre-configured parameter set.

[0207] In another possible embodiment, the movement parameters are associated with a target movement state and a second operation. In some embodiments, after determining that the target movement state of the first virtual character is a first deceleration state, the client obtains base movement parameters corresponding to the first deceleration state, the base movement parameters including a base third acceleration of the first virtual character, and further determines offset movement parameters corresponding to the first deceleration state based on attribute information of the second operation, the offset movement parameters including the offset third acceleration of the first virtual character, and then determines the movement parameters corresponding to the first deceleration state based on the base movement parameters and the offset movement parameters. In some embodiments, the base movement parameters are obtained from a pre-configured parameter set. In some embodiments, the attribute information of different types of second operations is different, specifically similar to the attribute information of the direction adjustment operation, and description thereof will be omitted here.

[0208] In a further possible embodiment, the movement parameter is related to a target movement state and a basis operation for determining the target movement state. Illustratively, the basis operation for the first deceleration state is a second operation for the attack control unit, and when the client obtains the movement parameter, the client obtains a parameter corresponding to the second operation and obtains a calculation rule corresponding to the first deceleration state. The client calculates the parameter corresponding to the second operation based on the calculation rule to obtain the movement parameter. In some embodiments, the parameter corresponding to the second operation is obtained from a preconfigured parameter set.

[0209] Illustratively, taking the third acceleration as an example, when acquiring the third acceleration, a second acceleration and a fourth acceleration are acquired, where the second acceleration refers to the acceleration corresponding to the operation on the attack control unit, and the fourth acceleration refers to the acceleration corresponding to the second deceleration state, and the third acceleration of the first virtual character is determined based on the second acceleration and the fourth acceleration. In an embodiment of the present application, the client determines the third acceleration of the first virtual character based on the second acceleration, the fourth acceleration, and a calculation rule corresponding to the first deceleration state.

[0210] 2. Controlling the movement of the first virtual character based on the third acceleration.

[0211] In some embodiments, the third acceleration is used to characterize the rate of change in the numerical value of the velocity of the first virtual character during the first deceleration state. In an embodiment of the present application, the client controls the first virtual character to move at a constant deceleration along the current direction based on the third acceleration until the velocity of the first virtual character decreases to zero.

[0212] In some embodiments, the current direction of the first virtual character may be the previous movement direction of the first virtual character or the orientation of the first virtual character, and embodiments of the present application are not limited thereto.

[0213] As described above, in the technical solution provided in the embodiments of the present application, after the operation on the movement control unit disappears, the operation on the attack control unit controls the virtual character to move in a first deceleration state, thereby enriching the movement methods of the virtual character.

[0214] 21 shows a flowchart of a method for controlling a virtual character provided in another embodiment of the present application. The method is executed by the terminal device 10 of the virtual character control system shown in FIG. 1, and each step may be executed by a client of an application program in the terminal device 10. The method may include at least one of the following steps (2101 to 2105):

[0215] In step 2101, the movement control unit and the attack control unit are displayed.

[0216] In step 2102, a first operation on the movement control unit is detected, and a second operation on the attack control unit is detected within the duration of the first operation, and if the first operation is a direction adjustment operation, it is determined that the target movement state of the first virtual character is a non-linear deceleration state.

[0217] In step 2103, the movement of the first virtual character is controlled based on the non-linear deceleration state. The above steps 2101 to 2103 are similar to steps 1201 to 1203 in the embodiment of Fig. 12, and for specifics, refer to the embodiment of Fig. 12, and the description thereof will be omitted here.

[0218] In step 2104, if both the first operation and the second operation have disappeared, it is determined that the target movement state of the first virtual character is the second deceleration state.

[0219] In the embodiment of the present application, the second deceleration state refers to a normal deceleration state in the linear movement process of the first virtual character. For example, as shown in Fig. 22, when the client detects that the first operation on the movement control unit 131 has disappeared and the operation on the attack control unit 132 is not detected, the client controls the first virtual character 133 to move from the first position 134 to the sixth position 221 by a rapid deceleration method.

[0220] In step 2105, the movement of the first virtual character is controlled based on the second deceleration state. In an exemplary embodiment, the step 2105 includes at least one of the following steps:

[0221] 1. Obtain the movement parameters corresponding to the second deceleration state.

[0222] In an embodiment of the present application, after determining that the target movement state of the first virtual character is the second deceleration state, the client obtains movement parameters corresponding to the second deceleration state, where the movement parameters include a fourth acceleration of the first virtual character, and the fourth acceleration refers to the acceleration corresponding to the second deceleration state.

[0223] In one possible embodiment, the movement parameters have a correspondence relationship only with the target movement state. In some examples, after the client determines that the target movement state of the first virtual character is the second deceleration state, the client directly obtains the movement parameters corresponding to the second deceleration state from the pre-configured parameter set.

[0224] In another possible embodiment, the movement parameter is related to a target movement state and a ground operation for determining the target movement state. Illustratively, the ground operation for the second deceleration state is the disappearance of a first operation on the movement control unit, and when acquiring the movement parameter, the client acquires a parameter corresponding to the disappearance of the first operation, acquires a calculation rule corresponding to the second deceleration state, and further calculates a parameter corresponding to the disappearance of the first operation based on the calculation rule to obtain the movement parameter. In some embodiments, the parameter corresponding to the disappearance of the first operation is acquired from a preconfigured parameter set.

[0225] 2. Controlling the movement of the first virtual character based on the fourth acceleration.

[0226] In some embodiments, the fourth acceleration is used to characterize the rate of change in the value of the velocity of the first virtual character during the second deceleration state. In some embodiments of the present application, the first virtual character is controlled to move at a constant deceleration along the current direction based on the fourth acceleration until the velocity of the first virtual character decreases to zero.

[0227] In some embodiments, the current direction of the first virtual character may be the previous movement direction of the first virtual character or the orientation of the first virtual character, and embodiments of the present application are not limited thereto.

[0228] As described above, in the technical solution provided in the embodiments of the present application, after the operation on the movement control unit disappears and no operation on the attack control unit is detected, the virtual character is controlled to move in a second deceleration state, thereby enriching the movement methods of the first virtual character.

[0229] Although the present application has been introduced above using examples, these are merely illustrative and explanatory, and new embodiments formed by any combination of the steps in the above examples are also included within the scope of protection of the present application.

[0230] The following are apparatus embodiments of the present application that can be used to carry out the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.

[0231] 23 shows a block diagram of a virtual character control device provided in one embodiment of the present application. The device has a function for implementing the above-described virtual character control method, and the function may be implemented by hardware or by hardware executing corresponding software. The device may be a terminal device or may be provided in a terminal device. The device 2300 may include a control unit display module 2310, a character movement module 2320, an impulse increase module 2330, an accelerated movement module 2340, and an impulse clear module 2350.

[0232] The control unit display module 2310 is used to display a movement control unit and an attack control unit, where the movement control unit is a joystick control unit for controlling the movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action.

[0233] The character movement module 2320 is used to control the movement of the first virtual character in response to a first operation on the movement control unit.

[0234] The impulse increase module 2330 is used to increase the impulse corresponding to the first virtual character in response to a second operation on the attack control unit when the first virtual character is in a moving state.

[0235] The accelerated movement module 2340 is used to control the first virtual character to move at an accelerated speed when the impulse satisfies a first condition, and wherein the movement speed of the first virtual character during the accelerated movement is greater than the movement speed of the first virtual character before the accelerated movement.

[0236] The impulse clear module 2350 is used to clear the impulse corresponding to the first virtual character.

[0237] In an exemplary embodiment, the accelerated movement module 2340 is further used to control the first virtual character to perform the accelerated movement along a target movement direction, where the target movement direction is the movement direction of the first virtual character when the impulse satisfies the first condition.

[0238] In an exemplary embodiment, the accelerated movement module 2340 is further used to perform the step of controlling the first virtual character to perform the accelerated movement along a target movement direction when a direction adjustment operation on the movement control unit is not detected, or to control the first virtual character to perform the accelerated movement along the target direction indicated by the direction adjustment operation when a direction adjustment operation on the movement control unit is detected.

[0239] In an exemplary embodiment, the accelerated movement module 2340 is further used to control the first virtual character to accelerate its movement until the movement speed of the first virtual character increases to a maximum speed corresponding to the accelerated movement, and to control the first virtual character to decelerate its movement until the movement speed of the first virtual character decreases from the maximum speed corresponding to the accelerated movement to the movement speed before the accelerated movement.

[0240] In an exemplary embodiment, the impulse increase module 2330 is further used to: in response to a second operation on the attack control unit, update the impulse based on the attack speed of the first virtual character, and display the increasing process of the impulse on an impulse prompt bar; or in response to a second operation on the attack control unit, control the first virtual character to perform the attack action against a second virtual character within an attack range, update the impulse based on the number of hits of the attack action, and display the increasing process of the impulse on an impulse prompt bar; or in response to a second operation on the attack control unit, update the impulse based on the duration of the second operation, and display the increasing process of the impulse on an impulse prompt bar.

[0241] In an exemplary embodiment, as shown in FIG. 24, the device 2400 further includes an icon display module 2460 and an icon modification module 2470 .

[0242] The icon display module 2460 is used to display a movement speed instruction icon of the first virtual character, and the movement speed instruction icon is used to indicate the movement speed of the first virtual character.

[0243] The icon change module 2470 is used to change the display mode of the movement speed instruction icon based on the movement speed of the first virtual character.

[0244] Referring to Figure 25, a block diagram of a virtual character control device provided in another embodiment of the present application is shown. The device has a function for implementing the above-mentioned virtual character control method, and the function may be implemented by hardware or by hardware executing corresponding software. The device may be a terminal device or may be provided in a terminal device. The device 2500 may include a control unit display module 2510, a character movement module 2520, a first deceleration module 2530, and a second deceleration module 2540.

[0245] The control unit display module 2510 is used to display a movement control unit and an attack control unit, the movement control unit being a joystick control unit for controlling the movement of a first virtual character, and the attack control unit being used to control the first virtual character to perform an attack action.

[0246] The character movement module 2520 is used to control the movement of the first virtual character in response to a first operation on the movement control unit.

[0247] The first deceleration module 2530 is used to control the first virtual character to decelerate when the first operation is stopped.

[0248] The second deceleration module 2540 is used to control the first virtual character to decelerate with additional acceleration in response to a second operation on the attack control unit while the first virtual character is decelerating, until the first virtual character stops moving.

[0249] In an exemplary embodiment, the second deceleration module 2530 is further used to, in response to a second operation on the attack control unit during the deceleration of the first virtual character, obtain the additional acceleration, update the acceleration corresponding to the deceleration based on the additional acceleration, obtain an updated acceleration, and control the deceleration of the first virtual character based on the updated acceleration until the first virtual character stops moving.

[0250] In an exemplary embodiment, the first deceleration module 2540 is further used to control the first virtual character to decelerate at a constant rate based on the acceleration corresponding to the deceleration.

[0251] In an exemplary embodiment, the character movement module 2520 is further used to, in response to a first operation on the movement control unit, control the first virtual character to accelerate its movement until the movement speed of the first virtual character reaches a maximum movement speed, and to control the first virtual character to move at a constant speed at the maximum movement speed.

[0252] Referring to Figure 26, a block diagram of a virtual character control device provided in another embodiment of the present application is shown. The device has a function for implementing the above-mentioned virtual character control method, and the function may be implemented by hardware or by hardware executing corresponding software. The device may be a terminal device or may be provided in a terminal device. The device 2600 may include a control unit display module 2610, a turning control module 2620, and a deceleration control module 2630.

[0253] The control unit display module 2610 is used to display a movement control unit and an attack control unit, where the movement control unit is a joystick control unit for controlling the movement of a first virtual character, and the attack control unit is used to control the first virtual character to perform an attack action.

[0254] The turning control module 2620 is used to control the first virtual character to turn in response to a direction adjustment operation on the movement control unit.

[0255] The deceleration control module 2630 is used to control the first virtual character to decelerate its turning movement in response to an operation on the attack control unit while the first virtual character is turning and moving.

[0256] In an exemplary embodiment, the turning control module 2620 is further used to obtain a target direction indicated by the direction adjustment operation, and a turning acceleration, a turning angular velocity, and a maximum turning speed corresponding to the turning movement, and to control the first virtual character to turn based on the turning acceleration, the turning angular velocity, and the maximum turning speed corresponding to the turning movement, and to control the movement direction of the first virtual character to change toward the target direction during the turning movement.

[0257] In an exemplary embodiment, the deceleration control module 2630 is further used to obtain the target direction indicated by the direction adjustment operation, and the turning acceleration, turning angular velocity, and maximum turning speed corresponding to the turning deceleration movement, and to control the first virtual character to make a turning deceleration movement based on the turning acceleration, turning angular velocity, and maximum turning speed corresponding to the turning deceleration movement, and to control the movement direction of the first virtual character to change toward the target direction during the turning deceleration movement, wherein the orientation change speed of the first virtual character during the turning deceleration movement is greater than the movement direction change speed.

[0258] In an exemplary embodiment, as shown in FIG. 27, the apparatus 2600 further includes a linear translation module 2640 .

[0259] The linear movement module 2640 is used to control the first virtual character to move in a straight line in response to a non-directional adjustment operation on the movement control unit, and to control the first virtual character to move in a straight line with deceleration in response to an operation on the attack control unit during the linear movement of the first virtual character.

[0260] In addition, the device provided in the above embodiments is only described by taking as an example the division of each of the above functional modules when realizing its functions, and in actual applications, the above functions can be allocated to be realized by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to realize all or part of the above-described functions. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and the specific realization process is described in detail in the method embodiment, and the description thereof will be omitted here, and the beneficial effects of the above device embodiment can also be seen in the above embodiment, and the description thereof will be omitted here.

[0261] Referring to Figure 28, a block diagram of a terminal device 2800 provided in one embodiment of the present application is shown. The terminal device 2800 may be an electronic device such as a mobile phone, a tablet personal computer, a game console, an e-book reader, a multimedia playback device, a wearable device, a PC (Personal Computer), a smart voice interaction device, or a smart home appliance. The terminal device 2800 is used to realize the functions of the above-mentioned virtual character control method. Specifically, the functions are as follows:

[0262] Typically, the terminal device 2800 includes a processor 2801 and a memory 2802 .

[0263] The processor 2801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 2801 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), or a PLA (Programmable Logic Array). The processor 2801 may include a main processor and a coprocessor. The main processor is a processor for processing data in a wake-up state and is also called a CPU (Central Processing Unit). The coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 2801 may integrate a GPU (Graphics Processing Unit), which is used to render and draw content that needs to be displayed by a display screen. In some embodiments, the processor 2801 may include an AI (Artificial Intelligence) processor, which is used to process computational operations related to machine learning.

[0264] The memory 2802 may include one or more computer-readable storage media, which may be non-transitory. The memory 2802 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices, etc. In some embodiments, the non-transitory computer-readable storage media in the memory 2802 is used to store at least one program, which, when executed by the processor, implements the interface display method.

[0265] In some embodiments, terminal device 2800 optionally includes a peripheral interface 2803 and at least one peripheral device. The processor 2801, memory 2802, and peripheral interface 2803 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral interface 2803 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 2804, a display screen 2805, a camera assembly 2806, an audio circuit 2807, and a power supply 2808.

[0266] Those skilled in the art will appreciate that the structure shown in FIG. 28 is not intended to limit the terminal device 2800, and that the terminal device 2800 may include more or fewer components than those shown, combine some components, or employ a different component arrangement.

[0267] In an exemplary embodiment, a computer-readable storage medium is further provided, the storage medium storing a computer program, which, when executed by a processor, realizes the method for controlling a virtual character.

[0268] In some embodiments, the computer-readable storage medium may include a ROM (Read Only Memory), a RAM (Random Access Memory), an SSD (Solid State Drive), an optical disk, etc. Here, the random access memory may include a ReRAM (Resistance Random Access Memory) and a DRAM (Dynamic Random Access Memory).

[0269] In an exemplary embodiment, a computer program product is further provided, the computer program product including a computer program stored in a computer-readable storage medium, the computer program being read by a processor of a terminal device from the computer-readable storage medium, and the processor executing the computer program causing the terminal device to perform the virtual character control method.

[0270] It should be understood that the term "multiple" used herein refers to two or more. "And / or" describes an association relationship between associated objects and indicates that a three-way relationship exists. For example, A and / or B indicates three cases: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. Furthermore, the step numbers described herein merely exemplify possible execution sequences between steps. In some other embodiments, the steps may not be executed in the order of the numbers. For example, two steps with different numbers may be executed simultaneously, or two steps with different numbers may be executed in the reverse order of the illustrated order. The embodiments of the present application are not limited thereto.

[0271] The above description is only an illustrative embodiment of the present application, and does not limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included within the protection scope of the present application.

Claims

1. A method for controlling a virtual character, the method being executed by a terminal device, the method comprising: displaying a movement control and an attack control, the movement control being a joystick control for controlling movement of a first virtual character, and the attack control being used to control the first virtual character to perform an attack action; controlling a movement of the first virtual character in response to a first operation on the movement control unit; When the first virtual character is in a moving state, increasing an impulse corresponding to the first virtual character in response to a second operation on the attack control unit; a step of controlling the first virtual character to move at an accelerating speed when the impulse satisfies a first condition, wherein a moving speed of the first virtual character during the accelerating movement is greater than a moving speed of the first virtual character before the accelerating movement; clearing an impulse corresponding to the first virtual character.

2. The step of controlling the first virtual character to move at an accelerating speed comprises:

2. The method of claim 1, further comprising: controlling the first virtual character to perform the accelerated movement along a target movement direction, the target movement direction being a movement direction of the first virtual character when the impulse satisfies the first condition.

3. The method comprises: executing the step of controlling the first virtual character to move at an increased speed along a target moving direction when a direction adjustment operation on the movement control unit is not detected; or, The method according to claim 2 , further comprising: when a direction adjustment operation on the movement control unit is detected, controlling the first virtual character to perform the accelerated movement along a target direction indicated by the direction adjustment operation.

4. The step of controlling the first virtual character to move at an increased speed along a target movement direction includes: controlling the first virtual character to accelerate until the moving speed of the first virtual character increases to a maximum speed corresponding to the accelerated movement; and controlling the first virtual character to decelerate its movement until the movement speed of the first virtual character decreases from a maximum speed corresponding to the accelerated movement to a movement speed before the accelerated movement.

5. the step of increasing the impulse corresponding to the first virtual character in response to a second operation on the attack control unit, updating the impulse based on an attack speed of the first virtual character in response to a second operation on the attack control unit, and displaying an increasing process of the impulse on an impulse prompt bar; or, a step of controlling the first virtual character to execute the attack action against a second virtual character within an attack range in response to a second operation on the attack control unit, updating the impulse based on the number of hits of the attack action, and displaying an increase process of the impulse on an impulse prompt bar; or, 2. The method of claim 1, further comprising: updating the impulse based on a duration of the second operation on the attack control unit in response to the second operation; and displaying an increase in the impulse on an impulse prompt bar.

6. The method comprises: displaying a movement speed instruction icon of the first virtual character, the movement speed instruction icon being used to indicate a movement speed of the first virtual character; The method according to claim 1 , further comprising: changing a display manner of the movement speed indication icon based on a movement speed of the first virtual character.

7. the attack control unit is a normal attack control unit, the normal attack control unit is used to control the first virtual character to perform a normal attack, the normal attack referring to an attack operation that does not consume virtual resources during execution; or, 2. The method of claim 1, wherein the attack control unit is a skill attack control unit in an abnormal response state, the skill attack control unit is used to control the first virtual character to perform a skill attack, the skill attack referring to an attack operation that consumes virtual resources during execution, and the abnormal response state referring to a state in which the skill attack control unit cannot control the first virtual character to release a corresponding skill.

8. A method for controlling a virtual character, the method being executed by a terminal device, the method comprising: displaying a movement control and an attack control, the movement control being a joystick control for controlling movement of a first virtual character, and the attack control being used to control the first virtual character to perform an attack action; controlling a movement of the first virtual character in response to a first operation on the movement control unit; a step of controlling the first virtual character to decelerate when the first operation is stopped; and in response to a second operation on the attack control unit, controlling the first virtual character to decelerate with additional acceleration during a process in which the first virtual character decelerates, until the first virtual character stops moving.

9. the step of controlling the first virtual character to decelerate with additional acceleration in response to a second operation on the attack control unit during the process of the first virtual character decelerating until the first virtual character stops moving, updating an acceleration corresponding to the deceleration motion based on the additional acceleration in response to a second operation on the attack control unit during the deceleration motion of the first virtual character, to obtain an updated acceleration; The method of claim 8 , further comprising: controlling the first virtual character to decelerate based on the updated acceleration until the first virtual character stops moving.

10. The step of controlling the first virtual character to decelerate includes: The method according to claim 8 , further comprising the step of controlling the first virtual character to perform a uniform deceleration motion based on an acceleration corresponding to the deceleration motion.

11. The step of controlling the movement of the first virtual character in response to a first operation on the movement control unit includes: a step of controlling, in response to a first operation on the movement control unit, the first virtual character to accelerate its movement until the movement speed of the first virtual character reaches a maximum movement speed; The method according to any one of claims 8 to 10, further comprising: a step of controlling the first virtual character so that the first virtual character moves at a constant speed at the maximum movement speed.

12. A method for controlling a virtual character, the method being executed by a terminal device, the method comprising: displaying a movement control and an attack control, the movement control being a joystick control for controlling movement of a first virtual character, and the attack control being used to control the first virtual character to perform an attack action; controlling the first virtual character to move in a turning motion in response to a direction adjustment operation on the movement control unit; a step of controlling the first virtual character to decelerate its turning movement in response to an operation on the attack control unit while the first virtual character is turning and moving.

13. The step of controlling the first virtual character to move in a turning motion includes: acquiring a target direction indicated by the direction adjustment operation, and a turning acceleration, a turning angular velocity, and a maximum turning speed corresponding to the turning movement; 13. The method according to claim 12, further comprising: a step of controlling the first virtual character to make a turning movement based on a turning acceleration, a turning angular velocity, and a maximum turning speed corresponding to the turning movement, and controlling a moving direction of the first virtual character to change toward the target direction during the turning movement.

14. The step of controlling the first virtual character to move while decelerating in a turning motion includes: acquiring a target direction indicated by the direction adjustment operation, and a turning acceleration, a turning angular velocity, and a maximum turning speed corresponding to the turning deceleration movement; controlling the first virtual character to decelerate its turning movement based on a turning acceleration, a turning angular velocity, and a maximum turning speed corresponding to the turning deceleration movement, and changing a moving direction of the first virtual character toward the target direction during the turning deceleration movement; The method according to claim 12 , wherein, during the turning deceleration movement, a speed at which the first virtual character changes its orientation is greater than a speed at which the first virtual character changes its movement direction.

15. The method comprises: controlling the first virtual character to move in a straight line in response to a non-directional adjustment operation on the movement control unit; The method according to any one of claims 12 to 14, further comprising a step of controlling the first virtual character to move in a straight line with deceleration in response to an operation on the attack control unit during the linear movement of the first virtual character.

16. A control device for a virtual character, comprising: a control unit display module for displaying a movement control unit and an attack control unit, the movement control unit being a joystick control unit for controlling the movement of a first virtual character, and the attack control unit being used to control the first virtual character to execute an attack action; a character movement module used to control movement of the first virtual character in response to a first operation on the movement control unit; an impulse increase module used to increase an impulse corresponding to the first virtual character in response to a second operation on the attack control unit when the first virtual character is in a moving state; an accelerating movement module used for controlling the first virtual character to move at an accelerating speed when the impulse satisfies a first condition, the accelerating movement module being configured so that a movement speed of the first virtual character during the accelerating movement is greater than a movement speed of the first virtual character before the accelerating movement; an impulse clearing module adapted to clear an impulse corresponding to the first virtual character.

17. A control device for a virtual character, comprising: a control unit display module used to display a movement control unit and an attack control unit, the movement control unit being a joystick control unit for controlling the movement of a first virtual character, and the attack control unit being used to control the first virtual character to execute an attack action; a character movement module used to control movement of the first virtual character in response to a first operation on the movement control unit; a first deceleration module used for controlling the first virtual character to decelerate when the first operation is stopped; a second deceleration module used to control the first virtual character to decelerate at an additional acceleration in response to a second operation on the attack control unit during a process in which the first virtual character decelerates, until the first virtual character stops moving.

18. A control device for a virtual character, comprising: a control unit display module used to display a movement control unit and an attack control unit, the movement control unit being a joystick control unit for controlling the movement of a first virtual character, and the attack control unit being used to control the first virtual character to execute an attack action; a rotation control module used for controlling the first virtual character to rotate in response to a direction adjustment operation on the movement control unit; a deceleration control module used to control the first virtual character to decelerate its turning movement in response to an operation on the attack control unit during the turning movement of the first virtual character.

19. A terminal device including a processor and a memory, a computer program stored in the memory, and the computer program being loaded and executed by the processor to realize a method for controlling a virtual character according to any one of claims 1 to 7, or to realize a method for controlling a virtual character according to any one of claims 8 to 11, or to realize a method for controlling a virtual character according to any one of claims 12 to 15.

20. A computer-readable storage medium having a computer program stored therein, the computer program being loaded and executed by a processor to realize the method for controlling a virtual character according to any one of claims 1 to 7, or to realize the method for controlling a virtual character according to any one of claims 8 to 11, or to realize the method for controlling a virtual character according to any one of claims 12 to 15.

21. A computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium, and a processor reading and executing the computer program from the computer-readable storage medium to realize the method for controlling a virtual character according to any one of claims 1 to 7, or to realize the method for controlling a virtual character according to any one of claims 8 to 11, or to realize the method for controlling a virtual character according to any one of claims 12 to 15.

Citation Information

Patent Citations

  • Method for controlling motion of virtual object and device, electronic apparatus and storage medium

    CN109316745A

  • Virtual character control method, nonvolatile storage medium and electronic device

    CN113908550A

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

    CN114225372A

  • Game device, data memory medium and method of displaying moving character

    JP2000116951A

  • Gage display program and method and videogame device

    JP2002336543A