Game control method and device, computer equipment and storage medium
By introducing the interactive buffer area and preset distance judgment into the game, the display time of interactive prompt information is extended, which solves the problem of game operation experience caused by virtual objects quickly leaving the interactive area, and improves the fault tolerance rate and experience of player interaction.
Patent Information
- Application Number
- CN202410684524.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-03
AI Technical Summary
In the game, due to player operation problems, virtual objects quickly leave after entering the interactive area, and need to return again to trigger interactive prompt information, which affects the game operation experience.
By displaying interactive prompt information in the graphical user interface, it is displayed when the virtual object enters the interactive response area, and is hidden when leaving the interactive response area. An interactive buffer area is introduced to tolerate the movement of virtual objects and extend the display time of interactive prompt information.
It improves the fault tolerance rate for players to interact with the scene, improves the game experience, and reduces the problem of too short display time of interactive prompt information caused by fast movement.
Smart Images

Figure CN118576971A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a game control method, device, computer equipment and computer-readable storage medium. Background Art
[0002] With the development of the Internet, a large number of different types of games have emerged to meet the daily entertainment needs of users. In the game scenes of some games, there are interactive scene objects, and player characters can interact with the interactive scene objects.
[0003] In the related art, when the player character moves to the interactive area corresponding to the interactive scene object, the interactive prompt information will be displayed on the game interface, and the interactive scene object can be interacted with by triggering the interactive prompt information. However, due to the player's operation problem, the player character enters the interactive area and then leaves the interactive area quickly. At this time, the player needs to control the character to retreat to the interactive area again to trigger the display of the interactive prompt information, which affects the player's game operation experience. Summary of the invention
[0004] The embodiments of the present application provide a game control method, apparatus, computer device, and computer-readable storage medium, which can improve the game experience of players.
[0005] The embodiment of the present application provides a game control method, which provides a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes at least a part of a game scene and a first virtual object in the game scene controlled by the terminal device, and the method includes:
[0006] In response to the first virtual object entering the interactive response area of the second virtual object in the game scene, displaying interactive prompt information on the graphical user interface;
[0007] In response to the first virtual object being away from the interactive response area by a distance exceeding a first preset distance, hiding the interactive prompt information in the graphical user interface.
[0008] Accordingly, an embodiment of the present application further provides a game control device, which provides a graphical user interface through a terminal device, wherein the content displayed by the graphical user interface includes at least a part of a game scene, and a first virtual object in the game scene controlled by the terminal device, wherein the device includes:
[0009] A first display unit, configured to display interactive prompt information on the graphical user interface in response to the first virtual object entering an interactive response area of a second virtual object in the game scene;
[0010] The first hiding unit is configured to hide the interactive prompt information in the graphical user interface in response to the first virtual object being away from the interactive response area by a distance exceeding a first preset distance.
[0011] Correspondingly, an embodiment of the present application further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any game control method provided in the embodiments of the present application.
[0012] Correspondingly, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the above game control method.
[0013] The embodiment of the present application displays interactive prompt information on a graphical user interface in response to a first virtual object entering an interactive response area of a second virtual object in a game scene, and then controls the switching of the display style of the interactive prompt information in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene satisfying a preset condition, wherein the interactive area includes an interactive response area and an interactive buffer area, the interactive response area being an area determined in the game scene with the second virtual object as the center, and the interactive buffer area being a surrounding area in the game scene and / or a moving state in the interactive buffer area to control the display of the interactive prompt information, which can improve the fault tolerance of the player's interaction with the scene, thereby improving the player's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0015] Figure 1 A scene schematic diagram of a game control system provided in an embodiment of the present application.
[0016] Figure 2 A flowchart of a game control method provided in an embodiment of the present application.
[0017] Figure 3 A schematic diagram of an application scenario of a game control method provided in an embodiment of the present application.
[0018] Figure 4 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0019] Figure 5A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0020] Figure 6 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0021] Figure 7 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0022] Figure 8 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0023] Fig. 9 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0024] Fig.10 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0025] Fig.11 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0026] Fig.12 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0027] Fig.13 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application.
[0028] Fig.14 A structural block diagram of a game control device provided in an embodiment of the present application.
[0029] Fig.15 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0031] The embodiment of the present application provides a game control method, device, computer-readable storage medium and computer equipment. Specifically, the game control method of the embodiment of the present application can be executed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. 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, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network, content distribution network), and basic cloud computing services such as big data and artificial intelligence platforms.
[0032] For example, when the game control method is run on a terminal, the terminal device stores a game application and is used to present a virtual scene in the game screen. The terminal device is used to interact with the user through a graphical user interface, for example, the game application is downloaded and installed by the terminal device and run. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present the graphical user interface and receive the operation instructions generated by the user acting on the graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.
[0033] For example, when the game control method is run on a server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating body of the game application and the main body of the game screen presentation are separated, and the storage and operation of the game control method are completed on the cloud gaming server. The game screen presentation is completed on the client of the cloud gaming. The cloud gaming client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud gaming client can be a display device with a data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, a personal digital assistant, etc., but the terminal device for processing game data is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.
[0034] See also Figure 1 , Figure 1 A schematic diagram of a game control system provided in an embodiment of the present application. The system may include at least one terminal, at least one server, at least one database, and a network. The terminal held by the user can be connected to the server of different games through the network. The terminal is any device with computing hardware that can support and execute software products corresponding to the game. In addition, the terminal has one or more multi-touch screens for sensing and obtaining the input of the user through the touch or sliding operation performed at multiple points of one or more touch-controlled display screens. In addition, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other through different networks and different servers. The network can be a wireless network or a wired network, such as a wireless network for a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminals can also use their own Bluetooth network or hotspot network to connect to other terminals or to servers, etc. For example, multiple users can be online through different terminals and thus connected and synchronized with each other through appropriate networks to support multi-player games. In addition, the system may include multiple databases, the multiple databases are coupled to different servers, and the information related to the game environment can be continuously stored in the databases when different users play the multi-player game online.
[0035] The embodiment of the present application provides a game control method, which can be executed by a terminal or a server. The embodiment of the present application takes the execution of the game control method by a terminal as an example for explanation. Among them, the terminal includes a touch display screen and a processor, and the touch display screen is used to present a graphical user interface and receive an operation instruction generated by a user acting on the graphical user interface. When the user operates the graphical user interface through the touch display screen, the graphical user interface can control the local content of the terminal by responding to the received operation instruction, and can also control the content of the opposite server by responding to the received operation instruction. For example, the operation instruction generated by the user acting on the graphical user interface includes an instruction for starting a game application, and the processor is configured to start the game application after receiving the instruction to start the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on the touch display screen. The touch display screen is a multi-touch sensitive screen that can sense touch or sliding operations performed simultaneously at multiple points on the screen. The user performs a touch operation on the graphical user interface using a finger, and when the graphical user interface detects the touch operation, it controls different virtual objects in the game to perform actions corresponding to the touch operation. For example, the game can be any of casual games, action games, role-playing games, strategy games, sports games, puzzle games, etc. Among them, the game may include a virtual scene of the game. In addition, the virtual scene of the game may include one or more virtual objects controlled by a user (or player), such as a virtual character. In addition, the virtual scene of the game may also include one or more obstacles, such as railings, gullies, walls, etc., to limit the movement of virtual objects, such as limiting the movement of one or more objects to a specific area in the virtual scene. Optionally, the virtual scene of the game also includes one or more elements, such as skills, scores, character health status, energy, etc., to provide help to players, provide virtual services, increase scores related to player performance, etc. In addition, the graphical user interface may also present one or more indicators to provide indication information to the player. For example, the game may include a virtual object controlled by a player and one or more other virtual objects (such as an enemy character). In one embodiment, one or more other virtual objects are controlled by other players of the game. For example, one or more other virtual objects may be controlled by a computer, such as a robot using an artificial intelligence (AI) algorithm, to achieve a man-machine battle mode. For example, a virtual object has various skills or abilities that game players use to achieve their goals. For example, a virtual object has one or more weapons, props, tools, etc. that can be used to eliminate other objects from the game. Such skills or abilities can be activated by a game player using one of a plurality of preset touch operations with a touch display screen of a terminal. The processor can be configured to present a corresponding game screen in response to an operation instruction generated by a user's touch operation.
[0036] It should be noted that Figure 1 The scene diagram of the game control system shown is only an example. The image processing system and scene described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of game control systems and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
[0037] Based on the above problems, the embodiments of the present application provide a first game control method, device, computer equipment and computer-readable storage medium, which can improve the game experience of players. The following are detailed descriptions. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0038] An embodiment of the present application provides a game control method, which can be executed by a terminal or a server. The embodiment of the present application is described by taking the game control method executed by a terminal as an example.
[0039] See also Figure 2 , Figure 2 This is a flowchart of a game control method provided in an embodiment of the present application. The specific process of the game control method can be as follows:
[0040] 101. In response to a first virtual object entering an interactive response area of a second virtual object in a game scene, displaying interactive prompt information on a graphical user interface.
[0041] In an embodiment of the present application, a graphical user interface is provided through a terminal device, and the content displayed by the graphical user interface includes at least a part of the game scene of the target game and a first virtual object in the game scene. The first virtual object can be controlled by the current game player through the terminal device.
[0042] The target game may be a multiplayer online network game, for example, the target game may be an FPS (First-Person Shooter Game, first-person shooting game) or the like.
[0043] For example, see Figure 3 , Figure 3 A schematic diagram of an application scenario of a game control method provided in an embodiment of the present application. Figure 3 The graphical user interface 10 shown therein displays a partial game scene 11 of a target game and a first virtual object 111 in the game scene 11 controlled by a current game player.
[0044] Among them, multiple controls are provided in the graphical user interface 10, for example, it can include: a movement control 12, a first shooting control 13, a second shooting control 14, a first attack control 15, a second attack control 16, an aiming control 17, a jumping control 18 and a field of view control 19.
[0045] Among them, the movement control 12 can be used to control the movement of the first virtual object 111 in the game scene 11; the first shooting control 13 and the second shooting control 14 can be used to control the first virtual object 111 to shoot at enemy objects in the game scene 11 (for example, other virtual objects controlled by other players, etc.); the first attack control 15 and the second attack control 16 can be used to initiate different attacks on enemy objects; the aiming control 17 can be used to aim at a scene position or a virtual object in the game scene, etc.; the jumping control 18 can be used to control the first virtual object 111 to perform a jumping action; the field of view control 19 can be used to switch the observation perspective of the first virtual object 111 in the game scene 11.
[0046] The graphical user interface 10 may also display a map control 20, which may include a thumbnail map of the game scene 11 and the position of the first virtual object 111 in the game scene 11, so that the current game player can conveniently observe the real-time position of the first virtual object 111 in the game scene 11. The map control 20 displays the entire game scene in a scaled-down manner, and indicates the position of the first virtual object 111 controlled by the current game player in the entire game scene. The player can understand the terrain overview, specific details and the position of virtual objects controlled by other players of the entire game scene through the map control 20, so as to better determine the next moving direction, etc.
[0047] The graphical user interface 10 may also display virtual object information 21. The virtual object information 21 may include the battle record, health value, etc. of the first virtual object 111 controlled by the current game player. For example, the health value may be the health bar of the first virtual object 111 controlled by the current game player. When the first virtual object 111 is hit by a virtual object controlled by another player, the mark of the health bar will change, so that the current game player can understand the degree of damage to the controlled virtual object in real time, so as to better protect and take preventive measures.
[0048] The second virtual object refers to a virtual object in the game scene that can interact with the first virtual object, and the second virtual object is not controlled by the current player.
[0049] For example, the second virtual object may include a designated scene object in the game scene (such as supplies in the game scene), an NPC object in the game scene, or a virtual object controlled by other players.
[0050] The interactive response area refers to an area in the game scene where the user can interact with the second virtual object.
[0051] Among them, the interactive response area can be determined according to the position of the second virtual object in the game scene. For example, a circular area with a preset length as the radius and the position of the second virtual object in the game scene as the center can be determined as the interactive response area corresponding to the second virtual object.
[0052] For example, see Figure 4 , Figure 4 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application. Figure 4 A plane game scene 30 of a game scene is shown, wherein the position of the second virtual object in the game scene can be: position 31, then a circular area 33 can be determined from the plane game scene 30 with position 31 as the center and a preset length 32 as the radius, and the scene area corresponding to the circular area 33 can be used as the interactive response area corresponding to the second virtual object.
[0053] In an embodiment of the present application, the current player can control the movement of the first virtual object in the game scene through the movement controls provided by the graphical user interface.
[0054] Among them, when the first virtual object is controlled to move in the game scene to the interactive response area corresponding to the second virtual object, it can trigger the interactive prompt information corresponding to the second virtual object to be displayed on the graphical user interface.
[0055] The interaction prompt information may be used to instruct the control of the first virtual object to interact with the second virtual object.
[0056] In some embodiments, the interactive prompt information may be an interactive control. By triggering the interactive control, the first virtual object and the second virtual object may be controlled to interact.
[0057] For example, see Figure 5 , Figure 5 A schematic diagram of another application scenario of a game control method provided in an embodiment of the present application. Figure 5 In the graphical user interface 10 shown on the upper side, a second virtual object 112 is displayed, and the interactive response area 113 corresponding to the second virtual object 112 can be determined according to the position of the second virtual object 112 .
[0058] Further, when the current player's sliding operation on the mobile control 12 is detected, the first virtual object 111 is controlled to move in the game scene 11, and when the first virtual object 111 moves to the interactive response area 113, the interactive prompt information can be triggered to be displayed on the graphical user interface 10. Figure 5 The graphical user interface 10 shown at the bottom side, wherein the first virtual object 111 is in the interactive response area 113 , and the graphical user interface displays interactive prompt information 22 .
[0059] In the embodiment of the present application, the interaction prompt information corresponding to different second virtual objects can be used to trigger different interaction methods. Specifically, the corresponding interaction method can be determined according to the type of different second virtual objects.
[0060] For example, if the second virtual object is a virtual material, the interactive prompt information corresponding to the second virtual object can be used to instruct the first virtual object to be controlled to pick up the virtual material; for another example, if the second virtual object can be a virtual object controlled by another player, the interactive prompt information corresponding to the second virtual object can be used to instruct the first virtual object to be controlled to attack the virtual object controlled by the other player, and so on.
[0061] 102. In response to the first virtual object being away from the interactive response area by a distance exceeding a first preset distance, hiding the interactive prompt information in the graphical user interface.
[0062] In the prior art, when the first virtual object leaves the interactive response area, the interactive prompt information will be hidden in the graphical user interface. If the first virtual object enters the interactive response area at a relatively fast speed and fails to stop in the interactive corresponding area in time, the first virtual object needs to be controlled to return to the interactive response area to interact with the second virtual object, which is cumbersome and affects the player's gaming experience.
[0063] Based on the problems of the prior art, the embodiment of the present application adds a judgment of the distance away from the interactive response area when the first virtual object leaves the interactive response area after the first virtual object enters the interactive response area. That is, the time from the first virtual object leaving the interactive response area to the first preset distance is used as the player's reaction time. After the first virtual object quickly rushes out of the interactive response area, there is no need to return to the interactive response area and the player can still interact with the second virtual object.
[0064] The distance between the first virtual object and the interactive response area exceeds a first preset distance, which includes: the first virtual object leaves the interactive response area, and the distance between the first virtual object and the interactive response area is greater than the first preset distance.
[0065] In some embodiments, when the distance between the first virtual object and the interactive response area does not exceed the first preset distance, the interactive prompt information remains displayed on the graphical user interface, so that the first virtual object can still interact with the second virtual object after leaving the interactive response area and the distance between the first virtual object and the interactive corresponding area does not exceed the first preset distance.
[0066] In some embodiments, the method may further include the following steps:
[0067] In response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, the display style of the interactive prompt information is controlled to be switched.
[0068] In an embodiment of the present application, the interaction area includes an interaction response area and an interaction buffer area. The interaction response area is an area in the game scene centered on the second virtual object, and the interaction buffer area is an area surrounding the interaction response area in the game scene.
[0069] The interactive area refers to the area that can be used to determine the display state of the interactive prompt information and the display style of the interactive prompt information after the first virtual object enters the interactive response area.
[0070] Among them, the display status may include display or non-display; the display style refers to the form in which the interactive prompt information is displayed on the graphical user interface, and the display style may include multiple types, for example, the display style may include opacity, brightness, color, etc.
[0071] For example, see Figure 6 , Figure 6 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application. Figure 6 A plane game scene 30 of a game scene is shown, wherein the position of the second virtual object in the game scene can be: position 31, then a circular area 33 can be determined from the plane game scene 30 with position 31 as the center and a preset length 32 as the radius, and the scene area corresponding to the circular area 33 can be used as the interactive response area corresponding to the second virtual object.
[0072] Furthermore, a circular area 35 can be determined from the plane game scene 30 with the position 31 as the center and the preset length 34 as the radius, and the center area 35 and the circular area 33 are concentric circles. Then, the non-overlapping part of the circular area 35 and the circular area 33 is determined to obtain the annular area 36, and the scene area corresponding to the annular area 36 can be used as the interactive buffer area corresponding to the second virtual object. Among them, the preset length 34 is greater than the preset length 32.
[0073] It should be noted that, in an embodiment of the present application, an interactive buffer area is added outside the interactive response area corresponding to the second interactive object, and the display of the interactive prompt information is controlled by the state of the first virtual object in the interactive response area and / or the interactive buffer area. That is, on the basis of the original control of the display of the interactive prompt information only by the interactive response area, the judgment area is expanded. This can avoid the situation where the first virtual object enters the interactive range of the second object due to the first virtual object moving too fast or the player's slow reaction, and the first virtual character rushes out of the interactive range again due to the failure to "brake" in time. This can maximize the fault tolerance of the player's interaction with the scene, thereby improving the player's gaming experience.
[0074] In some embodiments, in order to accurately control the display of the interactive prompt information, the step of “controlling the switching of the display style of the interactive prompt information in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition” may include the following operations:
[0075] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a distance between the first virtual object and the interactive response area;
[0076] If the away distance is not greater than the edge distance between the interactive response area and the interactive buffer area, the target display style is determined according to the away distance;
[0077] Display interactive tooltips in the graphical user interface based on the target display style.
[0078] In the embodiment of the present application, the interaction buffer area is an area adjacent to the interaction response area and surrounding the interaction response area. After the first virtual object leaves the interaction response area, it enters the interaction buffer area.
[0079] The departure distance refers to the distance between the first virtual object and the edge of the interactive response area after the first virtual object leaves the interactive response area.
[0080] For example, see Figure 7 , Figure 7 A schematic diagram of another application scenario of a game control method provided in an embodiment of the present application. Figure 7 In the graphical user interface 10 shown on the upper side, the first virtual object 111 is in the interactive response area 113 of the second virtual object 112 , and interactive prompt information 22 is displayed on the graphical user interface 10 .
[0081] When the current player's sliding operation on the mobile control 12 is detected, the movement of the first virtual object 111 is controlled according to the sliding operation. When it is determined that the first virtual object 111 leaves the interactive response area 113 and enters the interactive buffer area, it is obtained. Figure 7In the graphical user interface 10 shown at the bottom, the first virtual object 111 is in the interactive buffer area 114, and the distance between the first virtual object 111 and the edge of the interactive response area 113 can be obtained to obtain the distance away.
[0082] The edge distance refers to the distance between the edge of the interactive response area and the edge of the interactive buffer area.
[0083] The distance away is no greater than the edge distance between the interaction response area and the interaction buffer area, indicating that the first virtual object moves within the interaction buffer area.
[0084] In the embodiment of the present application, the corresponding relationship between the distance away and the display style can be preset, that is, different distances away correspond to different display styles.
[0085] In some embodiments, the display style may be opacity, and the correspondence between the away distance and the display style may be preset as follows: the greater the away distance, the lower the opacity, that is, when the away distance is 0, the opacity is 100%; when the away distance is equal to the edge distance, the opacity is 0%.
[0086] When the opacity is 100%, it means it is completely opaque; when the opacity decreases from 100% to 0%, it transitions from opaque to transparent. When the opacity is set to 0%, it means it is completely transparent, that is, invisible.
[0087] In some embodiments, determining the target display style according to the away distance may include: firstly calculating the ratio of the away distance to the edge distance, and determining the value of opacity according to the ratio.
[0088] For example, the away distance can be 5 meters, and the edge distance can be 10 meters. The ratio of the away distance to the edge distance is calculated to get 1 / 2, and the percentage value corresponding to 1 / 2 is determined to be: 50%. Then the opacity value can be determined to be 50%, and then the corresponding target display style can be determined to be 50% opacity.
[0089] Among them, the greater the distance is, the greater the ratio is, the larger the corresponding percentage value is, that is, the lower the opacity is, corresponding to: the greater the distance is, the lower the opacity is.
[0090] For example, see Figure 8 , Figure 8 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application. Figure 8 A game scene area 40 is shown, which includes an interaction response area 42 and an interaction buffer area 43 corresponding to a position 41 of a second virtual object.
[0091] Among them, after the first virtual object leaves the interactive response area 42 and enters the interactive buffer area 43, it can be at position D in the interactive buffer area 43. At this time, the distance 44 between position D and the interactive response area 42 can be obtained. Then, the target display style of the interactive prompt information can be determined according to the distance. For example, it can be: opacity 60%, which can trigger the display of the interactive prompt information with an opacity of 60% in the graphical user interface.
[0092] In some embodiments, in order to accurately control the hiding of the interaction prompt information, the step of “hiding the interaction prompt information in the graphical user interface in response to the first virtual object leaving the interaction response area by a distance exceeding a first preset distance” may include the following operations:
[0093] In response to the distance between the first virtual object and the interactive response area being greater than the edge distance, the interactive prompt information is hidden in the graphical user interface.
[0094] The distance between the first virtual object and the interactive response area is greater than the edge distance, indicating that the first virtual object has left the interactive buffer area. At this time, it can be determined that the current player has no need to interact with the second virtual object, and the interactive prompt information can be hidden.
[0095] Hiding the interactive prompt information in the graphical user interface may include: hiding controls in the graphical user interface so that the interactive prompt information is invisible.
[0096] For example, see Fig. 9 , Fig. 9 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application. Fig. 9 A game scene area 40 is shown, which includes an interaction response area 42 and an interaction buffer area 43 corresponding to a position 41 of a second virtual object.
[0097] Among them, after the first virtual object leaves the interactive response area 42 and enters the interactive buffer area 43, it moves to a position E outside the interactive buffer area 43. At this time, it can be obtained that the distance 44 between the position E and the interactive response area 42 is greater than the edge distance between the interactive response area 42 and the interactive buffer area 43, which can trigger the hiding of the interactive prompt information in the graphical user interface.
[0098] In some embodiments, in order to accurately control the display of interactive prompt information, the method may further include the following steps:
[0099] If the distance away is not greater than the edge distance and the moving speed of the first virtual object in the interaction buffer area decreases, the initial display style of the interaction prompt information is displayed on the graphical user interface.
[0100] The distance away is not greater than the edge distance, indicating that the first virtual object moves within the interaction buffer area.
[0101] The initial display style refers to the form in which the interactive prompt information is initially displayed on the graphical user interface. For example, the initial display style may also be 100% opacity.
[0102] In some embodiments, the initial display style may be the same as the display style that triggers the interactive prompt information display when the first virtual object enters the interactive response area. For example, when the first virtual object enters the interactive response area, the style of displaying the interactive prompt information is 100% opacity, and the initial display style may also be 100% opacity.
[0103] For example, see Fig.10 , Fig.10 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application. Fig.10 The game scene area 40 is shown. When the first virtual object leaves the interactive response area 42 and enters the interactive buffer area 43, the moving path of the first virtual object in the interactive buffer area 43 can be obtained as: from position B to position D.
[0104] Then, the change in the moving speed of the first virtual object in the process of moving from position B to position D can be obtained. If the moving speed decreases, it can be determined that the current player has the need to control the interaction between the first virtual object and the second virtual object. Then, when the first virtual object moves from position B to position D, the initial display style of the interactive prompt information is displayed in the graphical user interface.
[0105] For another example, see Fig.11 , Fig.11 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application. Fig.11 The game scene area 40 is shown. When the first virtual object leaves the interactive response area 42 and enters the interactive buffer area 43, the moving path of the first virtual object in the interactive buffer area 43 can be obtained as: from position B-position E-position D.
[0106] Among them, if it is obtained that the moving speed of the first virtual object increases or remains unchanged during the process of moving from position B to position E, the target display style of the interactive prompt information is determined and displayed according to the distance between the first virtual object and the interactive response area during the process of moving from position B to position E; if it is obtained that the moving speed of the first virtual object decreases during the process of moving from position E to position D, it can be determined that the current player has a need to control the interaction between the first virtual object and the second virtual object, and then, when the first virtual object moves from position E to position D, the initial display style of the interactive prompt information is displayed in the graphical user interface.
[0107] In some embodiments, in order to accurately control the display of the interactive prompt information, the step of “controlling the switching of the display style of the interactive prompt information in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition” may include the following operations:
[0108] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a moving path of the first virtual object in the interactive response area;
[0109] If the distance between the moving path and the second virtual object is less than the second preset distance, determining the target display style according to the distance between the first virtual object and the interactive response area;
[0110] Display interactive tooltips in the graphical user interface based on the target display style.
[0111] The moving path refers to the path of the first virtual object from entering the interactive response area to leaving the interactive response area.
[0112] It should be noted that in the embodiment of the present application, in order to avoid the problem of overlapping interactive response areas of multiple second virtual objects when there are multiple second virtual objects in the game scene, the scope of the interactive response area of each second virtual object will not be set too large. Moreover, the main problem solved by this solution is that the first virtual object moves too fast through the interactive response area, resulting in a too short stay time in the interactive response area, which causes the interactive prompt information to be displayed for too short a time, making it inconvenient for players to operate the interactive prompt information. It can be understood that the moving path of the first virtual object in the interactive response area can be a straight line path. Of course, in some special cases, the moving path of the first virtual object in the interactive response area can also be a broken line path or a curved path, etc., which is not limited here.
[0113] For example, see Fig.12 , Fig.12 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application. Fig.12 The game scene area 40 is shown. When the first virtual object leaves the interactive response area 42 and enters the interactive buffer area 43, a moving path L of the first virtual object in the interactive response area from position A where the first virtual object enters the interactive response area 42 to position B where the first virtual object leaves the interactive buffer area 43 is obtained.
[0114] The distance between the moving path and the second virtual object refers to the shortest distance between the second virtual object and the moving path, that is, it may be the vertical distance between the second virtual object and the moving path.
[0115] For example, see Fig.12 After the moving path L is determined, the distance 45 between the moving path L and the position 41 of the second virtual object may be determined.
[0116] The second preset distance can be used to determine whether the current player has an interactive demand. The second preset distance can be preset. For example, the second preset distance can be 3 meters. If the distance between the second virtual object and the moving path is less than 3 meters, it can be determined that there is an interactive demand. After the second virtual object enters the interactive buffer area from the interactive response area, the target display style can be determined according to the distance between the first virtual object and the interactive response area, and then the interactive prompt information is displayed on the graphical user interface based on the target display style.
[0117] In some embodiments, in order to accurately control the hiding of the interactive prompt information, the method may further include the following steps:
[0118] If the distance between the moving path and the second virtual object is not less than the second preset distance, the interactive prompt information is hidden in the graphical user interface.
[0119] For example, the second preset distance may be 3 meters, and if the distance between the second virtual object and the moving path is greater than 3 meters, it can be determined that the current player does not have an interaction requirement. Then, after the second virtual object enters the interaction buffer area from the interaction response area, the interaction prompt information may be hidden.
[0120] In some embodiments, in order to accurately control the display of the interactive prompt information, the step of “controlling the switching of the display style of the interactive prompt information in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition” may include the following operations:
[0121] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a starting point position and an end point position of a moving path of the first virtual object in the interactive response area;
[0122] Determine the angle between a line connecting the starting position and the position of the second virtual object and a line connecting the ending position and the position of the second virtual object;
[0123] If the angle is greater than the preset angle, determining the target display style according to the distance between the first virtual object and the interactive response area;
[0124] Display interactive tooltips in the graphical user interface based on the target display style.
[0125] The starting position refers to the position where the first virtual object intersects with the edge of the interactive response area when entering the interactive response area; the ending position refers to the position where the first virtual object intersects with the edge of the interactive response area when leaving the interactive response area.
[0126] For example, see Fig.13 , Fig.13 A schematic diagram of an application scenario of another game control method provided in an embodiment of the present application. Fig.13 The game scene area 40 is shown, when the first virtual object leaves the interactive response area 42 and enters the interactive buffer area 43, a moving path L of the first virtual object in the interactive response area from position A where the first virtual object enters the interactive response area 42 to position B where the first virtual object leaves the interactive buffer area 43 is obtained, wherein position A is the starting position and position B is the end position.
[0127] The line connecting the starting position and the position of the second virtual object refers to the line connecting the starting position and the position of the second virtual object. The line connecting the end position and the position of the second virtual object refers to the line connecting the end position and the position of the second virtual object.
[0128] For example, see Fig.13 , wherein: the line L2 between the starting position A and the position 41 of the second virtual object can be used as the line between the starting position and the position of the second virtual object; the line L1 between the end position B and the position 41 of the second virtual object can be used as the line between the end position and the position of the second virtual object. Further, the angle between the line L1 and the line L2 can be calculated.
[0129] The preset angle can be used to determine whether the current player has an interactive demand. The preset angle can be pre-set, for example, the preset angle can be 120 degrees. If the angle between the two position lines is greater than 120 degrees, it can be determined that there is an interactive demand. After the second virtual object enters the interactive buffer area from the interactive response area, the target display style can be determined according to the distance between the first virtual object and the interactive response area, and then the interactive prompt information is displayed in the graphical user interface based on the target display style.
[0130] In some embodiments, in order to accurately control the hiding of the interactive prompt information, the method may further include the following steps:
[0131] If the angle is not greater than the preset angle, the interactive prompt information is hidden in the graphical user interface.
[0132] For example, the preset angle may be 120 degrees. If the angle between the two position lines is less than 120 degrees, it can be determined that the current player does not have an interaction requirement. Then, after the second virtual object enters the interaction buffer area from the interaction response area, the interaction prompt information may be hidden.
[0133] The embodiment of the present application discloses a game control method, which includes: in response to a first virtual object entering an interactive response area of a second virtual object in a game scene, displaying interactive prompt information on a graphical user interface; in response to the first virtual object leaving the interactive response area by a distance exceeding a first preset distance, hiding the interactive prompt information on the graphical user interface. In this way, the game experience of the player can be improved.
[0134] In order to better implement the game control method provided in the embodiment of the present application, the embodiment of the present application also provides a game control device based on the above game control method. The meanings of the terms are the same as those in the above game control method, and the specific implementation details can refer to the description in the method embodiment.
[0135] See also Fig.14 , Fig.14 This is a structural block diagram of a game control device provided in an embodiment of the present application. A graphical user interface is provided through a terminal device. The content displayed by the graphical user interface includes at least part of a game scene and a first virtual object in the game scene controlled by the terminal device. The device includes:
[0136] A first display unit 301, configured to display interactive prompt information on the graphical user interface in response to the first virtual object entering an interactive response area of a second virtual object in the game scene;
[0137] The first hiding unit 302 is configured to hide the interactive prompt information in the graphical user interface in response to the first virtual object being away from the interactive response area by a distance exceeding a first preset distance.
[0138] In some embodiments, the apparatus may further include:
[0139] The second display unit is used to control switching of the display style of the interactive prompt information in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition.
[0140] In some embodiments, the second display unit may include:
[0141] A first acquisition subunit is configured to acquire a distance between the first virtual object and the interaction response area in response to the first virtual object leaving the interaction response area and entering the interaction buffer area;
[0142] A first determining subunit is configured to determine a target display style according to the away distance if the away distance is not greater than an edge distance between the interaction response area and the interaction buffer area;
[0143] The first display subunit is configured to display the interactive prompt information on the graphical user interface based on the target display style.
[0144] In some embodiments, the apparatus may further include:
[0145] The third display unit is used to display the initial display style of the interactive prompt information in the graphical user interface if the away distance is not greater than the edge distance and the moving speed of the first virtual object in the interactive buffer area decreases.
[0146] In some embodiments, the first hiding unit 302 may include:
[0147] The hiding subunit is used to hide the interactive prompt information in the graphical user interface in response to the distance between the first virtual object and the interactive response area being greater than the edge distance.
[0148] In some embodiments, the second display unit may include:
[0149] a second acquisition subunit, configured to acquire a moving path of the first virtual object in the interaction response area in response to the first virtual object leaving the interaction response area and entering the interaction buffer area;
[0150] a second determining subunit, configured to determine a target display style according to a distance between the first virtual object and the interactive response area if the distance between the moving path and the second virtual object is less than a second preset distance;
[0151] The second display subunit is configured to display the interactive prompt information on the graphical user interface based on the target display style.
[0152] In some embodiments, the apparatus may further include:
[0153] A second hiding unit is used to hide the interactive prompt information in the graphical user interface if the distance between the moving path and the second virtual object is not less than the second preset distance.
[0154] In some embodiments, the second display unit may include:
[0155] a third acquisition subunit, configured to acquire a starting point position and an end point position of a moving path of the first virtual object in the interaction response area in response to the first virtual object leaving the interaction response area and entering the interaction buffer area;
[0156] A third determining subunit is used to determine an angle between a line connecting the starting position and the position of the second virtual object and a line connecting the end position and the position of the second virtual object;
[0157] a fourth determining subunit, configured to determine a target display style according to a distance between the first virtual object and the interactive response area if the angle is greater than a preset angle;
[0158] A third display subunit is configured to display the interactive prompt information on the graphical user interface based on the target display style.
[0159] In some embodiments, the apparatus may further include:
[0160] The third hiding unit is used to hide the interactive prompt information in the graphical user interface if the angle is not greater than the preset angle.
[0161] The embodiment of the present application discloses a game control device, which displays interactive prompt information on the graphical user interface in response to the first virtual object entering the interactive response area of the second virtual object in the game scene through the first display unit 301; and hides the interactive prompt information on the graphical user interface in response to the first virtual object leaving the interactive response area by a distance exceeding a first preset distance. In this way, the game experience of the player can be improved.
[0162] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal. Fig.15 As shown, Fig.15 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. It will be understood by those skilled in the art that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0163] The processor 601 is the control center of the computer device 600. It uses various interfaces and lines to connect the various parts of the entire computer device 600, executes various functions of the computer device 600 and processes data by running or loading software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, thereby monitoring the computer device 600 as a whole.
[0164] In the embodiment of the present application, the processor 601 in the computer device 600 will load instructions corresponding to the processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 will run the application programs stored in the memory 602 to implement various functions:
[0165] In response to the first virtual object entering the interactive response area of the second virtual object in the game scene, displaying interactive prompt information on the graphical user interface;
[0166] In response to the first virtual object leaving the interactive response area by a distance exceeding a first preset distance, the interactive prompt information is hidden in the graphical user interface.
[0167] In some embodiments, after the graphical user interface displays the interactive prompt information, the method further includes:
[0168] In response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting the preset conditions, the display style of the interactive prompt information is controlled to be switched, wherein the interactive area includes an interactive response area and an interactive buffer area, the interactive response area is an area determined in the game scene with the second virtual object as the center, and the interactive buffer area is an area surrounding the interactive response area in the game scene.
[0169] In some embodiments, in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes:
[0170] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a distance between the first virtual object and the interactive response area;
[0171] If the away distance is not greater than the edge distance between the interactive response area and the interactive buffer area, the target display style is determined according to the away distance;
[0172] Display interactive tooltips in the graphical user interface based on the target display style.
[0173] In some embodiments, the method further comprises:
[0174] If the distance away is not greater than the edge distance and the moving speed of the first virtual object in the interaction buffer area decreases, the initial display style of the interaction prompt information is displayed on the graphical user interface.
[0175] In some embodiments, in response to the first virtual object leaving the interactive response area by a distance exceeding a first preset distance, hiding the interactive prompt information in the graphical user interface includes:
[0176] In response to the distance between the first virtual object and the interactive response area being greater than the edge distance, the interactive prompt information is hidden in the graphical user interface.
[0177] In some embodiments, in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes:
[0178] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a moving path of the first virtual object in the interactive response area;
[0179] If the distance between the moving path and the second virtual object is less than the second preset distance, determining the target display style according to the distance between the first virtual object and the interactive response area;
[0180] Display interactive tooltips in the graphical user interface based on the target display style.
[0181] In some embodiments, the method further comprises:
[0182] If the distance between the moving path and the second virtual object is not less than the second preset distance, the interactive prompt information is hidden in the graphical user interface.
[0183] In some embodiments, in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes:
[0184] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a starting point position and an end point position of a moving path of the first virtual object in the interactive response area;
[0185] Determine the angle between a line connecting the starting position and the position of the second virtual object and a line connecting the ending position and the position of the second virtual object;
[0186] If the angle is greater than the preset angle, determining the target display style according to the distance between the first virtual object and the interactive response area;
[0187] Display interactive tooltips in the graphical user interface based on the target display style.
[0188] In some embodiments, the method further comprises:
[0189] If the angle is not greater than the preset angle, the interactive prompt information is hidden in the graphical user interface.
[0190] The embodiment of the present application displays interaction prompt information on a graphical user interface in response to a first virtual object entering an interaction response area of a second virtual object in a game scene, and then hides the interaction prompt information on the graphical user interface in response to the first virtual object leaving the interaction response area by a distance exceeding a first preset distance. This can improve the fault tolerance of the player's interaction with the scene, thereby improving the player's gaming experience.
[0191] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0192] Optional, such as Fig.15 As shown, the computer device 600 further includes: a touch screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the touch screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607, respectively. Those skilled in the art can understand that Fig.15 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0193] The touch display screen 603 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 603 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-EmittingDiode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 601, and can receive the command sent by the processor 601 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 601 to determine the type of touch event, and then the processor 601 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 603 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 603 can also be used as a part of the input unit 606 to realize the input function.
[0194] The radio frequency circuit 604 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer device through wireless communication, and to send and receive signals between the network device or other computer device.
[0195] The audio circuit 605 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 605 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 605 and converted into audio data, and then the audio data is output to the processor 601 for processing, and then sent to another computer device through the radio frequency circuit 604, or the audio data is output to the memory 602 for further processing. The audio circuit 605 may also include an earplug jack to provide communication between an external headset and the computer device.
[0196] The input unit 606 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0197] The power supply 607 is used to supply power to various components of the computer device 600. Optionally, the power supply 607 can be logically connected to the processor 601 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 607 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0198] although Fig.15 Not shown, the computer device 600 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0199] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0200] From the above, it can be seen that the computer device provided in this embodiment can display interactive prompt information in a graphical user interface in response to a first virtual object entering an interactive response area of a second virtual object in a game scene; and hide the interactive prompt information in the graphical user interface in response to the first virtual object leaving the interactive response area by a distance exceeding a first preset distance.
[0201] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0202] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any game control method provided in the embodiment of the present application. For example, the computer program can execute the following steps:
[0203] In response to the first virtual object entering the interactive response area of the second virtual object in the game scene, displaying interactive prompt information on the graphical user interface;
[0204] In response to the first virtual object leaving the interactive response area by a distance exceeding a first preset distance, the interactive prompt information is hidden in the graphical user interface.
[0205] In some embodiments, after the graphical user interface displays the interactive prompt information, the method further includes:
[0206] In response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting the preset conditions, the display style of the interactive prompt information is controlled to be switched, wherein the interactive area includes an interactive response area and an interactive buffer area, the interactive response area is an area determined in the game scene with the second virtual object as the center, and the interactive buffer area is an area surrounding the interactive response area in the game scene.
[0207] In some embodiments, in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes:
[0208] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a distance between the first virtual object and the interactive response area;
[0209] If the away distance is not greater than the edge distance between the interactive response area and the interactive buffer area, the target display style is determined according to the away distance;
[0210] Display interactive tooltips in the graphical user interface based on the target display style.
[0211] In some embodiments, the method further comprises:
[0212] If the distance away is not greater than the edge distance and the moving speed of the first virtual object in the interaction buffer area decreases, the initial display style of the interaction prompt information is displayed on the graphical user interface.
[0213] In some embodiments, in response to the first virtual object leaving the interactive response area by a distance exceeding a first preset distance, hiding the interactive prompt information in the graphical user interface includes:
[0214] In response to the distance between the first virtual object and the interactive response area being greater than the edge distance, the interactive prompt information is hidden in the graphical user interface.
[0215] In some embodiments, in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes:
[0216] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a moving path of the first virtual object in the interactive response area;
[0217] If the distance between the moving path and the second virtual object is less than the second preset distance, determining the target display style according to the distance between the first virtual object and the interactive response area;
[0218] Display interactive tooltips in the graphical user interface based on the target display style.
[0219] In some embodiments, the method further comprises:
[0220] If the distance between the moving path and the second virtual object is not less than the second preset distance, the interactive prompt information is hidden in the graphical user interface.
[0221] In some embodiments, in response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes:
[0222] In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a starting point position and an end point position of a moving path of the first virtual object in the interactive response area;
[0223] Determine the angle between a line connecting the starting position and the position of the second virtual object and a line connecting the ending position and the position of the second virtual object;
[0224] If the angle is greater than the preset angle, determining the target display style according to the distance between the first virtual object and the interactive response area;
[0225] Display interactive tooltips in the graphical user interface based on the target display style.
[0226] In some embodiments, the method further comprises:
[0227] If the angle is not greater than the preset angle, the interactive prompt information is hidden in the graphical user interface.
[0228] The embodiment of the present application displays interaction prompt information on a graphical user interface in response to a first virtual object entering an interaction response area of a second virtual object in a game scene, and then hides the interaction prompt information on the graphical user interface in response to the first virtual object leaving the interaction response area by a distance exceeding a first preset distance. This can improve the fault tolerance of the player's interaction with the scene, thereby improving the player's gaming experience.
[0229] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0230] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0231] Since the computer program stored in the computer-readable storage medium can execute the steps in any game control method provided in the embodiments of the present application, the beneficial effects that can be achieved by any game control method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0232] The game control method, device, computer-readable storage medium and computer equipment provided in the embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A game control method, characterized in that: A graphical user interface is provided through a terminal device, wherein the content displayed by the graphical user interface includes at least a part of a game scene and a first virtual object in the game scene controlled by the terminal device, and the method includes: In response to the first virtual object entering the interactive response area of the second virtual object in the game scene, displaying interactive prompt information on the graphical user interface; In response to the first virtual object being away from the interactive response area by a distance exceeding a first preset distance, hiding the interactive prompt information in the graphical user interface.
2. The method according to claim 1, characterized in that After the graphical user interface displays the interactive prompt information, the method further includes: In response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene satisfying a preset condition, control is performed to switch the display style of the interactive prompt information, wherein the interactive area includes an interactive response area and an interactive buffer area, the interactive response area is an area determined in the game scene with the second virtual object as the center, and the interactive buffer area is an area surrounding the interactive response area in the game scene.
3. The method according to claim 2, characterized in that In response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes: In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a distance between the first virtual object and the interactive response area; If the away distance is not greater than the edge distance between the interactive response area and the interactive buffer area, determining a target display style according to the away distance; The interactive prompt information is displayed on the graphical user interface based on the target display style.
4. The method according to claim 3, characterized in that The method further comprises: If the distance away is not greater than the edge distance and the moving speed of the first virtual object in the interaction buffer area decreases, the initial display style of the interaction prompt information is displayed on the graphical user interface.
5. The method according to claim 3, characterized in that: In response to the first virtual object being away from the interactive response area by a distance exceeding a first preset distance, hiding the interactive prompt information in the graphical user interface includes: In response to the distance between the first virtual object and the interactive response area being greater than the edge distance, hiding the interactive prompt information in the graphical user interface.
6. The method according to claim 2, characterized in that In response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes: In response to the first virtual object leaving the interaction response area and entering the interaction buffer area, acquiring a moving path of the first virtual object in the interaction response area; If the distance between the moving path and the second virtual object is less than a second preset distance, determining a target display style according to the distance between the first virtual object and the interactive response area; The interactive prompt information is displayed on the graphical user interface based on the target display style.
7. The method according to claim 6, characterized in that The method further comprises: If the distance between the moving path and the second virtual object is not less than the second preset distance, the interactive prompt information is hidden in the graphical user interface.
8. The method according to claim 2, characterized in that: In response to the movement of the first virtual object in the interactive area corresponding to the second virtual object in the game scene meeting a preset condition, controlling the switching of the display style of the interactive prompt information includes: In response to the first virtual object leaving the interactive response area and entering the interactive buffer area, acquiring a starting point position and an end point position of a moving path of the first virtual object in the interactive response area; Determine an angle between a line connecting the starting position and the position of the second virtual object and a line connecting the end position and the position of the second virtual object; If the angle is greater than a preset angle, determining a target display style according to a distance between the first virtual object and the interactive response area; The interactive prompt information is displayed on the graphical user interface based on the target display style.
9. The method according to claim 8, characterized in that The method further comprises: If the angle is not greater than the preset angle, the interactive prompt information is hidden in the graphical user interface.
10. A game control device, characterized in that: A graphical user interface is provided through a terminal device, wherein the content displayed by the graphical user interface includes at least a part of a game scene and a first virtual object in the game scene controlled by the terminal device, and the apparatus includes: A first display unit, configured to display interactive prompt information on the graphical user interface in response to the first virtual object entering an interactive response area of a second virtual object in the game scene; The first hiding unit is configured to hide the interactive prompt information in the graphical user interface in response to the first virtual object being away from the interactive response area by a distance exceeding a first preset distance.
11. A computer device, characterized in that: The computer device comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor implements the game control method according to any one of claims 1 to 9 when executing the program.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the game control method according to any one of claims 1 to 9.
