Method, device and electronic equipment for controlling movement of virtual character
Patent Information
- Application Number
- CN202310990834.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2026-09-22
- Estimated Expiration
- 2043-08-07
AI Technical Summary
相关技术中,如果玩家背包中有传送道具,该传送道具可以直接显示在游戏地图上,玩家点击某一传送道具即可将玩家角色传送至该传送道具对应的传送点,但是当玩家背包中拥有较多传送道具时,游戏地图上传送道具的显示较密集,从而玩家容易误触或者无法选中特定传送道具,而且玩家难以从游戏地图中判断哪个传送道具的传送点距离目标位置最近,导致玩家角色可能需要从距离目标位置较远的传送点寻路至目标位置
[0009]本发明提供的一种虚拟角色的移动控制方法、装置和电子设备,首先在图形用户界面中显示缩略地图;进而响应针对缩略地图中的目标位置的选中操作,确定与目标位置距离最近的目标传送点,并在缩略地图中显示目标传送点对应的目标传送标识;然后响应针对目标传送标识的触发操作,将受控虚拟角色传送至目标传送点,并控制受控虚拟角色从目标传送点移动至目标位置。该方式能够根据玩家在缩略地图中选择的目标位置,自动推荐与目标位置距离最近的目标传送点,避免了玩家自主判断距离最近的传送点的误差和玩家误触传送点的现象,从而该方式能够控制受控虚拟角色快速移动至目标位置,提高了玩家游戏体验感。
Smart Images

Figure CN117101140B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game interaction design technology, and in particular to a method, device and electronic device for controlling the movement of a virtual character. Background Technology
[0002] In the game, player characters need to find their way to a target location. When the journey is long, players can use teleportation items, such as flying flags, to travel faster. In related technologies, if a player has a teleportation item in their inventory, it is displayed directly on the game map. Clicking on an item will teleport the player to its corresponding teleportation point. However, when a player has many teleportation items, the display on the game map becomes dense, making it easy for players to accidentally click on or fail to select a specific item. Furthermore, it's difficult for players to determine from the game map which teleportation point is closest to the target location, potentially requiring the player to navigate from a teleportation point farther away. Summary of the Invention
[0003] The purpose of this invention is to provide a method, device, and electronic device for controlling the movement of virtual characters, so as to automatically recommend the teleportation point closest to the target location selected by the player, reduce the player's judgment error and accidental operation, thereby improving the player's gaming experience.
[0004] In a first aspect, the present invention provides a method for controlling the movement of a virtual character, which provides a graphical user interface through a terminal device; the graphical user interface displays a portion of a game scene; the game scene includes a controlled virtual character controlled by the terminal device; the method includes: displaying a thumbnail map in the graphical user interface; in response to a selection operation on a target location in the thumbnail map, determining a target teleportation point closest to the target location, and displaying a target teleportation marker corresponding to the target teleportation point in the thumbnail map; in response to a trigger operation on the target teleportation marker, teleporting the controlled virtual character to the target teleportation point, and controlling the controlled virtual character to move from the target teleportation point to the target location.
[0005] Secondly, the present invention provides a movement control device for a virtual character, which provides a graphical user interface through a terminal device; the graphical user interface displays a portion of a game scene; the game scene includes a controlled virtual character controlled by the terminal device; the device includes: a thumbnail map display module for displaying a thumbnail map in the graphical user interface; a teleportation point determination module for responding to a selection operation on a target location in the thumbnail map, determining the target teleportation point closest to the target location, and displaying a target teleportation marker corresponding to the target teleportation point in the thumbnail map; and a movement control module for responding to a trigger operation on the target teleportation marker, teleporting the controlled virtual character to the target teleportation point, and controlling the controlled virtual character to move from the target teleportation point to the target location.
[0006] Thirdly, the present invention provides an electronic device including a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, and the processor executing the machine-executable instructions to implement the aforementioned method for controlling the movement of a virtual character.
[0007] Fourthly, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the aforementioned method for controlling the movement of a virtual character.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] This invention provides a method, device, and electronic device for controlling the movement of a virtual character. First, a thumbnail map is displayed in a graphical user interface. Then, in response to a selection operation on a target location in the thumbnail map, the nearest teleportation point is determined, and a corresponding teleportation marker is displayed on the thumbnail map. Next, in response to a trigger operation on the teleportation marker, the controlled virtual character is teleported to the target teleportation point, and the controlled virtual character is then moved from the target teleportation point to the target location. This method automatically recommends the nearest teleportation point based on the target location selected by the player on the thumbnail map, avoiding errors in the player's manual judgment of the nearest teleportation point and the phenomenon of accidental activation of teleportation points. Therefore, this method enables the controlled virtual character to move quickly to the target location, improving the player's gaming experience.
[0010] Other features and advantages of the invention will be set forth in the following description, or some features and advantages may be inferred from the description or determined without doubt, or may be learned by practicing the techniques described above.
[0011] 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
[0012] 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.
[0013] Figure 1 A flowchart illustrating a method for controlling the movement of a virtual character, as provided in an embodiment of the present invention;
[0014] Figure 2 A schematic diagram showing a movement path and target transmission identifier provided in an embodiment of the present invention;
[0015] Figure 3 A schematic diagram of the structure of a virtual character movement control device provided in an embodiment of the present invention;
[0016] Figure 4 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 embodiments 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, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0018] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.
[0019] In the game, player characters need to find their way to a target location. When the journey is long, players can use teleportation items to travel faster; these items can be flying flags. The relevant technology provides two ways to use teleportation portals:
[0020] The first method involves the player having a teleportation item in their inventory. The player needs to open their inventory, locate the nearest teleportation point to their target location from memory, then use that same item to find the nearest teleportation point on the minimap, click on it, and the player's character will be teleported to the target location. They then need to reopen the minimap and click on the target location again to continue auto-pathfinding. This method requires multiple clicks and requires the player to remember the corresponding teleportation item and teleportation point, placing a heavy memory burden on them.
[0021] The second method involves teleportation items in the player's inventory. These items are displayed directly on the game map, allowing the player to teleport to their designated point simply by clicking on the item. This eliminates the need to close the map and reopen the inventory. However, when a player has multiple teleportation items, the map becomes densely packed, increasing the risk of accidental activation or failure to select a specific item. Furthermore, terrain variations can cause discrepancies between the player's actual traversal distance and the perceived straight-line distance, making it difficult to determine which teleportation point offers the shortest route to their destination. Additionally, when the target location is a specific coordinate or an NPC (not a player character), clicking a teleportation item on the map requires reopening the map and selecting the coordinates or NPC for auto-pathfinding, complicating the interaction.
[0022] To address the aforementioned issues, embodiments of the present invention provide a method, apparatus, and electronic device for controlling the movement of virtual characters. This technology can be applied to scenarios where virtual characters move rapidly in games, especially to scenarios where virtual characters automatically navigate.
[0023] In one embodiment of this disclosure, the virtual character movement control method can run on a local terminal device or a server. When the virtual character movement control method runs 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.
[0024] 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 virtual character's movement control methods 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.
[0025] 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.
[0026] In one possible implementation, embodiments of the present invention provide a method for controlling the movement of a virtual character, which provides a graphical user interface (GUI) through a terminal device. The terminal device can be either a local terminal device as mentioned above, or a client device in a cloud interaction system as mentioned above. The GUI displays a portion of a game scene, which includes a controlled virtual character controlled by the terminal device; such as... Figure 1 As shown, the method includes the following specific steps:
[0027] Step S102: Display the thumbnail map in the graphical user interface.
[0028] In practice, the specific actions players take to display a thumbnail map in the graphical user interface (GUI) can be determined based on development needs or player settings. For example, clicking the map display control in the GUI, clicking a specific area within the GUI, or clicking the thumbnail display icon will display a thumbnail map in the GUI. This thumbnail map shows a scaled-down version of the game map, containing virtual buildings, virtual vegetation, virtual roads, and other virtual objects. Players can see a panoramic view of the game map, estimate the distance between their controlled virtual character and the target location, and make strategic deployments based on the thumbnail map.
[0029] Step S104: In response to the selection operation of the target location in the thumbnail map, determine the target teleportation point that is closest to the target location, and display the target teleportation marker corresponding to the target teleportation point in the thumbnail map.
[0030] In practice, the specific operation of the selection action can be determined according to development needs. For example, the selection action can be a click, long press, or selection by drawing a box on a target location in the thumbnail map. The target location can be any location in the thumbnail map. This target location can be the location of a non-player character (NPC), a coordinate on the game map, or the location of a virtual object, etc. The specific location can be determined based on the player's actions.
[0031] When a player selects a target location on the thumbnail map, the system will determine the nearest teleportation point from among the player's available teleportation items and recommend that point to the player. This recommendation is achieved by displaying the target teleportation point's corresponding teleportation icon on the thumbnail. The teleportation items are used to teleport the controlled virtual character to their designated teleportation point. The target teleportation icon can be displayed on the target teleportation point itself or anywhere on the thumbnail, depending on development requirements. The display format of the target teleportation icon can also be determined based on development needs or player settings.
[0032] Step S106: In response to the trigger operation for the target teleportation identifier, the controlled virtual character is teleported to the target teleportation point, and the controlled virtual character is controlled to move from the target teleportation point to the target location.
[0033] The aforementioned triggering action for the target teleportation marker can be a player's click, long press, or swipe action on the marker. When the player triggers the target teleportation marker, the thumbnail map closes, and the controlled virtual character is teleported to the target teleportation point. Then, in the game scene displayed in the graphical user interface, the controlled virtual character automatically navigates from the target teleportation point to the target location. This method requires no additional player intervention; it automatically navigates to the target location as the controlled virtual character teleports to the target teleportation point. This reduces player intervention, ensures that teleportation does not interrupt the pathfinding process, and thus improves the player's gaming experience.
[0034] This invention provides a method for controlling the movement of a virtual character. First, a thumbnail map is displayed in a graphical user interface. Then, in response to a selection operation on a target location in the thumbnail map, the nearest teleportation point is determined, and a corresponding teleportation marker is displayed on the thumbnail map. Next, in response to a trigger operation on the teleportation marker, the controlled virtual character is teleported to the target teleportation point, and the controlled virtual character moves from the teleportation point to the target location. This method automatically recommends the nearest teleportation point based on the target location selected by the player on the thumbnail map, avoiding errors in the player's manual judgment of the nearest teleportation point and accidental activation of teleportation points. Therefore, this method enables the controlled virtual character to move quickly to the target location, improving the player's gaming experience.
[0035] The following examples focus on describing how the target transmission point is determined.
[0036] Specifically, the process of determining the target teleportation point closest to the target location in response to a selection operation on the target location in the thumbnail map may include: in response to a selection operation on the target location in the thumbnail map, determining the teleportation item possessed by the controlled virtual character, and the teleportation point corresponding to the teleportation item; wherein, the teleportation item is used to teleport the controlled virtual character to the corresponding teleportation point; calculating the distance between the teleportation point corresponding to the teleportation item and the target location, and determining the teleportation point with the smallest distance as the target teleportation point.
[0037] In practice, the controlled virtual character's inventory contains teleportation items, which are the teleportation items possessed by the controlled virtual character. A controlled virtual character can possess one or more teleportation items, each pre-configured with a teleportation point, which is a location on the game map. The teleportation point configured for each virtual item can be set by the player or automatically configured by the system, depending on the game rules. These teleportation items are items that can teleport the controlled virtual character to the corresponding teleportation point. The display style and function of these teleportation items can be determined according to the game rules; for example, the teleportation item could be a game board or a teleportation location point.
[0038] When a player selects a target location on the thumbnail map, the system calculates the distance between the teleportation point corresponding to each teleportation item possessed by the controlled virtual character and the target location. The teleportation point with the shortest distance is then selected as the target teleportation point. This target teleportation point is the closest recommended teleportation point to the target location. Compared to the player's visual judgment of the nearest teleportation point, this method quickly and accurately determines the target teleportation point and reduces the player's operational burden.
[0039] In one specific embodiment, the distance between the teleportation point corresponding to the aforementioned teleportation item and the target location includes the length of the movement route taken by the controlled virtual character from the teleportation point to the target location. Specifically, since virtual buildings, virtual vegetation, etc., are set on the terrain of the game map, the distance between the teleportation point corresponding to the teleportation item and the target location is generally not a straight-line distance, but rather the length of the movement route taken by the controlled virtual character from the teleportation point to the target location on the game map. This movement route avoids immovable virtual objects on the game map and is the movement route of the controlled virtual character on virtual roads; this movement route is usually curved.
[0040] In practical applications, the straight-line distance between the teleportation point corresponding to the teleportation item and the target location may be relatively short, but the route length for the controlled virtual character to move from the teleportation point corresponding to the teleportation item to the target location may be relatively long. In order to minimize the movement route of the controlled virtual character, the teleportation point with the shortest route length needs to be determined as the target teleportation point to be recommended to the player. This allows the controlled virtual character to be controlled to quickly teleport to the target teleportation point and automatically find its way to the target location.
[0041] After identifying the nearest teleportation point to the target location, a target teleportation icon needs to be displayed on the thumbnail map. This icon is typically shown at the location of the target teleportation point. Specifically, the target teleportation icon includes at least one of the following: a teleportation point icon for the target teleportation point and an item icon for the teleportation item corresponding to the target teleportation point. That is, the target teleportation icon can include only the teleportation point icon, only the item icon for the teleportation item, or both, depending on development requirements. The display style of the teleportation point icon and the item icon can be determined according to development requirements. Different teleportation items can have the same or different item icons; different teleportation points can have the same or different teleportation point icons.
[0042] In an optional embodiment, in response to a selection operation on a target location in the thumbnail map, a movement path from the controlled virtual character's current location to the target location can also be displayed in the thumbnail map. Specifically, after the player selects a target location, a movement path automatically navigating from the controlled virtual character's current location to the target location will be immediately displayed on the thumbnail map. This allows the player to easily understand the distance between the controlled virtual character and the target location, and to control the virtual object to move to the target location according to the movement path.
[0043] like Figure 2 The diagram shown is a schematic representation of a movement path and target transmission identifier provided in an embodiment of the present invention. Figure 2 The diagram shows a thumbnail map. The location of the character model on the thumbnail map is the location of the controlled virtual character. The location of the black pentagram is the target location. The location of the black dot is the location of the target teleportation point closest to the target location. The small flag on the black dot is the target teleportation marker. Players can click on the target teleportation marker to teleport the controlled virtual character to the target teleportation point. Figure 2 The black dotted line segment displayed between the location of the controlled virtual character and the target location represents the movement path of the controlled virtual character from its current location to the target location.
[0044] The above method can intelligently recommend target teleportation points, reducing the memory burden on players. Players do not need to remember the teleportation point of each teleportation item, and there is no risk of misjudging and walking to a distant teleportation point or accidentally touching other teleportation points, thus improving the player's gaming experience.
[0045] The following examples describe how a controlled virtual character moves from a target teleportation point to a target location.
[0046] Specifically, in response to a trigger action targeting a teleportation marker, the thumbnail map is closed, and the controlled virtual character is teleported to the target teleportation point corresponding to the target teleportation marker. After the thumbnail map is closed, players can clearly see the controlled virtual character's position in the game scene, as well as its movement route.
[0047] In practice, once the controlled virtual character is teleported to the target teleportation point, the character will appear in the game scene at that point. The player can then control the controlled virtual character to automatically navigate to the target location from the target teleportation point. This method allows for automatic pathfinding simply by triggering the target teleportation point marker; the player does not need to open the thumbnail map again for automatic pathfinding. After the controlled virtual character is teleported to the target teleportation point, it can continue to automatically navigate to the target location without requiring player control. In essence, this method does not interrupt the player's pathfinding operation after teleportation; the controlled virtual character remains in an automatic pathfinding state.
[0048] In the above method, the controlled virtual character continues to automatically navigate after being teleported, without needing to open the thumbnail map again, which simplifies the player's operation and improves the player's gaming experience.
[0049] In accordance with the above-described method embodiments, this invention also provides a virtual character movement control device, which provides a graphical user interface via a terminal device; the graphical user interface displays a portion of a game scene; the game scene includes a controlled virtual character controlled via the terminal device; such as Figure 3 As shown, the device includes:
[0050] The thumbnail map display module 30 is used to display a thumbnail map in a graphical user interface.
[0051] The teleportation point determination module 31 is used to respond to the selection operation of the target location in the thumbnail map, determine the target teleportation point that is closest to the target location, and display the target teleportation identifier corresponding to the target teleportation point in the thumbnail map.
[0052] The movement control module 32 is used to respond to the trigger operation of the target teleportation marker, teleport the controlled virtual character to the target teleportation point, and control the controlled virtual character to move from the target teleportation point to the target location.
[0053] The aforementioned virtual character movement control device first displays a thumbnail map in the graphical user interface; then, in response to a selection operation on the target location in the thumbnail map, it determines the nearest target teleportation point and displays the corresponding target teleportation marker on the thumbnail map; next, in response to a trigger operation on the target teleportation marker, it teleports the controlled virtual character to the target teleportation point and controls the controlled virtual character to move from the target teleportation point to the target location. This method can automatically recommend the nearest target teleportation point based on the target location selected by the player on the thumbnail map, avoiding errors caused by the player's manual judgment of the nearest teleportation point and the phenomenon of the player accidentally touching the teleportation point. Therefore, this method can control the controlled virtual character to move quickly to the target location, improving the player's gaming experience.
[0054] Specifically, the aforementioned teleportation point determination module 31 is used to: determine the teleportation item possessed by the controlled virtual character, and the teleportation point corresponding to the teleportation item; wherein, the teleportation item is used to teleport the controlled virtual character to the corresponding teleportation point; calculate the distance between the teleportation point corresponding to the teleportation item and the target location, and determine the teleportation point corresponding to the minimum distance as the target teleportation point.
[0055] Furthermore, the distance between the teleportation point corresponding to the aforementioned teleportation item and the target location includes the length of the route taken by the controlled virtual character from the teleportation point corresponding to the teleportation item to the target location.
[0056] In a specific implementation, the aforementioned target teleportation identifier includes at least one of the following: the teleportation point identifier of the target teleportation point and the item identifier of the teleportation item corresponding to the target teleportation point.
[0057] In an optional embodiment, the above-described apparatus further includes a path display module, configured to: in response to a selection operation on a target location in a thumbnail map, display a movement path in the thumbnail map from the location of the controlled virtual character to the target location.
[0058] Furthermore, the aforementioned device also includes a map closing module for: closing the thumbnail map in response to a trigger operation for a target transmission identifier.
[0059] In a specific implementation, the aforementioned mobile control module 32 is used to: display the controlled virtual character at the target teleportation point in the game scene, and control the controlled virtual character to automatically find its way from the target teleportation point in the game scene to the target location.
[0060] The virtual character movement control device provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.
[0061] This invention also provides an electronic device, such as... Figure 4 As shown, the electronic device includes 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 aforementioned method for controlling the movement of the virtual character.
[0062] Specifically, a graphical user interface is provided through a terminal device; the graphical user interface displays a portion of the game scene; the game scene includes a controlled virtual character controlled by the terminal device; the method for controlling the movement of the virtual character includes: displaying a thumbnail map in the graphical user interface; in response to a selection operation on a target location in the thumbnail map, determining the target teleportation point closest to the target location, and displaying a target teleportation marker corresponding to the target teleportation point in the thumbnail map; in response to a trigger operation on the target teleportation marker, teleporting the controlled virtual character to the target teleportation point, and controlling the controlled virtual character to move from the target teleportation point to the target location.
[0063] The aforementioned method for controlling the movement of virtual characters can automatically recommend the nearest teleportation point based on the target location selected by the player on the miniature map. This avoids errors in the player's judgment of the nearest teleportation point and the phenomenon of the player accidentally touching a teleportation point. As a result, this method can control the controlled virtual character to move quickly to the target location, improving the player's gaming experience.
[0064] In an optional embodiment, the step of determining the target teleportation point closest to the target location includes: determining the teleportation item possessed by the controlled virtual character and the teleportation point corresponding to the teleportation item; wherein the teleportation item is used to teleport the controlled virtual character to the corresponding teleportation point; calculating the distance between the teleportation point corresponding to the teleportation item and the target location, and determining the teleportation point corresponding to the minimum distance as the target teleportation point.
[0065] In an optional embodiment, the distance between the teleportation point corresponding to the teleportation prop and the target location includes the length of the route taken by the controlled virtual character from the teleportation point corresponding to the teleportation prop to the target location.
[0066] In an optional embodiment, the target teleportation identifier includes at least one of the following: a teleportation point identifier for the target teleportation point and an item identifier for the teleportation item corresponding to the target teleportation point.
[0067] In an optional embodiment, the method further includes: in response to a selection operation on a target location in a thumbnail map, displaying a movement path from the location of the controlled virtual character to the target location in the thumbnail map.
[0068] In an optional embodiment, the method further includes: closing the thumbnail map in response to a triggering operation targeting the transmission identifier.
[0069] In an optional embodiment, the step of controlling the controlled virtual character to move from the target teleportation point to the target location includes: displaying the controlled virtual character at the target teleportation point in the game scene, and controlling the controlled virtual character to automatically find its way from the target teleportation point in the game scene to the target location.
[0070] Furthermore, Figure 4 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 101, the communication interface 103 and the memory 100 connected via the bus 102.
[0071] The memory 100 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 4 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.
[0072] Processor 101 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 101 or by instructions in software form. Processor 101 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can 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 can 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 100, and processor 101 reads information from memory 100 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0073] This invention also provides a computer-readable storage medium storing computer-executable instructions. When these computer-executable instructions are invoked and executed by a processor, they cause the processor to implement the aforementioned virtual character movement control method. For specific implementation details, please refer to the method embodiments, which will not be repeated here.
[0074] Specifically, a graphical user interface is provided through a terminal device; the graphical user interface displays a portion of the game scene; the game scene includes a controlled virtual character controlled by the terminal device; the method for controlling the movement of the virtual character includes: displaying a thumbnail map in the graphical user interface; in response to a selection operation on a target location in the thumbnail map, determining the target teleportation point closest to the target location, and displaying a target teleportation marker corresponding to the target teleportation point in the thumbnail map; in response to a trigger operation on the target teleportation marker, teleporting the controlled virtual character to the target teleportation point, and controlling the controlled virtual character to move from the target teleportation point to the target location.
[0075] The aforementioned method for controlling the movement of virtual characters can automatically recommend the nearest teleportation point based on the target location selected by the player on the miniature map. This avoids errors in the player's judgment of the nearest teleportation point and the phenomenon of the player accidentally touching a teleportation point. As a result, this method can control the controlled virtual character to move quickly to the target location, improving the player's gaming experience.
[0076] In an optional embodiment, the step of determining the target teleportation point closest to the target location includes: determining the teleportation item possessed by the controlled virtual character and the teleportation point corresponding to the teleportation item; wherein the teleportation item is used to teleport the controlled virtual character to the corresponding teleportation point; calculating the distance between the teleportation point corresponding to the teleportation item and the target location, and determining the teleportation point corresponding to the minimum distance as the target teleportation point.
[0077] In an optional embodiment, the distance between the teleportation point corresponding to the teleportation prop and the target location includes the length of the route taken by the controlled virtual character from the teleportation point corresponding to the teleportation prop to the target location.
[0078] In an optional embodiment, the target teleportation identifier includes at least one of the following: a teleportation point identifier for the target teleportation point and an item identifier for the teleportation item corresponding to the target teleportation point.
[0079] In an optional embodiment, the method further includes: in response to a selection operation on a target location in a thumbnail map, displaying a movement path from the location of the controlled virtual character to the target location in the thumbnail map.
[0080] In an optional embodiment, the method further includes: closing the thumbnail map in response to a triggering operation targeting the transmission identifier.
[0081] In an optional embodiment, the step of controlling the controlled virtual character to move from the target teleportation point to the target location includes: displaying the controlled virtual character at the target teleportation point in the game scene, and controlling the controlled virtual character to automatically find its way from the target teleportation point in the game scene to the target location.
[0082] 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 this invention, essentially, or the part that contributes to the prior art, or a portion 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, a terminal device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this 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.
[0083] 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.
[0084] Finally, it should be noted that the above-described 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 movement of a virtual character, characterized in that, A graphical user interface is provided through the terminal device; The graphical user interface displays some game scenes; The game scene includes a controlled virtual character controlled via the terminal device; the method includes: A thumbnail map is displayed in the graphical user interface; In response to a selection operation on a target location in the thumbnail map, determine the target teleportation point closest to the target location and display the target teleportation point corresponding to the target teleportation point in the thumbnail map; In response to a trigger operation for the target teleportation identifier, the controlled virtual character is teleported to the target teleportation point, and the controlled virtual character is controlled to move from the target teleportation point to the target location.
2. The method according to claim 1, characterized in that, The step of determining the target teleportation point closest to the target location includes: Identify the teleportation item possessed by the controlled virtual character, and the teleportation point corresponding to the teleportation item; wherein, the teleportation item is used to teleport the controlled virtual character to the corresponding teleportation point; Calculate the distance between the teleportation point corresponding to the teleportation item and the target location, and determine the teleportation point corresponding to the minimum distance as the target teleportation point.
3. The method according to claim 2, characterized in that, The distance between the teleportation point corresponding to the teleportation item and the target location includes the length of the route taken by the controlled virtual character from the teleportation point corresponding to the teleportation item to the target location.
4. The method according to claim 1, characterized in that, The target teleportation identifier includes at least one of the following: the teleportation point identifier of the target teleportation point and the item identifier of the teleportation item corresponding to the target teleportation point.
5. The method according to claim 1, characterized in that, The method further includes: In response to a selection operation on a target location in the thumbnail map, a movement path from the location of the controlled virtual character to the target location is displayed in the thumbnail map.
6. The method according to claim 1, characterized in that, The method further includes: In response to a trigger operation targeting the target transmission identifier, the thumbnail map is closed.
7. The method according to claim 1, characterized in that, The step of controlling the controlled virtual character to move from the target teleportation point to the target location includes: The controlled virtual character is displayed at the target teleportation point in the game scene, and the controlled virtual character is controlled to automatically find its way from the target teleportation point in the game scene to the target location.
8. A movement control device for a virtual character, characterized in that, A graphical user interface is provided through the terminal device; The graphical user interface displays some game scenes; The game scene includes a controlled virtual character controlled via the terminal device; the device includes: A thumbnail map display module is used to display a thumbnail map in the graphical user interface; The teleportation point determination module is used to respond to the selection operation of the target location in the thumbnail map, determine the target teleportation point that is closest to the target location, and display the target teleportation identifier corresponding to the target teleportation point in the thumbnail map; The movement control module is used to respond to a trigger operation for the target teleportation identifier, teleport the controlled virtual character to the target teleportation point, and control the controlled virtual character to move from the target teleportation point to the target location.
9. An electronic device, characterized in that, The electronic 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 movement control method for the virtual character according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the movement control method for a virtual character as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Location-based messaging system
US20200078666A1
Path searching method and apparatus based on game scene, device and medium
WO2022127258A1