A processing method and device for a displacement skill

By judging and executing instructions based on the displacement skill type on the client side of the instant confrontation game, and using the server to send real coordinate correction deviations, the problem of skill release inconsistency between the client and the server is solved, and the gaming experience and feedback speed is improved.

CN115645904BActive Publication Date: 2025-08-01NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211229075.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-26
Publication Date
2025-08-01
Estimated Expiration
2038-12-26

AI Technical Summary

Technical Problem

In real-time confrontation games, due to the large delay in connection between the client and the server, players send out skill release signals to the client to execute instructions for a long time, resulting in inconsistent skill releases and affecting the game experience.

Method used

On the client side, the displacement skill command is executed or stopped based on the type and type of the displacement skill, and the server sends real coordinate information to correct the position deviation to ensure that the skill release results of the client, server and other clients are consistent.

Benefits of technology

It realizes that when displacement skills conflict, the skill release results between the client and the server are consistent, improving the gaming experience and feedback speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115645904B_ABST
    Figure CN115645904B_ABST
Patent Text Reader

Abstract

The present invention provides a method and apparatus for processing displacement skills. Among them, the method includes: during the process of executing an instruction for a first displacement skill of a target virtual character, if a second displacement skill release signal for the target virtual character sent by the server is received; in response to the second displacement skill release signal, according to the type of the second displacement skill, continue to execute the instruction of the first displacement skill, or stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill. Through the method for processing displacement skills in the embodiments of the present invention, the execution mode of the displacement skill is judged according to the type of the displacement skill in the first client, achieving the effect of ensuring that the final results of skill releases of the first client, the server, and the second client are consistent when conflicts occur between displacement skills.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an invention patent application with an application date of December 26, 2018, an application number of 201811603461.2, and a title of "A Method and Device for Processing Displacement Skills". Technical Field

[0002] The present invention relates to the field of game technologies, and in particular, to a method and device for processing displacement skills. Background Art

[0003] Real-time confrontation games generally refer to games in which players control a single character to conduct confrontations, such as Multiplayer Online Battle Arena (MOBA) games, Massive Multiplayer Online Role-Playing Games (MMORPG), fighting games, etc. Real-time confrontation games allow players to play alone or in a team with other players. Players can control a single game character, use the skills preset in the game, and conduct Player VS Environment (PVE) or Player vs Player (PVP).

[0004] Real-time confrontation games usually need to be played online, and the communication of game data is carried out between the client and the server. The game process of real-time confrontation games often involves the process of skill release. For most real-time confrontation games, the skill release must be verified by the server, which is not only convenient for the server to forward the skill release data to other clients, but also convenient for the server to correct abnormal situations such as excessive player latency, out-of-order time sequence, and player cheating. However, when the connection latency between the client and the server is large, the time required from the player sending a skill release signal to the client executing the skill instruction is relatively long. Summary of the Invention

[0005] In view of the above problems, embodiments of the present invention are proposed to provide a method and device for processing displacement skills that overcome the above problems or at least partially solve the above problems.

[0006] A method for processing displacement skills, the method is applied to a first client, and the method includes:

[0007] During the process of executing an instruction for a first displacement skill of a target virtual character, if a second displacement skill release signal for the target virtual character sent by the server is received;

[0008] In response to the second displacement skill release signal, according to the type of the second displacement skill, continue to execute the instruction of the first displacement skill, or stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill;

[0009] Wherein, the method further includes:

[0010] In response to the real coordinate information sent by the server at a preset interval duration, determine the real coordinates of the target virtual character;

[0011] Obtain the current coordinates of the target virtual character;

[0012] Based on the real coordinates of the target virtual character and the current coordinates of the target virtual character, determine the deviation distance;

[0013] When the deviation distance is greater than the first preset deviation distance, and in response to the skill release signal, execute the instruction of the skill, or when the deviation distance is greater than the first preset deviation distance, and the current coordinates of the target virtual character change;

[0014] Move the target virtual character from the current coordinates to the real coordinates at a preset correction speed.

[0015] Preferably, the second displacement skill release signal is generated on the second client and sent to the server.

[0016] Preferably, before the step of receiving the second displacement skill release signal for the target virtual character sent by the server during the process of executing the instruction of the first displacement skill for the target virtual character, it further includes:

[0017] In response to the first displacement skill release signal for the target virtual character, execute the instruction of the first displacement skill;

[0018] Send the first displacement skill release signal to the server.

[0019] Preferably, the step of responding to the second displacement skill release signal, according to the type of the second displacement skill, continue to execute the instruction of the first displacement skill, or stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill includes:

[0020] In response to the second displacement skill release signal, determine whether the second displacement skill is a first type displacement skill or a second type displacement skill;

[0021] If the second displacement skill is a first type displacement skill, then continue to execute the instruction of the first displacement skill;

[0022] If the second displacement skill is a second - type displacement skill, stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill.

[0023] Preferably, the method further includes:

[0024] In response to a third displacement skill release signal, determine a third displacement distance and a third displacement target coordinate;

[0025] Obtain the current coordinate of the target virtual character;

[0026] Based on the current coordinate and the third displacement target coordinate, determine the current displacement distance;

[0027] When the current displacement distance is greater than the product of a preset displacement magnification and the third displacement distance, reject the instruction to execute the third displacement skill.

[0028] Preferably, the third displacement distance includes the straight - line distance between the third displacement starting coordinate and the displacement target coordinate, or the curved - line distance between the third displacement starting coordinate and the displacement target coordinate.

[0029] Preferably, the curved - line distance is determined according to the attribute of the third displacement skill and / or the terrain attribute between the third displacement starting coordinate and the displacement target coordinate.

[0030] Preferably, the third displacement skill release signal is a release signal for the displacement skill of the target virtual character of the first client sent by the second client.

[0031] Preferably, the method further includes:

[0032] When the deviation distance is greater than a second preset deviation distance and less than a first preset deviation distance, when the current coordinate of the target virtual character changes, determine a preset movement compensation parameter according to the direction of the deviation distance and the movement direction of the target virtual character;

[0033] Based on the preset movement compensation parameter, determine the current movement speed of the target virtual character.

[0034] A processing device for displacement skills, which obtains a graphical user interface by executing a software application on a processor of a terminal and rendering on a display of the terminal. The graphical user interface includes part of a game scene, at least part of a virtual character, at least one virtual object, and at least one skill control. The device is applied to a first client of the terminal, and the device includes:

[0035] The second displacement skill release signal receiving module is used to, during the execution of the instruction for the first displacement skill of the target virtual character, if it receives the second displacement skill release signal for the target virtual character sent by the server;

[0036] The second displacement skill release signal response module is used to respond to the second displacement skill release signal and, according to the type of the second displacement skill, continue to execute the instruction of the first displacement skill, or stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill;

[0037] The real coordinate determination module is used to respond to the real coordinate information sent by the server at a preset interval duration and determine the real coordinate of the target virtual character;

[0038] The second current coordinate acquisition module is used to acquire the current coordinate of the target virtual character;

[0039] The deviation distance determination module is used to determine the deviation distance based on the real coordinate of the target virtual character and the current coordinate of the target virtual character;

[0040] The deviation distance judgment module is used when the deviation distance is greater than the first preset deviation distance and, in response to the skill release signal, executes the instruction of the skill, or when the deviation distance is greater than the first preset deviation distance and the current coordinate of the target virtual character changes;

[0041] The target virtual character movement module is used to move the target virtual character from the current coordinate to the real coordinate at a preset correction speed.

[0042] Preferably, the second displacement skill release signal is generated on a second client and sent to the server.

[0043] Preferably, the device further includes:

[0044] The first displacement skill execution module is used to respond to the first displacement skill release signal for the target virtual character and execute the instruction of the first displacement skill;

[0045] The first displacement skill release signal sending module is used to send the first displacement skill release signal to the server.

[0046] Preferably, the second displacement skill release signal response module includes:

[0047] The second displacement skill judgment sub-module is used to respond to the second displacement skill release signal and judge whether the second displacement skill is a first type displacement skill or a second type displacement skill;

[0048] The first displacement skill execution sub-module is used to continue executing the instruction of the first displacement skill if the second displacement skill is a first type of displacement skill;

[0049] The second displacement skill execution sub-module is used to stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill if the second displacement skill is a second type of displacement skill.

[0050] Preferably, the device further includes:

[0051] The third displacement skill release signal response module is used to respond to the third displacement skill release signal and determine the third displacement distance and the third displacement target coordinate;

[0052] The first current coordinate acquisition module is used to acquire the current coordinate of the target virtual character;

[0053] The current displacement distance determination module is used to determine the current displacement distance based on the current coordinate and the third displacement target coordinate;

[0054] The third displacement skill rejection module is used to reject the instruction of the third displacement skill when the current displacement distance is greater than the product of the preset displacement magnification and the third displacement distance.

[0055] Preferably, the device further includes:

[0056] The preset movement compensation parameter determination module is used to determine the preset movement compensation parameter according to the direction of the deviation distance and the movement direction of the target virtual character when the current coordinate of the target virtual character changes when the deviation distance is greater than the second preset deviation distance and less than the first preset deviation distance;

[0057] The current movement speed determination module is used to determine the current movement speed of the target virtual character based on the preset movement compensation parameter.

[0058] Compared with the prior art, the present invention has the following advantages:

[0059] Through the displacement skill processing method of the embodiment of the present invention, the execution method of the displacement skill is judged according to the type of the displacement skill in the first client, and the effect of ensuring that the final results of the skill releases of the first client, the server, and the second client are consistent when conflicts occur between the displacement skills is achieved.

[0060] Through the displacement skill processing method of the embodiment of the present invention, the execution method of the displacement skill is judged according to the sending source of the displacement skill in the server, and the effect of ensuring that the final results of the skill releases of the first client, the server, and the second client are consistent when conflicts occur between the displacement skills is achieved. Description of the Drawings

[0061] Figure 1 is a flowchart of the steps of a method for processing a displacement skill according to an embodiment of the present invention;

[0062] Figure 2 is a flowchart of the steps of another method for processing a displacement skill according to an embodiment of the present invention;

[0063] Figure 3 is a flowchart of the steps of another method for processing a displacement skill according to an embodiment of the present invention;

[0064] Figure 4 is a schematic diagram of the processing timing of a displacement skill according to an embodiment of the present invention;

[0065] Figure 5 is a schematic diagram of the processing timing of another displacement skill according to an embodiment of the present invention;

[0066] Figure 6 is a schematic diagram of the processing timing of another displacement skill according to an embodiment of the present invention;

[0067] Figure 7 is a schematic diagram of the processing timing of another displacement skill according to an embodiment of the present invention;

[0068] Figure 8 is a schematic diagram of the processing timing of another displacement skill according to an embodiment of the present invention;

[0069] Figure 9 is a schematic diagram of the processing timing of another displacement skill according to an embodiment of the present invention;

[0070] Figure 10 is a block diagram of the structure of a device for processing a displacement skill according to an embodiment of the present invention;

[0071] Figure 11 is a block diagram of the structure of another device for processing a displacement skill according to an embodiment of the present invention;

[0072] Figure 12 is a block diagram of the structure of another device for processing a displacement skill according to an embodiment of the present invention. Detailed Embodiments

[0073] To make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0074] One of the core concepts of the embodiments of the present invention is that for the client, after the player sends a skill release signal, the client can execute the skill instruction in two ways. The first is that the client can first send the skill release signal to the server, and after the server returns the confirmation information, the client then executes the skill instruction. The second is that the client can first execute the skill instruction and at the same time send the skill release signal to the server. The first way for the client to execute the skill instruction can ensure the consistency of all clients and is not prone to errors. However, since the client needs to wait for the server to confirm whether the skill instruction can be executed, the feedback of the skill instruction execution is slow and there is a strong sense of lag. The second way for the client to execute the skill instruction can ensure timely feedback of the skill instruction execution and a smooth feel, but it is easy to cause inconsistencies between clients and it is difficult to correct afterwards.

[0075] Especially during the execution of displacement skill instructions, since the player's position will change significantly, the changes in the surrounding environment will make the player's feeling stronger. At the same time, when multiple displacement skills are released simultaneously, it is easier to have serious skill conflicts. Whether the relationship between displacement skills can be correctly handled affects issues such as whether the client can correctly display the player's position and whether the player's skills can be released at the position expected by the player.

[0076] In response to this, when the player sends a skill release signal to the virtual character they control, the present invention first executes the skill instruction without waiting for the server's confirmation. When the player sends a skill release signal to the virtual character controlled by other players, it needs to be confirmed by the server before executing the skill instruction, so as to ensure that the player has a better gaming experience as much as possible. And when skill instruction conflicts occur, determine the execution method of the skill instruction to keep the execution results of the skill instructions between the client and the server consistent.

[0077] Refer to Figure 1 , which shows the step flowchart of a method for processing displacement skills of the present invention. The method renders a graphical user interface on the display of the terminal by executing a software application on the processor of the terminal. The graphical user interface includes a partial game scene and at least one virtual character. The method is applied to the first client of the terminal.

[0078] In the embodiments of the present invention, the terminal can be various electronic devices with a screen such as a computer, a mobile phone, a tablet computer, a game console, a PDA, etc. Run a game program on the terminal and render a graphical user interface on the display of the terminal. The content displayed by the graphical user interface at least partially includes a partial or entire game scene. The specific form of the game scene can be square or other shapes (such as circular, etc.).

[0079] Specifically, the game scene includes at least one virtual character. The virtual character can be a game virtual character manipulated by a player through a terminal and presented through a graphical user interface. The presented content can include the whole of the virtual character or a part of the virtual character. For example, in a third-person perspective game, the content presented by the graphical user interface can include the whole of the virtual character. Or, in a first-person perspective game, the content presented by the graphical user interface can include a part or a portion of the virtual character. For example, in a MOBA game, the virtual character can be presented in its entirety in 3D on the graphical user interface; in an MMORPG game, the virtual character can be presented partially or in its entirety in 3D on the graphical user interface; in a horizontal scrolling game, the virtual character can be presented in its entirety in 2D on the graphical user interface.

[0080] In addition, the graphical user interface can further include at least one skill control. The skill control can be located at the lower right corner, the lower left corner of the operation interface or any position and can include controls for performing various functions. The skill control can respond to one or a combination of operations such as clicking, double-clicking, light pressing, heavy pressing, swiping, etc. issued by the player.

[0081] In an embodiment of the present invention, the target virtual character can be the virtual character in the first client.

[0082] In an embodiment of the present invention, the first client can be the client in the terminal used by the player who manipulates the target virtual character. The player can manipulate the target virtual character through the first client.

[0083] In an embodiment of the present invention, the second client can be the client in the terminal used by the player who manipulates other virtual characters except the target virtual character.

[0084] The processing method of the displacement skill includes:

[0085] Step 101, during the execution of the instruction for the first displacement skill of the target virtual character, if a second displacement skill release signal for the target virtual character sent by the server is received;

[0086] In an embodiment of the present invention, the first client can receive a first displacement skill release signal for the target virtual character. The first displacement skill release signal can be a release signal for the displacement skill of the target virtual character input by the player to the first client through the application programming interface of the terminal in a manner such as using a keyboard, a mouse, a touch screen, a gamepad, a motion remote control, etc.

[0087] In a preferred embodiment of the present invention, the second displacement skill release signal is generated on the second client and sent to the server.

[0088] In an embodiment of the present invention, the first client can receive the second displacement skill release signal for the target virtual character sent by the server. The second displacement skill release signal can be sent to the server after being generated on the second client, and then the server sends the second displacement skill release signal to the first client. The second displacement skill release signal can be the release signal of the displacement skill issued by the second client for the target virtual character.

[0089] In a preferred embodiment of the present invention, before the step of receiving the second displacement skill release signal for the target virtual character sent by the server during the process of executing the instruction of the first displacement skill for the target virtual character, it further includes:

[0090] S11, in response to the first displacement skill release signal for the target virtual character, execute the instruction of the first displacement skill;

[0091] S12, send the first displacement skill release signal to the server.

[0092] In an embodiment of the present invention, the first displacement skill release signal for the target virtual character can be the release signal of the displacement skill issued by the player controlling the first client for the target virtual character he controls. The first client can respond to the first displacement skill release signal for the target virtual character, execute the instruction of the first displacement skill, and send the first displacement skill release signal to the server. Thus, when the player of the first client releases the instruction of the displacement skill for the target virtual character he controls, the effect that the instruction of the displacement skill can be executed without waiting for the confirmation information of the execution displacement skill release signal sent by the server can be achieved.

[0093] In an embodiment of the present invention, after receiving the first displacement skill release signal, since the first client has executed the instruction of the first displacement skill, the server can no longer return the confirmation information of the first displacement skill release signal executed by the first client, but only send the first displacement skill release signal to the second client, requesting the second client to execute the instruction of the first displacement skill, so as to achieve the synchronization of skill release.

[0094] Step 102, in response to the second displacement skill release signal, continue to execute the instruction of the first displacement skill according to the type of the second displacement skill, or stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill.

[0095] In an embodiment of the present invention, the instruction of the first displacement skill may be an instruction for the first client to execute the displacement skill in response to a signal for releasing the first displacement skill of the target virtual character. Since the first displacement skill has been executed in advance before the signal for releasing the first displacement skill of the target virtual character reaches the server, during the execution of the instruction of the first displacement skill, the signal for releasing the second displacement skill sent by the server may be received, and the signal for releasing the second displacement skill may actually reach the server earlier than the signal for releasing the first displacement skill. At this time, in order to make the positions of the target virtual character in the first client, the server, and the second client as consistent as possible, it is necessary to determine whether the first client should execute the instruction of the second displacement skill according to the type of the second displacement skill.

[0096] In a preferred embodiment of the present invention, the step of responding to the signal for releasing the second displacement skill, continuing to execute the instruction of the first displacement skill according to the type of the second displacement skill, or stopping executing the instruction of the first displacement skill and responding to the signal for releasing the second displacement skill includes:

[0097] S21, in response to the signal for releasing the second displacement skill, determine whether the second displacement skill is a first type of displacement skill or a second type of displacement skill;

[0098] In an embodiment of the present invention, the second displacement skill may be a first type of displacement skill or a second type of displacement skill. The first type of displacement skill may be an instantaneous displacement skill, that is, within a very short time that is difficult for a player to feel, the virtual character moves from one coordinate to another coordinate, such as 0.01 s, 0.1 s, 0.5 s, etc., and the present invention does not limit this. The second type of displacement skill may be a long-time displacement skill, that is, within a period of time that is easy for a player to feel, the virtual character is gradually moved from one coordinate to another coordinate, such as 2 s, 5 s, 10 s, etc., and the present invention does not limit this.

[0099] S22, if the second displacement skill is a first type of displacement skill, continue to execute the instruction of the first displacement skill;

[0100] In an embodiment of the present invention, the signal for releasing the first displacement skill or the signal for releasing the second displacement skill may include the target coordinate of the displacement.

[0101] In an embodiment of the present invention, when the second displacement skill is a first type of skill, the first client may not execute the instruction of the second displacement skill and instead continue to execute the instruction of the first displacement skill, ensuring that the position of the target virtual character controlled by the first client among the first client, the server, and the second client is consistent.

[0102] Specifically, as Figure 4 shown, the second client first sends the second displacement skill release signal to the server. The first client executes the instruction of the first displacement skill and sends the first displacement skill release signal to the server. Subsequently, during the execution of the instruction of the first displacement skill by the first client, the first client receives the second displacement skill release signal sent by the server. After determining that the second displacement skill is an instantaneous skill, the first client does not execute the instruction of the second displacement skill and instead continues to execute the instruction of the first displacement skill.

[0103] For the first client, the target virtual character only executes the instruction of the first displacement skill and stays at the displacement target coordinate after executing the instruction of the first displacement skill.

[0104] For the server, the server first receives the second displacement skill release signal sent by the second client, executes the instruction of the second displacement skill, and returns the confirmation information for the second client to execute the second displacement skill release signal. Subsequently, the server receives the first displacement skill release signal sent by the first client and executes the instruction of the first displacement skill. Finally, in the server, the target virtual character stays at the displacement target coordinate of the first displacement skill.

[0105] For the second client, the second client first sends the second displacement skill release signal to the server. Subsequently, the second client receives the confirmation information sent by the server to execute the second displacement skill release signal, and the second client executes the instruction of the second displacement skill. Subsequently, the second client receives the first displacement skill release signal sent by the server, and the second client executes the instruction of the first displacement skill. Finally, in the second client, the target virtual character stays at the displacement target coordinate of the first displacement skill.

[0106] Thus, the position of the target virtual character controlled by the first client among the first client, the server, and the second client is made consistent.

[0107] S23, if the second displacement skill is a second - type displacement skill, stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill.

[0108] In the embodiment of the present invention, when the second displacement skill is a second - type displacement skill, the first client can stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill, ensuring that the position of the target virtual character controlled by the first client is consistent among the first client, the server, and the second client.

[0109] Specifically, as Figure 5 shown, the second client first sends the release signal of the second displacement skill for the target virtual character to the server. The first client responds to the release signal of the first displacement skill, executes the instruction of the first displacement skill, and sends the release signal of the first displacement skill to the server. Subsequently, the first client receives the release signal of the second displacement skill sent by the server. The first client stops executing the instruction of the first displacement skill and executes the instruction of the second displacement skill.

[0110] For the first client, the process of the target virtual character executing the instruction of the first displacement skill is interrupted and starts to execute the instruction of the second displacement skill. The final position of the target virtual character stays at the displacement destination coordinate of the second displacement skill.

[0111] For the server, the server first receives the release signal of the second displacement skill sent by the second client, executes the instruction of the second displacement skill, and returns the confirmation information of executing the release signal of the second displacement skill to the second client. Subsequently, during the process of executing the instruction of the second displacement skill, the server receives the release signal of the first displacement skill sent by the first client. Since the server is still in the process of executing the instruction of the second displacement skill, the release signal of the first displacement skill is discarded and the release signal of the first displacement skill is not sent to the second client. The server continues to execute the instruction of the second displacement skill. Finally, in the server, the target virtual character stays at the displacement destination coordinate of the second displacement skill.

[0112] For the second client, the second client first sends the release signal of the second displacement skill to the server and receives the confirmation information of executing the release signal of the second displacement skill returned by the server. The second client executes the instruction of the second displacement skill. Finally, in the second client, the target virtual character stays at the displacement destination coordinate of the second displacement skill.

[0113] In this way, the positions of the target virtual character controlled by the first client among the first client, the server, and the second client are made consistent.

[0114] Through the displacement skill processing method of the embodiments of the present invention, when the first client releases a displacement skill on the target virtual character it controls, the skill can be released without confirmation by the server, ensuring that players can obtain timely feedback when releasing skills. At the same time, when there is a conflict between displacement skills, the first client determines the execution method of the displacement skill in the first client by confirming the type of the displacement skill, achieving the effect of ensuring that the final results of skill releases in the first client, the server, and the second client are consistent.

[0115] In an embodiment of the present invention, the displacement skill processing method further includes:

[0116] S31, in response to a third displacement skill release signal, determine a third displacement distance and a third displacement target coordinate;

[0117] In the embodiments of the present invention, when there is a conflict between displacement skills, the first client can determine the execution method of the displacement skill according to the type of the second displacement skill, ensuring that the final result of the skill release in the first client is consistent with that of the server. However, in some extreme cases, such as when the connection delay between the first client and the server is severe, it may occur that the position of the target virtual character in the first client is inconsistent with the positions of the target virtual character in the second client and the server. To avoid the problem that the abnormal movement of the target virtual character caused by the different positions of the target virtual character may further lead to abnormal subsequent actions of the target virtual character, resulting in abnormal situations for the target virtual character in the first client, the server, and the second client, each time the first client responds to a displacement skill release signal, it can determine whether the displacement skill can be normally executed.

[0118] Specifically, as an example of the extreme case, if the connection delay between the first client and the server is severe, after the first client executes the instruction of the first displacement skill and sends the first displacement skill release signal to the server, the server has already received the release signal of the second skill sent by the second client, and sent the second displacement skill release signal to the first client, and has completed the execution of the instruction of the second displacement skill. At this time, when the server receives the first displacement skill release signal, it will not discard the first displacement skill release signal, but execute the instruction of the first displacement skill and send the first displacement skill release signal to the second client. However, due to severe delay, the first client only receives the second displacement skill release signal sent by the server after executing the instruction of the first displacement skill, and the first client will execute the instruction of the second displacement skill. As a result, the target virtual character in the first client stays at the displacement target coordinate of the second displacement skill, while the target virtual character in the server and the second client stays at the displacement target coordinate of the first displacement skill, resulting in inconsistent positions of the target virtual character among the first client, the server, and the second client. At this time, if the server sends the third displacement skill release signal to the first client, the actual distance that the target virtual character needs to move may be much greater than the distance that the server thinks it needs to move. If the first client executes the instruction of the third displacement skill at this time, the target virtual character may move in an obviously abnormal manner, and may further cause abnormal subsequent actions of the target virtual character, resulting in abnormal situations for the target virtual character in the first client, the server, and the second client.

[0119] In an embodiment of the present invention, the third displacement skill release signal may be a release signal of a displacement skill for the target virtual character of the first client sent by the second client. After receiving the third displacement skill release signal sent by the second client, the server executes the instruction of the third displacement skill and sends the third displacement skill release signal to the first client.

[0120] In an embodiment of the present invention, the third displacement skill release signal may include information on the third displacement distance and information on the third displacement target coordinate; alternatively, the third displacement skill release signal may include information on the third displacement starting coordinate and information on the third displacement target coordinate. In this case, the first client may determine the third displacement distance based on the third displacement starting coordinate and the third displacement target coordinate. The third displacement distance may be the straight-line distance between the third displacement starting coordinate and the displacement target coordinate, or may be the curved distance between the third displacement starting coordinate and the displacement target coordinate. The curved distance may be determined according to the attributes of the third displacement skill and / or the terrain attributes between the third displacement starting coordinate and the displacement target coordinate. The present invention places no limitation thereon.

[0121] S32. Obtain the current coordinate of the target virtual character;

[0122] In an embodiment of the present invention, to determine the distance that the target virtual character needs to move when executing the instruction of the third displacement skill on the first client, it is necessary to determine the current coordinate of the target virtual character in the first client.

[0123] S33. Determine the current displacement distance based on the current coordinate and the third displacement target coordinate;

[0124] In an embodiment of the present invention, the first client may determine the distance that the target virtual character needs to move when executing the instruction of the third displacement skill on the first client based on the current coordinate and the third displacement target coordinate.

[0125] In an embodiment of the present invention, the current displacement distance may be the straight-line distance between the current coordinate of the target virtual character and the displacement target coordinate, or may be the curved distance between the current coordinate of the target virtual character and the displacement target coordinate. The curved distance may be determined according to the attributes of the third displacement skill and / or the terrain attributes between the current coordinate of the target virtual character and the displacement target coordinate. The present invention places no limitation thereon.

[0126] S34. When the current displacement distance is greater than the product of the preset displacement magnification and the third displacement distance, reject the instruction to execute the third displacement skill.

[0127] In an embodiment of the present invention, when the current displacement distance is greater than the product of the preset displacement multiple and the third displacement distance, if the first client continues to execute the instruction of the third displacement skill, the target virtual character will have an obviously abnormal movement in the first client, and the abnormal movement of the target virtual character may further cause other abnormal situations of the target virtual character. To avoid the occurrence of an obviously abnormal movement, the first client may refuse to execute the instruction of the third displacement skill and return a request to cancel the execution of the third displacement skill to the server. After receiving the request to cancel the execution of the third displacement skill, the server cancels the instruction to execute the third displacement skill and simultaneously sends the request to cancel the execution of the third displacement skill to the second client.

[0128] In an embodiment of the present invention, the preset displacement multiple is set to 1.5, 1.7, 2, 3, 5, etc. according to the actual execution situation of the game, and the present invention does not limit this.

[0129] Through the displacement skill processing method of the embodiment of the present invention, by setting the preset displacement multiple, it is judged whether the distance that the target virtual character of the first client needs to move in response to the release signal of the third displacement skill is greater than the product of the preset displacement multiple and the third displacement distance, so as to avoid the problem that an obviously abnormal movement appears in the first client and may further cause other abnormal situations of the target virtual character.

[0130] In an embodiment of the present invention, the displacement skill processing method further includes:

[0131] S41, in response to the real coordinate information sent by the server at a preset interval duration, determine the real coordinates of the target virtual character;

[0132] In an embodiment of the present invention, in order to correct the displacement deviation that may be generated when the first client executes the instruction of the first displacement skill without the confirmation of the server, the server may send the real coordinate information of the target virtual character to the first client at each preset interval duration, so that the first client can correct the position of the target virtual character based on the real coordinate information.

[0133] In an embodiment of the present invention, the preset interval duration may be 1 frame, 3 frames, 0.3 s, 1 s, 5 s, etc., and the present invention does not limit this. When the connection between the first client and the server is good, the preset interval duration can be shortened as much as possible to ensure that the first client can correct the position of the target virtual character in time.

[0134] S42, obtain the current coordinates of the target virtual character;

[0135] In an embodiment of the present invention, to determine the deviation distance between the target virtual character and the real coordinate, the current coordinate of the target virtual character in the first client may be obtained first.

[0136] S43. Determine the deviation distance based on the real coordinate of the target virtual character and the current coordinate of the target virtual character;

[0137] In an embodiment of the present invention, the deviation distance may be the straight-line distance between the real coordinate of the target virtual character and the current coordinate of the target virtual character, or may be a curve distance determined according to the terrain attributes between the real coordinate of the target virtual character and the current coordinate of the target virtual character. The present invention does not limit this.

[0138] S44. When the deviation distance is greater than the first preset deviation distance and a skill release signal is responded to and an instruction to execute a skill is issued, or when the deviation distance is greater than the first preset deviation distance and the current coordinate of the target virtual character changes;

[0139] In an embodiment of the present invention, when the deviation distance is greater than the first preset deviation distance, there may be a large deviation between the real coordinate of the target virtual character and the current coordinate of the target virtual character. To correct this deviation, and to affect the player experience as little as possible, and to avoid the target virtual character moving positions frequently and quickly and affecting the player's normal game, an appropriate timing may be selected to move the target virtual character to the real coordinate.

[0140] In an embodiment of the present invention, when the deviation distance is greater than the first preset deviation distance and a skill release signal is responded to and an instruction to execute a skill is issued, or when the deviation distance is greater than the first preset deviation distance and the current coordinate of the target virtual character changes, the target virtual character may be moved to the real coordinate.

[0141] In an embodiment of the present invention, the skill in the instruction of responding to a skill release signal and executing a skill may be any skill released for the target virtual character. The skill may be a displacement skill, a damage skill that generates a certain displacement, a damage skill that does not generate a displacement, an auxiliary skill that generates a certain displacement, an auxiliary skill that does not generate a displacement, etc. The present invention does not limit this.

[0142] In the embodiment of the present invention, when the current coordinates of the target virtual character change, it may be when the target virtual character changes from a stationary state to a moving state, or when the target virtual character is in a moving state. The present invention does not limit this. The moving state may be a state where the target virtual character performs ordinary movement without using a displacement skill, or a state where the target virtual character performs a displacement skill. The present invention does not limit this.

[0143] S45. Move the target virtual character from the current coordinates to the real coordinates at a preset correction speed.

[0144] In the embodiment of the present invention, the first client can move the target virtual character from the current coordinates to the real coordinates at a preset correction speed. The preset correction speed can be as high as possible on the premise of avoiding the player feeling that the target virtual character has teleported instantaneously. This achieves the effect of avoiding too drastic changes in the content of the player's graphical user interface while correcting the deviation distance as soon as possible.

[0145] Specifically, the preset correction speed can be three times the ordinary movement speed of the target virtual character without using a displacement skill, which can achieve the effect of avoiding too drastic changes in the content of the player's graphical user interface while correcting the deviation distance as soon as possible.

[0146] Through the processing method of the displacement skill in the embodiment of the present invention, the real coordinate information of the target virtual character sent by the server to the first client at a preset interval duration enables the first client to correct the deviation as soon as possible when the deviation distance between the current coordinates and the real coordinates of the target virtual character is too large, and avoid too drastic changes in the content of the player's graphical user interface.

[0147] In an embodiment of the present invention, the processing method of the displacement skill further includes:

[0148] S51. When the deviation distance is greater than the second preset deviation distance and less than the first preset deviation distance, when the current coordinates of the target virtual character change, determine a preset movement compensation parameter according to the direction of the deviation distance and the moving direction of the target virtual character.

[0149] S52. Based on the preset movement compensation parameter, determine the current movement speed of the target virtual character.

[0150] In an embodiment of the present invention, when the deviation distance is greater than a second preset deviation distance and less than a first preset deviation distance, although the deviation distance is relatively small at this time, it may still have a certain impact on whether the first client can normally respond to the skill release signal and the movement of the target virtual character, etc. To avoid overly drastic changes in the content of the player's graphical user interface, when the current coordinates of the target virtual character change, the movement speed of the target virtual character can be corrected, so that the target virtual character can approach the real coordinates as much as possible.

[0151] In an embodiment of the present invention, when the current coordinates of the target virtual character change, it may be when the target virtual character changes from a stationary state to a moving state, or when the target virtual character is in a moving state. The present invention does not limit this. The moving state may be a state where the target virtual character performs ordinary movement without using displacement skills, or a state where it performs displacement skills. The present invention does not limit this.

[0152] In an embodiment of the present invention, the deviation distance can be decomposed into a vertical deviation distance perpendicular to the moving direction and a horizontal deviation distance parallel to the moving direction, and a preset movement compensation parameter can be determined according to the value of the vertical deviation distance, the value of the horizontal deviation distance, and whether the direction of the horizontal deviation distance is the same as the moving direction.

[0153] In an embodiment of the present invention, for the preset movement compensation parameter, a movement compensation parameter index can be preset according to the actual execution situation of the game, and the preset movement compensation parameter can be determined in the movement compensation parameter index according to the value of the vertical deviation distance, the value of the horizontal deviation distance, and whether the direction of the horizontal deviation distance is the same as the moving direction.

[0154] As an example of the present invention, the preset movement compensation parameter index can be as shown in the following table:

[0155]

[0156] Table 1 Preset Movement Compensation Parameter Index

[0157] In Table 1, when the direction of the horizontal deviation distance is the same as the moving direction, the preset movement compensation parameter in column A of Table 1 is selected; when the direction of the horizontal deviation distance is different from the moving direction, the preset movement compensation parameter in column B of Table 1 is selected. For example, when the value of the horizontal deviation distance is 5, the value of the vertical deviation distance is 5, and the direction of the horizontal deviation distance is different from the moving direction, the preset movement compensation parameter is -6. When the value of the horizontal deviation distance is 10, the value of the vertical movement deviation distance is 5, and the direction of the horizontal deviation distance is the same as the moving direction, the preset movement compensation parameter is 12.

[0158] In an embodiment of the present invention, after determining the preset movement compensation parameter, the current movement speed of the target virtual character can be determined based on the preset movement compensation parameter.

[0159] In an embodiment of the present invention, the current movement speed of the target virtual character can be the sum of the preset movement speed of the target virtual character and the preset movement compensation parameter. The preset movement speed can be the movement speed of the preset target virtual character in different movement states. For example, when the target virtual character is in the normal movement state without using skills, the preset movement speed is 30 distance units per second; when the target virtual character is in the movement state of executing the sprint skill, the preset movement speed is 60 distance units per second; when the target virtual character is in the movement state of executing the flash skill, the preset movement speed is 200 distance units per second.

[0160] As an example of the present invention, when the target virtual character is in the normal movement state without using displacement skills, the movement speed of the target virtual character in the normal movement state without using displacement skills is 30 distance units per second, and the preset movement compensation parameter is -6, then the current movement speed is 30 + (-6) = 24 distance units per second.

[0161] Through the processing method of the displacement skill in the embodiment of the present invention, when the deviation distance is greater than the second preset deviation distance and less than the first preset deviation distance, the current movement speed of the target virtual character is determined through the preset movement compensation parameter, and the target virtual character is gradually moved to the real coordinate, so as to achieve the consistency of the position of the target virtual character at the first client, the server, and the second client while reducing the drastic change of the content of the player's graphical user interface.

[0162] Refer to Figure 2 , which shows a flowchart of the steps of a processing method for a displacement skill of the present invention, and the method is applied to a server.

[0163] In an embodiment of the present invention, the target virtual character may be a virtual character in the third client.

[0164] In an embodiment of the present invention, the third client may be a client in the terminal used by the player who controls the target virtual character. The player may control the target virtual character through the third client.

[0165] In an embodiment of the present invention, the fourth client may be a client in the terminal used by the player who controls virtual characters other than the target virtual character.

[0166] The method includes:

[0167] Step 201, in response to a fourth displacement skill release signal for the target virtual character sent by the third client or the fourth client, execute the instruction of the fourth displacement skill;

[0168] In an embodiment of the present invention, the server may respond to a fourth displacement skill release signal for the target virtual character sent by the third client or the fourth client, and execute the instruction of the fourth displacement skill.

[0169] In an embodiment of the present invention, the fourth displacement skill may be an instantaneous displacement skill or a long-time displacement skill. The instantaneous displacement skill may be that within a very short time that is difficult for the player to perceive, the virtual character moves from one coordinate to another coordinate, such as 0.01 s, 0.1 s, 0.5 s, etc., and the present invention does not limit this. The long-time displacement skill may be a long-time displacement skill, that is, within a period of time that is easy for the player to perceive, the virtual character is gradually moved from one coordinate to another coordinate, such as 2 s, 5 s, 10 s, etc., and the present invention does not limit this.

[0170] Step 202, during the execution of the instruction of the fourth displacement skill for the target virtual character, if a fifth displacement skill release signal for the target virtual character sent by the third client or the fourth client is received;

[0171] In an embodiment of the present invention, when the fourth displacement skill is a long-duration displacement skill, since the time taken to execute the skill is longer at this time, it is more likely that the server receives the fifth displacement skill release signal during the process of executing the instruction for the fourth displacement skill targeting the target virtual character. When the fourth displacement skill is an instantaneous displacement skill, it is also possible that the server receives the fifth displacement skill release signal sent by the third client or the fourth client during the process of executing the instruction for the fourth displacement skill targeting the target virtual character. However, since the time taken to execute the instruction for the instantaneous displacement skill is shorter, the server can respond to the fifth displacement skill release signal after the instruction for the fourth displacement skill is executed. At this time, it is equivalent to receiving the fifth displacement skill release signal without executing any instruction for the displacement skill targeting the target virtual character, and the server can directly execute the instruction for the fourth displacement skill.

[0172] Step 203, in response to the fifth displacement skill release signal, continue to execute the instruction for the fourth displacement skill or stop executing the instruction for the fourth displacement skill and execute the instruction for the fifth displacement skill according to the sending source of the fourth displacement skill release signal.

[0173] In an embodiment of the present invention, when the fifth displacement skill release signal is received during the process of executing the instruction for the fourth displacement skill targeting the target virtual character, the server needs to determine how to execute the instruction for the displacement skill according to the sending source of the fourth displacement skill to ensure that the positions of the target virtual character in the third client, the server, and the fourth client can be kept consistent.

[0174] In a preferred embodiment of the present invention, the step of responding to the fifth displacement skill release signal, continuing to execute the instruction for the fourth displacement skill or stopping executing the instruction for the fourth displacement skill and executing the instruction for the fifth displacement skill according to the sending source of the fourth displacement skill release signal includes:

[0175] S61, in response to the fifth displacement skill release signal, determine the sending source of the fourth displacement skill release signal;

[0176] In an embodiment of the present invention, when the fourth client sends a release signal for the displacement skill targeting the target virtual character, since the target virtual character is not the virtual character controlled by the fourth client itself and the displacement skill that affects others cannot execute the instruction for the displacement skill targeting the target virtual character in advance before receiving the confirmation information of the execution of the displacement skill release signal returned by the server. That is to say, in the fourth client, the instruction for which displacement skill should be executed for the target virtual character follows the information sent by the server.

[0177] In an embodiment of the present invention, when the third client sends a release signal for a displacement skill of the target virtual character, since the target virtual character is a virtual character controlled by the third client itself, for a displacement skill that affects itself, it can directly execute the instruction of the displacement skill without receiving the confirmation information of the execution displacement skill release signal returned by the server, and send the release signal of the displacement skill to the server. Since the displacement skill has been executed, the server may not return the confirmation information of the execution displacement skill release signal.

[0178] In an embodiment of the present invention, when the server receives the fourth displacement skill release signal for the virtual character, if the fourth displacement skill release signal for the virtual character is sent by the third client, the third client has executed the instruction of the fourth displacement skill; if the fourth displacement skill release signal for the virtual character is sent by the fourth client, the fourth client is still waiting for the server to return a confirmation message and then executes the instruction of the fourth displacement skill. At this time, during the execution of the instruction of the fourth displacement skill by the server, a fifth displacement skill release signal for the target virtual character is received. Since different clients handle the fourth displacement skill and the fifth displacement skill differently, the server needs to determine how to execute the instruction of the displacement skill according to the sending sources of the third client and the fourth client to ensure that the positions of the target virtual character in the third client, the server, and the fourth client can be kept consistent.

[0179] S62, when the sending source of the fourth displacement skill release signal is the fourth client, continue to execute the instruction of the fourth displacement skill;

[0180] In an embodiment of the present invention, when the sending source of the fourth displacement skill release signal is the fourth client, the instruction of the fourth displacement skill can be continued to be executed to ensure that the positions of the target virtual character in the third client, the server, and the fourth client can be kept consistent.

[0181] Specifically, such as Figure 6As shown, the server first received the fourth displacement skill release signal sent by the fourth client, executed the instruction of the fourth displacement skill, and returned the confirmation information of executing the fourth displacement release signal. Subsequently, the server received the fifth displacement skill release signal sent by the third client. The server confirmed that the sending source of the fourth displacement skill release signal was the fourth client, discarded the fifth displacement skill release signal, and continued to execute the instruction of the fourth displacement skill. Thus, in the server, the position of the target virtual character remained at the displacement destination coordinate of the fourth displacement skill.

[0182] At this time, for the third client, without the confirmation of the server, the third client first executed the fifth displacement skill, which was a long-duration displacement skill, and sent the fifth displacement skill release signal to the server. Subsequently, the third client received the fourth displacement skill release signal. The third client determined that the fourth displacement skill was a long-duration displacement skill, stopped executing the instruction of the fifth displacement skill, and executed the instruction of the fourth displacement skill. Thus, in the third client, the position of the target virtual character remained at the displacement destination coordinate of the fourth displacement skill.

[0183] At this time, for the fourth client, the fourth client sent the fourth displacement skill release signal to the server and received the confirmation information of executing the fourth displacement release signal returned by the server. The fourth client executed the instruction of the fourth displacement skill. Thus, in the fourth client, the position of the target virtual character remained at the displacement destination coordinate of the fourth displacement skill.

[0184] In this way, the positions of the target virtual character in the third client, the server, and the fourth client are kept consistent.

[0185] Specifically, as Figure 7 shown, when the fifth displacement skill is an instantaneous displacement skill, for the server and the fourth client, the processing process of the displacement skill is similar to Figure 4 the above. For the third client, the third client first executed the instruction of the fifth displacement skill, sent the fifth displacement skill release signal to the server, and the target virtual character reached the displacement destination coordinate of the fifth displacement skill. Subsequently, the third client received the fourth displacement skill release signal, and the third client executed the instruction of the fourth displacement skill, moving from the displacement destination coordinate of the fifth displacement skill to the displacement destination coordinate of the fourth displacement skill.

[0186] In this way, the positions of the target virtual character in the third client, the server, and the fourth client are kept consistent.

[0187] Specifically, if both the fourth displacement skill release signal and the fifth displacement skill release signal are sent by the fourth client, since whether the fourth client can execute the displacement skill release signal for the target virtual character requires confirmation by the server, the server discards the fifth displacement skill release signal received during the execution of the instruction for the fourth displacement skill, and the fourth client will not execute the instruction for the fifth displacement skill. Instead, the third client only receives the fourth displacement skill release signal and executes the instruction for the fourth displacement skill. In this way, the positions of the target virtual character in the third client, the server, and the fourth client can also be kept consistent.

[0188] S63. When the sending source of the fourth displacement skill release signal is the third client, continue to execute the instruction for the fourth displacement skill or execute the instruction for the fifth displacement skill according to the sending source of the fifth displacement skill release signal.

[0189] In an embodiment of the present invention, when the sending source of the fourth displacement skill release signal is the third client, it is possible to continue to determine whether to continue to execute the instruction for the fourth displacement skill or execute the instruction for the fifth displacement skill according to the sending source of the fifth displacement skill, so as to ensure that the positions of the target virtual character in the third client, the server, and the fourth client can be kept consistent.

[0190] In a preferred embodiment of the present invention, the step of, when the sending source of the fourth displacement skill release signal is the third client, continuing to execute the instruction for the fourth displacement skill or execute the instruction for the fifth displacement skill according to the sending source of the fifth displacement skill release signal includes:

[0191] S631. When the sending source of the fourth displacement skill release signal is the third client, determine the sending source of the fifth displacement skill;

[0192] In an embodiment of the present invention, when the server receives that the sending source of the fourth displacement skill release signal is the third client, it indicates that the fourth displacement skill has been executed in the third client first. At this time, if the fifth displacement skill release signal is received, it is necessary to confirm whether the instruction for the fifth displacement skill can be executed according to the sending source of the fifth displacement skill.

[0193] S632. When the sending source of the fifth displacement skill release signal is the fourth client, continue to execute the instruction for the fourth displacement skill;

[0194] In an embodiment of the present invention, when the source of the fifth displacement skill release signal is the fourth client, the server may discard the fifth displacement skill release signal to ensure that the positions of the target virtual character in the third client, the server, and the fourth client are also consistent.

[0195] Specifically, as Figure 8 shown, for the server, the server first receives the fourth displacement skill release signal sent by the third client and executes the instruction of the fourth displacement skill. During the execution of the instruction of the fourth displacement skill, the server receives the fifth displacement skill release signal sent by the fourth client. After the server determines that the source of the fourth displacement skill release signal is the third client and the source of the fifth displacement skill release signal is the fourth client, the server discards the fifth displacement skill release signal, so that the target virtual character in the server stays at the displacement target coordinate of the fourth displacement skill.

[0196] For the third client, without the confirmation of the server, the third client first executes the instruction of the fourth displacement skill and sends the fourth displacement skill release signal to the server, so that the target virtual character in the third client stays at the displacement target coordinate of the fourth displacement skill.

[0197] For the fourth client, the fourth client sends the fifth displacement skill release signal to the server and does not receive the confirmation information of executing the fifth displacement skill release signal returned by the server. Subsequently, the fourth client receives the fourth displacement skill release signal sent by the server and executes the instruction of the fourth displacement skill, so that the target virtual character in the fourth client stays at the displacement target coordinate of the fourth displacement skill.

[0198] Thus, the positions of the target virtual character in the third client, the server, and the fourth client are made consistent.

[0199] S633. When the source of the fifth displacement skill release request is the third client, stop executing the instruction of the fourth displacement skill and execute the instruction of the fifth displacement skill.

[0200] In an embodiment of the present invention, when the sending sources of the fourth displacement skill release signal and the fifth displacement skill release request are both the third client, since the third client can execute the instruction of the displacement skill for the target virtual character without server confirmation, for the third client, there will be no delay in executing the instructions of the fourth displacement skill and the fifth displacement skill. That is to say, the fourth displacement skill and the fifth displacement skill are correctly executed on the third client. In this case, if the server receives the fifth displacement skill release signal during the execution of the instruction of the fourth displacement skill, it should be the case that there is a delay in the third client when sending the fourth displacement skill release signal and the fifth displacement skill release signal. Therefore, the server should not discard the fifth displacement skill release signal, but should stop executing the instruction of the fourth displacement skill and start executing the instruction of the fifth displacement skill. And both the fourth displacement skill release signal and the fifth displacement skill release signal should be sent to the fourth client.

[0201] Specifically, as Figure 9 shown, for the server, the server first receives the fourth displacement skill release signal sent by the third client, executes the instruction of the fourth displacement skill, and sends the fourth displacement skill release signal to the fourth client. During the execution of the instruction of the fourth displacement skill, the server receives the fifth displacement skill release signal sent by the third client. The server stops executing the instruction of the fourth displacement skill and starts executing the instruction of the fifth displacement skill. Finally, in the server, the target virtual character stays at the displacement target coordinate of the fifth displacement skill.

[0202] For the third client, the third client responds to the fourth displacement skill release signal, executes the instruction of the fourth displacement skill, and sends the fourth displacement skill release signal to the server. Subsequently, the third client responds to the fifth displacement skill release signal, executes the instruction of the fifth displacement skill, and sends the fifth displacement skill release signal to the server. Finally, in the third client, the target virtual character stays at the displacement target coordinate of the fifth displacement skill.

[0203] For the fourth client, the fourth client first receives the fourth displacement skill release signal sent by the server and executes the instruction of the fourth displacement skill. Subsequently, the fourth client receives the fifth displacement skill release signal sent by the server. The fourth client stops executing the instruction of the fourth displacement skill and starts to execute the instruction of the fifth displacement skill. Finally, in the fourth client, the target virtual character stays at the displacement destination coordinate of the fifth displacement skill.

[0204] Thus, the positions of the target virtual characters in the third client, the server, and the fourth client are kept consistent.

[0205] Through the displacement skill processing method of the embodiments of the present invention, when there is a conflict in the displacement skills, the server determines the execution mode of the displacement skills in the server based on the sending source of the displacement skill release signal, achieving the effect of ensuring that the final results of skill releases in the first client, the server, and the second client are consistent.

[0206] In an embodiment of the present invention, the method further includes:

[0207] Send the real coordinates of the target virtual character to the third client at a preset interval duration.

[0208] In the embodiments of the present invention, in the third client and the fourth client, the correct positions of the target virtual characters should both conform to the position of the target virtual character on the server. However, when the third client responds to the displacement skill release signal for the target virtual character, it can execute the instruction of the displacement skill in advance without the confirmation of the server. Thus, there may be a deviation in the target virtual character on the third client. To avoid a too large deviation in the position of the target virtual character on the third client from the position of the target virtual character on the server, the server can send the real coordinates of the target virtual character to the third client at a preset interval duration to help the third client correct the coordinates of the target virtual character.

[0209] Refer to Figure 3 , which shows the step flowchart of a displacement skill processing method of the present invention. The method is applied to the fifth client of the terminal.

[0210] In the embodiments of the present invention, the target virtual character can be a virtual character in the sixth client.

[0211] In the embodiments of the present invention, the sixth client can be the client in the terminal used by the player who controls the target virtual character. The player can control the target virtual character through the sixth client.

[0212] In an embodiment of the present invention, the fifth client may be a client in a terminal used by a player who controls virtual characters other than the target virtual character.

[0213] The method includes:

[0214] Step 301, in response to a sixth displacement skill release signal for the target virtual character, send the sixth displacement release signal to the server;

[0215] Step 302, receive the confirmation information returned by the server for executing the sixth displacement skill release signal;

[0216] Step 303, execute the instruction of the sixth displacement skill.

[0217] In an embodiment of the present invention, when the fifth client sends a release signal for a displacement skill of the target virtual character, since the target virtual character is not the virtual character controlled by the fifth client itself, and the displacement skill has an impact on others, before receiving the confirmation information returned by the server for executing the displacement skill release signal, the instruction for the displacement skill of the target virtual character cannot be executed first. That is to say, in the fourth client, for the instruction of what displacement skill should be executed for the target virtual character, all follow the information sent by the server.

[0218] In an embodiment of the present invention, when the sixth client sends a release signal for a displacement skill of the target virtual character, since the target virtual character is the virtual character controlled by the sixth client itself, and the displacement skill has an impact on itself, the instruction for the displacement skill can be directly executed without receiving the confirmation information returned by the server for executing the displacement skill release signal, and the release signal for the displacement skill is sent to the server. Since the displacement skill has been executed, the server may not return the confirmation information for executing the displacement skill release signal.

[0219] Through the processing method of the displacement skill in the embodiment of the present invention, for the sixth displacement skill release signal for the target virtual character, it is necessary to receive the confirmation information returned by the server for executing the sixth displacement skill release signal, and then execute the instruction of the sixth displacement skill, avoiding the problem that the instruction for the displacement skill executed for the target virtual character in the fifth client may cause an abnormal action or other bad experiences for the player who controls the target virtual character.

[0220] Refer to Figure 10, which shows a structural block diagram of a processing device for a displacement skill of the present invention. A graphical user interface is obtained by executing a software application on a processor of a terminal and rendering it on a display of the terminal. The graphical user interface includes a part of a game scene, at least part of a virtual character, at least one virtual object, and at least one skill control. The device is applied to a first client of the terminal, and the device includes:

[0221] A second displacement skill release signal receiving module 1001, configured to, during the process of executing an instruction for a first displacement skill of a target virtual character, if a second displacement skill release signal for the target virtual character sent by a server is received;

[0222] A second displacement skill release signal response module 1002, configured to respond to the second displacement skill release signal, and continue to execute the instruction of the first displacement skill according to the type of the second displacement skill, or stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill.

[0223] In an embodiment of the present invention, the second displacement skill release signal is generated on a second client and sent to the server.

[0224] In an embodiment of the present invention, the device further includes:

[0225] A first displacement skill execution module, configured to respond to a first displacement skill release signal for the target virtual character and execute the instruction of the first displacement skill;

[0226] A first displacement skill release signal sending module, configured to send the first displacement skill release signal to the server.

[0227] In an embodiment of the present invention, the second displacement skill release signal response module includes:

[0228] A second displacement skill judgment sub-module, configured to respond to the second displacement skill release signal and judge whether the second displacement skill is a first type of displacement skill or a second type of displacement skill;

[0229] A first displacement skill execution sub-module, configured to, if the second displacement skill is a first type of displacement skill, continue to execute the instruction of the first displacement skill;

[0230] A second displacement skill execution sub-module, configured to, if the second displacement skill is a second type of displacement skill, stop executing the instruction of the first displacement skill and execute the instruction of the second displacement skill.

[0231] In an embodiment of the present invention, the device further includes:

[0232] The third displacement skill release signal response module is used to respond to the third displacement skill release signal and determine the third displacement distance and the third displacement target coordinate;

[0233] The first current coordinate acquisition module is used to acquire the current coordinate of the target virtual character;

[0234] The current displacement distance determination module is used to determine the current displacement distance based on the current coordinate and the third displacement target coordinate;

[0235] The third displacement skill rejection module is used to reject the instruction to execute the third displacement skill when the current displacement distance is greater than the product of the preset displacement magnification and the third displacement distance.

[0236] In an embodiment of the present invention, the device further includes:

[0237] The real coordinate determination module is used to respond to the real coordinate information sent by the server at a preset interval and determine the real coordinate of the target virtual character;

[0238] The second current coordinate acquisition module is used to acquire the current coordinate of the target virtual character;

[0239] The deviation distance determination module is used to determine the deviation distance based on the real coordinate and the current coordinate of the target virtual character;

[0240] The deviation distance judgment module is used when the deviation distance is greater than the first preset deviation distance and responds to the skill release signal to execute the skill instruction, or when the deviation distance is greater than the first preset deviation distance and the current coordinate of the target virtual character changes;

[0241] The target virtual character movement module is used to move the target virtual character from the current coordinate to the real coordinate at a preset correction speed.

[0242] In an embodiment of the present invention, the device further includes:

[0243] The preset movement compensation parameter determination module is used to determine the preset movement compensation parameter according to the direction of the deviation distance and the movement direction of the target virtual character when the deviation distance is greater than the second preset deviation distance and less than the first preset deviation distance and the current coordinate of the target virtual character changes;

[0244] The current movement speed determination module is used to determine the current movement speed of the target virtual character based on the preset movement compensation parameter.

[0245] Refer to Figure 11, showing a structural block diagram of a processing device for a displacement skill of the present invention, the device is applied to a server, and the device includes:

[0246] The fourth displacement skill execution module 1101 is configured to respond to a fourth displacement skill release signal sent by a third client or a fourth client for a target virtual character, and execute an instruction of the fourth displacement skill;

[0247] The fifth displacement skill release signal receiving module 1102 is configured to, during the process of executing an instruction of the fourth displacement skill for a target virtual character, if a fifth displacement skill release signal sent by a third client or a fourth client for the target virtual character is received;

[0248] The fifth displacement skill release signal response module 1103 is configured to respond to the fifth displacement skill release signal, and continue to execute the instruction of the fourth displacement skill or stop executing the instruction of the fourth displacement skill and execute the instruction of the fifth displacement skill according to the sending source of the fourth displacement skill release signal.

[0249] In an embodiment of the present invention, the fifth displacement skill release signal response module includes:

[0250] The fourth displacement skill release signal sending source determining sub-module is configured to respond to the fifth displacement skill release signal and determine the sending source of the fourth displacement skill release signal;

[0251] The fourth displacement skill execution sub-module is configured to continue to execute the instruction of the fourth displacement skill when the sending source of the fourth displacement skill release signal is the fourth client;

[0252] The fifth displacement skill release signal sending source determining sub-module is configured to, when the sending source of the fourth displacement skill release signal is the third client, continue to execute the instruction of the fourth displacement skill or execute the instruction of the fifth displacement skill according to the sending source of the fifth displacement skill release signal.

[0253] In an embodiment of the present invention, the fifth displacement skill release signal sending source determining sub-module includes:

[0254] The fifth displacement skill sending source determining unit is configured to determine the sending source of the fifth displacement skill when the sending source of the fourth displacement skill release signal is the third client;

[0255] The fourth displacement skill execution unit is configured to continue to execute the instruction of the fourth displacement skill when the sending source of the fifth displacement skill release signal is the fourth client;

[0256] A fifth displacement skill execution unit, configured to stop executing the instruction of the fourth displacement skill and execute the instruction of the fifth displacement skill when the sending source of the fifth displacement skill release request is the third client.

[0257] In an embodiment of the present invention, the device further includes:

[0258] A real coordinate sending module, configured to send the real coordinates of the target virtual character to the third client at a preset interval duration.

[0259] Refer to Figure 12 , which shows a structural block diagram of a processing device for a displacement skill according to the present invention. The device is applied to a fifth client of a terminal. The device includes:

[0260] A sixth displacement skill release signal response module 1201, configured to respond to a sixth displacement skill release signal for the target virtual character and send the sixth displacement release signal to the server;

[0261] A confirmation information receiving module 1202, configured to receive the confirmation information returned by the server for executing the sixth displacement skill release signal;

[0262] A sixth displacement skill execution module 1203, configured to execute the instruction of the sixth displacement skill.

[0263] For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the related parts, refer to the partial description of the method embodiment.

[0264] Each embodiment in this specification is described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the embodiments, refer to each other.

[0265] The above has introduced in detail a processing method and device for a displacement skill provided by the present invention. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A method for processing a displacement skill, characterized in that, The method is applied to a first client, and the method includes: During the execution of an instruction for a first displacement skill of a target virtual character, receiving a second displacement skill release signal for the target virtual character sent by a server, where the second displacement skill release signal is generated on a second client and sent to the server; In response to the second displacement skill release signal, continue to execute the instruction for the first displacement skill according to the type of the second displacement skill, or stop executing the instruction for the first displacement skill and execute the instruction for the second displacement skill; Wherein, the method further includes: In response to the real coordinate information sent by the server at a preset interval duration, determining the real coordinate of the target virtual character; Obtaining the current coordinate of the target virtual character; Based on the real coordinate of the target virtual character and the current coordinate of the target virtual character, determining the deviation distance; When the deviation distance is greater than a first preset deviation distance and an instruction to execute a skill is responded to a skill release signal, or when the deviation distance is greater than the first preset deviation distance and the current coordinate of the target virtual character changes; Moving the target virtual character from the current coordinate to the real coordinate at a preset correction speed.

2. The processing method of the displacement skill according to claim 1, characterized in that, Before the step of receiving the second displacement skill release signal for the target virtual character sent by the server during the execution of the instruction for the first displacement skill of the target virtual character, it further includes: In response to a first displacement skill release signal for the target virtual character, executing the instruction for the first displacement skill; Sending the first displacement skill release signal to the server.

3. The processing method of the displacement skill according to claim 1, characterized in that, The step of in response to the second displacement skill release signal, continuing to execute the instruction for the first displacement skill according to the type of the second displacement skill, or stopping executing the instruction for the first displacement skill and executing the instruction for the second displacement skill includes: In response to the second displacement skill release signal, determining whether the second displacement skill is a first type displacement skill or a second type displacement skill; If the second displacement skill is a first type displacement skill, then continue to execute the instruction for the first displacement skill; If the second displacement skill is a second type displacement skill, then stop executing the instruction for the first displacement skill and execute the instruction for the second displacement skill.

4. The processing method of the displacement skill according to any one of claims 1 to 3, characterized in that It further includes: In response to a third displacement skill release signal, determining a third displacement distance and a third displacement destination coordinate; Obtaining the current coordinate of the target virtual character; Based on the current coordinate and the third displacement destination coordinate, determining the current displacement distance; When the current displacement distance is greater than the product of a preset displacement magnification and the third displacement distance, rejecting the instruction to execute the third displacement skill.

5. The method according to claim 4, wherein The third displacement distance includes the straight-line distance between the third displacement starting coordinate and the displacement destination coordinate, or the curved distance between the third displacement starting coordinate and the displacement destination coordinate.

6. The method according to claim 5, characterized in that, The curved distance is determined according to the attribute of the third displacement skill and / or the terrain attribute between the third displacement starting coordinate and the displacement destination coordinate.

7. The method according to claim 4, wherein The third displacement skill release signal is sent by the second client and is a release signal for the displacement skill of the target virtual character of the first client.

8. The processing method of the displacement skill according to claim 1, characterized in that, It further includes: When the deviation distance is greater than the second preset deviation distance and less than the first preset deviation distance, when the current coordinates of the target virtual character change, determine the preset movement compensation parameter according to the direction of the deviation distance and the movement direction of the target virtual character; Based on the preset movement compensation parameter, determine the current movement speed of the target virtual character.

9. A processing device for a displacement skill, characterized in that, The graphical user interface is obtained by executing a software application on the processor of the terminal and rendering on the display of the terminal. The graphical user interface includes a part of the game scene, at least part of the virtual characters, at least one virtual object, and at least one skill control. The device is applied to the first client of the terminal. The device includes: A second displacement skill release signal receiving module, configured to receive, during the execution of the instruction for the first displacement skill of the target virtual character, the second displacement skill release signal for the target virtual character sent by the server, where the second displacement skill release signal is generated on the second client and sent to the server; A second displacement skill release signal response module, configured to respond to the second displacement skill release signal, and continue to execute the instruction for the first displacement skill according to the type of the second displacement skill, or stop executing the instruction for the first displacement skill and execute the instruction for the second displacement skill; A real coordinate determination module, configured to respond to the real coordinate information sent by the server at a preset interval duration and determine the real coordinates of the target virtual character; A second current coordinate acquisition module, configured to acquire the current coordinates of the target virtual character; A deviation distance determination module, configured to determine the deviation distance based on the real coordinates of the target virtual character and the current coordinates of the target virtual character; A deviation distance judgment module, configured to when the deviation distance is greater than the first preset deviation distance and respond to the skill release signal to execute the skill instruction, or when the deviation distance is greater than the first preset deviation distance and the current coordinates of the target virtual character change; A target virtual character movement module, configured to move the target virtual character from the current coordinates to the real coordinates at a preset correction speed.

Citation Information

Patent Citations

  • Method and device for synchronizing client-side and server

    CN103701918A

  • Movement control method for role in game, server, and client

    CN105879391A