Display control method and device of interface element and electronic equipment
By dynamically adjusting the display of UI elements based on the virtual character's movement parameters and distance in online games, the problem of players having difficulty viewing scene information during rapid movement is solved, thus improving the game experience and retention rate.
Patent Information
- Application Number
- CN202510690845.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2026-11-27
AI Technical Summary
In online games, when players control their virtual characters to move too fast, the distance between the virtual characters and scene elements changes rapidly, making it difficult for players to view UI element information in a timely manner, which affects the game experience and retention rate.
By responding to the movement parameters of the controlled virtual character and its distance from scene elements, the target interface elements are dynamically determined to be displayed in the graphical user interface, ensuring that players can view information about scene elements in a timely manner, including the names, attributes, and interaction methods of scene elements within the virtual camera's field of view.
It improves the player's gaming experience during fast-paced movement, ensures that players can understand scene element information in a timely manner, and improves the game's retention rate.
Smart Images

Figure CN123167487A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game technology, and more specifically, to a method, apparatus, and electronic device for controlling the display of interface elements. Background Technology
[0002] In online games, when showcasing game scenes, corresponding user interface (UI) elements are typically displayed for certain scene locations or objects. Players can view these UI elements to understand information about the scene locations or objects, as well as the game interactions that can be performed at those locations or with respect to those objects.
[0003] To avoid overwhelming the scene with too much UI information, most games determine the number of UI elements displayed, or the amount of information conveyed by each element, based on the distance between the player-controlled virtual character and the scene's location or objects. When the distance is short, more UI elements are displayed or convey more information; when the distance is long, typically only the highest-priority information designated by the developer is displayed. However, when the player-controlled virtual character moves too quickly, the distance between the virtual character and various scene locations or objects changes very rapidly, making it difficult for the player to see the UI elements clearly. This can lead to missing necessary game information or interaction opportunities, resulting in a poor gaming experience and negatively impacting player retention. Summary of the Invention
[0004] In view of this, the purpose of the present invention is to provide a method, device and electronic device for displaying and controlling interface elements, so that when players control the controlled virtual character to move at a relatively fast speed, they can also view the element information of scene elements in a timely manner, perform relevant operations in a timely manner, improve the player's game experience and improve the game retention rate.
[0005] In a first aspect, embodiments of the present invention provide a method for controlling the display of interface elements. The method includes: responding to a movement control operation for a controlled virtual character, controlling the controlled virtual character to move in a game scene; the game scene includes at least one scene element; the scene element is associated with a plurality of preset interface elements; the interface elements are used to indicate element information of the scene element; in response to a first scene element in at least one scene element being located within the current game scene range displayed in the graphical user interface, determining a target interface element from the plurality of interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and displaying the target interface element in the graphical user interface.
[0006] Secondly, embodiments of the present invention provide a display control device for interface elements, the device comprising: a movement control module, configured to respond to a movement control operation for a controlled virtual character and control the controlled virtual character to move in a game scene; the game scene includes at least one scene element; the scene element is associated with a plurality of preset interface elements; the interface elements are used to indicate element information of the scene element; and an interface element display module, configured to, in response to a first scene element among at least one scene element being located within the current game scene range displayed in the graphical user interface, determine a target interface element from the plurality of interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and display the target interface element in the graphical user interface.
[0007] Thirdly, embodiments of the present invention provide an electronic 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-described method for displaying interface elements.
[0008] Fourthly, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the above-described method for displaying interface elements.
[0009] The embodiments of the present invention bring the following beneficial effects:
[0010] The aforementioned method, apparatus, and electronic device for displaying interface elements respond to movement control operations on a controlled virtual character, controlling the movement of the controlled virtual character within a game scene. The game scene includes at least one scene element; each scene element is associated with multiple preset interface elements; the interface elements indicate the element information of the scene element. Responding to a first scene element being located within the current game scene displayed in the graphical user interface, based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, a target interface element is determined from the multiple interface elements associated with the first scene element, and the target interface element is displayed in the graphical user interface. This method allows players to view the element information of scene elements promptly while controlling the controlled virtual character to move at a relatively high speed, enabling timely operations and improving the player's gaming experience and game retention rate.
[0011] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0012] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0013] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0014] Figure 1 A flowchart illustrating a method for controlling the display of interface elements according to an embodiment of the present invention;
[0015] Figure 2 A schematic diagram of the structure of a display control device for interface elements provided in an embodiment of the present invention;
[0016] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] In online games, UI elements within the environment are primarily used to indicate to players that there are interactive gameplay elements available. Due to the high degree of freedom and diverse gameplay types in open-world games, to encourage players to explore the world, most gameplay elements are displayed as UI elements above the heads of non-player characters (NPCs) or on the ground, making it easy for players to see the available gameplay as they pass by. Most UI elements display a wealth of information, including the gameplay name, character name, and character identity.
[0019] To avoid excessive UI information in the scene, most open-world games categorize scene UI information, determining the amount of content displayed based on the distance between the player-controlled virtual character and a scene element. The closer the virtual character is to a scene element, the more information is displayed for that element; conversely, when the distance is greater, only the information deemed highest priority by the developers is shown.
[0020] However, when the player controls the virtual character to move too fast, the distance between the virtual character and scene elements changes very quickly, which may make it difficult for the player to see the UI information in the scene clearly, making it difficult to plan game strategies in real time and perform corresponding game operations in a timely manner.
[0021] Based on this, embodiments of the present invention provide a method, apparatus, and electronic device for controlling the display of interface elements, which can be applied to scenarios where virtual characters explore game scenes.
[0022] The method for controlling the display of interface elements in one embodiment of this invention can run on a local terminal device or a server. When the method for controlling the display of interface elements runs on a server, it can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and client devices.
[0023] In an optional implementation, various cloud applications, such as cloud gaming, can 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 game program and the game screen presentation are separated. The storage and execution of the display control methods for interface elements are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0024] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0025] See Figure 1First, a method for controlling the display of interface elements provided by an embodiment of the present invention will be introduced. This method includes the following steps:
[0026] Step S102: Respond to the movement control operation for the controlled virtual character and control the controlled virtual character to move in the game scene; the game scene includes at least one scene element; the scene element is associated with multiple preset interface elements; the interface elements are used to indicate the element information of the scene element.
[0027] In games, the game scene can typically be displayed from either a first-person or third-person perspective. In both cases, the controlled virtual character is usually tethered to a virtual camera. The first-person perspective is typically viewed from the player's subjective point of view, which can be considered as the player viewing the game scene through the eyes of the controlled virtual character. In this case, the virtual camera can be considered to be positioned at the eyes of the controlled virtual character. The third-person perspective is typically a view from behind the controlled virtual character, meaning the virtual camera is tethered to the upper rear of the controlled virtual character. In this case, the virtual camera also films in the direction of the controlled virtual character's field of vision, but the filmed game scene includes the controlled virtual character itself or a portion of the controlled virtual character.
[0028] Players typically use a virtual joystick or the joystick on a game controller to control the movement of a virtual character within the game environment. Players can usually control the direction and speed of the virtual character's movement. Under the player's control, the virtual character moves within the game environment in the corresponding direction and speed.
[0029] As the controlled virtual character's position changes, its field of view will also change. During the controlled virtual character's movement, players can usually adjust the field of view to change its direction, which will also change the virtual camera's shooting direction and alter the game scene displayed in the graphical user interface.
[0030] The game scene in which the controlled virtual character resides can include one or more scene elements. Scene elements can be a specific location within the scene, or a non-living object placed at that location, such as a building or tree. They can also be moving objects within the game scene, such as a non-player character controlled by the game system, or a player-controlled virtual character. The specific settings can be configured according to requirements and are not limited here. As the controlled virtual character moves, the distance between the scene elements and the controlled virtual character will typically change.
[0031] Scene elements are typically associated with multiple pre-defined interface elements. Interface elements can be icons, interactive controls, windows, etc. Interface elements can indicate the name, attributes, and interactive behaviors of scene elements. Different interface elements of a scene element can indicate different information about that scene element. For example, the name and attributes of a scene element may have corresponding icons, and its interactive behaviors may have corresponding interactive controls. The information indicated by multiple interface elements of a scene element can also gradually increase. For example, the first icon for a certain NPC may include the NPC's name, the second icon may include the NPC's name and attributes, and the NPC may also have a first window as an interface element, displaying the NPC's name, attributes, and how to interact with the NPC, specifically, "bow to the NPC."
[0032] In step S104, in response to the fact that the first scene element in at least one scene element is located within the current game scene displayed in the graphical user interface, a target interface element is determined from multiple interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and the target interface element is displayed in the graphical user interface.
[0033] When the scope of the game scene captured by the virtual camera changes, or the position of movable scene elements within the game scene changes, one or more scene elements will enter the current game scene area displayed in the graphical user interface. For ease of reference, the scene elements located within the current game scene area will be referred to as "first scene elements." There can be one or more first scene elements.
[0034] The closer the controlled virtual character is to scene elements, the stronger the player's intention to understand the scene elements' information, and the more scene element information needs to be displayed. However, the faster the controlled virtual character moves, the shorter the time scene elements remain within the controlled virtual character's field of vision. To ensure that players understand the scene element information in a timely manner, more of the scene element's information needs to be displayed as early as possible.
[0035] The aforementioned movement parameters may include only movement speed. Even when the controlled virtual character moves quickly, and the distance between the scene elements and the controlled virtual character is large, the interface element with more indicated element information in the first scene's interface elements may be selected as the target interface element, or the interface element of the first scene may be selected as the target interface element and displayed in the graphical user interface.
[0036] For example, when the speed of the controlled virtual character is less than 10, if the distance between the controlled virtual character and the first scene element is greater than 10, only the first identifier of the first scene element is displayed to indicate its name; if the distance between the controlled virtual character and the first scene element is less than or equal to 10, both the first and second identifiers of the first scene element are displayed, where the second identifier indicates the attribute of the first scene element. Conversely, when the speed of the controlled virtual character is greater than or equal to 10, if the distance between the controlled virtual character and the first scene element is greater than 20, only the first identifier of the first scene element is displayed; if the distance between the controlled virtual character and the first scene element is less than or equal to 20, both the first and second identifiers of the first scene element are displayed.
[0037] When the first scene element can also move within the game scene, the target interface element can be determined from multiple interface elements associated with the first scene element based on the relative speed between the controlled virtual character and the first scene element, as well as the distance between the first scene element and the controlled virtual character. For example, when the relative speed between the controlled virtual character and the first scene element is 0, the influence of speed can be ignored, and the target interface element can be determined solely based on the distance between them.
[0038] The aforementioned movement speed can also include both movement speed and movement direction. The movement speed and direction of the controlled virtual character typically alter the range of the game scene captured by the virtual camera, i.e., the current scene range displayed in the graphical user interface (GUI). As the controlled virtual character moves, the range of the game scene displayed in the GUI changes accordingly, and may not include the first scene element. Based on the controlled virtual character's movement speed, movement direction, and the position of the first scene element in the game scene, the duration for which the scene range displayed in the GUI still includes the first scene element can be estimated. Then, based on this duration, the target interface element is determined from multiple interface elements associated with the first scene element. Generally, the shorter the duration, the more element information the target interface element indicates about the first scene element.
[0039] For example, if the scene range displayed in the graphical user interface still includes the duration of the first scene element which is greater than 1 minute, then only the first identifier of the first scene element is displayed to indicate the name of the first scene element; if the scene range displayed in the graphical user interface still includes the duration of the first scene element which is less than or equal to 1 minute, then the first identifier and the second identifier of the first scene element are displayed, wherein the second identifier indicates the attribute of the first scene element; if the scene range displayed in the graphical user interface still includes the duration of the first scene element which is less than or equal to 30 seconds, then the first identifier, the second identifier, and the interactive control of the first scene element are displayed, wherein the interactive identifier is used to trigger interactive behavior with the first scene element.
[0040] Once the target interface element is identified, it can typically be displayed at the top or bottom of the first scene element. Alternatively, it can be displayed at the location of each first scene element within the map, which includes the controlled virtual character's field of vision. The specific settings can be configured according to requirements and are not limited here.
[0041] The aforementioned method for controlling the display of interface elements responds to movement control operations on a controlled virtual character, controlling the movement of the controlled virtual character within a game scene. The game scene includes at least one scene element; each scene element is associated with multiple preset interface elements; the interface elements indicate the element information of the scene element. Responding to a first scene element being located within the current game scene displayed in the graphical user interface, based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, a target interface element is determined from the multiple interface elements associated with the first scene element, and the target interface element is displayed in the graphical user interface. This method allows players to view the element information of scene elements promptly even when controlling the controlled virtual character to move at a relatively fast speed, enabling them to perform relevant operations in a timely manner, thus improving the player's gaming experience and increasing game retention.
[0042] The following embodiments provide an implementation method for determining a target interface element from multiple interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and displaying the target interface element in a graphical user interface.
[0043] In practical applications, movement parameters typically include movement speed. Multiple movement speed ranges can be preset. These ranges do not overlap. For example, multiple movement speed ranges can be set to [0,10), [10,50), and [50,∞), respectively.
[0044] Each movement speed range has multiple corresponding distance ranges; each distance range has corresponding information about the element to be displayed. There is no overlap between any two distance ranges corresponding to each movement speed range. For example, multiple distance ranges set for a movement speed range of [0,10) can be [0,5), [5,10), [10,∞); multiple distance ranges set for a movement speed range of [10,50) can be [0,10), [10,20), [20,∞).
[0045] The amount of information about the element to be displayed within a given distance range is negatively correlated with the lower limit of the distance range. That is, the closer the distance, the greater the amount of information about the element to be displayed. This element information can include the basic attributes of the scene element, the interaction methods for the scene element, etc. Basic attributes can include the name and profession of the scene element. For distance ranges [0,5), [5,10), and [10,,∞), the corresponding information about the element to be displayed can be element name plus element attributes plus interaction methods, element name plus element attributes, and element name, respectively.
[0046] In practical implementation, a target movement speed range needs to be determined from multiple preset movement speed ranges based on the movement speed of the controlled virtual character; wherein the movement speed of the controlled virtual character falls within the target movement speed range. For example, if the movement speed of the controlled virtual character is 20, then the target movement speed range is [10, 50). As mentioned above, each movement speed range has multiple corresponding distance ranges, and the target movement speed range also has multiple corresponding distance ranges. Then, based on the multiple distance ranges corresponding to the target movement speed range and the distance between the first scene element and the controlled virtual character, the target interface element is determined from multiple interface elements associated with the first scene element.
[0047] In practical implementation, the target distance range needs to be determined from multiple distance ranges based on the distance between the first scene element and the controlled virtual character. The distance between the first scene element and the controlled virtual character must fall within the target distance range. For example, if the distance between the first scene element and the controlled virtual character is 8, then the target distance range is [0, 10). Then, based on the information of the element to be displayed corresponding to the target distance range, the target interface element is determined from multiple interface elements associated with the first scene element. The information of the element to be displayed corresponding to the target distance range [0, 10) is the element name plus element attributes plus interaction mode. Therefore, the interface element that indicates the element name plus element attributes plus interaction mode among the multiple interface elements associated with the first scene element can be taken as the target interface element.
[0048] In fact, it can be seen that the amount of information of the element indicated by the target interface element is positively correlated with the movement speed of the controlled virtual character, and negatively correlated with the distance between the first scene element and the controlled virtual character.
[0049] Once the target interface element is determined, it can be displayed around the first scene element in the graphical user interface.
[0050] This invention also provides another method for controlling the display of interface elements, which... Figure 1 This method is implemented based on the method shown. Taking a game based on a virtual open world as an example, when the player controls the controlled virtual character to move at different speeds, the content information displayed in the scene UI is linked to the movement speed, ensuring that the controlled virtual character can see different levels of information in the scene UI in a timely manner even when moving at high speeds.
[0051] This method prioritizes classifying the movement speed of the controlled virtual character (hereinafter referred to as "character"), and determines how much content to display in the current scene UI based on the movement speed and distance. The method specifically includes the following steps:
[0052] 1. Calculate the character's movement speed V in real time.
[0053] 2. Determine which preset range the character's movement speed falls within (equivalent to the "movement speed range" mentioned above).
[0054] 3. Determine the distance range mapped to this speed range (equivalent to the "distance range" mentioned above).
[0055] 4. Calculate the distance between the character and scene points (equivalent to the "scene elements" mentioned above) in real time.
[0056] 5. Display the scene UI information to be displayed within the distance range.
[0057] This method determines the content displayed in the UI of a scene location based on the player's movement speed and the distance between the player and the scene location. The distance range for information display is determined by the player's current movement speed, which is also calculated; both movement speed and distance parameters affect the amount of information displayed in the scene location UI.
[0058] Assuming the movement speed is X, the distance between the player and a point in the scene is Y, and the displayed information is Z, first, we define multiple movement speed intervals, such as [X1min, X1max], [X2min, X2max]. Within each Xn interval, Yn also has its own parameters [Y1min, Y1max], [Y2min, Y2max]. Each Yn interval contains corresponding information Zn; for example, when the distance is Y1min, Z1+Z2 is displayed, and when the distance is Y1max, Z1 is displayed.
[0059] For example, two player speed ranges are defined: [150m / s, 100m / s] and [100m / s, 0m / s]. These ranges correspond to distances in meters: [50, 10], [10, 5], [5, 0], and [10, 5], [5, 2], [2, 0], respectively. These three distance ranges correspond to displaying the gameplay name, displaying the gameplay name and character name, and displaying the gameplay name, character name, and character class, respectively.
[0060] At this moment, the player's movement speed is 126m / s and the distance to the scene point is 3 meters. The information displayed by the interface elements that the player sees is the gameplay name and the character name.
[0061] This method avoids players not being able to see the scene UI information due to excessively fast movement speed. It combines the distance between the character and game elements with the influence of the character's movement speed parameter, allowing players to see all the scene UI information regardless of their movement speed and not miss any gameplay.
[0062] For the above method embodiments, see Figure 2 The embodiment of the present invention shown provides a display control device for interface elements, the device comprising:
[0063] The movement control module 202 is used to respond to movement control operations on the controlled virtual character and control the controlled virtual character to move in the game scene; the game scene includes at least one scene element; the scene element is associated with multiple preset interface elements; the interface elements are used to indicate the element information of the scene element;
[0064] The interface element display module 204 is used to respond to the fact that a first scene element in at least one scene element is located within the current game scene displayed in the graphical user interface, and to determine a target interface element from multiple interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and to display the target interface element in the graphical user interface.
[0065] The aforementioned interface element display control device responds to movement control operations on a controlled virtual character, controlling the movement of the controlled virtual character within a game scene. The game scene includes at least one scene element; each scene element is associated with multiple preset interface elements; the interface elements indicate the element information of the scene element. Responding to a first scene element being located within the current game scene displayed in the graphical user interface, based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, a target interface element is determined from the multiple interface elements associated with the first scene element, and the target interface element is displayed in the graphical user interface. This method allows players to view the element information of scene elements promptly while controlling the controlled virtual character to move at a relatively fast speed, enabling them to perform relevant operations in a timely manner, thus improving the player's gaming experience and increasing game retention.
[0066] The aforementioned movement parameters include movement speed; the interface element display module is also used to: determine a target movement speed range from a preset range of multiple movement speeds based on the movement speed of the controlled virtual character; the target movement speed range has a corresponding range of multiple distances; the distance range has a corresponding element information to be displayed; and determine a target interface element from a range of multiple interface elements associated with the first scene element based on the multiple distances corresponding to the target movement speed range and the distance between the first scene element and the controlled virtual character.
[0067] The aforementioned interface element display module is also used to: determine the target distance range from multiple distance ranges corresponding to the target movement speed range based on the distance between the first scene element and the controlled virtual character; and determine the target interface element from multiple interface elements associated with the first scene element based on the element information to be displayed corresponding to the target distance range.
[0068] There is no overlap between any two of the above distance ranges; the amount of information of the element to be displayed corresponding to the distance range is negatively correlated with the lower limit of the distance range.
[0069] The aforementioned interface element display module is also used to: display target interface elements around the first scene element in the graphical user interface.
[0070] The amount of information indicated by the target interface element is positively correlated with the movement speed of the controlled virtual character and negatively correlated with the distance between the first scene element and the controlled virtual character.
[0071] The above element information includes the basic attributes of the scene elements, and / or the interaction methods for the scene elements.
[0072] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the above-mentioned display control method for interface elements. Specifically:
[0073] In response to a movement control operation targeting a controlled virtual character, the controlled virtual character is controlled to move within a game scene. The game scene includes at least one scene element. The scene element is associated with multiple preset interface elements. The interface elements are used to indicate element information of the scene element. In response to a first scene element being located within the current game scene displayed in the graphical user interface, a target interface element is determined from the multiple interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and the target interface element is displayed in the graphical user interface.
[0074] The above method allows players to view the element information of scene elements in a timely manner while controlling the virtual character to move at a relatively fast speed, and to perform relevant operations in a timely manner, thereby improving the player's gaming experience and increasing the game's retention rate.
[0075] Optionally, the step of determining the target interface element from multiple interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character includes: determining a target movement speed range from multiple preset movement speed ranges according to the movement speed of the controlled virtual character; the target movement speed range has multiple corresponding distance ranges; the distance range has corresponding element information to be displayed; and determining the target interface element from multiple interface elements associated with the first scene element based on the multiple distance ranges corresponding to the target movement speed range and the distance between the first scene element and the controlled virtual character.
[0076] Optionally, the step of determining the target interface element from multiple interface elements associated with the first scene element based on multiple distance ranges and the distance between the first scene element and the controlled virtual character includes: determining the target distance range from multiple distance ranges corresponding to the target movement speed range based on the distance between the first scene element and the controlled virtual character; and determining the target interface element from multiple interface elements associated with the first scene element based on the element information to be displayed corresponding to the target distance range.
[0077] Optionally, there is no overlap between any two of the above distance ranges; the amount of information of the element to be displayed corresponding to the distance range is negatively correlated with the lower limit of the distance range.
[0078] Optionally, the above step of displaying the target interface element in the graphical user interface includes: displaying the target interface element around the first scene element in the graphical user interface.
[0079] Optionally, the amount of information in the element information indicated by the target interface element is positively correlated with the movement speed of the controlled virtual character and negatively correlated with the distance between the first scene element and the controlled virtual character.
[0080] Optionally, the above element information includes the basic attributes of the scene element, and / or the interaction methods for the scene element.
[0081] See Figure 3 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-mentioned display control method for interface elements.
[0082] Furthermore, Figure 3 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0083] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0084] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 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 methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0085] This embodiment also provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the above-mentioned display control method for interface elements.
[0086] The present invention provides a method, apparatus, and electronic device for controlling the display of interface elements, comprising a computer-readable storage medium storing program code, wherein the instructions included in the program code can be used to execute the methods described in the preceding method embodiments. Specifically, as follows:
[0087] In response to a movement control operation targeting a controlled virtual character, the controlled virtual character is controlled to move within a game scene. The game scene includes at least one scene element. The scene element is associated with multiple preset interface elements. The interface elements are used to indicate element information of the scene element. In response to a first scene element being located within the current game scene displayed in the graphical user interface, a target interface element is determined from the multiple interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and the target interface element is displayed in the graphical user interface.
[0088] The above method allows players to view the element information of scene elements in a timely manner while controlling the virtual character to move at a relatively fast speed, and to perform relevant operations in a timely manner, thereby improving the player's gaming experience and increasing the game's retention rate.
[0089] Optionally, the step of determining the target interface element from multiple interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character includes: determining a target movement speed range from multiple preset movement speed ranges according to the movement speed of the controlled virtual character; the target movement speed range has multiple corresponding distance ranges; the distance range has corresponding element information to be displayed; and determining the target interface element from multiple interface elements associated with the first scene element based on the multiple distance ranges corresponding to the target movement speed range and the distance between the first scene element and the controlled virtual character.
[0090] Optionally, the step of determining the target interface element from multiple interface elements associated with the first scene element based on multiple distance ranges and the distance between the first scene element and the controlled virtual character includes: determining the target distance range from multiple distance ranges corresponding to the target movement speed range based on the distance between the first scene element and the controlled virtual character; and determining the target interface element from multiple interface elements associated with the first scene element based on the element information to be displayed corresponding to the target distance range.
[0091] Optionally, there is no overlap between any two of the above distance ranges; the amount of information of the element to be displayed corresponding to the distance range is negatively correlated with the lower limit of the distance range.
[0092] Optionally, the above step of displaying the target interface element in the graphical user interface includes: displaying the target interface element around the first scene element in the graphical user interface.
[0093] Optionally, the amount of information in the element information indicated by the target interface element is positively correlated with the movement speed of the controlled virtual character and negatively correlated with the distance between the first scene element and the controlled virtual character.
[0094] Optionally, the above element information includes the basic attributes of the scene element, and / or the interaction methods for the scene element.
[0095] See Figure 3 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the above-mentioned display control method for interface elements.
[0096] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0097] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0098] If the aforementioned functions are implemented as 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 a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0099] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the 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.
[0100] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. 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 foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for controlling the display of interface elements, characterized in that, The method includes: In response to a movement control operation on a controlled virtual character, the controlled virtual character is controlled to move within a game scene; the game scene includes at least one scene element; the scene element is associated with multiple preset interface elements; the interface elements are used to indicate element information of the scene element; In response to the first scene element being located within the current game scene displayed in the graphical user interface, a target interface element is determined from a plurality of interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and the target interface element is displayed in the graphical user interface.
2. The method according to claim 1, characterized in that, The movement parameters include movement speed; The step of determining a target interface element from multiple interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character includes: Based on the movement speed of the controlled virtual character, a target movement speed range is determined from multiple preset movement speed ranges; the target movement speed range has multiple corresponding distance ranges; the distance range has corresponding information about elements to be displayed. Based on multiple distance ranges corresponding to the target movement speed range and the distance between the first scene element and the controlled virtual character, the target interface element is determined from multiple interface elements associated with the first scene element.
3. The method according to claim 2, characterized in that, The step of determining a target interface element from multiple interface elements associated with the first scene element based on the multiple distance ranges and the distance between the first scene element and the controlled virtual character includes: Based on the distance between the first scene element and the controlled virtual character, the target distance range is determined from multiple distance ranges corresponding to the target movement speed range; Based on the information of the elements to be displayed corresponding to the target distance range, the target interface element is determined from multiple interface elements associated with the first scene element.
4. The method according to claim 2, characterized in that, There is no overlap between any two of the plurality of distance ranges; the amount of information of the element to be displayed corresponding to the distance range is negatively correlated with the lower limit of the distance range.
5. The method according to claim 1, characterized in that, The step of displaying the target interface element in the graphical user interface includes: The target interface element is displayed around the first scene element in the graphical user interface.
6. The method according to claim 1, characterized in that, The amount of information in the element information indicated by the target interface element is positively correlated with the movement speed of the controlled virtual character and negatively correlated with the distance between the first scene element and the controlled virtual character.
7. The method according to claim 1, characterized in that, The element information includes the basic attributes of the scene element, and / or the interaction method for the scene element.
8. A display control device for interface elements, characterized in that, The device includes: A movement control module is used to respond to movement control operations on a controlled virtual character and control the controlled virtual character to move within a game scene; the game scene includes at least one scene element; the scene element is associated with multiple preset interface elements; the interface elements are used to indicate element information of the scene element; The interface element display module is configured to, in response to a first scene element being located within the current game scene displayed in the graphical user interface, determine a target interface element from a plurality of interface elements associated with the first scene element based on the movement parameters of the controlled virtual character and the distance between the first scene element and the controlled virtual character, and display the target interface element in the graphical user interface.
9. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the display control method for interface elements according to any one of claims 1-7.
10. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the display control method for interface elements as described in any one of claims 1-7.
