Method for controlling virtual objects, and the apparatus, terminal, and computer program thereof.

By allowing virtual objects to perform a second shift during the first shift's execution, the method enhances shift operation efficiency and interactive effects in MOBA games.

JP7864485B2Active Publication Date: 2026-05-25TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2021-03-15
Publication Date
2026-05-25

AI Technical Summary

Technical Problem

In MOBA games, controlling virtual objects to perform multi-stage shifts requires interval-based operation control, leading to low shift operation efficiency and reduced interactive effects.

Method used

A method and apparatus that allow a virtual object to perform a second shift operation during the execution of a first shift operation, based on a second operation signal received during the first shift, enhancing seamless continuity and efficiency.

Benefits of technology

This approach saves time between shift operations and improves the interactive effect of the game by ensuring seamless continuity between shifts, thereby increasing operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007864485000001
    Figure 0007864485000001
  • Figure 0007864485000002
    Figure 0007864485000002
  • Figure 0007864485000003
    Figure 0007864485000003
Patent Text Reader

Abstract

The present application provides a method and device for controlling a virtual object, a terminal, and a storage medium, which relate to the technical field of application development. The method includes the steps of: displaying a user interface, where the user interface includes a virtual object and a shift control; receiving a first operation signal corresponding to the shift control; controlling the virtual object to perform a first shift operation based on the first operation signal; and, in response to receiving a second operation signal corresponding to the shift control during the virtual object performing the first shift operation, controlling the virtual object to perform a second shift operation based on the second operation signal after the first shift operation is completed. The technical solution provided by the present application improves the efficiency of performing shift operations by the virtual object and further improves the interactive effects of computers.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application claims priority based on a Chinese patent application with an application number of 202010352292.0 filed on April 28, 2020, and an invention title of "Method, Apparatus, Terminal, and Storage Medium for Controlling Virtual Objects", and all its contents are incorporated herein by reference.

[0002] Embodiments of this application relate to the technical field of application development, and particularly to a method, apparatus, terminal, and storage medium for controlling virtual objects.

Background Art

[0003] In a MOBA (Multiplayer Online Battle Arena) game, there may be a need to control a virtual object to perform a shift (also called displacement), such as jumping or instantaneously moving from one position to another.

[0004] In the related art, when it is necessary to control a virtual object to execute a multi-stage shift operation, the user has to control the virtual object to execute the next-stage shift after the virtual object has executed a one-stage shift by performing an operation. Obviously, in the method in the above related art, when the user controls the virtual object to execute a multi-stage shift, it is necessary to perform operation control at intervals, so the execution efficiency of the shift operation by the virtual object becomes low, and the interactive effect of the computer becomes low.

Summary of the Invention

Problems to be Solved by the Invention

[0005] Embodiments of the present invention provide a method and apparatus for controlling virtual objects, a terminal, and a storage medium that can improve the efficiency of shift operations performed by virtual objects and further enhance the interactive effects of a computer. The present invention implements the following technical solutions. [Means for solving the problem]

[0006] According to one embodiment of the present invention, The terminal executes, A step of displaying a user interface, wherein the user interface includes a virtual object and a shift control, the shift control being for controlling the virtual object to activate a shift skill, The steps include receiving a first operation signal corresponding to the shift control, The steps of controlling the virtual object to perform a first shift operation in response to the first operation signal, The present invention provides a method for controlling a virtual object, which includes the step of controlling the virtual object to perform a second shift operation based on the second operation signal after the first shift operation has been completed, in response to the virtual object receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation.

[0007] According to another embodiment of the present invention, Applied to terminals, An interface display module for displaying a user interface, wherein the user interface includes a virtual object and a shift control, the shift control being for controlling the virtual object to activate a shift skill, and A signal receiving module for receiving a first operation signal corresponding to the shift control, The system includes an operation execution module for controlling the virtual object to perform a first shift operation based on the first operation signal, The operation execution module further provides a virtual object control device, which, in the process of the virtual object executing the first shift operation, responds to the signal receiving module receiving a second operation signal corresponding to the shift control, and controls the virtual object to execute a second shift operation based on the second operation signal after the execution of the first shift operation is completed.

[0008] In one possible embodiment, the operation execution module is In the process in which the virtual object performs the first shift operation, in response to receiving a second operation signal corresponding to the shift control, a direction determination submodule for determining the shift direction corresponding to the second operation signal, A direction cache submodule for caching the shift direction corresponding to the second operation signal, The system includes an operation execution submodule for controlling the virtual object to perform a second shift operation based on the shift direction corresponding to the second operation signal, after the first shift operation has been completed.

[0009] In one possible embodiment, the direction determination submodule determines the shift direction corresponding to the second operation signal based on the slide direction of the second operation signal, in response to the second operation signal being a slide operation signal corresponding to the shift control. The second operation signal is a click operation signal corresponding to the shift control, and upon receiving the second operation signal, in response to further receiving a target operation signal corresponding to the movement control, the shift direction corresponding to the second operation signal is determined based on the direction information of the target operation signal. The second operation signal is a click operation signal corresponding to the shift control, and when the second operation signal is received, in response to the fact that a target operation signal corresponding to the movement control has not been received, the default direction is determined to be the shift direction corresponding to the second operation signal, and the default direction is the orientation of the virtual object when the virtual object completes the execution of the first shift operation.

[0010] In one possible embodiment, the directional cache submodule further removes the shift direction corresponding to the second operation signal in response to the cache time length of the shift direction corresponding to the second operation signal reaching a set time length, or in response to the shift direction corresponding to the second operation signal being used.

[0011] In one possible embodiment, the direction determination submodule further determines the shift direction corresponding to the third operation signal in response to the signal receiving module receiving a third operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation, The aforementioned direction cache submodule further deletes the shift direction corresponding to the cached second operation signal and caches the shift direction corresponding to the third operation signal.

[0012] In one possible embodiment, the apparatus is A condition detection module for detecting whether the virtual object satisfies the conditions for performing the second shift operation after the first shift operation has been completed, wherein the conditions include at least one of the following: the shift direction corresponding to the second operation signal is a movable direction; the virtual object is in a shiftable state; and the numerical value of the virtual resources owned by the virtual object is greater than or equal to the resource threshold corresponding to the second shift operation. The system further includes an operation execution module for controlling the virtual object to perform a second shift operation based on the second operation signal after the first shift operation has been completed, in response to the virtual object satisfying the conditions and receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation.

[0013] According to yet another embodiment of the present invention, a terminal comprising a processor and memory, wherein the memory stores at least one command, at least one program, a code set or a command set, and the at least one command, the at least one program, the code set or the command set, when loaded and executed by the processor, provides a terminal that realizes the method of controlling the virtual object.

[0014] According to yet another embodiment of the present invention, a computer-readable storage medium is provided which stores at least one computer program that, when loaded and executed by a processor, realizes the method for controlling the virtual object.

[0015] According to yet another embodiment of the present invention, a computer program product or computer program is provided which includes computer instructions stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, thereby causing the computer device to perform the virtual object control method of the various preferred embodiments described above. [Effects of the Invention]

[0016] According to the technical proposal provided in the embodiments of this application, the following beneficial effects can be achieved.

[0017] The technical solution provided by the embodiment of the present application is such that in the process of a virtual object performing a first shift operation, a second shift operation to be performed after the virtual object completes the execution of the first shift operation is determined. Compared with determining the next second shift operation after a lapse of time after the execution of the first shift operation is completed, by determining the second shift operation using the time in the process of the virtual object performing the first shift operation, the interval time between the first shift operation and the second shift operation can be saved, and the seamless continuity between the first shift operation and the second shift operation can be realized, improving the execution efficiency of the shift operation by the virtual object, and further improving the interactive effect of the computer.

[0018] Note that the above general description and the following detailed description are merely exemplary and explanatory, and do not limit the present application.

Brief Description of the Drawings

[0019] Hereinafter, in order to more clearly explain the technical solution of the embodiment of the present application, the drawings necessary for the description of the embodiment will be briefly described. However, the drawings described below only relate to some embodiments of the present application, and it is obvious to those skilled in the art that other drawings can be obtained based on these drawings without creative labor. [Figure 1] It is a flowchart of a method for controlling a virtual object provided by one embodiment of the present application. [Figure 2] It is a flowchart of a method for controlling a virtual object provided by another embodiment of the present application. [Figure 3] It is a diagram showing a user interface according to an embodiment of the present application. [Figure 4] It is a diagram showing a user interface according to an embodiment of the present application. [Figure 5] It is a diagram showing a user interface according to an embodiment of the present application. [Figure 6] It is a diagram showing a user interface according to an embodiment of the present application.. [Figure 7] This figure shows a shift operation provided by one embodiment of the present invention. [Figure 8] This is a flowchart of a method for controlling a virtual object provided by another embodiment of the present invention. [Figure 9] This is a flowchart of a method for controlling a virtual object provided by another embodiment of the present invention. [Figure 10] This is a block diagram of a control device for a virtual object provided in one embodiment of the present application. [Figure 11] This is a block diagram of a terminal provided in one embodiment of the present application. [Modes for carrying out the invention]

[0020] Here, exemplary embodiments are described in detail, and these examples are shown in the drawings. In the following description, unless otherwise specified, the same reference numerals in different drawings indicate identical or similar elements. The embodiments described below in the exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of methods relating to some aspects of the present application, as described in detail in the claims.

[0021] The embodiments of this application provide a terminal, which is an electronic device having the capability to compute, process, and store data, on which a target application is executed. The terminal may be a smartphone, tablet PC, PC (Personal Computer), wearable device, etc. Optionally, the terminal is a mobile terminal device equipped with a touchscreen, which enables human-machine interaction by the user. The target application may be a game application, such as a MOBA game application. A MOBA game application is a game application in which users in two teams compete against each other. Of course, other types of game applications may also be used, such as shooting game applications, multiplayer shooting survival game applications, battle royale survival game applications, LBS (Location Based Service) game applications, but the embodiments of this application are not limited to these.

[0022] Of course, in some other examples, the target application may be an application other than a game application, such as a social application, payment application, video application, music application, shopping application, news application, etc., which provides a function to shift virtual objects, but the embodiments of the present application are not limited thereto.

[0023] In the method provided by the embodiment of the present invention, the entity that performs each step is the terminal, which may be, for example, a client on which the target application is executed.

[0024] The technical proposal provided by this application will be described below based on several examples.

[0025] Referring to Figure 1, a flowchart of a method for controlling a virtual object provided by one embodiment of the present invention is shown. This method for controlling a virtual object can be executed by a terminal and, as shown in Figure 1, may include several steps (110-140) as follows.

[0026] In step 110, the user interface is displayed.

[0027] The user interface includes virtual objects and shift controls. The user interface can be the interface in the target application. The user interface may be displayed on the display panel of the terminal on which the target application is running, or displayed on another display panel via screen projection by the terminal on which the target application is running, or displayed by projection, or displayed by technologies such as VR (Virtual Reality) or AR (Augmented Reality), but the embodiments of this application do not limit the display method of the user interface. Optionally, the user interface includes a first view layer and a second view layer. The view layers are layers for displaying the contents of the user interface. Of these, the display level of the first view layer is higher than the display level of the second view layer; that is, the first view layer is located above the second view layer. The first view layer may be for displaying operation controls for the user to perform human-computer interaction, and the second view layer may be for displaying a virtual environment screen. Because the display level of the first view layer is higher than that of the second view layer, the operation controls are displayed above the virtual environment screen, thereby ensuring that the operation controls can respond in a timely manner to user touch operations. Although the first view layer is located above the second view layer, it does not obstruct the display of the content in the second view layer, and for example, some or all of the operation controls in the first view layer can be displayed in a semi-transparent state.

[0028] Among these, the virtual object is a virtual character controlled by a user account in an application. Taking the application as a game application as an example, the virtual object is a game character controlled by a user account in the game application. The virtual object may be in human form, animal, cartoon or other form, but the embodiment of this application does not limit the form of the virtual object. The virtual object may be displayed in three-dimensional form or in two-dimensional form, but the embodiment of this application does not limit the display format of the virtual object. The shift control may be a virtual control for controlling the virtual object to perform a shift operation. Optionally, the shift control is a shift skill control, which is a control for controlling the virtual object to activate a shift skill. The virtual object may have at least one skill, such as a shift skill, attack skill, or healing skill, and the user can trigger the shift skill of the virtual object by the shift skill control to perform a shift operation corresponding to the virtual object. Optionally, the shift control may be a button or a virtual locker, but the embodiment of this application does not limit the implementation method of the shift control.

[0029] The user interface may also display a virtual environment screen, which is for displaying the virtual environment of the target application. The virtual environment is a scene that is displayed (or provided) when a client of the target application (e.g., a game application) is run on a terminal, and is a scene created for virtual objects to perform activities (e.g., game competitions), such as virtual roads, virtual buildings (e.g., towers or walls), or virtual maps. The virtual environment may be a simulated environment of the real world, a partially simulated and partially virtualized environment, or a fully virtualized environment. The virtual environment may be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment, but the forms of the virtual environment are not limited in the embodiments of this application. Optionally, if the virtual environment in which the virtual objects are located is a three-dimensional virtual environment, the virtual objects may be three-dimensional models constructed based on three-dimensional technology. The virtual objects have their own shape and volume in the three-dimensional virtual environment and occupy a portion of the space in the three-dimensional virtual environment.

[0030] In step 120, a first operation signal corresponding to shift control is received.

[0031] The client can receive a first operation signal in which the user acts on the shift control. The first operation signal may optionally be a click operation signal, a slide operation signal, or a long press operation signal, but is not limited to these in the embodiments of the present application.

[0032] In step 130, the virtual object is controlled to perform a first shift operation based on a first operation signal.

[0033] Upon receiving a first operation signal, the client can determine a first shift operation of the virtual object based on the first operation signal. In some embodiments, the first operation signal determines the shift direction and shift distance of the first shift operation, and the virtual object is controlled to perform the first shift operation according to the shift direction and shift distance of the first shift operation. In some other embodiments, the first operation signal determines the shift direction of the first shift operation, and the virtual object is controlled to perform the first shift operation according to the shift direction of the first shift operation, in which case the shift distance of the first shift operation can be a preset constant value. Optionally, the client controls the virtual object to stop the execution of the first shift operation, i.e., to complete the first shift operation, when it receives a stop signal corresponding to the first shift operation or when the operation time corresponding to the first shift operation has ended.

[0034] Optionally, movement control controls are displayed in the user interface, and movement operations performed by virtual objects under the control of these controls are called normal movement operations. The average shift speed when a virtual object performs a shift operation is faster than the movement speed when a virtual object performs a normal movement operation. Note that normal movement operations of virtual objects do not belong to the skill-based operations of virtual objects. Shift operations belong to the skill-based operations of virtual objects.

[0035] In some embodiments, the first shift operation is a constant-speed shift, and the shift speed of the first shift operation is a predetermined multiple of the normal travel speed. For example, the predetermined multiple can be 1.2 times, 1.3 times, 1.5 times, 1.8 times, 2 times, 2.5 times, 3 times, etc. The specific numerical value of the shift speed of the first shift operation, i.e., the value of the predetermined multiple, can be set by the relevant technician or user according to the actual situation, and is not limited to the embodiments of the present application.

[0036] In some other embodiments, the first shift operation is a gear shift. For example, the first shift operation may be an acceleration shift followed by a constant-speed shift, or an acceleration shift followed by a deceleration shift, or an acceleration shift followed by a constant-speed shift and then a deceleration shift. The acceleration shift may be a constant-acceleration shift, and the deceleration shift may be a constant-deceleration shift.

[0037] In step 140, in the process of the virtual object performing the first shift operation, in response to receiving a second operation signal corresponding to the shift control, the virtual object is controlled to perform the second shift operation based on the second operation signal after the first shift operation is completed.

[0038] In the process of a virtual object performing a first shift operation, the client may receive a second operation signal in which the user acts on the shift control. The second operation signal may optionally be a click operation signal, a slide operation signal, or a long press operation signal, but is not limited to these in the embodiments of the present application.

[0039] Once the first shift operation is complete, the client can control the virtual object to perform a second shift operation based on a second operation signal. The starting position of the second shift operation can be the ending position of the first shift operation.

[0040] Regarding the method for controlling a virtual object to perform a second shift operation, you can refer to the content concerning controlling a virtual object to perform a first shift operation in step 130 above, so a redundant explanation will be omitted here.

[0041] As described above, in the invention provided by the embodiment of the present invention, the virtual object determines the second shift operation to be performed after the first shift operation is completed, during the process in which the virtual object performs the first shift operation. Compared to determining the next second shift operation after a certain amount of time has passed since the completion of the first shift operation, the invention provides a solution that saves the time between the execution of the first and second shift operations by utilizing the time in which the virtual object performs the first shift operation to determine the second shift operation, thereby achieving a seamless continuity between the first and second shift operations. This improves the efficiency of shift operations performed by the virtual object and further enhances the interactive effect of the computer.

[0042] Referring to Figure 2, a flowchart of a method for controlling a virtual object provided by another embodiment of the present invention is shown. This method can be performed by a terminal and, as shown in Figure 2, in response to receiving a second operation signal corresponding to a shift control during the process in which the virtual object is performing a first shift operation (i.e., step 140 above), the step of controlling the virtual object to perform a second shift operation after the first shift operation has been completed includes the following steps (142-146).

[0043] In step 142, the shift direction corresponding to the second control signal is determined.

[0044] The client can determine the corresponding shift direction based on the second operation signal. Of these, the shift direction corresponding to the second operation signal is used to control the virtual object to perform the second shift operation.

[0045] In one example, as shown in Figure 3, in response to the second operation signal being a slide operation signal 32 corresponding to the shift control 31, the shift direction 34 corresponding to the second operation signal is determined based on the slide direction 33 of the second operation signal. That is, if only the slide operation signal 32 corresponding to the shift control 31 is received, the second operation signal is the slide operation signal 32 corresponding to the shift control 31. If the slide operation signal 32 corresponding to the shift control 31 and the target operation signal 36 corresponding to the movement control control 35 are received simultaneously, the second operation signal is still the slide operation signal 32 corresponding to the shift control 31.

[0046] In another example, as shown in Figure 4, the second operation signal is a click operation signal 41 corresponding to the shift control 31, and upon receiving the second operation signal, in response to further receiving a target operation signal 44 corresponding to the movement control control 35, the shift direction 43 corresponding to the second operation signal is determined to be the direction corresponding to the direction information 42 of the target operation signal 44, based on the direction information 42 of the target operation signal 44. The target operation signal can be a slide operation signal for the movement control control 35. Alternatively, the target operation signal may be a click operation signal for the movement control control 35, and the shift direction can be determined based on the click position of the click operation signal. For example, the shift direction can be determined based on the relative positional relationship between the click position and the center of the movement control control 35. Alternatively, for example, an option control providing several directions (e.g., 4 directions, 8 directions, 16 directions, etc.) can be displayed on the circumference of a circle with the center of the movement control control 35 as its center, and by triggering one of the target direction option controls, the direction corresponding to the target direction option control is determined as the shift direction. In this case, the direction option control may be an arrow indicating the corresponding direction, or a button displayed in the corresponding direction.

[0047] In another example, as shown in Figure 5, the second operation signal is a click operation signal 41 corresponding to the shift control 31, and in response to the fact that a target operation signal corresponding to the movement control control 35 has not been received when the second operation signal is received, the default direction is determined as the shift direction 54 corresponding to the second operation signal, and this default direction is the orientation of the virtual object 51 when the execution of the first shift operation by the virtual object 51 is completed. Optionally, during the process of the virtual object 51 executing the first shift operation, its orientation becomes the shift direction 52 corresponding to the first shift operation, and after the execution of the first shift operation is completed, unless a direction adjustment command is received from the user, its orientation remains unchanged, that is, the shift direction 54 is maintained to coincide with the shift direction 52. In some embodiments, when a virtual object performs a first shift operation, a change in its orientation occurs, and the shift direction corresponding to the second shift operation may be the orientation of the virtual object when the second operation signal is received, or it may be the orientation of the virtual object when the first shift operation is completed. As an example, as shown in Figure 6, when the shift direction corresponding to the second shift operation is the orientation of the virtual object when the first shift operation is completed, during the execution of the first shift operation, the orientation of the virtual object 61 changes from the shift direction 62 corresponding to the first shift operation to the shift direction 64, and when the second shift operation is executed, the virtual object is controlled to activate the shift skill along the shift direction 64. In some cases, the change in the orientation of the virtual object during the execution of the first shift operation may be caused by a touch operation on the movement control control 35 by the user during the first shift operation.

[0048] In step 144, the shift direction corresponding to the second operation signal is cached.

[0049] After determining the shift direction corresponding to the second operation signal, the shift direction corresponding to the second operation signal can be cached in the terminal's local memory for use in the steps described later. Optionally, the client may receive multiple operation signals based on shift control during the process of a virtual object performing a first shift operation, and the client may cache the shift direction corresponding to each operation signal in a cache queue. For example, when the client receives a new operation signal, it replaces the previously cached shift direction in the cache queue with the shift direction corresponding to the new operation signal, thereby maintaining the shift direction in the cache queue as the shift direction corresponding to the most recent operation signal. Alternatively, in one possible embodiment, the client sequentially caches the shift directions corresponding to each operation signal in the cache queue, and after the execution of the previous shift operation is complete, the shift direction at the top of the queue in the cache queue is taken as the shift direction when the client controls the virtual object to perform the next shift operation.

[0050] In some embodiments, after caching the shift direction corresponding to the second operation signal, the shift direction corresponding to the second operation signal is deleted in response to the cache time length of the shift direction corresponding to the second operation signal reaching a set time length, or in response to the shift direction corresponding to the second operation signal being used.

[0051] A pre-configured time length is set for each shift direction corresponding to the second operation signal. The cache time length is the length of time the shift direction corresponding to the second operation signal has already been cached, and the pre-configured time length is the maximum length of time that caching of the shift direction corresponding to the second operation signal is permitted. After the cache time length reaches the pre-configured time length, or after the shift direction corresponding to the second operation signal has been used, the client may delete the shift direction corresponding to the second operation signal to conserve cache resources and ensure the validity and accuracy of the cached content.

[0052] The set time length may be equal to the time length corresponding to the first shift operation, or it may be shorter than the time length corresponding to the first shift operation. If the set time length is shorter than the time length corresponding to the first shift operation, the set time length may be a predetermined percentage of the time length corresponding to the first shift operation. For example, the predetermined percentage may be 80%, 60%, 50%, 30%, etc. However, the predetermined ratio relationship between the set time length and the time length corresponding to the first shift operation can be set by the relevant engineer or user according to the actual situation, and is not limited to this in the embodiments of the present application.

[0053] In step 146, after the first shift operation is completed, the virtual object is controlled to perform a second shift operation based on the shift direction corresponding to the second operation signal.

[0054] As an example, as shown in Figure 7, the second operation signal is an operation signal generated based on the most recently received shift operation by the client when the virtual object performs the first shift operation. In time zone 71, the first operation signal is generated based on a first operation by the user. In time zone 72, the client receives the first operation signal. In time zone 73, the virtual object performs the first shift operation based on the first operation signal. Time zone 73 includes sub-time zones 74, 75, and 76. In sub-time zone 74, the second operation signal is generated based on a second operation by the user. In sub-time zone 75, the client receives the second operation signal. In sub-time zone 76, the client holds the second operation signal if it has not received an operation signal related to the virtual object's shift operation. In sub-time zone 76, the client updates the second operation signal if it has received an operation signal related to the virtual object's shift operation. After the virtual object performs the first shift operation based on the first operation signal, in time zone 77, the virtual object performs the second shift operation based on the second operation signal. With the above method, the virtual object can immediately perform a second shift operation based on a second operation signal after the first shift operation is completed. This eliminates the time interval between the time zone 73 corresponding to the first shift operation and the time zone 77 corresponding to the second shift operation, improving the operational efficiency of controlling the shifting of the virtual object.

[0055] In some embodiments, the method further includes the following steps.

[0056] 1. After caching the shift direction corresponding to the second operation signal, in the process of the virtual object performing the first shift operation, in response to receiving a third operation signal corresponding to the shift control, the shift direction corresponding to the third operation signal is determined.

[0057] 2. Delete the shift direction corresponding to the cached second operation signal, and cache the shift direction corresponding to the third operation signal.

[0058] In the process of a virtual object performing a first shift operation, if the client receives a second operation signal, and then a third operation signal corresponding to further shift control, the user indicates that they wish for the virtual object to perform a third shift operation corresponding to the third operation signal, rather than performing a second shift operation after completing the first shift operation. Therefore, the system improves the accuracy of controlling the virtual object to perform the next shift operation after the first shift operation by determining the corresponding shift direction based on the third operation signal and replacing the cached shift direction corresponding to the second operation signal with the shift direction corresponding to the third operation signal.

[0059] In the implementation method described above, a mechanism for determining the shift direction is provided. When direction information is input to either the movement control or the shift control, the shift direction of the virtual object is determined preferentially based on the direction information corresponding to the shift control, thereby resolving the issue of direction information collision. If only a click operation is performed on the shift control, the orientation of the virtual object is determined as the shift direction, simplifying user operation.

[0060] In some embodiments, the method further includes the following steps.

[0061] 1. In the process of a virtual object performing a first shift operation, upon receiving a second operation signal corresponding to shift control, the system detects whether the conditions for performing a second shift operation are met after the first shift operation is completed and before controlling the virtual object to perform a second shift operation based on the second operation signal. These conditions include at least one of the following: the shift direction corresponding to the second operation signal is a movable direction; the virtual object is in a shiftable state; and the numerical value of the virtual resources owned by the virtual object is greater than or equal to the resource threshold corresponding to the second shift operation.

[0062] 2. If the virtual object satisfies the conditions and, in the process of the virtual object performing the first shift operation, receives a second operation signal corresponding to the shift control, the virtual object is controlled to perform the second shift operation based on the second operation signal after the first shift operation is completed.

[0063] Optionally, if the virtual object does not satisfy the conditions, the virtual object will not perform the second shift operation.

[0064] Optionally, if no shift obstruction element exists in the shift direction corresponding to the second control signal, it is determined that the shift direction corresponding to the second control signal is a movable direction. A shift obstruction element is an element placed in the virtual scene that a virtual object cannot pass through. Such a shift obstruction element may include terrain that a virtual object cannot pass through (e.g., high mountains, steep slopes, ravines, cliffs, etc.), obstacles (e.g., stones, walls, trees, etc.), other virtual objects (e.g., virtual objects of the friendly team, virtual objects of the enemy team, virtual objects not controlled by the user, etc.), and barrier obstructions activated by other virtual objects to restrict the movement of a virtual object.

[0065] Being able to move a virtual object includes not being restricted from using its Shift skill. Being restricted from using a virtual object's Shift skill includes being able to use a skill that collides with the Shift skill, being restricted from shifting by another virtual object's skill (for example, being restricted to its original position or having its movement speed slowed by a skill activated by another virtual object), the virtual object's Shift skill being on cooldown, being located in a vehicle, or being in a dead state.

[0066] In some possible embodiments, a virtual object needs to consume a resource threshold amount of virtual resources (e.g., virtual currency, virtual items, etc.) to perform a shift operation. If the number of virtual resources owned by the virtual object is greater than or equal to the required resource threshold, it is determined that the virtual object may satisfy the conditions for performing a second shift operation. If the number of virtual resources owned by the virtual object is less than the required resource threshold, it is determined that the virtual object does not satisfy the conditions for performing a second shift operation.

[0067] In the implementation method described above, a condition is set for the second shift operation of the virtual object, and it is detected whether or not the virtual object satisfies the condition for executing the second shift operation. If the virtual object satisfies the condition, the virtual object is controlled to execute the second shift operation. This provides a richer range of methods for controlling the virtual object compared to a control method in which the virtual object can execute the corresponding shift operation simply by the user performing the corresponding operation.

[0068] Referring to Figure 8, a flowchart of a method for controlling a virtual object provided by another embodiment of the present invention is shown. As shown in Figure 8, the method may include the following steps (801-808).

[0069] In step 801, a second operation signal is acquired.

[0070] In step 802, it is determined whether the virtual object satisfies the condition. If YES, step 803 is executed. If NO, step 804 is executed.

[0071] In step 803, the virtual object is controlled to perform a second shift operation.

[0072] In step 804, the shift direction corresponding to the second operation signal is cached.

[0073] In step 805, in response to the completion of the first shift operation, it is determined whether a cached shift direction exists. If YES, step 806 is executed. If NO, step 805 is executed again.

[0074] In step 806, determine whether the virtual object satisfies the condition. If YES, execute step 807. If NO, return to step 805.

[0075] In step 807, the virtual object is controlled to perform a second shift operation.

[0076] In step 808, the shift direction corresponding to the cached second operation signal is cleared.

[0077] Referring to Figure 9, a flowchart of a method for controlling a virtual object provided by another embodiment of the present invention is shown. As shown in Figure 9, the method may include the following steps (901-916).

[0078] In step 901, determine whether a touch operation has been received for the shift skill control. If YES, execute step 902. If NO, terminate the step.

[0079] In step 902, it is determined whether or not a touch operation based on movement control has been received. If YES, step 903 is executed. If NO, step 905 is executed.

[0080] In step 903, directional information corresponding to the movement control is determined.

[0081] In step 904, the direction information is entered into the cache.

[0082] In step 905, it is detected whether the shift skill control has been slid. If YES, step 906 is performed. If NO, step 907 is performed.

[0083] In step 906, directional information corresponding to the shift skill control is determined, and step 904 is performed.

[0084] In step 907, the shift direction to be output is determined based on the direction information entered into the cache.

[0085] In step 908, the first shift operation is performed.

[0086] In step 909, determine whether a touch operation based on shift skill control has been received. If YES, perform step 910. If NO, terminate the step.

[0087] In step 910, it is detected whether the movement control has been slid. If YES, step 911 is performed. If NO, step 913 is performed.

[0088] In step 911, directional information corresponding to the movement control is determined.

[0089] In step 912, the direction information is entered into the cache.

[0090] In step 913, detect whether the shift skill control has been slid. If YES, perform step 914. If NO, perform step 915.

[0091] In step 914, directional information corresponding to the shift skill control is determined, and step 912 is performed.

[0092] In step 915, the output shift direction is determined based on the direction information entered into the cache.

[0093] In step 916, after the first shift operation is completed, a second shift operation is performed based on the output shift direction, and the step is terminated.

[0094] The following are embodiments of the apparatus according to the present application, which can be used to carry out embodiments of the method according to the present application. For details not described in the embodiments of the apparatus according to the present application, refer to the embodiments of the method according to the present application.

[0095] Referring to Figure 10, a block diagram of a virtual object control device provided by one embodiment of the present invention is shown. The device has the function of implementing the example of the virtual object control method described above, which may be implemented by hardware or by the hardware executing corresponding software. The device may be the terminal described above or may be installed in a terminal. The device 1000 may include an interface display module 1010, a signal receiving module 1020, and an operation execution module 1030.

[0096] The interface display module 1010 is for displaying a user interface, which includes a virtual object and a shift control, the shift control being for controlling the virtual object to activate a shift skill.

[0097] The signal receiving module 1020 is for receiving a first operation signal corresponding to the shift control.

[0098] The operation execution module 1030 is for controlling the virtual object to perform a first shift operation based on the first operation signal.

[0099] The operation execution module 1030 is for controlling the virtual object to perform a second shift operation based on the second operation signal after the first shift operation is completed, in response to the signal receiving module 1020 receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation.

[0100] In one possible embodiment, the operation execution module 1030 is In the process in which the virtual object performs the first shift operation, in response to receiving a second operation signal corresponding to the shift control, a direction determination submodule for determining the shift direction corresponding to the second operation signal, A direction cache submodule for caching the shift direction corresponding to the second operation signal, The system includes an operation execution submodule for controlling the virtual object to perform a second shift operation based on the shift direction corresponding to the second operation signal, after the first shift operation has been completed.

[0101] In one possible embodiment, the direction determination submodule determines the shift direction corresponding to the second operation signal based on the slide direction of the second operation signal, in response to the second operation signal being a slide operation signal corresponding to the shift control. The second operation signal is a click operation signal corresponding to the shift control, and upon receiving the second operation signal, in response to further receiving a target operation signal corresponding to the movement control, the shift direction corresponding to the second operation signal is determined based on the direction information of the target operation signal. The second operation signal is a click operation signal corresponding to the shift control, and when the second operation signal is received, in response to the fact that a target operation signal corresponding to the movement control has not been received, the default direction is determined to be the shift direction corresponding to the second operation signal, and the default direction is the orientation of the virtual object when the first shift operation by the virtual character is completed.

[0102] In one possible embodiment, the directional cache submodule further removes the shift direction corresponding to the second operation signal in response to the cache time length of the shift direction corresponding to the second operation signal reaching a set time length, or in response to the shift direction corresponding to the second operation signal being used.

[0103] In one possible embodiment, the direction determination submodule further determines the shift direction corresponding to the third operation signal in response to the signal receiving module 1020 receiving a third operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation. The aforementioned direction cache submodule further deletes the shift direction corresponding to the cached second operation signal and caches the shift direction corresponding to the third operation signal.

[0104] In one possible embodiment, the apparatus is A condition detection module for detecting whether the virtual object satisfies the conditions for performing the second shift operation after the first shift operation has been completed, wherein the conditions include at least one of the following: the shift direction corresponding to the second operation signal is a movable direction; the virtual object is in a shiftable state; and the numerical value of the virtual resources owned by the virtual object is greater than or equal to a resource threshold corresponding to the second shift operation. The system further includes the operation execution module 1030 for controlling the virtual object to perform the second shift operation based on the second operation signal after the first shift operation has been completed, in response to the virtual object satisfying the conditions and receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation.

[0105] As described above, in the invention provided by the embodiment of the present invention, the virtual object determines the second shift operation to be performed after the first shift operation is completed, during the process in which the virtual object performs the first shift operation. Compared to determining the next second shift operation after a certain amount of time has passed since the completion of the first shift operation, the invention provided by the embodiment of the present invention saves the time interval between the first and second shift operations by utilizing the time in which the virtual object performs the first shift operation to determine the second shift operation, thereby achieving a seamless continuity between the first and second shift operations, improving the efficiency of shift operations performed by the virtual object, and further enhancing the interactive effect of the computer.

[0106] In the above-described embodiment, the device provided was explained using only the division of each functional module as an example when realizing its functions. However, in actual applications, the above functions may be assigned to different functional modules as needed, that is, the internal configuration of the device may be divided into different functional modules to complete all or part of the functions described above. Furthermore, the device provided in the above embodiment belongs to the same concept as the embodiment of the method, and its specific implementation process can be found in the embodiment of the method, so a detailed explanation is omitted here.

[0107] Referring to Figure 11, a block diagram of the configuration of a terminal 1100 provided in one embodiment of the present application is shown. The terminal 1100 can be an electronic device such as a mobile phone, tablet PC, game host, e-book reader, multimedia playback device, wearable device, or PC. The terminal is for implementing the virtual object control method provided in the above embodiment. Specifically, The terminal 1100 generally comprises a processor 1101 and memory 1102.

[0108] The processor 1101 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 1101 can be implemented by at least one type of hardware, such as a DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1101 may include a main processor, also called a CPU (Central Processing Unit), which is for processing data in the active state, and a coprocessor, which is a low-power processor for processing data in the standby state. In some embodiments, the processor 1101 may further integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content to be displayed on the display screen. In some embodiments, the processor 1101 may further include an AI (Artificial Intelligence) processor for performing computational operations related to machine learning.

[0109] The memory 1102 may include one or more non-temporary computer-readable storage media. The memory 1102 may further include high-speed random-access memory and one or more non-volatile memory such as magnetic disk storage devices, flash memory, etc. In some embodiments, the non-temporary computer-readable storage media in the memory 1102 are for storing computer programs and are arranged to realize the method of controlling the virtual objects by being executed by one or more processors.

[0110] In some embodiments, the terminal 1100 may further include a peripheral interface 1103 and at least one peripheral device. The processor 1101, memory 1102, and peripheral interface 1103 may be connected by a bus or signal lines. Each peripheral device may be connected to the peripheral interface 1103 via a bus, signal lines, or circuit board. Specifically, the peripheral device may include at least one of an RF (radio frequency) circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 1107, a positioning assembly 1108, and a power supply 1109.

[0111] Those skilled in the art will readily understand that the terminal 1100 is not limited to the configuration shown in Figure 11, and may include more or fewer elements than those shown, combine several elements, or employ a different arrangement of elements.

[0112] In some embodiments, a computer-readable storage medium is provided which stores at least one computer program that, when loaded and executed by a processor, implements all or part of the steps of the method for controlling the virtual object.

[0113] In some embodiments, a computer program product or computer program is further provided that includes computer instructions stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, thereby causing the computer device to perform all or part of the steps of the virtual object control method provided in each of the above embodiments.

[0114] Those skilled in the art will readily conceive of other embodiments of the Application after considering the Specification and practicing the Application disclosed herein. The Application is intended to include any modifications, uses, or adaptive changes, including common or conventional means in the Art, not disclosed herein, in accordance with the general principles of the Application. The Specification and Examples are illustrative only, and the true scope and spirit of the Application are shown in the following Claims.

[0115] This application is not limited to the precise structure described above and shown in the drawings, and it should be understood that various modifications and changes may be made within the scope of this application. The scope of this application is limited only to the attached claims.

Claims

1. A method for controlling a virtual object executed by a terminal, A step of displaying a user interface, the user interface including a virtual object, a movement control and a shift control for performing movement operations on the virtual object, wherein the shift control is a separate control from the movement control and is for controlling the virtual object to activate a shift skill, and both the movement control and the shift control are capable of controlling the shift direction of the virtual object, The steps include receiving a first operation signal corresponding to the shift control, A step of controlling the virtual object to perform a first shift operation based on the first operation signal, The process includes, in which the virtual object performs the first shift operation, receiving a second operation signal corresponding to the shift control, and after the first shift operation is completed, controlling the virtual object to perform a second shift operation based on the second operation signal, A method for controlling virtual objects, characterized by the following features.

2. The step of controlling the virtual object to perform a second shift operation based on the second operation signal after the first shift operation is completed, in response to receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation, is as follows: In the process in which the virtual object performs the first shift operation, the virtual object receives a second operation signal corresponding to the shift control and determines the shift direction corresponding to the second operation signal. The steps include caching the shift direction corresponding to the second operation signal, The process includes, after the first shift operation has been completed, controlling the virtual object to perform the second shift operation based on the shift direction corresponding to the second operation signal, The method according to feature 1.

3. The method according to claim 1 or 2, wherein the speed at which the virtual object shifts due to the first shift operation or the second shift operation is faster than the speed at which the virtual object moves due to the move operation.

4. The step of determining the shift direction corresponding to the second operation signal is: In response to the fact that the second operation signal is a slide operation signal corresponding to the shift control, the steps include determining the shift direction corresponding to the second operation signal based on the slide direction of the second operation signal, The second operation signal is a click operation signal corresponding to the shift control, and upon receiving the second operation signal, in response to further receiving a target operation signal corresponding to the movement control, the step of determining the shift direction corresponding to the second operation signal based on the direction information of the target operation signal, The second operation signal is a click operation signal corresponding to the shift control, and the step of determining the default direction as the shift direction corresponding to the second operation signal in response to the fact that a target operation signal corresponding to the movement control has not been received when the second operation signal is received, wherein the default direction is the orientation of the virtual object when the virtual object has completed the execution of the first shift operation, The method according to claim 3, which references claim 2.

5. After the step of caching the shift direction corresponding to the second operation signal, In response to the cache time length of the shift direction corresponding to the second operation signal reaching a set time length, the step of deleting the shift direction corresponding to the second operation signal, or The further step includes removing the shift direction corresponding to the second operation signal in response to the use of the shift direction corresponding to the second operation signal. The method according to feature 2 or 4.

6. After the step of caching the shift direction corresponding to the second operation signal, In the process in which the virtual object performs the first shift operation, the virtual object receives a third operation signal corresponding to the shift control and determines the shift direction corresponding to the third operation signal. The further step includes deleting the shift direction corresponding to the cached second operation signal and caching the shift direction corresponding to the third operation signal, The method according to feature 2 or 4.

7. In the process in which the virtual object performs the first shift operation, in response to receiving a second operation signal corresponding to the shift control, after the first shift operation is completed, before the step of controlling the virtual object to perform the second shift operation based on the second operation signal, A step of detecting whether the virtual object satisfies the conditions for performing the second shift operation, the conditions further comprising at least one of the following: the shift direction corresponding to the second operation signal is a movable direction; the virtual object is in a shiftable state; and the numerical value of the virtual resources owned by the virtual object is greater than or equal to a resource threshold corresponding to the second shift operation. The step of controlling the virtual object to perform the second shift operation based on the second operation signal after the first shift operation has been completed, in response to receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation, is as follows: The procedure includes the step of controlling the virtual object to perform a second shift operation based on the second operation signal after the first shift operation has been completed, in response to the virtual object receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation, provided that the virtual object satisfies the conditions, and after the first shift operation has been completed, the virtual object has received a second operation signal corresponding to the shift control. The method according to any one of claims 1 to 6, characterized by...

8. Applied to terminals, An interface display module for displaying a user interface, wherein the user interface includes a virtual object, a movement control control and a shift control for performing movement operations on the virtual object, the shift control being a separate control from the movement control control and for controlling the virtual object to activate a shift skill, and both the movement control control and the shift control being capable of controlling the shift direction of the virtual object, A signal receiving module for receiving a first operation signal corresponding to the shift control, The system includes an operation execution module for controlling the virtual object to perform a first shift operation based on the first operation signal, The operation execution module, in response to the signal receiving module receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation, controls the virtual object to perform a second shift operation based on the second operation signal after the first shift operation is completed. A control device for virtual objects, characterized by the following features.

9. The aforementioned operation execution module is: In the process in which the virtual object performs the first shift operation, in response to receiving a second operation signal corresponding to the shift control, a direction determination submodule for determining the shift direction corresponding to the second operation signal is provided, A direction cache submodule for caching the shift direction corresponding to the second operation signal, After the first shift operation is completed, the system includes an operation execution submodule for controlling the virtual object to perform the second shift operation based on the shift direction corresponding to the second operation signal, The apparatus according to feature 8.

10. The apparatus according to claim 8 or 9, wherein the speed at which the virtual object shifts due to the first shift operation or the second shift operation is faster than the speed at which the virtual object moves due to the move operation.

11. The aforementioned direction determination submodule is In response to the fact that the second operation signal is a slide operation signal corresponding to the shift control, the shift direction corresponding to the second operation signal is determined based on the slide direction of the second operation signal. The second operation signal is a click operation signal corresponding to the shift control, and upon receiving the second operation signal, in response to further receiving a target operation signal corresponding to the movement control, the shift direction corresponding to the second operation signal is determined based on the direction information of the target operation signal. The second operation signal is a click operation signal corresponding to the shift control, and when the second operation signal is received, in response to the fact that a target operation signal corresponding to the movement control has not been received, the default direction is determined to be the shift direction corresponding to the second operation signal. The default direction is the orientation of the virtual object when the virtual object has completed the execution of the first shift operation. The apparatus according to claim 10, which references feature 9.

12. The directional cache submodule further deletes the shift direction corresponding to the second operation signal in response to the cache time length of the shift direction corresponding to the second operation signal reaching a set time length, or deletes the shift direction corresponding to the second operation signal in response to the shift direction corresponding to the second operation signal being used. The apparatus according to claim 9 or 11.

13. The direction determination submodule further determines the shift direction corresponding to the third operation signal in response to the signal receiving module receiving a third operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation. The aforementioned direction cache submodule further deletes the shift direction corresponding to the cached second operation signal and caches the shift direction corresponding to the third operation signal. The apparatus according to claim 9 or 11.

14. A condition detection module for detecting whether the virtual object satisfies the conditions for performing the second shift operation after the first shift operation has been completed, wherein the conditions include at least one of the following: the shift direction corresponding to the second operation signal is a movable direction; the virtual object is in a shiftable state; and the numerical value of the virtual resources owned by the virtual object is greater than or equal to a resource threshold corresponding to the second shift operation. The system further comprises: an operation execution module for controlling the virtual object to perform a second shift operation based on the second operation signal after the first shift operation is completed, in response to the virtual object receiving a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation, provided that the virtual object satisfies the above conditions, and after the first shift operation is completed, the virtual object satisfies the above conditions, and the virtual object receives a second operation signal corresponding to the shift control during the process in which the virtual object performs the first shift operation. The apparatus according to any one of claims 8 to 13, characterized by the features described herein.

15. A terminal comprising a processor and memory, The memory stores at least one command, at least one program, a code set, or a command set. The at least one command, the at least one program, the code set, or the command set is loaded and executed by the processor to perform the method according to any one of claims 1 to 7. A terminal characterized by the following features.

16. To carry out the method described in any one of claims 1 to 7, A computer program characterized by the following features.