Method and apparatus for transmitting interaction information, electronic device and readable storage medium
By setting up display areas for teammates and interactive objects in the game interface, and detecting and sending target interaction information, the problem of low efficiency in player-teammate interaction is solved, and efficient and rich interaction methods are achieved.
Patent Information
- Application Number
- CN202211086164.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-06
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2042-09-06
AI Technical Summary
In existing games, the interaction efficiency between players and teammates is low, and it is impossible to quickly and effectively carry out interactive operations such as notification and command.
By setting a first display area for teammates and a second display area for interactive objects in the game's graphical user interface, simultaneous touch operations are detected to determine the selection of teammates and interactive objects, and target interaction information is automatically sent.
It improves the efficiency and richness of interaction between players and their teammates, meets the complex and ever-changing real-time interaction needs, and enhances the reliability of the interaction.
Smart Images

Figure CN115382221B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of game interaction technology, specifically to a method, apparatus, electronic device, and computer-readable storage medium for transmitting interactive information. Background Technology
[0002] In existing games, when players want to interact with specific teammates, such as by notifying them or giving them commands (e.g., informing teammates to give them virtual items or directing them to search for supplies at a certain location), they usually need to communicate by typing or using voice chat. This process is cumbersome and cannot be done quickly or effectively, resulting in low interaction efficiency between users and their game teammates. Summary of the Invention
[0003] This application provides a method, apparatus, electronic device, and computer-readable storage medium for transmitting interactive information, which can improve the interaction efficiency between players and game teammates, increase the richness of interactive content, meet the complex and ever-changing real-time interaction needs in actual games, and improve the reliability of interactive content between players and game teammates.
[0004] In a first aspect, embodiments of this application provide a method for transmitting interactive information, including:
[0005] A graphical user interface that displays a virtual scene of the current game, wherein the graphical user interface includes a first display area for game teammates and a second display area for interactive objects;
[0006] Detect simultaneous touch operations in the first display area and the second display area, wherein the simultaneous touch operations include a first touch operation in the first display area and a second touch operation in the second display area;
[0007] Based on the stop touch position of the first touch operation and the stop touch position of the second touch operation, the selected teammate in the first display area and the selected interactive object in the second display area are determined;
[0008] Send the target interaction information associated with the selected interaction object to the selected teammate.
[0009] Secondly, embodiments of this application also provide an interactive information transmission device, comprising:
[0010] The display unit is used to display a graphical user interface with a virtual scene of the current game, wherein the graphical user interface includes a first display area for game teammates and a second display area for interactive objects;
[0011] The detection unit is used to detect simultaneous touch operations in the first display area and the second display area, wherein the simultaneous touch operations include a first touch operation in the first display area and a second touch operation in the second display area;
[0012] The determining unit is used to determine the selected teammate in the first display area and the selected interactive object in the second display area based on the stop touch position of the first touch operation and the stop touch position of the second touch operation;
[0013] The transmission unit is used to send target interaction information associated with the selected interaction object to the selected teammate.
[0014] In some embodiments, the interactive object is a virtual item, and the determining unit is specifically used for:
[0015] Determine the stop touch position of the first touch operation in the first display area;
[0016] The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area;
[0017] Determine the stop touch position of the second touch operation in the second display area;
[0018] The virtual prop displayed at the stop touch position of the second touch operation is used as the selected virtual prop in the second display area;
[0019] In some embodiments, the transmission unit is specifically used for:
[0020] Send the target interaction message to the selected teammate, which will give the selected virtual item to the selected teammate.
[0021] In some embodiments, the transmission unit is specifically used for:
[0022] Detect the distance between the selected teammate and the player who owns the selected virtual item;
[0023] If the distance is less than a preset distance threshold, then the selected teammate is given the gift.
[0024] In some embodiments, the interactive object is a map, the selected interactive object is a map location, and the determining unit is specifically used for:
[0025] Determine the stop touch position of the first touch operation in the first display area;
[0026] The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area;
[0027] Determine the stop touch position of the second touch operation in the second display area;
[0028] The map position displayed at the stop touch position of the second touch operation is used as the selected map position in the second display area;
[0029] In some embodiments, the transmission unit is specifically used for:
[0030] Sending target interaction information associated with the selected interaction object to the selected teammate includes:
[0031] Send target interaction information to the selected teammate to travel to the selected map location.
[0032] In some embodiments, the transmission unit is specifically used for:
[0033] Obtain the target location type of the selected map location;
[0034] Obtain the target game task that is pre-associated with the target location type;
[0035] Send the target interaction information to the selected teammate to go to the selected map location to perform the target game task.
[0036] In some embodiments, the detection unit is specifically used for:
[0037] Detect the first trigger time of the first touch operation in the first display area;
[0038] Detect the second trigger time of the second touch operation in the second display area;
[0039] If the time interval between the first trigger time and the second trigger time is less than a preset time interval, then it is determined that there is simultaneous touch operation in the first display area and the second display area.
[0040] In some embodiments, the interactive information transmission device further includes a cancellation unit, wherein after detecting simultaneous touch operations in the first display area and the second display area, the cancellation unit is specifically used for:
[0041] The graphical user interface displays a cancellation area for the simultaneous touch operation;
[0042] If the stop touch position of the first touch operation is the cancellation area, then the simultaneous touch operation is cancelled; or, if the stop touch position of the second touch operation is the cancellation area, then the simultaneous touch operation is cancelled.
[0043] In some embodiments, the interactive information transmission device further includes a prompting unit, wherein after the simultaneous touch operation of the first display area and the second display area is detected, the prompting unit is specifically used for:
[0044] Detect the currently displayed teammate at the current touch position of the first touch operation;
[0045] Detect the currently displayed interactive object at the current touch position of the second touch operation;
[0046] The target prompt information for the simultaneous touch operation is displayed, wherein the target prompt information is used to indicate that when the touch is stopped, the interaction information associated with the currently displayed interaction object will be sent to the currently displayed teammate.
[0047] Thirdly, embodiments of this application also provide an electronic device, including a memory storing multiple instructions; the processor loads instructions from the memory to execute steps in any of the interactive information transmission methods provided in embodiments of this application.
[0048] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute steps in any of the interactive information transmission methods provided in embodiments of this application.
[0049] This application embodiment sets a first display area for game teammates and a second display area for interactive objects. When a first touch operation occurs in the first display area and a second touch operation occurs in the second display area simultaneously, the interaction function is triggered. The game teammate at the stop touch position of the first touch operation is selected as the teammate for this interaction, and the interactive object at the stop touch position of the second touch operation is selected as the interactive object for this interaction. The target interaction information associated with the selected interactive object is automatically sent to the selected teammate. On the one hand, this avoids the cumbersome operation of players communicating by typing or voice during interactions such as communication and command, thereby improving the interaction efficiency between players and game teammates. On the other hand, since any game teammate displayed in the first display area can be combined with any interactive object displayed in the second display area, the richness of the interaction content can be increased, meeting the complex and ever-changing real-time interaction needs in actual gameplay and improving the reliability of the interaction content between players and game teammates. Attached Figure Description
[0050] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0051] Figure 1 This is a schematic diagram of the interactive information transmission system provided in an embodiment of this application;
[0052] Figure 2 This is a schematic flowchart of an embodiment of the interactive information transmission method provided in this application.
[0053] Figure 3 This is a schematic diagram of a scenario of the graphical user interface provided in this embodiment;
[0054] Figure 4 This is an illustrative diagram illustrating the selection of teammates and the selection of interactive objects provided in the embodiments of this application;
[0055] Figure 5 This is another flowchart illustrating the interactive information transmission method provided in the embodiments of this application;
[0056] Figure 6 This is a schematic diagram of the structure of the interactive information transmission device provided in the embodiments of this application;
[0057] Figure 7 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0058] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. At the same time, in the description of the embodiments of this application, the terms "first," "second," etc., are only used to distinguish descriptions and should not be construed as indicating or implying relative importance. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0059] This application provides a method, apparatus, electronic device, and computer-readable storage medium for transmitting interactive information. Specifically, the method for transmitting interactive information in this application can be executed by an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0060] For example, when this interactive information transmission method is running on a terminal, the terminal device stores a game application and uses it to display virtual scenes in the game. The terminal device is used to interact with the user through a graphical user interface (GUI), such as by downloading, installing, and running the game application. The terminal device can provide the GUI to the user in various ways, such as rendering it on the terminal device's display screen or presenting the GUI through holographic projection. For example, the terminal device can include a touch screen and a processor. The touch screen is used to present the GUI and receive operation commands generated by the user interacting with the GUI, which includes game scenes. The processor is used to run the game, generate the GUI, respond to operation commands, and control the display of the GUI on the touch screen.
[0061] For example, when the method of transmitting interactive information runs on a server, it can be cloud gaming. Cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the main body running the game application and the main body displaying the game screen are separate. The storage and operation of the method of transmitting interactive information are completed on the cloud gaming server. The display of the game screen is completed on the cloud gaming client. The cloud gaming client is mainly used for receiving and sending game data and displaying the game screen. For example, the cloud gaming client can be a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, PDA, personal digital assistant, etc., but the terminal device for processing game data is the cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the cloud gaming client through the network, and finally, the cloud gaming client decodes and outputs the game screen.
[0062] Please see Figure 1 , Figure 1 This is a schematic diagram of an interactive information transmission system provided in an embodiment of this application. The system may include at least one terminal 1000, at least one server 2000, at least one database 3000, and a network 4000. The user-held terminal 1000 can connect to servers of different games via the network 4000. The terminal 1000 can be any device with computing hardware capable of supporting and executing software products corresponding to the game. Additionally, the terminal 1000 has one or more multi-touch screens for sensing and obtaining input from touch or swipe operations performed by the user at multiple points on one or more touch displays. Furthermore, when the system includes multiple terminals 1000, multiple servers 2000, and multiple networks 4000, different terminals 1000 can be interconnected through different networks 4000 and different servers 2000. The network 4000 can be a wireless network or a wired network, such as a wireless local area network (WLAN), local area network (LAN), cellular network, 2G network, 3G network, 4G network, 5G network, etc. Furthermore, different terminals 1000 can connect to other terminals or servers using their own Bluetooth networks or hotspot networks. For example, multiple users can connect online through different terminals 1000 and synchronize with each other via appropriate networks to support multiplayer games. Additionally, the system can include multiple databases 3000, which are coupled to different servers 2000. Information related to the game environment can be continuously stored in the databases 3000 as different users engage in multiplayer games online.
[0063] The interactive information transmission method provided in this application embodiment can be executed by a terminal or a server. This application embodiment uses the execution of the interactive information transmission method by a terminal as an example for explanation. The terminal includes a touch screen and a processor. The touch screen is used to present a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. When the user operates the GUI through the touch screen, the GUI can control local content on the terminal in response to the received operation commands, or it can control content on a peer server in response to the received operation commands. For example, the operation commands generated by the user interacting with the GUI may include commands to launch a game application. The processor is configured to launch the game application after receiving the user's command to launch the game application. Furthermore, the processor is configured to render and draw the GUI associated with the game on the touch screen. The touch screen is a multi-touch sensitive screen capable of sensing touch or swipe operations performed simultaneously by multiple points on the screen. When the user performs touch operations on the GUI using their finger, the GUI, upon detecting the touch operation, controls different virtual objects in the game's GUI to perform actions corresponding to the touch operation. For example, the game can be any of the following: casual game, action game, role-playing game, strategy game, sports game, puzzle game, etc. The game can include a virtual scene drawn on a graphical user interface. Furthermore, the virtual scene can include one or more virtual objects, such as virtual characters, controlled by the user (or player). Optionally, the virtual scene can also include one or more elements, such as skills, scores, character health status, energy, etc., to provide assistance to the player, offer virtual services, increase scores related to player performance, etc. Additionally, the graphical user interface can present one or more indicators to provide guidance information to the player. For example, the game can include virtual objects controlled by the player and one or more other virtual objects (such as enemy characters). In one embodiment, one or more other virtual objects are controlled by other players in the game. For example, one or more other virtual objects can be computer-controlled, such as robots using artificial intelligence (AI) algorithms to achieve a human-computer interaction mode. For example, virtual objects possess various skills or abilities used by the player to achieve objectives. For example, virtual objects possess one or more weapons, items, tools, etc., that can be used to eliminate other objects in the game. Such skills or abilities can be activated by the player using one of several preset touch operations on the terminal's touchscreen display. The processor can be configured to respond to the operation commands generated by the user's touch operations to display the corresponding game screen.
[0064] The following is a detailed description in conjunction with the accompanying drawings. It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments. Although a logical order is shown in the flowcharts, in some cases, the steps shown or described may be performed in a different order than that shown in the drawings.
[0065] like Figure 2 As shown, the specific process of this interactive information transmission method can be summarized in steps 201 to 204, wherein:
[0066] 201. Display a graphical user interface with a virtual scene of the current game.
[0067] The current game is one that requires interaction, such as, but not limited to, shooting games and MOBA (Multiplayer Online Battle Arena) games.
[0068] The graphical user interface includes a first display area for game teammates and a second display area for interactive objects.
[0069] The first display area is used to showcase a player's in-game teammates, for example, such as... Figure 3 As shown, Figure 3 The left side of the graphical user interface shown is the display area for the player's teammates, which is the first display area.
[0070] Interaction objects refer to the content objects that players interact with their teammates in the game, such as virtual items and maps. For example, when informing a teammate to give them a virtual item, the interaction object is the virtual item. Similarly, when directing a teammate to search for supplies at a certain location, the interaction object could be a map.
[0071] The second display area is used to showcase content objects that players can interact with their teammates in the game, such as... Figure 3 As shown, Figure 3 The right side of the graphical user interface shows a display area for content objects (such as virtual items) that players can interact with in the game. This display area for content objects (such as virtual items) that players can interact with in the game is the second display area.
[0072] To improve the ease of human-computer interaction, a first display area and a second display area can be set on the left and right sides of the graphical user interface (GUI) closest to the user's handheld touchscreen terminal, respectively. This facilitates simultaneous touch operation of both display areas. For example, the first display area can be located on the left side of the GUI, and the second display area on the right side, allowing the user to operate the first display area with their left hand and the second display area with their right hand. Alternatively, the first display area can be located on the right side of the GUI, and the second display area on the left side, allowing the user to operate the first display area with their right hand and the second display area with their left hand.
[0073] Taking a terminal with a touch screen as an example, in step 201, a graphical user interface can be generated on the touch screen by executing a game application. The virtual scene on the graphical user interface includes a first display area for game teammates and a second display area for interactive objects. The virtual scene on the graphical user interface may also contain at least one virtual object.
[0074] For example, such as Figure 3 As shown, a graphical user interface 100 can be generated on the touch screen of terminal 1000 by executing a game application. The virtual scene on the graphical user interface 100 includes a first display area 10 for game teammates, a second display area 20 for interactive objects, and at least one virtual object 30. Further, the second display area 20 may include multiple sub-display areas, each used to display a type of interactive object; for example, the second display area 20 may include two sub-display areas 21 and 22, where sub-display area 21 is for displaying virtual props and sub-display area 22 is for displaying a map.
[0075] There are several ways to display game teammates in the first display area 10. For example, by default, the first display area 10 displays a list of the player's n game teammates, and the player can select a teammate by directly clicking on any teammate in the list. Alternatively, to simplify the graphical user interface, the first display area 10 displays teammate icons by default. When the player clicks a teammate's icon, a more detailed list of the player's n game teammates will be displayed, and the player can select a teammate by clicking on any teammate in the further displayed list. Furthermore, to improve interaction efficiency, the game teammates displayed in the first display area can be sorted according to information such as the frequency of interaction between the player and their teammates, and the importance of the teammate's role.
[0076] The second display area 20 can display interactive objects in several ways. For example, by default, the second display area 20 displays a list of multiple interactive objects, and players can select an interactive object by directly clicking on any interactive object in the list. Alternatively, to simplify the graphical user interface, the second display area 20 can display icons of interactive objects by default. When a player clicks on an interactive object's icon, a more detailed list of multiple interactive objects will be displayed, and players can select an interactive object by clicking on any interactive object in this further displayed list.
[0077] 202. Detect simultaneous touch operations in the first display area and the second display area.
[0078] The simultaneous touch operation includes a first touch operation in the first display area and a second touch operation in the second display area.
[0079] Simultaneous touch operation refers to simultaneously performing touch operations on the first display area and the second display area.
[0080] In some embodiments, detecting the existence of simultaneous touch operations can specifically be done by: detecting whether a touch operation on the second display area exists while a touch operation on the first display area is detected; or, detecting whether a touch operation on the first display area exists while a touch operation on the second display area is detected. Taking "detecting whether a touch operation on the second display area exists while a touch operation on the first display area is detected" as an example, in step 202, it can be determined whether a simultaneous touch operation on the first and second display areas has occurred by detecting whether a touch operation on the second display area exists while a touch operation on the first display area exists. If a touch operation on the second display area is detected while a touch operation on the first display area exists, then it is determined that a simultaneous touch operation on the first and second display areas has occurred; if no touch operation on the second display area is detected while a touch operation on the first display area exists, then it is determined that no simultaneous touch operation on the first and second display areas has occurred.
[0081] In other embodiments, detecting the existence of simultaneous touch operations may specifically involve: detecting whether the interval between the start time of the touch operation on the first display area and the start time of the touch operation on the second display area is less than a preset time interval. If the interval between the start time of the touch operation on the first display area and the start time of the touch operation on the second display area is less than the preset time interval, then it is determined that a simultaneous touch operation has occurred on the first and second display areas; otherwise, if the interval between the start time of the touch operation on the first display area and the start time of the touch operation on the second display area is greater than or equal to the preset time interval, then it is determined that no simultaneous touch operation has occurred on the first and second display areas. For example, if the interval between clicking the first display area and clicking the second display area is within 0.5 seconds, then it can be considered that a simultaneous touch operation on the first and second display areas has been detected. Exemplarily, in this case, detecting simultaneous touch operations in step 202 may specifically include the following steps 2021 to 2023, wherein:
[0082] 2021. Detect the first trigger time of the first touch operation in the first display area.
[0083] The first touch operation refers to a touch operation on the first display area, such as tapping the first display area with a finger; or pressing and holding the first display area with a finger and then sliding it within the first display area.
[0084] The first trigger time refers to the start time of the first touch operation. For example, if the first touch operation is "tap the first display area with your finger", then the start time of the first touch operation is the instant the finger taps the first display area. Similarly, if the first touch operation is "press and hold the first display area and then slide within the first display area", then the start time of the first touch operation is the instant the finger presses and holds the first display area.
[0085] 2022. Detect the second trigger time of the second touch operation in the second display area.
[0086] The second touch operation refers to the touch operation on the second display area, such as tapping the second display area with a finger; or pressing and holding the second display area with a finger and then sliding it within the second display area.
[0087] The second trigger time refers to the start time of the second touch operation. For example, if the second touch operation is "tap the second display area with your finger", then the start time of the second touch operation is the instant the finger taps the second display area. Similarly, if the second touch operation is "press and hold the second display area with your finger and then slide it within the second display area", then the start time of the second touch operation is the instant the finger presses and holds the second display area.
[0088] 2023. If the time interval between the first trigger time and the second trigger time is less than a preset time interval, then it is determined that there is simultaneous touch operation in the first display area and the second display area.
[0089] For example, if the time interval between clicking the first display area and clicking the second display area is within 0.5 seconds, it can be considered that simultaneous touch operations were detected in the first and second display areas.
[0090] If the time interval between the first trigger time and the second trigger time is greater than or equal to the preset time interval, it is determined that there is no simultaneous touch operation in the first display area and the second display area.
[0091] Alternatively, if no second touch operation is detected in the second display area within a preset time interval after the first trigger time of the first touch operation detected in the first display area, it is determined that there is no simultaneous touch operation in the first and second display areas. Similarly, if no first touch operation is detected in the first display area within a preset time interval after the second trigger time of the second touch operation detected in the second display area, it is determined that there is no simultaneous touch operation in the first and second display areas.
[0092] The specific values of the preset time intervals mentioned above are only examples. The specific values of the preset time intervals can be set according to the actual business scenario requirements. There are no restrictions on the specific values of the preset time intervals here.
[0093] By setting the time interval between the first trigger time and the second trigger time to be less than a preset time interval, it is determined that there is simultaneous touch operation in the first display area and the second display area, which can avoid accidental triggering of the interactive content transmission function.
[0094] 203. Based on the stop touch position of the first touch operation and the stop touch position of the second touch operation, determine the selected teammate in the first display area and the selected interactive object in the second display area.
[0095] The stop touch position of the first touch operation refers to the position where the finger leaves the first display area of the graphical user interface after pressing it. For example, ... Figure 4 As shown in (a), if a player presses and holds point "a" within the first display area, then slides to point "Friend 1" within the first display area and releases their finger, the stop touch position for the first touch operation is point "Friend 1". Similarly, if a player presses and holds point "a" within the first display area, then slides to point "b" outside the first display area and releases their finger, the stop touch position for the first touch operation is point "b".
[0096] The stopping position of the second touch operation refers to the position where the finger leaves the second display area of the graphical user interface after pressing it. For example, ... Figure 4 As shown in (b), if the player presses and holds point "c" within the second display area, then slides to the "Interactive Object 1" position within the second display area and releases their finger, the stop touch position for the second touch operation is the "Interactive Object 1" position. Similarly, if the player presses and holds point "c" within the second display area, then slides to point "d" outside the second display area and releases their finger, the stop touch position for the second touch operation is point "d".
[0097] Among them, "selected teammate" refers to the game teammate that the player selects and needs to interact with.
[0098] Among them, the selected interaction object refers to the interaction object that the player selects and interacts with the selected teammate.
[0099] 204. Send the target interaction information associated with the selected interaction object to the selected teammate.
[0100] Among them, target interaction information refers to the interaction information to be sent to the selected teammate and associated with the selected interaction object.
[0101] The following example, using virtual props and a map as the interaction objects, illustrates how step 203 determines the selection of teammates and interaction objects.
[0102] 1. The interactive object is a virtual prop. In this case, the second display area is specifically the display area for the virtual prop, and step 203 may specifically include the following steps 2031A to 2034A, wherein:
[0103] 2031A. Determine the stop touch position of the first touch operation in the first display area.
[0104] For example, after a touch operation on the first display area is detected (e.g., after a player's finger taps the first display area of the graphical user interface), it can be detected whether the player's finger that tapped the first display area has left the graphical user interface. If it is detected that the player's finger has left the graphical user interface, then the position where the player's finger left the first display area after pressing it is obtained is used as the stop touch position of the first touch operation.
[0105] Otherwise, if the player's finger leaving the graphical user interface after clicking the first display area is not detected, the system continues to detect whether the player's finger leaving the graphical user interface after clicking the first display area.
[0106] 2032A. The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area.
[0107] For example, if a player presses the first display area of a game teammate and the second display area of a virtual item at the same time, and then slides the left hand to "Game Teammate 1" in the first display area and releases the left hand, the stop touch position of the first touch operation is "Game Teammate 1" in the first display area. The teammate displayed at "Game Teammate 1" in the first display area can be selected as the teammate in the first display area.
[0108] 2033A. Determine the stop touch position of the second touch operation in the second display area.
[0109] For example, after a touch operation on the second display area is detected (e.g., after a player's finger taps the second display area of the graphical user interface), it can be detected whether the player's finger that tapped the second display area has left the graphical user interface. If it is detected that the player's finger has left the graphical user interface, then the position where the player's finger was pressed on the second display area of the graphical user interface and when the finger left the graphical user interface is obtained, which is used as the stop touch position of the second touch operation.
[0110] Otherwise, if the player's finger leaving the graphical user interface after clicking the second display area is not detected, the system continues to detect whether the player's finger leaving the graphical user interface after clicking the second display area.
[0111] 2034A. The virtual prop displayed at the stop touch position of the second touch operation is used as the selected virtual prop in the second display area.
[0112] For example, if a player presses the first display area of a game teammate and the second display area of a virtual item at the same time, and then slides the right hand to "Virtual Item 1" in the second display area and releases the right hand, the stop touch position of the second touch operation will be "Virtual Item 1" in the second display area. The virtual item displayed at "Virtual Item 1" in the second display area can be used as the selected virtual item in the second display area.
[0113] At this point, step 204 may specifically include: sending the selected teammate a target interaction message to give the selected virtual item to the selected teammate.
[0114] As can be seen, by using the virtual item at the stop touch position of the second touch operation as the selected virtual item for this interaction, the system automatically sends the target interaction message of gifting the selected virtual item to the selected teammate. On the one hand, this avoids the cumbersome operation of players notifying teammates to gift virtual items by typing or speaking, thus improving the interaction efficiency of players notifying teammates to gift virtual items. On the other hand, since any virtual item displayed in the first display area can be combined with any virtual item displayed in the second display area, the system can increase the richness of various situations of "notifying teammates to gift virtual items", meet the complex and ever-changing real-time interaction needs in actual gameplay, and improve the reliability of the interaction content between players and teammates.
[0115] Furthermore, to improve the convenience and accuracy of gifting virtual items, if the selected teammate and the player who owns the selected virtual item are close to each other, then after determining the selected teammate and the selected interaction object (i.e., the selected virtual item) in step 203, the player who owns the selected virtual item can directly gift the selected virtual item to the selected teammate. That is, the method for transmitting this interaction information can further include: detecting the distance between the selected teammate and the player who owns the selected virtual item; if the distance is less than a preset distance threshold, then gifting the virtual item to the selected teammate.
[0116] 2. The interactive object is a map, and the selected interactive object is specifically a location on the map. At this time, the second display area is specifically the map display area. Step 203 may specifically include the following steps 2031B to 2034B, wherein:
[0117] 2031B. Determine the stop touch position of the first touch operation in the first display area.
[0118] 2032B. The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area.
[0119] Steps 2031B to 2032B are similar to steps 2031A to 2032A above. For details, please refer to the relevant descriptions above. For the sake of simplicity, they will not be repeated here.
[0120] 2033B. Determine the stop touch position of the second touch operation in the second display area.
[0121] For example, after a touch operation on the second display area is detected (e.g., after a player's finger taps the second display area of the graphical user interface), it can be detected whether the player's finger that tapped the second display area has left the graphical user interface. If it is detected that the player's finger has left the graphical user interface, then the position where the player's finger was pressed on the second display area of the graphical user interface and when the finger left the graphical user interface is obtained, which is used as the stop touch position of the second touch operation.
[0122] Otherwise, if the player's finger leaving the graphical user interface after clicking the second display area is not detected, the system continues to detect whether the player's finger leaving the graphical user interface after clicking the second display area.
[0123] 2034B. The map position displayed at the stop touch position of the second touch operation is used as the selected map position in the second display area.
[0124] For example, if a player presses the first display area of a game teammate and the second display area of the map at the same time, and then releases the right hand after pressing the second display area and sliding it to point "a", the stop touch position of the second touch operation is point "a" in the second display area. The "Map position 1" displayed at point "a" in the second display area can be used as the selected map position in the second display area.
[0125] At this point, step 204 may specifically include: sending target interaction information to the selected teammate to travel to the selected map location.
[0126] As can be seen, by using the map location at the stop touch position of the second touch operation as the selected map location for this interaction, the system automatically sends target interaction information to the selected teammate to go to the selected map location. On the one hand, this avoids the cumbersome operation of players having to use typing or voice to notify teammates to go to a certain point to perform tasks, thus improving the interaction efficiency of players directing teammates to perform tasks. On the other hand, since any game friend displayed in the first display area can be combined with any map location displayed in the second display area, the system can increase the richness of various situations of "directing teammates to perform tasks", meet the complex and ever-changing real-time interaction needs in actual gameplay, and improve the reliability of the interaction content between players and teammates.
[0127] Furthermore, to enhance the richness of interactive content and make the interactive content of steps 201-204 more aligned with the player's real-time needs, thereby improving interaction efficiency and the reliability of cooperation between players and teammates, different interactive information can be sent based on the category of the selected map location. That is, "send target interactive information to the selected teammate to go to the selected map location." Specifically, this can include the following steps A1-A3, wherein:
[0128] A1. Obtain the target location type of the selected map location.
[0129] Location type refers to the classification of map locations, such as houses, roads, etc.
[0130] The target location type refers to the category of the selected map location. For example, houses, roads, etc.
[0131] For example, each map location in the map has a corresponding location type preset, and each map location and its corresponding location type are associated and stored in a preset database. In step A1, the location type associated with the selected map location can be directly obtained from the preset database as the target location type of the selected map location.
[0132] A2. Obtain the target game task that is pre-associated with the target location type.
[0133] Among them, the target game task refers to the game operation associated with the target location type.
[0134] For example, each location type has a corresponding game task preset. For instance, "house" corresponds to the game task of "scavenging resources," and "road" corresponds to the game task of "finding a car." Each location type and its corresponding game task are associated and stored in a preset database. In step A2, the game task associated with the target location type can be directly retrieved from the preset database as the target game task.
[0135] A3. Send target interaction information to the selected teammate to go to the selected map location and perform the target game operation.
[0136] For example, when the selected map location is on a road, send the interaction message "Let the selected teammate go to the selected map location to find a car", or when the selected map location is in a house, send the interaction message "Let the selected teammate go to the selected map location to loot supplies".
[0137] Furthermore, to meet the needs of business scenarios such as accidental cancellation and player-interaction termination, after detecting simultaneous touch operations in the first and second display areas in step 202, a cancellation area for the simultaneous touch operation can be displayed in the graphical user interface. For example, to improve the ease of human-computer interaction, a cancellation area for the simultaneous touch operation can be displayed in the middle of the graphical user interface to trigger cancellation of the current operation. If the stop touch position of the first touch operation is the cancellation area, the simultaneous touch operation is cancelled; or, if the stop touch position of the second touch operation is the cancellation area, the simultaneous touch operation is cancelled.
[0138] For example, a first display area can be displayed on the left side of the graphical user interface (GUI), a second display area on the right side, and a cancellation area for simultaneous touch operations in the middle. If a player simultaneously presses the first display area with their left hand and the second display area with their right hand, and then slides their left hand from the first display area on the left to the cancellation area in the middle and releases their left hand, the operation will be cancelled, and no further interaction information will be sent to teammates.
[0139] Alternatively, if a player simultaneously presses the first display area with their left hand and the second display area with their right hand, and then slides their right hand from the second display area on the right to the cancel area in the middle, and releases their left hand, the operation will also be canceled, and no further interaction information will be sent to teammates.
[0140] Furthermore, to ensure the accuracy of selecting teammates and interactive objects, and to guarantee the accuracy of the target interactive information, the currently selected game teammates and interactive objects can be highlighted, and a prompt message such as "Releasing your hand will send the interactive information associated with the currently selected interactive object to the currently selected game teammate" can be output. That is, after detecting simultaneous touch operations in the first and second display areas in step 202, the method for transmitting this interactive information can further include the following steps B1 to B3, wherein:
[0141] B1. Detect the currently displayed teammate at the current touch position of the first touch operation.
[0142] The current touch position of the first touch operation refers to the position of the graphical user interface that the player's finger is currently touching after touching the first display area.
[0143] Among them, the currently displayed teammate refers to the game teammate currently displayed at the current touch position of the first touch operation in the graphical user interface.
[0144] B2. Detect the currently displayed interactive object at the current touch position of the second touch operation.
[0145] The current touch position of the second touch operation refers to the position of the graphical user interface that the player's finger is currently touching after touching the second display area.
[0146] The currently displayed interactive object refers to the interactive object that is currently displayed at the current touch position of the second touch operation in the graphical user interface.
[0147] B3. Display the target prompt information for the simultaneous touch operation.
[0148] The target prompt information is used to indicate that when touch is stopped, the interactive information associated with the currently displayed interactive object will be sent to the currently displayed teammate.
[0149] Please see Figure 5 , Figure 5 This is another flowchart illustrating the interactive information transmission method provided in this application embodiment. The specific flow of this method can be as follows:
[0150] 501. Display a graphical user interface with a virtual scene of the current game.
[0151] The graphical user interface includes a first display area for game teammates and a second display area for interactive objects.
[0152] Step 501 is similar to step 201 above. For details, please refer to the relevant instructions above. It will not be repeated here.
[0153] 502. Detect simultaneous touch operations in the first display area and the second display area.
[0154] The simultaneous touch operation includes a first touch operation in the first display area and a second touch operation in the second display area.
[0155] Step 502 is similar to steps 202 and 2021-2023 above. For details, please refer to the relevant instructions above. It will not be repeated here.
[0156] 503. Based on the currently displayed teammate at the current touch position of the first touch operation and the currently displayed interactive object at the current touch position of the second touch operation, display the target prompt information of the simultaneous touch operation.
[0157] The target prompt information is used to indicate that when touch is stopped, the interaction information associated with the currently displayed interaction object will be sent to the currently displayed teammate.
[0158] Step 503 is similar to steps B1 to B3 above. For details, please refer to the relevant instructions above. It will not be repeated here.
[0159] 504. Based on the stop touch position of the first touch operation, determine the selected teammate.
[0160] For example, after detecting that the finger that initiated the first touch operation has stopped touching, the system first checks whether the stopping position of the first touch operation is within the first display area or the cancellation area. If the stopping position of the first touch operation is within the first display area, refer to step 203 above to confirm the selection of the teammate; this will not be repeated here. If the stopping position of the first touch operation is within the cancellation area, the operation will be cancelled, and no further interaction information will be sent to the game teammate.
[0161] For example, if you slide from the starting touch position in the first display area to the target game teammate's location in the first display area, and then stop the touch operation (e.g., release your finger), the teammate displayed at the target game friend's location will be selected as the teammate. Here, the starting touch position in the first display area refers to the earliest touch position corresponding to the first touch operation.
[0162] Step 504, which determines the selected teammate, is implemented in a similar way to step 203 above. For details, please refer to the relevant instructions above, which will not be repeated here.
[0163] 505. Determine the selected interactive object based on the stop touch position of the second touch operation.
[0164] For example, after detecting that the finger in the second touch operation has stopped touching, the system first checks whether the stopping position of the second touch operation is within the second display area or the cancellation area. When the stopping position of the second touch operation is within the second display area, the selected interactive object is determined by referring to step 203 above, which will not be repeated here. When the stopping position of the second touch operation is within the cancellation area, the operation will be cancelled, and no further interactive information will be sent to game teammates.
[0165] Step 505 determines the selected interactive object in a similar way to step 203 above. For details, please refer to the relevant instructions above. It will not be repeated here.
[0166] 506. Send the target interaction information associated with the selected interaction object to the selected teammate.
[0167] Step 506 is similar to step 204 above. For details, please refer to the relevant instructions above. It will not be repeated here.
[0168] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0169] As can be seen from the above, in this embodiment, by setting a first display area for game teammates and a second display area for interactive objects, the interaction function is triggered when there is a first touch operation in the first display area and a second touch operation in the second display area simultaneously. The game teammate at the stop touch position of the first touch operation is selected as the teammate for this interaction, and the interactive object at the stop touch position of the second touch operation is selected as the interactive object for this interaction. The target interaction information associated with the selected interactive object is automatically sent to the selected teammate. On the one hand, this avoids the cumbersome operation of players communicating by typing or voice when communicating or commanding, thereby improving the interaction efficiency between players and game teammates. On the other hand, since any game teammate displayed in the first display area can be combined with any interactive object displayed in the second display area, the richness of the interaction content can be increased, meeting the complex and ever-changing real-time interaction needs in actual game processes and improving the reliability of the interaction content between players and game teammates.
[0170] To better implement the above methods, this application also provides an interactive information transmission device, which can be integrated into an electronic device, such as a computer device, which can be a terminal, server, or other device.
[0171] The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.
[0172] For example, in this embodiment, the method of this application embodiment will be described in detail by taking the integration of the interactive information transmission device into a smartphone as an example.
[0173] For example, such as Figure 6 As shown, the device for transmitting interactive information may include:
[0174] Display unit 601 is used to display a graphical user interface with a virtual scene of the current game, wherein the graphical user interface includes a first display area for game teammates and a second display area for interactive objects;
[0175] The detection unit 602 is used to detect simultaneous touch operations in the first display area and the second display area, wherein the simultaneous touch operations include a first touch operation in the first display area and a second touch operation in the second display area;
[0176] The determining unit 603 is used to determine the selected teammate in the first display area and the selected interactive object in the second display area based on the stop touch position of the first touch operation and the stop touch position of the second touch operation;
[0177] The transmission unit 604 is used to send target interaction information associated with the selected interaction object to the selected teammate.
[0178] In some embodiments, the interactive object is a virtual item, and the determining unit 603 is specifically used for:
[0179] Determine the stop touch position of the first touch operation in the first display area;
[0180] The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area;
[0181] Determine the stop touch position of the second touch operation in the second display area;
[0182] The virtual prop displayed at the stop touch position of the second touch operation is used as the selected virtual prop in the second display area;
[0183] In some embodiments, the transmission unit 604 is specifically used for:
[0184] Send the target interaction message to the selected teammate, which will give the selected virtual item to the selected teammate.
[0185] In some embodiments, the transmission unit 604 is specifically used for:
[0186] Detect the distance between the selected teammate and the player who owns the selected virtual item;
[0187] If the distance is less than a preset distance threshold, then the selected teammate is given the gift.
[0188] In some embodiments, the interactive object is a map, the selected interactive object is a map location, and the determining unit 603 is specifically used for:
[0189] Determine the stop touch position of the first touch operation in the first display area;
[0190] The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area;
[0191] Determine the stop touch position of the second touch operation in the second display area;
[0192] The map position displayed at the stop touch position of the second touch operation is used as the selected map position in the second display area;
[0193] In some embodiments, the transmission unit 604 is specifically used for:
[0194] Sending target interaction information associated with the selected interaction object to the selected teammate includes:
[0195] Send target interaction information to the selected teammate to travel to the selected map location.
[0196] In some embodiments, the transmission unit 604 is specifically used for:
[0197] Obtain the target location type of the selected map location;
[0198] Obtain the target game task that is pre-associated with the target location type;
[0199] Send the target interaction information to the selected teammate to go to the selected map location to perform the target game task.
[0200] In some embodiments, the detection unit 602 is specifically used for:
[0201] Detect the first trigger time of the first touch operation in the first display area;
[0202] Detect the second trigger time of the second touch operation in the second display area;
[0203] If the time interval between the first trigger time and the second trigger time is less than a preset time interval, then it is determined that there is simultaneous touch operation in the first display area and the second display area.
[0204] In some embodiments, the interactive information transmission device further includes a cancellation unit (not shown in the figure), which is specifically used after the simultaneous touch operation of the first display area and the second display area is detected.
[0205] The graphical user interface displays a cancellation area for the simultaneous touch operation;
[0206] If the stop touch position of the first touch operation is the cancellation area, then the simultaneous touch operation is cancelled; or, if the stop touch position of the second touch operation is the cancellation area, then the simultaneous touch operation is cancelled.
[0207] In some embodiments, the interactive information transmission device further includes a prompting unit (not shown in the figure), which is specifically used after the simultaneous touch operation of the first display area and the second display area is detected.
[0208] Detect the currently displayed teammate at the current touch position of the first touch operation;
[0209] Detect the currently displayed interactive object at the current touch position of the second touch operation;
[0210] The target prompt information for the simultaneous touch operation is displayed, wherein the target prompt information is used to indicate that when the touch is stopped, the interaction information associated with the currently displayed interaction object will be sent to the currently displayed teammate.
[0211] As can be seen from the above, the interactive information transmission device of this embodiment can display a graphical user interface with a virtual scene of the current game by the display unit 601, wherein the graphical user interface includes a first display area for game teammates and a second display area for interactive objects; the detection unit 602 detects simultaneous touch operations in the first display area and the second display area, wherein the simultaneous touch operations include a first touch operation in the first display area and a second touch operation in the second display area; the determination unit 603 determines the selected teammate in the first display area and the selected interactive object in the second display area based on the stop touch position of the first touch operation and the stop touch position of the second touch operation; and the transmission unit 604 sends target interactive information associated with the selected interactive object to the selected teammate. Therefore, the interactive information transmission device provided in this application embodiment can bring the following technical effects: by setting a first display area for game teammates and a second display area for interactive objects respectively, when there is a first touch operation in the first display area and a second touch operation in the second display area at the same time, the interactive function is triggered. The game teammate at the stop touch position of the first touch operation is selected as the selected teammate for this interaction, and the interactive object at the stop touch position of the second touch operation is selected as the selected interactive object for this interaction. The target interactive information associated with the selected interactive object is automatically sent to the selected teammate. On the one hand, it avoids the cumbersome operation of players communicating by typing or voice when communicating or commanding, thereby improving the interaction efficiency between players and game teammates. On the other hand, since any game teammate displayed in the first display area can be combined with any interactive object displayed in the second display area, the richness of the interactive content can be increased, meeting the complex and ever-changing real-time interaction needs in the actual game process, and improving the reliability of the interactive content between players and game teammates.
[0212] Accordingly, this application also provides an electronic device, which can be a terminal, such as a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. Figure 7 As shown, Figure 7This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 700 includes a processor 701 with one or more processing cores, a memory 702 with one or more computer-readable storage media, and a computer program stored on the memory 702 and executable on the processor. The processor 701 and the memory 702 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0213] The processor 701 is the control center of the electronic device 700. It connects various parts of the electronic device 700 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, it performs various functions of the electronic device 700 and processes data, thereby monitoring the electronic device 700 as a whole.
[0214] In this embodiment, the processor 701 in the electronic device 700 loads the instructions corresponding to the processes of one or more application programs into the memory 702 according to the following steps, and the processor 701 runs the application programs stored in the memory 702 to achieve various functions:
[0215] A graphical user interface that displays a virtual scene of the current game, wherein the graphical user interface includes a first display area for game teammates and a second display area for interactive objects;
[0216] Detect simultaneous touch operations in the first display area and the second display area, wherein the simultaneous touch operations include a first touch operation in the first display area and a second touch operation in the second display area;
[0217] Based on the stop touch position of the first touch operation and the stop touch position of the second touch operation, the selected teammate in the first display area and the selected interactive object in the second display area are determined;
[0218] Send the target interaction information associated with the selected interaction object to the selected teammate.
[0219] In some embodiments, the interactive object is a virtual prop, and determining the selected teammate in the first display area and the selected interactive object in the second display area based on the stop touch position of the first touch operation and the stop touch position of the second touch operation includes:
[0220] Determine the stop touch position of the first touch operation in the first display area;
[0221] The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area;
[0222] Determine the stop touch position of the second touch operation in the second display area;
[0223] The virtual prop displayed at the stop touch position of the second touch operation is used as the selected virtual prop in the second display area;
[0224] Sending target interaction information associated with the selected interaction object to the selected teammate includes:
[0225] Send the target interaction message to the selected teammate, which will give the selected virtual item to the selected teammate.
[0226] In some embodiments, the method further includes:
[0227] Detect the distance between the selected teammate and the player who owns the selected virtual item;
[0228] If the distance is less than a preset distance threshold, then the selected teammate is given the gift.
[0229] In some embodiments, the interactive object is a map, the selected interactive object is a map location, and determining the selected teammate in the first display area and the selected interactive object in the second display area based on the stop touch position of the first touch operation and the stop touch position of the second touch operation includes:
[0230] Determine the stop touch position of the first touch operation in the first display area;
[0231] The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area;
[0232] Determine the stop touch position of the second touch operation in the second display area;
[0233] The map position displayed at the stop touch position of the second touch operation is used as the selected map position in the second display area;
[0234] Sending target interaction information associated with the selected interaction object to the selected teammate includes:
[0235] Send target interaction information to the selected teammate to travel to the selected map location.
[0236] In some embodiments, sending target interaction information to the selected teammate to the selected map location includes:
[0237] Obtain the target location type of the selected map location;
[0238] Obtain the target game task that is pre-associated with the target location type;
[0239] Send the target interaction information to the selected teammate to go to the selected map location to perform the target game task.
[0240] In some embodiments, detecting simultaneous touch operations in the first display area and the second display area includes:
[0241] Detect the first trigger time of the first touch operation in the first display area;
[0242] Detect the second trigger time of the second touch operation in the second display area;
[0243] If the time interval between the first trigger time and the second trigger time is less than a preset time interval, then it is determined that there is simultaneous touch operation in the first display area and the second display area.
[0244] In some embodiments, after detecting simultaneous touch operations in the first display area and the second display area, the method further includes:
[0245] The graphical user interface displays a cancellation area for the simultaneous touch operation;
[0246] If the stop touch position of the first touch operation is the cancellation area, then the simultaneous touch operation is cancelled; or, if the stop touch position of the second touch operation is the cancellation area, then the simultaneous touch operation is cancelled.
[0247] In some embodiments, after detecting simultaneous touch operations in the first display area and the second display area, the method further includes:
[0248] Detect the currently displayed teammate at the current touch position of the first touch operation;
[0249] Detect the currently displayed interactive object at the current touch position of the second touch operation;
[0250] The target prompt information for the simultaneous touch operation is displayed, wherein the target prompt information is used to indicate that when the touch is stopped, the interaction information associated with the currently displayed interaction object will be sent to the currently displayed teammate.
[0251] Therefore, the electronic device 700 provided in this embodiment can bring the following technical effects: by setting a first display area for game teammates and a second display area for interactive objects respectively, when there is a first touch operation in the first display area and a second touch operation in the second display area at the same time, the interaction function is triggered. The game teammate at the stop touch position of the first touch operation is selected as the selected teammate for this interaction, and the interactive object at the stop touch position of the second touch operation is selected as the selected interactive object for this interaction. The target interaction information associated with the selected interactive object is automatically sent to the selected teammate. On the one hand, it avoids the cumbersome operation of players communicating by typing or voice when communicating or commanding, thereby improving the interaction efficiency between players and game teammates. On the other hand, since any game teammate displayed in the first display area can be combined with any interactive object displayed in the second display area, the richness of the interaction content can be increased, meeting the complex and ever-changing real-time interaction needs in the actual game process, and improving the reliability of the interaction content between players and game teammates.
[0252] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0253] Optional, such as Figure 7 As shown, the electronic device 700 also includes: a touch display screen 703, a radio frequency circuit 704, an audio circuit 705, an input unit 706, and a power supply 707. The processor 701 is electrically connected to the touch display screen 703, the radio frequency circuit 704, the audio circuit 705, the input unit 706, and the power supply 707. Those skilled in the art will understand that... Figure 7 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0254] The touch display screen 703 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 703 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 701. It can also receive and execute commands from the processor 701. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 701 to determine the type of touch event. Subsequently, the processor 701 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 703 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 703 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 703 can also be used as part of the input unit 706 to achieve input functions.
[0255] The radio frequency circuit 704 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.
[0256] Audio circuitry 705 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuitry 705 converts received audio data into electrical signals, transmits them to the speaker, and the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 705, converted back into audio data, and then processed by processor 701 before being transmitted via radio frequency circuitry 704 to, for example, another electronic device, or output to memory 702 for further processing. Audio circuitry 705 may also include an earphone jack to facilitate communication between peripheral headphones and electronic devices.
[0257] The input unit 706 can be used to receive input numbers, character information or user feature information (such as fingerprints, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0258] Power supply 707 is used to supply power to various components of electronic device 700. Optionally, power supply 707 can be logically connected to processor 701 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 707 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0259] although Figure 7 As not shown in the diagram, the electronic device 700 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.
[0260] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0261] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0262] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute steps in any of the interactive information transmission methods provided in embodiments of this application. For example, the computer program can execute the following steps:
[0263] A graphical user interface that displays a virtual scene of the current game, wherein the graphical user interface includes a first display area for game teammates and a second display area for interactive objects;
[0264] Detect simultaneous touch operations in the first display area and the second display area, wherein the simultaneous touch operations include a first touch operation in the first display area and a second touch operation in the second display area;
[0265] Based on the stop touch position of the first touch operation and the stop touch position of the second touch operation, the selected teammate in the first display area and the selected interactive object in the second display area are determined;
[0266] Send the target interaction information associated with the selected interaction object to the selected teammate.
[0267] In some embodiments, the interactive object is a virtual prop, and determining the selected teammate in the first display area and the selected interactive object in the second display area based on the stop touch position of the first touch operation and the stop touch position of the second touch operation includes:
[0268] Determine the stop touch position of the first touch operation in the first display area;
[0269] The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area;
[0270] Determine the stop touch position of the second touch operation in the second display area;
[0271] The virtual prop displayed at the stop touch position of the second touch operation is used as the selected virtual prop in the second display area;
[0272] Sending target interaction information associated with the selected interaction object to the selected teammate includes:
[0273] Send the target interaction message to the selected teammate, which will give the selected virtual item to the selected teammate.
[0274] In some embodiments, the method further includes:
[0275] Detect the distance between the selected teammate and the player who owns the selected virtual item;
[0276] If the distance is less than a preset distance threshold, then the selected teammate is given the gift.
[0277] In some embodiments, the interactive object is a map, the selected interactive object is a map location, and determining the selected teammate in the first display area and the selected interactive object in the second display area based on the stop touch position of the first touch operation and the stop touch position of the second touch operation includes:
[0278] Determine the stop touch position of the first touch operation in the first display area;
[0279] The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area;
[0280] Determine the stop touch position of the second touch operation in the second display area;
[0281] The map position displayed at the stop touch position of the second touch operation is used as the selected map position in the second display area;
[0282] Sending target interaction information associated with the selected interaction object to the selected teammate includes:
[0283] Send target interaction information to the selected teammate to travel to the selected map location.
[0284] In some embodiments, sending target interaction information to the selected teammate to the selected map location includes:
[0285] Obtain the target location type of the selected map location;
[0286] Obtain the target game task that is pre-associated with the target location type;
[0287] Send the target interaction information to the selected teammate to go to the selected map location to perform the target game task.
[0288] In some embodiments, detecting simultaneous touch operations in the first display area and the second display area includes:
[0289] Detect the first trigger time of the first touch operation in the first display area;
[0290] Detect the second trigger time of the second touch operation in the second display area;
[0291] If the time interval between the first trigger time and the second trigger time is less than a preset time interval, then it is determined that there is simultaneous touch operation in the first display area and the second display area.
[0292] In some embodiments, after detecting simultaneous touch operations in the first display area and the second display area, the method further includes:
[0293] The graphical user interface displays a cancellation area for the simultaneous touch operation;
[0294] If the stop touch position of the first touch operation is the cancellation area, then the simultaneous touch operation is cancelled; or, if the stop touch position of the second touch operation is the cancellation area, then the simultaneous touch operation is cancelled.
[0295] In some embodiments, after detecting simultaneous touch operations in the first display area and the second display area, the method further includes:
[0296] Detect the currently displayed teammate at the current touch position of the first touch operation;
[0297] Detect the currently displayed interactive object at the current touch position of the second touch operation;
[0298] The target prompt information for the simultaneous touch operation is displayed, wherein the target prompt information is used to indicate that when the touch is stopped, the interaction information associated with the currently displayed interaction object will be sent to the currently displayed teammate.
[0299] As can be seen, a computer program can be loaded by a processor to execute the steps in any of the interactive information transmission methods provided in the embodiments of this application, thereby bringing about the following technical effects: By setting a first display area for game teammates and a second display area for interactive objects respectively, when there is a first touch operation in the first display area and a second touch operation in the second display area at the same time, the interactive function is triggered. The game teammate at the stop touch position of the first touch operation is selected as the selected teammate for this interaction, and the interactive object at the stop touch position of the second touch operation is selected as the selected interactive object for this interaction. The target interactive information associated with the selected interactive object is automatically sent to the selected teammate. On the one hand, this avoids the cumbersome operation of players communicating by typing or voice when communicating or commanding, thereby improving the interaction efficiency between players and game teammates. On the other hand, since any game teammate displayed in the first display area can be combined with any interactive object displayed in the second display area, the richness of the interactive content can be increased, meeting the complex and ever-changing real-time interaction needs in actual game processes, and improving the reliability of the interactive content between players and game teammates.
[0300] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0301] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0302] Since the computer program stored in the computer-readable storage medium can execute the steps in any of the interactive information transmission methods provided in the embodiments of this application, the beneficial effects that any of the interactive information transmission methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0303] The present application provides a detailed description of an interactive information transmission method, apparatus, electronic device, and computer-readable storage medium. Specific examples have been used to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present application. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present application. Therefore, the content of this specification should not be construed as a limitation of the present application.
Claims
1. A method for transmitting interactive information, characterized in that, include: A graphical user interface that displays a virtual scene of the current game, wherein the graphical user interface includes a first display area for game teammates and a second display area for interactive objects; Detect simultaneous touch operations in the first display area and the second display area, wherein the simultaneous touch operations include a first touch operation in the first display area and a second touch operation in the second display area; Determine the stop touch position of the first touch operation in the first display area; The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area; Determine the stop touch position of the second touch operation in the second display area; The location of the virtual prop or map displayed at the stop touch position of the second touch operation is used as the selected virtual prop or map location in the second display area; Detect the distance between the selected teammate and the player to whom the selected interaction object belongs; If the distance is less than a preset distance threshold, then send a message to the selected teammate to give the selected virtual item to the selected teammate, or send a target interaction message to the selected teammate to go to the selected map location.
2. The method for transmitting interactive information as described in claim 1, characterized in that, Sending target interaction information to the selected teammate to travel to the selected map location includes: Obtain the target location type of the selected map location; Obtain the target game task that is pre-associated with the target location type; Send the target interaction information to the selected teammate to go to the selected map location to perform the target game task.
3. The method for transmitting interactive information as described in claim 1, characterized in that, The simultaneous touch operation detection of the first display area and the second display area includes: Detect the first trigger time of the first touch operation in the first display area; Detect the second trigger time of the second touch operation in the second display area; If the time interval between the first trigger time and the second trigger time is less than a preset time interval, then it is determined that there is simultaneous touch operation in the first display area and the second display area.
4. The method for transmitting interactive information as described in claim 1, characterized in that, After detecting simultaneous touch operations in the first display area and the second display area, the method further includes: The graphical user interface displays a cancellation area for the simultaneous touch operation; If the stop touch position of the first touch operation is the cancellation area, then the simultaneous touch operation is cancelled; or, if the stop touch position of the second touch operation is the cancellation area, then the simultaneous touch operation is cancelled.
5. The method for transmitting interactive information as described in claim 1, characterized in that, After detecting simultaneous touch operations in the first display area and the second display area, the method further includes: Detect the currently displayed teammate at the current touch position of the first touch operation; Detect the currently displayed interactive object at the current touch position of the second touch operation; The target prompt information for the simultaneous touch operation is displayed, wherein the target prompt information is used to indicate that when the touch is stopped, the interaction information associated with the currently displayed interaction object will be sent to the currently displayed teammate.
6. A device for transmitting interactive information, characterized in that, include: The display unit is used to display a graphical user interface with a virtual scene of the current game, wherein the graphical user interface includes a first display area for game teammates and a second display area for interactive objects; The detection unit is used to detect simultaneous touch operations in the first display area and the second display area, wherein the simultaneous touch operations include a first touch operation in the first display area and a second touch operation in the second display area; Determine the unit, used for: Determine the stop touch position of the first touch operation in the first display area; The teammate displayed at the stop touch position of the first touch operation is selected as the teammate in the first display area; Determine the stop touch position of the second touch operation in the second display area; The location of the virtual prop or map displayed at the stop touch position of the second touch operation is used as the selected virtual prop or map location in the second display area; Detect the distance between the selected teammate and the player to whom the selected interaction object belongs; The teleportation unit is used to send the selected virtual item to the selected teammate or to send target interaction information to the selected map location to the selected teammate when the distance is less than a preset distance threshold.
7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to perform the steps in the interactive information transmission method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the method for transmitting interactive information according to any one of claims 1 to 5.
Citation Information
Patent Citations
Conveying method and device for game props
CN109432771A