Information processing method and device in game, electronic equipment and storage medium
By providing the second control in the game's graphical user interface, users can choose controls closer to the virtual object to send information, solving the problem of low information transmission efficiency and low accuracy in the game, and improving the accuracy and efficiency of operations.
Patent Information
- Application Number
- CN202411657481.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-03-11
AI Technical Summary
During the game information processing, the information transmission efficiency and accuracy are low, making it easy to cause error messages to be sent or failed to send information.
By providing a second control in the graphical user interface, the second control has the same function as the first control, the user can select a control closer to the first virtual object to send information, reducing the possibility of misoperation during the control dragging process.
It improves the efficiency and accuracy of information transmission during game information processing, reduces the possibility of errors, and solves the problems of low efficiency and low accuracy of information transmission.
Smart Images

Figure CN119587963A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information processing technology, and in particular to an information processing method, device, electronic device and storage medium in a game. Background Art
[0002] With the development of mobile communication technology, more and more mobile terminal games have emerged, such as multiplayer cooperative mobile terminal games. Multiplayer cooperative games require mutual cooperation among multiple teammates in a team, and in the process of mutual cooperation, it may be necessary to send offensive, defensive or other types of communication information to teammate players. In the prior art, information can be sent to teammate players by dragging a specified control in the interface in a mobile terminal. For example, after dragging a specified control to the position of an enemy target hero, information can be sent to teammate players to focus on the enemy target hero.
[0003] However, the game scene area is vast and the content is complex. This method of dragging the specified control to the game object is prone to misoperation, which may not only cause wrong information to be sent to teammates, but also cause the failure of information sending because no scene object is selected. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a method, device, electronic device and storage medium for processing information in a game, so as to solve the problems of low efficiency and low accuracy of information transmission during the game information processing.
[0005] In a first aspect, an embodiment of the present application provides an information processing method in a game, wherein a graphical user interface is displayed through a first terminal device, and the graphical user interface includes a game scene, a first virtual object, and a first control. The method includes:
[0006] In response to a first drag operation of dragging a first control to a response area where a first virtual object is located, triggering a target function for the first virtual object;
[0007] In response to a first trigger operation on the first control, displaying a second control on the graphical user interface;
[0008] In response to a second dragging operation of dragging the second control to the response area where the first virtual object is located, a target function for the first virtual object is triggered.
[0009] In a second aspect, an embodiment of the present application further provides an information processing device in a game, which displays a graphical user interface through a first terminal device, wherein the graphical user interface includes a game scene, a first virtual object, and a first control, and the device includes:
[0010] A first function triggering module, configured to trigger a target function for the first virtual object in response to a first dragging operation of dragging a first control to a response area where a first virtual object is located;
[0011] A control display module, configured to display a second control on a graphical user interface in response to a first trigger operation on the first control;
[0012] The second function triggering module is used to respond to a second dragging operation of dragging the second control to the response area where the first virtual object is located, and trigger a target function for the first virtual object.
[0013] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the information processing method in the game as described above are performed.
[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the information processing method in the game as described above are executed.
[0015] The embodiments of the present application bring the following beneficial effects:
[0016] An information processing method, device, electronic device and storage medium in a game provided by an embodiment of the present application can provide a second control in a graphical user interface when operating a first control, and the second control has the same function as the first control. The user can select a control that is closer to the first virtual object to send information, thereby reducing the possibility of misoperation during the dragging of the control. Compared with the information processing method in the game in the prior art, the problem of low efficiency and low accuracy in information sending during the game information processing process is solved.
[0017] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0019] Figure 1A flowchart showing an information processing method in a game provided by an embodiment of the present application is shown;
[0020] Figure 2 A schematic diagram of a first control in a graphical user interface provided in an embodiment of the present application is shown;
[0021] Figure 3 A schematic diagram showing a first position and a second position in a graphical user interface provided in an embodiment of the present application is shown;
[0022] Figure 4 A schematic diagram showing a target function triggering process provided by an embodiment of the present application is shown;
[0023] Figure 5 A schematic diagram showing another target function triggering process provided by an embodiment of the present application is shown;
[0024] Figure 6 A schematic diagram showing the structure of an information processing device in a game provided by an embodiment of the present application is shown;
[0025] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0027] It is worth noting that, before the present application was filed, with the development of mobile communication technology, more and more mobile terminal games have emerged, such as multiplayer cooperative mobile terminal games. Multiplayer cooperative games require mutual cooperation among multiple teammates in a team, and in the process of mutual cooperation, it may be necessary to send offensive, defensive or other types of communication information to teammate players. In the prior art, information can be sent to teammate players by dragging a specified control in the interface in a mobile terminal.
[0028] For example, in a game scene of a mobile terminal card game including multiple enemy heroes and multiple friendly heroes, the current player can select a designated control in the graphical user interface and drag the designated control to the location of the enemy target hero, thereby sending a message to other teammate players to focus on the enemy target hero.
[0029] For another example: the current player can select a designated control in the graphical user interface and drag the designated control to the location of a friendly target hero, thereby sending information to other teammate players to heal the friendly target hero or provide enhanced attribute status for the friendly target hero.
[0030] However, the game scene area is vast and the content is complex. This method of dragging the specified control to the game object is prone to misoperation, which may not only cause wrong information to be sent to teammates, but also cause the failure of information sending because no scene object is selected.
[0031] Based on this, an embodiment of the present application provides an information processing method in a game to improve the efficiency and accuracy of information sending during the game information processing process.
[0032] The terms involved in the embodiments of the present application are explained below.
[0033] Graphical User Interface:
[0034] It is an interface display format for communication between people and computers, allowing users to manipulate icons, logos or menu options on the screen using input devices such as a mouse or keyboard, and also allowing users to manipulate icons or menu options on the screen by performing touch operations on the touch screen of a touch terminal to select commands, start programs or perform other tasks.
[0035] Virtual scene:
[0036] It is a virtual scene displayed (or provided) when the application is running on a terminal device or server, that is, the scene used in the normal game process. In other words, the virtual scene refers to the virtual game control that carries the virtual object during the game process. The virtual object can perform actions such as movement and skill release in the virtual scene under the operation instructions issued by the user (i.e., the player) to the terminal device. Optionally, the virtual scene can be a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, and a three-dimensional virtual scene. The virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts and cities. Among them, the virtual scene is a scene in which the user controls the complete game logic of the virtual object. Optionally, the virtual scene can also be used for a virtual environment battle between at least two virtual objects, and there are virtual resources available for at least two virtual objects in the virtual scene. Exemplarily, the virtual scene can include any one or more of the following elements: game background elements, game virtual character elements, game prop elements, etc.
[0037] In an optional implementation, the information processing method in the game in one embodiment of the present disclosure can be run on a local terminal device or a server. When the information processing method in the game is run 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.
[0038] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the game loading method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the 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, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0039] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0040] In a possible implementation, an embodiment of the present invention provides an information processing method in a game, displaying a graphical user interface through a first terminal device, the graphical user interface including a game scene, a first virtual object and a first control, wherein the first terminal device can be the local terminal device mentioned above, or it can be the client device in the cloud interaction system mentioned above.
[0041] See also Figure 1 , Figure 1 This is a flow chart of an information processing method in a game provided by an embodiment of the present application. Figure 1 As shown, the information processing method in the game provided by the embodiment of the present application includes:
[0042] Step S101, in response to a first dragging operation of dragging a first control to a response area where a first virtual object is located, triggering a target function for the first virtual object;
[0043] Step S102, in response to a first trigger operation on the first control, displaying a second control on the graphical user interface;
[0044] Step S103, in response to a second dragging operation of dragging the second control to a response area where the first virtual object is located, triggering a target function for the first virtual object.
[0045] The present application can provide a second control in a graphical user interface when operating a first control, and the second control has the same function as the first control. The user can select a control that is closer to the first virtual object to send information, thereby reducing the possibility of misoperation during control dragging and solving the problem of low efficiency and low accuracy in information transmission during game information processing.
[0046] Below Figure 1 Each step in the description is described in detail.
[0047] In step S101, in response to a first dragging operation of dragging a first control to a response area where a first virtual object is located, a target function for the first virtual object is triggered.
[0048] The first terminal device may refer to a mobile terminal device currently used by the player, and for example, the first terminal device may be a mobile terminal device such as a mobile phone, a tablet computer, or a laptop computer. A graphical user interface is provided through the first terminal device, and the graphical user interface includes a first control.
[0049] The second terminal device may refer to a mobile terminal device used by a teammate of the current player. For example, the second terminal device may be a mobile terminal device such as a mobile phone, a tablet computer or a laptop computer.
[0050] The first control may refer to a functional control in a graphical user interface for sending prompt messages. Exemplarily, the first control may be a control for sending messages or signals to teammate players, so as to inform teammate players of their own game strategies through the message. For example, the message sent may be to focus fire on the enemy target hero, or to inform teammate players which card they are going to use.
[0051] The first virtual object may refer to a virtual object located in the game scene, and the type of the first virtual object includes any one of the following items: an enemy controlled virtual object, a friendly controlled virtual object, an uncontrolled virtual character, and a card. Among them, when the game in the first terminal device is a battle card game, the game is divided into two teams, namely team A and team B, and each team has multiple players. Assume that the current player is a player of team A, and the other players in team A except the current player are teammates of the current player. The controlled virtual character controlled by the player of team A is called a friendly controlled virtual object. The enemy of the current player is the player of team B, and the controlled virtual character controlled by the player of team B is called an enemy controlled virtual object.
[0052] The response area may refer to an area that responds to the first drag operation. When the first control is dragged to the response area where the first virtual object is located, the target function for the first virtual object will be triggered; when the first control is dragged outside the response area where the first virtual object is located, the target function for the first virtual object will not be triggered. The response area is a preset area bound to the first virtual object, and the response area will move with the movement of the first virtual object.
[0053] The target function may refer to the function corresponding to the first control. As an example, the target function may be to send a prompt message to the second terminal device. If the target function corresponding to the first control is to send a prompt message to the second terminal device, then when the first control is dragged to the response area where the first virtual object is located, the prompt message sending function for the first virtual object will be triggered. The second terminal device is a terminal device controlled by a teammate of the player who controls the first terminal device. Taking the above example, the second terminal device is a terminal device controlled by other players in team A except the current player.
[0054] The first drag operation is used to trigger the function of the first control. As an example, the first drag operation may be a long press operation on the screen of the first terminal device.
[0055] Refer to the following Figure 2 Let's introduce the dragging process of the first control.
[0056] Figure 2 A schematic diagram of a first control in a graphical user interface provided in an embodiment of the present application is shown. Figure 2 As shown, the first control 210 is located at the right short side of the graphical user interface. At this time, the left short side opposite to the right short side of the graphical user interface does not display the second control. The current player can drag the logo of the first control 210 through the first drag operation. Figure 2 In the example, the current player is dragging the identifier of the first control 210 toward the virtual object 200 through a first drag operation. When the identifier of the first control 210 is dragged to the response area of the virtual object 200, the target function for the virtual object 200 will be triggered.
[0057] In an embodiment of the present application, the current player can drag the first control to the response area where the first virtual object is located through a first drag operation. At this time, the identifier of the first control will be displayed in the graphical user interface, and the identifier of the first control will move with the first drag operation. When the identifier of the first control moves to the response area where the first virtual object is located, the target function for the first virtual object is triggered to send a prompt message for the first virtual object to the teammates of the current player.
[0058] In one example, the prompt message is a prompt message generated based on the object type of the first virtual object and a preset prompt information template. The target function for the first virtual object is triggered in the following manner: determining the object type of the first virtual object, and determining the prompt information template according to the object type, so as to generate prompt information for reflecting the current battle strategy using the prompt information template.
[0059] For example: if the object type of the first virtual object is an enemy controlled virtual object, a prompt information template for attacking the enemy target is selected. Exemplarily, the prompt information template for attacking the enemy target may be "Please attack target XXX". Here, the name of the first virtual object may be used to replace "XXX" in the template, so that the replaced prompt message can be sent to the second terminal device controlled by each teammate player.
[0060] If the object type of the first virtual object is a friendly controlled virtual object, a prompt message template for defending a friendly target is selected. For example, the prompt message template for defending a friendly target may be "Please provide support to XXX", where the name of the first virtual object may be substituted for "XXX" in the template, so that the replaced prompt message is sent to the second terminal device controlled by each teammate player;
[0061] If the object type of the first virtual object is a card, a corresponding card prompt information template is selected according to the card type. For example, if the card is a mobile card used to limit the number of movement steps of the controlled virtual character controlled by the current player, the card prompt information template may be "XXX's number of movement steps is insufficient", where the name of the current player can be replaced with "XXX" in the template, so that the replaced prompt message is sent to the second terminal device controlled by each teammate player. If the card is a conventional combat card, for example: a card that causes damage to the enemy's controlled virtual character or a card that weakens the combat ability of the controlled virtual character, then the card prompt information template may be "This hero will use XXX card", where the card name of the card to be used can be replaced with "XXX" in the template, so that the replaced prompt message is sent to the second terminal device controlled by each teammate player.
[0062] By sending prompt messages to teammate players, teammate players can be instructed to adjust the current battle strategy in time to increase the possibility of winning the game.
[0063] In step S102, in response to a first trigger operation on a first control, a second control is displayed on a graphical user interface.
[0064] The second control triggers the same function as the first control, and the first position of the first control and the second position of the second control are located on both sides of the graphical user interface, respectively. The position of the second control is determined by the position of the first control in the graphical user interface. For example: when the first terminal device is in horizontal display mode, such as the current game is in horizontal game mode, the first control and the second control are respectively located near the short side of the first terminal device, and when the first virtual object is in the left half screen area, it is triggered by the control located near the left, and when the first virtual object is in the right half screen area, it is triggered by the control located near the right; when the first terminal device is in vertical display mode, such as the current game is in vertical game mode, the first control and the second control are respectively located near the long side of the first terminal device.
[0065] Furthermore, the first control and the second control may be located in the graphical user interface at positions close to the two short sides of the first terminal device. For example, when the current graphical user interface display mode is the horizontal screen display mode, the first control and the second control are located close to the left and right sides of the first terminal respectively; when the current graphical user interface display mode is the vertical screen display mode, the first control and the second control are located close to the upper and lower sides of the first terminal respectively. When the first virtual object is located in the lower half screen area, it is triggered by the control located close to the bottom edge; when the first virtual object is located in the upper half screen area, it is triggered by the control located close to the top edge.
[0066] It should be noted that the first control and the second control may be displayed in the graphical user interface at the same time, or only one of the controls may be displayed at the same time.
[0067] The second control may refer to a control obtained after mapping the first control in the graphical user interface. In the graphical user interface, the identifier of the first control is the same as the identifier of the second control, and the identifier of the first control and the identifier of the second control are respectively located on both sides of the graphical user interface. Here, the identifier of the control may refer to the icon of the control. The icon of the first control and the icon of the second control may be the same, or may be symmetrical about the long side of the screen of the first terminal device. For example: the current game is in horizontal screen game mode, the icon of the first control and the icon of the second control are respectively located near the left and right short sides of the first terminal device. When the icon of the first control is the same as the icon of the second control, if the icon of the first control is an "exclamation mark", the icon of the second control is also an "exclamation mark"; when the icon of the first control and the icon of the second control are symmetrical about the long side of the screen, if the icon of the first control located on the short side of the right side of the screen is a "left arrow", the icon of the second control located on the short side of the left side of the screen may be a "right arrow".
[0068] The first position of the first control on the graphical user interface and the second position of the second control on the graphical user interface are relatively far apart in the length direction of the screen of the first terminal device. For example: when the current player participates in the game in landscape mode through the first terminal device, the length direction of the screen of the first terminal device is the vertical direction; when the current player participates in the game in portrait mode through the first terminal device, the length direction of the screen of the first terminal device is the horizontal direction. Assuming that the length direction of the screen is the vertical direction, when the first position is the right side of the screen, the second position is the left side of the screen; when the first position is the left side of the screen, the second position is the right side of the screen.
[0069] The second position includes any one of the following items: a second position at a fixed position, a second position at a variable position.
[0070] In one case, the second position is a fixed position preset by the program. For example, when the current player's mobile phone screen cannot be rotated or the game does not support the vertical screen display mode, the current player can only participate in the game in the horizontal screen mode, then the second position can be determined according to the first position, and the second position is fixed. The second position can also be a mirror position determined according to the display mode of the interface in the graphical user interface. For example: according to the display mode of the interface in the graphical user interface, the length direction of the screen is determined to determine the second position according to the length direction of the screen. At this time, the second position can also be called a mapping position. Among them, the display mode can refer to the horizontal screen display mode or the vertical screen display mode. When the interface in the graphical user interface is the horizontal screen display mode, the length direction is the vertical direction. At this time, if the first position is located in the lower right corner of the graphical user interface, the second position is the lower left corner of the graphical user interface, and the first position and the second position are symmetrical about the middle line of the vertical direction; when the interface in the graphical user interface is the vertical screen display mode, the length direction is the horizontal direction. At this time, if the first position is located in the upper right corner of the graphical user interface, the second position is located in the lower right corner of the graphical user interface, and the first position and the second position are symmetrical about the middle line of the horizontal direction.
[0071] In another case, the second position is a variable position, for example: the second position is determined based on historical data: at this time, the object type of the virtual object selected by dragging the first control through the first drag operation in the target historical period (such as the last month) can be obtained, and the target object type that may be selected by the first drag operation in the current game can be predicted based on the object type in the target historical period. Then, the positions of all target virtual objects that meet the target object type in the current game are determined to predict the best position of the second control based on the position of the target virtual object. Here, assuming that there are three target virtual objects that meet the target object type, the center point positions of the three target virtual objects are calculated based on the positions of the three target virtual objects, and the generation position of the second control that is relatively far away from the first control is determined based on the center point position, so that when the first trigger operation is performed on the first control, the second control is displayed at the predicted generation position. Among them, the generation position of the second control that is relatively far away from the first control needs to meet the following conditions: that is, the distance between the generation position of the second control and the center point position is much smaller than the distance between the first control and the center point position, and much smaller can refer to the ratio of the two distances being less than the set threshold.
[0072] Refer to the following Figure 3 Let's introduce the first position and the second position.
[0073] Figure 3 A schematic diagram showing a first position and a second position in a graphical user interface provided in an embodiment of the present application is shown. Figure 3 As shown, control 210 is a first control, and the position of control 210 is the first position, and control 220 is a second control, and the position of control 220 is the second position. The first position is located on the right side of the graphical user interface, and the second position is located on the right side of the graphical user interface, and the first position and the second position are symmetrical about the middle line 230 in the vertical direction of the graphical user interface.
[0074] In the embodiment of the present application, before the first control is not selected, the first control is provided in the first graphical user interface, but the second control is not provided. If the current player selects the first control, then in response to the first trigger operation for the first control, the second control corresponding to the first control is displayed at the second position of the graphical user interface. The first trigger operation can be a single click operation or a long press operation.
[0075] In one example, after the second control is displayed on the graphical user interface, in response to the end of the first trigger operation, the second control is hidden.
[0076] Here, the first trigger operation is used to display the second control. When the first trigger operation ends, the second control is no longer displayed in the graphical user interface. When the user wants to display the second control again, the first trigger operation only needs to be performed again for the first control.
[0077] In one example, the graphical user interface also includes a second virtual object, and in response to a third drag operation of dragging the first control to the response area where the second virtual object is located, a target function for the second virtual object is triggered. The distance of the first virtual object relative to the second control is smaller than the distance relative to the first control, and the distance of the second virtual object relative to the first control is smaller than the distance relative to the second control.
[0078] Here, since the first virtual object is closer to the second control, the user can trigger the target function for the first virtual object by dragging the second control, so that the user can select the first virtual object more accurately and quickly. Similarly, since the second virtual object is closer to the first control, the user can trigger the target function for the second virtual object by dragging the first control, so that the user can select the second virtual object more accurately and quickly.
[0079] In step S103, in response to a second dragging operation of dragging the second control to the response area where the first virtual object is located, a target function for the first virtual object is triggered.
[0080] In this step, after the second control is displayed in the graphical user interface through the first trigger operation, the first control and the second control are displayed in the graphical user interface at the same time. At this time, the target function for the first virtual object can be triggered by any one of the two controls, and the control that triggers the target function for the first virtual object is called the target control, that is, the target control is the control between the first control and the second control that first meets the function trigger condition.
[0081] Among them, the function trigger condition may refer to the condition for triggering the function corresponding to the control, for example: when a predetermined operation is performed on the target control, and the predetermined operation is not performed on the preset control, it is determined that the target control meets the function trigger condition, and the predetermined operation may be an operation of dragging the target control to the first virtual object model to select the first virtual object; or when a preset voice control instruction is sent to the target control, and the preset voice control is not sent to the preset control, it is determined that the target control meets the function trigger condition, for example: when the current user issues a voice control instruction of "use the first control", it is determined that the first control meets the function trigger condition.
[0082] The preset control is the control other than the target control in the first control and the second control. For example, if the preset control is the first control, the target control is the second control; if the preset control is the second control, the target control is the first control.
[0083] In an embodiment of the present application, when responding to a predetermined operation performed on a target control, it is prohibited to respond to an operation performed on a preset control. Assuming that the target control is a first control, when a first drag operation is performed on the first control, it is prohibited to respond to a second drag operation performed on a second control; assuming that the target control is a second control, when a second drag operation is performed on the second control, it is prohibited to respond to the first drag operation performed on the first control. In other words, when responding to a predetermined operation performed on either the first control or the second control, the drag operation performed on the other control is not responded to.
[0084] In addition, if the target control is the second control, since it is prohibited to respond to the first drag operation performed on the first control when responding to the second drag operation performed on the second control, in order to restore the response to the operation performed on the preset control when the predetermined operation ends, when the predetermined operation performed on the target control ends, the response to the operation performed on the preset control is restored, so that when the current player selects the first control again, the second control can still be provided in the graphical user interface.
[0085] For example, in the process of displaying the second control in the graphical user interface, in response to a fourth drag operation of dragging the first control to the response area where the third virtual object is located, a target function of the third virtual object is triggered.
[0086] Here, the third virtual object may be the first virtual object, the second virtual object, or another virtual object different from the first virtual object and the second virtual object. The fourth drag operation may be an operation continuous with the first trigger operation, that is, after the second control is displayed through the first trigger operation, the user continues to perform the fourth drag operation on the first control to drag the first control to the response area where the third virtual object is located, thereby triggering the target function for the third virtual object.
[0087] Refer to the following Figure 4 and Figure 5 Let's introduce the process of triggering the target function.
[0088] Figure 4 A schematic diagram of a target function triggering process provided by an embodiment of the present application is shown, such as Figure 4 As shown, position 310 is the second position where the second control is located, and area 320 is the response area where the first virtual object 330 is located. When the position where the second drag operation ends is located in area 320, the target function for the first virtual object 330 is triggered.
[0089] Figure 5 A schematic diagram of another target function triggering process provided by an embodiment of the present application is shown, such as Figure 5As shown, position 410 is the first position of the first control, area 420 is the response area where the third virtual object 430 is located, and the third virtual object is a card. When the position where the fourth drag operation ends is located in area 420, the target function for the third virtual object 430 is triggered, for example: prompting teammates that this hero will use this card.
[0090] In another example, if the third virtual object is a virtual object controlled by a friendly party, then when the position where the fourth drag operation ends is located within the response area of the virtual object controlled by the friendly party, a target function for the third virtual object is triggered, for example, prompting a teammate player to protect the virtual object controlled by the friendly party. Alternatively, if the third virtual object is a virtual object controlled by an enemy, then when the position where the fourth drag operation ends is located within the response area of the virtual object controlled by the enemy, a target function for the third virtual object is triggered, for example, prompting a teammate player to attack the virtual object controlled by the enemy.
[0091] Similarly, no matter whether the first virtual object, the second virtual object, or the third virtual object is selected, the object type of the virtual object needs to be determined, and then the prompt information template is determined according to the object type, so as to use the prompt information template to generate a prompt message for reflecting the current battle strategy.
[0092] In one example, after responding to the second drag operation performed on the second control, it is also necessary to promptly cancel the display of the second control, that is, respond to the end of the second drag operation and hide the second control. So that the graphical user interface is restored to the state before the first trigger operation. Here, when the current player long presses or clicks the first control, the second control will be displayed during the duration of the long press or click, and then the display of the second control in the graphical user interface will be canceled at the end of the long press or click. If the second drag operation on the second control ends, it indicates that the target function of a virtual object has been triggered, or the triggering of the target function has been abandoned. In any of the above situations, the second control must be hidden at the end of the second drag operation to display a control for triggering the target function for the virtual object, that is, the first control, in the graphical user interface.
[0093] After the target function is triggered and a prompt message is generated, the prompt message needs to be displayed in both the graphical user interface of the first terminal device and the graphical user interface of the second terminal device.
[0094] In one example, in order to enable teammates and / or the current player to see the sent prompt message in time, a prompt message may be provided at a preset position corresponding to the first game character controlled by the current player in the graphical user interface provided by the first terminal device, and / or a prompt message may be provided at a preset position corresponding to the first game character in the graphical user interface provided by the second terminal device. The preset position may be the top of the head of the first game character, the sole of the foot of the first game character, or other positions corresponding to the first game character.
[0095] In addition, the prompt message can also be displayed on the team channel of the chat window in the graphical user interface provided by the first terminal device and / or the team channel of the chat window in the graphical user interface provided by the second terminal device, so as to instruct teammate players what battle strategy to adopt through chat information.
[0096] Based on the same inventive concept, the embodiments of the present application also provide an information processing device in the game corresponding to the information processing method in the game. Since the principle of solving the problem by the device in the embodiments of the present application is similar to the information processing method in the above-mentioned game in the embodiments of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0097] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of an information processing device in a game provided by an embodiment of the present application. Figure 6 As shown in , a graphical user interface is displayed by a first terminal device, the graphical user interface includes a game scene, a first virtual object and a first control, and the information processing device 500 in the game includes:
[0098] A first function triggering module 501, configured to trigger a target function for the first virtual object in response to a first dragging operation of dragging a first control to a response area where a first virtual object is located;
[0099] A control display module 502, configured to display a second control on a graphical user interface in response to a first trigger operation on the first control;
[0100] The second function triggering module 503 is configured to trigger a target function for the first virtual object in response to a second dragging operation of dragging the second control to a response area where the first virtual object is located.
[0101] In a feasible implementation of the present application, the graphical user interface also includes a second virtual object, and the information processing device 500 in the game also includes a third function trigger module, which is used to respond to a third drag operation of dragging the first control to the response area where the second virtual object is located, and trigger the target function for the second virtual object; wherein the distance of the first virtual object relative to the second control is smaller than the distance relative to the first control, and the distance of the second virtual object relative to the first control is smaller than the distance relative to the second control.
[0102] In a feasible implementation scheme of the present application, the first trigger operation is a long press operation.
[0103] In a feasible implementation of the present application, the information processing device 500 in the game also includes a first control hiding module, which is used to hide the second control in response to the end of the first trigger operation after the second control is displayed on the graphical user interface.
[0104] In a feasible implementation of the present application, the information processing device 500 in the game further includes a second control hiding module, and the second control hiding module is used to hide the second control in response to the end of the second drag operation.
[0105] In a feasible implementation of the present application, the information processing device 500 in the game also includes a fourth function trigger module, which is used to: in the process of displaying the second control in the graphical user interface, respond to a fourth drag operation of dragging the first control to the response area where the third virtual object is located, and trigger the target function of the third virtual object.
[0106] In a feasible implementation scheme of the present application, the first control and the second control are respectively located on the left and right sides of the first terminal device.
[0107] In a feasible implementation of the present application, the target function is to send a prompt message to a second terminal device, and the second terminal device is a terminal device controlled by a teammate of the player who controls the first terminal device.
[0108] In a feasible implementation scheme of the present application, the prompt message is a prompt message generated based on the object type of the first virtual object and a preset prompt information template.
[0109] In a feasible implementation of the present application, the object type of the first virtual object includes any one of the following items: a virtual object controlled by an enemy, a virtual object controlled by a friendly party.
[0110] In a feasible implementation of the present application, the identifier of the first control is the same as the identifier of the second control.
[0111] Through the information processing device in the above-mentioned game, the present application can provide a second control in the graphical user interface when operating the first control, and the second control has the same function as the first control. The user can select a control that is closer to the first virtual object to send information, which reduces the possibility of misoperation during the dragging of the control and solves the problem of low efficiency and low accuracy in information transmission during the game information processing.
[0112] See also Figure 7 , Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown in , the electronic device 600 includes a processor 610 , a memory 620 and a bus 630 .
[0113] The memory 620 stores machine-readable instructions executable by the processor 610. When the electronic device 600 is running, the processor 610 communicates with the memory 620 via the bus 630. When the machine-readable instructions are executed by the processor 610, the following steps may be performed:
[0114] A graphical user interface is displayed through a first terminal device, the graphical user interface including a game scene, a first virtual object and a first control, and in response to a first dragging operation of dragging the first control to a response area where the first virtual object is located, a target function for the first virtual object is triggered; in response to a first triggering operation for the first control, a second control is displayed on the graphical user interface; in response to a second dragging operation of dragging the second control to the response area where the first virtual object is located, the target function for the first virtual object is triggered.
[0115] Through the above-mentioned electronic device, the present application can provide a second control that is closer to the first virtual object in the graphical user interface when operating the first control, and the second control has the same function as the first control. The user can select the second control that is closer to the first virtual object to send information, which reduces the possibility of misoperation during the control dragging process and solves the problem of low efficiency and low accuracy in information transmission during game information processing.
[0116] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps may be performed:
[0117] A graphical user interface is displayed through a first terminal device, the graphical user interface including a game scene, a first virtual object and a first control, and in response to a first dragging operation of dragging the first control to a response area where the first virtual object is located, a target function for the first virtual object is triggered; in response to a first triggering operation for the first control, a second control is displayed on the graphical user interface; in response to a second dragging operation of dragging the second control to the response area where the first virtual object is located, the target function for the first virtual object is triggered.
[0118] Through the above-mentioned readable storage medium, the present application can provide a second control in the graphical user interface when operating the first control, and the second control has the same function as the first control. The user can select a control that is closer to the first virtual object to send information, which reduces the possibility of misoperation during the dragging of the control and solves the problem of low efficiency and low accuracy in information transmission during game information processing.
[0119] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0120] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0121] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0122] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0123] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0124] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for processing information in a game, characterized in that: Displaying a graphical user interface by a first terminal device, the graphical user interface including a game scene, a first virtual object and a first control, the method comprising: In response to a first dragging operation of dragging the first control to a response area where the first virtual object is located, triggering a target function for the first virtual object; In response to a first trigger operation on the first control, displaying a second control on the graphical user interface; In response to a second dragging operation of dragging the second control to a response area where the first virtual object is located, the target function for the first virtual object is triggered.
2. The method according to claim 1, characterized in that The graphical user interface also includes a second virtual object, and the method further includes: In response to a third drag operation of dragging the first control to a response area where a second virtual object is located, triggering a target function for the second virtual object; Among them, the distance of the first virtual object relative to the second control is smaller than the distance relative to the first control, and the distance of the second virtual object relative to the first control is smaller than the distance relative to the second control.
3. The method according to claim 1, characterized in that The first trigger operation is a long press operation.
4. The method according to claim 1, characterized in that: After the graphical user interface displays the second control, the method further includes: In response to the completion of the first trigger operation, the second control is hidden.
5. The method according to claim 1, characterized in that The method further comprises: In response to the end of the second drag operation, hiding the second control.
6. The method according to claim 1, characterized in that The method further comprises: During displaying the second control in the graphical user interface, in response to a fourth drag operation of dragging the first control to a response area where a third virtual object is located, a target function for the third virtual object is triggered.
7. The method according to claim 1, characterized in that The first control and the second control are respectively located on the left and right sides of the first terminal device.
8. The method according to claim 1, characterized in that The target function is to send a prompt message to a second terminal device, where the second terminal device is a terminal device controlled by a teammate of a player who controls the first terminal device.
9. The method according to claim 8, characterized in that The prompt message is a prompt message generated based on the object type of the first virtual object and a preset prompt information template.
10. The method according to claim 9, characterized in that The object type of the first virtual object includes any one of the following items: Virtual objects controlled by enemies and virtual objects controlled by friends.
11. The method according to claim 1, characterized in that: The identifier of the first control is the same as the identifier of the second control.
12. An information processing device in a game, characterized in that: Displaying a graphical user interface through a first terminal device, the graphical user interface including a game scene, a first virtual object and a first control, including: A first function triggering module, configured to trigger a target function for the first virtual object in response to a first dragging operation of dragging the first control to a response area where the first virtual object is located; A control display module, configured to display a second control on the graphical user interface in response to a first trigger operation on the first control; A second function triggering module is configured to trigger the target function for the first virtual object in response to a second dragging operation of dragging the second control to a response area where the first virtual object is located.
13. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the information processing method in the game as described in any one of claims 1 to 11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the information processing method in the game as claimed in any one of claims 1 to 11 are executed.