Virtual object control method and device, equipment, medium and product
By gradually changing the execution speed of the action of the virtual object and releasing the control when the conditions are met, the problem of single control mode in the prior art is solved, and the interaction effect between the user and the virtual scene is improved.
Patent Information
- Application Number
- CN202510646095.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-19
- Publication Date
- 2025-06-27
AI Technical Summary
In the prior art, the control method of virtual objects in virtual scenes is relatively single, which affects the interaction effect between users and virtual scenes.
By gradually changing the execution speed of the virtual object when the control effect takes effect, and releasing the control when the speed threshold and the release condition is met, this process is repeated to expand the control mode.
A solution for repeated control of the execution speed of virtual object actions is provided, which improves the strategic and interactive effect of users when controlling virtual objects in virtual scenes.
Smart Images

Figure CN120204724A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of virtual scenarios, and in particular, to a method, apparatus, device, medium, and product for controlling virtual objects. Background Art
[0002] In a virtual scenario of a game, there are usually some control mechanisms that restrict the actions of virtual objects.
[0003] In the related art, when a virtual object triggers an action restriction in a virtual scenario, such as when a virtual object triggers a virtual trap or is hit by a control skill, the application corresponding to the virtual scenario will control the virtual object to decelerate or be stunned for a period of time, and after the control time ends, the deceleration or stun of the virtual object will be lifted.
[0004] However, the control method for virtual objects in the above solution is relatively single, which affects the interaction effect between the user and the virtual scenario. Summary of the Invention
[0005] The present application provides a method, apparatus, device, medium, and product for controlling virtual objects. The technical solutions are as follows:
[0006] According to one aspect of the present application, there is provided a method for controlling a virtual object, the method including:
[0007] When the control effect takes effect on the virtual object, controlling the action execution speed of the virtual object to gradually change;
[0008] When the action execution speed of the virtual object changes to a speed threshold and the virtual object meets the first release condition, releasing the control of the action execution speed of the virtual object;
[0009] When the control effect continues to take effect on the virtual object, controlling the action execution speed of the virtual object to gradually change again.
[0010] According to another aspect of the present application, there is provided a control device for a virtual object, the device including:
[0011] A speed control module, configured to control the action execution speed of the virtual object to gradually change when the control effect takes effect on the virtual object;
[0012] A control release module, configured to release the control of the action execution speed of the virtual object when the action execution speed of the virtual object changes to a speed threshold and the virtual object meets the first release condition;
[0013] The speed control module is further configured to, when the control effect continues to take effect on the virtual object, control the action execution speed of the virtual object to gradually change again.
[0014] The beneficial effects brought by the technical solution provided by the embodiments of the present application at least include:
[0015] A solution for repeatedly controlling the action execution speed of a virtual object is provided. Specifically, when the virtual object is affected by a control effect, the action execution speed of the virtual object can be controlled to gradually change to a certain speed threshold. The above control of the action execution speed of the virtual object can be cancelled. And, after the above control of the action execution speed of the virtual object is cancelled, if the influence of the control effect on the virtual object has not ended, the action execution speed of the virtual object can be controlled to gradually change to a certain speed threshold again; that is to say, the influence of the above control effect on the virtual object is not one-time, but can be repeatedly realized, expanding the control method of the action execution speed of the virtual object. Correspondingly, when the user controls the virtual object in the virtual scene, the user can consider using or avoiding the mechanism of the above control effect, improving the strategy when the user controls the virtual object, and further improving the human-computer interaction effect when the user controls the virtual object. Description of the Drawings
[0016] Figure 1 is a block diagram of the structure of a computer system provided by an exemplary embodiment of the present application;
[0017] Figure 2 is a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application;
[0018] Figure 3 is a schematic diagram of the speed changing with time involved in the embodiments of the present application;
[0019] Figure 4 is a flowchart of the mechanism trigger deceleration and freezing involved in the embodiments of the present application;
[0020] Figure 5 is a schematic diagram of the movement of a character involved in the embodiments of the present application;
[0021] Figure 6 is a schematic diagram of the frozen state of a character involved in the embodiments of the present application;
[0022] Figure 7 is a schematic diagram of the state machine model of a character involved in the embodiments of the present application;
[0023] Figure 8 is the overall flowchart involved in the embodiments of the present application;
[0024] Figure 9It is a flowchart of skill trigger deceleration and freezing involved in an embodiment of the present application;
[0025] Figure 10 It is a flowchart of occupation trigger acceleration involved in an embodiment of the present application;
[0026] Figure 11 It is a structural block diagram of a control device for a virtual object provided by an exemplary embodiment of the present application;
[0027] Figure 12 It is a structural block diagram of a computer device provided by an exemplary embodiment of the present application. Detailed implementation manners
[0028] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the accompanying drawings.
[0029] First, introduce the nouns involved in the embodiments of the present application:
[0030] 1) Virtual scene: A virtual scene is a virtual scene displayed (or provided) when an application runs on a terminal. The virtual scene can be a simulation environment scene of the real world, a semi-simulation and semi-fictional three-dimensional environment scene, or a purely fictional three-dimensional environment scene. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5D virtual scene, and a three-dimensional virtual scene. In the following embodiments, it is exemplified that the virtual scene is a three-dimensional virtual scene, but it is not limited thereto. Optionally, the virtual scene can also be used for virtual scene battles / competitions between at least two virtual objects. Optionally, the virtual scene can also be used for battles between at least two virtual objects using virtual props within a target area range.
[0031] A virtual scene is usually generated by an application in a computer device such as a terminal and is displayed based on the hardware in the terminal (such as a screen). The terminal can be a mobile terminal such as a smart phone, a tablet computer, or an e-book reader; or, the terminal can also be a personal computer device such as a notebook computer or a fixed computer.
[0032] 2) Virtual object: A virtual object refers to an active object in a virtual scene. The active object can be at least one of a virtual person, a virtual character, a virtual pet, a virtual animal, and a virtual vehicle. Optionally, when the virtual scene is a three-dimensional virtual scene, the virtual object is a three-dimensional solid model created based on animation skeleton technology. Each virtual object has its own shape, volume, and orientation in the three-dimensional virtual scene and occupies a part of the space in the three-dimensional virtual scene.
[0033] Figure 1The block diagram of a computer system provided by an exemplary embodiment of the present application is given. The computer system 100 includes: a first terminal 110, a server 120, and a second terminal 130.
[0034] The first terminal 110 installs and runs a client 111 that supports virtual scenarios. For example, the client 111 can be a Role-Playing Game (RPG) program, a Multiplayer Online Battle Arena (MOBA) program, an Action Game (ACT) program, and so on. When the first terminal runs the client 111, the user interface of the client 111 is displayed on the screen of the first terminal 110. The client can be a client for games such as RPG, MOBA, and ACT. The first terminal 110 is the terminal used by the first user 112.
[0035] The second terminal 130 installs and runs a client 131 that supports virtual scenarios. The client 131 can be an RPG program, a MOBA program, an ACT program, and so on. When the second terminal 130 runs the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. The client can be a client for games such as RPG, MOBA, and ACT. The second terminal 130 is the terminal used by the second user 132.
[0036] Optionally, the clients installed on the first terminal 110 and the second terminal 130 are the same, or the clients installed on the two terminals are the same type of client on different operating system platforms. The first terminal 110 can generally refer to one of multiple terminals, and the second terminal 130 can generally refer to another one of multiple terminals. This embodiment only uses the first terminal 110 and the second terminal 130 as examples. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device types include at least one of: smart phones, tablet computers, e-book readers, MP3 players, MP4 players, laptop computers, and desktop computers. The following embodiments use the terminal including a smart phone as an example.
[0037] Those skilled in the art can know that the number of the above terminals can be more or less. For example, the above terminals can be only one, or the above terminals can be 6, 8, or more. The embodiments of the present application do not limit the number and device types of the terminals.
[0038] Figure 1Only two terminals are shown, but in different embodiments, there are multiple other terminals 140 that can access the server 120. Optionally, there is also one or more terminals 140 that are the terminals corresponding to the developer. A development and editing platform for the client supporting the virtual scene is installed on the terminal 140. The developer can edit and update the client on the terminal 140, and transmit the updated client installation package to the server 120 through a wired or wireless network. The first terminal 110 and the second terminal 130 can download the client installation package from the server 120 to update the client.
[0039] The first terminal 110, the second terminal 130, and other terminals 140 are connected to the server 120 through a wireless network or a wired network.
[0040] The server 120 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services for the client supporting the three-dimensional virtual scene (such as the client of an RPG). Optionally, the server 120 undertakes the main computing work, and the terminal undertakes the secondary computing work; or, the server 120 undertakes the secondary computing work, and the terminal undertakes the main computing work; or, a distributed computing architecture is adopted between the server 120 and the terminal for collaborative computing.
[0041] In a schematic example, the server 120 includes a processor 122, a user account database 123, a scene service module 124, and a user-oriented input / output interface (I / O interface) 125. Among them, the processor 122 is used to load the instructions stored in the server 120 and process the data in the user account database 123 and the scene service module 124; the user account database 123 is used to store the data of the user accounts used by the first terminal 110, the second terminal 130, and other terminals 140, such as the avatar of the user account, the nickname of the user account, the combat power index of the user account, and the service area where the user account is located; the scene service module 124 is used to provide background services for the virtual scene; the user-oriented I / O interface 125 is used to establish communication with the first terminal 110 and / or the second terminal 130 through a wireless network or a wired network to exchange data.
[0042] Please refer to Figure 2 , which shows a flowchart of a method for controlling a virtual object provided by an exemplary embodiment of the present application. This method is executed by a computer device (or an application program running in the computer device). For example, this computer device (or application program) can be Figure 1 the first terminal 110 shown (or the application program installed on the first terminal 110) or the second terminal 130 shown (or the application program installed on the second terminal 130); this method may include the following steps.
[0043] Step 210: When the control effect is effective on the virtual object, the speed of executing the action of controlling the virtual object gradually changes.
[0044] In the embodiment of the present application, the computer device can display the scene interface of the virtual scene, and the user can control the virtual object to move in the virtual scene. The virtual object can perform various actions in the virtual scene, such as moving, turning, attacking, defending, releasing skills, riding, making virtual items, etc.
[0045] In some embodiments, the action execution speed of the virtual object refers to the speed at which the virtual object executes one or more actions. For example, the action execution speed may include but is not limited to at least one of moving speed, turning speed, attack speed, defense speed, skill release speed, and riding speed. The embodiment of the present application does not limit the type of action execution speed.
[0046] When a virtual object is active in a virtual scene, it may be affected by the control effect. For the virtual object affected by the control effect, the computer device (or an application in the computer device that supports the virtual scene) may control the speed at which the virtual object executes actions. The above-mentioned control of the speed at which the virtual object executes actions is a gradual control process, that is, in the process of controlling the speed at which the virtual object executes actions, the speed at which the virtual object executes actions will gradually change from the initial speed.
[0047] Step 220: When the action execution speed of the virtual object changes to a speed threshold and the virtual object satisfies a first release condition, release control of the action execution speed of the virtual object.
[0048] The above speed threshold is a threshold set in advance by developers or operation and maintenance personnel.
[0049] The first release condition mentioned above is a condition set in advance by the developer or operation and maintenance personnel.
[0050] In an embodiment of the present application, after the computer device controls the action execution speed of the virtual object to change to a certain speed threshold, it can continuously detect whether the virtual object satisfies a first release condition. When it is detected that the virtual object satisfies the first release condition, the control of the action execution speed of the virtual object can be released.
[0051] In some embodiments, after the action execution speed of the virtual object changes to a speed threshold, the action execution speed of the virtual object remains unchanged at the speed threshold.
[0052] In some embodiments, after the action execution speed of the virtual object changes to the speed threshold, the action execution speed of the virtual object continues to change continuously.
[0053] In some embodiments, the above-mentioned release of the control over the action execution speed of the virtual object may refer to immediately restoring the action execution speed of the virtual object to the initial speed.
[0054] In some embodiments, the above-mentioned release of the control over the action execution speed of the virtual object may refer to controlling the action execution speed of the virtual object to gradually change back to the initial speed. For example, controlling the action execution speed of the virtual object to gradually change from the speed threshold to the initial speed.
[0055] Step 230: When the control effect continues to take effect on the virtual object, control the action execution speed of the virtual object to gradually change again.
[0056] Among them, the above-mentioned control effect continuing to take effect on the virtual object may mean that the virtual object has not yet escaped the influence of the control effect, or in other words, the influence of the control effect on the virtual object has not been interrupted; that is to say, the virtual object has been affected by the same control effect all the time.
[0057] In some embodiments, after the computer device releases the control over the action execution speed of the virtual object, if the control effect is still taking effect on the virtual object, the computer device can repeat the above step of controlling the action execution speed of the virtual object to gradually change, and when the action execution speed of the virtual object changes to the speed threshold and meets the first release condition, release the control over the action execution speed of the virtual object.
[0058] In summary, the solution shown in the embodiments of the present application provides a solution for repeatedly controlling the action execution speed of a virtual object. Specifically, when the virtual object is affected by a control effect, the action execution speed of the virtual object can be controlled to gradually change to a certain speed threshold, the above-mentioned control over the action execution speed of the virtual object can be released, and after the above-mentioned control over the action execution speed of the virtual object is released, if the influence of the control effect on the virtual object has not ended, the action execution speed of the virtual object can be controlled to gradually change to a certain speed threshold again; that is to say, the influence of the above-mentioned control effect on the virtual object is not one-time, but can be repeatedly realized, expanding the control method of the action execution speed of the virtual object. Correspondingly, when the user controls the virtual object in the virtual scene, the user can consider using or avoiding the mechanism of the above-mentioned control effect, improving the strategy when the user controls the virtual object, and further improving the human-computer interaction effect when the user controls the virtual object.
[0059] Based on the solutions shown in any one or more of the above embodiments of the present application, in some embodiments, step 210 above may be implemented as follows:
[0060] In response to the control effect taking effect on the virtual object, control the action execution speed of the virtual object to gradually decrease; or, in response to the control effect taking effect on the virtual object, control the action execution speed of the virtual object to gradually increase.
[0061] In a possible implementation manner, in response to the control effect taking effect on the virtual object, the computer device may perform deceleration control on the action execution speed of the virtual object to gradually decrease the action execution speed of the virtual object.
[0062] In some embodiments, the process of controlling the action execution speed of the virtual object to gradually decrease may be a process of linearly decreasing the action execution speed. For example, the curve of the action execution speed of the virtual object versus time may be a straight line or a parabola.
[0063] In some embodiments, the process of controlling the action execution speed of the virtual object to gradually decrease may be a process of non-linearly decreasing the action execution speed. For example, the duration of controlling the action execution speed of the virtual object to gradually decrease is 3 seconds. In the first second, the action execution speed of the virtual object is 60% of the initial speed. In the second second, the action execution speed of the virtual object is 40% of the initial speed. In the third second, the action execution speed of the virtual object is 20% of the initial speed.
[0064] In a possible implementation manner, in response to the control effect taking effect on the virtual object, the computer device may perform acceleration control on the action execution speed of the virtual object to gradually increase the action execution speed of the virtual object.
[0065] In some embodiments, the process of controlling the action execution speed of the virtual object to gradually increase may be a process of linearly increasing the action execution speed. For example, the curve of the action execution speed of the virtual object versus time may be a straight line or a parabola.
[0066] In some embodiments, the process of controlling the action execution speed of the virtual object to gradually increase may be a process of non-linearly increasing or decreasing the action execution speed. For example, the duration of controlling the action execution speed of the virtual object to gradually increase is 3 seconds. In the first second, the action execution speed of the virtual object is 140% of the initial speed. In the second second, the action execution speed of the virtual object is 160% of the initial speed. In the third second, the action execution speed of the virtual object is 180% of the initial speed.
[0067] In the solution shown in the above embodiments of the present application, within the time interval when the control effect affects the virtual object, the computer device can repeatedly control the action execution speed of the virtual object by suppression or gain, expanding the control method of the action execution speed of the virtual object and improving the human-computer interaction effect when the user controls the virtual object.
[0068] The solution shown in the above embodiments of the present application can be applied to the scenario of suppressing or increasing the action execution speed of virtual objects in virtual game scenes. Please refer to Figure 3 , which shows a schematic diagram of the speed changing with time involved in the embodiments of the present application. As Figure 3 shown, the abscissa is the time axis, and the ordinate is the action execution speed of the virtual object controlled by the player in the virtual game scene. During the time period from T1 to T2, the virtual object is continuously affected by the control effect.
[0069] For the case of deceleration control, as shown in part (a) of Figure 3 , at time T3, the computer device starts to control the action execution speed of the virtual object to gradually decrease from the initial speed. By time T4, the action execution speed of the virtual object decreases to the speed threshold. At time T5 after time T4, when the virtual object meets the release condition, the computer device restores the action execution speed of the virtual object to the initial speed. At time T6, the computer device starts to control the action execution speed of the virtual object to gradually decrease from the initial speed again. By time T7, the action execution speed of the virtual object decreases to the speed threshold. At time T8, when the virtual object meets the release condition, the computer device restores the action execution speed of the virtual object to the initial speed. The above process of "controlling deceleration - releasing deceleration" can be executed repeatedly for multiple times.
[0070] For the case of acceleration control, as shown in part (b) of Figure 3 , at time T3, the computer device starts to control the action execution speed of the virtual object to gradually increase from the initial speed. By time T4, the action execution speed of the virtual object increases to the speed threshold. At time T5 after time T4, when the virtual object meets the release condition, the computer device restores the action execution speed of the virtual object to the initial speed. At time T6, the computer device starts to control the action execution speed of the virtual object to gradually increase from the initial speed again. By time T7, the action execution speed of the virtual object increases to the speed threshold. At time T8, when the virtual object meets the release condition, the computer device restores the action execution speed of the virtual object to the initial speed. The above process of "controlling acceleration - releasing acceleration" can be executed repeatedly for multiple times.
[0071] The above-mentioned moment T1 is the moment when the control effect initially acts on the virtual object, and the interval between moment T2 and moment T1 can be a fixed configured time length or a non-fixed time length.
[0072] Based on the solutions shown in any one or more of the above embodiments of the present application, in some embodiments, in response to the control effect taking effect on the virtual object, when the execution speed of the action of controlling the virtual object gradually decreases, the first release condition includes at least one of the following:
[0073] 1) A first operation is received, and the first operation satisfies the operation goal.
[0074] In some embodiments, the above-mentioned operation goals include the number of operations, the operation duration, the number of operations within a specified time, etc.
[0075] When the received first operation satisfies the operation target, it can be considered that a release operation is received.
[0076] In some embodiments, the first operation may include at least one of a trigger operation on the first control, a press operation on the first physical button, and a control operation on the virtual object. The situations in which the received first operation satisfies the operation target can be divided into the following types.
[0077] ① A first trigger operation on the first control is received; at this time, the first trigger operation is the above-mentioned release operation.
[0078] In the embodiment of the present application, the above-mentioned receiving the first trigger operation on the first control means that the received trigger operation on the first control is the same as the first trigger operation.
[0079] In some embodiments, the first trigger operation is an operation preset by a developer or an operation and maintenance personnel.
[0080] In some embodiments, developers or operation and maintenance personnel pre-set multiple trigger operations, and the first trigger operation is a trigger operation randomly selected by the computer device from the multiple trigger operations.
[0081] The above-mentioned first trigger operation can be operations such as clicking, long pressing, sliding, etc. The embodiment of the present application does not limit the operation type of the first trigger operation.
[0082] For example, the above operation target is to click the first control three times in succession or to click the first control three times in succession within a specified time period. Then, after the action execution speed of the virtual object is reduced to the speed threshold, if a continuous click operation on the first control is received, and the number of continuous click operations reaches three times or the number of continuous click operations reaches three times within the specified time period, it is considered that the first trigger operation on the first control is received.
[0083] For another example, the above operation goal is to continuously click the first control within a certain operation duration (continuous click here means that the interval between two adjacent clicks is not higher than the interval threshold (for example, 0.5 seconds)), then after the action execution speed of the virtual object is reduced to the speed threshold, if a continuous click operation on the first control is received, and the duration of the continuous click operation reaches the operation duration (for example, 3 seconds), it is considered that the first trigger operation on the first control is received.
[0084] In some embodiments, the first control is a control that is newly displayed or activated in the scene interface of the virtual scene when the action execution speed of the virtual object is reduced to a speed threshold.
[0085] In some embodiments, the first control is an existing control in the scene interface of the virtual scene, such as a movement control, a skill release control, and the like.
[0086] ② A first pressing operation on the first physical key is received; at this time, the first pressing operation is the above-mentioned release operation.
[0087] In the embodiment of the present application, the above-mentioned receiving the first pressing operation on the first physical key means that the received pressing operation on the first physical key is the same as the preset first pressing operation.
[0088] In some embodiments, the first pressing operation is an operation preset by a developer or an operation and maintenance personnel.
[0089] In some embodiments, a developer or an operation and maintenance personnel pre-sets multiple pressing operations, and the first pressing operation is a pressing operation randomly selected by the computer device from the multiple pressing operations.
[0090] The first pressing operation may be a click, a long press, or the like. The embodiment of the present application does not limit the operation type of the first pressing operation.
[0091] For example, the above operation target is to click / press the first physical button continuously for 3 times or to click / press the first physical button continuously for 3 times within a specified time period. Then, after the action execution speed of the virtual object is reduced to the speed threshold, if a continuous click / press operation on the first physical button is received, and the number of continuous click / press operations reaches 3 times or the number of continuous click / press operations reaches 3 times within the specified time period, it is considered that the first press operation on the first physical button is received.
[0092] For another example, if the above operation target is to continuously click / press the first physical button within a certain operation duration, then after the action execution speed of the virtual object is reduced to the speed threshold, if a continuous click / press operation on the first physical button is received and the duration of the continuous click / press operation reaches the operation duration (for example, 3 seconds), it is considered that the first press operation on the first physical button is received.
[0093] ③ A first control operation on the virtual object is received; at this time, the first control operation is the above-mentioned release operation.
[0094] In the embodiments of the present application, the above-mentioned receiving of the first control operation on the virtual object means that the control operation received on the virtual object is the same as the pre-set first control operation.
[0095] In some embodiments, the first control operation is an operation pre-set by a developer or an operation and maintenance personnel.
[0096] In some embodiments, the developer or the operation and maintenance personnel pre-set multiple control operations, and the first control operation is a control operation randomly selected by the computer device from the multiple control operations.
[0097] The above-mentioned first control operation may be an operation such as a movement control operation, a skill release operation, a prop use operation, etc. The embodiments of the present application do not limit the operation type of the first control operation.
[0098] For example, if the above operation target is to control the virtual object to continuously turn around 3 times or to continuously turn around 3 times within a specified duration, then after the action execution speed of the virtual object is reduced to the speed threshold, if an operation to control the virtual object to turn around is received and the number of times the virtual object continuously turns around reaches 3 times or the number of times the virtual object continuously turns around within the specified duration reaches 3 times, it is considered that the first control operation on the virtual object is received.
[0099] For another example, if the above operation target is to continuously control the virtual object to turn around within a certain operation duration (where the continuous control of the virtual object to turn around here means that the interval between adjacent controls of the virtual object to turn around is not higher than the interval threshold (for example, 0.5 seconds)), then after the action execution speed of the virtual object is reduced to the speed threshold, if a control operation for the virtual object to continuously turn around is received and the duration of the continuous turn around reaches the operation duration (for example, 3 seconds), it is considered that the first control operation on the virtual object is received.
[0100] 2) The duration for which the action execution speed of the virtual object maintains the speed threshold reaches the first duration.
[0101] In the embodiments of the present application, after the action execution speed of the virtual object is reduced to the speed threshold, the deceleration control of the virtual object can also be automatically released after the first duration.
[0102] In the scheme shown in the embodiment of the present application, a feasible scheme for releasing the deceleration control of the action execution speed of the virtual object is provided. Specifically, after the action execution speed of the virtual object is decelerated to a speed threshold, the user can quickly release the deceleration control by performing a specified operation, or can automatically release the deceleration control after waiting for a period of time, thereby expanding the control method of the action execution speed of the virtual object and improving the human-computer interaction effect when the user controls the virtual object.
[0103] Based on the solutions shown in any one or more of the above embodiments of the present application, in some embodiments, when the first operation is received, the method for controlling a virtual object involved in the present application further includes:
[0104] First operation information of the first operation is obtained, where the first operation information is used to indicate the execution status of the first operation; and based on the first operation information, an operation target for releasing the control of the action execution speed of the virtual object next time is modified.
[0105] In some embodiments, the first operation information may include at least one of the following information:
[0106] 1) Whether the first operation satisfies the operation goal.
[0107] In one possible implementation, if during a process of releasing the control over the action execution speed of a virtual object, the first operation performed by the user does not meet the operation target, the computer device may lower the operation target so that the next time the action execution speed of the virtual object changes to a speed threshold, the user has a greater probability of actively releasing the control over the action execution speed of the virtual object through the first operation; conversely, if during a process of releasing the control over the action execution speed of a virtual object, the first operation performed by the user meets the operation target, the computer device may raise the operation target so that the next time the action execution speed of the virtual object changes to the speed threshold, the challenge of the user actively releasing the control over the action execution speed of the virtual object through the first operation is increased.
[0108] For example, multiple levels of operation targets are pre-set in the computer device, and the operation difficulty of the multiple levels of operation targets gradually increases; for example, when the operation target includes the number of operations, the number of operations in the multiple levels of operation targets gradually increases; for another example, when the operation target includes the operation duration, the operation duration in the multiple levels of operation targets gradually increases; for another example, when the operation target includes the number of operations within a specified duration, the number of operations in the multiple levels of operation targets gradually increases or the specified duration gradually decreases. In the process of the computer device determining that the control of the execution speed of the action of the virtual object is released at a certain time, if the first operation performed by the user does not meet the operation target and the current operation target is not the lowest level operation target, the operation target used next time can be modified to a lower level operation target; conversely, if the first operation performed by the user meets the operation target and the current operation target is not the highest level operation target, the operation target used next time can be modified to a higher level operation target.
[0109] 2) The difference between the current execution parameter of the first operation and the execution parameter corresponding to the current operation target.
[0110] The computer device may modify the operation target for releasing the control of the action execution speed of the virtual object next time according to the difference between the current execution parameter of the first operation and the execution parameter corresponding to the current operation target, including but not limited to the following:
[0111] Implementation method 1: When the operation target includes the number of operations, the execution parameter includes the number of operations this time, and the execution parameter corresponding to the operation target includes the number of operations corresponding to the operation target.
[0112] For example, a computer device is set with multiple operation targets, and the multiple operation targets correspond to different operation times; in the process of the computer device determining to cancel the control of the action execution speed of a virtual object for a certain time, if the difference between the current operation time of the first operation performed by the user and the operation time corresponding to the current operation target is less than a first difference threshold (the first difference threshold can be less than or equal to 0, that is, the operation target is not reached), and there is an operation target among the multiple operation targets whose corresponding operation time is less than the current operation time, the computer device can modify the operation target to be used next time to the operation target whose corresponding operation time is less than the current operation time. If there are two or more operation targets whose corresponding operation times are less than the current operation time, the computer device selects, from the two or more operation targets, the operation target whose corresponding operation time is closest to the current operation time as the operation target to be used next time; if the difference between the current operation time of the first operation performed by the user and the operation time corresponding to the current operation target is greater than a second difference threshold (the first difference threshold can be greater than or equal to 0, that is, the operation target is reached), and there is an operation target among the multiple operation targets whose corresponding operation time is greater than the current operation time, the computer device can modify the operation target to be used next time to the operation target whose corresponding operation time is greater than the current operation time. If there are two or more operation targets whose corresponding operation times are greater than the current operation time, the computer device selects, from the two or more operation targets, the operation target whose corresponding operation time is closest to the current operation time as the operation target to be used next time.
[0113] Implementation method 2: When the operation target includes the number of operations within a specified duration, the above execution parameter includes the current operation time, and the execution parameter corresponding to the operation target includes the operation time corresponding to the operation target.
[0114] For example, a computer device is set with multiple operation targets, and the multiple operation targets correspond to different numbers of operations within the same specified duration; in the process of the computer device determining to cancel the control of the action execution speed of a virtual object for a certain time, the method of modifying the operation target to be used next time can refer to the above implementation method 1, which will not be elaborated here.
[0115] Implementation method 3: When the operation target includes the operation duration, the above execution parameter includes the current operation duration, and the execution parameter corresponding to the operation target includes the operation duration corresponding to the operation target.
[0116] For example, a computer device is provided with multiple operation targets, and the multiple operation targets correspond to different operation durations. When the computer device determines the process of releasing the control of the action execution speed of a virtual object at a certain time, if the difference between the current operation duration of the first operation continuously executed by the user and the operation duration corresponding to the current operation target is less than a third difference threshold (the third difference threshold can be less than or equal to 0, that is, the operation target is not reached), and there is an operation target among the multiple operation targets whose corresponding operation duration is less than or equal to the current operation duration, the computer device can modify the operation target to be used next time to an operation target whose corresponding operation duration is less than or equal to the current operation duration. If there are two or more operation targets whose corresponding operation durations are less than or equal to the current operation duration, the computer device selects, from the two or more operation targets, the operation target whose corresponding operation duration is closest to the current operation duration as the operation target to be used next time. If the difference between the current operation duration of the first operation executed by the user and the operation duration corresponding to the current operation target is greater than a fourth difference threshold (the fourth difference threshold can be greater than or equal to 0, that is, the operation target is reached), and there is an operation target among the multiple operation targets whose corresponding operation duration is greater than the current operation duration, the computer device can modify the operation target to be used next time to an operation target whose corresponding operation duration is greater than the current operation duration. If there are two or more operation targets whose corresponding operation durations are greater than the current operation duration, the computer device selects, from the two or more operation targets, the operation target whose corresponding operation duration is closest to the current operation duration as the operation target to be used next time.
[0117] Through the solution shown in the embodiments of the present application, during the process of decelerating the action execution speed of the virtual object multiple times, the computer device can dynamically adjust the operation difficulty of the user actively releasing the control of the action execution speed of the virtual object according to the execution situation of the user's first operation, thereby improving the success rate or challenge difficulty of the user actively releasing the control of the action execution speed of the virtual object, and further improving the interaction effect.
[0118] Based on the solution shown in any one or more of the above embodiments of the present application, in some embodiments, when receiving the first operation, the control method of the virtual object involved in the present application further includes:
[0119] Obtain the second operation information of the first operation, where the second operation information is used to indicate the execution situation of the first operation; based on the second operation information, modify the duration for the action execution speed of the virtual object to gradually change to the speed threshold next time.
[0120] In some embodiments, the above second operation information may include at least one of the following information:
[0121] 1) Whether the first operation satisfies the operation goal.
[0122] In one possible implementation, if during a process of releasing the control over the speed of action execution of a virtual object, the first operation performed by the user does not meet the operation target, the computer device may lower the time it takes for the next time the speed of action execution of the virtual object is controlled to gradually change to the speed threshold; conversely, if during a process of releasing the control over the speed of action execution of the virtual object, the first operation performed by the user meets the operation target, the computer device may increase the time it takes for the next time the speed of action execution of the virtual object is controlled to gradually change to the speed threshold.
[0123] For example, multiple levels of deceleration duration are pre-set in the computer device (that is, the time for controlling the action execution speed of the virtual object to gradually change to a speed threshold), and the multiple levels of deceleration duration gradually increase; when the computer device determines that a certain time of releasing the control of the action execution speed of the virtual object is released, if the first operation performed by the user does not meet the operation target, and the current deceleration duration is not the lowest level of deceleration duration, the deceleration duration used next time can be modified to a lower level of deceleration duration; conversely, if the first operation performed by the user meets the operation target, and the current deceleration duration is not the highest level of deceleration duration, the deceleration duration used next time can be modified to a higher level of deceleration duration.
[0124] In another possible implementation, if during a process of releasing the control over the action execution speed of a virtual object, the first operation performed by the user does not meet the operation target, the computer device may increase the time it takes for the action execution speed of the virtual object to gradually change to the speed threshold next time. Conversely, if during a process of releasing the control over the action execution speed of the virtual object, the first operation performed by the user meets the operation target, the computer device may reduce the time it takes for the action execution speed of the virtual object to gradually change to the speed threshold next time.
[0125] For example, multiple levels of deceleration duration (that is, the time for controlling the action execution speed of the virtual object to gradually change to a speed threshold) are pre-set in the computer device, and the multiple levels of deceleration duration gradually increase; when the computer device determines that a certain time of releasing the control of the action execution speed of the virtual object is released, if the first operation performed by the user does not meet the operation target, and the current deceleration duration is not the highest level of deceleration duration, the deceleration duration used next time can be modified to a higher level of deceleration duration; conversely, if the first operation performed by the user meets the operation target, and the current deceleration duration is not the lowest level of deceleration duration, the deceleration duration used next time can be modified to a lower level of deceleration duration.
[0126] 2) The difference between the execution parameter of the current execution of the first operation and the execution parameter corresponding to the current operation target.
[0127] The ways for the computer device to modify the deceleration duration for controlling the action execution speed of the virtual object in the next time according to the difference between the execution parameter of the current execution of the first operation and the execution parameter corresponding to the current operation target may include but are not limited to the following:
[0128] Implementation method 1: When the operation target includes the number of operations, the above-mentioned execution parameter includes the current number of operations, and the execution parameter corresponding to the operation target includes the number of operations corresponding to the operation target.
[0129] For example, multiple levels of deceleration durations are preset in the computer device, and the deceleration durations of multiple levels increase gradually; during a certain process of the computer device releasing the control of the action execution speed of the virtual object, if the difference between the current number of operations of the first operation executed by the user and the number of operations corresponding to the current operation target is less than the first difference threshold (the first difference threshold can be less than or equal to 0, that is, the operation target is not reached), and the current deceleration duration is not the lowest level of deceleration duration, then the deceleration duration to be used next time can be modified to the deceleration duration of the next lower level; if the difference between the current number of operations of the first operation executed by the user and the number of operations corresponding to the current operation target is greater than the second difference threshold (the first difference threshold can be greater than or equal to 0, that is, the operation target is reached), and the current deceleration duration is not the highest level of deceleration duration, then the deceleration duration to be used next time can be modified to the deceleration duration of the next higher level.
[0130] For example, multiple levels of deceleration durations are preset in the computer device, and the deceleration durations of multiple levels increase gradually; during a certain process of the computer device releasing the control of the action execution speed of the virtual object, if the difference between the current number of operations of the first operation executed by the user and the number of operations corresponding to the current operation target is less than the first difference threshold, and the current deceleration duration is not the highest level of deceleration duration, then the deceleration duration to be used next time can be modified to the deceleration duration of the next higher level; if the difference between the current number of operations of the first operation executed by the user and the number of operations corresponding to the current operation target is greater than the second difference threshold, and the current deceleration duration is not the lowest level of deceleration duration, then the deceleration duration to be used next time can be modified to the deceleration duration of the next lower level.
[0131] Implementation method 2: When the operation target includes the number of operations within a specified duration, the above-mentioned execution parameter includes the current number of operations, and the execution parameter corresponding to the operation target includes the number of operations corresponding to the operation target.
[0132] For example, multiple levels of deceleration durations are preset in the computer device, and the deceleration durations of multiple levels gradually increase; after the computer device releases the control of the action execution speed of the virtual object once, the method of modifying the deceleration duration for the control of the action execution speed of the virtual object next time can refer to the above Implementation Mode 1, which will not be elaborated here.
[0133] Implementation Mode 3: When the operation target includes an operation duration, the above execution parameter includes the current operation duration, and the execution parameter corresponding to the operation target includes the operation duration corresponding to the operation target.
[0134] For example, multiple levels of deceleration durations are preset in the computer device, and the deceleration durations of multiple levels gradually increase; after the computer device releases the control of the action execution speed of the virtual object once, if the difference between the current operation duration of the first operation continuously executed by the user and the operation duration corresponding to the current operation target is less than a third difference threshold (the third difference threshold can be less than or equal to 0, that is, the operation target is not reached), and the current deceleration duration is not the deceleration duration of the lowest level, the deceleration duration to be used next time can be modified to the deceleration duration of the next lower level; if the difference between the current operation duration of the first operation executed by the user and the operation duration corresponding to the current operation target is greater than a fourth difference threshold (the fourth difference threshold can be greater than or equal to 0, that is, the operation target is reached), and the current deceleration duration is not the deceleration duration of the highest level, the deceleration duration to be used next time can be modified to the deceleration duration of the next higher level.
[0135] For another example, multiple levels of deceleration durations are preset in the computer device, and the deceleration durations of multiple levels gradually increase; after the computer device releases the control of the action execution speed of the virtual object once, if the difference between the current operation duration of the first operation continuously executed by the user and the operation duration corresponding to the current operation target is less than a third difference threshold, and the current deceleration duration is not the deceleration duration of the highest level, the deceleration duration to be used next time can be modified to the deceleration duration of the next higher level; if the difference between the current operation duration of the first operation executed by the user and the operation duration corresponding to the current operation target is greater than a fourth difference threshold, and the current deceleration duration is not the deceleration duration of the lowest level, the deceleration duration to be used next time can be modified to the deceleration duration of the next lower level.
[0136] Through the solution shown in the embodiments of the present application, in the process of decelerating and controlling the action execution speed of the virtual object multiple times, the computer device can dynamically adjust the control duration of the action execution speed of the virtual object according to the execution situation of the user's first operation, so as to expand the control method of the action execution speed of the virtual object, and further improve the interaction effect.
[0137] Based on the solutions shown in any one or more of the above embodiments of the present application, in some embodiments, when the control effect takes effect on the virtual object and the action execution speed of the virtual character is gradually reduced, the speed threshold is 0.
[0138] In the embodiments of the present application, when decelerating the action execution speed of the virtual object, the computer device can continuously decelerate the action execution speed of the virtual object until it reaches 0. At this time, it can be considered that the virtual object is frozen or stunned.
[0139] In the solution shown in the embodiments of the present application, during the deceleration control of the action execution speed of the virtual object, the action execution speed of the virtual object can be reduced to 0, so as to freeze or stun the virtual character, which expands the control method of the action execution speed of the virtual object and improves the human-computer interaction effect when the user controls the virtual object.
[0140] Based on the solutions shown in any one or more of the above embodiments of the present application, in some embodiments, when the control effect takes effect on the virtual object and the action execution speed of the virtual object is gradually increased, the above first release condition includes at least one of the following:
[0141] 1) The first attribute value of the virtual object is reduced to the first value.
[0142] In some embodiments, the first attribute value is other attribute values except the speed value of the action execution speed. For example, the first attribute value is health value, stamina value, armor value, magic value, etc.
[0143] For example, taking the first attribute value as the health value or the armor value as an example, after the action execution speed of the virtual object increases to the speed threshold, if the virtual object is attacked, it will cause the health value or the armor value to decrease. When the health value or the armor value decreases to the first value (for example, decreases to 50% of the health value upper limit or the armor value upper limit), the computer device can reduce the action execution speed of the virtual object to the initial speed.
[0144] For another example, taking the first attribute value as the stamina value or the magic value as an example, after the action execution speed of the virtual object increases to the speed threshold, the specified action of the virtual object will consume the stamina value or the magic value. Correspondingly, when the stamina value or the magic value of the virtual object decreases to the first value (for example, decreases to 50% of the stamina value upper limit or the magic value upper limit), the computer device can reduce the action execution speed of the virtual object to the initial speed.
[0145] 2) The decrease value of the second attribute value of the virtual object reaches the second value.
[0146] In some embodiments, the second attribute value is an attribute value other than the speed value of the action execution speed. For example, the second attribute value is health value, stamina value, armor value, magic value, and so on.
[0147] For example, taking the second attribute value as the health value or the armor value as an example, after the action execution speed of the virtual object increases to the speed threshold, if the virtual object is attacked, it will cause the health value or the armor value to decrease. When the decreased value of the health value or the armor value reaches the second value (for example, the decreased health value or armor value reaches 50% of the health value upper limit or the armor value upper limit), the computer device can reduce the action execution speed of the virtual object to the initial speed.
[0148] For another example, taking the second attribute value as the stamina value or the magic value as an example, after the action execution speed of the virtual object increases to the speed threshold, the specified action of the virtual object will consume the stamina value or the magic value. Correspondingly, when the decreased value of the stamina value or the magic value of the virtual object reaches the second value (for example, the decreased stamina value or magic value reaches 50% of the stamina value upper limit or the magic value upper limit), the computer device can reduce the action execution speed of the virtual object to the initial speed.
[0149] 3) The duration for which the action execution speed of the virtual object maintains the speed threshold reaches the second duration.
[0150] In the embodiments of the present application, after the action execution speed of the virtual object is increased to the speed threshold, the acceleration control of the virtual object can also be automatically released after the second duration.
[0151] In the solution shown in the embodiments of the present application, a feasible solution for releasing the acceleration control of the action execution speed of the virtual object is provided. Specifically, after the action execution speed of the virtual object is accelerated to the speed threshold, the acceleration effect can be quickly released by consuming the specified attribute value of the virtual object, or the acceleration effect of the virtual object can be automatically released after waiting for a period of time, which expands the control method of the action execution speed of the virtual object and improves the human-computer interaction effect when the user controls the virtual object.
[0152] Based on the solution shown in any one or more of the above embodiments of the present application, in some embodiments, the above method for controlling a virtual object further includes: displaying a prompt message for the first release condition.
[0153] In some embodiments, the above prompt message includes a prompt text, a prompt pattern, a prompt animation, a prompt voice, and so on.
[0154] In some embodiments, when the action execution speed of the virtual object changes to the speed threshold, the computer device can display a prompt message for the first release condition in the scene interface of the virtual scene, such as a prompt text, a prompt pattern, and so on, for the first release condition.
[0155] For example, in response to the control effect taking effect on the virtual object, when the speed of executing the action of controlling the virtual object gradually decreases, the speed of executing the action of the virtual object decreases to a speed threshold (for example, to 0, at which time the virtual object is frozen), and the computer device may display a prompt message corresponding to at least one of the first trigger operation, the first pressing operation, the first control operation, and the first duration to the user controlling the virtual object. For example, the prompt message may be "click 3 times to break free", "click 2 more times to break free", "automatically break free after 3 seconds", etc.
[0156] For another example, in response to the control effect taking effect on the virtual object, when the speed of executing the action of controlling the virtual object gradually increases, the speed of executing the action of the virtual object increases to a speed threshold (such as 200% of the initial value), and the computer device can display a prompt message corresponding to at least one of the first value, the second value, and the second duration to the user controlling the virtual object or other users. For example, the prompt message can be "Please note that the acceleration will fail if the blood volume is below 50%, "Please note that the acceleration will fail if the blood volume is reduced to xxx", "Acceleration will fail after 3 seconds", etc.
[0157] The solution shown in the embodiment of the present application provides a method of displaying prompt information of the conditions for releasing speed control to the user when the action execution speed of the virtual object changes to a speed threshold, so that the user can clearly know how to release the control of the action execution speed of the virtual object, as well as information such as the remaining time of the control of the action execution speed of the virtual object, thereby improving the interaction efficiency of the user when controlling the virtual character.
[0158] Based on the scheme shown in any one or more of the above-mentioned embodiments of the present application, in some embodiments, before the speed of executing the action of controlling the virtual object gradually changes (step 210) in response to the control effect taking effect on the virtual object, the above-mentioned virtual object control method also includes: in response to the virtual object entering a specified range around the first virtual prop, determining that the control effect takes effect on the virtual object.
[0159] In the embodiment of the present application, the first virtual prop may be a virtual prop that is fixed or non-fixed in the virtual scene.
[0160] For example, the first virtual prop may be a virtual trap / virtual gate pre-set in the virtual scene, or the first virtual prop may be a virtual trap, virtual gate or virtual ammunition placed by other virtual objects in the virtual scene, and the virtual trap, virtual gate or virtual ammunition may trigger a deceleration control effect on the virtual object.
[0161] For another example, the first virtual prop may be a virtual prop (such as a virtual flag, a virtual gain device) pre-set in the virtual scene, or the first virtual prop may be a virtual prop placed by a virtual object in the virtual scene, and the virtual prop may trigger an acceleration control effect on the virtual object. For example, the user may control the virtual object to compete for the virtual prop or the control of the virtual prop in the virtual scene.
[0162] In an embodiment of the present application, the first virtual prop may have a corresponding collision box or collision body in the virtual scene, and the range corresponding to the collision box or collision body is the specified range around the first virtual prop; accordingly, the virtual object also has a corresponding collision box or collision body. When the collision box or collision body of the virtual object overlaps with the collision box or collision body of the first virtual prop, it can be considered that the virtual object enters the specified range around the first virtual prop. Conversely, if the overlapping state of the collision box or collision body of the virtual object and the collision box or collision body of the first virtual prop ends, it is considered that the virtual object leaves the specified range around the first virtual prop.
[0163] Before the above step 230, the above method for controlling a virtual object further includes: in response to the virtual object remaining within a specified range around the first virtual prop, determining that the control effect continues to be effective on the virtual object.
[0164] In some embodiments, after releasing the control over the action execution speed of the virtual object, the computer device may detect whether the virtual object has left the designated range after first entering the designated range around the first virtual prop, or detect whether the virtual object has left the designated range within a time range from the current moment to the last moment when the control over the action execution speed of the virtual object was started. If the virtual object has not left the designated range, it may be determined that the control effect continues to be effective on the virtual object.
[0165] The solution shown in the above-mentioned embodiment of the present application applies a control effect to a virtual object through a virtual prop in a virtual scene, and determines whether the control effect continues to be effective on the virtual object by detecting whether the virtual object remains in a specified range around the virtual prop. Accordingly, the user can control the virtual object to leave or enter a specified range around the virtual prop to avoid speed control or obtain speed control, thereby expanding the control method for the action execution speed of the virtual object and improving the human-computer interaction effect when the user controls the virtual object.
[0166] Based on the scheme shown in any one or more of the above-mentioned embodiments of the present application, in some embodiments, the above-mentioned virtual object control method also includes: in the process of controlling the gradual change of the action execution speed of the virtual object, in response to the virtual object moving out of the specified range around the first virtual prop, stopping the control of the action execution speed of the virtual object.
[0167] In an embodiment of the present application, when a computer device is controlling the action execution speed of a virtual object, if it is detected that the virtual object moves out of a specified range around a first virtual prop, the action execution speed of the virtual object can be restored to an initial value. Accordingly, the user can release the speed control that has been applied by controlling the virtual object to leave the specified range around the virtual prop, thereby expanding the control method of the action execution speed of the virtual object and improving the human-computer interaction effect when the user controls the virtual object.
[0168] Based on the scheme shown in any one or more of the above-mentioned embodiments of the present application, in some embodiments, before the speed of executing the action of controlling the virtual object gradually changes (step 210) in response to the control effect taking effect on the virtual object, the above-mentioned virtual object control method also includes: in response to the virtual object being applied a first state, determining that the control effect takes effect on the virtual object.
[0169] In some embodiments, the first state is a state in which the virtual object is hit by a designated skill or a designated virtual item, or a state in which the virtual object is applied when using or picking up a virtual item.
[0170] For example, if a virtual object is hit by a skill or virtual item with a debuff effect, or if the virtual object uses or picks up a harmful virtual item, the virtual object will be imposed with a first state (such as DeBuff), and the control effect corresponding to the first state can trigger a deceleration control of the speed of action execution of the virtual object.
[0171] For another example, when a virtual object is hit by a skill or virtual item with a buff effect, or when a virtual object uses or picks up a beneficial virtual item, a first state (such as a Buff) will be imposed on the virtual object, and the control effect corresponding to the first state can trigger accelerated control of the speed at which the virtual object's action is executed.
[0172] Accordingly, when the computer device detects an event that the virtual object is imposed with the first state, it can be determined that the control effect is effective on the virtual object.
[0173] When the control effect continues to be effective on the virtual object, before gradually changing the execution speed of the action of controlling the virtual object again (step 230), the above-mentioned virtual object control method also includes: in response to the first state not being removed, determining that the control effect continues to be effective on the virtual object.
[0174] In the embodiment of the present application, the control effect of the above-mentioned first state has a duration, and the duration can be synchronized with the duration of the first state.
[0175] In some embodiments, when the time for which the first state is applied to the virtual object reaches the duration of the first state, the first state may be removed.
[0176] In some embodiments, when the time the first state is applied to the virtual object does not reach the duration of the first state, the first state may also be removed. For example, if the virtual object uses a dispersal skill or a prop with a dispersal effect, the computer device may remove the first state of the virtual object.
[0177] In some embodiments, after releasing the control over the speed of action execution of the virtual object, the computer device may detect whether the first state of the virtual object still exists. If the first state of the virtual object still exists, it may be determined that the control effect continues to be effective on the virtual object.
[0178] The solution shown in the above-mentioned embodiment of the present application applies a control effect to the virtual object through the first state of the virtual object, and determines whether the control effect continues to be effective on the virtual object by detecting whether the first state exists. Accordingly, the user can avoid or actively be imposed with the first state to circumvent speed control or obtain speed control, thereby expanding the control method of the action execution speed of the virtual object and improving the human-computer interaction effect when the user controls the virtual object.
[0179] Based on the scheme shown in any one or more of the above-mentioned embodiments of the present application, in some embodiments, the above-mentioned virtual object control method also includes: in the process of controlling the gradual change of the action execution speed of the virtual object, in response to the first state being removed, stopping the control of the action execution speed of the virtual object.
[0180] In an embodiment of the present application, when a computer device is controlling the action execution speed of a virtual object, if it is detected that the first state of the virtual object is removed (for example, the duration ends or it is dispelled), the action execution speed of the virtual object can be restored to the initial value. Accordingly, the user can release the speed control that has been applied by waiting for the first state to end or actively dispelling the first state, thereby expanding the control method of the action execution speed of the virtual object and improving the human-computer interaction effect when the user controls the virtual object.
[0181] Based on the scheme shown in any one or more of the above-mentioned embodiments of the present application, in some embodiments, the above-mentioned virtual object control method also includes: when the action execution speed of the virtual object changes to a speed threshold and the virtual object satisfies the second release condition, removing the control effect in the virtual scene, or reducing the remaining number of times the control effect is effective, or reducing the remaining effective time of the control effect.
[0182] The above second release condition is a condition pre-set by developers or operation and maintenance personnel.
[0183] In a possible implementation, after the computer device changes the action execution speed of the virtual object to a certain speed threshold, it can continuously detect whether the virtual object meets the second release condition. When it detects that the virtual object meets the second release condition, it can directly remove the above control effect. That is to say, subsequently, the control of the action execution speed of the virtual object will no longer be performed according to the current control effect.
[0184] In a possible implementation, when there is a limit on the number of effective times of the above control effect, after the computer device changes the action execution speed of the virtual object to a certain speed threshold, it can continuously detect whether the virtual object meets the second release condition. When it detects that the virtual object meets the second release condition, it can reduce the remaining effective times of the control effect. For example, reduce the effective times of the control effect by a specified number of times, and the specified number of times can be set by developers or operation and maintenance personnel; if the remaining effective times are less than or equal to the specified number of times, then directly remove the above control effect.
[0185] In a possible implementation, when there is a limit on the effective duration of the above control effect, after the computer device changes the action execution speed of the virtual object to a certain speed threshold, it can continuously detect whether the virtual object meets the second release condition. When it detects that the virtual object meets the second release condition, it can reduce the remaining effective duration of the control effect. For example, reduce the effective duration of the control effect by a preset duration, and the preset duration can be pre-set by developers or operation and maintenance personnel; if the remaining effective duration is less than or equal to the preset duration, then directly remove the above control effect.
[0186] The removal of the control effect involved in the embodiments of the present application is different from the release / stop of the control of the action execution speed of the virtual object in the above embodiments; specifically, the removal here is for the control effect, even if the control effect has not expired or reached the trigger times.
[0187] In some embodiments, when, in response to the control effect taking effect on the virtual object, the action execution speed of the virtual object is gradually reduced, the above second release condition includes at least one of the following:
[0188] 1) Receiving a second trigger operation on the first control.
[0189] The above second trigger operation can be operations such as clicking, long-pressing, and swiping. The embodiments of the present application do not limit the operation type of the second trigger operation.
[0190] For example, if the above-mentioned second triggering operation is to continuously click on the first control 5 times, then after the action execution speed of the virtual object is reduced to the speed threshold, if a continuous click operation on the first control is received and the number of continuous click operations reaches 5 times, it is considered that the second triggering operation on the first control is received.
[0191] In some embodiments, the operation difficulty of the above-mentioned second triggering operation is higher than that of the first triggering operation.
[0192] 2) A second pressing operation on the first physical button is received.
[0193] The above-mentioned second pressing operation can be operations such as clicking or long pressing. The embodiments of the present application do not limit the operation type of the second pressing operation.
[0194] For example, if the above-mentioned second pressing operation is to continuously click on the first physical button 5 times, then after the action execution speed of the virtual object is reduced to the speed threshold, if a continuous click operation on the first physical button is received and the number of continuous click operations reaches 5 times, it is considered that the second pressing operation on the first physical button is received.
[0195] In some embodiments, the operation difficulty of the above-mentioned second pressing operation is higher than that of the first pressing operation.
[0196] 3) A second control operation on the virtual object is received.
[0197] The above-mentioned second control operation can be operations such as a movement control operation, a skill release operation, a prop use operation, etc. The embodiments of the present application do not limit the operation type of the second control operation.
[0198] For example, if the above-mentioned second control operation is to control the virtual object to continuously turn around 5 times, then after the action execution speed of the virtual object is reduced to the speed threshold, if an operation to control the virtual object to turn around is received and the number of continuous turns of the virtual object reaches 5 times, it is considered that the second control operation on the virtual object is received.
[0199] In some embodiments, the operation difficulty of the above-mentioned second control operation is higher than that of the first control operation.
[0200] In some embodiments, in the case where the action execution speed of the virtual object is gradually increased in response to the control effect taking effect on the virtual object, the above-mentioned second release condition includes at least one of the following:
[0201] 1) The first attribute value of the virtual object is reduced to a third numerical value.
[0202] For example, taking the first attribute value as the health value or the armor value, after the action execution speed of the virtual object is increased to the speed threshold, when the health value or the armor value is reduced to the third value (for example, reduced to 10% of the health value upper limit or the armor value upper limit), the computer device may remove the above control effect.
[0203] For another example, taking the first attribute value as the stamina value or the magic value, after the action execution speed of the virtual object is increased to the speed threshold, when the stamina value or the magic value of the virtual object is reduced to the third value (for example, reduced to 10% of the stamina value upper limit or the magic value upper limit), the computer device may remove the above control effect.
[0204] In some embodiments, the third value is lower than the above first value.
[0205] For example, after the virtual object is subtracted to be frozen, the player can click the control multiple times to break free. When the number of clicks reaches 3 times within the specified time, break free from this control. If the number of clicks within the specified time reaches 5 times, not only break free from this control, but also directly cancel the subsequent control.
[0206] 2) The reduction value of the second attribute value of the virtual object reaches the fourth value.
[0207] For example, taking the second attribute value as the health value or the armor value, after the action execution speed of the virtual object is increased to the speed threshold, when the reduced value of the health value or the armor value reaches the fourth value (for example, the reduced health value or armor value reaches 90% of the health value upper limit or the armor value upper limit), the computer device may remove the above control effect.
[0208] For another example, taking the second attribute value as the stamina value or the magic value, after the action execution speed of the virtual object is increased to the speed threshold, when the reduced value of the stamina value or the magic value of the virtual object reaches the fourth value (for example, the reduced stamina value or magic value reaches 90% of the stamina value upper limit or the magic value upper limit), the computer device may remove the above control effect.
[0209] In some embodiments, the fourth value is higher than the above second value.
[0210] For example, after the speed of the virtual object is increased to 200%, other virtual objects can attack this virtual object to remove the movement control of this virtual object. If the attack of other virtual objects reduces the armor of this virtual object below 50% within the specified time, remove the current movement speed bonus of this virtual object. If the attack of other virtual objects reduces the armor of this virtual object below 90% within the specified time, not only remove the current movement speed bonus of this virtual object, but also remove the subsequent movement speed bonus of this virtual object.
[0211] In the solution shown in the embodiment of the present application, a solution for directly canceling the control effect of a virtual object is provided. Specifically, after the action execution speed of the virtual object changes to the speed threshold, the virtual object can actively or passively remove the current speed control and avoid subsequent speed controls, expanding the control method for the action execution speed of the virtual object and improving the human-computer interaction effect when the user controls the virtual object.
[0212] Based on the solution shown in any one or more of the above embodiments of the present application, in some embodiments, in the above steps 210 and 230, the process of gradually changing the action execution speed of the virtual object may include: obtaining a control parameter corresponding to the number of times the control effect has been controlled; controlling the action execution speed of the virtual object to gradually change based on the control parameter.
[0213] Wherein, controlling the control effect once means triggering a control of the action execution speed of the virtual object (including controlling the action execution speed to gradually change to the speed threshold and canceling the speed control when the first cancellation condition is met).
[0214] In some embodiments, the number of times the control effect has been controlled refers to the number of times the control effect has been controlled for the current virtual object. For example, when the control effect is triggered by a first virtual prop in the virtual scene, the first virtual prop can respectively apply a control effect to one or more virtual objects entering the surrounding preset range, and each control effect triggers a control for the virtual object it affects.
[0215] In some embodiments, the number of times the control effect has been controlled refers to the number of times the control effect has been controlled for multiple virtual objects. For example, when the control effect is triggered by a first virtual prop in the virtual scene, the first virtual prop can commonly apply the control effect to multiple virtual objects within the surrounding preset range. That is to say, this one control effect can trigger controls for multiple virtual objects respectively. Another example is when the control effect is applied by the first state triggered by a skill, the first state can transfer between multiple virtual objects. For example, after a virtual object A is applied with the first state, when the virtual object A approaches another virtual object B, the first state can transfer from the virtual object A to the virtual object B. At this time, the number of times the control effect has been controlled can be the total number of times the control effect triggered by the first state has triggered controls for one or more virtual objects from the time when the skill applied the first state to the current moment.
[0216] In some embodiments, a first correspondence table may be stored in a computer device, which stores control parameters respectively corresponding to each trigger of a control effect. When the computer device detects that the control effect triggers the control of a virtual object for a certain time, it may query the above-mentioned first correspondence table to obtain the control parameters corresponding to the number of times the control effect has been controlled. For example, if the control effect has been triggered 0 times, the computer device queries the control parameters corresponding to the first trigger of the control effect from the above-mentioned first correspondence table, and controls the action execution speed of the virtual object to gradually change according to the queried control parameters; for another example, if the control effect has been triggered 2 times, the computer device queries the control parameters corresponding to the third trigger of the control effect from the above-mentioned first correspondence table, and controls the action execution speed of the virtual object to gradually change according to the queried control parameters.
[0217] In some embodiments, the above-mentioned first correspondence table or some content in the first correspondence table is preset by developers or operation and maintenance personnel.
[0218] In the embodiments of the present application, the control parameters for controlling the action execution speed triggered each time by a control effect can be set separately. During multiple triggers of the control effect, the computer device can perform differential control on the action execution speed of the virtual object. Correspondingly, the user can adopt corresponding processing strategies during multiple triggers of the control effect, which expands the control method of the virtual object, improves the strategizing when the user controls the virtual object, and further improves the human-computer interaction effect when the user controls the virtual object.
[0219] Based on the solutions shown in any one or more of the above-mentioned embodiments of the present application, in some embodiments, the above-mentioned control parameters include at least one of the following parameters:
[0220] 1) The duration for the action execution speed to change to the speed threshold;
[0221] 2) The change rate of the action execution speed;
[0222] 3) The speed threshold.
[0223] In some embodiments, by using the duration for the action execution speed to change to the speed threshold or the change rate of the action execution speed, combined with the initial speed and the speed threshold, the computer device can calculate the action state of the virtual object in the current frame and display the virtual object through this action state.
[0224] For example, the computer device can calculate the action execution speed of the current frame (such as by interpolation or by a preset formula) based on the duration for the action execution speed to change to the speed threshold, the initial speed, and the duration between the current frame and the start time of the action execution speed control among the above actions, and display the corresponding virtual object based on the calculated action execution speed of the current frame.
[0225] For another example, the computer device can calculate the action execution speed of the current frame based on the change rate of the above action execution speed, the initial speed, and the duration between the current frame and the start time of the action execution speed control, and display the corresponding virtual object based on the calculated action execution speed of the current frame.
[0226] In the embodiments of the present application, the computer device can determine the action state of the virtual object in each frame during the speed control process and display the corresponding virtual object by at least one of the duration for the action execution speed to change to the speed threshold and the change rate in the control parameters, ensuring the smoothness and fluency of the speed control process of the virtual object, and thus ensuring the performance effect of the gradual change of the speed of the virtual object during the speed control process.
[0227] Based on the solutions shown in any one or more of the above embodiments of the present application, in some embodiments, the above control parameters further include: parameters corresponding to the first release condition.
[0228] The parameters corresponding to the first release condition can indicate the specific first release condition.
[0229] In some embodiments, when the first release condition includes receiving a first trigger operation on a control, the parameters of the first release condition can include the parameters of the above first trigger operation, such as at least one of parameters such as the number of trigger times on the first control and the long-press duration.
[0230] In some embodiments, when the first release condition includes receiving a first pressing operation on a first physical button, the parameters of the first release condition can include the parameters of the above first pressing operation, such as at least one of parameters such as the number of presses, the pressing duration, and the identifier of the first physical button.
[0231] In some embodiments, when the first release condition includes receiving a first control operation on a virtual object, the parameters of the first release condition can include the parameters of the above first control operation, such as at least one of parameters such as the number of operations, the identifiers of each sub-operation included in the first control operation, and the execution order of each sub-operation.
[0232] In some embodiments, when the first release condition includes that the time length during which the speed of the action execution of the virtual object maintains the speed threshold reaches a first time length, the parameter of the first release condition may include the first time length.
[0233] In some embodiments, when the first release condition includes that the first attribute value of the virtual object decreases to a first numerical value, the parameters of the first release condition may include at least one of the attribute type of the first attribute value and the first numerical value.
[0234] In some embodiments, when the first release condition includes a decrease in a second attribute value of the virtual object reaching a second numerical value, the parameters of the first release condition may include at least one of an attribute type of the second attribute value and a second numerical value.
[0235] In some embodiments, when the first release condition includes that the time length during which the speed of the action execution of the virtual object maintains the speed threshold reaches a second time length, the parameter of the first release condition may include the second time length.
[0236] In an embodiment of the present application, when a control effect is triggered each time, the conditions for releasing the speed control (i.e., the first release condition) can be set separately. During multiple triggering processes of the control effect, the computer device can perform differentiated release condition restrictions on the speed control of the action of the virtual object. Accordingly, the user can adopt corresponding processing strategies to release the speed control during multiple triggering processes of the control effect, thereby expanding the control method of the virtual object, improving the user's strategic control of the virtual object, and thereby improving the human-computer interaction effect when the user controls the virtual object.
[0237] Based on the scheme shown in any one or more of the above-mentioned embodiments of the present application, in some embodiments, when the control effect continues to be effective on the virtual object, the execution speed of the action of controlling the virtual object again gradually changes (step 230), which can be implemented as follows: when the control effect continues to be effective on the virtual object, after the third time period starts to be counted at the release moment, the execution speed of the action of controlling the virtual object again gradually changes.
[0238] In some embodiments, the third duration is a duration preset by a developer or operation and maintenance personnel.
[0239] In the embodiments of the present application, when the control effect continuously takes effect on the virtual object, after the computer device releases the control of the action execution speed of the virtual object at a certain time, it can trigger the control of the action execution speed of the virtual object again after a certain period of time. On the one hand, it can enable the user to clearly perceive that the virtual object receives multiple controls of the action execution speed. On the other hand, it can leave room for the user to operate and select strategies, thereby expanding the control method of the virtual object, improving the strategy of the user when controlling the virtual object, and further improving the human-computer interaction effect when the user controls the virtual object.
[0240] Based on the solutions shown in any one or more of the above embodiments of the present application, in some embodiments, when the control effect continuously takes effect on the virtual object, after starting to time the third duration at the release moment and before controlling the action execution speed of the virtual object to gradually change again, the above virtual object control method further includes: obtaining a third duration corresponding to the number of times the control effect has been controlled.
[0241] In some embodiments, a second correspondence table may be stored in the computer device, which stores the third duration corresponding to each trigger of the control effect. When the computer device detects that the control effect triggers the control of the virtual object at a certain time, it can query the second correspondence table to obtain the third duration corresponding to the number of times the control effect has been controlled. For example, if the control effect has been triggered 0 times, the computer device queries the second correspondence table for the third duration corresponding to the first trigger of the control effect and waits for the queried third duration before controlling the action execution speed of the virtual object to gradually change again. Another example is that if the control effect has been triggered 2 times, the computer device queries the second correspondence table for the third duration corresponding to the third trigger of the control effect and waits for the queried third duration before controlling the action execution speed of the virtual object to gradually change again.
[0242] In some embodiments, the second correspondence table or part of the content in the second correspondence table is pre-set by developers or operation and maintenance personnel.
[0243] In some embodiments, the first correspondence table and the second correspondence table may be the same correspondence table, or they may be different correspondence tables.
[0244] In some embodiments, when the first correspondence table and the second correspondence table are the same correspondence table, the step of obtaining the control parameter corresponding to the number of times the control effect has been controlled and the step of obtaining the third duration corresponding to the number of times the control effect has been controlled may be the same step. For example, the obtained control parameter includes the above third duration.
[0245] In the embodiments of the present application, after each trigger and release of the speed control for a control effect, the time interval for triggering the speed control again can be set separately. During multiple triggers of the control effect, the computer device can perform differential settings on the interval between two controls of the action execution speed of the virtual object. Correspondingly, the user can adopt corresponding processing strategies during multiple triggers of the control effect, expanding the control methods for the virtual object, improving the strategic nature of the user when controlling the virtual object, and further enhancing the human-computer interaction effect when the user controls the virtual object.
[0246] Based on the solutions shown in any one or more of the above various embodiments of the present application, in some embodiments, the above method for controlling a virtual object further includes: displaying a control special effect corresponding to the virtual object, and the control special effect includes at least one of the following:
[0247] A first special effect displayed during the process of gradually changing the action execution speed of the virtual object;
[0248] A second special effect when the action execution speed changes to a speed threshold;
[0249] A third special effect when releasing the control of the action execution speed of the virtual object.
[0250] Among them, the above first special effect, second special effect, and third special effect can include animation special effects, sound special effects, particle special effects, and so on.
[0251] In some embodiments, the above first special effect can be a special effect that changes as the action execution speed of the virtual object gradually changes.
[0252] For example, the computer device can determine the first special effect corresponding to each frame during the process of gradually changing the action execution speed of the virtual object through the above control parameters.
[0253] In the embodiments of the present application, during the process of the computer device performing gradual change control on the action execution speed of the virtual object, when the action execution speed of the virtual object changes to the speed threshold, and when releasing the control of the action execution speed of the virtual object, respective special effects can be corresponding, so that the user can intuitively understand the state of the current action execution speed of the virtual object through the special effects, improving the human-computer interaction effect when the user controls the virtual object.
[0254] The solutions shown in the above embodiments of the present application can be applied to game scenarios. Specifically, for example, they can be applied to scenarios such as the trigger of deceleration and freezing control of organs in the game, the trigger of deceleration and freezing control when being hit by a skill in the game, and the trigger of gradual acceleration during the occupation behavior in the game, etc. The following will introduce the above several specific game scenarios separately.
[0255] 1. Scenarios of Triggering Slowdown and Freezing Control in the Game
[0256] In the scenarios of triggering slowdown and freezing control in the game, through the virtual organs in the game scene, repeated slowdown control of the virtual object is triggered. In each slowdown control, the speed of the virtual object is gradually reduced until the virtual object is frozen, and the frozen state of the virtual object can be released by the player's operation or after waiting for a certain period of time. Please refer to Figure 4 , which shows the flowchart of triggering slowdown and freezing by organs involved in the embodiments of the present application. As Figure 4 shown, the above-mentioned solution for triggering slowdown and freezing by organs may include the following steps:
[0257] Step 410: In response to the virtual object entering the specified range around the virtual organ, apply a control effect to the virtual object.
[0258] Step 420: Trigger the control effect to take effect on the virtual object, and control the action execution speed of the virtual object to gradually decrease until the virtual object is frozen.
[0259] Step 430: When receiving the first trigger operation on the first control, the first pressing operation on the first physical button, the first control operation on the virtual object, or when the freezing duration of the virtual object reaches the first duration, release the freezing effect on the virtual object.
[0260] Step 440: If within the third duration after the freezing effect is released, the virtual object continuously stays within the specified range around the virtual organ, and the number of times the virtual organ triggers the virtual object to slow down to freeze has not reached the number threshold, trigger the control effect to take effect on the virtual object again.
[0261] Step 450: If within the third duration after the freezing effect is released, the virtual object leaves the specified range around the virtual organ, cancel the control effect on the virtual object.
[0262] Step 460: If the number of times the virtual organ triggers the virtual object to slow down to freeze reaches the number threshold, cancel the control effect on the virtual object and close the virtual organ.
[0263] In some embodiments, if within the third duration after the freezing effect is released, the virtual object leaves the specified range around the virtual organ, and the number of times the virtual organ triggers the virtual object to slow down to freeze has not reached the number threshold, the virtual organ may not be closed. Subsequently, when the virtual object or other virtual objects enter the specified range around the virtual organ again, the above control effect can be applied to the virtual object that enters the specified range around the virtual organ again.
[0264] Among them, the number of times the virtual object is decelerated to freezing by the above-mentioned virtual machine switch can be accumulated, that is, the number of times the virtual object is decelerated to freezing by the above-mentioned virtual machine switch is the sum of the number of times each virtual object enters the specified range around the virtual machine switch and is triggered to decelerate to freezing by the above-mentioned control effect.
[0265] Alternatively, the number of times the virtual object is decelerated to freezing by the virtual machine switch can be reset, that is, the number of times the virtual object is decelerated to freezing by the virtual machine switch is the number of times a single virtual object enters the specified range around the virtual machine switch and is triggered to decelerate to freezing by the control effect.
[0266] For example, the scenario of the mechanism triggering the deceleration and freezing control in the above game may have the following features:
[0267] 1) Implementing character (i.e. virtual object) behavior control based on controllable repetitiveness of the mechanism:
[0268] The mechanism has no physical model and is a direct trigger type mechanism. The movement speed of the character controlled by the player slows down and enters a frozen state after a short period of time. The character can break free through operation.
[0269] After releasing, it is determined whether to trigger again according to the configuration. The state of freezing again after triggering is progressively different from the first time.
[0270] It is highlighted by controllable mechanisms that control player behavior and increase gameplay during the control process.
[0271] 2) Gradual freezing scheme and escape mechanism based on frozen performance:
[0272] The character is within the range of the trap, which can be activated through other systems and gradually slow down the character. After a few seconds, the virtual object completely stops and freezes.
[0273] A UI button appears. Click it multiple times in a row to release the stagnation and freeze. The release process is accompanied by the release of the freeze effect, which increases the gameplay fun and interactive feedback of the click gameplay.
[0274] Provides a variety of configuration control situations, supports until other systems shut down, or completes the number of effective times according to the configuration situation, and then can move normally.
[0275] Please refer to Figure 5 , which shows a schematic diagram of a role movement involved in an embodiment of the present application. Figure 5 As shown, when the character 501 controlled by the player moves in the game scene, it can enter the specified range around the mechanism 502. When the character 501 continues to be in the specified range, the deceleration control of the character 501 can be repeatedly triggered. Figure 5In the interface shown, during the process of decelerating the character 501, before decelerating to freezing, the player can still control the movement of the character 501, for example, Figure 5 In the game, the player controls the character 501 to turn and change direction when moving in the game scene. During this process, the moving speed of the character 501 will gradually decrease.
[0276] Please refer to Figure 6 , which shows a schematic diagram of a role freezing state involved in an embodiment of the present application. Figure 6 As shown, after the character 601 is decelerated and frozen, the player cannot control the movement of the character 601. At this time, a control 602 for releasing the control (corresponding to the first control mentioned above) may be displayed in the interface, and the user is prompted to click the control 602 multiple times to release the frozen state.
[0277] In the above scheme, the interface of the character in each state is as follows:
[0278] 1) Gradually freeze: When the character enters the trigger range of the mechanism, the freezing effect is triggered. The character's movements gradually slow down until they stop completely. The character gradually gains the freezing effect.
[0279] 2) Complete Freeze: The character is completely frozen and all actions are suspended. The freezing effects on the character are fully displayed.
[0280] 3) Break free: By pressing the button, the character will shake and the special effects on the body will vibrate. When the character breaks free completely, the special effects on the character will fall off and the action will return to normal.
[0281] 4) Re-action: If the configuration is to be re-acted, the freeze control can be repeated multiple times in a controlled manner until the configured number of times is completed or the player leaves the action range.
[0282] 5) Repeated trigger: The mechanism can be configured to be repeatedly triggered. After the mechanism completes all the above single processes, the player can be repeatedly triggered within the range or enter the range again, and enter the repeated trigger performance. If the repeated trigger is not set, the mechanism is closed and inactive.
[0283] The implementation of the above solution can be divided into the following parts:
[0284] 1) Scope of the agency:
[0285] Add collision frame components to the mechanism, such as setting square and circular collision frames, and support directly dragging to adjust the position and size. In the activated state, it will cause a stagnation effect on the player character entering the range. If the activation state is turned off and becomes inactive, all ongoing stagnation effects will be removed. If you leave the range during the freezing process of the activation process, all effects will be removed.
[0286] 2) ALS:
[0287] The character's actions gradually decrease, and after A seconds, it enters a completely immobile stagnant state. After entering this state, the character can only perform the [Move] operation and cannot perform any other operations. During the process, the character's stagnation special effects are gradually added, and the effect increases from 0% to 100%. After A seconds, it enters a stagnant state and the character cannot move at all.
[0288] 3) Breakaway mechanism:
[0289] After entering the stagnant frozen state, a special UI button will appear on the screen, which needs to be released by continuously clicking the button (such as the space bar). The number of consecutive clicks B is configurable. If no clicks are made, it will be automatically released after C seconds. After the number of consecutive clicks is reached, the stagnant state is released. If the character is still in the area, the re-action process will be carried out.
[0290] 4) Action again:
[0291] After an interval of D seconds, if the character is still in the range, the character's action speed will gradually decrease, and after a second, it will enter a completely immobile state (different from the first time, it needs to be configured separately). When entering the stagnant state, a UI button will appear, and the number of consecutive clicks b can be configured. If you do not click, it will be automatically released after c seconds (different from the first time, it needs to be configured separately). After the number of consecutive clicks is reached, the stagnant state is released. If the character is still in the area, the re-action process will be repeated. The re-action has a configurable number of effective times E. After the number of times is used up, the mechanism ends the single trigger process.
[0292] The mechanisms in the above scheme can be implemented through the following technologies:
[0293] 1) Collision Detection System: Core Mechanism: Box Collision and Sphere Collision components are used to define the trigger area, and Overlap Event is used to detect player entry / exit events.
[0294] 2) Timeline and animation curve: used to achieve slow freezing effects (such as speed decay, special effect transparency changes), and drive parameter interpolation through the Timeline component. Example: Use Float Curve to control the character's movement speed from 100% to 0%.
[0295] 3) State Machine: manages the character status (normal, freezing, stagnant, breaking free), defines the status through Enum, and drives the animation logic in combination with Anim Blueprint.
[0296] 4) UMG and input events: UI key interactions in a stagnant or frozen state (such as continuous clicking of the space bar) require binding Input Action events, and displaying the click progress through the Progress Bar.
[0297] 5) Gameplay Ability System (GAS): Optional, character state changes (such as speed decay, forced operation restrictions) can be achieved through GameplayEffect.
[0298] In the above scheme, the formula and parameters for controlling the character's speed can be as follows:
[0299] 1) Gradual freezing rate attenuation formula:
[0300] CurrentSpeed=InitialSpeed*(1-t / A)
[0301] Parameter Description:
[0302] t: time (unit: second), value range 0≤t≤A;
[0303] A: The time required for complete stagnation (first trigger), it is recommended that A ≥ 1s.
[0304] 2) Special effect transparency formula:
[0305] Opacity=t / A*100%
[0306] 3) Breakaway mechanism formula:
[0307] Click count requirement: CurrentClicks≥B
[0308] B: The number of consecutive clicks required for the first trigger, B∈[3,10] is recommended;
[0309] Automatic release countdown: RemainingTime = C – t;
[0310] C: Automatic release time after the first trigger, it is recommended that C ≥ 5s.
[0311] 4) Re-triggering mechanism parameters:
[0312] Interval time: D (unit: seconds), D∈[2,10] is recommended;
[0313] Upper limit of re-trigger times: E (integer), recommended value is E∈[1,5];
[0314] Independent parameters when triggering again: a, b, c (corresponding to A, B, C, but the values can be different).
[0315] Please refer toFigure 7 , which shows a schematic diagram of the state machine model of the roles involved in the embodiments of the present application. As Figure 7 shown, the state transition conditions of the role can be as follows:
[0316] 1) Enter activation: The player character triggers the OnBeginOverlap event; correspondingly, in Figure 7 , when the mechanism is in the unactivated state, the character enters the area around the mechanism (S701), enters the activated state (S702), and gradually reduces the action execution speed of the character (such as movement speed, turning speed, attack speed, etc.);
[0317] 2) Enter freezing: The time axis is completed (t≥A); correspondingly, in Figure 7 , after A seconds in the deceleration state (S703), enter the freezing state (S704):
[0318] 3) Enter breaking free: The player presses a button to click and trigger an input event; correspondingly, in Figure 7 , when the player clicks and completes or times out without completion, the character will break free from the frozen state (S705).
[0319] After that, the player character can leave the area around the mechanism (S706). At this time, the action execution speed of the character is no longer reduced; if the player character enters the area around the mechanism again, or the player character does not leave the area around the mechanism, the action execution speed of the character can be gradually reduced again until it freezes.
[0320] The control algorithm involved in this solution can include state management, speed and transparency calculation, and frozen state trigger logic, specifically as follows:
[0321] The state enumeration is defined as follows:
[0322]
[0323] The structure of the state machine for the gradually freezing effect is as follows:
[0324]
[0325]
[0326] The logic for initializing the state machine is as follows:
[0327]
[0328] The processing function for entering the frozen state is as follows:
[0329]
[0330] The update logic for each frame (delta_time is the frame time, unit: seconds) is as follows:
[0331]
[0332]
[0333] The main process logic is as follows:
[0334]
[0335] The input and configurable parameters in the above scheme can be shown in Table 1.
[0336] Table 1
[0337] Parameter Type Parameter Name Description Example Value Value Range Basic Configuration A First Complete Freezing Time 3.0s ≥1.0s B First Requirement Click Count 5 3 - 10 times C First Automatic Release Time 8.0s ≥5.0s D Interval Time for Re - action 5.0s 2.0-10.0s E Maximum Trigger Count 3 1 - 5 times a / b / c Parameter for Re - action 2s / 8 / 6s Same as A / B / C Rules Real - time Input Collision Player Collision Status true bool Type KeyPress Space Bar Click Event Stream 1 (time) Event Count
[0338] In addition to the parameters mentioned in Table 1, you can also configure some other state parameters of the object (mechanism), such as: the initial state of the object, whether it can be triggered repeatedly, and the repeated triggering interval.
[0339] Please refer to Figure 8 , which shows the overall flow chart involved in the embodiment of the present application, such as Figure 8 As shown, the above overall process may include the following steps:
[0340] S801: After the mechanism is activated, the character continues to be within the specified range around the mechanism, and the character is gradually frozen for A seconds.
[0341] S802, after A seconds of gradual freezing, if the character is still within the specified range around the mechanism, a restraining and stagnant control (freezing) is applied to the character; if the character leaves the specified range around the mechanism, the process is stopped.
[0342] S803: A UI control appears in the interface, and a user clicks the UI control B times in a row, or waits for C seconds.
[0343] S804, release the control of the character's restraint (break free).
[0344] S805, if the character is still in the specified range around the mechanism, check whether the remaining effective times E is greater than 0, if so, go to S806, otherwise, close the mechanism.
[0345] S806, waiting interval D seconds.
[0346] S807, after an interval of D seconds, if the character is still within the specified range around the mechanism, apply gradual freezing control for a seconds to the character; if the character leaves the specified range around the mechanism, stop the process.
[0347] S808, after freezing for a seconds, if the character is still within the specified range around the mechanism, a restraining and stagnant control is applied to the character; if the character leaves the specified range around the mechanism, the process is stopped.
[0348] S809: A UI control appears in the interface, and the user clicks the UI control b times in a row, or waits for c seconds.
[0349] S810, release the control of the character's restraint and stagnation.
[0350] S811, reduce the remaining number of effective times E by 1, and return to S805.
[0351] Combination Figure 8 , an exemplary processing process of this solution may include the following parts:
[0352] 1) Calculation of the gradual freezing stage (when A=3s).
[0353] Input: elapsed_time = 1.5s.
[0354] calculate:
[0355] progress = 1.5 / 3 = 0.5;
[0356] current_speed=3m / s*(1-0.5)=1.5m / s;
[0357] opacity=0.5→50%.
[0358] Output: speed value, transparency parameter.
[0359] 2) Breakaway stage processing (when B=5, C=8s).
[0360] Input: current_clicks=3, remaining_time=5s.
[0361] Output: Displays "2 more clicks required (5 seconds remaining)".
[0362] 3) The output result type can be as shown in Table 2.
[0363] Table 2
[0364] Output Type Specific Content Presentation Form Character Control Moving Speed Value Reduction of Character Animation Playback Speed UI Feedback Click Progress Bar / Countdown Dynamic Progress Bar in the Center of the Screen Special Effect Rendering Material Transparency / Particle Intensity Blue Freezing Special Effect around the Character Status Event Status Switch Broadcast Trigger Sound Effect / Camera Shake
[0365] In the above scenario, a typical data flow case can be as follows:
[0366] 1) Scenario: The player triggers the mechanism for the first time (configuration: A=3s, B=5, C=8s, D=2s, E=3).
[0367] 2) Input signal:
[0368] Collision detection: the player enters a circular area (radius 2m);
[0369] Configuration parameters loading: A=3, B=5,...
[0370] 3) Processing flow:
[0371] ①The time axis begins to accumulate;
[0372] ②Calculate speed / opacity for each frame;
[0373] ③ The freeze state is triggered after 3 seconds;
[0374] ④UI displays click requirements;
[0375] ⑤The player clicks 3 times (not reaching the target);
[0376] ⑥8 seconds timeout automatically released;
[0377] ⑦ Start D = 2s timer;
[0378] ⑧After 2 seconds, the detection is still in the area;
[0379] ⑨Trigger the second gradual freezing (using the a parameter).
[0380] 4) Output performance:
[0381] Visual: Character movement slows down → Freeze effect increases → UI prompt appears → Effect disappears after timeout;
[0382] Hearing: The sound of the gradual freezing becomes louder → a "click" sound when frozen → a shattering sound when released.
[0383] The application of the above-mentioned scheme and the puzzle games and combat systems with various applicabilities that are repeatedly designed and applied have rich scalability and gameplay design space, rich behavioral expressions, and a process from the beginning of the effect to the freezing effect taking effect. The expression effect coverage enhances the richness of the mechanism expression effect and improves the rationality of the behavioral logic.
[0384] The above solution provides rich gameplay and design scalability: in terms of function effect configuration implementation, it provides rich configuration conditions, realizes multiple, repeated and controllable freezing control, and realizes the reusability and scalability of a single mechanism.
[0385] The above scheme provides a flexible way to control character behavior: through the configuration structure design in the scheme, the player's behavior operation can be flexibly controlled, and different difficulty experiences can be designed for different players.
[0386] 2. Scenarios in the game where being hit by skills triggers slowdown and freezing control
[0387] In the scenario where a skill hits and triggers deceleration and freezing control in the game, when the virtual object is hit by the specified skill of other virtual objects in the game scene, repeated deceleration control of the virtual object is triggered. In each deceleration control, the speed of the virtual object is gradually reduced until the virtual object is frozen, and the frozen state of the virtual object can be released by the player's operation or after waiting for a certain period of time. Please refer to Figure 9 , which shows the flowchart of skill-triggered deceleration and freezing involved in the embodiments of the present application. As Figure 9 shown, the above-mentioned skill-triggered deceleration and freezing solution may include the following steps:
[0388] Step 910: In response to the virtual object being hit by the specified skill, apply a control effect to the virtual object.
[0389] Step 920: Trigger the control effect to take effect on the virtual object, and control the action execution speed of the virtual object to gradually decrease until the virtual object is frozen.
[0390] Step 930: When receiving the first trigger operation on the first control, the first pressing operation on the first physical button, the first control operation on the virtual object, or when the freezing duration of the virtual object reaches the first duration, release the freezing effect on the virtual object.
[0391] Step 940: If within the third duration after the freezing effect is released, the duration of the control effect does not reach the specified duration, or the number of times the control effect triggers the virtual object to decelerate to freezing does not reach the number threshold, trigger the control effect to take effect on the virtual object again.
[0392] Step 950: If within the third duration after the freezing effect is released, the duration of the control effect reaches the specified duration, or the number of times the control effect triggers the virtual object to decelerate to freezing reaches the number threshold, cancel the control effect on the virtual object.
[0393] III. Scenario where the occupation behavior in the game triggers gradual acceleration
[0394] In the scenario where the occupation behavior in the game triggers gradual acceleration, the player controls the virtual object to occupy a point / building in the virtual scene, triggering repeated acceleration control of the virtual object. In each acceleration control, the speed of the virtual object is gradually increased until it reaches the maximum speed (a certain threshold), and the maximum speed state of the virtual object can be released by the interaction of other players' characters or after waiting for a certain period of time. Please refer to Figure 10 , which shows the flowchart of occupation-triggered acceleration involved in the embodiments of the present application. As Figure 10 shown, the above-mentioned occupation-triggered acceleration solution may include the following steps:
[0395] Step 1010: In response to the virtual object occupying a designated area or a designated building, applying a control effect to the virtual object.
[0396] Step 1020: triggering the control effect to take effect on the virtual object, and gradually increasing the speed of executing the action of controlling the virtual object until reaching a maximum speed (eg, 200% of the initial speed).
[0397] Step 1030: When the first attribute value of the virtual object decreases to a first value, the decrease value of the second attribute value of the virtual object reaches a second value, or the duration for which the virtual object maintains the maximum speed reaches a first duration, the acceleration effect on the virtual object is released.
[0398] For example, if the virtual object is attacked by other virtual objects, resulting in a reduction of 50 points / 50% of its health, the acceleration effect on the virtual object can be removed, and the speed of the virtual object can be restored to its initial speed. For another example, if the virtual object is attacked by other virtual objects, resulting in a reduction of 30% of its health, the acceleration effect on the virtual object can be removed. For another example, if the virtual object maintains its top speed for 8 seconds, the acceleration effect on the virtual object can be removed.
[0399] Step 1040: If the virtual object continues to occupy the designated area or the designated building within the third time period after the freezing effect is released, the control effect is triggered again to take effect on the virtual object.
[0400] Step 1050: If the virtual object leaves the designated area or the designated building within the third time period after the freezing effect is released, the control effect of the virtual object is canceled.
[0401] Please refer to Figure 11 , which shows a structural block diagram of a control device for a virtual object provided by an exemplary embodiment of the present application, the control device includes:
[0402] A speed control module 1101 is used to control the speed of action execution of the virtual object to gradually change when the control effect takes effect on the virtual object;
[0403] A control release module 1102, configured to release control of the action execution speed of the virtual object when the action execution speed of the virtual object changes to a speed threshold and the virtual object satisfies a first release condition;
[0404] The speed control module 1101 is further configured to control the action execution speed of the virtual object to gradually change again when the control effect continues to be effective on the virtual object.
[0405] In a possible implementation, the speed control module 1101 is used to:
[0406] In response to the control effect taking effect on the virtual object, control the action execution speed of the virtual object to gradually decrease; or,
[0407] In response to the control effect taking effect on the virtual object, control the action execution speed of the virtual object to gradually increase.
[0408] In a possible implementation manner, when the speed control module 1101 controls the action execution speed of the virtual object to gradually decrease in response to the control effect taking effect on the virtual object, the first release condition includes at least one of the following:
[0409] Receiving a first trigger operation on a first control;
[0410] Receiving a first pressing operation on a first physical button;
[0411] Receiving a first control operation on the virtual object;
[0412] The duration for which the action execution speed of the virtual object maintains the speed threshold reaches a first duration.
[0413] In a possible implementation manner, when the speed control module 1101 controls the action execution speed of the virtual object to gradually decrease in response to the control effect taking effect on the virtual object, the speed threshold is 0.
[0414] In a possible implementation manner, when the speed control module 1101 controls the action execution speed of the virtual object to gradually increase in response to the control effect taking effect on the virtual object, the first release condition includes at least one of the following:
[0415] The first attribute value of the virtual object decreases to a first numerical value;
[0416] The decrease value of the second attribute value of the virtual object reaches a second numerical value;
[0417] The duration for which the action execution speed of the virtual object maintains the speed threshold reaches a second duration.
[0418] In a possible implementation manner, the device further includes:
[0419] A display module, configured to display a prompt message of the first release condition.
[0420] In a possible implementation manner, before the speed control module 1101 controls the action execution speed of the virtual object to gradually change in response to a control effect taking effect on the virtual object, the device further includes:
[0421] A first effectiveness determination module, configured to determine that the control effect is effective on the virtual object in response to the virtual object entering a specified range around a first virtual prop;
[0422] The first effectiveness determination module is further configured to determine that the control effect continues to be effective on the virtual object in response to the virtual object remaining within a specified range around the first virtual prop.
[0423] In a possible implementation, the speed control module 1101 is further configured to stop controlling the action execution speed of the virtual object in response to the virtual object moving out of a specified range around the first virtual prop during the process of controlling the action execution speed of the virtual object to gradually change.
[0424] In a possible implementation, the speed control module 1101 controls the action execution speed of the virtual object to gradually change in response to the control effect taking effect on the virtual object, and the device further includes:
[0425] A second effectiveness determination module, configured to determine that the control effect is effective on the virtual object in response to the virtual object being applied with a first state;
[0426] The second effectiveness determination module is used to determine that the control effect continues to be effective on the virtual object in response to the first state not being removed.
[0427] In a possible implementation, the speed control module 1101 is further configured to stop controlling the action execution speed of the virtual object in response to the first state being removed during the process of controlling the action execution speed of the virtual object to gradually change.
[0428] In a possible implementation manner, the device further includes:
[0429] The effect removal module is used to remove the control effect in the virtual scene when the action execution speed of the virtual object changes to a speed threshold and the virtual object meets a second release condition.
[0430] In a possible implementation, the speed control module 1101 is used to:
[0431] Obtaining a control parameter corresponding to the number of times the control effect has been controlled;
[0432] The speed of executing the action of the virtual object is controlled to change gradually based on the control parameter.
[0433] In a possible implementation manner, the control parameter includes at least one of the following parameters:
[0434] The duration for the action execution speed to change to the speed threshold;
[0435] The rate of change of the action execution speed;
[0436] The speed threshold.
[0437] In a possible implementation manner, the control parameter further includes: the parameter corresponding to the first release condition.
[0438] In a possible implementation manner, the speed control module 1101 is configured to, when the control effect continuously takes effect on the virtual object, after a third duration starts to be counted at the release moment, control the action execution speed of the virtual object to gradually change again.
[0439] In a possible implementation manner, the speed control module 1101 is further configured to, when the control effect continuously takes effect on the virtual object, before controlling the action execution speed of the virtual object to gradually change again after a third duration starts to be counted at the release moment, obtain the third duration corresponding to the number of times the control effect has been controlled.
[0440] In a possible implementation manner, the device further includes:
[0441] An special effect display module, configured to display control special effects corresponding to the virtual object, where the control special effects include at least one of the following:
[0442] A first special effect displayed during the process of controlling the action execution speed of the virtual object to gradually change;
[0443] A second special effect when the action execution speed changes to the speed threshold;
[0444] A third special effect when the control of the action execution speed of the virtual object is released.
[0445] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method; the technical effects obtained by each module performing operations are the same as those in the embodiments related to the method, and will not be elaborated here in detail.
[0446] Please refer to Figure 12, which shows a structural block diagram of a computer device provided by an exemplary embodiment of the present application. The computer device 1200 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player. The computer device 1200 may also be referred to by other names such as user equipment, portable terminal, etc.
[0447] Generally, the computer device 1200 includes: a processor 1201 and a memory 1202.
[0448] The processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc.
[0449] The memory 1202 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1202 may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1201 to implement the control method of the virtual object provided in the embodiments of the present application.
[0450] In some embodiments, the computer device 1200 may also optionally include: a peripheral device interface 1203 and at least one peripheral device. Specifically, the peripheral device includes at least one of: a radio frequency circuit 1204, a touch display screen 1205, a camera assembly 1206, an audio circuit 1207, and a power supply 1208.
[0451] In some embodiments, the computer device 1200 further includes one or more sensors 1209. The one or more sensors 1209 include but are not limited to: an acceleration sensor 1210, a gyroscope sensor 1211, a pressure sensor 1212, an optical sensor 1213, and a proximity sensor 1214.
[0452] Those skilled in the art can understand that Figure 12 the structure shown in does not constitute a limitation on the computer device 1200, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0453] In an exemplary embodiment, an embodiment of the present application provides a chip, which includes a programmable logic circuit and / or program instructions, and is used to implement the control method of a virtual object provided in the above method embodiment when the chip runs on a computer device.
[0454] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is loaded and executed by a processor to implement the control method of a virtual object provided in the above method embodiment.
[0455] An embodiment of the present application provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, so that the processor loads and executes to implement the control method of a virtual object provided in the above method embodiment.
[0456] The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.
[0457] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by a program instructing related hardware. The program can be stored in a computer-readable storage medium. The above-mentioned computer-readable storage medium can be a read-only memory, a magnetic disk or an optical disc, etc.
[0458] Those skilled in the art should be able to realize that in the above one or more examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, where communication media includes any medium that facilitates the transfer of a computer program from one place to another. The storage media can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0459] The above are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling a virtual object, characterized in that: The method comprises: When the control effect is effective on the virtual object, the speed of executing the action of controlling the virtual object gradually changes; When the action execution speed of the virtual object changes to a speed threshold and the virtual object satisfies a first release condition, releasing the control on the action execution speed of the virtual object; When the control effect continues to be effective on the virtual object, the execution speed of the action of controlling the virtual object again gradually changes.
2. The method according to claim 1, characterized in that In response to the control effect taking effect on the virtual object, the action execution speed of the virtual object is controlled to gradually change, including: In response to the control effect taking effect on the virtual object, the execution speed of the action of controlling the virtual object is gradually reduced; or, In response to the control effect taking effect on the virtual object, a speed of executing an action for controlling the virtual object is gradually increased.
3. The method according to claim 2, characterized in that In response to the control effect taking effect on the virtual object, when the execution speed of the action of controlling the virtual object gradually decreases, the first release condition includes at least one of the following: A first operation is received, and the first operation satisfies an operation goal; The time length during which the speed of the action execution of the virtual object is maintained at the speed threshold reaches a first time length.
4. The method according to claim 3, characterized in that In case the first operation is received, the method further includes: Acquire first operation information of the first operation, where the first operation information is used to indicate an execution status of the first operation; The operation target for releasing the control of the motion execution speed of the virtual object next time is modified based on the first operation information.
5. The method according to claim 3, characterized in that: In case the first operation is received, the method further includes: Acquire second operation information of the first operation, where the second operation information is used to indicate an execution status of the first operation; Based on the second operation information, the duration for the next time the speed of the action of controlling the virtual object gradually changes to the speed threshold is modified.
6. The method according to any one of claims 2 to 5, characterized in that: In a case where the execution speed of the action of controlling the virtual object gradually decreases in response to the control effect taking effect on the virtual object, the speed threshold is 0.
7. The method according to claim 2, characterized in that In response to the control effect taking effect on the virtual object, when the execution speed of the action of controlling the virtual object gradually increases, the first release condition includes at least one of the following: The first attribute value of the virtual object is reduced to a first value; The reduction value of the second attribute value of the virtual object reaches a second value; The time length during which the speed of the action execution of the virtual object maintains the speed threshold reaches a second time length.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Display prompt information of the first release condition.
9. The method according to any one of claims 1 to 8, characterized in that: Before the control effect takes effect on the virtual object and the speed of the action execution of the virtual object is gradually changed in response to the control effect, the method further includes: In response to the virtual object entering a specified range around the first virtual prop, determining that the control effect is effective on the virtual object; In the case where the control effect continues to be effective on the virtual object, before the action execution speed of the virtual object is controlled again to gradually change, the method further includes: In response to the virtual object remaining within a specified range around the first virtual prop, it is determined that the control effect continues to be effective on the virtual object.
10. The method according to claim 9, characterized in that The method further comprises: In the process of controlling the action execution speed of the virtual object to gradually change, in response to the virtual object moving out of a specified range around the first virtual prop, the control of the action execution speed of the virtual object is stopped.
11. The method according to any one of claims 1 to 8, characterized in that: Before the control effect takes effect on the virtual object and the speed of the action execution of the virtual object is gradually changed in response to the control effect, the method further includes: In response to the virtual object being applied with a first state, determining that the control effect is effective on the virtual object; In the case where the control effect continues to be effective on the virtual object, before the action execution speed of the virtual object is controlled again to gradually change, the method further includes: In response to the first state not being removed, determining that the control effect continues to be effective on the virtual object.
12. The method according to claim 11, characterized in that The method further comprises: In the process of gradually changing the speed of executing the action of the virtual object, in response to the first state being removed, the control of the speed of executing the action of the virtual object is stopped.
13. The method according to any one of claims 1 to 12, characterized in that: The method further comprises: When the action execution speed of the virtual object changes to a speed threshold and the virtual object satisfies a second release condition, the control effect is removed from the virtual scene, or the remaining number of times the control effect is effective is reduced, or the remaining effective time of the control effect is reduced.
14. The method according to any one of claims 1 to 13, characterized in that: The step of gradually changing the speed of executing the action of controlling the virtual object comprises: Obtaining a control parameter corresponding to the number of times the control effect has been controlled; The speed of executing the action of the virtual object is controlled to change gradually based on the control parameter.
15. The method according to claim 14, characterized in that The control parameters include at least one of the following parameters: The time duration for the action execution speed to change to the speed threshold; the rate of change of the speed at which the action is performed; The speed threshold.
16. The method according to claim 15, characterized in that The control parameters also include: parameters corresponding to the first release condition.
17. The method according to any one of claims 1 to 16, characterized in that: In the case where the control effect continues to be effective on the virtual object, the execution speed of the action of controlling the virtual object again gradually changes, including: In the case where the control effect continues to be effective on the virtual object, after the third time period is counted starting from the release moment, the execution speed of the action of controlling the virtual object again gradually changes.
18. The method according to claim 17, characterized in that In the case where the control effect continues to be effective on the virtual object, after the third time period starts to be counted at the release moment, before the execution speed of the action of controlling the virtual object again gradually changes, the method further includes: The third duration corresponding to the number of times the control effect has been controlled is obtained.
19. The method according to any one of claims 1 to 18, characterized in that: The method further comprises: A control effect is displayed corresponding to the virtual object, and the control effect includes at least one of the following: A first special effect displayed during the process of gradually changing the speed of executing the action of the virtual object; A second special effect when the action execution speed changes to the speed threshold; The third special effect is when the control on the speed of executing the action of the virtual object is released.
20. A control device for a virtual object, characterized in that: The device comprises: A speed control module, used to control the speed of action execution of the virtual object to gradually change when the control effect takes effect on the virtual object; a control release module, configured to release control of the action execution speed of the virtual object when the action execution speed of the virtual object changes to a speed threshold and the virtual object satisfies a first release condition; The speed control module is further configured to control the action execution speed of the virtual object to gradually change again when the control effect continues to be effective on the virtual object.
21. A computer device, characterized in that: The computer device comprises: a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the control method of the virtual object according to any one of claims 1 to 19.
22. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is loaded and executed by a processor to implement the control method of a virtual object as claimed in any one of claims 1 to 19.
23. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. The processor obtains the computer instructions from the computer-readable storage medium, so that the processor loads and executes them to implement the control method of the virtual object as described in any one of claims 1 to 19.