Method and device for interaction of game characters, electronic device, and storage medium

CN117065336BActive Publication Date: 2026-09-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210505016.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2026-09-25
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

组队与敌方战斗、搜寻装备时,同一队玩家所控制的多个游戏角色在游戏场景中可能分散开,这种情况下,孤立的游戏角色可能无法及时接受同队游戏角色的援助,受到敌方持续围攻,从而在游戏中被淘汰

Benefits of technology

[0035]本申请方案,当第一游戏角色施放的第一游戏道具与第二游戏角色施放的第二游戏道具满足连接条件时,可以控制第一游戏道具与第二游戏道具连接,生成第一游戏角色至第二游戏角色的第二轨迹,并控制第一游戏角色沿第二轨迹向第二游戏角色移动;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117065336B_ABST
    Figure CN117065336B_ABST
Patent Text Reader

Abstract

The application provides a game role interaction method and device, an electronic device and a computer readable storage medium. The method comprises the following steps: controlling a first game role to cast a first game prop, wherein the first game prop is used to determine a target attachment position in a game scene, generate a first track from the first game role to the target attachment position, and control the first game role to move to the target attachment position along the first track; in response to the first game prop and a second game prop satisfying a connection condition, controlling the first game prop and the second game prop to be connected, generating a second track from the first game role to a second game role, wherein the second game prop is a prop cast by the second game role in the game scene; and controlling the first game role to move to the second game role along the second track. Since the game props of two game roles can be used in cooperation, the interaction range is expanded by means of the respective game props during interaction, and mutual assistance can be realized more quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method and apparatus for interacting with game characters, an electronic device, and a computer-readable storage medium. Background Technology

[0002] In massively multiplayer online games (MMORPGs), players often team up to complete missions. When fighting enemies and searching for equipment, the multiple characters controlled by players in the same team may become scattered in the game scene. In this case, isolated characters may not be able to receive timely assistance from their teammates, and may be continuously attacked by the enemy, eventually leading to their elimination from the game. Summary of the Invention

[0003] The purpose of this application is to provide a method, device, electronic device, and computer-readable storage medium for interacting game characters, enabling game characters scattered in a game scene to interact, thereby achieving the effect of assistance and coordinated movement between game characters.

[0004] On one hand, this application provides a method for interacting with a game character, which provides a graphical user interface through a terminal device. The graphical user interface displays content including at least a portion of a game scene and a first game character located in the game scene. The method includes:

[0005] Control the first game character to release the first game item, wherein the first game item is used to determine a target attachment position in the game scene, generate a first trajectory from the first game character to the target attachment position, and control the first game character to move along the first trajectory toward the target attachment position;

[0006] In response to the first game item and the second game item meeting the connection condition, the system controls the connection between the first game item and the second game item to generate a second trajectory from the first game character to the second game character, wherein the second game item is an item released by the second game character in the game scene;

[0007] Control the first game character to move towards the second game character along the second trajectory.

[0008] In one embodiment, before responding to the first game item and the second game item satisfying the connection condition, the method further includes:

[0009] In response to the interaction triggered by the first game character on the second game character, an interaction request is initiated to the second game character;

[0010] When an interaction confirmation message corresponding to the interaction request is received, the first game item is controlled to be released in the direction of the second game character so as to touch the second game item released by the second game character, and it is determined that the first game item and the second game item meet the connection condition.

[0011] In one embodiment, before responding to the first game item and the second game item satisfying the connection condition, the method further includes:

[0012] In response to the interaction triggered by the first game character on the second game character, an interaction request is initiated to the second game character;

[0013] Upon receiving an interaction confirmation message corresponding to the interaction request, in response to the item release command after aiming at the second game character, the first game item is released in the direction of the second game character.

[0014] The relative positional relationship between the first game item that has been placed and the second game item placed by the second game character is detected, and it is determined whether the relative positional relationship satisfies the connection condition; wherein, the connection condition includes: the first game item collides with the second game item, and / or, the first ray of the direction in which the first game item is placed intersects with the second ray of the direction in which the second game item is placed.

[0015] In one embodiment, the step of initiating an interaction request to the second game character in response to an interaction trigger operation by the first game character on the second game character includes:

[0016] Displays several character icons for several candidate game characters;

[0017] In response to an interactive trigger operation for a target character identifier among the plurality of character identifiers, the candidate game character corresponding to the target character identifier is determined to be a second game character, and the interactive request is sent to the second game character; wherein, the interactive trigger operation includes a click operation on the target character identifier, or a drag operation of a preset interactive control on the graphical user interface on the target character identifier.

[0018] In one embodiment, the method further includes:

[0019] In response to an interaction request initiated by a third game character, a confirmation icon corresponding to the third game character is output on the graphical user interface;

[0020] In response to a triggering action on the confirmation icon, an interaction confirmation message is returned to the third game character.

[0021] In one embodiment, prior to the triggering operation in response to the confirmation icon, the method further includes:

[0022] In response to the position adjustment command for the first game character, the positional state between the first game character and the third game character in the game scene is adjusted;

[0023] When the location status meets the specified location conditions, the confirmation icon is changed from an unavailable state to an available state; wherein, the confirmation icon in the available state allows the acceptance of trigger operations.

[0024] In one embodiment, controlling the first game character to move towards the second game character along the second trajectory includes:

[0025] The graphical user interface outputs a unique animation; wherein the unique animation shows the first game character moving towards the second game character as the first game character moves along the second trajectory.

[0026] On the other hand, this application provides an interactive device for a game character, which provides a graphical user interface through a terminal device. The graphical user interface displays content including at least a portion of a game scene and a first game character located in the game scene. The device includes:

[0027] The first control module is used to control the first game character to release the first game item, wherein the first game item is used to determine a target attachment position in the game scene, generate a first trajectory from the first game character to the target attachment position, and control the first game character to move along the first trajectory toward the target attachment position;

[0028] The second control module is used to control the connection between the first game item and the second game item in response to the first game item and the second game item meeting the connection conditions, thereby generating a second trajectory from the first game character to the second game character, wherein the second game item is an item released by the second game character in the game scene;

[0029] The third control module is used to control the first game character to move towards the second game character along the second trajectory.

[0030] Furthermore, this application also provides an electronic device, the electronic device comprising:

[0031] processor;

[0032] Memory used to store processor-executable instructions;

[0033] The processor is configured to execute the interaction method of the game character.

[0034] In addition, this application also provides a computer-readable storage medium storing a computer program that can be executed by a processor to complete the above-described method for interacting with game characters.

[0035] In this application, when the first game item cast by the first game character and the second game item cast by the second game character meet the connection conditions, the first game item and the second game item can be connected to generate a second trajectory from the first game character to the second game character, and the first game character can be controlled to move towards the second game character along the second trajectory.

[0036] The game items of the two game characters can be used in combination. When interacting, the game items released by each character expand the interaction range, making it easier for the game characters to gather together when they are scattered. This allows for faster mutual assistance and more diverse cooperative movement, thus optimizing the game experience. Attached Figure Description

[0037] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly described below.

[0038] Figure 1 A flowchart illustrating a game character interaction method provided in an embodiment of this application;

[0039] Figure 2 A schematic diagram of an interactive scenario provided in one embodiment of this application;

[0040] Figure 3 A schematic flowchart illustrating a connection state detection method provided in an embodiment of this application;

[0041] Figure 4 A schematic flowchart of a connection state detection method provided in another embodiment of this application;

[0042] Figure 5 A schematic diagram of a graphical user interface provided in an embodiment of this application;

[0043] Figure 6 A schematic diagram of a graphical user interface provided for another embodiment of this application;

[0044] Figure 7 A schematic diagram of a graphical user interface provided in yet another embodiment of this application;

[0045] Figure 8 A schematic diagram of a graphical user interface provided in yet another embodiment of this application;

[0046] Figure 9A schematic diagram illustrating the positional states between game characters according to an embodiment of this application;

[0047] Figure 10 A block diagram of an interactive device for a game character provided in an embodiment of this application;

[0048] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0049] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0050] Similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0051] In one embodiment of this disclosure, the game character interaction method can run on a local terminal device or a server. When the game character interaction method runs on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0052] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of the game character's interaction methods are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.

[0053] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.

[0054] In one possible implementation, embodiments of the present invention provide a method for interacting with game characters, which provides a graphical user interface through a terminal device, wherein the terminal device may be the aforementioned local terminal device or a client device in the aforementioned cloud interaction system.

[0055] See Figure 1 This is a flowchart illustrating a game character interaction method provided in an embodiment of this application, as shown below. Figure 1 As shown, the method may include steps 310-330. As previously mentioned, this solution can be applied to terminal devices or servers. For ease of description, the terminal device is used as the execution subject.

[0056] Step 310: Control the first game character to release the first game item, wherein the first game item is used to determine a target attachment position in the game scene, generate a first trajectory from the first game character to the target attachment position, and control the first game character to move along the first trajectory to the target attachment position.

[0057] This application provides a graphical user interface (GUI) via a terminal device. The GUI displays at least a portion of the game scene and a first game character located within that scene. Here, the first game character is a game character controlled by the player through the terminal device. A game character is a virtual image controlled by the player and can be a person, animal, mechanical device, etc.

[0058] The first game item can include, but is not limited to, a grappling hook, a flail, or an arrow with a tether. After being used, one end of the first game item can be thrown out to determine a target attachment location. The target attachment location is the position where one end of the first game item attaches to another object or building in the game scene after being thrown out. For example, after the first game character uses the first game item "grappling hook" on a roof, one end of the "grappling hook" is locked to the top of a pillar, and the top of the pillar is the target attachment location.

[0059] After the terminal device controls the first game character to release the first game item, it can determine the target attachment position in the game scene, and then generate the first trajectory of the first game character moving to the target attachment position. Here, the first trajectory can be the trajectory formed by the first game item connecting the first game character and the target attachment position. For example, after the first game character releases the first game character item "grappling hook", one end of the "grappling hook" is located at the top of the eaves pillar. At this time, the first trajectory is the trajectory of the first game character along the "grappling hook" to the top of the eaves pillar.

[0060] The terminal device can control the first game character to move along the first trajectory to the target attachment position, thereby enabling the first game character to move quickly, and to use the first game prop to cross obstacles and go to higher places in the game scene, achieving a more flexible movement effect.

[0061] Step 320: In response to the first game item and the second game item meeting the connection conditions, control the connection between the first game item and the second game item to generate a second trajectory from the first game character to the second game character, wherein the second game item is an item released by the second game character in the game scene.

[0062] Here, the second game character can be a character belonging to the same faction as the first game character, and can be controlled by other players. The first and second game items can be the same item or different items. For example, both the first and second game characters can use grappling hooks; or, the first game character uses a grappling hook, and the second game character uses a flail. The second trajectory is the movement trajectory formed by the combined use of the two game items. The two game items correspond to the two game characters respectively, therefore the second trajectory can connect the first and second game characters.

[0063] When the first game item of the first game character and the second game item of the second game character meet the connection conditions, the terminal device can control the first game item and the second game item to connect, so that the connected first game item and the second game item can form a motion trajectory, which is the second trajectory. For example, after the first game character releases the grappling hook, the target attachment position of one end of the grappling hook in the game scene is the same as the attachment position of the grappling hook released by the second game character. At this time, the grappling hook released by the first game character and the grappling hook released by the second game character meet the connection conditions and can connect at the target attachment position. The two grappling hooks after connection form the second trajectory.

[0064] See Figure 2 This is a schematic diagram of an interactive scenario provided in an embodiment of this application, such as... Figure 2 As shown, both game characters use grappling hooks, and the two grappling hooks can be connected after they are released towards each other.

[0065] Step 330: Control the first game character to move towards the second game character along the second trajectory.

[0066] After generating the second trajectory, the terminal device can control the first game character to move along the second trajectory toward the second game character, so that the first game character and the second game character can meet in the game scene and achieve the purpose of mutual assistance between the game characters.

[0067] Through the above measures, the game props of the two game characters can be used in combination, which expands the interaction range and makes it easier for the game characters to gather together when they are scattered in the game scene, so as to provide timely assistance to the trapped game characters; in addition, the coordinated movement achieved by the game props can optimize the game experience.

[0068] In one embodiment, before the first game item and the second game item meet the connection conditions, the terminal device needs to confirm that the two game items meet the connection conditions. See also Figure 3 This is a flowchart illustrating a connection state detection method provided in an embodiment of this application. Figure 3 As shown, the method may include the following steps 317A-318A.

[0069] Step 317A: In response to the interaction triggered by the first game character on the second game character, initiate an interaction request to the second game character.

[0070] Interactive trigger operations are used to initiate interactive functions. Depending on the device type of the terminal device, interactive trigger operations corresponding to that device type can be pre-configured. For example, if the terminal device is a host connected to an external device (such as a mouse or keyboard), the interactive trigger operation can be related to that external device; if the terminal device is a tablet computer equipped with a touchscreen, the interactive trigger operation can be a touch operation.

[0071] During a game, the terminal device can listen for user input commands. When it detects an interactive trigger for a second game character, it can respond by sending an interaction request to the terminal device corresponding to the second game character. The interaction request is used to request the recipient to accept the interaction.

[0072] Step 318A: When an interaction confirmation message corresponding to the interaction request is obtained, control the first game item to be released in the direction of the second game character so as to touch the second game item released by the second game character, and determine that the first game item and the second game item meet the connection conditions.

[0073] After initiating an interaction request, if an interaction confirmation message is received, the terminal device can determine that an interaction relationship has been established between the first game character and the second game character. At this point, the terminal device can control the first game character to place a first game item in the direction of the second game character. Correspondingly, the second game character will also place a second game item towards the first game character. Therefore, the placed first game item can touch the second game item. In this case, it can be determined that the first game item and the second game item meet the connection conditions.

[0074] Through the above measures, after players establish an interactive relationship between the first and second game characters by triggering interactive operations, game items can be automatically released, thereby quickly connecting the first and second game items.

[0075] In one embodiment, in addition to automatically placing items to quickly connect the first and second game items, players can also manually place items, and after manually placing an item, the system can check whether the two game items meet the connection requirements. See also Figure 4 The above is a flowchart illustrating a connection state detection method provided in another embodiment of this application. Figure 4 As shown, the method may include steps 317B-319B.

[0076] Step 317B: In response to the interaction triggered by the first game character on the second game character, initiate an interaction request to the second game character.

[0077] The execution process of step 317B is the same as that of step 317A, and will not be repeated here.

[0078] Step 318B: Upon receiving the interaction confirmation information corresponding to the interaction request, in response to the item release command after targeting the second game character, release the first game item in the direction of the second game character.

[0079] After initiating an interaction request, if an interaction confirmation message is received, the terminal device can determine that an interaction relationship has been established between the first game character and the second game character. In this case, the player can use the terminal device to aim at the second game character, for example, by moving the aiming control on the graphical user interface to align the crosshair with the second game character. After aiming at the second game character, the player can issue an item release command through the terminal device. Here, the item release command is used to instruct the player to release the first game item. The item release command can be triggered by clicking the item control on the graphical user interface, dragging the item control, etc.

[0080] Step 319B: Detect the relative positional relationship between the first game item that has been placed and the second game item placed by the second game character, and determine whether the relative positional relationship satisfies the connection conditions; wherein, the connection conditions include: the first game item collides with the second game item, and / or, the first ray of the direction in which the first game item is placed intersects with the second ray of the direction in which the second game item is placed.

[0081] After the first game item is released, since an interactive relationship has been established between the first and second game characters, the player corresponding to the second game character will also control the release of the second game item. At this time, the terminal device can detect the relative positional relationship between the second and first game items and determine whether the connection conditions are met.

[0082] In one scenario, the connection condition is a collision between the first and second game items. The terminal device can detect whether the spatial positions occupied by the first and second game items already deployed in the game scene overlap. If they do, it indicates a collision has occurred, and the relative positional relationship between the first and second game items satisfies the connection condition. Otherwise, it indicates no collision has occurred, and the connection condition is not met.

[0083] In another scenario, the connection condition is that the first ray from the direction the first game item is released intersects with the second ray from the direction the second game item is released. The terminal device can extend along the direction the first game item is released to obtain the first ray; and extend along the direction the second game item is released to obtain the second ray. The terminal device can detect whether the first and second rays intersect. If they intersect, it means that the relative positional relationship between the first and second game items satisfies the connection condition. If they do not intersect, the connection condition is not satisfied.

[0084] The terminal device can determine whether it can connect to the first game item and the second game item based on one or two of the above connection conditions.

[0085] Through the above measures, after the player manually places a game item, the terminal device can determine whether the connection conditions are met by the relative positional relationship between the two game items, and then connect the first game item and the second game item when the connection conditions are met.

[0086] In one embodiment, when a terminal device initiates an interaction request in response to an interaction trigger operation, it can display several character identifiers of several candidate game characters in a graphical user interface. Each candidate game character is a game character that the first game character can interact with, and each candidate game character corresponds to a character identifier. The player can select a target character identifier corresponding to the game character they wish to interact with from the several character identifiers and initiate an interaction trigger operation on that target character identifier.

[0087] Interaction triggering actions can include clicking on a target character's icon. If the terminal device is a host connected to an external device, during game operation, the player can click on the icon of a second game character using the mouse to initiate interaction with that character. The terminal device can respond to the mouse click on the second game character and determine whether to trigger an interaction action for that character.

[0088] See Figure 5 This is a schematic diagram of a graphical user interface provided in an embodiment of this application, such as... Figure 5 As shown, the graphical user interface displays multiple character icons. When a player clicks on the character icon "Avatar 2", an interactive action is triggered for the game character corresponding to "Avatar 2".

[0089] In some games, the mouse is used to control the game view in the graphical user interface (GUI). In this case, the mouse pointer is generally not displayed in the GUI. Players can trigger a specific shortcut key (such as ALT+Q) to make the GUI display the mouse pointer. The user terminal responds to the trigger of the specified shortcut key, displaying the mouse pointer in the GUI, allowing the player to click and select on a secondary game character.

[0090] Alternatively, the interactive triggering operation may include dragging a preset interactive control on the graphical user interface towards the target character icon. If the terminal device is a tablet or smartphone with a touchscreen, during game operation, players can initiate interaction with a second game character by dragging the interactive control on the graphical user interface. The interactive control is used to initiate interaction with other game characters. For example, the interactive control may be an item icon of a first game item.

[0091] The terminal device can respond to a drag operation on the graphical user interface for the interactive control, drag the interactive control to the character icon of the second game character, and determine to generate an interactive trigger operation for the second game character.

[0092] See Figure 6 This is a schematic diagram of a graphical user interface provided in another embodiment of this application, such as... Figure 6 As shown, the graphical user interface displays multiple character icons. The "hook" icon is an interactive control; players can drag the "hook" icon next to the character icon "Avatar 2" to initiate interaction with the game character corresponding to "Avatar 2". The user terminal determines the interaction trigger based on the drag operation.

[0093] The terminal device can respond to the interactive trigger operation for the target character identifier, determine the candidate game character corresponding to the target character identifier as the second game character, and send an interactive request to the second game character.

[0094] In one embodiment, after the terminal device initiates an interaction request to the second game character, it can output an interaction lock prompt message corresponding to the second game character in the graphical user interface. The interaction lock prompt message indicates that an interaction request has been initiated to the second game character.

[0095] The graphical user interface can display character icons for other game characters belonging to the same faction as the first game character. These character icons indicate the corresponding game characters. For example, a character icon can be a game character's portrait icon. After an interaction request is initiated to the second game character, a marker can be added to the character icon as an interaction lock prompt. For example, the marker can take the form of a bounding box around the character icon, an item icon of the first game item next to the character icon, etc. See also... Figure 7 This is a schematic diagram of a graphical user interface provided in another embodiment of this application, such as... Figure 7 As shown, there are three character icons in the lower left corner of the graphical user interface. After an interaction request is made to the character indicated by "Avatar 2", a "hook" icon is added next to the character icon as an interaction lock prompt.

[0096] Alternatively, after an interaction request is made to a second game character, the display format of the character icon can be changed as an interaction lock prompt. For example, the user terminal can display the character icon in a flashing manner.

[0097] By displaying interactive lock prompts, players can be notified of the game character that has requested interaction, thus facilitating their decision-making regarding gameplay.

[0098] In one embodiment, in addition to initiating interaction requests to the second game character, the terminal device can also receive interaction requests initiated by a third game character. Here, the third game character can be a game character belonging to the same faction as the first game character, and the third game character can be controlled by other players.

[0099] The terminal device can respond to an interaction request initiated by a third game character and output a confirmation icon corresponding to the third game character on the graphical user interface. This confirmation icon is used to confirm interaction with the third game character. For example, the confirmation icon can be an icon of one of several first game items that the first game character can use to respond to the interaction request. In this case, corresponding prompt information, such as "Interaction Initiator," can also be output to the third game character to distinguish between the confirmation icon and the interaction lock prompt information.

[0100] See Figure 8 This is a schematic diagram of a graphical user interface provided in another embodiment of this application, such as... Figure 8 As shown, the user terminal can output a confirmation icon next to the character icon "Avatar 4" of the game character that initiated the interaction request.

[0101] Players can trigger a confirmation action on the confirmation icon to confirm interaction with the initiator. The user terminal can respond to the confirmation action on the confirmation icon by returning interaction confirmation information to a third-party game character.

[0102] In this scenario, the terminal device can determine that the first game character, as the recipient of the interaction, has established an interactive relationship with the third game character after responding to the interaction request.

[0103] On the one hand, if the game items are connected through automatic release, after the interaction relationship is established, the terminal device can control the first game character to automatically release the first game item in order to touch the third game item released by the third game character.

[0104] On the other hand, if the game item connection is achieved through manual release, after establishing the interactive relationship, the player can aim at the third game character through the terminal device, and after aiming at the third game character, issue an item release command through the terminal device, causing the terminal device to release the first game item in the direction of the third game character.

[0105] In one embodiment, before responding to a triggering operation on the confirmation icon, the terminal device can determine whether the confirmation icon is in an unavailable state or an available state. Specifically, a confirmation icon in an unavailable state cannot be triggered; a confirmation icon in an available state can be triggered. For example, the unavailable and available states can be represented by a specific color of the confirmation icon; for instance, a gray confirmation icon indicates an unavailable state, while a colored confirmation icon indicates an available state.

[0106] The terminal device can respond to a position adjustment command for the first game character, adjusting the positional state between the first and third game characters in the game scene. Here, the positional state can be determined by one or more indicators such as the distance between the game characters and their orientation. The terminal device can adjust the distance between the first and third game characters and the orientation of the first game character to adjust the positional state. During this process, the terminal device can detect the positional state between the first and third game characters in the game scene.

[0107] The terminal device can determine whether the location status meets specified location conditions. These specified location conditions can be pre-set based on gameplay. For example, a specified location condition could be that the distance between two game characters is no greater than the coverage area of ​​the game items they use. For instance, if both game characters use grappling hooks, the specified location condition would be that the distance between them is no greater than twice the length of the grappling hook. A specified location condition could also be that the two game characters are on the same vertical line. In a climbing scenario, this condition allows the two game characters to return to the same horizontal line after interaction. A specified location condition could also be that the two game characters are facing each other. In this case, game items can only connect when the two game characters are facing each other.

[0108] On the one hand, if the location status does not meet the specified location conditions, the terminal device can determine that the confirmation icon is unavailable. On the other hand, if the location status meets the specified location conditions, the terminal device can change the confirmation icon from unavailable to available.

[0109] See Figure 9 This is a schematic diagram illustrating the positional states between game characters according to an embodiment of this application, such as... Figure 9 As shown, the outer arc of the location of game character 1 represents the coverage area of ​​game character 1's game items; the outer arc of the location of game character 2 represents the coverage area of ​​game character 2's game items. When the distance between game character 1 and game character 2 is less than the coverage area of ​​their throwable items, the user terminal can change the confirmation icon to an available state.

[0110] By implementing the above measures, the confirmation icon can be triggered when the location status of the interaction initiator and the interaction recipient meets the specified location conditions, thereby improving the user experience of the interaction function.

[0111] In one embodiment, when the terminal device controls the first game character and the second game character to move towards each other, it can output a dedicated animation in the graphical user interface. This dedicated animation shows the first game character moving along a second trajectory while the first and second game characters move towards each other. After displaying the dedicated animation, the first and second game characters can converge at the same location in the game scene, thus changing their original scattered state.

[0112] For example, the custom animation may include three stages: takeoff, flight, and landing of the game character. The terminal device can generate and display the custom animation based on the types of the two game characters (such as the game character's profession, level, and other type information) and the game scene in which the game character is located.

[0113] In addition, when the first game character corresponding to the terminal device is the interactive recipient, the user terminal can also output a unique animation in the graphical user interface after sending the interactive confirmation information.

[0114] This measure allows for the display of interactions between game characters through personalized, custom-designed animations, thereby enhancing the viewing experience and user experience.

[0115] Figure 10 This is a block diagram of an interactive device for a game character according to an embodiment of the present invention, such as... Figure 10 As shown, the device may include:

[0116] Initiation module 1010 is used to control a first game character to release a first game item, wherein the first game item is used to determine a target attachment position in the game scene, generate a first trajectory from the first game character to the target attachment position, and control the first game character to move along the first trajectory toward the target attachment position;

[0117] The first control module 1020 is configured to control the connection of the first game item and the second game item to be made in response to the first game item and the second game item meeting the connection conditions, thereby generating a second trajectory from the first game character to the second game character, wherein the second game item is an item released by the second game character in the game scene;

[0118] The second control module 1030 is used to control the first game character to move towards the second game character along the second trajectory.

[0119] The specific implementation process of the functions and roles of each module in the above-mentioned device can be found in the implementation process of the corresponding steps in the interaction method of the game character, and will not be repeated here.

[0120] The apparatuses and methods disclosed in the several embodiments provided in this application can also be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatuses, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram and / or flowchart, and combinations of blocks in block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0121] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0122] If a function is implemented as a software module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0123] like Figure 11 As shown, this embodiment provides an electronic device 1, including: at least one processor 11 and a memory 12. Figure 11Taking a processor 11 as an example, the processor 11 and memory 12 are connected via a bus 10. The memory 12 stores instructions that can be executed by the processor 11. The instructions are executed by the processor 11 to enable the electronic device 1 to perform all or part of the process of the method in the following embodiments. In one embodiment, the electronic device 1 may be a user terminal such as a mobile phone or tablet running a game, or a server running a game, used to execute the interaction method of the game character. A graphical user interface is provided through the terminal device. The content displayed by the graphical user interface includes at least a portion of the game scene and a first game character located in the game scene. The method is as follows:

[0124] Control the first game character to release the first game item, wherein the first game item is used to determine a target attachment position in the game scene, generate a first trajectory from the first game character to the target attachment position, and control the first game character to move along the first trajectory toward the target attachment position;

[0125] In response to the first game item and the second game item meeting the connection condition, the system controls the connection between the first game item and the second game item to generate a second trajectory from the first game character to the second game character, wherein the second game item is an item released by the second game character in the game scene;

[0126] Control the first game character to move towards the second game character along the second trajectory.

[0127] In one embodiment, before responding to the first game item and the second game item satisfying the connection condition, the method further includes:

[0128] In response to the interaction triggered by the first game character on the second game character, an interaction request is initiated to the second game character;

[0129] When an interaction confirmation message corresponding to the interaction request is received, the first game item is controlled to be released in the direction of the second game character so as to touch the second game item released by the second game character, and it is determined that the first game item and the second game item meet the connection condition.

[0130] In one embodiment, before responding to the first game item and the second game item satisfying the connection condition, the method further includes:

[0131] In response to the interaction triggered by the first game character on the second game character, an interaction request is initiated to the second game character;

[0132] Upon receiving an interaction confirmation message corresponding to the interaction request, in response to the item release command after aiming at the second game character, the first game item is released in the direction of the second game character.

[0133] The relative positional relationship between the first game item that has been placed and the second game item placed by the second game character is detected, and it is determined whether the relative positional relationship satisfies the connection condition; wherein, the connection condition includes: the first game item collides with the second game item, and / or, the first ray of the direction in which the first game item is placed intersects with the second ray of the direction in which the second game item is placed.

[0134] In one embodiment, the step of initiating an interaction request to the second game character in response to an interaction trigger operation by the first game character on the second game character includes:

[0135] Displays several character icons for several candidate game characters;

[0136] In response to an interactive trigger operation for a target character identifier among the plurality of character identifiers, the candidate game character corresponding to the target character identifier is determined to be a second game character, and the interactive request is sent to the second game character; wherein, the interactive trigger operation includes a click operation on the target character identifier, or a drag operation of a preset interactive control on the graphical user interface on the target character identifier.

[0137] In one embodiment, the method further includes:

[0138] In response to an interaction request initiated by a third game character, a confirmation icon corresponding to the third game character is output on the graphical user interface;

[0139] In response to a triggering action on the confirmation icon, an interaction confirmation message is returned to the third game character.

[0140] In one embodiment, prior to the triggering operation in response to the confirmation icon, the method further includes:

[0141] In response to the position adjustment command for the first game character, the positional state between the first game character and the third game character in the game scene is adjusted;

[0142] When the location status meets the specified location conditions, the confirmation icon is changed from an unavailable state to an available state; wherein, the confirmation icon in the available state allows the acceptance of trigger operations.

[0143] In one embodiment, controlling the first game character to move towards the second game character along the second trajectory includes:

[0144] The graphical user interface outputs a unique animation; wherein the unique animation shows the first game character moving towards the second game character as the first game character moves along the second trajectory.

[0145] In summary, the game items of the two game characters can be used in combination. During interaction, the game items released by each character expand the interaction range, making it easier for the game characters to gather together when they are scattered. This allows for faster mutual assistance and more diverse cooperative movement, thus optimizing the game experience.

[0146] The memory 12 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0147] This application also provides a computer-readable storage medium storing a computer program that can be executed by a processor 11 to perform the interactive method of the game character provided in this application, providing a graphical user interface through a terminal device. The graphical user interface displays content including at least a portion of the game scene and a first game character located in the game scene. The method is as follows:

[0148] Control the first game character to release the first game item, wherein the first game item is used to determine a target attachment position in the game scene, generate a first trajectory from the first game character to the target attachment position, and control the first game character to move along the first trajectory toward the target attachment position;

[0149] In response to the first game item and the second game item meeting the connection condition, the system controls the connection between the first game item and the second game item to generate a second trajectory from the first game character to the second game character, wherein the second game item is an item released by the second game character in the game scene;

[0150] Control the first game character to move towards the second game character along the second trajectory.

[0151] In one embodiment, before responding to the first game item and the second game item satisfying the connection condition, the method further includes:

[0152] In response to the interaction triggered by the first game character on the second game character, an interaction request is initiated to the second game character;

[0153] When an interaction confirmation message corresponding to the interaction request is received, the first game item is controlled to be released in the direction of the second game character so as to touch the second game item released by the second game character, and it is determined that the first game item and the second game item meet the connection condition.

[0154] In one embodiment, before responding to the first game item and the second game item satisfying the connection condition, the method further includes:

[0155] In response to the interaction triggered by the first game character on the second game character, an interaction request is initiated to the second game character;

[0156] Upon receiving an interaction confirmation message corresponding to the interaction request, in response to the item release command after aiming at the second game character, the first game item is released in the direction of the second game character.

[0157] The relative positional relationship between the first game item that has been placed and the second game item placed by the second game character is detected, and it is determined whether the relative positional relationship satisfies the connection condition; wherein, the connection condition includes: the first game item collides with the second game item, and / or, the first ray of the direction in which the first game item is placed intersects with the second ray of the direction in which the second game item is placed.

[0158] In one embodiment, the step of initiating an interaction request to the second game character in response to an interaction trigger operation by the first game character on the second game character includes:

[0159] Displays several character icons for several candidate game characters;

[0160] In response to an interactive trigger operation for a target character identifier among the plurality of character identifiers, the candidate game character corresponding to the target character identifier is determined to be a second game character, and the interactive request is sent to the second game character; wherein, the interactive trigger operation includes a click operation on the target character identifier, or a drag operation of a preset interactive control on the graphical user interface on the target character identifier.

[0161] In one embodiment, the method further includes:

[0162] In response to an interaction request initiated by a third game character, a confirmation icon corresponding to the third game character is output on the graphical user interface;

[0163] In response to a triggering action on the confirmation icon, an interaction confirmation message is returned to the third game character.

[0164] In one embodiment, prior to the triggering operation in response to the confirmation icon, the method further includes:

[0165] In response to the position adjustment command for the first game character, the positional state between the first game character and the third game character in the game scene is adjusted;

[0166] When the location status meets the specified location conditions, the confirmation icon is changed from an unavailable state to an available state; wherein, the confirmation icon in the available state allows the acceptance of trigger operations.

[0167] In one embodiment, controlling the first game character to move towards the second game character along the second trajectory includes:

[0168] The graphical user interface outputs a unique animation; wherein the unique animation shows the first game character moving towards the second game character as the first game character moves along the second trajectory.

[0169] In summary, the game items of the two game characters can be used in combination. During interaction, the game items released by each character expand the interaction range, making it easier for the game characters to gather together when they are scattered. This allows for faster mutual assistance and more diverse cooperative movement, thus optimizing the game experience.

Claims

1. A method for interaction between game characters, characterized in that, The method includes providing a graphical user interface (GUI) via a terminal device, wherein the GUI displays content including at least a portion of the game scene and a first game character located within the game scene. Control the first game character to release the first game item, wherein the first game item is used to determine a target attachment position in the game scene, generate a first trajectory from the first game character to the target attachment position, and control the first game character to move along the first trajectory toward the target attachment position; In response to the first game item and the second game item meeting the connection conditions, the system controls the connection of the first game item and the second game item to generate a second trajectory from the first game character to the second game character, wherein the second game item is an item placed by the second game character in the game scene, and the second trajectory is the motion trajectory formed by the combined use of the first game item and the second game item; Control the first game character to move towards the second game character along the second trajectory.

2. The method according to claim 1, characterized in that, Before the first game item and the second game item satisfy the connection condition, the method further includes: In response to the interaction triggered by the first game character on the second game character, an interaction request is initiated to the second game character; When an interaction confirmation message corresponding to the interaction request is received, the first game item is controlled to be released in the direction of the second game character so as to touch the second game item released by the second game character, and it is determined that the first game item and the second game item meet the connection condition.

3. The method according to claim 1, characterized in that, Before the first game item and the second game item satisfy the connection condition, the method further includes: In response to the interaction triggered by the first game character on the second game character, an interaction request is initiated to the second game character; Upon receiving an interaction confirmation message corresponding to the interaction request, in response to the item release command after aiming at the second game character, the first game item is released in the direction of the second game character. The relative positional relationship between the first game item that has been placed and the second game item placed by the second game character is detected, and it is determined whether the relative positional relationship satisfies the connection condition; wherein, the connection condition includes: the first game item collides with the second game item, and / or, the first ray of the direction in which the first game item is placed intersects with the second ray of the direction in which the second game item is placed.

4. The method according to claim 2 or 3, characterized in that, The step of initiating an interaction request to the second game character in response to the interaction triggered by the first game character on the second game character includes: Displays several character icons for several candidate game characters; In response to an interactive trigger operation for a target character identifier among the plurality of character identifiers, the candidate game character corresponding to the target character identifier is determined to be a second game character, and the interactive request is sent to the second game character; wherein, the interactive trigger operation includes a click operation on the target character identifier, or a drag operation of a preset interactive control on the graphical user interface on the target character identifier.

5. The method according to claim 2 or 3, characterized in that, The method further includes: In response to an interaction request initiated by a third game character, a confirmation icon corresponding to the third game character is output on the graphical user interface; In response to a triggering action on the confirmation icon, an interaction confirmation message is returned to the third game character.

6. The method according to claim 5, characterized in that, Prior to the triggering action in response to the confirmation icon, the method further includes: In response to the position adjustment command for the first game character, the positional state between the first game character and the third game character in the game scene is adjusted; When the location status meets the specified location conditions, the confirmation icon is changed from an unavailable state to an available state; wherein, the confirmation icon in the available state allows the acceptance of trigger operations.

7. The method according to claim 1, characterized in that, The control of the first game character to move towards the second game character along the second trajectory includes: The graphical user interface outputs a unique animation; wherein the unique animation shows the first game character moving towards the second game character as the first game character moves along the second trajectory.

8. An interactive device for a game character, characterized in that, A graphical user interface is provided via a terminal device, the content displayed by the graphical user interface including at least a portion of the game scene and a first game character located in the game scene, the device comprising: The first control module is used to control the first game character to release the first game item, wherein the first game item is used to determine a target attachment position in the game scene, generate a first trajectory from the first game character to the target attachment position, and control the first game character to move along the first trajectory toward the target attachment position; The second control module is used to control the connection of the first game item and the second game item to be connected in response to the first game item and the second game item meeting the connection conditions, thereby generating a second trajectory from the first game character to the second game character, wherein the second game item is an item released by the second game character in the game scene, and the second trajectory is a motion trajectory formed by the combined use of the first game item and the second game item; The third control module is used to control the first game character to move towards the second game character along the second trajectory.

9. An electronic device, characterized in that, The electronic device includes: processor; Memory used to store processor-executable instructions; The processor is configured to perform the interaction method of the game character as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that can be executed by a processor to perform the interaction method of the game character as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Control method and device for virtual character in game, electronic equipment and storage medium

    CN111905370A

  • Game interaction method and device, and electronic equipment

    CN112274927A