Interface control method and device, equipment and storage medium

By determining the relationship between the virtual character's position coordinates and the operating interface in real time, the display or hiding of the game interface is automatically controlled, which solves the problem of complex interface operation in the existing technology and improves the user's gaming experience.

CN115721936BActive Publication Date: 2025-10-21NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211314143.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-25
Publication Date
2025-10-21
Estimated Expiration
2042-10-25

AI Technical Summary

Technical Problem

In the prior art, the display and hiding operations of the game interface on a mobile phone are complicated, which affects the user's gaming experience.

Method used

By obtaining the position coordinates of the virtual character during movement, it is determined whether the operation interface meets the preset control conditions, and the operation interface is automatically hidden or displayed to prevent the interface from blocking the game scene.

Benefits of technology

It simplifies the display and hiding operations of the interface, improves the user's gaming experience, reduces misoperations, and improves the effectiveness and immersion of operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115721936B_ABST
    Figure CN115721936B_ABST
Patent Text Reader

Abstract

The application provides a control method and device of an interface, equipment and a storage medium, the method comprises the following steps: in response to a first touch operation on a map in a graphical user interface, determining the moving position of a virtual character, and controlling the virtual character to move to the moving position; in the moving process, obtaining the position coordinates of the virtual character, and judging whether the corresponding operation interface needs to be hidden or displayed based on the position coordinates. In the method, the operation interface control condition is set to identify whether the operation interface affects the user's movement control of the virtual object. Compared with the prior art, the user does not need to operate the control in the game scene, and the touch operation of the user is reduced. Only the touch operation of the task is needed, the operation interface is hidden, the game scene is blocked, and therefore the game experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game interface display technology, and in particular to an interface control method, device, equipment and storage medium. Background Art

[0002] With the increasing popularity of smartphones, online gaming has experienced rapid growth, particularly with mobile gaming. However, due to the limited display area of ​​mobile phones, the full main UI takes up a significant portion of the screen, hindering the user's ability to view virtual objects and other information within the game. This increases the likelihood of accidental clicks, especially at the edges of the scene.

[0003] To address the above issues, current solutions include adding controls to show and hide each interface, or placing the interface in areas of the phone's display that users rarely use, such as edges, corners, or on curved screens. However, this approach increases user operation costs, requiring specific control buttons (such as back and cancel) to access or hide an interface. This increases the complexity of game operations and significantly reduces the user's gaming experience. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide an interface control method, device, equipment and storage medium to solve the problem that the operation of displaying and hiding the game interface in the prior art is complicated, thereby affecting the user's gaming experience.

[0005] In a first aspect, an embodiment of the present invention provides an interface control method, wherein a graphical user interface is displayed via a terminal device, the graphical user interface including a game scene and an operation interface, the game scene including a map and a virtual character controlled by the terminal device, the interface control method comprising:

[0006] In response to a first touch operation on the map, determining a moving position of the virtual character, and controlling the virtual character to move toward the moving position;

[0007] Obtaining the position coordinates of the virtual character at each time point during the movement process, and determining whether the operation interface corresponding to each position coordinate meets a preset operation interface control condition;

[0008] If the conditions are met, the hiding or display of the operation interface corresponding to the position coordinates is controlled.

[0009] The above-mentioned step of obtaining the position coordinates of the virtual character at each time point during the movement process and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition includes:

[0010] Obtaining the first position coordinates of the virtual character at a current moment during the movement process;

[0011] Determining whether the first position coordinates meet a determination condition of being close to an operation interface in the graphical user interface;

[0012] If close, the second position coordinates of multiple consecutive time points after the current moment are obtained, and based on the second position coordinates of the multiple time points, it is determined whether the corresponding operation interface continues to meet the preset operation interface control conditions.

[0013] The above-mentioned preset operation interface control conditions include operation interface hiding conditions;

[0014] The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, includes:

[0015] Obtaining second position coordinates of a plurality of consecutive time points after the current moment;

[0016] Calculating the distance between the second position coordinates at multiple time points and the position of the operation interface;

[0017] Determine whether each of the distances is less than a preset first distance threshold, and obtain a determination result;

[0018] If the judgment result is that the distances of N consecutive time points are less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface hiding condition, where N is an integer greater than zero.

[0019] After determining that the distances between N consecutive time points are less than the first distance threshold, the method further includes:

[0020] Determine whether the distance of the previous time point (t) among the distances of the N time points is greater than the distance of the next time point (t+1); if so, determine that the corresponding operation interface meets the operation interface hiding condition;

[0021] Alternatively, the average value of the distances of N time points is calculated, and it is determined whether the average value is smaller than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0022] After determining that the distance at the previous time point (t) among the distances of the N time points is greater than the distance at the next time point (t+1), the method further includes:

[0023] Determine whether the distance of the last time point among the distances of the N time points is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold;

[0024] If so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0025] The above-mentioned preset operation interface control conditions also include operation interface display conditions;

[0026] The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, further includes:

[0027] If the judgment result is that the distance between the existing time points is not less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface display condition.

[0028] After determining that the distance between the existing time points is not less than the first distance threshold, the method further includes:

[0029] Determine whether the distance at the previous time point (t) among all distances not less than the first distance threshold is less than the distance at the next time point (t+1), and the number of consecutive time points reaches N; if so, determine that the corresponding operation interface meets the operation interface display condition, where N is an integer greater than zero;

[0030] Alternatively, the average value of all distances not less than the distance threshold is calculated, and it is determined whether the average value is greater than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface display condition.

[0031] After the step of controlling hiding or displaying the operation interface corresponding to the position coordinates, the method further includes:

[0032] If it is determined that the corresponding operation interface meets the operation interface hiding condition, determining whether there is a second touch operation in the game scene, wherein the second touch operation is an operation of controlling the virtual character to continue moving;

[0033] If so, determining whether the position coordinates of the virtual character at a plurality of consecutive time points after the second touch operation are away from the operation interface;

[0034] If the user is far away, the operation interface is controlled to be displayed in the user graphical interface;

[0035] If you do not move away, the hidden control of the operation interface is maintained.

[0036] The above-mentioned step of obtaining the position coordinates of the virtual character at each time point during the movement process and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition further includes:

[0037] Calculating the distance between the first position coordinate and the edge of the game scene;

[0038] Determining whether the distance is less than a first distance threshold;

[0039] If so, hiding the operation interface on the edge of the scene, and determining whether the distance between the coordinate position of the subsequent N consecutive time points and the edge of the scene is less than the first distance threshold;

[0040] If the distances at the N time points are all less than the first distance threshold, it is determined that the operation interface on the scene edge meets a preset operation interface control condition.

[0041] In a second aspect, an embodiment of the present invention provides an interface control device that displays a graphical user interface through a terminal device, wherein the graphical user interface includes a game scene and an operation interface, wherein the game scene includes a map and a virtual character controlled by the terminal device, and the interface control device includes:

[0042] a path-finding module, configured to determine a moving position of the virtual character in response to a first touch operation on the map, and control the virtual character to move toward the moving position;

[0043] A judgment module, configured to obtain the position coordinates of the virtual character at each time point during the movement process, and to judge whether the operation interface corresponding to each position coordinate satisfies a preset operation interface control condition;

[0044] The display module is used to control the hiding or display of the operation interface corresponding to the position coordinate when it is determined that a preset operation interface control condition is met.

[0045] In a third aspect, an embodiment of the present invention provides a user terminal device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned interface control method.

[0046] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the control method of the above-mentioned interface.

[0047] The embodiments of the present invention bring the following beneficial effects:

[0048] The interface control method provided above is applied to a user terminal device, and a graphical user interface is displayed through the terminal device. The graphical user interface includes a game scene and an operation interface. The game scene includes a map and a virtual character controlled by the terminal device. In response to a first touch operation on the map, the moving position of the virtual character is determined, and the virtual character is controlled to move to the moving position; the position coordinates of the virtual character at each time point during the movement process are obtained, and it is determined whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition; if so, the operation interface corresponding to the position coordinate is controlled to be hidden or displayed. In this method, based on obtaining the real-time position coordinates of the virtual character during the movement, it is determined whether the relationship between the real-time position coordinates and the operation interface corresponding to the position meets the operation interface control condition, so as to realize the control of the display or hiding of the operation interface in the game scene, thereby avoiding the interface blocking the game scene. In addition, the automatic control process of displaying or hiding is simpler than the manual operation of the prior art, and does not require user operation, thereby improving the user's gaming experience.

[0049] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the present invention. The purposes and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0052] Figure 1 A schematic diagram of an embodiment of a method for controlling an interface provided by an embodiment of the present invention;

[0053] Figure 2 A schematic diagram of another embodiment of the interface control method provided by an embodiment of the present invention;

[0054] Figure 3 A schematic diagram of a graphical user interface provided by an embodiment of the present invention;

[0055] Figure 4 A schematic diagram of a first variation of the graphical user interface provided by an embodiment of the present invention;

[0056] Figure 5 A schematic diagram of a second variation of the graphical user interface provided by an embodiment of the present invention;

[0057] Figure 6 A schematic diagram of another embodiment of the interface control method provided by an embodiment of the present invention;

[0058] Figure 7 A schematic diagram of a control device for an interface provided by an embodiment of the present invention;

[0059] Figure 8 A schematic diagram of a user terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0060] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the scope of protection of the present invention.

[0061] This application is illustrated by taking MMO mobile games as an example. In MMO games, users control the movement of virtual characters by operating the game map according to actual operations. Specifically, based on the location selected by the user on the map, the movement route is determined by pathfinding, and the virtual character is controlled to move to the selected location along the movement route to complete the corresponding game task. However, in current game displays, due to the limitations of the display area of ​​the mobile terminal's display screen, when the game scene and operation interface UI are displayed on the display screen, the UI will block the relevant information in the game scene, resulting in the problem of misoperation of the UI interface when the user needs to continue to touch to control the movement of the virtual character, which greatly affects the gaming experience. Based on the above defects, this application mainly solves the problem that the operations of hiding or displaying the UI interface in MMO games are too complicated, affecting the user's gaming experience.

[0062] Based on the above, an embodiment of the present invention provides an interface control method and an equipment set storage medium.

[0063] In one embodiment of the present invention, the interface control method can be executed on a terminal device or a server. The terminal device can be a local terminal device. When the interface control method is executed on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0064] In an optional embodiment, various cloud applications, such as cloud gaming, can be run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the main body running the game program and the main body presenting the game's graphical user interface are separated. The storage and operation of the game interface display control method are completed on the cloud gaming server. The client device is responsible for receiving and sending data and presenting the game scene. For example, the client device can be a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, PDA, etc.; however, the terminal device performing information processing is the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game scene and other data, and returns it to the client device via the network. Finally, the client device decodes and outputs the game scene and other graphical user interface.

[0065] In an optional embodiment, the terminal device can be a local terminal device. Taking a game as an example, the local terminal device stores the game program and is used to present a graphical user interface (GUI) such as a game scene. The local terminal device is used to interact with the player through the GUI, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the GUI to the player in a variety of ways, for example, it can be rendered and displayed on the terminal's display screen, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen being used to present the GUI, the GUI including the game scene, and the processor being used to run the game, generate the GUI, and control the display of the GUI on the display screen.

[0066] In a possible implementation, an embodiment of the present invention provides a method for controlling an interface, wherein the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system.

[0067] See also Figure 1 The diagram shows an embodiment of a method for controlling an interface. This embodiment is implemented on a terminal device and displays a graphical user interface on the terminal device. The graphical user interface includes a game scene and an operation interface. The game scene includes a map and a virtual character controlled by the terminal device. The method for controlling the interface includes the following steps:

[0068] Step S101 : In response to a first touch operation on a map, determining a moving position of a virtual character, and controlling the virtual character to move toward the moving position.

[0069] In this embodiment, the map is part of a graphical user interface, which can be understood as the interface of the game, referring to the interface corresponding to the application provided or displayed through the graphical user interface, which includes a UI interface (User Interface) for players to interact with and a game screen. In an optional embodiment, the UI interface may include game controls (such as skill controls, movement controls, function controls, etc.), indicators (such as direction indicators, role indicators, etc.), information display areas (such as the number of online players, team information, recruitment information, etc.), or game setting controls (such as system settings, stores, gold coins, etc.). In an optional embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, and the game screen may include virtual characters such as game characters, NPC characters (Non-Player Characters), and AI (Artificial Intelligence) characters that execute game logic in the virtual scene.

[0070] In this embodiment, during the game, the user performs a first touch operation on the map based on the game task, selects the task location based on the first touch operation, starts automatic pathfinding control based on the task location, and controls the virtual character to move to the task location in the game scene.

[0071] In actual applications, the map can be understood as the picture displayed in the current game scene, or it can be a thumbnail of the entire game. The user determines the location of the task location based on the game task, and performs touch operations on the picture or thumbnail. The touch acquisition unit in the display screen, such as a sensor, collects the user's first touch operation on the display screen, and determines the position on the map based on the relationship between the first touch operation and the game scene. Based on the position, a movement route is constructed based on the path-finding strategy, and the virtual character is controlled to move based on the movement route.

[0072] Step S102 : obtaining the position coordinates of the virtual character at each time point during the movement process, and determining whether the operation interface corresponding to each position coordinate satisfies a preset operation interface control condition.

[0073] Applied to a user-end device. After responding to the first touch operation, the user-end device monitors the position coordinates of the virtual character during its movement in real time and determines whether an operating interface exists at or near the position coordinates. If so, it determines whether the position coordinates meet a condition of proximity to the operating interface. If so, it continues to determine whether it meets a preset operating interface control condition. Otherwise, it continues to collect the next position coordinates of the virtual character's movement for determination.

[0074] In this embodiment, it is determined whether the virtual character will overlap with the operation interface UI when moving to each position. If so, it is further determined whether the operation interface needs to be hidden or displayed.

[0075] Specifically, each time the virtual character moves to a position coordinate, it searches the display relationship between the game scene and the operation interface currently displayed on the terminal to see whether there is an operation interface at the position coordinate and the surrounding area. If so, it determines whether the operation interface needs to be hidden or displayed. In actual applications, the operation interface refers to the main interface UI of the game, and the game scene will change with the movement of the virtual character, which means that the game scene covered by the operation interface will change, such as the operation interface located in the edge area. Of course, a fixed operation interface will also be set at the task point of the game scene to provide users with operational instructions for completing game tasks.

[0076] Furthermore, when judging whether the operation interface needs to be hidden or displayed, it is specifically achieved by judging whether the preset operation interface control conditions are met. The operation interface control conditions include the operation interface hiding conditions and the operation interface display conditions. When the operation interface is in the display state during the judgment, the hiding judgment is executed; if the operation interface is in the hidden state, the display judgment is executed.

[0077] Specifically, it is determined whether the position coordinates of the virtual character at the current moment and the coordinates of the game scene where the operation interface is located are less than a proximity distance threshold. If so, it is determined whether the virtual character continues to move. If it continues to move, the control method of the operation interface is determined based on the current state of the operation interface. If it does not continue to move, the operation interface hiding condition is met, and the timing control of the interface display is started. If there is no interactive operation until the end of the timing control, the operation interface display condition is met.

[0078] Step S103: If the conditions are met, the operation interface corresponding to the position coordinates is controlled to be hidden or displayed.

[0079] In this embodiment, when the virtual character's position coordinates are not at the edge of the scene during movement, the display of the operation interface is prioritized, thereby facilitating the user's observation of information in the game scene and improving the gaming experience. When the position coordinates are at the edge of the scene, the hiding of the operation interface is prioritized, thereby facilitating the user's further control of the virtual character's movement.

[0080] The aforementioned interface control method, in response to a first touch operation on a map within a graphical user interface, determines the virtual character's movement position and controls the virtual character's movement toward the movement position. During the movement process, the virtual character's position coordinates are obtained and, based on the position coordinates, determines whether the corresponding operation interface needs to be hidden or displayed. This method sets operation interface control conditions to determine whether the operation interface affects the user's control of the movement of the virtual object. Compared to existing technologies, this method eliminates the need to operate controls within the game scene, reducing the user's touch operations. Only touch operations for tasks are required. Hiding the operation interface reduces obstruction of the game scene, thereby improving the user's gaming experience.

[0081] See also Figure 2 A schematic diagram of another embodiment of a method for controlling an interface is shown, wherein the method for controlling an interface includes the following steps:

[0082] The user terminal device includes a user client and a user VR device. The user client can be a mobile terminal (e.g., a mobile phone), a television, a computer (e.g., a personal computer), a handheld computer, etc. For ease of explanation and understanding, as an example and not limitation, the user client in the implementation of the present invention is described as a user mobile phone.

[0083] Step S201: Displaying a graphical user interface on a terminal device, the graphical user interface including a game scene and an operation interface, the game scene including a map and a virtual character controlled by the terminal device;

[0084] Step S202, in response to a first touch operation on the map, determining a moving position of the virtual character, and controlling the virtual character to move toward the moving position;

[0085] Applied to user terminal devices. The first touch operation can be a sliding operation or a clicking operation. Preferably, the user's mobile phone responds to the user's clicking operation on the map displayed on the graphical user interface, such as Figure 3 As shown, the user clicks on position 1 in the figure, and the user-end device responds to the click operation and plans the movement route of the virtual character, where position 1 can be a position on the edge of the scene or not on the edge of the scene. For position 1 not on the edge of the scene, its planned movement route will pass through various operation interfaces. For position 1 on the edge of the scene, its planned movement route will pass through various operation interfaces and eventually move to the edge of the scene. The operation interface on the edge of the scene will block the virtual character, affecting the user's subsequent control of the movement of the virtual character.

[0086] Step S203, obtaining the first position coordinates of the virtual character at the current moment during the movement process;

[0087] In this embodiment, after controlling the movement of the virtual character, the virtual character's position information at each time point is collected in real time as a first position coordinate. It is then determined whether an operation interface exists at the first position coordinate, and whether the first coordinate position is at the edge of the scene. If an operation interface exists, the coordinate information of the operation interface is obtained. This coordinate information is a coordinate interval, and the coordinate closest to the first position coordinate is selected from the coordinate interval to calculate the distance between the two. If the first coordinate is at the edge of the scene, the straight-line distance between the first coordinate and the area corresponding to the scene edge is calculated. Based on this distance or the straight-line distance, it is determined whether the proximity judgment condition is met, that is, step S204 is executed.

[0088] Step S204, determining whether the first position coordinates meet a determination condition of being close to an operation interface in a graphical user interface;

[0089] In this step, the distance between the first position coordinate and the area corresponding to the operation interface is compared with a preset first distance threshold. If the distance is less than or equal to the first distance threshold, it is determined that the virtual character is currently close to the operation interface. Otherwise, it is not close, and the process returns to step S203 to continue obtaining the position coordinates of the next time point.

[0090] like Figure 4 As shown, in the process of moving to position 1, the virtual character passes through task point A, and determines whether the distance between the first position coordinate of the virtual character and task point A is less than the first distance threshold L1. If so, it is determined that the virtual character is close to task point A, and the operation interface of task point A is displayed or hidden. Here, the hidden control is taken as an example. The game scene after hiding is as follows Figure 5 shown.

[0091] Step S205: If close, obtain the second position coordinates of multiple consecutive time points after the current moment, and determine whether the corresponding operation interface continues to meet the preset operation interface control conditions based on the second position coordinates of the multiple time points;

[0092] Applied to a user terminal device. When it is determined that the virtual character is close to the operation interface when moving to task point A, the position coordinates of multiple time points after the current moment are obtained as second position coordinates, where the N time points are consecutive moments on the time axis, and the number of times is greater than N.

[0093] Calculate the distance between each second position coordinate and the operation interface of task point A one by one, and determine whether it is less than the first distance threshold. If the judgment result of the time point closest to the current moment among multiple time points is still less than the first distance threshold, it is determined that the operation interface of task point A meets the operation interface control condition, that is, the operation interface hiding condition, and execute step S206.

[0094] Of course, here we can also compare the distance between each second position coordinate and the operation interface of task point A with the distance corresponding to the current moment. If it is less than, it is determined that the operation interface of task point A meets the operation interface control condition, that is, the operation interface hiding condition, and execute step S206.

[0095] Furthermore, the preset operation interface control conditions include operation interface hiding conditions;

[0096] The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, includes:

[0097] Obtaining second position coordinates of a plurality of consecutive time points after the current moment;

[0098] Calculating the distance between the second position coordinates at multiple time points and the position of the operation interface;

[0099] Determine whether each of the distances is less than a preset first distance threshold, and obtain a determination result;

[0100] If the judgment result is that the distance of N consecutive time points is less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface hiding condition, and N is an integer greater than zero, that is, the user will continue to approach task point A.

[0101] In this embodiment, after determining that the distances between N consecutive time points are less than the first distance threshold, the method further includes:

[0102] Determine whether the distance of the previous time point (t) among the distances of N time points is greater than the distance of the next time point (t+1); if so, determine that the corresponding operation interface meets the operation interface hiding condition; that is, in the subsequent N time points, if the distance between the virtual character and the task point A is constantly shrinking, it is determined that the virtual user is approaching the task point A, and in order to avoid subsequent users from controlling the virtual character, the operation interface of the task point A is hidden.

[0103] Further, determining whether the distance of the last time point among the distances of the N time points is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold;

[0104] If so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0105] In this embodiment, after determining that the distances between N consecutive time points are less than the first distance threshold, the method further includes:

[0106] Calculate the average distance of N time points and determine whether the average is less than the distance at the current moment. If so, determine that the corresponding operation interface meets the operation interface hiding condition. That is, the avatar is moving within the range of task point A and is likely to continue approaching task point A. To facilitate subsequent user control of the avatar, the operation interface of task point A is hidden.

[0107] In this embodiment, after determining that the distance between the existing time points is not less than the first distance threshold, the method further includes:

[0108] Determine whether the distance at the previous time point (t) among all distances not less than the first distance threshold is less than the distance at the next time point (t+1), and the number of consecutive time points reaches N; if so, determine that the corresponding operation interface meets the operation interface display condition, where N is an integer greater than zero;

[0109] In practical applications, if it is determined that there is a second position coordinate that is not less than the first distance threshold among multiple time points, it is further determined whether the virtual character is far away from the operation interface, such as Figure 5 In the embodiment, after determining that the first position coordinate is close to the task point A, there are also several time points in the subsequent multiple time points that meet the first distance threshold, but the movement trend of the virtual character in N time points is reflected to be away from the task point A, then it is determined that the operation interface control condition is not met.

[0110] Specifically, through the judgment results of multiple time points, the movement route of the virtual character is constructed, the movement trend of the virtual character relative to the task point A is predicted based on the movement route, and whether it meets the operation interface control conditions is determined based on the movement area.

[0111] In this embodiment, after determining that the distance between the existing time points is not less than the first distance threshold, the method further includes:

[0112] Calculate the average value of all distances that are not less than the distance threshold, and determine whether the average value is greater than the distance at the current moment; if so, determine that the corresponding operation interface meets the operation interface display condition.

[0113] Step S206: If the conditions are met, the operation interface corresponding to the position coordinates is controlled to be hidden or displayed;

[0114] In this embodiment, when the virtual character's position coordinates are not at the edge of the scene during movement, the display of the operation interface is prioritized, thereby facilitating the user's observation of information in the game scene and improving the gaming experience. When the position coordinates are at the edge of the scene, the hiding of the operation interface is prioritized, thereby facilitating the user's further control of the virtual character's movement.

[0115] Step S207: If it is determined that the corresponding operation interface meets the operation interface hiding condition, it is determined whether there is a second touch operation in the game scene, wherein the second touch operation is an operation for controlling the virtual character to continue moving;

[0116] In this embodiment, after the control operation interface is hidden, the virtual character may stay at the second position coordinate, but it has no task to perform. At this time, there is no need to hide the operation interface because there will be no problem of misoperation. In order to improve the matching of the hidden control of the operation interface with the user's gaming needs and improve the user's gaming experience, after hiding the operation interface, it is also added to continue monitoring the touch operation or the movement of the virtual character in the game scene.

[0117] Specifically, the sensor on the display screen monitors whether there is another touch operation after the first touch operation. If so, it is determined whether the touch operation (ie, the second touch operation) is a movement control operation of the virtual character. If so, step S208 is executed.

[0118] Step S208: If yes, determining whether the position coordinates of the virtual character at a plurality of consecutive time points after the second touch operation are far away from the operation interface;

[0119] In this embodiment, the position coordinates of the virtual character at multiple consecutive time points after the second touch operation are obtained, the distance of the virtual character relative to the operation interface is calculated based on the position coordinates, and whether the virtual character is far away from the operation interface is determined based on the distance.

[0120] In actual applications, by calculating the distance between the position coordinates of multiple consecutive time points and the operation interface or the area corresponding to the operation interface, when it is determined that the distance is greater than or equal to the first distance threshold, it is determined that the virtual character is far away from the operation interface; or when it is determined that the distance corresponding to each time point gradually increases, it is determined that the virtual character is far away from the operation interface.

[0121] Step S209: If the user is away, the control operation interface is displayed in the user graphical interface;

[0122] Step S210: If the user does not move away, the user maintains the hidden control of the operation interface.

[0123] In this embodiment, when the virtual character moves toward the edge of the scene, the step of obtaining the position coordinates of the virtual character at each time point during the movement and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition further includes:

[0124] Calculating the distance between the first position coordinate and the edge of the game scene;

[0125] Determining whether the distance is less than a first distance threshold;

[0126] If so, hiding the operation interface on the edge of the scene, and determining whether the distance between the coordinate position of the subsequent N consecutive time points and the edge of the scene is less than the first distance threshold;

[0127] If the distances at the N time points are all less than the first distance threshold, it is determined that the operation interface on the scene edge meets a preset operation interface control condition.

[0128] The above-mentioned interface control method is applied to a mobile terminal. In response to a first touch operation on a map, the method determines the movement position of a virtual character and controls the virtual character to move toward the movement position. The method also obtains the position coordinates of the virtual character at each time point during the movement process and determines whether the operation interface corresponding to each position coordinate meets a preset operation interface control condition. If so, the method controls the hiding or display of the operation interface corresponding to the position coordinate. By calculating the relationship between the position coordinates of the virtual character and the operation interface or the area corresponding to the operation interface, the method determines whether the operation interface needs to be hidden. Compared with the existing technology, the method achieves the following beneficial effects:

[0129] 1) This control method can hide the main UI at the appropriate time without learning or memorizing additional interactive operations;

[0130] 2) No additional interactive buttons are required and no space is taken up on the main interface;

[0131] 3) The timing of hiding the main UI does not require the player to make additional judgments; the system can automatically determine the timing based on the player's edge pathing interaction behavior;

[0132] 4) The timing of displaying the main UI does not require the player to make additional judgments. The system can automatically determine the timing based on the end of the player's edge pathfinding interaction.

[0133] 5) Players do not need to spend extra energy and physical effort to judge whether the main interface UI is visible or not, and only need to focus on the interactive behavior of the map.

[0134] The following takes the virtual character approaching the edge of the scene as an example to explain in detail the hidden control of the operation interface UI. Figure 6 A schematic diagram of another embodiment of a method for controlling an interface is shown, wherein the method for controlling an interface includes the following steps:

[0135] Step S301, in response to the player clicking on the map, starting pathfinding to control the movement of the virtual character;

[0136] Step S302, determining whether the virtual character continues to approach the edge of the scene;

[0137] In this embodiment, the method for judging whether the character continues to approach the edge of the scene during the process of the player clicking on the map to find the way is: whether the distance between the character coordinates and the scene edge coordinates continues to shorten after reaching the threshold t1.

[0138] In actual application, in response to the player clicking on the map, the real-time position coordinates of the virtual character are obtained, the distance between the position coordinates and the edge of the scene is calculated, and it is determined whether the distance is less than the threshold t1; if so, step S303 is executed.

[0139] Furthermore, after determining whether the distance is less than threshold t1, the process also includes determining whether the distances at multiple subsequent time points are also less than threshold t1, and whether a threshold t2 exists, then executing step S303. Threshold t2 = UI interface length (at different corners) + a specific constant (which allows the UI interface to be hidden in advance, rather than waiting until the character reaches a point where the UI interface overlaps with the scene).

[0140] Step S303: If yes, hide the operation interface UI corresponding to the edge of the scene;

[0141] Step S304, determining whether the player continues to operate the edge of the scene;

[0142] In this embodiment, determining whether to continue operating the scene edge is specifically by collecting whether there is a click operation in the game scene or map, if so, determining to continue operating the scene edge and executing step S305. If not, executing step S306.

[0143] Specifically, the method for determining the timing of resuming display after hiding the side main interface UI is as follows: if the player stops interacting with the map scene, that is, clicking on the path-finding behavior or clicking on the NPC, props, and other interactive behaviors on the map, the side main interface UI will be restored; if the player continues to interact with the map scene, but continues to move away from the edge of the map scene while clicking on the map path-finding process, that is, the distance between the character coordinates and the scene edge coordinates continues to increase and is greater than the threshold t1, the side main interface UI will be restored.

[0144] Step S305: If yes, determine whether the virtual character is far away from the edge of the scene;

[0145] In this embodiment, determining whether the avatar is far from the edge of the scene is performed by calculating the distance between the position coordinates of each time point during the avatar's continued movement and the edge of the scene, and determining whether the distance is greater than a threshold t1 or a limit threshold t2. If so, then performing a make-up move S306. Otherwise, the operation interface UI remains hidden.

[0146] Step S306: If yes, display the operation interface UI corresponding to the edge of the scene.

[0147] The control method of the interface provided above obtains the real-time position coordinates of the character, compares the position coordinates with the position coordinates of the edge, and if the comparison is close, further determines whether the proximity continues, and controls the hiding and display of the corresponding countermeasure interface based on the results of the comparison and judgment, thereby solving the problem of complex operations for interactive control of hiding or displaying of the boundary interface in the existing technology.

[0148] Furthermore, based on the embodiments of the above-mentioned method, accidental touches of the main interface UI during path-finding interactions are reduced, the effectiveness of operations is improved, and mental and physical burdens are reduced; based on the player's operation behavior, the system actively predicts the timing to hide and display the UI, without the need for additional active operations by the player, and without the need to add additional buttons to occupy interface space, effectively improving interface utilization; actively hiding the UI at the appropriate time in the process of interacting with the map reduces the interference of invalid information and effectively improves the concentration and immersion of the interaction process.

[0149] Corresponding to the above method embodiment, applied to the user terminal device, see Figure 7 A schematic diagram of an interface control device is shown, in which a graphical user interface is displayed via a terminal device. The graphical user interface includes a game scene and an operation interface. The game scene includes a map and a virtual character controlled by the terminal device. The interface control device includes:

[0150] a path-finding module 701 for determining a moving position of the virtual character in response to a first touch operation on the map, and controlling the virtual character to move toward the moving position;

[0151] The judgment module 702 is used to obtain the position coordinates of the virtual character at each time point during the movement process, and to judge whether the operation interface corresponding to each position coordinate meets the preset operation interface control conditions;

[0152] The display module 703 is configured to control the hiding or display of the operation interface corresponding to the position coordinates when it is determined that a preset operation interface control condition is satisfied.

[0153] The judgment module 702 is specifically used for:

[0154] Obtaining the first position coordinates of the virtual character at a current moment during the movement process;

[0155] Determining whether the first position coordinates meet a determination condition of being close to an operation interface in the graphical user interface;

[0156] If close, the second position coordinates of multiple consecutive time points after the current moment are obtained, and based on the second position coordinates of the multiple time points, it is determined whether the corresponding operation interface continues to meet the preset operation interface control conditions.

[0157] The above-mentioned preset operation interface control conditions include operation interface hiding conditions; the judgment module 702 is specifically used to:

[0158] Obtaining second position coordinates of a plurality of consecutive time points after the current moment;

[0159] Calculating the distance between the second position coordinates at multiple time points and the position of the operation interface;

[0160] Determine whether each of the distances is less than a preset first distance threshold, and obtain a determination result;

[0161] If the judgment result is that the distances of N consecutive time points are less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface hiding condition, where N is an integer greater than zero.

[0162] The judgment module 702 is further configured to:

[0163] Determine whether the distance of the previous time point (t) among the distances of the N time points is greater than the distance of the next time point (t+1); if so, determine that the corresponding operation interface meets the operation interface hiding condition;

[0164] Alternatively, the average value of the distances of N time points is calculated, and it is determined whether the average value is smaller than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0165] The judgment module 702 is further configured to:

[0166] After determining that the distance at the previous time point (t) among the distances of the N time points is greater than the distance at the next time point (t+1), determining whether the distance at the last time point among the distances of the N time points is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold;

[0167] If so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0168] The above-mentioned preset operation interface control conditions also include operation interface display conditions; the judgment module 702 is specifically used to:

[0169] If the judgment result is that the distance between the existing time points is not less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface display condition.

[0170] The judgment module 702 is further configured to:

[0171] After determining that the distance of the existing time point is not less than the first distance threshold, determine whether the distance of the previous time point (t) among all distances not less than the first distance threshold is less than the distance of the next time point (t+1) and the number of consecutive time points reaches N; if so, determine that the corresponding operation interface meets the operation interface display condition, where N is an integer greater than zero;

[0172] Alternatively, the average value of all distances not less than the distance threshold is calculated, and it is determined whether the average value is greater than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface display condition.

[0173] The display module 703 is further configured to:

[0174] If it is determined that the corresponding operation interface meets the operation interface hiding condition, determining whether there is a second touch operation in the game scene, wherein the second touch operation is an operation of controlling the virtual character to continue moving;

[0175] If so, determining whether the position coordinates of the virtual character at a plurality of consecutive time points after the second touch operation are away from the operation interface;

[0176] If the user is far away, the operation interface is controlled to be displayed in the user graphical interface;

[0177] If you do not move away, the hidden control of the operation interface is maintained.

[0178] The judgment module 702 is further configured to:

[0179] Calculating the distance between the first position coordinate and the edge of the game scene;

[0180] Determining whether the distance is less than a first distance threshold;

[0181] If so, hiding the operation interface on the edge of the scene, and determining whether the distance between the coordinate position of the subsequent N consecutive time points and the edge of the scene is less than the first distance threshold;

[0182] If the distances at the N time points are all less than the first distance threshold, it is determined that the operation interface on the scene edge meets a preset operation interface control condition.

[0183] In summary, a graphical user interface is displayed through a terminal device, and the graphical user interface includes a game scene and an operation interface. The game scene includes a map and a virtual character controlled by the terminal device. In response to a first touch operation on the map, the moving position of the virtual character is determined, and the virtual character is controlled to move to the moving position; the position coordinates of the virtual character at each time point during the movement process are obtained, and it is determined whether the operation interface corresponding to each position coordinate meets the preset operation interface control conditions; if so, the operation interface corresponding to the position coordinate is controlled to be hidden or displayed. In this method, based on obtaining the real-time position coordinates of the virtual character during the movement, it is determined whether the relationship between the real-time position coordinates and the operation interface corresponding to the position meets the operation interface control conditions, so as to realize the control of the display or hiding of the operation interface in the game scene, thereby avoiding the interface blocking the game scene. In addition, the automatic control process of displaying or hiding is simpler than the manual operation of the prior art, and does not require user operation, thereby improving the user's gaming experience.

[0184] This embodiment further provides a user terminal device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned interface control method. The user terminal device can be a server or a terminal device.

[0185] See also Figure 8 As shown, the user terminal device includes a processor 1100 and a memory 1101. The memory 1101 stores machine executable instructions that can be executed by the processor 1100. The processor 1100 executes the machine executable instructions to implement the above-mentioned interface control method.

[0186] Furthermore, Figure 8 The user terminal device shown further includes a bus 1102 and a communication interface 1103 , and the processor 1100 , the communication interface 1103 and the memory 1101 are connected via the bus 1102 .

[0187] Among them, the memory 1101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 1103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 1102 can be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0188] The processor 1100 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 1100 or by software instructions. The above processor 1100 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. The storage medium is located in memory 1101. Processor 1100 reads the information in memory 1101 and, in conjunction with its hardware, completes the following steps:

[0189] Displaying a graphical user interface through a terminal device, the graphical user interface including a game scene and an operation interface, the game scene including a map and a virtual character controlled by the terminal device;

[0190] In response to a first touch operation on the map, determining a moving position of the virtual character, and controlling the virtual character to move toward the moving position;

[0191] Obtaining the position coordinates of the virtual character at each time point during the movement process, and determining whether the operation interface corresponding to each position coordinate meets a preset operation interface control condition;

[0192] If the conditions are met, the hiding or display of the operation interface corresponding to the position coordinates is controlled.

[0193] The above-mentioned step of obtaining the position coordinates of the virtual character at each time point during the movement process and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition includes:

[0194] Obtaining the first position coordinates of the virtual character at a current moment during the movement process;

[0195] Determining whether the first position coordinates meet a determination condition of being close to an operation interface in the graphical user interface;

[0196] If close, the second position coordinates of multiple consecutive time points after the current moment are obtained, and based on the second position coordinates of the multiple time points, it is determined whether the corresponding operation interface continues to meet the preset operation interface control conditions.

[0197] The above-mentioned preset operation interface control conditions include operation interface hiding conditions;

[0198] The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, includes:

[0199] Obtaining second position coordinates of a plurality of consecutive time points after the current moment;

[0200] Calculating the distance between the second position coordinates at multiple time points and the position of the operation interface;

[0201] Determine whether each of the distances is less than a preset first distance threshold, and obtain a determination result;

[0202] If the judgment result is that the distances of N consecutive time points are less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface hiding condition, where N is an integer greater than zero.

[0203] After determining that the distances between N consecutive time points are less than the first distance threshold, the method further includes:

[0204] Determine whether the distance of the previous time point (t) among the distances of the N time points is greater than the distance of the next time point (t+1); if so, determine that the corresponding operation interface meets the operation interface hiding condition;

[0205] Alternatively, the average value of the distances of N time points is calculated, and it is determined whether the average value is smaller than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0206] After determining that the distance at the previous time point (t) among the distances of the N time points is greater than the distance at the next time point (t+1), the method further includes:

[0207] Determine whether the distance of the last time point among the distances of the N time points is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold;

[0208] If so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0209] The above-mentioned preset operation interface control conditions also include operation interface display conditions;

[0210] The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, further includes:

[0211] If the judgment result is that the distance between the existing time points is not less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface display condition.

[0212] After determining that the distance between the existing time points is not less than the first distance threshold, the method further includes:

[0213] Determine whether the distance at the previous time point (t) among all distances not less than the first distance threshold is less than the distance at the next time point (t+1), and the number of consecutive time points reaches N; if so, determine that the corresponding operation interface meets the operation interface display condition, where N is an integer greater than zero;

[0214] Alternatively, the average value of all distances not less than the distance threshold is calculated, and it is determined whether the average value is greater than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface display condition.

[0215] After the step of controlling hiding or displaying the operation interface corresponding to the position coordinates, the method further includes:

[0216] If it is determined that the corresponding operation interface meets the operation interface hiding condition, determining whether there is a second touch operation in the game scene, wherein the second touch operation is an operation of controlling the virtual character to continue moving;

[0217] If so, determining whether the position coordinates of the virtual character at a plurality of consecutive time points after the second touch operation are away from the operation interface;

[0218] If the user is far away, the operation interface is controlled to be displayed in the user graphical interface;

[0219] If you do not move away, the hidden control of the operation interface is maintained.

[0220] The above-mentioned step of obtaining the position coordinates of the virtual character at each time point during the movement process and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition further includes:

[0221] Calculating the distance between the first position coordinate and the edge of the game scene;

[0222] Determining whether the distance is less than a first distance threshold;

[0223] If so, hiding the operation interface on the edge of the scene, and determining whether the distance between the coordinate position of the subsequent N consecutive time points and the edge of the scene is less than the first distance threshold;

[0224] If the distances at the N time points are all less than the first distance threshold, it is determined that the operation interface on the scene edge meets a preset operation interface control condition.

[0225] In response to a first touch operation on a map in a graphical user interface, the virtual character's movement position is determined and the virtual character is controlled to move toward the movement position. During the movement process, the virtual character's position coordinates are obtained, and based on the position coordinates, a determination is made as to whether the corresponding operation interface needs to be hidden or displayed. In this method, by setting operation interface control conditions to determine whether the operation interface affects the user's control of the movement of the virtual object, compared to existing technologies, there is no need to operate controls in the game scene, reducing the user's touch operations. Only the touch operations required for the task are required. Hiding the operation interface reduces obstruction of the game scene, thereby improving the user's gaming experience.

[0226] This embodiment further provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the following steps:

[0227] Displaying a graphical user interface through a terminal device, the graphical user interface including a game scene and an operation interface, the game scene including a map and a virtual character controlled by the terminal device;

[0228] In response to a first touch operation on the map, determining a moving position of the virtual character, and controlling the virtual character to move toward the moving position;

[0229] Obtaining the position coordinates of the virtual character at each time point during the movement process, and determining whether the operation interface corresponding to each position coordinate meets a preset operation interface control condition;

[0230] If the conditions are met, the hiding or display of the operation interface corresponding to the position coordinates is controlled.

[0231] The above-mentioned step of obtaining the position coordinates of the virtual character at each time point during the movement process and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition includes:

[0232] Obtaining the first position coordinates of the virtual character at a current moment during the movement process;

[0233] Determining whether the first position coordinates meet a determination condition of being close to an operation interface in the graphical user interface;

[0234] If close, the second position coordinates of multiple consecutive time points after the current moment are obtained, and based on the second position coordinates of the multiple time points, it is determined whether the corresponding operation interface continues to meet the preset operation interface control conditions.

[0235] The above-mentioned preset operation interface control conditions include operation interface hiding conditions;

[0236] The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, includes:

[0237] Obtaining second position coordinates of a plurality of consecutive time points after the current moment;

[0238] Calculating the distance between the second position coordinates at multiple time points and the position of the operation interface;

[0239] Determine whether each of the distances is less than a preset first distance threshold, and obtain a determination result;

[0240] If the judgment result is that the distances of N consecutive time points are less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface hiding condition, where N is an integer greater than zero.

[0241] After determining that the distances between N consecutive time points are less than the first distance threshold, the method further includes:

[0242] Determine whether the distance of the previous time point (t) among the distances of the N time points is greater than the distance of the next time point (t+1); if so, determine that the corresponding operation interface meets the operation interface hiding condition;

[0243] Alternatively, the average value of the distances of N time points is calculated, and it is determined whether the average value is smaller than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0244] After determining that the distance at the previous time point (t) among the distances of the N time points is greater than the distance at the next time point (t+1), the method further includes:

[0245] Determine whether the distance of the last time point among the distances of the N time points is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold;

[0246] If so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

[0247] The above-mentioned preset operation interface control conditions also include operation interface display conditions;

[0248] The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, further includes:

[0249] If the judgment result is that the distance between the existing time points is not less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface display condition.

[0250] After determining that the distance between the existing time points is not less than the first distance threshold, the method further includes:

[0251] Determine whether the distance at the previous time point (t) among all distances not less than the first distance threshold is less than the distance at the next time point (t+1), and the number of consecutive time points reaches N; if so, determine that the corresponding operation interface meets the operation interface display condition, where N is an integer greater than zero;

[0252] Alternatively, the average value of all distances not less than the distance threshold is calculated, and it is determined whether the average value is greater than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface display condition.

[0253] After the step of controlling hiding or displaying the operation interface corresponding to the position coordinates, the method further includes:

[0254] If it is determined that the corresponding operation interface meets the operation interface hiding condition, determining whether there is a second touch operation in the game scene, wherein the second touch operation is an operation of controlling the virtual character to continue moving;

[0255] If so, determining whether the position coordinates of the virtual character at a plurality of consecutive time points after the second touch operation are away from the operation interface;

[0256] If the user is far away, the operation interface is controlled to be displayed in the user graphical interface;

[0257] If you do not move away, the hidden control of the operation interface is maintained.

[0258] The above-mentioned step of obtaining the position coordinates of the virtual character at each time point during the movement process and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition further includes:

[0259] Calculating the distance between the first position coordinate and the edge of the game scene;

[0260] Determining whether the distance is less than a first distance threshold;

[0261] If so, hiding the operation interface on the edge of the scene, and determining whether the distance between the coordinate position of the subsequent N consecutive time points and the edge of the scene is less than the first distance threshold;

[0262] If the distances at the N time points are all less than the first distance threshold, it is determined that the operation interface on the scene edge meets a preset operation interface control condition.

[0263] In response to a first touch operation on a map in a graphical user interface, the virtual character's movement position is determined and the virtual character is controlled to move toward the movement position. During the movement process, the virtual character's position coordinates are obtained, and based on the position coordinates, a determination is made as to whether the corresponding operation interface needs to be hidden or displayed. In this method, by setting operation interface control conditions to determine whether the operation interface affects the user's control of the movement of the virtual object, compared to existing technologies, there is no need to operate controls in the game scene, reducing the user's touch operations. Only the touch operations required for the task are required. Hiding the operation interface reduces obstruction of the game scene, thereby improving the user's gaming experience.

[0264] The computer program product of the interface control method and related equipment provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.

[0265] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0266] In addition, in the description of the embodiments of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; they may refer to mechanical connections or electrical connections; they may refer to direct connections or indirect connections through an intermediate medium; and they may refer to internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.

[0267] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0268] In the description of the present invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation, and therefore should not be construed as limitations on the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0269] Finally, it should be noted that the above embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above embodiments within the technical scope disclosed by the present invention, or replace some of the technical features therein with equivalents. Such modifications, changes or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A method for controlling an interface, characterized in that: A graphical user interface is displayed through a terminal device, wherein the graphical user interface includes a game scene and an operation interface, wherein the game scene includes a map and a virtual character controlled by the terminal device, and a method for controlling the interface includes: In response to a first touch operation on the map, determining a moving position of the virtual character, and controlling the virtual character to move toward the moving position; Obtaining the position coordinates of the virtual character at each time point during the movement process, and determining whether the operation interface corresponding to each position coordinate meets a preset operation interface control condition; If the conditions are met, the hiding or display of the operation interface corresponding to the position coordinates is controlled.

2. The interface control method according to claim 1, characterized in that: The step of obtaining the position coordinates of the virtual character at each time point during the movement process and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition includes: Obtaining the first position coordinates of the virtual character at a current moment during the movement process; Determining whether the first position coordinates meet a determination condition of being close to an operation interface in the graphical user interface; If close, the second position coordinates of multiple consecutive time points after the current moment are obtained, and based on the second position coordinates of the multiple time points, it is determined whether the corresponding operation interface continues to meet the preset operation interface control conditions.

3. The interface control method according to claim 2, characterized in that: The preset operation interface control conditions include operation interface hiding conditions; The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, includes: Obtaining second position coordinates of a plurality of consecutive time points after the current moment; Calculating the distance between the second position coordinates at multiple time points and the position of the operation interface; Determine whether each of the distances is less than a preset first distance threshold, and obtain a determination result; If the judgment result is that the distances of N consecutive time points are less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface hiding condition, where N is an integer greater than zero.

4. The interface control method according to claim 3, characterized in that: After determining that the distances between N consecutive time points are less than the first distance threshold, the method further includes: Determine whether the distance of the previous time point (t) among the distances of the N time points is greater than the distance of the next time point (t+1); if so, determine that the corresponding operation interface meets the operation interface hiding condition; Alternatively, the average value of the distances of N time points is calculated, and it is determined whether the average value is smaller than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

5. The interface control method according to claim 4, characterized in that: After determining that the distance of the previous time point (t) among the distances of the N time points is greater than the distance of the next time point (t+1), the method further includes: Determine whether the distance of the last time point among the distances of the N time points is less than a second distance threshold, wherein the second distance threshold is less than the first distance threshold; If so, it is determined that the corresponding operation interface meets the operation interface hiding condition.

6. The interface control method according to claim 3, characterized in that: The preset operation interface control conditions also include operation interface display conditions; The step of obtaining the second position coordinates of a plurality of consecutive time points after the current moment, and determining whether the corresponding operation interface continuously satisfies the preset operation interface control condition based on the second position coordinates of the plurality of time points, further includes: If the judgment result is that the distance between the existing time points is not less than the first distance threshold, it is determined that the corresponding operation interface meets the operation interface display condition.

7. The interface control method according to claim 6, characterized in that: After determining that the distance between the existing time points is not less than the first distance threshold, the method further includes: Determine whether the distance at the previous time point (t) among all distances not less than the first distance threshold is less than the distance at the next time point (t+1), and the number of consecutive time points reaches N; if so, determine that the corresponding operation interface meets the operation interface display condition, where N is an integer greater than zero; Alternatively, the average value of all distances not less than the distance threshold is calculated, and it is determined whether the average value is greater than the distance at the current moment; if so, it is determined that the corresponding operation interface meets the operation interface display condition.

8. The interface control method according to claim 3, characterized in that: After the step of controlling hiding or displaying the operation interface corresponding to the position coordinates, the method further includes: If it is determined that the corresponding operation interface meets the operation interface hiding condition, determining whether there is a second touch operation in the game scene, wherein the second touch operation is an operation of controlling the virtual character to continue moving; If so, determining whether the position coordinates of the virtual character at a plurality of consecutive time points after the second touch operation are away from the operation interface; If the user is far away, the operation interface is controlled to be displayed in the user graphical interface; If you do not move away, the hidden control of the operation interface is maintained.

9. The interface control method according to claim 2, characterized in that: The step of obtaining the position coordinates of the virtual character at each time point during the movement process and determining whether the operation interface corresponding to each position coordinate meets the preset operation interface control condition further includes: Calculating the distance between the first position coordinate and the edge of the game scene; Determining whether the distance is less than a first distance threshold; If so, hiding the operation interface on the edge of the scene, and determining whether the distance between the coordinate position of the subsequent N consecutive time points and the edge of the scene is less than the first distance threshold; If the distances at the N time points are all less than the first distance threshold, it is determined that the operation interface on the scene edge meets a preset operation interface control condition.

10. An interface control device, characterized in that: A graphical user interface is displayed through a terminal device, wherein the graphical user interface includes a game scene and an operation interface, wherein the game scene includes a map and a virtual character controlled by the terminal device, and the control device of the interface includes: a path-finding module, configured to determine a moving position of the virtual character in response to a first touch operation on the map, and control the virtual character to move toward the moving position; A judgment module, configured to obtain the position coordinates of the virtual character at each time point during the movement process, and to judge whether the operation interface corresponding to each position coordinate satisfies a preset operation interface control condition; The display module is used to control the hiding or display of the operation interface corresponding to the position coordinate when it is determined that a preset operation interface control condition is met.

11. A user terminal device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the interface control method according to any one of claims 1 to 9.

12. A machine-readable storage medium, characterized in that The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the interface control method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Virtual scene adjusting method and device in game, electronic device, and storage medium

    CN109550247A

  • Mistaken touch prevention method based on game scene, mobile terminal and storage medium

    CN109782957A