CN115920403A - Interactive method and device in game, electronic equipment and readable storage medium - Google Patents

Interactive method and device in game, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115920403A
CN115920403A CN202310015593.8A CN202310015593A CN115920403A CN 115920403 A CN115920403 A CN 115920403A CN 202310015593 A CN202310015593 A CN 202310015593A CN 115920403 A CN115920403 A CN 115920403A
Authority
CN
China
Prior art keywords
target
virtual
prop
interaction
graphical user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310015593.8A
Other languages
Chinese (zh)
Inventor
高俊峰
刘勇成
胡志鹏
袁思思
程龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202310015593.8A priority Critical patent/CN115920403A/en
Publication of CN115920403A publication Critical patent/CN115920403A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The application provides an interaction method, an interaction device, electronic equipment and a readable storage medium in a game, wherein a target position corresponding to a target prop is determined in response to a first operation aiming at the target prop, and a virtual object set is displayed in a graphical user interface, wherein the virtual object set comprises a plurality of target objects which are determined according to the target position and can interact with the target prop; and selecting a second target virtual character from the virtual object set, so that the second target virtual character interacting with the first target virtual character can be accurately and quickly determined, the time for searching the second target virtual character is reduced, and the human-computer interaction efficiency is favorably improved.

Description

Interactive method and device in game, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of game technologies, and in particular, to an interaction method and apparatus in a game, an electronic device, and a readable storage medium.
Background
With the development of networks, more and more games emerge in front of players, players can control target virtual characters to play games by operating virtual controls displayed on terminal devices, for some large-scale multiplayer online games with more players, a large number of virtual objects may exist in the same game scene, at this time, if a player needs to control the target virtual characters to interact, a large number of virtual objects need to be operated one by one to determine whether target objects capable of interacting with the target virtual characters exist in the large number of virtual objects, which requires repeated confirmation of multiple operations by the player, takes long time, and causes the problem of low interaction efficiency.
Disclosure of Invention
In view of this, an object of the present application is to provide an interaction method, an interaction device, an electronic device, and a readable storage medium in a game, in which a target object that can interact with a target item is determined through an operation on the target item, a virtual object set is displayed, and then a second target virtual character that can interact with a first target virtual character is accurately and quickly determined through a selection operation on the virtual object set, so that a time for searching for the second target virtual character is reduced, and the improvement of human-computer interaction efficiency is facilitated.
In a first aspect, an embodiment of the present application provides an interaction method in a game, where a terminal device provides a graphical user interface, and at least part of a game scene is displayed in the graphical user interface, where the game scene includes a first target virtual character controlled by the terminal device, and the interaction method includes:
responding to a first operation aiming at a target prop, and determining a target position corresponding to the target prop;
presenting a set of virtual objects in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position;
and responding to the selection operation of a second target virtual character in the virtual object set, and controlling the first target virtual character to perform virtual interaction by using the target prop and the second target virtual character.
In a second aspect, an embodiment of the present application further provides an interaction apparatus in a game, where a terminal device provides a graphical user interface, and at least part of a game scene is displayed in the graphical user interface, where the game scene includes a first target virtual character controlled by the terminal device, and the interaction apparatus includes:
the position determining module is used for responding to a first operation aiming at a target prop and determining a target position corresponding to the target prop;
an object set presentation module for presenting a set of virtual objects in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position;
and the interaction control module is used for responding to the selection operation aiming at a second target virtual character in the virtual object set and controlling the first target virtual character to use the target prop and the second target virtual character to carry out virtual interaction.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating with each other via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the method for interacting in a game according to any one of the first aspect.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method for interacting in a game according to any one of the first aspect.
According to the interaction method, the interaction device, the electronic equipment and the readable storage medium in the game, a target position corresponding to a target prop is determined in response to a first operation aiming at the target prop, and a virtual object set is displayed in a graphical user interface, wherein the virtual object set comprises a plurality of target objects which are determined according to the target position and interact with the target prop; and responding to the selection operation aiming at a second target virtual character in the virtual object set, and controlling the first target virtual character to interact with the second target virtual character by using the target prop. Therefore, the target object capable of interacting with the target prop is determined through the operation on the target prop, the virtual object set is displayed, the second target virtual role capable of interacting with the first target virtual role is accurately and quickly determined through the selection operation on the virtual object set, the time for searching the second target virtual role is shortened, and the human-computer interaction efficiency is improved.
In order to make the aforementioned objects, features and advantages of the present application comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
FIG. 1 is a flowchart of an interaction method in a game provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a graphical user interface provided by an embodiment of the present application;
FIG. 3 is a second schematic diagram of a graphical user interface provided by an embodiment of the present application;
FIG. 4 is a third schematic diagram of a graphical user interface provided by an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an interactive device in a game according to an embodiment of the present disclosure;
FIG. 6 is a second schematic structural diagram of an interactive device in a game according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, as generally described and illustrated in the figures herein, could be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. Every other embodiment that one skilled in the art can obtain without inventive effort based on the embodiments of the present application falls within the scope of protection of the present application.
First, terms related to the present application are introduced:
(1) Game scene (virtual scene)
A game scene is a game scene that an application program displays (or provides) when running on a terminal or a server. Optionally, the game scene is a simulated environment of the real world, or a semi-simulated semi-fictional virtual environment, or a purely fictional virtual environment. The game scene is any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene and a three-dimensional virtual scene, and can be sky, land, ocean and the like, wherein the land comprises environmental elements such as deserts, cities and the like. For example, in a sandbox type 3D shooting game, the game scene is a 3D game world for a player to control a virtual object to play against, and an exemplary game scene may include: at least one element selected from a group consisting of a mountain, a flat ground, a river, a lake, an ocean, a desert, a sky, a plant, a building, and a vehicle; for example, for a 2D or 2.5D card game, the game scene is a scene for displaying a released card or a virtual object corresponding to the released card, and example game scenes may include: a arena, a battle field, or other 'field' elements or other elements capable of displaying the card battle state; for a 2D or 2.5D multiplayer online tactical competitive game, the game scene is a 2D or 2.5D terrain scene for virtual objects to fight against, and example game scenes may include: mountains, lines, rivers, classrooms, tables, chairs, podium and other elements in the canyon style.
(2) Game interface
The game interface is an interface corresponding to an application program provided or displayed through a graphical user interface, and the interface comprises a UI interface and a game picture for a player to interact. In alternative embodiments, game controls (e.g., skill controls, movement controls, functionality controls, etc.), indicators (e.g., directional indicators, character indicators, etc.), information presentation areas (e.g., number of clicks, game play time, etc.), or game settings controls (e.g., system settings, stores, coins, etc.) may be included in the UI interface. In an optional embodiment, the game screen is a display screen corresponding to a virtual scene displayed by the terminal device, and the game screen may include virtual objects such as a game character, an NPC character, and an AI character that execute a game logic in the virtual scene.
(3) Virtual object
A virtual object refers to a dynamic object that can be controlled in a virtual scene. Alternatively, the dynamic object may be a virtual character, a virtual animal, an animation character, or the like. The virtual object is a Character controlled by a Player through an input device, or an Artificial Intelligence (AI) set in a virtual environment match-up through training, or a Non-Player Character (NPC) set in a virtual scene match-up. Optionally, the virtual object is a virtual character playing a game in a virtual scene. Optionally, the number of virtual objects in the virtual scene match is preset, or dynamically determined according to the number of clients participating in the match, which is not limited in the embodiment of the present application. In one possible implementation, the user can control the virtual object to move in the virtual scene, e.g., control the virtual object to run, jump, crawl, etc., and can also control the virtual object to fight against other virtual objects using skills, virtual props, etc., provided by the application.
(4) Virtual character
The virtual character refers to a virtual object that can be manipulated by a player to move in a game environment, and is also called a player virtual character or a player virtual object, and in some electronic games, can also be called a god character or a hero character. The virtual character may be at least one of different forms of a virtual character, a virtual animal, an animated character, a virtual vehicle, and the like.
Secondly, the application scene applicable to the application is introduced, and the application can be applied to the field of games.
With the development of networks, more and more games emerge in front of players, players can control target virtual characters to play games by operating virtual controls displayed on terminal devices, for some large-scale multiplayer online games with more players, a large number of virtual objects may exist in the same game scene, at this time, if a player needs to control the target virtual characters to interact, a large number of virtual objects need to be operated one by one to determine whether target objects capable of interacting with the target virtual characters exist in the large number of virtual objects, which requires repeated confirmation of multiple operations by the player, takes long time, and causes the problem of low interaction efficiency.
In another operation technique, aiming at a large number of virtual objects in a game scene, virtual characters except for target objects capable of interacting with the target virtual characters can disappear through shortcut keys, and the target objects are exposed, however, the operation mode is poor in game experience of players, and the operation mode that multiple players are online at the same time cannot be better tested.
Based on this, the embodiment of the application provides an interaction method in a game to improve human-computer interaction efficiency.
For the convenience of understanding the present embodiment, the interaction method, the apparatus, the electronic device and the readable storage medium in the game provided in the embodiments of the present application are described in detail. The embodiment of the application can be applied to the field of games, for example, a game of a Frame Per Second (FPS) type or a game of a Massively Multiplayer Online (MMO) type; the present embodiment is not limited to the above-described type of game, and is also not limited to the field of games.
The in-game interaction method in one embodiment of the application can be run on a local terminal device or a server. When the in-game interaction method runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, the cloud game refers to a game mode based on cloud computing. In the running mode of the cloud game, the running main body of the game program and the game picture presenting main body are separated, the storage and the running of the interaction method in the game are finished on a cloud game server, and the client equipment is used for receiving and sending data and presenting the game picture, for example, the client equipment can be display equipment with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When a game is played, a player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are encoded and compressed, the data are returned to the client device through a network, and finally the data are decoded through the client device and the game pictures are output.
In an optional implementation manner, taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
In a possible implementation manner, an embodiment of the present application provides an interaction method in a game, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device (such as a local touch terminal) or a client device in the aforementioned cloud interaction system. The following description will take an example in which the interaction method in the game is executed in a local terminal device (hereinafter referred to as a terminal device).
Referring to fig. 1, fig. 1 is a flowchart illustrating an interaction method in a game according to an embodiment of the present disclosure. As shown in fig. 1, an interaction method in a game provided in an embodiment of the present application includes:
s101, responding to a first operation aiming at a target prop, and determining a target position corresponding to the target prop.
S102, displaying a virtual object set in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position.
S103, responding to the selection operation of a second target virtual character in the virtual object set, and controlling the first target virtual character to perform virtual interaction by using the target prop and the second target virtual character.
According to the interaction method in the game, the target object capable of interacting with the target prop is determined through operation of the target prop, the virtual object set is displayed, the second target virtual role capable of interacting with the first target virtual role is accurately and rapidly determined through selection operation on the virtual object set, time for searching the second target virtual role is shortened, and human-computer interaction efficiency is improved.
The following describes exemplary steps in an embodiment of the present application:
s101, responding to a first operation aiming at a target prop, and determining a target position corresponding to the target prop.
In a possible implementation manner, the target prop may be a prop stored in a backpack of the first target virtual character, and the manner in which the player selects the target prop may be that, by responding to a touch operation (which may be a click operation, a long-press operation, a sliding operation, or the like) for the backpack control in the graphical user interface, all props stored in the backpack of the first target virtual character are displayed in the graphical user interface, and the player may select from all props to determine the target prop.
In another possible implementation manner, the target prop may also be displayed in a prop shortcut display bar, and the player may determine the target prop through a selection operation on the prop shortcut display bar.
In a possible implementation manner, the first operation directed to the target prop may be an operation of controlling the target prop to move in the graphical user interface along with the touch operation through the touch operation. Specifically, the target prop moves in the graphical user interface along with the first operation, may be that the prop identifier of the target prop moves in the graphical user interface along with the first operation, or may be that an association between the target prop and the first operation is established, the target prop itself does not move in the graphical user interface, and the movement of the target prop in the graphical user interface is represented by the movement of the touch position of the first operation in the graphical user interface.
Based on the above, the first operation may be one of a dragging operation, a clicking operation and a long-time pressing operation, and through the dragging operation, the prop identifier of the dragging target prop moves in the graphical user interface along with the first operation; or establishing the association between the target prop and the first operation according to the click operation or the long-time press operation, and representing the movement of the target prop in the graphical user interface through the movement of the touch position of the first operation in the graphical user interface.
It should be noted that, no matter the target prop is selected from the backpack of the first target virtual character or the quick prop display bar, one target prop is generally selected by one selection operation, so that the virtual object capable of interacting with the target prop can be accurately determined in the following process.
In another possible implementation manner, the first operation directed to the target prop may also be a selection operation directed to the target prop, and the target prop is determined by a selection operation of a backpack control in the first target virtual character.
In a possible implementation manner, for a manner in which the target prop is controlled to move in the graphical user interface by the touch operation, the target position corresponding to the target prop may be an end position of the touch operation.
Specifically, when the target prop moves in the graphical user interface following the touch operation, in order to ensure that the target object that can interact with the first target virtual character using the target prop can be selected from the aggregation of the plurality of virtual characters, the operation end position of the touch operation is generally selected from the aggregation of the plurality of virtual characters in the graphical user interface.
In another possible implementation manner, the first operation for the target prop is a selection operation for the target prop, and the manner of determining the target position corresponding to the target prop may be automatically determining the position where the plurality of virtual characters are gathered as the target position after the target prop is selected.
S102, displaying a virtual object set in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position.
In an optional embodiment, after the target position corresponding to the target prop is determined, a virtual object set including a plurality of virtual characters capable of interacting with the first target virtual character is displayed at a preset position of the graphical user interface.
The virtual object set comprises a virtual object identifier of at least one target object, and the target object is a virtual role which is determined according to the target position and interacts with the target prop.
In one possible implementation, interacting with the target item may be that the first target avatar interacts with the target object using the target item.
In one possible embodiment, the target object comprises at least one of: other player-controlled virtual characters, non-player-controlled virtual characters (NPC).
Specifically, it may be a virtual character controlled by another player who battles with the target virtual character through the target prop (another virtual character in a different battle from the first target virtual character); other player-controlled virtual characters and/or non-player-controlled virtual characters (which may be other virtual characters in the same battle, or NPCs in the game) that transact with the target virtual character through the target prop.
For example, taking the target object as the NPC as an example, the first target avatar needs to sell the target item, and the target object selected at this time may be a store boss in the NPC.
In another possible embodiment, the target prop may be used to interact with the first target avatar or may be a non-avatar, for example, the first target avatar needs to store the target prop in a repository, and in this case, the repository may also be a target object interacting with the first target avatar.
In a possible embodiment, the target object is another virtual character whose character model and the target position overlap on the graphical user interface, and the selected target object may be a virtual object exposed outside in the virtual object group and displayed through the graphical user interface, or a virtual object located in the center of the virtual object group and not displayed in the graphical user interface, and a virtual object that cannot be displayed after the game view angle is adjusted (the view angle of the first target virtual character is adjusted by the virtual camera), and further, the target object needs to be determined through the use association between the target prop and the target object and interacts with the target object.
In a possible implementation manner, the target object is a virtual object located within a preset distance range from the operation end position of the first operation, where the preset distance range may be a range formed in the graphical user interface by the entire virtual object group to which the target prop is dragged, that is, the target object is a virtual object located in the virtual object group, and no interactive determination is performed on virtual objects outside the virtual object group.
Further, the target object is a virtual character that a target straight line can pass through, and the target straight line is a straight line passing through the virtual camera and the target position at the same time.
Specifically, different virtual objects with overlapping parts of the role models exist in the virtual object group, when the overlapping parts of the role models are too large, one virtual object may be completely shielded by another virtual object, at this time, the shielded virtual object cannot be observed in the graphical user interface.
The specific implementation mode is as follows: the positions of the character models of the virtual objects in the game scene can be firstly converted into the two-dimensional game scene from the three-dimensional game scene, the virtual camera emits rays towards the target position, all the virtual objects positioned on the rays can be determined as the target objects, at the moment, the character models of the virtual objects can be screened out no matter whether being shielded by the character models of other virtual objects, and the comprehensiveness and the accuracy of determining the target objects are further improved.
It should be noted that the number of the determined target objects may be one or multiple, and the subsequent interaction processing may be different for different numbers of target objects, and after the target objects are determined according to the target positions, the number of the target objects needs to be detected first, and the subsequent interaction operation steps are determined according to the number of the target objects. The following will be explained from different perspectives with one and more target objects:
in a first aspect, the determined number of target objects is multiple:
specifically, the interaction method further includes:
a1: and detecting whether the number of the determined target objects is multiple according to the target positions.
a2: and if the number of the determined target objects is more than one according to the target positions, displaying a virtual object set in the graphical user interface.
In an optional embodiment, if the number of the determined target objects is multiple, after the virtual object identifiers of the target objects need to be arranged, a virtual object set is generated, and the virtual object list is displayed in the graphical user interface.
In one possible embodiment, the presentation form in the graphical user interface for the set of virtual objects may be: the presentation is made in the graphical user interface in the form of a list of virtual objects.
It should be noted that the display position of the virtual object set should be as little as possible to block other operation positions of the player in the graphical user interface to ensure normal operation of other interaction operations of the player, for example, the display position may be at the lower right corner of the graphical user interface.
In one possible implementation, the target objects may be sorted according to the distance between each target object and the target, or the interaction waiting time of the target object in response to the interaction request of the first target virtual character, so as to generate the virtual object set.
Specifically, the set of virtual objects is determined by the following steps.
b1: and sorting the virtual object identifications corresponding to each target object according to the target distance corresponding to each target object and/or the interaction waiting time corresponding to each target object to generate the virtual object set.
For each target object, the target distance corresponding to the target object is the distance between the position of the target object in the graphical user interface and the target position; and the interaction waiting time corresponding to the target object is the interaction waiting time for the interaction between the target object and the target virtual character, which is determined according to the object state of the target object.
In an optional embodiment, when the virtual object set is generated, the virtual object identifiers of the target objects may be sorted based on a target distance or an interaction waiting time corresponding to each target object, respectively, so as to generate the virtual object set; the virtual object identifiers may also be sorted in combination with the target distance corresponding to each target object and the interaction waiting time to generate a virtual object set, and the steps of generating the virtual object list in different manners will be described below:
the first method is as follows: and generating a virtual object set according to the target distance corresponding to each object.
Specifically, the set of virtual objects is generated by:
determining a distance between a location of each target object in the graphical user interface and the target location;
and arranging the virtual object identifications corresponding to each target object according to the sequence of the distance between the position of each target object in the graphical user interface and the target position from near to far, and then generating the virtual object set.
In an alternative embodiment, the position of each target object needs to be converted into a two-dimensional graphical user interface from a three-dimensional game scene (the position of the target object can be represented by coordinates, and the three-dimensional coordinates of the target object need to be converted into a two-dimensional coordinate system from a three-dimensional coordinate system to obtain two-dimensional coordinates of the position of the target object), and then the distance between the position of each target object in the graphical user interface and the target position is calculated.
Generally, for a mode of controlling a target prop to move in a graphical user interface by a touch operation according to an operation intention of a player, a target position to which the target prop is dragged is generally a position which can be selected by the player for interaction, and therefore, after a plurality of target objects are determined, distances between positions of the target objects in the graphical user interface and the target positions need to be sorted, and a probability of interaction between a first target virtual character controlled by the player and the target object is greater for the target object closer to the target position, so that virtual object identifiers of the target objects are arranged in front, so that the player can quickly locate the target object in a virtual object set for interaction, thereby improving interaction efficiency.
The second method comprises the following steps: and generating a virtual object set according to the interaction waiting time corresponding to each object.
In particular, the set of virtual objects is determined by:
determining the interaction waiting time of each target object interacting with the target virtual character according to the object state of each target object;
and generating the virtual object set after arranging the virtual object identifications corresponding to each target object according to the sequence from short to long of the interaction waiting time of each target object and the target virtual character.
In an optional embodiment, the object state of the target object refers to whether the target object is currently idle, and if the target object is currently idle, the target object may immediately respond to the interaction requirement of the first target virtual role, and at this time, the interaction waiting time corresponding to the target object may be 0; if the target object is not in the idle state at present, the interaction state of the target object (the time for performing the current interaction behavior and the number of virtual characters waiting to interact with the target object before the first target virtual character) needs to be determined, and then the interaction waiting time corresponding to the target object is calculated.
For a player, when an interaction requirement is provided, it is required that an interaction object can respond to the provided interaction request as soon as possible, and therefore, after a plurality of target objects are determined, the interaction waiting time for interaction between the target objects and the target virtual character is required to be in a sequence from short to long, and the shorter the interaction waiting time is, the greater the interaction probability of the player controlling the first target virtual character and the target object is, and therefore, the virtual object identifiers of the target objects are arranged in front, so that the player can quickly locate the target object in a virtual object set for interaction, and the interaction efficiency is improved.
The third method comprises the following steps: and generating a virtual object set according to the target distance corresponding to each object and the interaction waiting time.
Specifically, determining a distance between a position of each target object in the graphical user interface and the target;
according to the sequence of the distance between the position of each target object in the graphical user interface and the target position from near to far, if the distance between the position of at least two target objects in the graphical user interface and the target position is the same, sequencing according to the interaction waiting time respectively corresponding to the at least two target objects, and generating the virtual object set after arranging the virtual object identifications corresponding to the target objects; or;
determining the interaction waiting time of each target object interacting with the target virtual character according to the object state of each target object;
and according to the sequence from short to long of the interaction waiting time of each target object interacting with the target virtual character, if the interaction waiting time corresponding to at least two target objects is the same, sequencing according to the target distance respectively corresponding to the at least two target objects, and generating the virtual object set after arranging the virtual object identifications corresponding to each target object.
In an optional embodiment, if all the target objects are sorted according to one dimension (target distance or interaction waiting time), after at least two target objects with the same distance or interaction waiting time in a single dimension exist, the virtual object set is generated after the target objects are sorted again according to another dimension (interaction waiting time or target distance).
It should be noted that, in the process of generating the virtual object set according to the target distance and the interaction waiting time corresponding to each object, when the target objects are sorted, it is not specified which sorting dimension is to be specifically sorted first, but since the calculation step and the complexity of calculating the distance between the target object and the target position in the graphical user interface are smaller than the step and the complexity of calculating the interaction waiting time corresponding to each target object, in order to ensure the efficiency of generating the virtual object set, it is preferred to sort the target objects first according to the distance between the target object and the target position in the graphical user interface, and then sort the virtual object identifiers of the target objects second according to the interaction waiting time corresponding to the target objects, so as to generate the virtual object set.
For example, by selecting a manner of firstly sorting the target objects according to the distance between the target objects and the target positions in the graphical user interface for the first time, and then sorting the target objects for the second time according to the interaction waiting time corresponding to the target objects, when performing distance calculation according to the target objects W and the target objects X, it is determined that the distances between the positions of the target objects W and the positions of the target objects X in the graphical user interface and the target positions are consistent, at this time, it is determined that the target objects W are currently in an idle state, the corresponding interaction waiting time is 0s, the target objects X are currently in an interaction state, and the calculated interaction waiting time is 30 s.
In one possible implementation, after the set of virtual objects is presented in the graphical user interface, the player may select an interactive object from the set of virtual objects. And carrying out interaction by using the target prop.
S103, responding to the selection operation of a second target virtual character in the virtual object set, and controlling the first target virtual character to perform virtual interaction by using the target prop and the second target virtual character.
In an optional embodiment, after the virtual object set is displayed in the graphical user interface, in response to the virtual object list, a second target virtual character which can interact with the first target virtual character by using the target prop is determined, and the first target virtual character is controlled to interact with the second virtual character.
In a possible implementation manner, after a selection operation for a second target virtual character in the virtual object set is received and the second target virtual character is determined, an interaction interface corresponding to the second target virtual character may be displayed in the graphical user interface, and then the first target virtual character is controlled to interact with the second target virtual character according to a touch operation on the interaction interface.
Specifically, the step "controlling the first target virtual character to perform virtual interaction using the target prop and a second target in response to a selection operation for a second target virtual character in the virtual object set" includes:
c1: and responding to the selection operation of a second target virtual role in the virtual object set, and displaying a second interactive interface corresponding to the second target virtual role.
c2: and responding to a third operation aiming at the second interactive interface, and controlling the first target virtual character to interact with the second target virtual character by using the target prop.
In an optional embodiment, in response to a selection operation for a second target virtual character in the virtual object set, a second interaction interface is directly displayed in the graphical user interface, a plurality of interaction options are displayed in the second interaction interface, a target interaction operation is determined according to the selection operation in the interaction options, and then the first target virtual character is controlled to perform target interaction with the second virtual character by using the target prop.
For example, the selected second target virtual character is a shop merchant NPC, and at this time, an interactive interface of the shop merchant is displayed in the graphical user interface, and the interactive options displayed in the interactive interface include: the method comprises the steps of storing the legal treasures, applying for cleaning articles, unlocking by a password, removing article protection time and the like, and if the target interaction selected by the selection operation in the interaction interface is stored for the legal treasures, the first target virtual character can be controlled to store the target prop to a shop merchant, and the interaction is completed.
In a possible implementation manner, if a target object that a player wants to interact with does not exist in the virtual object set, at this time, the player may perform a sliding operation on the virtual object set, hide the current virtual object set, determine a target position corresponding to the target prop again, determine a target position corresponding to the target prop in a manner that a first operation on the target prop is a selection operation on the target prop, directly control the target prop to move again to follow the first operation, determine a new target position, determine a new target object, update the virtual object set, display the updated virtual object set on the graphical user interface again, and select a second target virtual character capable of interacting again.
In a second aspect, the number of determined target objects is one:
specifically, after the step of "detecting whether the number of the target objects determined according to the operation end position of the first operation is plural", the interaction method further includes:
d1: and if the number of the determined target objects is one according to the target position, displaying a first interactive interface corresponding to the target objects.
d2: and responding to a second operation aiming at the first interactive interface, and controlling the first target virtual character to interact with the target object by using the target prop.
In an optional embodiment, if the number of the determined target objects is one, at this time, the virtual object set may not be displayed any more, the first interaction interface corresponding to the target object is directly displayed in the graphical user interface, the plurality of interaction options are displayed in the first interaction interface, the target interaction operation is determined according to a selection operation in the plurality of interaction options, and then the first target virtual character is controlled to perform target interaction with the target object by using the target prop, so that the selection operation of the target character can be omitted, the target interaction is directly performed, and the interaction efficiency is further improved.
In one possible implementation, the target interaction can be performed not only by virtual characters (player characters controlled by players or NPCs controlled by non-players), but also by corresponding props, and the interaction is completed by synthesizing props according to the target props.
Specifically, the interaction method further includes:
e1: and detecting whether the determined target object is a virtual role or not according to the target position.
e2: and if the determined target object is a virtual role according to the target position, displaying a virtual object set in the graphical user interface.
e3: and if the determined target object is not a virtual character according to the target position, placing the target prop on a prop synthesis platform, displaying a prop synthesis set, and synthesizing the props through the displayed props in the prop synthesis set and the target props.
In an optional embodiment, before displaying the virtual object set, it is required to first detect whether a target object determined according to a target position is a virtual character, and if the target object is a virtual character, a step of determining whether to display the virtual object set according to the number of the target objects may be performed at this time, where a specific execution manner is as described above and is not described herein again; if the target object is not a virtual character, determining that matched props are to be interacted at the moment, synthesizing the target interaction to be executed with props, placing the target props on a prop synthesizing table, displaying a prop synthesizing set at the same time, and executing the interaction of prop synthesis through the displayed props in the prop synthesizing set.
In a possible embodiment, the presentation form in the graphical user interface for the prop synthesis set may be: and displaying in a graphical user interface in the form of a prop composite list.
Wherein the prop synthetic set comprises at least one matched prop matched with the target prop; the matched prop is a prop required for synthesizing other props with the target prop, or a synthesized prop synthesized by the target prop;
the display priority of the matched prop in the prop synthesis set is higher than that of other displayed props.
In a possible implementation, a matched prop matched with the target prop needs to be determined, the matched prop is a prop required when the target prop is synthesized into other props, or the prop synthesized by the target prop, and the matched prop can be obtained through quick selection for a player, prop synthesis operation is performed, the matched prop needs to be placed before other display props of a prop synthesis set, so that the player can quickly select the matched prop to perform channel aggregation, and interaction efficiency is further improved.
For example, target prop a may be matched and synthesized with matching prop B to obtain synthesized prop C, and synthesized prop D is synthesized by target prop a, so when a set of prop syntheses is displayed, the display positions of matching prop B and synthesized prop D are at the synthesis position of the set of prop syntheses.
The following explains a control process of interaction in a game in the embodiment of the present application by using a specific example, where the first operation of the target item is described by controlling the target item to move in the graphical user interface along with the touch operation through the touch operation:
taking a plurality of target objects capable of interacting with a first target virtual character through a target prop as an example, please refer to fig. 2, where fig. 2 is one of schematic diagrams of a graphical user interface provided in the embodiment of the present application, as shown in fig. 2, a prop display area 210 of the first target virtual character (not shown in the figure) is displayed in the graphical user interface 200, the target prop 211 is dragged to move in the graphical user interface through a first operation, the first operation is stopped when the target prop 211 is dragged to a virtual character group 220, a target position corresponding to the target prop is determined, a virtual object set 230 is displayed in the graphical user interface 200, and virtual character identifiers 231 corresponding to a plurality of target objects are displayed in the virtual object set 230, where the virtual object set is displayed in the graphical user interface in a form of a virtual object list.
Referring to fig. 3, fig. 3 is a second schematic view of a graphical user interface provided in the present embodiment, as shown in fig. 3, an interaction interface 240 corresponding to a second target virtual character (not shown in the figure) is displayed in the graphical user interface 200 through a selection operation on the second target virtual character (not shown in the figure) in the virtual object set 230, and a player can control the first target virtual character to interact with the second target virtual character by using a target prop through the selection operation of an interaction option on the interaction interface 240.
Taking an example that a target object capable of interacting with a first target virtual character through a target prop is not a virtual character, please refer to fig. 4, where fig. 4 is a third schematic diagram of a graphical user interface provided in this embodiment of the present application, as shown in fig. 4, a target prop (not shown) is dragged to move in the graphical user interface by a first operation, after the target prop (not shown) is dragged to a virtual character group (not shown) to stop the first operation, it is determined that the target object capable of interacting with the target prop (not shown) is not a virtual character according to a target position corresponding to the target prop, at this time, a prop synthesis set 250 is displayed in the graphical user interface, a plurality of displayed props are displayed in the prop synthesis set 250, wherein a matching prop 251 matched with the target prop (not shown) is displayed at a position near the prop synthesis set 250, and a corresponding matching prop can be selected to synthesize the target prop through a selection operation on the prop synthesis set 250, wherein the prop synthesis set is displayed in the graphical user interface in a form of a prop synthesis list.
According to the interaction method in the game, the target position corresponding to the target prop is determined in response to the first operation aiming at the target prop, and the virtual object set is displayed in the graphical user interface, wherein the virtual object set comprises a plurality of target objects which are determined according to the target position and interact with the target prop; and responding to the selection operation aiming at a second target virtual character in the virtual object set, and controlling the first target virtual character to interact with the second target virtual character by using the target prop. Therefore, the target object capable of interacting with the target prop is determined through the operation on the target prop, the virtual object set is displayed, the second target virtual role capable of interacting with the first target virtual role is accurately and quickly determined through the selection operation on the virtual object set, the time for searching the second target virtual role is shortened, and the human-computer interaction efficiency is improved.
Based on the same inventive concept, the embodiment of the present application further provides an interactive device in a game corresponding to the interactive method in a game, and since the principle of solving the problem of the device in the embodiment of the present application is similar to the interactive method in the game in the embodiment of the present application, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
Referring to fig. 5 and fig. 6, fig. 5 is a first schematic structural diagram of an interaction device in a game provided in an embodiment of the present application, and fig. 6 is a second schematic structural diagram of an interaction device in a game provided in an embodiment of the present application. As shown in fig. 5, the interaction device 500 includes:
the prop moving module 510 is configured to determine, in response to a first operation on a target prop, a target position corresponding to the target prop;
an object list presentation module 520 for presenting a set of virtual objects in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position;
an interaction control module 530, configured to, in response to a selection operation for a second target virtual character in the virtual object set, control the first target virtual character to perform virtual interaction using the target prop and the second target virtual character.
In one possible implementation, as shown in fig. 6, the interaction apparatus 500 further includes an object set determination module 540, and the object set determination module 540 is configured to determine the virtual object set by:
sorting the virtual object identifications corresponding to each target object according to the target distance corresponding to each target object and/or the interaction waiting time corresponding to each target object to generate the virtual object set;
for each target object, the target distance corresponding to the target object is the distance between the position of the target object in the graphical user interface and the target position;
and for each target object, the interaction waiting time corresponding to the target object is the interaction waiting time for the target object to interact with the target virtual character, which is determined according to the object state of the target object.
In a possible implementation, as shown in fig. 6, the interaction apparatus 500 further includes an object number detection module 550, where the object number detection module 550 is configured to:
detecting whether the number of the determined target objects is multiple according to the target positions;
and if the number of the determined target objects is more than one according to the target positions, displaying a virtual object set in the graphical user interface.
In a possible implementation manner, as shown in fig. 6, the interaction apparatus 500 further includes an object interaction module 560, and the object interaction module 560 is configured to:
if the number of the determined target objects is one according to the target position, displaying a first interactive interface corresponding to the target objects;
and responding to a second operation aiming at the first interactive interface, and controlling the first target virtual character to interact with the target object by using the target prop.
In one possible embodiment, as shown in fig. 6, the interaction device 500 further includes a prop composition module 570, where the prop composition module 570 is configured to:
detecting whether the target object is determined to be a virtual role or not according to the target position;
if the determined target object is a virtual role according to the target position, displaying a virtual object set in the graphical user interface;
if the determined target object is not a virtual character according to the target position, placing the target prop on a prop synthesis table, displaying a prop synthesis set, and performing prop synthesis through the displayed prop in the prop synthesis set and the target prop;
wherein the prop synthetic set comprises at least one matched prop matched with the target prop; the matched prop is a prop required by synthesizing other props with the target prop, or a synthesized prop synthesized by the target prop;
the display priority of the matched prop in the prop synthesis set is higher than that of other displayed props.
In one possible implementation, the target object is another virtual character whose character model and the target position are overlapped on the graphical user interface;
a game picture shot by a virtual camera is displayed in the graphical user interface; the target object is a virtual character which a target straight line can pass through, and the target straight line is a straight line which simultaneously passes through the virtual camera and the target position.
In one possible embodiment, the target object comprises at least one of:
virtual characters controlled by other players, virtual characters controlled by non-players.
In one possible implementation, when the interaction control module 530 is configured to control the first target avatar to perform virtual interaction with a second target using the target prop in response to a selection operation for the second target avatar in the virtual object set, the interaction control module 530 is configured to:
responding to selection operation of a second target virtual role in the virtual object set, and displaying a second interaction interface corresponding to the second target virtual role;
and responding to a third operation aiming at the second interactive interface, and controlling the first target virtual character to interact with the second target virtual character by using the target prop.
The interaction device in the game, provided by the embodiment of the application, is used for responding to a first operation aiming at a target prop to determine a target position corresponding to the target prop, and displaying a virtual object set in a graphical user interface, wherein the virtual object set comprises a plurality of target objects which are determined according to the target position and interact with the target prop; and responding to the selection operation of a second target virtual character in the virtual object set, and controlling the first target virtual character to interact with the second target virtual character by using the target prop. Therefore, the target object capable of interacting with the target prop is determined through the operation on the target prop, the virtual object set is displayed, the second target virtual role capable of interacting with the first target virtual role is accurately and quickly determined through the selection operation on the virtual object set, the time for searching the second target virtual role is shortened, and the human-computer interaction efficiency is improved.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 7, the electronic device 700 includes a processor 710, a memory 720, and a bus 730.
The memory 720 stores machine-readable instructions executable by the processor 710, and when the electronic device 700 is operated, the processor 710 communicates with the memory 720 via the bus 730, such that the processor 710 executes the following instructions when operated:
responding to a first operation aiming at a target prop, and determining a target position corresponding to the target prop;
presenting a set of virtual objects in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position;
and responding to the selection operation of a second target virtual character in the virtual object set, and controlling the first target virtual character to perform virtual interaction by using the target prop and the second target virtual character.
In a possible implementation manner, the target object is another virtual character of which the character model and the target position are overlapped on a graphical user interface;
a game picture shot by a virtual camera is displayed in the graphical user interface; the target object is a virtual character which a target straight line can pass through, and the target straight line is a straight line which simultaneously passes through the virtual camera and the target position.
In one possible embodiment, the target object includes at least one of:
virtual characters controlled by other players, virtual characters controlled by non-players.
In one possible embodiment, processor 710 executes instructions that determine the set of virtual objects by:
sorting the virtual object identifications corresponding to each target object according to the target distance corresponding to each target object and/or the interaction waiting time corresponding to each target object to generate the virtual object set;
for each target object, the target distance corresponding to the target object is the distance between the position of the target object in the graphical user interface and the target position;
and aiming at each target object, the interaction waiting time corresponding to the target object is the interaction waiting time of the interaction between the target object and the target virtual character, which is determined according to the object state of the target object.
In a possible implementation manner, the instructions executed by the processor 710 further include:
detecting whether the number of the determined target objects is multiple according to the target positions;
and if a plurality of target objects are determined according to the target positions, displaying a virtual object set in the graphical user interface.
In a possible implementation manner, the instructions executed by the processor 710 further include:
if the number of the determined target objects is one according to the target position, displaying a first interactive interface corresponding to the target objects;
and responding to a second operation aiming at the first interactive interface, and controlling the first target virtual character to interact with the target object by using the target prop.
In one possible embodiment, the instructions executed by processor 710, said controlling the first target avatar to perform virtual interaction with a second target using the target prop in response to a selection operation for the second target avatar in the virtual object set includes:
responding to selection operation of a second target virtual role in the virtual object set, and displaying a second interaction interface corresponding to the second target virtual role;
and responding to a third operation aiming at the second interactive interface, and controlling the first target virtual character to interact with the second target virtual character by using the target prop.
In a possible implementation manner, the instructions executed by the processor 710 further include:
detecting whether the target object is determined to be a virtual role or not according to the target position;
if the determined target object is a virtual role according to the target position, displaying a virtual object set in the graphical user interface;
if the determined target object is not a virtual character according to the target position, placing the target prop on a prop synthesis table, displaying a prop synthesis set, and performing prop synthesis through the displayed prop in the prop synthesis set and the target prop;
wherein, the prop synthetic set comprises at least one matched prop matched with the target prop; the matched prop is a prop required for synthesizing other props with the target prop, or a synthesized prop synthesized by the target prop;
the display priority of the matched prop in the prop synthesis set is higher than that of other displayed props.
By the method, the target object capable of interacting with the target prop is determined through the operation of the target prop, the virtual object set is displayed, the second target virtual character capable of interacting with the first target virtual character is accurately and quickly determined through the selection operation on the virtual object set, the time for searching the second target virtual character is reduced, and the human-computer interaction efficiency is improved; meanwhile, when the virtual object set is generated, the virtual object identifications of the target objects close to the target position and/or the target objects with short interaction waiting time are arranged in front, so that a player can quickly position the target objects in the virtual object set for interaction, and the interaction efficiency is further improved; furthermore, when the number of the determined target objects is one, the first interactive interface corresponding to the target object is directly displayed in the graphical user interface so as to directly interact with the target object through the first interactive interface, so that the selection operation of a target role can be omitted, the target interaction is directly performed, and the interaction efficiency is further improved.
Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, so that when executed by a processor, the computer program executes the following instructions:
in response to a first operation aiming at a target prop, determining a target position corresponding to the target prop;
presenting a set of virtual objects in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position;
and responding to the selection operation of a second target virtual character in the virtual object set, and controlling the first target virtual character to perform virtual interaction by using the target prop and the second target virtual character.
In a possible implementation manner, the target object is another virtual character whose character model and the target position are overlapped on the graphical user interface;
a game picture shot by a virtual camera is displayed in the graphical user interface; the target object is a virtual character which a target straight line can pass through, and the target straight line is a straight line which simultaneously passes through the virtual camera and the target position.
In one possible embodiment, the target object comprises at least one of:
virtual characters controlled by other players, virtual characters controlled by non-players.
In one possible implementation, a computer-readable storage medium executes instructions that determine the set of virtual objects by:
sorting the virtual object identifications corresponding to each target object according to the target distance corresponding to each target object and/or the interaction waiting time corresponding to each target object to generate the virtual object set;
for each target object, the target distance corresponding to the target object is the distance between the position of the target object in the graphical user interface and the target position;
and aiming at each target object, the interaction waiting time corresponding to the target object is the interaction waiting time of the interaction between the target object and the target virtual character, which is determined according to the object state of the target object.
In a possible implementation, the computer-readable storage medium executes instructions that further include:
detecting whether the number of the determined target objects is multiple according to the target positions;
and if the number of the determined target objects is more than one according to the target positions, displaying a virtual object set in the graphical user interface.
In a possible implementation, the computer-readable storage medium executes instructions that further include:
if the number of the determined target objects is one according to the target position, displaying a first interactive interface corresponding to the target objects;
and responding to a second operation aiming at the first interactive interface, and controlling the first target virtual character to interact with the target object by using the target prop.
In one possible embodiment, the instructions executed by the computer-readable storage medium, in response to a selection operation for a second target avatar in the set of virtual objects, controlling the first target avatar to virtually interact with a second target using the target prop, include:
responding to selection operation of a second target virtual role in the virtual object set, and displaying a second interactive interface corresponding to the second target virtual role;
and responding to a third operation aiming at the second interactive interface, and controlling the first target virtual character to interact with the second target virtual character by using the target prop.
In a possible implementation, the computer-readable storage medium executes instructions that further include:
detecting whether the determined target object is a virtual role or not according to the target position;
if the determined target object is a virtual role according to the target position, displaying a virtual object set in the graphical user interface;
if the determined target object is not a virtual character according to the target position, placing the target prop on a prop synthesis table, displaying a prop synthesis set, and performing prop synthesis through the displayed prop in the prop synthesis set and the target prop;
wherein the prop synthetic set comprises at least one matched prop matched with the target prop; the matched prop is a prop required by synthesizing other props with the target prop, or a synthesized prop synthesized by the target prop;
the display priority of the matched prop in the prop synthesis set is higher than that of other displayed props.
By the method, the target object capable of interacting with the target prop is determined through the operation of the target prop, the virtual object set is displayed, the second target virtual character capable of interacting with the first target virtual character is accurately and quickly determined through the selection operation on the virtual object set, the time for searching the second target virtual character is reduced, and the human-computer interaction efficiency is improved; meanwhile, when the virtual object set is generated, the virtual object identifications of the target objects which are close to the target position and/or the target objects with short interaction waiting time are arranged in front, so that a player can quickly position the target objects in the virtual object set for interaction, and the interaction efficiency is further improved; furthermore, when the number of the determined target objects is one, the first interactive interface corresponding to the target object is directly displayed in the graphical user interface so as to directly interact with the target object through the first interactive interface, so that the selection operation of a target role can be omitted, the target interaction is directly performed, and the interaction efficiency is further improved.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the units into only one type of logical function may be implemented in other ways, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in software functional units and sold or used as a stand-alone product, may be stored in a non-transitory computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used to illustrate the technical solutions of the present application, but not to limit the technical solutions, and the scope of the present application is not limited to the above-mentioned embodiments, although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: those skilled in the art can still make modifications or changes to the embodiments described in the foregoing embodiments, or make equivalent substitutions for some features, within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the exemplary embodiments of the present application, and are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. An interaction method in a game is characterized in that a terminal device provides a graphical user interface, at least part of a game scene is displayed in the graphical user interface, the game scene comprises a first target virtual character controlled by the terminal device, and the interaction method comprises the following steps:
responding to a first operation aiming at a target prop, and determining a target position corresponding to the target prop;
presenting a set of virtual objects in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position;
and responding to the selection operation of a second target virtual character in the virtual object set, and controlling the first target virtual character to perform virtual interaction by using the target prop and the second target virtual character.
2. The interaction method according to claim 1, wherein the target object is another virtual character whose character model and the target position are overlapped on a graphical user interface;
a game picture shot by a virtual camera is displayed in the graphical user interface; the target object is a virtual character which a target straight line can pass through, and the target straight line is a straight line which simultaneously passes through the virtual camera and the target position.
3. The interaction method of claim 1, wherein the target object comprises at least one of:
virtual characters controlled by other players, virtual characters controlled by non-players.
4. The interaction method of claim 1, wherein the set of virtual objects is determined by:
sorting the virtual object identifications corresponding to each target object according to the target distance corresponding to each target object and/or the interaction waiting time corresponding to each target object to generate a virtual object set;
for each target object, the target distance corresponding to the target object is the distance between the position of the target object in the graphical user interface and the target position;
and aiming at each target object, the interaction waiting time corresponding to the target object is the interaction waiting time of the interaction between the target object and the target virtual character, which is determined according to the object state of the target object.
5. The interactive method of claim 1, further comprising:
detecting whether the number of the determined target objects is multiple according to the target positions;
and if the number of the determined target objects is more than one according to the target positions, displaying a virtual object set in the graphical user interface.
6. The interaction method according to claim 5, wherein after said detecting whether the number of the target objects determined according to the target positions is plural, the interaction method further comprises:
if the number of the determined target objects is one according to the target position, displaying a first interactive interface corresponding to the target objects;
and responding to a second operation aiming at the first interactive interface, and controlling the first target virtual character to interact with the target object by using the target prop.
7. The interaction method according to claim 1, wherein the controlling the first target virtual character to perform virtual interaction using the target prop and a second target in response to the selection operation for the second target virtual character in the virtual object set comprises:
responding to selection operation of a second target virtual role in the virtual object set, and displaying a second interactive interface corresponding to the second target virtual role;
and responding to a third operation aiming at the second interactive interface, and controlling the first target virtual character to interact with the second target virtual character by using the target prop.
8. The interaction method according to claim 1, further comprising:
detecting whether the determined target object is a virtual role or not according to the target position;
if the determined target object is a virtual role according to the target position, displaying a virtual object set in the graphical user interface;
if the determined target object is not a virtual character according to the target position, placing the target prop on a prop synthesis table, displaying a prop synthesis set, and performing prop synthesis through the displayed prop in the prop synthesis set and the target prop;
wherein, the prop synthetic set comprises at least one matched prop matched with the target prop; the matched prop is a prop required by synthesizing other props with the target prop, or a synthesized prop synthesized by the target prop;
the display priority of the matched prop in the prop synthesis set is higher than that of other displayed props.
9. An interaction device in a game, wherein a terminal device provides a graphical user interface, at least a part of a game scene is displayed in the graphical user interface, the game scene includes a first target virtual character controlled by the terminal device, and the interaction device comprises:
the position determining module is used for responding to a first operation aiming at a target prop and determining a target position corresponding to the target prop;
an object set presentation module for presenting a set of virtual objects in the graphical user interface; the virtual object set comprises virtual object identifications of at least one target object; the target object is a virtual role which is determined to interact with the target prop according to the target position;
and the interaction control module is used for responding to the selection operation aiming at a second target virtual character in the virtual object set and controlling the first target virtual character to use the target prop and the second target virtual character to carry out virtual interaction.
10. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the in-game interaction method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, performs the steps of the method of interaction in a game as claimed in any one of claims 1 to 9.
CN202310015593.8A 2023-01-04 2023-01-04 Interactive method and device in game, electronic equipment and readable storage medium Pending CN115920403A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310015593.8A CN115920403A (en) 2023-01-04 2023-01-04 Interactive method and device in game, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310015593.8A CN115920403A (en) 2023-01-04 2023-01-04 Interactive method and device in game, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN115920403A true CN115920403A (en) 2023-04-07

Family

ID=86550720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310015593.8A Pending CN115920403A (en) 2023-01-04 2023-01-04 Interactive method and device in game, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115920403A (en)

Similar Documents

Publication Publication Date Title
US7922584B2 (en) Image generation method and information storage medium with program for video game in which operation of the controller beyond a predetermined angle causes a character to attack
CN111729306A (en) Game character transmission method, device, electronic equipment and storage medium
JP7386360B2 (en) Information processing method, apparatus and terminal device
TWI831066B (en) Method for state switching in virtual scene, device, apparatus, medium and program product
US12011662B2 (en) Interface display method, apparatus, terminal, and storage medium
CN113398601B (en) Information transmission method, information transmission device, computer-readable medium, and apparatus
US20220266139A1 (en) Information processing method and apparatus in virtual scene, device, medium, and program product
CN114377396A (en) Game data processing method and device, electronic equipment and storage medium
CN110801629B (en) Method, device, terminal and medium for displaying virtual object life value prompt graph
US20220392153A1 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
CN113440846A (en) Game display control method and device, storage medium and electronic equipment
CN111921195B (en) Three-dimensional scene generation method and device, storage medium and electronic device
CN112156459A (en) Method and apparatus for controlling battle game, storage medium, and electronic apparatus
CN112138385B (en) Virtual shooting prop aiming method and device, electronic equipment and storage medium
US20240173621A1 (en) Target locking method and apparatus, and electronic device and storage medium
CN114911558A (en) Cloud game starting method, device and system, computer equipment and storage medium
CN111151004A (en) Game unit deployment method and device, electronic equipment and storage medium
CN115920403A (en) Interactive method and device in game, electronic equipment and readable storage medium
CN115430153A (en) Collision detection method, device, apparatus, medium, and program in virtual environment
CN114225413A (en) Collision detection method and device, electronic equipment and storage medium
CN114011069A (en) Control method of virtual object, storage medium and electronic device
JP7131905B2 (en) Information processing method, server device, program, and information terminal
CN113730910A (en) Method and device for processing virtual equipment in game and electronic equipment
CN113350785A (en) Virtual character rendering method and device and electronic equipment
CN112755524A (en) Virtual target display method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination