Role interaction method, device, terminal, storage medium and program product

By displaying a mirror image of the NPC in the video game and controlling it to interact one-on-one with the terminal-controlled character, the problem of confusing NPC behavior is solved, and the interaction stability and user experience are improved.

CN114432700BActive Publication Date: 2025-09-30TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210010704.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-06
Publication Date
2025-09-30
Estimated Expiration
2042-01-06

AI Technical Summary

Technical Problem

In electronic game scenarios, when multiple user characters initiate interaction requests to the same NPC, the NPC's behavior is prone to confusion, affecting the stability of the interaction between the user characters and the NPC.

Method used

By displaying the mirror image of the second character in the game screen and canceling the display of the second character, the first character and the mirror image character are controlled to interact based on a one-to-one interaction request, and after the interaction is completed, the mirror image character is controlled to move to the position of the second character, and finally the second character is redisplayed.

Benefits of technology

The interaction stability between the two virtual characters has been improved, avoiding the visual abruptness caused by displaying two characters at the same time on the game screen, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114432700B_ABST
    Figure CN114432700B_ABST
Patent Text Reader

Abstract

The present application discloses a character interaction method, device, terminal, storage medium, and program product. The present application displays a game screen, which includes at least a portion of a game scene. The game scene includes a first character and a second character, wherein the first character is a game character controlled by the terminal and the second character is a game character that cannot be controlled by the terminal. In response to a one-to-one interaction request between the first character and the second character, a mirror image of the second character is displayed on the game screen, and the second character is not displayed. Based on the one-to-one interaction request, the first character and the mirror image are controlled to interact one-to-one. In response to the end of the one-to-one interaction, the mirror image is controlled to move in the game scene. When the mirror image moves to the position of the second character, the mirror image is not displayed on the game screen, and the second character is redisplayed. In the present application, the stability of the interaction between the two virtual characters is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a role interaction method, device, terminal, storage medium, and program product. Background Art

[0002] Non-Player Characters (NPCs) are game characters not controlled by the user, such as computer-controlled merchants and monsters. User characters are user-controlled game characters. Currently, in video game scenarios, when multiple user characters initiate interaction requests with the same NPC, the NPC can easily become confused in its response to each user character's interaction request.

[0003] However, the confusion of NPC behavior affects the interaction between user characters and NPCs. Summary of the Invention

[0004] The embodiments of the present application provide a character interaction method, device, terminal, storage medium, and program product, which improve the stability of the interaction between two virtual characters.

[0005] This embodiment of the present application provides a role interaction method, including:

[0006] Displaying a game screen, the game screen including at least a portion of a game scene, the game scene including a first character and a second character, the first character being a game character controlled by the terminal, and the second character being a game character that cannot be controlled by the terminal;

[0007] In response to a one-to-one interaction request for the first character and the second character, displaying a mirror image of the second character on the game screen and canceling the display of the second character;

[0008] Based on the one-to-one interaction request, control the first character and the mirror character to perform one-to-one interaction;

[0009] In response to the one-to-one interaction ending, controlling the mirror character to move in the game scene;

[0010] When the mirror character moves to the position of the second character, the mirror character is cancelled from the game screen and the second character is redisplayed.

[0011] The present application also provides a character interaction device, including:

[0012] A first display unit is configured to display a game screen, the game screen including at least a portion of a game scene, the game scene including a first character and a second character, the first character being a game character controlled by the terminal, and the second character being a game character that cannot be controlled by the terminal;

[0013] a second display unit for displaying a mirror image of the second character in the game screen and canceling the display of the second character in response to a one-to-one interaction request for the first character and the second character;

[0014] An interaction unit, configured to control the first character and the mirror character to perform a one-to-one interaction based on a one-to-one interaction request;

[0015] a character control unit, for controlling the mirror character to move in the game scene in response to the end of the one-to-one interaction;

[0016] The interaction ending unit is used to cancel the display of the mirror character in the game screen and redisplay the second character when the mirror character moves to the position of the second character.

[0017] In some embodiments, the character control unit is configured to:

[0018] Determine a pursuit path based on the position coordinates and movement direction of the second character in the game scene and the position coordinates of the mirror character in the game scene;

[0019] Determine the pursuit speed according to the moving direction and speed of the second character in the game scene;

[0020] In response to the end of the one-to-one interaction, the mirror character is controlled to move in the game scene according to the pursuit path and pursuit speed.

[0021] In some embodiments, the character control unit is configured to:

[0022] In response to the end of the one-to-one interaction, or in response to executing a preset behavior for the second character, controlling the mirror character to end the one-to-one interaction with the first character;

[0023] Control the mirror character to move in the game scene.

[0024] In some embodiments, the interaction unit is configured to:

[0025] Get the list of behaviors of the second role;

[0026] Based on the behavior list and the one-to-one interaction request, the first role and the mirror role are controlled to perform one-to-one interaction.

[0027] In some embodiments, the behavior list includes a first behavior and a second behavior, the first behavior being a behavior that is prioritized for execution at the current moment, and the second behavior being a behavior that is not prioritized for execution at the current moment. After controlling the first character and the mirror character to perform a one-to-one interaction based on the behavior list and the one-to-one interaction request, the device is further configured to:

[0028] When the first behavior in the behavior list corresponds to the current moment, the mirror character is controlled to end the one-to-one interaction with the first character;

[0029] When the second behavior in the behavior list corresponds to the current moment, the mirror character is controlled to perform a one-to-one interaction with the first character.

[0030] In some embodiments, the behavior list includes behavior type, behavior priority, and behavior execution period. Based on the behavior list and the one-to-one interaction request, the device controls the first character and the mirror character to perform a one-to-one interaction. The device is configured to:

[0031] Based on a one-to-one interaction request, obtain the behavior execution time period corresponding to the current moment;

[0032] Determine the type of behavior based on the time period during which the behavior is performed;

[0033] Determine the corresponding behavior priority based on the behavior type;

[0034] The first role and the mirror role are controlled to interact one-to-one according to the behavior priority.

[0035] In some embodiments, the first character and the mirror character are controlled to perform one-to-one interaction according to the behavior priority, and the device is used to:

[0036] Get the priority value of the behavior priority;

[0037] The first character and the mirror character are controlled to interact one-to-one according to the priority value.

[0038] In some embodiments, after controlling the mirror character to move in the game scene in response to the one-to-one interaction ending, the device is further configured to:

[0039] In response to an interaction request for the first character and the mirror character, obtaining a behavior list of the mirror character, the behavior list including preset behaviors identical to those of the second character;

[0040] Determine the preset behavior in the behavior list corresponding to the current moment and obtain the current preset behavior;

[0041] Control the first character and the mirror character to interact according to the behavior priority of the current preset behavior.

[0042] In some embodiments, the second display unit, the device is configured to:

[0043] In response to a one-to-one interaction request between the first character and the second character, obtaining a preset behavior performed by the second character at a current moment to obtain a current preset behavior;

[0044] When the current preset behavior is the behavior that is preferentially executed at the current moment, controlling the second character to refuse one-to-one interaction with the first character;

[0045] When the current preset behavior is a behavior that is not executed with priority at the current moment, a mirror image character of the second character is displayed in the game screen, and the display of the second character is canceled.

[0046] In some embodiments, the second display unit is configured to:

[0047] In response to a one-to-one interaction request between the first character and the second character, mirroring the second character to obtain a mirrored character;

[0048] Displays a mirror image of the second character in the game screen

[0049] In some embodiments, before canceling the display of the mirror character on the game screen, the device is further configured to:

[0050] Get the preset behavior performed by the second character at the current moment;

[0051] Control the mirror character to perform the preset behavior.

[0052] An embodiment of the present application further provides a terminal, comprising a memory storing a plurality of instructions; the processor loads instructions from the memory to execute the steps of any one of the role interaction methods provided in the embodiment of the present application.

[0053] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps of any one of the role interaction methods provided in the embodiment of the present application.

[0054] An embodiment of the present application further provides a computer program product, including a computer program / instruction, which implements the steps of any one of the role interaction methods provided in the embodiments of the present application when the computer program / instruction is executed by a processor.

[0055] The embodiment of the present application can display a game screen, which includes at least a portion of a game scene, and the game scene includes a first character and a second character, the first character being a game character controlled by a terminal, and the second character being a game character that cannot be controlled by the terminal; in response to a one-to-one interaction request for the first character and the second character, a mirror character of the second character is displayed in the game screen, and the second character is canceled; based on the one-to-one interaction request, the first character and the mirror character are controlled to perform a one-to-one interaction; in response to the end of the one-to-one interaction, the mirror character is controlled to move in the game scene; when the mirror character moves to the position of the second character, the mirror character is canceled from the game screen, and the second character is redisplayed.

[0056] In the present invention, after a terminal responds to a one-to-one interaction request for a first character and a second character, the game screen of the terminal will display the mirror image of the second character and cancel the display of the second character. Then, the first character controlled by the terminal interacts with the mirror image, while the game screens of other terminals do not display the mirror image. In other words, the first characters controlled by other terminals do not interact with the mirror image. This improves the stability of the interaction between the two virtual characters. After the one-to-one interaction ends, the mirror image character is controlled to move in the game scene, allowing the second character to move to the position of the second character in the game scene. The display of the mirror image character is canceled and the second character is redisplayed in the game screen, so that the game screen does not display the second character and the mirror image character at the same time, avoiding the visual abruptness of the displayed game screen to the user. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0058] Figure 1a Schematic diagram of a scenario of a role interaction method provided in an embodiment of the present application;

[0059] Figure 1b Schematic diagram of a scenario of a role interaction method provided in an embodiment of the present application;

[0060] Figure 1c This is a flow chart of the role interaction method provided in an embodiment of the present application;

[0061] Figure 1d This is a schematic diagram of a second character in a game scene provided by an embodiment of the present application;

[0062] Figure 2a is a schematic diagram of the role interaction method provided in an embodiment of the present application applied in a role interaction scenario;

[0063] Figure 2b This is a schematic diagram of interaction between terminals provided in an embodiment of the present application;

[0064] Figure 3 is a structural diagram of a character interaction device provided in an embodiment of the present application;

[0065] Figure 4 It is a schematic diagram of the structure of the terminal provided in an embodiment of the present application. DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0067] Embodiments of the present application provide a role interaction method, apparatus, terminal, storage medium, and program product.

[0068] The character interaction device can be integrated into an electronic device, which can be a terminal, a server, or the like. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, or a personal computer (PC); the server can be a single server or a server cluster consisting of multiple servers.

[0069] In some embodiments, the character interaction device may also be integrated into multiple electronic devices. For example, the character interaction device may be integrated into multiple servers, and the character interaction method of the present application may be implemented by the multiple servers.

[0070] In some embodiments, the server may also be implemented in the form of a terminal.

[0071] refer to Figure 1a and Figure 1b , displaying a game screen, the game screen includes at least a part of the game scene, the game scene includes a first character A and a second character B, the first character A is a game character controlled by the terminal, and the second character B is a game character that cannot be controlled by the terminal; in response to a one-to-one interaction request for the first character A and the second character B, displaying a mirror character C of the second character B in the game screen, and canceling the display of the second character B; based on the one-to-one interaction request, controlling the first character A and the mirror character C to perform a one-to-one interaction; in response to the end of the one-to-one interaction, controlling the mirror character C to move in the game scene; when the mirror character C moves to the position of the second character B, canceling the display of the mirror character C in the game screen, and redisplaying the second character B.

[0072] In this example, after responding to a one-on-one interaction request between first character A and second character B, a terminal displays a mirror image of second character B, character C, while simultaneously canceling the display of second character B. This allows the mirror image character C to be displayed on that terminal, while the game screens of other terminals do not display the mirror image character C. As a result, when first character A and mirror image character C interact, the first characters controlled by other terminals do not disrupt the one-on-one interaction between first character A and mirror image character C, thereby improving the stability of the interaction between the two virtual characters. After the one-on-one interaction ends, mirror image character C moves to the position of second character B in the game scene. At that position, the display of mirror image character C is canceled, and second character B is redisplayed. This prevents the game screen from simultaneously rendering second character B and mirror image character C, thus avoiding visual clashes for the user.

[0073] It should be noted that the serial numbers of the following embodiments are not intended to limit the preferred order of the embodiments.

[0074] In this embodiment, a role interaction method is provided, such as Figure 1c As shown, the specific process of the role interaction method can be as follows:

[0075] 110. Display a game screen, where the game screen includes at least a portion of a game scene. The game scene includes a first character and a second character. The first character is a game character controlled by the terminal, and the second character is a game character that cannot be controlled by the terminal.

[0076] The game screen is a screen displayed on a terminal, which includes at least a portion of a game scene. For example, the game screen may display a first character and a portion of a virtual scene, or may display a first character, a second character, and a portion of a virtual scene. The portion of the virtual scene may include a portion of the sky, a portion of the land, a portion of the ocean, a portion of the desert, a portion of the city, and other environmental elements. The game scene (or virtual scene) is a virtual scene displayed (or provided) by the system when it is running on a terminal or server. Optionally, the virtual scene is a simulation of the real world, a virtual environment that is semi-simulated and semi-fictional, or a purely fictional virtual environment. The virtual scene can be either a two-dimensional virtual scene or a three-dimensional virtual scene. The virtual environment can include the sky, land, ocean, and other environmental elements, wherein the land includes environmental elements such as deserts and cities. The virtual scene is a scene with complete game logic, such as user-controlled virtual objects. For example, in a sandbox 3D shooting game, the virtual scene is a 3D game world used for users to control virtual objects for battle. Exemplary virtual scenes may include at least one of the following elements: mountains, plains, rivers, lakes, oceans, deserts, sky, plants, buildings, and vehicles.

[0077] Among them, the first character is the character controlled by the terminal. The virtual character can be controlled by the real user and can also be controlled by the terminal. For example, the user or the terminal can control the virtual character to interact with the virtual scene.

[0078] For example, users can control virtual characters to interact with virtual scenes. Users can control the virtual character "I" to move, hunt, detect, talk, cast skills, use props, etc. in the virtual scene. They can also control the virtual character to run, jump, crawl, etc., and can also control the virtual character to use the skills and virtual props provided by the system to fight, talk, perform tasks, etc. with other virtual characters.

[0079] The terminal a is a control terminal. For example, the terminal a may be a user terminal or a server.

[0080] For example, when terminal a is a user terminal, the user terminal can receive a control operation of the user to control the first role, wherein the control operation can be voice control, touch control, shortcut key control, etc.

[0081] For example, when terminal a is a server, the terminal can control the first character through an algorithm, and can also receive a user's control operation to control the first character.

[0082] Among them, the second character is a character that is not controlled by the user terminal. The virtual character is not manipulated by the real user, for example, an artificial intelligence (AI) set in a virtual environment through training, or a non-player character (NPC) set in a virtual scene.

[0083] The second characters in the game scene include virtual characters, virtual buildings, virtual props, etc. For example, virtual characters may include any summoned creatures, virtual monsters, virtual NPCs (non-player characters), etc.; for example, virtual buildings may include virtual defense towers, virtual hot springs, virtual resurrection points, etc.; for example, virtual props may include virtual pets, virtual mounts, dropped virtual money bags, etc.

[0084] Among them, the displayed game scene is the display screen corresponding to the game scene. For example, the displayed game scene can be a screen captured by a virtual camera associated with a first character controlled by a first terminal. The user screen can also display a screen captured by a virtual camera associated with a virtual character controlled by other terminals. The relationship between the virtual characters controlled by other terminals and the virtual character controlled by the first terminal can be a same-camp relationship, a same-team relationship, a hostile relationship, a neutral relationship, etc.

[0085] The image captured by the virtual camera may be an image obtained from the perspective of the first character, or an image obtained from the perspective of a third person.

[0086] 120. In response to a one-to-one interaction request between the first character and the second character, display a mirror image of the second character on the game screen, and cancel the display of the second character.

[0087] Among them, a one-to-one interaction request is used to request a separate interaction between two virtual characters. For example, the one-to-one interaction request is to enable the two virtual characters to interact in a hostile manner, a neutral manner, or a friendly manner. Specifically, for example, the first character requests to engage in an independent battle with the second character, or the first character requests the second character to follow, or the first character requests to engage in an independent conversation with the second character, or the first character requests to complete a task with the second character, or the first character requests to control the second character, etc. For example, in some embodiments, a trigger control is displayed on the graphical display interface to enable terminal a to initiate a one-to-one interaction request.

[0088] Among them, the image display interface includes the user interface (UI) and the game screen. The UI interface is the medium for human-computer interaction and information exchange between the system and the user. The UI interface can display system information in a form acceptable to humans, allowing users to operate the computer conveniently and efficiently to achieve two-way human-computer interaction.

[0089] Among them, the user operation interface can be composed of visual elements such as controls, text, graphics, images, icons, input boxes, etc.

[0090] Among them, the one-to-one interaction request can be sent through a trigger control, which is a control on the user operation interface and can be expressed in the form of a button, input box, graphic, text, etc.

[0091] For example, in order to enable the second character to complete tasks with the first character in the game scene, the user can initiate a one-to-one interaction request by clicking the trigger control or shortcut key on terminal a, or by selecting the interaction type on the user operation interface, or by voice, etc. After the game responds to the one-to-one interaction request on the terminal or server, it displays the mirror image of the second character on terminal a and cancels the display of the second character.

[0092] In some embodiments, in order to take into account that the screen displayed by terminal a includes the first character controlled by other terminal b, the first character controlled by other terminal b will not interfere with the first character and the mirror character controlled by terminal a, and the controlled mirror character is no longer displayed in the game screen of other terminal b.

[0093] The other terminal b is a control terminal, and the first character controlled by the other terminal b and the first character controlled by the terminal a are two independent virtual characters.

[0094] For example, the game screen of other terminal b will not display the mirror character that interacts one-on-one with the first character controlled by terminal a, so that the user controlling other terminal b cannot see the mirror character interacting with terminal a, resulting in the user controlling other terminal b not issuing an interaction request with the mirror character, preventing the mirror character from interacting with the first character controlled by other terminal b, and improving the user experience of the user controlling terminal a. Among them, other terminal b can display the second character in the game scene, or other terminal b can respond to the one-on-one interaction request for the first character and the second character, display the mirror character of the second character on the game screen of other terminal b, and cancel the display of the second character on other terminal b. The mirror character associated with terminal a and the mirror character associated with other terminal b are two independent mirror characters. Terminal a will only display the mirror character associated with it, and will not display the mirror character associated with other terminal b.

[0095] In some embodiments, the second display unit is configured to:

[0096] In response to a one-to-one interaction request between the first character and the second character, mirroring the second character to obtain a mirrored character;

[0097] Displays a mirror image of the second character on the game screen.

[0098] The mirror processing is to create a copy that is identical to the original data. For example, the mirror processing can adopt image processing methods such as Java image processing, ISO mirror processing, and opencv digital image processing.

[0099] Among them, the mirror character is the character obtained after mirroring, and the mirror character is the same as the second character. For example, the mirror character can be any summoned creature after mirroring, a virtual monster after mirroring, a virtual NPC after mirroring, or a virtual building after mirroring, or a virtual prop after mirroring, and so on.

[0100] The mirroring process can be performed at the front end, at the back end, or at both the front end and the back end.

[0101] The display of the second character is canceled, that is, the second character is not rendered on the first terminal.

[0102] For example, after terminal a responds to a one-to-one interaction request for a first character and a second character, it mirrors the second character to obtain a mirrored character corresponding to the second character, and stops rendering the second character. That is, terminal a displays the mirrored character and cancels the display of the second character, so that the user does not lose interest when watching the game screen displayed by terminal a. Although the second character is not rendered in the game screen of terminal a, in the game, the second character still moves in the game scene according to preset rules, and the second character is rendered on other terminals b, wherein the other terminals b also respond to the one-to-one interaction request for the first character and the second character.

[0103] In some embodiments, in order to consider that terminal a may render the second character after executing an erroneous command, resulting in terminal a displaying the second character and the mirrored character at the same time, the second display unit is used to:

[0104] The broadcast to the second character in the game scene is not received so that the second character is not displayed.

[0105] Broadcasting is transferring data to connected terminals. For example, the server can broadcast the second character so that terminals that have not responded to the one-to-one interaction with the second character can receive the data of the second character.

[0106] For example, terminal a does not accept the broadcast of the second character, that is, terminal a does not receive the data of the second character in the game scene, so terminal a cannot render the second character because it does not have the data of the second character, and thus terminal a does not display the second character.

[0107] In some embodiments, in order to take into account that terminal a does not display the second character, the second display unit is configured to:

[0108] The second character is not rendered.

[0109] In some embodiments, in order to take into account that the mirrored character is not rendered and displayed on other terminals, the game scene also includes a third character, and the third character is a game character controlled by other terminals. After displaying the mirrored character of the second character, the device is further configured to:

[0110] The mirror role is not broadcasted so that other terminals controlling the third role do not display the mirror role.

[0111] For example, if a mirror character is not broadcast, other terminals cannot receive the data of the mirror character, and thus cannot render the mirror character. Only terminal a can render the mirror character. In this way, terminal a displays the mirror character, while other terminals do not display the mirror character.

[0112] 130. Based on the one-to-one interaction request, control the first character and the mirror character to perform a one-to-one interaction.

[0113] A one-to-one interaction is a separate interaction between two virtual characters, uninterrupted by other virtual characters. For example, a one-to-one interaction can be hostile, neutral, or friendly. Specifically, a second character can engage in an independent battle with the first character, or the second character can follow the first character, or the second character can have an independent conversation with the first character, or the second character can complete a mission together with the first character, or the second character can be controlled by the first character, and so on.

[0114] For example, the one-to-one interaction between the first character and the mirror character can be the mirror character following the first character, the first character fighting with the mirror character, the first character doing activities with the mirror character, the first character rescuing the mirror character, and so on.

[0115] In some embodiments, in order to consider a one-to-one interaction in which the first character and the mirror character perform a specific behavior, the interaction unit is configured to:

[0116] Get the interaction type instruction carried in the one-to-one interaction request;

[0117] The first character and the mirror character are controlled to perform one-to-one interaction according to the interaction type instruction.

[0118] Among them, the interaction type instruction carries a one-to-one interaction type, which can include one-to-one interaction and non-one-to-one interaction. The interaction method can be following, fighting, activity, dialogue, rescue, completing tasks, etc.

[0119] For example, if the one-to-one interaction type instruction carries a one-to-one interaction, follow, then the first character will be followed by the mirror character; if the one-to-one interaction type instruction is fight, then the first character can fight one-to-one with the mirror character; if the one-to-one interaction type instruction is do a task, then the first character can do the task with the mirror character, and so on.

[0120] In some embodiments, in order to take into account that the behavior performed by the mirror character is restricted by the behavior to be performed by the second character, the interaction unit is configured to:

[0121] Get the list of behaviors of the second role;

[0122] Based on the behavior list and the one-to-one interaction request, the first role and the mirror role are controlled to perform one-to-one interaction.

[0123] Among them, the behavior list includes the behaviors that the virtual characters need to perform in preset time periods. For example, the second character needs to walk on a preset path in the game scene in the first time period, the second character needs to rest at a preset location in the game scene in the second time period, the second character needs to rest at a preset location in the game scene in the second time period, the second character needs to fight in the game scene in the third time period, and so on. There is no limitation on the time period here.

[0124] For example, reference Figure 1d During the first time period, the second character walks along a preset path in the game scene. The mirror character is not restricted by the second character's path and can control the first character and the mirror character to interact one-on-one. However, during the second time period, the second character needs to rest at a preset location. At this time, the mirror character is affected by the second character's rest and needs to rest at the preset location as well. Therefore, the one-on-one interaction between the first character and the mirror character ends.

[0125] In some embodiments, the behavior list includes a first behavior and a second behavior, the first behavior being a behavior that is prioritized for execution at the current moment, and the second behavior being a behavior that is not prioritized for execution at the current moment. After controlling the first character and the mirror character to perform a one-to-one interaction based on the behavior list and the one-to-one interaction request, the device is further configured to:

[0126] When the first behavior in the behavior list corresponds to the current moment, the mirror character is controlled to end the one-to-one interaction with the first character;

[0127] When the second behavior in the behavior list corresponds to the current moment, the mirror character is controlled to perform a one-to-one interaction with the first character.

[0128] The first action is the action that takes priority at the current moment. For example, if the action list contains two actions in the same time period, the second character should prioritize the first action. For example, at the same moment, the action list contains the first action and a one-on-one interaction action. Since the first action is set as the priority action at the current moment, the mirror character will be influenced by the second character's action list and will also execute the first action. This allows the mirror character to interact one-on-one with the first character.

[0129] The second behavior is a behavior that is not prioritized at the current moment. For example, if the behavior list contains two behaviors in the same time period, the second character does not need to execute the second behavior first. For example, at the same time, the behavior list contains the second behavior and a one-on-one interaction behavior. Since the second behavior is set as the behavior that is not prioritized at the current moment, the mirror character will not be affected by the second character's behavior list, and the mirror character can control the one-on-one interaction with the first character.

[0130] In some embodiments, in order to consider how to control the one-to-one interaction between the first character and the mirror character, the behavior list includes the behavior type, behavior priority, and behavior execution period. Based on the behavior list and the one-to-one interaction request, the first character and the mirror character are controlled to perform the one-to-one interaction. The device is used to:

[0131] Based on a one-to-one interaction request, obtain the behavior execution time period corresponding to the current moment;

[0132] Determine the type of behavior based on the time period during which the behavior is performed;

[0133] Determine the corresponding behavior priority based on the behavior type;

[0134] The first role and the mirror role are controlled to interact one-to-one according to the behavior priority.

[0135] The behavior execution period refers to a pre-set time period for executing a preset behavior. For example, during the first preset time period, the second character needs to walk in the game scene, during the second preset time period, the second character needs to fight, during the third preset time period, the second character needs to rest, and so on.

[0136] Among them, behavior priority refers to the order in which behaviors are executed.

[0137] For example, in the same time period, the mirror character needs to perform the first behavior based on the behavior of the second character. At this time, the mirror character also needs to have a one-to-one interaction with the first character. According to the preset behavior priority, the first behavior is the behavior that needs to be executed first, which can cause the mirror character to end the one-to-one interaction with the first character.

[0138] For example, in the same time period, the mirror character needs to perform the second behavior based on the behavior of the second character. At this time, the mirror character also needs to interact one-on-one with the first character. According to the preset behavior priority, the second behavior is not a behavior that does not need to be executed first, so the mirror character and the first character can interact one-on-one.

[0139] Among them, the behavior type is used to classify the preset behaviors. For example, if the second character needs to take a rest, the behavior type corresponding to the rest is the first behavior. If the second character needs to walk, the behavior type corresponding to the walk is the second behavior. The interaction between the mirror character and the first character corresponds to the third behavior. When the first and third behaviors correspond to the same time period, the first behavior is executed first; when the second and third behaviors correspond to the same time period, the third behavior is executed first.

[0140] In some embodiments, in order to implement one-to-one interaction between a first character and a mirror character by controlling the priority, the device controls the one-to-one interaction between the first character and the mirror character according to the behavior priority, and is configured to:

[0141] Get the priority value of the behavior priority;

[0142] The first character and the mirror character are controlled to interact one-to-one according to the priority value.

[0143] Among them, the priority value is used to mark the execution order of the behavior. For example, the first behavior refers to the behavior that is executed first at the current moment, and the corresponding priority value can be 1 or 3. The priority value corresponding to the interaction can be 2. The second behavior refers to the behavior that is not executed first at the current moment, and the corresponding priority value can be 3 or 1.

[0144] For example, when the first behavior corresponds to 1 and the second behavior corresponds to 3, when two preset behaviors correspond to the same time period, the behavior with the smaller priority value is executed first.

[0145] For example, when the first behavior corresponds to 3 and the second behavior corresponds to 1, when two preset behaviors correspond to the same time period, the behavior with the larger priority value is executed first.

[0146] 140. In response to the one-to-one interaction ending, control the mirror character to move in the game scene.

[0147] In some embodiments, in order to consider how the mirror character moves in the game scene after the one-on-one interaction with the first character ends, the character control unit is configured to:

[0148] Determine a pursuit path based on the position coordinates and movement direction of the second character in the game scene and the position coordinates of the mirror character in the game scene;

[0149] Determine the pursuit speed according to the moving direction and speed of the second character in the game scene;

[0150] In response to the one-to-one interaction ending, the mirror character is controlled to move in the game scene according to the pursuit path and the pursuit speed.

[0151] The pursuit path is the movement path of the mirror character chasing the second character after the one-to-one interaction ends.

[0152] The catching-up speed is the speed at which the mirror character catches up with the second character after the one-to-one interaction ends.

[0153] When the second character moves away from the mirror character, the speed of the mirror character is greater than the speed of the second character.

[0154] When the second character moves toward the mirror character, the speed of the mirror character may be smaller than or greater than that of the second character.

[0155] The pursuit path may be calculated in the first terminal or in the server running the game.

[0156] In some embodiments, in order to consider how to end the one-to-one interaction between the mirror character and the first character, the character control unit is configured to:

[0157] In response to the end of the one-to-one interaction, or in response to executing a preset behavior for the second character, controlling the mirror character to end the one-to-one interaction with the first character;

[0158] Control the mirror character to move in the game scene.

[0159] For example, the end of the one-to-one interaction can be achieved by the user initiating a trigger operation on the user operation interface on terminal a. After the running game receives the trigger operation, it responds to the trigger operation, and the one-to-one interaction between the mirror character and the first character ends.

[0160] Preset actions are pre-set actions in the system, events that the second character must perform at a specific time. For example, the second character needs to rest within a specified time, the second character needs to be on duty within a specified time, the second character needs to provide dialogue prompts to the first character within a specified time, the second character needs to fight within a specified time, etc. The specified time is not limited here.

[0161] For example, in response to executing a preset behavior for the second character, the second character needs to execute the preset behavior. Since the mirror character is mirrored by the second character, that is, when the mirror character executes the preset behavior on the second character, the mirror character also needs to execute the preset behavior. At this time, the mirror character needs to end the one-to-one interaction with the first character.

[0162] In some embodiments, in order to consider that after the mirror character and the first character end the one-to-one interaction, the mirror character still moves in the game scene. At this time, terminal a responds to the interaction request for the first character and the mirror character. How does the mirror character implement the interaction with the first character? After responding to the end of the one-to-one interaction and controlling the mirror character to move in the game scene, the device is further used to:

[0163] In response to an interaction request for the first character and the mirror character, obtaining a behavior list of the mirror character, the behavior list including preset behaviors identical to those of the second character;

[0164] Determine the preset behavior in the behavior list corresponding to the current moment and obtain the current preset behavior;

[0165] Control the first character and the mirror character to interact according to the behavior priority of the current preset behavior.

[0166] The interaction request is used to request interaction between two virtual characters. For example, the interaction request is used to request a one-to-one interaction between the mirror character and the first character, or it can be used to request a non-one-to-one interaction between the mirror character and the first character.

[0167] Among them, non-one-to-one interaction means that you can interact with multiple virtual characters, for example, the second character can interact with multiple first characters.

[0168] The current preset behavior is the behavior executed at the current moment. For example, terminal a responds to the interaction request for the first character and the mirror character. The behavior list can correspond to two behaviors in the same time period, one of which can be the first behavior or the second behavior, and the other behavior is the interactive behavior.

[0169] For example, if one of the two behaviors is the first behavior and the other is an interactive behavior, since the first behavior is the behavior that needs to be executed first, no interactive behavior will occur between the first character and the mirror character. If one of the two behaviors is the second behavior and the other is an interactive behavior, since the second behavior does not need to be executed first, an interactive behavior will occur between the first character and the mirror character.

[0170] In some embodiments, when the mirror character performs the first behavior in the game scene, in response to an interaction request for the first character and the mirror character, a status notification is displayed in the game screen, and the status notification is used to inform the mirror character of the reason for rejecting the interaction request.

[0171] Among them, the status notification is used to inform the mirror character that the second character is performing the first behavior. For example, if the first behavior is resting, the corresponding status notification content is "It's too late, I want to go home and sleep"; if the first behavior is on duty, the corresponding status notification content is "The time is up, I need to go on duty"; if the first behavior is fighting, the corresponding status notification content is "The enemy is invading, I need to go to fight", and so on.

[0172] In some embodiments, in order to take into account that when a first character initiates a one-to-one interaction request to a second character, the second character may reject the request due to a preset behavior, the second display unit is used to:

[0173] In response to a one-to-one interaction request between the first character and the second character, obtaining a preset behavior performed by the second character at a current moment to obtain a current preset behavior;

[0174] When the current preset behavior is the behavior that is preferentially executed at the current moment, controlling the second character to refuse one-to-one interaction with the first character;

[0175] When the current preset behavior is a behavior that is not executed with priority at the current moment, a mirror image character of the second character is displayed in the game screen, and the display of the second character is canceled.

[0176] For example, in response to a one-to-one interaction request between the first character and the second character, the second character needs to first obtain the preset behavior to be performed at the current moment and obtain the current preset behavior. At this time, the behavior that the second character needs to perform at the current moment corresponds to both the current preset behavior and the one-to-one interaction behavior, and the current preset behavior is the behavior that is executed first at the current moment. Therefore, the second character will refuse to have a one-to-one interaction with the first character and give priority to executing the current preset behavior.

[0177] 150. When the mirror character moves to the position of the second character, the mirror character is canceled from the game screen and the second character is redisplayed.

[0178] For example, when the mirror character moves to the position of the second character in the game scene, terminal a starts rendering the second character and stops rendering the mirror character.

[0179] In some embodiments, in response to the one-to-one interaction ending, a broadcast of a second character in the game scene is received to display the second character.

[0180] For example, after the one-to-one interaction between the first character and the mirror character ends, terminal a receives a broadcast to the second character in the game scene, so that the mirror character can obtain the position of the second character. The mirror character begins to move to the position of the second character in the game scene. Terminal a renders the second character and stops rendering the mirror character.

[0181] In some embodiments, in order to take into account the existence of data of multiple mirror characters that are not rendered in the server running the game, the relevant data of the mirror character is deleted after the rendering of the mirror character is stopped.

[0182] In some embodiments, in order to consider that after the one-to-one interaction ends, the terminal does not render the mirror character, but only renders the second character, so that the display switching process between the mirror character and the second character does not cause abruptness to the user's perception, before canceling the display of the mirror character in the game screen, the device is further configured to:

[0183] Get the preset behavior performed by the second character at the current moment;

[0184] Control the mirror character to perform the preset behavior.

[0185] For example, a terminal running a game may display a second character, but some terminals may not display the second character, but only a mirror image of the second character, after responding to a one-on-one interaction request between the first and second characters. After the one-on-one interaction between the first and second characters ends, to reduce data redundancy in the game and prevent it from affecting subsequent gameplay, the mirror image character will move to the second character's location and perform the second character's pre-set actions. After that, rendering of the mirror image character will stop, and the second character will be re-rendered. This ensures that when the user views the screen displayed on the terminal, they will not be confused by the second character's actions.

[0186] As can be seen from the above, an embodiment of the present invention can display a game screen, which includes at least a part of the game scene, and the game scene includes a first character and a second character, the first character is a game character controlled by the terminal, and the second character is a game character that cannot be controlled by the terminal; in response to a one-to-one interaction request for the first character and the second character, a mirror character of the second character is displayed in the game screen, and the second character is canceled; based on the one-to-one interaction request, the first character and the mirror character are controlled to perform a one-to-one interaction; in response to the end of the one-to-one interaction, the mirror character is controlled to move in the game scene; when the mirror character moves to the position of the second character, the mirror character is canceled from the game screen, and the second character is redisplayed.

[0187] In an embodiment of the present invention, after responding to a one-to-one interaction request between a first character and a second character, only the mirror image of the second character will be displayed on the first terminal, and the first terminal will cancel the display of the second character. Moreover, after the one-to-one interaction ends, the first character and the mirror image character have no interactive connection, and the mirror image character moves the position of the second character in the game scene. The terminal then cancels the display of the mirror image character and redisplays the second character, so that the displayed screen does not render the second character and the mirror image character at the same time, thereby avoiding the displayed game screen causing visual abruptness to the user.

[0188] The method described in the above embodiment will be further described below.

[0189] In this embodiment, the method of the embodiment of the present application will be described in detail by taking application in a terminal as an example.

[0190] The specific process of a role interaction method is as follows:

[0191] (1) Displaying a game screen, where the game screen includes at least a portion of a game scene, where the game scene includes a first character and a second character, where the first character is a game character controlled by the terminal, and the second character is a game character that cannot be controlled by the terminal.

[0192] (2) In response to a one-to-one interaction request between the first character and the second character, a mirror image of the second character is displayed on the game screen, and the display of the second character is canceled.

[0193] For example, when a user initiates a one-to-one interaction request between a first character and a second character through a control terminal, the mirror character of the second character is displayed, and the second character is canceled. At this time, the first character is interacting one-to-one with the mirror character (for example, the mirror character escorts the first character with coordinate displacement, the first character fights with the mirror character, the mirror character and the first character fish at a specific location, etc.).

[0194] (2) Based on the one-to-one interaction request, control the first character and the mirror character to perform one-to-one interaction.

[0195] For example, when the mirror character and the first character interact one-on-one, the second character performs the first behavior in the game scene. At this time, terminal a does not display the second character, but only displays the mirror character. If the first character controlled by other terminal b does not interact one-on-one with the second character, then the other terminal b displays the second character.

[0196] (3) In response to the end of the one-to-one interaction, the mirror character is controlled to move in the game scene.

[0197] (4) When the mirror character moves to the position of the second character, the mirror character is canceled from the game screen and the second character is redisplayed.

[0198] For example, when the one-to-one interaction ends, the mirror character will trigger a process that overlaps with the second character. The mirror character will receive the current position, action, moving direction and moving speed of the second character. The mirror character will move the position of the second character according to the pursuit path and pursuit speed, and execute the current preset behavior performed by the second character at the current moment (for example, if the second character is sweeping the floor, the mirror character will also start sweeping the floor). After they are consistent, the mirror character will not be displayed and the second character will be displayed again. The performance of the mirror character when overlapping with the second character is continuous. After the mirror character is not displayed, the behavior of the second character displayed by terminal a is consistent with that displayed by other terminals b.

[0199] In some embodiments, after controlling the mirror character to move in the game scene in response to the one-to-one interaction ending, the device is further configured to:

[0200] In response to an interaction request for the first character and the mirror character, obtaining a behavior list of the mirror character, the behavior list including preset behaviors identical to those of the second character;

[0201] Determine the preset behavior in the behavior list corresponding to the current moment to obtain the current preset behavior; and control the first character and the mirror character to interact according to the behavior priority of the current preset behavior.

[0202] For example, if terminal a initiates an interaction request between the first character and the mirrored character before the mirrored character moves to the second character's location, and the mirrored character learns that the second character is currently performing the second behavior, the first character controlled by terminal a interacts with the mirrored character again. The mirrored character will then stop moving toward the second character and begin a new round of interaction, without mirroring the second character again until the interaction is complete, at which point the mirrored character will be relocated to the second character's location. These interactions can be one-to-one or non-one-to-one.

[0203] In some embodiments, when the mirror character performs the first behavior in the game scene, in response to an interaction request for the first character and the mirror character, a status notification is displayed in the game screen, and the status notification is used to inform the mirror character of the reason for rejecting the interaction request.

[0204] For example, when the second character performs the first behavior in the game, the first behavior can be going to bed at night, routine prayers on Sundays, etc. These events can be notified to the mirror character through the behavior list; if the second character performs the first behavior without creating a mirror character for the second character, the terminal will not mirror the second character, and the second character will inform the user that one-to-one interaction is impossible (for example, the second character will say, it’s too late, I’m going home to sleep); if the first character has already interacted one-to-one with the mirror character, the mirror character will obtain the preset behavior to be performed by the second character through the behavior list, inform the user "I’m going back to sleep", and automatically end the one-to-one interaction between the mirror character and the first character. Then the mirror character will overlap with the second character's position and behavior, and the process will not be interrupted until the position and action of the mirror character are consistent with the second character, and the mirror character will not be displayed, but the second character will be displayed.

[0205] For example, Figure 2aAs described, four positions at four time points are displayed; at time 1, a one-to-one interaction request is displayed between the first character 02 and the second character 01, and the mirror character 03 is displayed. Starting from time 1, the second character 01 is not displayed in the first character 02 controlling the first terminal, and then the first character 02 leads the mirror character 03 to move to the lower left corner area on the way at time 3. At this time, the second character 01 displayed on the other terminal b executes the preset behavior and moves to the position corresponding to time 3; at this time, after the one-to-one interaction between the first character 02 and the mirror character 03 is completed, the mirror character 03 chases the second character 01 until the position at time 4, so that the mirror character 03 executes the same preset behavior as the second character 01. At this time, terminal a does not display the mirror character 03, but displays the second character 01.

[0206] In some embodiments, the second character performs a preset behavior in the game scene.

[0207] For example, the second character will get up at 8 o'clock, go for a morning run, go to the restaurant to help cook at 11 o'clock in the morning, go to the park to appreciate flowers in the afternoon, and go home to sleep at 21 o'clock in the evening. At the same time, the second character will also make changes according to the daily environment. For example, if it rains, the morning run will be cancelled and replaced by sweeping the floor at home. In the afternoon, he may go to the library to read.

[0208] For example, reference Figure 2b When terminal a initiates an interaction request, if the interaction request is a non-one-to-one interaction, the second character and the first character directly perform the non-one-to-one interaction until the end of the non-one-to-one interaction; if the interaction request is a one-to-one interaction, the mirror character of the second character is displayed, the second character is not displayed, and the mirror character and the first character perform a one-to-one interaction.

[0209] For example, reference Figure 2b If the second character performs the interaction, then after the non-one-to-one interaction ends, the second character performs the second behavior (daily process) in the game scene; if the mirror character performs the interaction, then after the one-to-one interaction ends, the mirror character will trigger a reset check and enter the reset process, that is, the position coordinates, moving direction and moving speed of the second character in the game scene are obtained, so that the chasing path can be obtained based on the position coordinates, moving direction and position coordinates of the second character in the game scene, and the moving speed of the mirror character can be obtained based on the chasing path and the moving speed of the second character. The mirror character moves to the position of the second character according to the chasing path and the moving speed, and makes the mirror character perform the same preset behavior as the second character, so that the mirror character is not displayed, but the second character is displayed.

[0210] For example, reference Figure 2bDuring the reset process, if terminal a responds to an interaction request for the first character and the mirror character (whether it is a one-to-one interaction or a non-one-to-one interaction), the mirror character returns to the interaction process until the interaction ends (when a mirror character exists, the first character controlled by terminal a cannot directly interact with the second character); the interaction can end when terminal a actively requests it to end, or when the mirror character actively ends it when the second character performs the first behavior; when the first behavior is being performed, the second character or the mirror character cannot interact with the first character.

[0211] In some embodiments, the mirror character is created on the back end of the game and is driven by the back end. The mirror character can be created on the front end or on the back end. If it is for performance considerations, it is created on the front end. If it is for security considerations, it is created on the back end. The two are used in combination in the game.

[0212] In some embodiments, the second display unit is configured to:

[0213] The broadcast to the second character in the game scene is not received so that the second character is not displayed.

[0214] In some embodiments, the game scene further includes a third character, where the third character is a game character controlled by another terminal. After displaying the mirror image of the second character, the device is further configured to:

[0215] The mirror role is not broadcasted so that other terminals controlling the third role do not display the mirror role.

[0216] For example, reference Figure 2b Terminal a is a client interacting with a second role, which runs on a server. The arrows between terminals represent a protocol request. The mirror role may run on a server or directly on terminal a. Terminal b without a mirror role receives synchronous broadcasts from the second role throughout the entire process. Terminal a currently interacting with the mirror role may not receive the broadcasted second role depending on the situation. The entire second role broadcast process is executed continuously and regularly. In addition to creating a mirror in the backend, initiating / ending an interaction only changes the list of second roles that need to be broadcasted to each terminal. There will be no immediate notification from the second role, and the entire process will not change the broadcast rules of the second role.

[0217] As can be seen from the above, this technology generates an independent mirror image each time a one-to-one interaction occurs, which does not interfere with the preset behavior to be performed by the second character. Terminal a displays the mirror character in the interaction with the first character, and in the connection after the interaction, a set of reset rules are adopted to ensure the behavioral continuity of the mirror character and the second character when they overlap, while also avoiding any mistakes or errors. There is no need to record the status of each mirror character for a long time, which reduces the game maintenance cost and improves the performance of the second character and the mirror character in the game. At the same time, our mirror rules for the second character have an additional function that allows the behavior of the second character to change the behavior rules of the mirror character, obtain the behavior list of the second character through the mirror character, and allow the design of a regular behavior of the second character to cause the "resonance" of the mirror character.

[0218] To better implement the above method, the present application also provides a character interaction device. The character interaction device can be integrated into an electronic device, such as a terminal or a server. The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer, etc. The server can be a single server or a server cluster consisting of multiple servers.

[0219] For example, in this embodiment, the method of the embodiment of the present application will be described in detail by taking the role interaction device being specifically integrated into a terminal as an example.

[0220] For example, Figure 3 As shown, the character interaction device may include a first display unit 310, a second display unit 320, an interaction unit 330, a character control unit 340, and an interaction ending unit 350, as follows:

[0221] (1) The first display unit 310.

[0222] The first display unit 310 can be used to display a game screen, which includes at least a portion of a game scene. The game scene includes a first character and a second character. The first character is a game character controlled by the terminal, and the second character is a game character that cannot be controlled by the terminal.

[0223] (2) The second display unit 320.

[0224] The second display unit 320 may be configured to display a mirror image of the second character in the game screen and cancel the display of the second character in response to a one-to-one interaction request between the first character and the second character.

[0225] In some embodiments, the second display unit is configured to:

[0226] In response to a one-to-one interaction request between the first character and the second character, mirroring the second character to obtain a mirrored character;

[0227] Displays a mirror image of the second character on the game screen.

[0228] (3) Interaction unit 330.

[0229] The interaction unit 330 may be configured to control the first character and the mirror character to perform a one-to-one interaction based on the one-to-one interaction request.

[0230] In some embodiments, the interaction unit is configured to:

[0231] Get the list of behaviors of the second role;

[0232] Based on the behavior list and the one-to-one interaction request, the first role and the mirror role are controlled to perform one-to-one interaction.

[0233] In some embodiments, the behavior list includes a first behavior and a second behavior, the first behavior being a behavior that is prioritized for execution at the current moment, and the second behavior being a behavior that is not prioritized for execution at the current moment. After controlling the first character and the mirror character to perform a one-to-one interaction based on the behavior list and the one-to-one interaction request, the device is further configured to:

[0234] When the first behavior in the behavior list corresponds to the current moment, the mirror character is controlled to end the one-to-one interaction with the first character;

[0235] When the second behavior in the behavior list corresponds to the current moment, the mirror character is controlled to perform a one-to-one interaction with the first character.

[0236] In some embodiments, the behavior list includes behavior type, behavior priority, and behavior execution period. Based on the behavior list and the one-to-one interaction request, the device controls the first character and the mirror character to perform a one-to-one interaction. The device is configured to:

[0237] Based on a one-to-one interaction request, obtain the behavior execution time period corresponding to the current moment;

[0238] Determine the type of behavior based on the time period during which the behavior is performed;

[0239] Determine the corresponding behavior priority based on the behavior type;

[0240] The first role and the mirror role are controlled to interact one-to-one according to the behavior priority.

[0241] In some embodiments, the first character and the mirror character are controlled to perform one-to-one interaction according to the behavior priority, and the device is used to:

[0242] Get the priority value of the behavior priority;

[0243] The first character and the mirror character are controlled to interact one-to-one according to the priority value.

[0244] (4) Character control unit 340.

[0245] The character control unit 340 may be configured to control the mirror character to move in the game scene in response to the end of the one-to-one interaction.

[0246] In some embodiments, the character control unit is configured to:

[0247] In response to the end of the one-to-one interaction, or in response to executing a preset behavior for the second character, controlling the mirror character to end the one-to-one interaction with the first character;

[0248] Control the mirror character to move in the game scene.

[0249] In some embodiments, after controlling the mirror character to move in the game scene in response to the one-to-one interaction ending, the device is further configured to:

[0250] In response to an interaction request for the first character and the mirror character, obtaining a behavior list of the mirror character, the behavior list including preset behaviors identical to those of the second character;

[0251] Determine the preset behavior in the behavior list corresponding to the current moment and obtain the current preset behavior;

[0252] Control the first character and the mirror character to interact according to the behavior priority of the current preset behavior.

[0253] (5) Interaction ending unit 350.

[0254] The interaction ending unit 350 may be configured to cancel display of the mirror character in the game screen and redisplay the second character when the mirror character moves to the position of the second character.

[0255] In some embodiments, the second display unit, the device is configured to:

[0256] In response to a one-to-one interaction request between the first character and the second character, obtaining a preset behavior performed by the second character at a current moment to obtain a current preset behavior;

[0257] When the current preset behavior is the behavior that is preferentially executed at the current moment, controlling the second character to refuse one-to-one interaction with the first character;

[0258] When the current preset behavior is a behavior that is not executed with priority at the current moment, a mirror image character of the second character is displayed in the game screen, and the display of the second character is canceled.

[0259] In some embodiments, before canceling the display of the mirror character on the game screen, the device is further configured to:

[0260] Get the preset behavior performed by the second character at the current moment;

[0261] Control the mirror character to perform the preset behavior.

[0262] In specific implementation, the above units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above units can be found in the previous method embodiments and will not be repeated here.

[0263] As can be seen from the above, the character interaction device of this embodiment displays the game screen by the first display unit, and the game screen includes at least part of the game scene, and the game scene includes a first character and a second character, the first character is a game character controlled by the terminal, and the second character is a game character that cannot be controlled by the terminal; the second display unit responds to a one-to-one interaction request for the first character and the second character, displays the mirror character of the second character in the game screen, and cancels the display of the second character; the interaction unit controls the first character and the mirror character to perform a one-to-one interaction based on the one-to-one interaction request; the character control unit controls the mirror character to move in the game scene in response to the end of the one-to-one interaction; and the interaction end unit cancels the display of the mirror character in the game screen and redisplays the second character when the mirror character moves to the position of the second character.

[0264] Therefore, the embodiment of the present application improves the stability of the interaction between two virtual characters.

[0265] The present application also provides an electronic device, which may be a terminal, a server, or the like. The terminal may be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a personal computer, or the like; the server may be a single server or a server cluster consisting of multiple servers, or the like.

[0266] In some embodiments, the character interaction device may also be integrated into multiple electronic devices. For example, the character interaction device may be integrated into multiple servers, and the character interaction method of the present application may be implemented by the multiple servers.

[0267] In this embodiment, the electronic device of this embodiment is a server as an example for detailed description, for example, Figure 4 , which shows a schematic diagram of the structure of the server involved in the embodiment of the present application, specifically:

[0268] The server may include one or more processing core processors 410, one or more computer-readable storage media memories 420, a power supply 430, an input module 440, and a communication module 450. It will be understood by those skilled in the art that Figure 4The server structure shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0269] Processor 410 is the server's control center, connecting various components of the server using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 420 and accessing data stored in memory 420, it executes various functions of the character interaction method and processes data, thereby providing overall control of the character interaction method. In some embodiments, processor 410 may include one or more processing cores. In some embodiments, processor 410 may integrate an application processor and a modem processor, with the application processor primarily handling the operating system, user interface, and system operations, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 410.

[0270] Memory 420 can be used to store software programs and modules. Processor 410 executes various functional applications and data processing by running the software programs and modules stored in memory 420. Memory 420 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and at least one system required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created based on the use of the character interaction method. In addition, memory 420 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, memory 420 may also include a memory controller to provide processor 410 with access to memory 420.

[0271] The server also includes a power supply 430 that supplies power to various components. In some embodiments, the power supply 430 can be logically connected to the processor 410 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 430 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0272] The server may further include an input module 440, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0273] The server may also include a communication module 450. In some embodiments, the communication module 450 may include a wireless module. The server may use the wireless module of the communication module 450 to perform short-range wireless transmission, thereby providing users with wireless broadband Internet access. For example, the communication module 450 may be used to help users send and receive emails, browse web pages, and access streaming media.

[0274] Although not shown, the server may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 410 in the server will load the executable files corresponding to the processes of one or more systems into the memory 420 according to the following instructions, and the processor 410 will run the systems stored in the memory 420 to implement various functions as follows:

[0275] Displaying a game screen, the game screen including at least a portion of a game scene, the game scene including a first character and a second character, the first character being a game character controlled by the terminal, and the second character being a game character that cannot be controlled by the terminal;

[0276] In response to a one-to-one interaction request for the first character and the second character, displaying a mirror image of the second character on the game screen and canceling the display of the second character;

[0277] Based on the one-to-one interaction request, control the first character and the mirror character to perform one-to-one interaction;

[0278] In response to the one-to-one interaction ending, controlling the mirror character to move in the game scene;

[0279] When the mirror character moves to the position of the second character, the mirror character is cancelled from the game screen and the second character is redisplayed.

[0280] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0281] As can be seen from the above, the embodiment of the present invention improves the stability of the interaction between the two virtual characters, and the game screen will not display the second character and the mirror character at the same time, avoiding the visual abruptness of the displayed game screen to the user, thereby improving the user experience.

[0282] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0283] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps of any of the character interaction methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:

[0284] Displaying a game screen, the game screen including at least a portion of a game scene, the game scene including a first character and a second character, the first character being a game character controlled by the terminal, and the second character being a game character that cannot be controlled by the terminal;

[0285] In response to a one-to-one interaction request for the first character and the second character, displaying a mirror image of the second character on the game screen and canceling the display of the second character;

[0286] Based on the one-to-one interaction request, control the first character and the mirror character to perform one-to-one interaction;

[0287] In response to the one-to-one interaction ending, controlling the mirror character to move in the game scene;

[0288] When the mirror character moves to the position of the second character, the mirror character is cancelled from the game screen and the second character is redisplayed.

[0289] The storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0290] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the character interaction aspects provided in the above-described embodiments.

[0291] Since the instructions stored in the storage medium can execute the steps in any one of the role interaction methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the role interaction methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0292] The above is a detailed introduction to a role interaction method, device, terminal, storage medium and program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A role interaction method, characterized in that: include: Displaying a game screen, the game screen including at least a portion of a game scene, the game scene including a first character and a second character, the first character being a game character controlled by the terminal, and the second character being a game character that cannot be controlled by the terminal; In response to a one-to-one interaction request for the first character and the second character, displaying a mirror image of the second character in the game screen and canceling the display of the second character, comprising: In response to a one-to-one interaction request between the first role and the second role, obtaining a preset behavior performed by the second role at a current moment to obtain a current preset behavior; When the current preset behavior is the behavior that is preferentially executed at the current moment, controlling the second character to refuse one-to-one interaction with the first character; When the current preset behavior is an behavior that is not prioritized for execution at the current moment, displaying a mirror image of the second character in the game screen and canceling the display of the second character, wherein the terminal controlling the first character displays the mirror image, and the game screens of other terminals do not display the mirror image; Based on the one-to-one interaction request, controlling the first character and the mirror character to perform a one-to-one interaction, wherein, when the first character interacts with the mirror character, other first characters controlled by the other terminals do not interrupt the one-to-one interaction between the first character and the mirror character; In response to the one-to-one interaction ending, controlling the mirror character to move in the game scene; When the mirror character moves to the position of the second character, the mirror character is canceled from the game screen and the second character is redisplayed, wherein the game screen does not render the second character and the mirror character at the same time.

2. The role interaction method according to claim 1, wherein: In response to the one-to-one interaction ending, controlling the mirror character to move in the game scene includes: determining a pursuit path according to the position coordinates and the moving direction of the second character in the game scene and the position coordinates of the mirror character in the game scene; determining a catching-up speed according to the moving direction and moving speed of the second character in the game scene; In response to the one-to-one interaction ending, the mirror character is controlled to move in the game scene according to the pursuit path and the pursuit speed.

3. The role interaction method according to claim 1, wherein: In response to the one-to-one interaction ending, controlling the mirror character to move in the game scene includes: In response to the end of the one-to-one interaction, or in response to executing a preset behavior for the second character, controlling the mirror character and the first character to end the one-to-one interaction; Control the mirror character to move in the game scene.

4. The role interaction method according to claim 1, wherein: The controlling the first character and the mirror character to perform a one-to-one interaction based on the one-to-one interaction request includes: Get the behavior list of the second role; Based on the behavior list and the one-to-one interaction request, the first character and the mirror character are controlled to perform one-to-one interaction.

5. The role interaction method according to claim 4, characterized in that: The behavior list includes a first behavior and a second behavior, wherein the first behavior refers to a behavior that is preferentially executed at the current moment, and the second behavior refers to a behavior that is not preferentially executed at the current moment. After controlling the first character and the mirror character to perform a one-to-one interaction based on the behavior list and the one-to-one interaction request, the method further includes: When the current moment corresponds to the first behavior in the behavior list, controlling the mirror character to end the one-to-one interaction with the first character; When the current moment corresponds to the second behavior in the behavior list, the mirror character is controlled to perform a one-to-one interaction with the first character.

6. The role interaction method according to claim 4, characterized in that: The behavior list includes a behavior type, a behavior priority, and a behavior execution period. Controlling the first role and the mirror role to perform a one-to-one interaction based on the behavior list and the one-to-one interaction request includes: Based on the one-to-one interaction request, obtaining the behavior execution time period corresponding to the current moment; determining the behavior type according to the behavior execution period; Determining the corresponding behavior priority according to the behavior type; The first character and the mirror character are controlled to perform one-to-one interaction according to the behavior priority.

7. The role interaction method according to claim 6, characterized in that: The controlling the first character and the mirror character to perform one-to-one interaction according to the behavior priority includes: Get the priority value of the behavior priority; The first character and the mirror character are controlled to perform one-to-one interaction according to the priority value.

8. The role interaction method according to claim 1, wherein: After controlling the mirror character to move in the game scene in response to the one-to-one interaction ending, the method further includes: In response to an interaction request for the first character and the mirror character, obtaining a behavior list of the mirror character, wherein the behavior list includes the same preset behaviors as those of the second character; Determine a preset behavior in the behavior list corresponding to the current moment to obtain a current preset behavior; The first character and the mirror character are controlled to interact according to the behavior priority of the current preset behavior.

9. The role interaction method according to claim 1, wherein: The step of displaying a mirror image of the second character in the game screen in response to a one-to-one interaction request between the first character and the second character comprises: In response to a one-to-one interaction request between the first character and the second character, mirroring the second character to obtain a mirrored character; A mirror image character of the second character is displayed on the game screen.

10. The role interaction method according to claim 1, wherein: Before canceling the display of the mirror character in the game screen, the method further includes: Obtaining a preset behavior performed by the second role at the current moment; Control the mirror character to perform the preset behavior.

11. A character interaction device, characterized in that: include: a first display unit, configured to display a game screen, the game screen including at least a portion of a game scene, the game scene including a first character and a second character, the first character being a game character controlled by the terminal, and the second character being a game character that cannot be controlled by the terminal; The second display unit is configured to display a mirror image of the second character in the game screen in response to a one-to-one interaction request between the first character and the second character, and to cancel the display of the second character, comprising: In response to a one-to-one interaction request between the first role and the second role, obtaining a preset behavior performed by the second role at a current moment to obtain a current preset behavior; When the current preset behavior is the behavior that is preferentially executed at the current moment, controlling the second character to refuse one-to-one interaction with the first character; When the current preset behavior is an behavior that is not prioritized for execution at the current moment, displaying a mirror image of the second character in the game screen and canceling the display of the second character, wherein the terminal controlling the first character displays the mirror image, and the game screens of other terminals do not display the mirror image; an interaction unit, configured to control the first character and the mirror character to perform a one-to-one interaction based on the one-to-one interaction request, wherein, when the first character interacts with the mirror character, other first characters controlled by other terminals do not interrupt the one-to-one interaction between the first character and the mirror character; a character control unit, configured to control the mirror character to move in the game scene in response to the end of the one-to-one interaction; An interaction ending unit is used to cancel the display of the mirror character in the game screen and redisplay the second character when the mirror character moves to the position of the second character, wherein the game screen will not render the second character and the mirror character at the same time.

12. A terminal, characterized in that: The system comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps of the role interaction method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the character interaction method according to any one of claims 1 to 10.

14. A computer program product, characterized in that The method comprises a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the steps of the role interaction method according to any one of claims 1 to 10 are implemented.