Game character motion following method and device, storage medium, and computer equipment

By processing the character following path on the server side, the performance pressure of the following function and the problem of NPC following in the existing technology are solved, the game experience and efficiency are improved, and the following function of the NPC character is realized.

CN112107862BActive Publication Date: 2024-10-11CHENGDU PERFECT TIANZHIYOU BUSINESS CONSULTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010993884.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-21
Publication Date
2024-10-11
Estimated Expiration
2040-09-21

AI Technical Summary

Technical Problem

In existing multiplayer online role-playing games, the character following function has problems of performance pressure and lack of performance, especially when the client calculates the following path, and cannot follow NPC characters.

Method used

Receive the character following instruction on the server side, obtain the target movement path frame data of the target character, and perform interpolation processing based on the preset following frame number difference to determine the following character movement path frame data, and send it to the following character terminal to achieve the following effect and avoid client Cumbersome calculations support NPC role following.

Benefits of technology

It improves the game experience and processing efficiency, avoids client lags and frame drops, implements the function of following NPC characters, and enhances gameplay and competitiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112107862B_ABST
    Figure CN112107862B_ABST
Patent Text Reader

Abstract

The present application discloses a method and device for following the motion of a game character, a storage medium, and a computer device, the method comprising: receiving a character following instruction, wherein the character following instruction comprises a target character identifier and a following character identifier, and the target character is a player character or an NPC character; based on the target character identifier, obtaining the target moving path frame data of the target character; determining the following moving path frame data corresponding to the following character according to the preset following frame number difference corresponding to the following character and the target moving path frame data, and sending the following moving path frame data to the following character terminal corresponding to the following character identifier, so that the following character can achieve the motion following of the target character. The present application transfers the tedious process of determining the following moving path frame data to a high-performance server for processing, which greatly improves the processing efficiency and solves the problem that the prior art cannot achieve the following of NPC characters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and device for following the motion of a game character, a storage medium, and a computer device. Background Art

[0002] In traditional MMORPG games (multiplayer online role-playing game), there are a large number of multiplayer collaborative gameplays (such as multiplayer dungeons, multiplayer tasks, large-scale game battlefields, etc.). These gameplays have one thing in common: multiple people are required to go to a starting point at the same time to start the gameplay. In the process of going to the starting point of the gameplay, it is often necessary to go through a long journey. During this journey, it is usually very boring and tedious. The boring process will greatly reduce the player's gaming experience. However, this kind of journey experience is not uncommon in the game, so how to improve the player's gaming experience when entering each gameplay becomes very important.

[0003] With the rapid development of social needs and personal identity needs in games, most existing games have adopted the follow function to enhance the player experience. In recent times, the follow gameplay in games has shown explosive growth. The current more common solution for mobile follow gameplay is: when the second character needs to follow the first character, the first character client will determine the follow path of the second character based on the movement path of the first character, and the first character client will send the follow path to the server, which will then be forwarded to the second character client by the server. The second character client controls the movement of the second character according to the received follow path to show the second character's follow effect on the first character. The above solution has two defects: first, the follow path is calculated by the first character client, and the client has performance pressure, which can easily cause client freezes and performance loss; second, players cannot follow the NPC characters in the game.

[0004] In summary, the defects of the above following solutions need to be solved urgently. Summary of the invention

[0005] In view of this, the present application provides a method and apparatus for following the motion of a game character, a storage medium, and a computer device.

[0006] According to one aspect of the present application, a method for following the motion of a game character is provided, which is applied to a server and includes:

[0007] Receiving a character following instruction, wherein the character following instruction includes a target character identifier and a following character identifier, and the target character is a player character or an NPC character;

[0008] Based on the target character identifier, obtaining target movement path frame data of the target character;

[0009] According to the preset following frame number difference corresponding to the following character and the target moving path frame data, the following moving path frame data corresponding to the following character is determined, wherein the following moving path frame data includes a data frame determined by interpolation processing based on the position corresponding to the target moving path frame data, and the following moving path frame data is sent to the following character terminal corresponding to the following character identifier, so that the following character can follow the movement of the target character.

[0010] Specifically, each target data frame included in the target movement path frame data corresponds to a target frame time and a target frame position; and determining the follow-up movement path frame data corresponding to the follow-up character specifically includes:

[0011] Based on the preset follow-up frame number difference and the target data frame, a synchronous follow-up data frame corresponding to the target data frame in the follow-up movement path frame data is determined, wherein the follow-up frame time corresponding to the synchronous follow-up data frame is the same as the target frame time corresponding to the target data frame, and the follow-up frame position corresponding to the synchronous follow-up data frame is determined based on the position of the target follow-up frame corresponding to the corresponding target data frame, and the target follow-up frame is a data frame that differs from the target data frame in the forward direction by the preset follow-up frame number difference.

[0012] Specifically, the determining the following movement path frame data corresponding to the following character specifically includes:

[0013] Acquire a first target frame position and a first target frame time corresponding to a first target data frame in the target movement path frame data, and acquire a first following frame position of the following character, wherein the first target data frame is the first frame in the target movement path frame data;

[0014] Performing interpolation based on the first target frame position and the first following frame position to obtain an initial following frame position that matches the preset following frame number difference;

[0015] An initial following frame time corresponding to the initial following frame position is marked to determine an initial following data frame in the following movement path frame data, wherein a first initial following frame time is the first target frame time.

[0016] Specifically, the determining the following movement path frame data corresponding to the following character specifically includes:

[0017] Acquire a first target frame position corresponding to a first target data frame and a second target frame position corresponding to a second target data frame in the target moving path frame data, wherein the second target data frame is a data frame that differs from the first target data frame by the preset follow-up frame number difference;

[0018] interpolating based on the first target frame position and the second target frame position to obtain a starting following frame position that matches the preset following frame number difference, wherein the starting following frame position includes the second target frame position;

[0019] The starting following frame time corresponding to the starting following needle position is marked according to the first target frame time and the second target frame time, and the starting following frame data in the following movement path frame data is determined.

[0020] Specifically, before interpolating based on the first target frame position and the second target frame position, the method further includes:

[0021] Acquire all starting target frame positions corresponding to the first target data frame and the second target data frame;

[0022] If the starting target frame position is repeated, interpolation is performed based on the first target frame position and the second target frame position.

[0023] Specifically, each target data frame included in the target moving path frame data also corresponds to a target frame state, and the follow-up frame state corresponding to the synchronous follow-up data frame is the target frame state corresponding to the target data frame that is before the time-synchronized target data frame and differs by the preset follow-up frame number.

[0024] Specifically, each target data frame included in the target movement path frame data further corresponds to a target frame speed; and determining the follow-up movement path frame data corresponding to the follow-up character specifically includes:

[0025] When the target frame speed corresponding to any third target data frame in the target data frames is zero, obtaining a stop target frame state corresponding to a stop target data frame whose number before the third target data frame is equal to the preset follow-up frame number difference;

[0026] When the stop target frame state includes multiple ones, acquiring a fourth target data frame whose state has changed, and determining a fourth target frame position corresponding to the fourth target data frame;

[0027] According to the third target frame time corresponding to the third target data frame, acquiring the second follow-up frame position corresponding to the time-synchronized synchronous follow-up data frame;

[0028] Based on the distance between the second following frame position and the fourth target frame position, a stop following data frame corresponding to the following character is determined.

[0029] Specifically, the determining the stop and follow data frame corresponding to the follow role specifically includes:

[0030] If the distance between the second following frame position and the fourth target frame position is less than or equal to the preset stop-follow distance, the fourth target frame position is used as the first stop position of the following character, and the stop-follow data frame is determined according to the second following frame position and the first stop position.

[0031] Specifically, the determining the stop and follow data frame corresponding to the follow role specifically includes:

[0032] If the distance between the second follow frame position and the fourth target frame position is greater than the preset stop-follow distance, the second stop position of the follow character is determined based on the third target frame position corresponding to the third target data frame, and the stop-follow data frame is determined according to the second follow frame position and the second stop position.

[0033] Specifically, the receiving the character following instruction includes:

[0034] receiving the character following instruction sent by the target character terminal; and / or

[0035] Receive the role following instruction sent by the following role terminal.

[0036] Specifically, if the following character includes multiple characters, before determining the following movement path frame data corresponding to the following character, the method further includes:

[0037] Determine the following order of each of the following characters respectively, and determine the preset following frame number difference corresponding to each of the following characters respectively according to the following order;

[0038] The step of sending the following movement path frame data to the following character terminal corresponding to the following character identifier specifically includes:

[0039] The following movement path frame data is sent to the corresponding following character terminals.

[0040] According to another aspect of the present application, a motion following device for a game character is provided, which is applied to a server and includes:

[0041] A follow-up instruction receiving module, used for receiving a character follow-up instruction, wherein the character follow-up instruction includes a target character identifier and at least one follow-up character identifier, and the target character is a player character or an NPC character;

[0042] A target data frame acquisition module, used for acquiring target moving path frame data of the target character based on the target character identifier;

[0043] A following data frame determination module is used to determine the following movement path frame data corresponding to the following character based on the preset following frame number difference corresponding to the following character and the target movement path frame data, wherein the following movement path frame data includes a data frame determined by interpolation processing based on the position corresponding to the target movement path frame data, and the following movement path frame data is sent to the following character terminal corresponding to the following character identifier, so that the following character can follow the movement of the target character.

[0044] Specifically, each target data frame included in the target moving path frame data corresponds to a target frame time and a target frame position; the following data frame determination module specifically includes:

[0045] A synchronous following data frame determination unit is used to determine the synchronous following data frame corresponding to the target data frame in the following moving path frame data based on the preset following frame number difference and the target data frame, wherein the following frame time corresponding to the synchronous following data frame is the same as the target frame time corresponding to the target data frame, the following frame position corresponding to the synchronous following data frame is determined based on the position of the target following frame corresponding to the corresponding target data frame, and the target following frame is a data frame that differs from the target data frame in the forward direction by the preset following frame number difference.

[0046] Specifically, the following data frame determination module specifically includes:

[0047] an initial frame time acquisition unit, configured to acquire a first target frame position and a first target frame time corresponding to a first target data frame in the target movement path frame data, and to acquire a first following frame position of the following character, wherein the first target data frame is the first frame in the target movement path frame data;

[0048] an initial frame position determining unit, configured to interpolate based on the first target frame position and the first following frame position to obtain an initial following frame position matching the preset following frame number difference;

[0049] The initial following frame determining unit is used to mark the initial following frame time corresponding to the initial following frame position, and determine the initial following data frame in the following movement path frame data, wherein the first initial following frame time is the first target frame time.

[0050] Specifically, the following data frame determination module specifically includes:

[0051] A first starting frame data acquisition unit is used to acquire a first target frame position corresponding to a first target data frame and a second target frame position corresponding to a second target data frame in the target moving path frame data, wherein the second target data frame is a data frame that differs from the first target data frame by the preset follow-up frame number difference;

[0052] a starting frame position determining unit, configured to interpolate based on the first target frame position and the second target frame position to obtain a starting following frame position that matches the preset following frame number difference, wherein the starting following frame position includes the second target frame position;

[0053] The starting frame data determining unit is used to mark the starting following frame time corresponding to the starting following needle position according to the first target frame time and the second target frame time, and determine the starting following frame data in the following movement path frame data.

[0054] Specifically, the following data frame determination module also includes:

[0055] a second starting frame data acquisition unit, configured to acquire all starting target frame positions corresponding to the first target data frame and the second target data frame before interpolation is performed based on the first target frame position and the second target frame position;

[0056] The starting judgment unit is used for interpolating based on the first target frame position and the second target frame position if the starting target frame position is repeated.

[0057] Specifically, each target data frame included in the target moving path frame data also corresponds to a target frame state, and the follow-up frame state corresponding to the synchronous follow-up data frame is the target frame state corresponding to the target data frame that is before the time-synchronized target data frame and differs by the preset follow-up frame number.

[0058] Specifically, each target data frame included in the target moving path frame data further corresponds to a target frame speed; the following data frame determination module specifically includes:

[0059] a stop frame state acquisition unit, configured to acquire a stop target frame state corresponding to a stop target data frame having a number equal to the preset follow-up frame number difference before the third target data frame when a target frame speed corresponding to any third target data frame in the target data frame is zero;

[0060] A state switching frame acquisition unit, configured to acquire a fourth target data frame whose state has changed when the stop target frame state includes multiple states, and determine a fourth target frame position corresponding to the fourth target data frame;

[0061] a stop frame position acquisition unit, configured to acquire a second following frame position corresponding to a time-synchronized synchronous following data frame according to a third target frame time corresponding to the third target data frame;

[0062] The stop-follow frame determining unit is used to determine the stop-follow data frame corresponding to the following character based on the distance between the second following frame position and the fourth target frame position.

[0063] Specifically, the stop-follow frame determination unit includes:

[0064] The first stop-follow frame determination subunit is used to use the fourth target frame position as the first stop position of the follow character if the distance between the second follow frame position and the fourth target frame position is less than or equal to a preset stop-follow distance, and determine the stop-follow data frame according to the second follow frame position and the first stop position.

[0065] Specifically, the stop-follow frame determination unit includes:

[0066] The second stop-follow frame determination subunit is used to determine the second stop position of the following character based on the third target frame position corresponding to the third target data frame if the distance between the second follow frame position and the fourth target frame position is greater than the preset stop-follow distance, and determine the stop-follow data frame according to the second follow frame position and the second stop position.

[0067] Specifically, the following instruction receiving module specifically includes:

[0068] A first follow instruction receiving unit is used to receive the character follow instruction sent by the target character terminal; and / or

[0069] The second following instruction receiving unit is used to receive the character following instruction sent by the following character terminal.

[0070] Specifically, the following data frame determination module also includes:

[0071] A following frame number difference determining unit, for determining a following order of each following character respectively before determining the following movement path frame data corresponding to the following character if there are multiple following characters, and determining a preset following frame number difference corresponding to each following character respectively according to the following order;

[0072] The data sending unit is used to send the following movement path frame data to the respectively corresponding following character terminals.

[0073] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the motion following method of the game character described above is implemented.

[0074] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned game character motion following method when executing the program.

[0075] By means of the above technical scheme, the present application provides a method and device for following the motion of a game character, a storage medium, and a computer device. The server obtains the target moving path frame data corresponding to the target character according to the character following instruction, thereby determining the following moving path frame data corresponding to the following character based on the target moving path frame data according to the preset following frame number difference, and sending the following moving path frame data to the following character terminal, so that the following character terminal controls the following character to move frame by frame according to the following moving path frame data to follow the target character. Compared with the prior art, the embodiment of the present application entrusts the cumbersome process of determining the following moving path frame data to a high-performance server for processing, greatly improving the processing efficiency, avoiding the problem of freezing, frame loss, performance loss, and even the problem of losing the following during the following process due to excessive performance pressure on the client, and on the other hand, solving the problem that the prior art cannot realize the following of NPC characters in the game scene, providing technical support for increasing the gameplay in the game development stage, and also providing a guarantee for players to experience more gameplay in the game experience stage, improving the player's game experience and the competitiveness of game products.

[0076] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0078] Figure 1 A schematic diagram showing a flow chart of a method for following the motion of a game character provided in an embodiment of the present application is shown;

[0079] Figure 2 A schematic flow chart of another method for following the motion of a game character provided in an embodiment of the present application is shown;

[0080] Figure 3A schematic flow chart of another method for following the motion of a game character provided in an embodiment of the present application is shown;

[0081] Figure 4 A schematic flow chart of another method for following the motion of a game character provided in an embodiment of the present application is shown;

[0082] Figure 5 A schematic flow chart of another method for following the motion of a game character provided in an embodiment of the present application is shown;

[0083] Figure 6 A schematic diagram of the structure of a motion following device for a game character provided in an embodiment of the present application is shown;

[0084] Figure 7 A schematic structural diagram of another game character motion following device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0085] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0086] In this embodiment, a method for following the motion of a game character is provided, which is applied to a server, such as Figure 1 As shown, the method includes:

[0087] Step 101, receiving a role following instruction, wherein the role following instruction includes a target role identifier and at least one following role identifier, and the target role is a player character or an NPC character;

[0088] Step 102, based on the target character identifier, obtaining target moving path frame data of the target character;

[0089] Step 103, determining the following movement path frame data corresponding to the following character according to the preset following frame number difference corresponding to the following character and the target movement path frame data, wherein the following movement path frame data includes data frames determined by interpolation processing based on the target movement path frame data, and sending the following movement path frame data to the following character terminal corresponding to the following character identifier, so that the following character can follow the movement of the target character.

[0090] The embodiment of the present application is applied to a game server. After receiving a role following instruction from a player client, the server parses the role following instruction to obtain a target role identifier and a following role identifier, thereby determining the role indicated by the instruction, namely the target role, and the following role. Among them, the following role can be one or more, and the role following instruction can come from the target role client. For example, in a multiplayer collaborative game, players form a team in the game scene, and the team leader initiates a team following instruction to command one or more players in the team to follow him. The role following instruction can also come from the following role client, for example, player A clicks on the avatar of player B in the game scene to initiate following, and player A follows player B to move in the game scene. In addition, the role following instruction can be a player following another player, such as player A following player B, or a player following an NPC in the game scene, such as player A following the NPC character "Chief of the Small Fishing Village" in the game scene.

[0091] After receiving the character following instruction, the server determines the target character client according to the character identifier corresponding to the target character, and then obtains the target movement path frame data corresponding to the target character from the target character client. The target movement path frame data is the movement path of the target character at the beginning and after the creation of the character following instruction, recorded in frames. For example, the frame rate in the game scene is 10Hz, that is, 1 second is expressed by 10 frames. The character following instruction is created at 1 o'clock, then the data frames of the character at 1 o'clock and after 1 o'clock are obtained, that is, the data frames corresponding to 1 o'clock, 1:00:01 seconds, and 1:00:01 seconds. The data frame should at least include the target character position data and an identifier that can represent the time corresponding to the data frame. For example, the identifier of the data frame corresponding to the time can be in the form of a number. Specifically, the first frame can be used to represent the data frame of the target character at 1 o'clock, and the second frame can be used to identify the data frame of the target character at 1:00:01 seconds... It can also be represented by the actual time corresponding to the data frame or the encoded data of the actual time. In addition, in the target character client, the client can record all the movement path frame data of the target character in real time, so that the server can call the historical data of the target character at any time; it can also record the movement path frame data of the target character after the character follow instruction is created, and provide data support for other characters to follow the target character; it can also record the latest movement path frame data generated by the target character, such as recording the movement path frame data within 1 minute, and deleting earlier data.

[0092] After the server obtains the target moving path frame data corresponding to the target character, it determines the moving path frame data of the following character based on the data and the preset following frame difference, wherein the preset following frame difference refers to the number of frames between the moving path of the following character and the moving path of the target character. When there are multiple following characters, the following frame differences corresponding to the multiple following characters can be determined in sequence according to the following order of the following characters. The following frame differences can increase in sequence with the following order. For example, the preset following frame difference corresponding to the first following character is 5 frames, the preset following frame difference corresponding to the second following character is 8 frames, and so on. Assuming that the target character corresponds to a following character, and the preset following frame difference corresponding to the following character is 5 frames, in the following state, if the current position of the target character is A, then the following character will reach A after 0.5 seconds (preset following frame difference / frame rate=5 / 10=0.5). After determining the follow movement path frame data, the server sends the follow movement path frame data to the follow character client. The follow character client can control the movement of the follow character according to the received follow movement path frame data to achieve the effect that the follow character can follow the target character. The player of the follow character can follow the target character without the need for the follower player to perform any operation.

[0093] In addition, in some special following stages, the following moving path frame data of the following character can be determined by interpolation based on the position corresponding to the target moving path frame data and the position corresponding to the following character. For example, in the initial following stage of the following character, the character following instruction has been issued, but due to the preset following frame number difference, the following character has not yet started to follow the target character. The initial following data frame of the following character can be determined based on the interpolation result by interpolating the initial position of the target character corresponding to the target moving path frame data of the target character. For another example, the target character shows a moving speed that is fast and slow in several consecutive frames, such as moving 10 meters from the first frame to the second frame, 1 meter from the second frame to the third frame, and 8 meters from the third frame to the fourth frame... At this time, the following data frame position that can show a smooth moving effect can be obtained by interpolating the positions corresponding to the first frame and the last frame in these frames of data.

[0094] By applying the technical solution of this embodiment, the server obtains the target moving path frame data corresponding to the target character according to the character following instruction, thereby determining the following moving path frame data corresponding to the following character based on the target moving path frame data according to the preset following frame number difference, and sending the following moving path frame data to the following character terminal, so that the following character terminal controls the following character to move frame by frame according to the following moving path frame data to follow the target character. Compared with the prior art, the embodiment of the present application entrusts the cumbersome process of determining the following moving path frame data to a high-performance server for processing, greatly improving the processing efficiency, avoiding the problem of freezing, frame loss, performance loss, and even loss of tracking during the following process caused by excessive performance pressure on the client, and on the other hand, solving the problem that the prior art cannot realize the following of NPC characters in the game scene, providing technical support for increasing the gameplay in the game development stage, and also providing a guarantee for players to experience more gameplay in the game experience stage, improving the player's game experience and the competitiveness of game products.

[0095] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for following the motion of a game character is provided, such as Figure 2 As shown, the method includes:

[0096] In order to improve the performance of the following function, the embodiment of the present application provides multiple ways to determine the frame data of the following moving path. Multiple implementation methods can be used in different stages of target following. Specifically, step 103 may include:

[0097] Method 1: During the synchronous following phase of the following character, Figure 2 As shown, step 103 specifically includes:

[0098] Step 103-1, based on a preset follow-up frame number difference and a target data frame, determine a synchronous follow-up data frame in the follow-up moving path frame data that corresponds to the target data frame, wherein a follow-up frame time corresponding to the synchronous follow-up data frame is the same as a target frame time corresponding to the target data frame, and a follow-up frame position corresponding to the synchronous follow-up data frame is determined based on a position of a target follow-up frame corresponding to the corresponding target data frame, and the target follow-up frame is a data frame that differs from the target data frame in a forward direction by a preset follow-up frame number difference.

[0099] In the above embodiment, each target data frame included in the target moving path frame data corresponds to the target frame time and the target frame position. The synchronous following stage refers to the stage in which the following character moves completely according to the moving trajectory of the target character. In contrast, it also includes an asynchronous following stage. For example, in the starting stage of the target character, the target character may stop and go. In order to improve the following performance effect, the following character may not move in the stop-and-go manner of the target character, but move in a smoother manner. At this time, the following character may not move according to the target frame position of the target data frame corresponding to the target character.

[0100] For the synchronous following stage, the following moving path frame data corresponds to a synchronous following data frame. In the following process in the actual game scene, most of the following processes belong to synchronous following. In the embodiment of the present application, each target data frame corresponds to a target frame time, and the target frame time is used to reflect the actual time or game world time corresponding to this frame data. The following frame time corresponding to the synchronous following data frame is the same as the target frame time corresponding to the target data frame.

[0101] For example, the following character starts to follow the target character at 1 o'clock, and synchronously follows the target character's moving path after 1 o'clock and 0.5 seconds. Assuming that the preset following frame number difference is 5, the game frame rate is 10Hz, and the following character has a following time difference of 0.5 seconds with the target character, then the following character should follow the moving characteristics of the target character at 1 o'clock and 0.5 seconds at 1 o'clock and 1 second. The synchronous following start time of the following character can be determined as 1 o'clock and 1 second first, and the data frame corresponding to 1 o'clock and 1 second can be found in the target moving path frame data, and 1 o'clock and 1 second can be determined as the following frame time corresponding to the synchronous following frame, and then 5 frames can be shifted forward to obtain the target frame position corresponding to the target data frame at 1 o'clock and 0.5 seconds, and the position can be determined as the position of the synchronous following data frame, and the following frame time corresponding to the synchronous following frame is 1 o'clock and 1 second. For another example, if the following frame time corresponding to the synchronous following frame is 1 o'clock and 1.1 seconds, then the following frame position corresponding to the synchronous following frame is the position corresponding to the target frame with a time of 1 o'clock and 0.6 seconds. In this way, all synchronous following frames are determined, and then the following moving path frame data is determined.

[0102] Method 2: In the initial following stage of the following character, such as Figure 3 As shown, step 103 specifically includes:

[0103] Step 103-2-1, obtaining a first target frame position and a first target frame time corresponding to a first target data frame in the target moving path frame data, and obtaining a first following frame position of the following character, wherein the first target data frame is the first frame in the target moving path frame data;

[0104] Step 103-2-2, interpolating based on the first target frame position and the first following frame position to obtain an initial following frame position that matches a preset following frame number difference;

[0105] Step 103-2-3, marking the initial following frame time corresponding to the initial following frame position, and determining the initial following data frame in the following moving path frame data, wherein the first initial following frame time is the first target frame time.

[0106] In the above embodiment, the initial following stage of the following character refers to the stage where the character following instruction has been issued, but due to the preset following frame difference, the following character has not yet started to follow the target character. For example, the preset following frame difference is 5. If the following character wants to follow the target character, it needs to wait until the target character moves 5 frames before starting to move. In order to solve the problem that the following character is in a waiting state during the display time of these 5 frames of images, resulting in poor following display effect, the embodiment of the present application sets an initial following data frame for the above initial following stage, so that the following character can move according to the initial following data frame to avoid waiting in place. Specifically, the first frame in the target moving path frame data is obtained as the first target data frame, the first target frame position and the first target frame time corresponding to the first target data frame are obtained, that is, the initial position of the target character, and the first target frame time is used as the following start time of the following character. From this time on, the following character enters the following state, and the following character data frame corresponding to this time is the first following frame of the following character. The position of the following character at the following start time, that is, the first following frame position, is further obtained, so as to interpolate the first target frame position and the first following frame position, and determine the initial following data frame of the following character according to the interpolation result, wherein the interpolation result is used as the position information of the initial following data frame, and the time information of the initial following data frame is synchronized with the target following data frame.

[0107] For example, the preset follow frame difference is 5, the time of obtaining the first target data frame corresponding to the target character is 1 o'clock, the position is A, and the position B of the follow character at 1 o'clock is obtained, then interpolation processing is performed on positions A and B to obtain 4 interpolation positions including position B, interpolation 1, interpolation 2, interpolation 3, and interpolation 4, and the corresponding time information is marked in the order of the distance from the interpolation position to position A from large to small. The time corresponding to position B is 1 o'clock, the time corresponding to interpolation 1 is 1:00.1 seconds, and the time corresponding to interpolation 2 is 1:00.2 seconds... In this way, the initial follow data frame is determined, and the follow character moves according to the initial follow data frame. It can also be shown in the first 5 frames of images at the beginning of the follow as a moving state approaching the target character, so as to avoid the follow character client showing the sluggish waiting effect of the follow character, and improve the expressiveness of the follow state in the game scene.

[0108] Method 3: In the initial follow-up phase of the follower role, Figure 4 As shown, step 103 specifically includes:

[0109] Step 103-3-1, obtaining a first target frame position corresponding to a first target data frame and a second target frame position corresponding to a second target data frame in the target moving path frame data, wherein the second target data frame is a data frame that differs from the first target data frame by a preset number of follow-up frames;

[0110] Step 103-3-2, interpolating based on the first target frame position and the second target frame position to obtain a starting follow frame position that matches a preset follow frame number difference, wherein the starting follow frame position includes the second target frame position;

[0111] Step 103-3-3, marking the starting following frame time corresponding to the starting following needle position according to the first target frame time and the second target frame time, and determining the starting following frame data in the following moving path frame data.

[0112] In the above embodiment, the starting following stage of the following character refers to the stage in which the following character follows the starting moving path of the target character. For example, after the character following instruction is issued, the target character begins to change from the original stopped state to the moving state. The target character may be in a state of stopping and hesitating for a short period of time when it starts to move. If the following character follows the moving path of the target character frame by frame, then the following character will also present this state, resulting in a decrease in the following expressiveness. Therefore, the embodiment of the present application sets the starting following frame of the following character, so that the following character can follow according to the starting following frame when following the target character in the starting stage, so that the following path is smooth and the following effect is improved.

[0113] Specifically, the first frame in the target moving path frame data is obtained as the first target data frame, and the second target data frame that differs from the first target data frame by a preset follow-up frame number difference is obtained, and the first target frame position corresponding to the first target data frame and the second target frame position corresponding to the second target data frame are obtained. For example, the preset follow-up frame number difference is 5, the first target data frame is the data frame corresponding to 1 o'clock, and the second target data frame is the data frame corresponding to 1 o'clock and 0.5 seconds. Further, based on the above-mentioned first target frame position and second target frame position, interpolation is performed to obtain 5 interpolation positions (5 is the preset follow-up frame number difference) including the second target frame position as the starting follow-up frame position, and then the corresponding time information is marked for each starting follow-up frame position in turn to obtain a complete starting follow-up frame, and the starting follow-up frame is sent to the following character terminal as part of the following moving path frame data to guide the following moving path of the following character, so that the movement of the following character in the starting stage tends to be smooth, thereby improving the following effect.

[0114] In addition, in the above embodiment, if the target character does not show a stop-and-go starting state when the character following is initiated, then the following data frame of the following character can be directly determined according to the target data frame corresponding to the target character, and there is no need to smooth the position information in the target data frame. Specifically, after step 103-3-1 and before step 103-3-2, it can also include: obtaining all the starting target frame positions corresponding to the first target data frame and the second target data frame; if the starting target frame positions are repeated, then step 103-3-2 is executed. Among them, if the obtained starting target frame positions are repeated, it means that the target character shows a stop-and-go starting state after the following instruction starts, and the starting state should be smoothed according to the above method.

[0115] Method 4: During the stop and follow phase of the following character, Figure 5 As shown, step 103 specifically includes:

[0116] Step 103-4-1, when the target frame speed corresponding to any third target data frame in the target data frame is zero, obtaining the stop target frame state corresponding to the stop target data frame whose number of difference before the third target data frame is equal to the preset follow-up frame number;

[0117] Step 103-4-2, when the stop target frame state includes multiple ones, obtain a fourth target data frame whose state has changed, and determine a fourth target frame position corresponding to the fourth target data frame;

[0118] Step 103-4-3, according to the third target frame time corresponding to the third target data frame, obtaining the second follow-up frame position corresponding to the time-synchronized synchronous follow-up data frame;

[0119] Step 103-4-4, based on the distance between the second following frame position and the fourth target frame position, determine the stop following data frame corresponding to the following character.

[0120] In the above embodiment, it should be explained first that each target data frame included in the target moving path frame data also corresponds to a target frame state, and the follow-up frame state corresponding to the synchronous follow-up data frame is the target frame state corresponding to the target data frame that is different from the time-synchronized target data frame by a preset follow-up frame number difference. In other words, in addition to following the position of the corresponding target data frame, the follow-up data frame also follows the state of the target data frame, wherein the target frame state may include the flying state, walking state, etc. of the target character. If the target character is in the flying state at position A, then the follow-up character should also be in the flying state when following to position A. If the target character switches from the flying state to the walking state at position B, then the follow-up character should also switch from the flying state to the walking state when following to position B. On this basis, there are some more special situations. For example, the target character stops at position D soon after switching from a flying state to a walking state at position C. If the synchronous following method is used, the following character should also stop at position D after switching from a flying state to a walking state at position C. However, if following in this way, the following character will stop at the same position as the target character, which will cause poor overlapping display effects of multiple characters in the game scene. Therefore, when the target character stops moving, the following character should stop at a distance from the target character. In addition, if the state of the target character changes during the stopping stage, the stop following data frame of the following character can be determined by the above embodiment.

[0121] Specifically, first, the data frame corresponding to the target character in the stop stage is obtained. If the speed corresponding to the target data frame is zero, it means that the target character stops moving at the corresponding position of the frame. Therefore, the third target data frame with zero target frame data in the target data frame and the previous 5 data frames including the third target data frame (5 is the preset follow-up frame number difference) are obtained as the stop target data frame; secondly, by obtaining the stop target frame state corresponding to the stop target data frame, it is determined whether the target character has a state switch in the stop stage. If the stop target frame state includes multiple states, it means that the target character has a state switch in the stop stage; then, after determining the target angle After the state switching occurs in the stop phase, the fourth target data frame where the state switching occurs and the fourth target frame position corresponding to the fourth target data frame are obtained, that is, the position where the state switching occurs in the target character; then, the position of the following character at the third target frame time (the third target frame time is the time when the target character stops moving) is obtained, that is, the above-mentioned second following frame position; finally, the stop following data frame of the following character is set according to the distance between the second following position and the fourth target frame position, that is, the stop following data frame is determined according to the distance between the position where the state switching occurs in the target character and the position where the following character is at the time when the target character stops moving.

[0122] In step 103-4-4 of the above embodiment, specifically, if the distance between the second following frame position and the fourth target frame position is less than or equal to the preset stop-follow distance, the fourth target frame position is used as the first stop position of the following character, and the stop-follow data frame is determined according to the second following frame position and the first stop position. And, if the distance between the second following frame position and the fourth target frame position is greater than the preset stop-follow distance, the second stop position of the following character is determined based on the third target frame position corresponding to the third target data frame, and the stop-follow data frame is determined according to the second following frame position and the second stop position.

[0123] In this embodiment, it is assumed that the target character switches from the flying state to the walking state in the stop phase, and the target character stops at position D soon after switching from the flying state to the walking state at position C. When the target character stops at position D, the follower character moves to position E. Since the target character stops and no longer moves after stopping at position D, the stop and follow data frame of the follower character should be determined according to the distance between position E and position D. If the distance between position E and position D is relatively close (less than or equal to the preset stop and follow distance), it means that the follower character is relatively close to the target character when it stops moving. In order to reflect that the state of the follower character switches with the state of the target character, the follower character is made to stop moving after moving to position C, that is, the fourth target frame position (the state switching position of the target character) is used as the first stop position of the follower character, and the stop and follow data frame is set based on the fourth target frame position (to ensure that the position corresponding to the last frame of the stop and follow data frame is the fourth target frame position). Since the state of the follower character follows the state of the target character, the follower character moves according to the stop and follow data frame, which can be expressed as the follower character following the target character to move to position C and stop, and before position C, it is expressed as a flying state, and at position C, it is expressed as a walking state.

[0124] If the distance between position E and position D is far (greater than the preset stop and follow distance), it means that the target character is far away from the following character when it stops moving. In order to reflect the following of the target character by the following character at the position and state level, and to prevent the following character from overlapping with the target character when stopping, the stopping position of the following character is determined based on position D (the third target frame position), that is, the stopping and following data frame of the following character is determined according to the moving stopping position of the target character. For example, based on the moving direction of the target character, the position of the target character's path that is a certain distance away from position D is determined as the second stopping position F (for example, a position 0.5 meters away from position D in the game scene is determined as the stopping position), and the stopping and following data frame is set based on the second stopping position. Since the state of the following character follows the state of the target character, the movement of the following character according to the stop and follow data frame can be expressed as the following character following the target character to move to position F and stop, and the following character is in a flying state before position C, and in a walking state at and after position C.

[0125] By determining the following data frame through the above four embodiments, the following character can appear to move towards the target character in the initial stage instead of waiting in place, can start smoothly in the starting stage to avoid the stuck state of stopping and starting when completely following the target character, can completely follow the position and state of the target character in the synchronization stage, and can ensure that the state switching process of the target character is fully reflected and stops at a position that does not overlap with the target character in the stopping stage. The above methods all have the technical effect of improving the performance of the following character in the following process, improving the user's gaming experience, and the above calculations are performed in conjunction with a high-performance server to ensure accurate calculations without causing performance pressure on the client.

[0126] In addition, in any embodiment of the present application, specifically, if there are multiple following characters, the following order of each following character is determined respectively, and the preset following frame number difference corresponding to each following character is determined according to the following order. Accordingly, the following movement path frame data is sent to the corresponding following character terminal.

[0127] In this embodiment, one target character can correspond to multiple follower characters. For example, the game team in the game scene includes 3 people. The team leader initiates the team following, and the other two team members can follow the team leader. In order to avoid non-overlapping display of each team member during the following process, multiple preset follow frame differences can be set for this situation. For example, the follow frame difference corresponding to follower character 1 is 5, and the follow frame difference corresponding to follower character 2 is 10. On this basis, according to the method for determining the follower movement path frame data provided in the embodiment of the present application, the follower movement path frame data corresponding to each follower character is determined respectively, and sent to the corresponding follower character terminal, so that when multiple characters follow the target character, there will be no role overlap, thereby improving the follow display effect.

[0128] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a motion following device for a game character, which is applied to a server, such as Figure 6 As shown, the device comprises:

[0129] A follow-up instruction receiving module 61 is used to receive a character follow-up instruction, wherein the character follow-up instruction includes a target character identifier and at least one follow-up character identifier, and the target character is a player character or an NPC character;

[0130] A target data frame acquisition module 62 is used to acquire target moving path frame data of the target character based on the target character identifier;

[0131] The following data frame determination module 63 is used to determine the following movement path frame data corresponding to the following character according to the preset following frame number difference corresponding to the following character and the target movement path frame data, wherein the following movement path frame data includes a data frame determined by interpolation processing based on the position corresponding to the target movement path frame data, and the following movement path frame data is sent to the following character terminal corresponding to the following character identifier, so that the following character can follow the movement of the target character.

[0132] In specific application scenarios, such as Figure 7 As shown, each target data frame included in the target moving path frame data corresponds to a target frame time and a target frame position; the following data frame determination module 63 specifically includes:

[0133] The synchronous following data frame determination unit 6301 is used to determine the synchronous following data frame corresponding to the target data frame in the following moving path frame data based on a preset following frame number difference and a target data frame, wherein the following frame time corresponding to the synchronous following data frame is the same as the target frame time corresponding to the target data frame, the following frame position corresponding to the synchronous following data frame is determined based on the position of the target following frame corresponding to the corresponding target data frame, and the target following frame is a data frame that differs from the target data frame in the forward direction by a preset following frame number difference.

[0134] In specific application scenarios, such as Figure 7 As shown, the following data frame determination module 63 specifically includes:

[0135] The initial frame time acquisition unit 6302 is used to acquire a first target frame position and a first target frame time corresponding to a first target data frame in the target movement path frame data, and to acquire a first following frame position of the following character, wherein the first target data frame is the first frame in the target movement path frame data;

[0136] The initial frame position determining unit 6303 is used to interpolate based on the first target frame position and the first following frame position to obtain an initial following frame position that matches a preset following frame number difference;

[0137] The initial following frame determining unit 6304 is used to mark the initial following frame time corresponding to the initial following frame position, and determine the initial following data frame in the following moving path frame data, wherein the first initial following frame time is the first target frame time.

[0138] In specific application scenarios, such as Figure 7 As shown, the following data frame determination module 63 specifically includes:

[0139] The first starting frame data acquisition unit 6305 is used to acquire a first target frame position corresponding to the first target data frame and a second target frame position corresponding to the second target data frame in the target moving path frame data, wherein the second target data frame is a data frame that differs from the first target data frame by a preset number of follow-up frames;

[0140] A starting frame position determining unit 6306 is configured to interpolate based on the first target frame position and the second target frame position to obtain a starting following frame position that matches a preset following frame number difference, wherein the starting following frame position includes the second target frame position;

[0141] The starting frame data determining unit 6307 is used to mark the starting following frame time corresponding to the starting following needle position according to the first target frame time and the second target frame time, and determine the starting following frame data in the following movement path frame data.

[0142] In specific application scenarios, such as Figure 7 As shown, the following data frame determination module 63 also includes:

[0143] The second starting frame data acquiring unit 6308 is configured to acquire all starting target frame positions corresponding to the first target data frame and the second target data frame before interpolation is performed based on the first target frame position and the second target frame position;

[0144] The starting judgment unit 6309 is configured to perform interpolation based on the first target frame position and the second target frame position if there is duplication in the starting target frame position.

[0145] In a specific application scenario, each target data frame included in the target moving path frame data also corresponds to a target frame state, and the follow-up frame state corresponding to the synchronous follow-up data frame is the target frame state corresponding to the target data frame that differs by a preset follow-up frame number before the time-synchronized target data frame.

[0146] In specific application scenarios, such as Figure 7 As shown, each target data frame included in the target moving path frame data also corresponds to a target frame speed; the following data frame determination module 63 specifically includes:

[0147] The stop frame state acquisition unit 6310 is used to acquire the stop target frame state corresponding to the stop target data frame whose number of difference with the preset follow-up frame number before the third target data frame is equal to when the target frame speed corresponding to any third target data frame in the target data frame is zero;

[0148] The state switching frame acquisition unit 6311 is used to acquire a fourth target data frame whose state has changed when the stop target frame state includes multiple states, and determine a fourth target frame position corresponding to the fourth target data frame;

[0149] The stop frame position acquisition unit 6312 is used to acquire the second following frame position corresponding to the time-synchronized synchronous following data frame according to the third target frame time corresponding to the third target data frame;

[0150] The stop-follow frame determining unit 6313 is used to determine the stop-follow data frame corresponding to the follow character based on the distance between the second follow frame position and the fourth target frame position.

[0151] In a specific application scenario, which is not shown in the figure, the stop-following frame determination unit 6313 specifically includes:

[0152] The first stop-follow frame determination subunit 63131 is used to use the fourth target frame position as the first stop position of the follow character if the distance between the second follow frame position and the fourth target frame position is less than or equal to the preset stop-follow distance, and determine the stop-follow data frame according to the second follow frame position and the first stop position.

[0153] In a specific application scenario, which is not shown in the figure, the stop-follow frame determination unit specifically includes:

[0154] The second stop-follow frame determination subunit 63132 is used to determine the second stop position of the follow character based on the third target frame position corresponding to the third target data frame if the distance between the second follow frame position and the fourth target frame position is greater than the preset stop-follow distance, and determine the stop-follow data frame based on the second follow frame position and the second stop position.

[0155] In specific application scenarios, such as Figure 7 As shown, the follow instruction receiving module 61 specifically includes:

[0156] The first follow instruction receiving unit 6101 is used to receive a character follow instruction sent by a target character terminal; and / or

[0157] The second follow instruction receiving unit 6102 is used to receive a character follow instruction sent by a follow character terminal.

[0158] In specific application scenarios, such as Figure 7 As shown, the following data frame determination module 63 also includes:

[0159] The following frame number difference determining unit 6314 is used to determine the following order of each following character before determining the following movement path frame data corresponding to the following character if there are multiple following characters, and determine the preset following frame number difference corresponding to each following character according to the following order;

[0160] The data sending unit 6315 is used to send the following movement path frame data to the corresponding following character terminals.

[0161] It should be noted that for other corresponding descriptions of the functional units involved in the motion following device for a game character provided in the embodiment of the present application, reference can be made to Figures 1 to 5 The corresponding description in the method will not be repeated here.

[0162] Based on the above Figures 1 to 5 The method shown in the embodiment of the present application accordingly provides a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figures 1 to 5 The motion following method of the game character is shown.

[0163] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0164] Based on the above Figures 1 to 5 The method shown, and Figure 6 to Figure 7 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides a computer device, which can be a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figures 1 to 5 The motion following method of the game character is shown.

[0165] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0166] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0167] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.

[0168] Through the description of the above implementation methods, the technicians in this field can clearly understand that the present application can be implemented by means of software plus the necessary general hardware platform, or by hardware, the server can obtain the target moving path frame data corresponding to the target character according to the character following instruction, thereby determining the following moving path frame data corresponding to the following character based on the target moving path frame data according to the preset following frame number difference, and sending the following moving path frame data to the following character terminal, so that the following character terminal controls the following character to move frame by frame according to the following moving path frame data to follow the target character. Compared with the prior art, the embodiment of the present application entrusts the cumbersome process of determining the following moving path frame data to a high-performance server for processing, greatly improving the processing efficiency, avoiding the problem of freezing, frame loss, performance loss, and even the problem of losing the following during the following process due to excessive client performance pressure, and on the other hand, solving the problem that the prior art cannot realize the following of NPC characters in the game scene, providing technical support for increasing the gameplay in the game development stage, and also providing a guarantee for players to experience more gameplay in the game experience stage, improving the player's game experience and the competitiveness of game products.

[0169] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0170] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A motion following method for a game character, applied to a server, It is characterized in that include: Receiving a character following instruction, wherein the character following instruction includes a target character identifier and at least one following character identifier, and the target character is a player character or an NPC character; Based on the target character identifier, obtaining target movement path frame data of the target character; According to the preset following frame number difference corresponding to the following character and the target moving path frame data, the following moving path frame data corresponding to the following character is determined, wherein the following moving path frame data includes a data frame determined by interpolation processing based on the position corresponding to the target moving path frame data, and the following moving path frame data is sent to the following character terminal corresponding to the following character identifier, so that the following character can achieve motion following of the target character; each target data frame included in the target moving path frame data also corresponds to a target frame speed; The determining of the following movement path frame data corresponding to the following character includes: When the target frame speed corresponding to any third target data frame in the target data frames is zero, obtaining a stop target frame state corresponding to a stop target data frame whose number before the third target data frame is equal to the preset follow-up frame number difference; When the stop target frame state includes multiple ones, acquiring a fourth target data frame whose state has changed, and determining a fourth target frame position corresponding to the fourth target data frame; According to the third target frame time corresponding to the third target data frame, acquiring the second follow-up frame position corresponding to the time-synchronized synchronous follow-up data frame; Based on the distance between the second following frame position and the fourth target frame position, a stop following data frame corresponding to the following character is determined.

2. The method according to claim 1, It is characterized in that Each target data frame included in the target movement path frame data corresponds to a target frame time and a target frame position; and determining the follow-up movement path frame data corresponding to the follow-up character specifically includes: Based on the preset follow-up frame number difference and the target data frame, a synchronous follow-up data frame corresponding to the target data frame in the follow-up movement path frame data is determined, wherein the follow-up frame time corresponding to the synchronous follow-up data frame is the same as the target frame time corresponding to the target data frame, and the follow-up frame position corresponding to the synchronous follow-up data frame is determined based on the position of the target follow-up frame corresponding to the corresponding target data frame, and the target follow-up frame is a data frame that differs from the target data frame in the forward direction by the preset follow-up frame number difference.

3. The method according to claim 2, It is characterized in that The determining of the following movement path frame data corresponding to the following character specifically includes: Acquire a first target frame position and a first target frame time corresponding to a first target data frame in the target movement path frame data, and acquire a first following frame position of the following character, wherein the first target data frame is the first frame in the target movement path frame data; Performing interpolation based on the first target frame position and the first following frame position to obtain an initial following frame position that matches the preset following frame number difference; The initial following frame time corresponding to the initial following frame position is marked, and the initial following data frame in the following movement path frame data is determined, wherein the first initial following frame time is the first target frame time.

4. The method according to claim 2, It is characterized in that The determining of the following movement path frame data corresponding to the following character specifically includes: Acquire a first target frame position corresponding to a first target data frame and a second target frame position corresponding to a second target data frame in the target moving path frame data, wherein the second target data frame is a data frame that differs from the first target data frame by the preset follow-up frame number difference; interpolating based on the first target frame position and the second target frame position to obtain a starting following frame position that matches the preset following frame number difference, wherein the starting following frame position includes the second target frame position; The starting following frame time corresponding to the starting following needle position is marked according to the first target frame time and the second target frame time, and the starting following frame data in the following movement path frame data is determined.

5. The method according to claim 4, It is characterized in that Before interpolating based on the first target frame position and the second target frame position, the method further includes: Acquire all starting target frame positions corresponding to the first target data frame and the second target data frame; If the starting target frame position is repeated, interpolation is performed based on the first target frame position and the second target frame position.

6. The method according to claim 2, It is characterized in that Each target data frame included in the target moving path frame data also corresponds to a target frame state, and the follow-up frame state corresponding to the synchronous follow-up data frame is the target frame state corresponding to the target data frame that is before the time-synchronized target data frame and differs by the preset follow-up frame number.

7. The method according to claim 6, It is characterized in that The step of determining the stop and follow data frame corresponding to the follow role specifically includes: If the distance between the second following frame position and the fourth target frame position is less than or equal to the preset stop-follow distance, the fourth target frame position is used as the first stop position of the following character, and the stop-follow data frame is determined according to the second following frame position and the first stop position.

8. The method according to claim 6, It is characterized in that The step of determining the stop and follow data frame corresponding to the follow role specifically includes: If the distance between the second follow frame position and the fourth target frame position is greater than the preset stop-follow distance, the second stop position of the follow character is determined based on the third target frame position corresponding to the third target data frame, and the stop-follow data frame is determined according to the second follow frame position and the second stop position.

9. The method according to claim 6, It is characterized in that The receiving of the role following instruction specifically includes: receiving the character following instruction sent by the target character terminal; and / or Receive the role following instruction sent by the following role terminal.

10. The method according to claim 1, It is characterized in that If the following character includes multiple characters, before determining the following movement path frame data corresponding to the following character, the method further includes: Determine the following order of each of the following characters respectively, and determine the preset following frame number difference corresponding to each of the following characters respectively according to the following order; The step of sending the following movement path frame data to the following character terminal corresponding to the following character identifier specifically includes: The following movement path frame data is sent to the corresponding following character terminals.

11. A motion following device for a game character, applied to a server, It is characterized in that include: A follow-up instruction receiving module, used for receiving a character follow-up instruction, wherein the character follow-up instruction includes a target character identifier and at least one follow-up character identifier, and the target character is a player character or an NPC character; A target data frame acquisition module, used for acquiring target moving path frame data of the target character based on the target character identifier; A following data frame determination module, for determining the following moving path frame data corresponding to the following character according to the preset following frame number difference corresponding to the following character and the target moving path frame data, wherein the following moving path frame data includes a data frame determined by interpolation processing based on the position corresponding to the target moving path frame data; each target data frame included in the target moving path frame data also corresponds to a target frame speed; wherein: when the target frame speed corresponding to any third target data frame in the target data frame is zero, the stop target frame state corresponding to the stop target data frame whose number is equal to the preset following frame number difference before the third target data frame is obtained; when the stop target frame state includes multiple stop target frame states, the fourth target data frame whose state changes is obtained, and the fourth target frame position corresponding to the fourth target data frame is determined; according to the third target frame time corresponding to the third target data frame, the second following frame position corresponding to the time-synchronized synchronous following data frame is obtained; based on the distance between the second following frame position and the fourth target frame position, the stop following data frame corresponding to the following character is determined; The following data frame determination module is further used to send the following movement path frame data to the following character terminal corresponding to the following character identifier, so that the following character can follow the movement of the target character.

12. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for following the motion of a game character according to any one of claims 1 to 10 is implemented.

13. A computer device comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, It is characterized in that When the processor executes the computer program, the method for following the motion of a game character according to any one of claims 1 to 10 is implemented.