Path guiding method and device, electronic equipment, computer readable storage medium and computer program product
By generating target marks in virtual scenes and synchronously generating path guidance information, the problem of inaccurate guidance in the prior art is solved, and a higher resource utilization rate and richer human-computer interaction experience are achieved.
Patent Information
- Application Number
- CN202510534197.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-08-08
AI Technical Summary
In the prior art, the way of marking the locations cannot accurately guide the virtual object to perform operations in the virtual scene, reducing the accuracy of the boot, and the resource utilization rate of the electronic device is low.
By generating target marks in the virtual scene and responding to path drawing operations, path guidance information including path direction is synchronized to guide the virtual object to act along the path direction and send path guidance information to the virtual object.
It improves the accuracy of virtual objects performing actions in virtual scenes, improves the resource utilization rate of electronic devices, enriches human-computer interaction methods and information display diversity in virtual scenes.
Smart Images

Figure CN120451457A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a path guidance method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] In related technologies, users can mark locations in a virtual scene based on actual usage needs. The marked locations can then be sent to virtual objects in the virtual scene, allowing the user corresponding to the virtual object to know the marked location in the virtual scene. However, this location marking method cannot accurately guide the virtual object to perform operations in the virtual scene, reducing the accuracy of guiding the virtual object to perform operations in the virtual scene, and also has low resource utilization for electronic devices. Summary of the Invention
[0003] Embodiments of the present application provide a path guidance method, apparatus, electronic device, computer-readable storage medium, and computer program product, which can improve the accuracy of guiding virtual objects to perform actions and improve resource utilization of electronic devices.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] An embodiment of the present application provides a path guidance method, the method comprising:
[0006] In response to a marking operation on a first position in a virtual scene, generating a target mark at the first position;
[0007] In response to a path drawing operation triggered by the target mark, taking the first position as a path starting position, synchronously generating path guidance information including a path direction;
[0008] The path guidance information is used to guide the virtual object to move along the path direction based on the starting position of the path;
[0009] The path guidance information is sent to the virtual object.
[0010] An embodiment of the present application provides a path guiding device, the device comprising:
[0011] a response module, configured to generate a target mark at a first position in a virtual scene in response to a marking operation on the first position;
[0012] The response module is further configured to, in response to a path drawing operation triggered by the target mark, synchronously generate path guidance information including a path direction with the first position as a path starting position;
[0013] The path guidance information is used to guide the virtual object to move along the path direction based on the starting position of the path;
[0014] A sending module is used to send the path guidance information to the virtual object.
[0015] In the above solution, the response module is further configured to, in response to a marking operation on a first position in the virtual scene, display a crosshair for aiming in the virtual scene and display a first marking control before generating a target mark at the first position;
[0016] The response module is also used to turn on the marking function in response to the trigger operation of the first marking control; when the marking function is turned on, the position at which the crosshairs is aimed is used as the first position, and a target mark is generated at the first position at which the crosshairs is aimed.
[0017] In the above solution, the response module is further configured to enable the marking function in response to a pressing operation on the first marking control;
[0018] The response module is also used to, during the execution of the pressing operation, based on the target mark, respond to the drag operation on the first mark control, determine the drag operation as a path drawing operation, and synchronously move the crosshairs in the virtual scene; follow the movement trajectory of the crosshairs, and synchronously generate a corresponding path line, wherein the path line uses the first position as the path starting position and the moving direction of the crosshairs as the path direction; and determine the path line as the path guidance information.
[0019] In the above solution, the response module is further configured to display a second mark control in response to a pressing operation on the first mark control, wherein the second mark control is configured to mark the end point of the path line;
[0020] The response module is further configured to follow the movement trajectory of the crosshair during the drag operation and synchronously generate a corresponding path line; based on the generated path line, in response to a first trigger operation on the second marking control, mark the path end position of the path line;
[0021] The response module is further configured to determine a path line including the path endpoint position as the path guidance information.
[0022] In the above solution, the response module is further configured to, based on the generated path line, respond to the first trigger operation on the second marking control, before marking the path end position of the path line, and, in response to the pressing operation being released, cancel the display of the generated path line and turn off the marking function;
[0023] The sending module is further configured to send the path guidance information to the virtual object in response to the pressing operation being released.
[0024] In the above solution, the response module is further configured to display a switch control at a position associated with the second mark control; in response to a triggering operation on the switch control, the second mark control is switched to a third mark control, wherein the third mark control is configured to mark the path direction of the path line;
[0025] The response module is also used to follow the movement trajectory of the crosshairs during the execution of the drag operation and synchronously generate a corresponding path line; based on the generated path line, in response to the trigger operation of the third marking control, mark the path direction of the path line; and determine the movement direction of the crosshairs and the marked path direction as the path direction in the path guidance information.
[0026] In the above solution, the second marking control has a first marking mode and a second marking mode; the second marking control is used to mark the path end position of the path line in the first marking mode;
[0027] The response module is further used to switch the first marking mode to the second marking mode in response to a second trigger operation on the second marking control; the second marking control is used to mark the path direction of the path line in the second marking mode.
[0028] In the above scheme, the response module is also used to display a close control for closing the marking function in response to a pressing operation on the first marking control; during the execution of the dragging operation, in response to a triggering operation on the close control, the marking function is closed, and the target mark and the generated path line are canceled.
[0029] In the above solution, the response module is further configured to automatically generate at least one candidate path line that avoids an obstacle in response to the presence of the obstacle in the movement trajectory;
[0030] The response module is further configured to, in response to a selection operation on a target path line among the at least one candidate path line, determine the target path line as the path guidance information.
[0031] In the above solution, the response module is further configured to display recommendation information for each candidate route line, wherein the recommendation information is determined based on one or more of the length, duration, difficulty, and virtual vehicle of the candidate route line;
[0032] The response module is further configured to determine the target path line as the path guidance information in response to a selection operation on a target path line from the plurality of candidate path lines based on the recommendation information.
[0033] In the above solution, the virtual object includes a first virtual object; the response module is further configured to display a crosshair for aiming in the virtual scene; when the crosshair is aimed at the first virtual object in the virtual scene, in response to a marking operation on the first virtual object, set the position of the first virtual object as the first position and generate a target mark at the first position;
[0034] The sending module is further used to send the path guidance information to the first virtual object.
[0035] In the above solution, the sending module is further used to send the path guidance information to a second virtual object in the same team as the current player object, and the distance between the second virtual object and the first position is less than or equal to a distance threshold.
[0036] In the above solution, the virtual object includes a third virtual object, and the third virtual object does not have a virtual prop; the response module is further configured to respond to a marking operation on the virtual prop in the virtual scene, set the position of the virtual prop in the virtual scene as the first position, and generate a target mark at the first position;
[0037] The sending module is further configured to send the path guidance information and the item information of the virtual item to the third virtual object.
[0038] In the above scheme, the response module is also used to synchronously generate path guidance information including the path direction, and then, in response to the attribute setting instruction for the path guidance information, set the functional attributes of the path guidance information so that the path guidance information has a target function, and the target function is used to indicate the target of the action.
[0039] In the above scheme, the response module is also used to display multiple candidate functions of the path guidance information in response to the attribute setting instruction for the path guidance information; and set the functional attribute of the path guidance information to the target function in response to the selection operation of the target function among the multiple candidate functions.
[0040] In the above scheme, the response module is also used to display a virtual wheel in response to an instruction to set the attributes of the path guidance information, and display multiple candidate functions of the path guidance information in the virtual wheel; wherein the virtual wheel can select the candidate functions by rotating; and in response to a selection operation for a target function in the virtual wheel, set the functional attribute of the path guidance information to the target function.
[0041] In the above solution, the sending module is further used to display at least one candidate virtual object in response to a sending instruction for the path guidance information; and send the path guidance information to the target virtual object in response to a trigger operation for a target virtual object among the candidate virtual objects.
[0042] In the above solution, the response module is further configured to synchronously generate the path guidance information including the path direction, and then, when a small map is displayed in the virtual scene, display the path guidance information in the small map.
[0043] In the above scheme, the path guidance information corresponds to the current player object, and the response module is also used to display the object identifier of the current player object in the minimap, and the display style of the object identifier is consistent with the display style of the path guidance information; the path guidance information and corresponding object identifiers of other player objects are displayed in the minimap, and the display styles of different path guidance information are inconsistent.
[0044] In the above scheme, the response module is also used to synchronously generate path guidance information including path direction, and then display prompt information in the interface of the virtual scene, wherein the prompt information is used to prompt that the path guidance information has been generated; during the process of displaying the prompt information, the audio of the prompt information is broadcast.
[0045] In the above scheme, the response module is also used to respond to receiving the target path guidance information sent by other virtual objects, display the target path guidance information including the target path line; based on the target path line, in response to the control instruction for the current virtual object, control the current virtual object to perform the target action corresponding to the target path guidance information.
[0046] An embodiment of the present application provides an electronic device, comprising:
[0047] a memory for storing computer-executable instructions or computer programs;
[0048] The processor is configured to implement the path guidance method provided in the embodiment of the present application when executing the computer executable instructions or computer program stored in the memory.
[0049] An embodiment of the present application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the path guidance method provided in the embodiment of the present application when executed by a processor.
[0050] An embodiment of the present application provides a computer program product, including a computer program or computer-executable instructions. When the computer program or computer-executable instructions are executed by a processor, the path guidance method provided in the embodiment of the present application is implemented.
[0051] The embodiments of the present application have the following beneficial effects:
[0052] In the path guidance method provided in an embodiment of the present application, a target mark can be generated at the first position in response to a marking operation on a first position in a virtual scene. In response to a path drawing operation triggered based on the target mark, path guidance information including the path direction is synchronously generated with the first position as the path starting position. The path guidance information is used to guide the virtual object to move along the path direction based on the path starting position, and the path guidance information is sent to the virtual object.
[0053] The path guidance method provided in the embodiments of the present application can generate path guidance information through a path drawing operation after marking a first position. Compared to related technologies, this method enables users to draw path guidance information based on actual usage needs, enriching human-computer interaction methods and improving resource utilization of electronic devices. After the path guidance information is assigned to a virtual object, the user corresponding to the virtual object can obtain the path guidance information. The path guidance information can guide the virtual object to move along the path direction based on the path starting position. Compared to related technologies, this method can improve the accuracy of guiding the virtual object to perform actions, thereby improving the user's gaming experience. The path guidance information includes not only the path starting position but also the path direction, which can enrich the diversity of information displayed in the virtual scene and improve the resource utilization of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a structural diagram of a path guidance system provided in an embodiment of the present application;
[0055] Figure 2 is a structural diagram of an electronic device provided in an embodiment of the present application;
[0056] Figure 3 This is a schematic diagram of the process of the path guidance method provided in the embodiment of the present application. Figure 1 ;
[0057] Figure 4 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 1 ;
[0058] Figure 5 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 ;
[0059] Figure 6 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 3 ;
[0060] Figure 7 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 4 ;
[0061] Figure 8 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 5 ;
[0062] Figure 9 This is a schematic diagram of the process of the path guidance method provided in the embodiment of the present application. Figure 2 ;
[0063] Figure 10 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 6 ;
[0064] Figure 11 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 7 ;
[0065] Figure 12 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 8 ;
[0066] Figure 13 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 9 ;
[0067] Figure 14 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 ;
[0068] Figure 15 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 one;
[0069] Figure 16 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 two;
[0070] Figure 17 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 three;
[0071] Figure 18 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 Four;
[0072] Figure 19 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 five;
[0073] Figure 20 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 six;
[0074] Figure 21 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 seven;
[0075] Figure 22 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 eight;
[0076] Figure 23 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 Nine;
[0077] Figure 24 This is a schematic diagram of the process of the path guidance method provided in the embodiment of the present application. Figure 3 ;
[0078] Figure 25 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 ten;
[0079] Figure 26 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 eleven;
[0080] Figure 27 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 twelve;
[0081] Figure 28 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 Thirteen. DETAILED DESCRIPTION
[0082] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0083] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0084] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0085] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0086] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meanings as those commonly understood by those skilled in the art. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.
[0087] The relevant data collection and processing in the embodiments of this application should be strictly in accordance with the requirements of relevant laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained. Subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.
[0088] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0089] 1) In response to: used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0090] 2) Human-computer interaction interface: an interface for providing human-computer interaction functions / an interface for displaying virtual scenes and path guidance information. For example, graphical user interface (GUI) displays, such as augmented reality (AR) interfaces, virtual reality (VR) interfaces, voice user interfaces (VUIs), interactive projection interfaces (using projection technology to display information on a flat surface), eye movement detection interfaces (interfaces controlled by detecting the user's line of sight), holographic interfaces (using holographic projection technology to project images into three-dimensional holograms, allowing users to see stereoscopic images without wearing special glasses), multimodal interfaces (interfaces that combine multiple interaction methods, such as touch, vision, and hearing), and brain-machine interfaces (BMIs).
[0091] 3) Virtual scene: This is the virtual scene displayed (or provided) when the application is running on the terminal. This virtual scene can be a simulation of the real world, a virtual environment that is partially simulated and partially fictional, or a purely fictional virtual environment. The virtual scene can be any of two-dimensional, two-and-a-half-dimensional, or three-dimensional.
[0092] For example, a virtual scene may include the sky, land, ocean, etc., where the land may include environmental elements such as deserts and cities. Users may control virtual objects to perform activities in the virtual scene, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. The virtual scene may be displayed from a first-person perspective (e.g., the user plays the role of a virtual object in the game from their own perspective), a third-person perspective (e.g., the user chases the virtual object in the game to play the game), or a bird's-eye view perspective. The aforementioned perspectives may be switched arbitrarily.
[0093] 4) Virtual objects, images of various people and objects that can interact in a virtual scene, or movable objects in a virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as people, animals, plants, oil drums, walls, stones, etc. displayed in a virtual scene. The virtual object can be a virtual image in the virtual scene that represents the user. The virtual scene can include multiple virtual objects, each virtual object has its own shape and volume in the virtual scene, and occupies a part of the space in the virtual scene. In the present application, the virtual objects can be the current virtual object, the first virtual object, the second virtual object, and the third virtual object, wherein the current virtual object, the first virtual object, the second virtual object, and the third virtual object are virtual objects controlled by different users.
[0094] 5) Client, also known as user end, refers to the program corresponding to the server that provides local services to users. Except for some applications that can only run locally, it is generally installed on an ordinary client and needs to cooperate with the server to run. That is, there must be corresponding servers and service programs on the network to provide corresponding services. In this way, a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application, such as the game client.
[0095] During the research process, the inventors discovered that the related technologies have the following technical problems:
[0096] Technical Issue 1: In related technologies, users can mark locations in a virtual scene based on actual usage needs. The marked locations can then be sent to virtual objects in the virtual scene, allowing the user corresponding to the virtual object to know the marked location in the virtual scene. However, this location marking method cannot accurately guide the virtual object to perform operations in the virtual scene, reducing the accuracy of guiding the virtual object to perform operations in the virtual scene, and also resulting in low resource utilization of the electronic device.
[0097] Technical Problem 2: In related technologies, after a location is marked, the marked location cannot clearly indicate the action performed at that location, resulting in deviations in the understanding of the marked location by different users, reducing the accuracy of guiding the virtual object to perform operations in the virtual scene, and low resource utilization of the electronic device.
[0098] Technical Issue 3: Following Technical Issue 2, when a virtual object belongs to a team, users corresponding to other virtual objects in the team may have a different understanding of the location of the marker, which reduces the coordination of actions performed by the virtual objects in the team.
[0099] Embodiments of the present application provide a path guidance method, a path guidance device, an electronic device, a computer-readable storage medium, and a computer program product, which can improve the accuracy of guiding virtual objects to perform actions and improve the resource utilization of electronic devices.
[0100] See also Figure 1 , Figure 1 is a schematic diagram of the structure of the path guidance system provided in an embodiment of the present application, Figure 1 The route guidance system 100 shown is to realize a route guidance application, the terminal (in Figure 1 Schematically shows that the terminal 400-1, the terminal 400-2 and the terminal 400-3 are connected to the server 200 via the network 300. The network 300 can be a wide area network or a local area network, or a combination of the two.
[0101] Taking terminal 400-1 as an example, the path guidance method provided in the embodiment of the present application is explained below. For terminal 400-1, a virtual scene can be displayed in the display interface 410-1 of terminal 400-1. Terminal 400-1 generates a target mark at the first position in response to the marking operation on the first position in the virtual scene. That is, the target mark can be displayed in the display interface 410-1 of terminal 400-1.
[0102] In response to the path drawing operation triggered by the target marker, path guidance information including the path direction is synchronously generated with the first position as the path starting position. In other words, the path guidance information can be displayed on the display interface 410-1 of the terminal 400-1. The path guidance information is used to guide the virtual object to move along the path direction based on the path starting position.
[0103] In some embodiments, in response to generating the path guidance information, terminal 400-1 may send the generated path guidance information to server 200. In some embodiments, during the process of generating the path guidance information, terminal 400-1 may communicate with server 200 in real time. In response to a path drawing operation triggered by a target marker, terminal 400-1 may send a path generation instruction to the server, and the server may generate the path guidance information in real time. Specific configurations may be made based on actual usage requirements.
[0104] After generating the path guidance information, the server 200 can send the path guidance information to at least one of the terminal 400-2 and the terminal 400-3. The terminal 400-2 and the terminal 400-3 can correspond to different virtual objects, which is equivalent to sending the path guidance information to the virtual object, so that the path guidance information can be displayed on the display interface 410-2 of the terminal 400-2, and / or the path guidance information can be displayed on the display interface 410-3 of the terminal 400-3. In the path guidance method provided in the embodiment of the present application, the path guidance information can be displayed on at least one of the terminal 400-1, the terminal 400-2 and the terminal 400-3.
[0105] In the path guidance method provided in an embodiment of the present application, a target mark can be generated at the first position in response to a marking operation on a first position in a virtual scene. In response to a path drawing operation triggered based on the target mark, path guidance information including the path direction is synchronously generated with the first position as the path starting position. The path guidance information is used to guide the virtual object to move along the path direction based on the path starting position, and the path guidance information is sent to the virtual object.
[0106] The path guidance method provided in the embodiments of the present application can generate path guidance information through a path drawing operation after marking a first position. Compared to related technologies, this method enables users to draw path guidance information based on actual usage needs, enriching human-computer interaction methods and improving resource utilization of electronic devices. After the path guidance information is assigned to a virtual object, the user corresponding to the virtual object can obtain the path guidance information. The path guidance information can guide the virtual object to move along the path direction based on the path starting position. Compared to related technologies, this method can improve the accuracy of guiding the virtual object to perform actions, thereby improving the user's gaming experience. The path guidance information includes not only the path starting position but also the path direction, which can enrich the diversity of information displayed in the virtual scene and improve the resource utilization of the electronic device.
[0107] The following describes the electronic devices provided in the embodiments of the present application. The electronic devices implementing the route guidance methods of the embodiments of the present application can be terminals, servers, or a combination of the two. The terminals can be various types of terminals, such as laptops, tablets, desktop computers, set-top boxes, smartphones, smart speakers, smart watches, smart TVs, and in-vehicle terminals.
[0108] The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal and the server can be connected directly or indirectly via wired or wireless communication, which is not limited in the embodiments of this application.
[0109] See also Figure 2 , Figure 2 is a structural diagram of an electronic device provided in an embodiment of the present application, Figure 2 The electronic device shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the electronic device are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2 Various buses are labeled as bus system 440 .
[0110] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0111] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0112] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0113] The memory 450 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0114] In some embodiments, the memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0115] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, and driver layer, which are used to implement various basic services and process hardware-based tasks;
[0116] A network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420. Exemplary network interfaces 420 include Bluetooth, Wi-Fi, and Universal Serial Bus (USB);
[0117] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripheral devices and displaying content and information);
[0118] The input processing module 454 is configured to detect one or more user inputs or interactions from one of the one or more input devices 432 and to translate the detected inputs or interactions.
[0119] In some embodiments, the path guidance device provided in the embodiments of the present application can be implemented in a software manner. Figure 2 Path guidance device 455 stored in memory 450 is shown. This device can be software in the form of a program or plug-in, and includes the following software modules: a response module 4551 and a sending module 4552. These modules are logical and can be arbitrarily combined or further separated according to the functions they implement. The functions of each module will be described below.
[0120] In other embodiments, the path guidance device provided in the embodiments of the present application can be implemented in hardware. As an example, the path guidance device provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the path guidance method provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs) or other electronic components.
[0121] In some embodiments, the terminal or server can implement the path guidance method provided by the embodiment of the present application by running various computer executable instructions or computer programs. For example, computer executable instructions can be commands, machine instructions or software instructions at the microprogram level. The computer program can be a native program or software module in the operating system; it can be a local (Native) application (APPlication, APP), that is, a program that needs to be installed in the operating system to run, such as a game application; it can also be a small program that can be embedded in any APP, that is, a program that only needs to be downloaded to a browser environment to run. In short, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form.
[0122] The following describes the path guidance method provided by the embodiment of the present application. As mentioned above, the electronic device that implements the path guidance method of the embodiment of the present application can be a terminal, a server, or a combination of the two. Figure 3 , Figure 3 This is a schematic diagram of the process of the path guidance method provided in the embodiment of the present application. Figure 1 , combined with Figure 3 The steps shown take the electronic device being a terminal as an example to illustrate the path guidance method provided in the embodiment of the present application.
[0123] In step 101 , in response to a marking operation on a first position in a virtual scene, a target marker is generated at the first position.
[0124] In actual application, the terminal is installed with a game application, which can be any one of an open world game, a multiplayer online role-playing game, a first-person shooter game, a third-person shooter game, a multiplayer online tactical competitive game, a virtual reality application, a three-dimensional map program, or a multiplayer gun battle survival game.
[0125] In some embodiments, in response to a trigger operation for a game application, a game display interface of the game application can be displayed, and a virtual scene can be displayed in the game display interface. When the game is in a third-person perspective, the current virtual object can be displayed while displaying the virtual scene, wherein the current virtual object is the virtual object controlled by the user who controls the current electronic device.
[0126] In some embodiments, in response to a marking operation on a first position in a virtual scene, a target mark is generated at the first position, where the first position can be one or more of the positions of other virtual objects in the virtual scene, the positions of virtual props in the virtual scene, strategic points in the virtual scene, positions corresponding to virtual buildings in the virtual scene, positions in a target area in the virtual scene, and positions of virtual vehicles in the virtual scene. Of course, the first position can also be set according to actual usage requirements, and is not specifically limited here.
[0127] Among them, other virtual objects are only used to distinguish from the current virtual object. The other virtual objects can be one or more of the first virtual object, the second virtual object and the third virtual object. The number of other virtual objects can be determined in combination with the game. The other virtual objects can be virtual objects that are in the same team as the current virtual object, or virtual objects that are not in the same team as the current virtual object. No specific limitation is made here.
[0128] Virtual props can be configured based on actual usage needs. They can include one or more of virtual equipment for interacting with virtual objects, virtual clothing for changing the appearance of virtual objects, and virtual items for changing the attributes of virtual objects. For example, virtual equipment can include a bow, arrows, or a frying pan. Virtual clothing can include a virtual top, virtual pants, or a virtual hat. Virtual items can include virtual drinks, virtual painkillers, or virtual bandages.
[0129] Strategic points may include resource points, which may be locations that provide virtual resources in a virtual scene. Virtual resources may include one or more of virtual props, virtual exchange items, and virtual materials. Strategic points may also be defense points that can provide cover for virtual objects. Strategic points may also be key paths connecting different areas in a virtual scene. Associated paths are paths that virtual objects must pass through when moving across areas.
[0130] The target area can be the area where non-player virtual objects (i.e., non-player characters) appear, the area pre-divided in the virtual scene, the random area that changes in real time in the virtual scene, etc. The virtual vehicle can be a bicycle, a car, a horse, etc., which can be set according to actual usage needs and is not specifically limited here.
[0131] In some embodiments, when a virtual scene is displayed, a crosshair for aiming can be displayed in the interface displaying the virtual scene. The following describes how to display the crosshair. In some embodiments, after entering a game, that is, when a virtual scene is displayed, the crosshair for aiming can be automatically displayed in the interface displaying the virtual scene. In some embodiments, in response to a display instruction for the crosshair, the crosshair for aiming can be displayed in the interface displaying the virtual scene. For example, see Figure 4 , Figure 4 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 1 , a crosshair 402 for aiming can be displayed in an interface displaying a virtual scene 401 .
[0132] In response to displaying the crosshairs in the virtual scene, a first marker control may be displayed, wherein the first marker control is used to mark the path guidance information. The following describes the method of displaying the first marker control. In some implementations, when the virtual scene is displayed, the first marker control may be automatically displayed in the interface displaying the virtual scene. In some embodiments, in response to a display instruction for the first marker control, the first marker control may be displayed in the interface of the scene. For example, see Figure 4 , a first aiming control 403 may be displayed in an interface displaying a virtual scene 401 .
[0133] In some embodiments, with the crosshairs and first marker control displayed, Figure 3 Step 101 can be implemented as follows: In response to a trigger operation on a first marker control, a marking function can be enabled. The marking function is a function for marking path guidance information in a virtual scene. The trigger operation for the first marker control can be one or more of a single click, a double click, pressing for a first preset duration, and a slide. The specific trigger operation can be set according to actual usage requirements.
[0134] In some embodiments, the marking function is enabled by a press operation, and the marking function can be enabled in response to a press operation on the first marking control. In some embodiments, the marking function can be enabled in response to a press operation on the first marking control, and the press duration corresponding to the press operation reaches a first duration threshold.
[0135] In order to facilitate users to know whether the marking function is turned on, in response to the triggering operation of the first marking control, the marking function can be turned on and a first prompt message can be displayed. The first prompt message is used to prompt that the marking function is turned on. The first prompt message can be displayed in the form of a pop-up window or a floating layer. The first prompt message can be displayed in the form of a weak prompt for a second preset time. The first prompt message can also be displayed in the interface of the virtual scene all the time. It can be set according to actual usage needs. In this way, the diversity of information displayed in the interface displaying the virtual scene can be improved, the resource utilization of the electronic device can be improved, and the user can intuitively know whether the marking function is turned on, thereby improving the user's gaming experience.
[0136] When the marking function is enabled, the position targeted by the crosshairs can be used as the first position, and a target mark is generated at the first position targeted by the crosshairs. The target mark is used to mark the first position and can be one or more of text, images, animations, and special effects. The text can be text describing the first position, or a number generated for the first position. The image can be a color block or a graphic symbol. The special effects can include light beams, light beams, flashing effects, etc., and can be set according to actual usage requirements.
[0137] In some embodiments, the user can set the position at which the crosshair is aimed based on actual usage needs. In response to a movement instruction for the crosshair, the crosshair can be controlled to move to the position corresponding to the movement instruction in the virtual scene, which is equivalent to the crosshair being able to aim at the position corresponding to the movement instruction in the virtual scene. In some embodiments, in response to the crosshair moving to the edge of the display screen of the electronic device, the displayed virtual scene can be moved and the crosshair can be moved synchronously, which is equivalent to both the crosshair and the virtual scene being able to move, so that the crosshair can aim at the position corresponding to the movement instruction in the virtual scene. In this way, the user is given the autonomy to select the first position, which can enhance the user's gaming experience.
[0138] In some embodiments, a crosshair can be displayed at a fixed position within an interface displaying a virtual scene. In response to an instruction to adjust the field of view of the current virtual object, the displayed virtual scene can be adjusted accordingly, thereby adjusting the position at which the crosshair is aimed. Alternatively, in response to an instruction to adjust the displayed virtual scene, the displayed virtual scene can be adjusted, thereby adjusting the position at which the crosshair is aimed. In other words, the displayed virtual scene can be adjusted in various ways, thereby increasing the diversity of interactions.
[0139] For example, see Figure 5 , Figure 5 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 ,like Figure 5 As can be seen on the left side, the crosshair 501 is displayed at the center of the display screen of the terminal. In response to the trigger operation of the first mark control 502, the marking function is turned on, and the crosshair 501 is aimed at the position corresponding to the virtual scene 503. In response to the adjustment instruction for the virtual scene, the Figure 5 The virtual scene 503 displayed on the left is switched to Figure 5 The virtual scene 504 is displayed on the right side, and the crosshair 501 is aimed at the position corresponding to the virtual scene 504. In this way, the user can adjust the position aimed at by the crosshair according to actual use needs, so that the first position that better meets the user's actual use needs can be marked, which can improve the user's gaming experience.
[0140] After adjusting the crosshair's aiming position, the crosshair's aiming position is used as the first position, and a target marker is generated at the first position. Figure 6 , Figure 6 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 3 , take over Figure 5 ,Will Figure 5 The position corresponding to the virtual scene 504 aimed at by the crosshair 501 is shown as the first position, and Figure 5 The target mark 601 is displayed at the position corresponding to the virtual scene 504 aimed at by the crosshair 501, that is, the target mark 601 is displayed in the virtual scene 504. In this way, the crosshair and the first marking control can be used in combination to complete the marking of the first position in the virtual scene, which can increase the diversity of interaction methods and the diversity of information displayed in the virtual scene.
[0141] In some embodiments, the virtual object includes a first virtual object, Figure 3 Step 101 shown can be implemented in the following manner: a crosshair for aiming is displayed in a virtual scene, and when the crosshair is aimed at a first virtual object in the virtual scene, in response to a marking operation on the first virtual object, the position of the first virtual object is used as the first position, and a target mark is generated at the first position.
[0142] In some embodiments, when the first virtual object is in a moving state, the position of the first virtual object at the moment of responding to the marking operation can be used as the first position. There is a corresponding relationship between the first position and the first virtual object, and there can be a corresponding relationship between the target marker and the first object.
[0143] For example, see Figure 7 , Figure 7 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 4 , a crosshair 702 for aiming is displayed in a virtual scene 701, and when the crosshair 702 aims at a first virtual object 703 in the virtual scene 701, in response to a marking operation on the first virtual object 703, the position of the first virtual object 703 is taken as a first position, and a target mark 704 is generated at the first position. Figure 7 It can be seen that the first virtual object 703 stands on the virtual ground ( Figure 7 (not shown), any position of the first virtual object 703 in the projection area of the virtual ground can be used as the first position. In this way, the first position can be marked by marking the virtual object, which can increase the diversity of interaction methods and the diversity of information displayed in the virtual scene.
[0144] In some embodiments, a virtual scene and a virtual prop in the virtual scene may be displayed. In response to a marking operation on the virtual prop in the virtual scene, the position of the virtual prop in the virtual scene may be used as a first position, and a target mark may be generated at the first position.
[0145] For example, see Figure 8 , Figure 8 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 5 In a virtual scene 801, a crosshair 802 for aiming is displayed. When the crosshair 802 is aimed at a virtual prop 803 in the virtual scene 801, in response to a marking operation on the virtual prop 803, the position of the virtual prop 803 is set as the first position, and a target mark 804 is generated at the first position. This method can increase the diversity of interaction methods and the diversity of information displayed in the virtual scene.
[0146] pass Figure 3 In step 101 shown, a first position in the virtual scene can be marked in a variety of ways, and a target mark can be generated at the first position, which can increase the diversity of interaction methods and the diversity of information displayed in the virtual scene.
[0147] Continue to see Figure 3 In step 102, in response to a path drawing operation triggered based on a target mark, path guidance information including a path direction is synchronously generated with the first position as the path starting position.
[0148] In some embodiments, see Figure 9 , Figure 9 This is a schematic diagram of the process of the path guidance method provided in the embodiment of the present application. Figure 2 , combined with Figure 9 The steps shown are Figure 3 Step 102 is described below, wherein Figure 9 In the steps shown, the marking function is turned on by a pressing operation.
[0149] In step 1021, during the press operation, based on the target marker, in response to a drag operation on the first marker control, the drag operation is determined as a path drawing operation, and the crosshair is synchronously moved in the virtual scene. In step 1022, a corresponding path line is synchronously generated following the movement trajectory of the crosshair. In step 1023, the path line is determined as path guidance information.
[0150] If the mark function is activated by a press operation, the user can continue to press the operation. During the press operation, the user can move the crosshairs by dragging the mark control. In other words, during the press operation, based on the target mark, in response to the drag operation on the first mark control, the drag operation is determined as a path drawing operation, and the crosshairs are synchronously moved in the virtual scene.
[0151] In some embodiments, when a drag operation is performed on the first marker control, the display position of the first marker control on the display interface of the electronic device remains unchanged, and the direction of movement of the crosshairs in the virtual scene can be controlled accordingly based on the relative position relationship between the user's finger and the pressed position and the display position of the first marker control.
[0152] In some embodiments, when performing a drag operation on the first marker control, direction identification information can be added based on the relative position relationship between the user's finger and the pressed position and the display position of the first marker control, so that the user can more intuitively know the moving direction of the control crosshairs.
[0153] During the synchronous movement of the crosshairs in the virtual scene, a corresponding path line is synchronously generated following the movement trajectory of the crosshairs. The path line uses the first position as the path starting position and the direction of the movement of the crosshairs as the path direction. The path line can then be determined as path guidance information. In this way, path guidance information can be generated based on pressing and dragging operations on the first marker control, which can increase the diversity of interaction methods. Moreover, the generated path guidance information meets the actual usage needs of users, can improve the accuracy of guiding virtual objects to perform actions, and thus enhance the user's gaming experience.
[0154] For easier understanding Figure 9 The steps shown below are combined Figure 10 as well as Figure 11 right Figure 9 The steps shown are explained in Figure 10 , Figure 10 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 6 In response to a pressing operation on the first mark control 1003, the mark function is turned on. When the mark function is turned on, the position targeted by the crosshairs 1002 is used as the first position, and a target mark 1004 is generated at the first position targeted by the crosshairs 1002, that is, the target mark 1004 can be displayed in the virtual scene 1001.
[0155] During the pressing operation, in response to the drag operation on the first marker control 1003, the drag operation is determined as a path drawing operation, and the crosshair 1002 is synchronously moved in the virtual scene 1001. Figure 10 In the process of performing the pressing operation, the finger moves to the right relative to the first mark control 1003, and takes the first position marked by the target mark 1004 as the starting point, and synchronously moves the crosshair 1002 to the right in the virtual scene 1001. Following the movement trajectory of the crosshair 1002, the corresponding path line 1005 is synchronously generated. Figure 10 , the path line 1005 is the moving track of the crosshair 1002 .
[0156] See also Figure 11 , Figure 11 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 7 In response to a pressing operation on the first marking control 1103, the marking function is turned on. When the marking function is turned on, the position targeted by the crosshair 1102 is used as the first position, and a target mark 1104 is generated at the first position targeted by the crosshair 1102. In other words, the target mark 1104 can be displayed in the virtual scene 1101. The target mark 1104 can include a guide line (that is, the target mark 1104 corresponds to a vertical line).
[0157] During the pressing operation, in response to the drag operation on the first marker control 1103, the drag operation is determined as a path drawing operation, and the crosshair 1102 is synchronously moved in the virtual scene 1101. Figure 11 In the process of performing the pressing operation, the finger moves to the right compared to the first mark control 1103, and takes the first position marked by the target mark 1104 as the starting point, and synchronously moves the crosshair 1102 to the right in the virtual scene 1101. Following the movement trajectory of the crosshair 1102, the corresponding path line 1105 is synchronously generated. Figure 11 In FIG, the path line 1105 is generated synchronously with the moving trajectory of the crosshair 1102, starting from the guide line included in the target mark 1104.
[0158] contrast Figure 10 and Figure 11 It can be seen that in Figure 10 In the example, the path line 1005 is the moving trajectory of the crosshair 1002. The similarity between the path line 1005 and the moving trajectory of the crosshair 1002 is greater than the similarity threshold, or can be the same. The path line 1005 is attached to a virtual plane, which can be a virtual ground, a virtual desktop, a virtual platform, etc. Figure 11 , the similarity between the moving trajectory of the path line 1105 and the moving trajectory of the crosshair 1002 is greater than the similarity threshold, and the path line 1105 is not attached to the virtual plane.
[0159] In the path guidance method provided in the embodiment of the present application, the path line and the path starting point position can constitute two-dimensional path guidance information, and the path line and the path starting point position can also constitute three-dimensional path guidance information. The path line can be drawn as two-dimensional or three-dimensional according to different actual usage requirements. This is all reasonable. In this way, the style of the path line can be enriched, that is, the style of the path guidance information can be enriched, the diversity of information displayed in the virtual scene can be improved, and the accuracy of guiding virtual objects to take actions can be improved.
[0160] In some embodiments, in response to a press operation on the first mark control, one or more of the second mark control and the third mark control can be displayed, wherein the second mark control is used to mark the path end position of the path line, and the third mark control is used to mark the path direction of the path line.
[0161] In some embodiments, during the drag operation, a corresponding path line is synchronously generated following the movement trajectory of the crosshairs. Based on the generated path line, in response to the first trigger operation for the second marking control, the path end position of the path line is marked, and the path line including the path end position can be determined as path guidance information.
[0162] See also Figure 12 , Figure 12 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 8 In response to a press operation on the first marker control, a second marker control 1203 can be displayed in the virtual scene 1201. During the drag operation, the movement trajectory of the crosshair 1202 is followed and a corresponding path line 1205 is synchronously generated. Based on the generated path line 1205, in response to the first trigger operation on the second marker control 1203, a marker 1206 is used to mark the end point position of the path line.
[0163] exist Figure 12 In the example, path line 1205 uses the position corresponding to target marker 1204 as the path starting position and the position corresponding to marker 1206 as the path ending position. The path direction of path line 1205 can be from the path starting position to the path ending position, and the path line including the path ending position can be determined as path guidance information. The path direction can be displayed when the corresponding path line 1205 is generated simultaneously, or in response to the first trigger operation on the second marker control 1203, and the path direction of path line 1205 can be displayed.
[0164] pass Figure 12, the end point of the path can be accurately marked. The generated path line includes the starting point of the path, the end point of the path and the direction of the path. The path line is used to guide the virtual object to take action, which is equivalent to being able to accurately guide the virtual object to take action, which can improve the user's gaming experience.
[0165] See also Figure 13 , Figure 13 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 9 In response to a press operation on the first marker control, a second marker control 1303 can be displayed in the virtual scene 1301. During the drag operation, the movement trajectory of the crosshair 1302 is followed and a corresponding path line 1305 is synchronously generated. Based on the generated path line 1305, in response to the first trigger operation on the second marker control 1303, a marker 1306 is used to mark the end point position of the path line.
[0166] exist Figure 13 In the example, path line 1305 uses the position corresponding to target marker 1304 as the path starting position and the position corresponding to marker 1306 as the path ending position. The path direction of path line 1305 can be from the path starting position to the path ending position, and the path line including the path ending position can be determined as path guidance information. The path direction can be displayed when the corresponding path line 1305 is generated simultaneously, or in response to the first trigger operation on the second marker control 1303, and the path direction of path line 1305 can also be displayed. The specific limitations are not set here.
[0167] pass Figure 13 , can accurately mark the end point of the path. The generated path line includes the path starting point, path ending point, and path direction. The path line is used to guide the virtual object's actions, which is equivalent to accurately guiding the virtual object's actions. Path guidance information can be a three-dimensional vector, that is, a solid vector. The path starting point, path ending point, and path direction can accurately convey the path and destination of the virtual object's action, which can enhance the user's gaming experience.
[0168] In the path guidance method provided in the embodiment of the present application, a second marking control for marking the end point of the path can be displayed, which can increase the diversity of the displayed controls. By combining the second marking control and the first marking control, it is possible to generate a path line including the end point of the path, that is, to generate path guidance information. The second marking control can accurately mark the end point of the path, thereby improving the accuracy of the path guidance information and increasing the diversity of the interaction methods. The generated path guidance information meets the actual usage needs of the user and can improve the accuracy of guiding the virtual object to perform actions, thereby improving the user's gaming experience.
[0169] In some embodiments, during a press operation and before marking the end point of the generated path line in response to a trigger operation on a second marker control, the generated path line is canceled from display and the marking function is disabled in response to the press operation being released. In this way, the generated path line can be canceled from display and the marking function can be disabled based on the user's actual usage needs, thereby increasing the diversity of interactions and improving the neatness of the virtual scene interface, thereby enhancing the user's gaming experience.
[0170] In some embodiments, after marking the endpoint of the generated path line in response to a triggering operation on the second marker control, that is, after the path guidance information is generated, the path guidance information is sent to the virtual object in response to the pressing operation being released. In this way, marking the first location, generating the path guidance information, and sending the path guidance information can be achieved by only combining the first marker control, which can increase the diversity of interactions and improve the neatness of the virtual scene interface, thereby enhancing the user's gaming experience.
[0171] In the path guidance method provided in the embodiment of the present application, different functions can be achieved by releasing the pressing operation at different times, which can improve the diversity of interaction and the neatness of the interface of the virtual scene. The user can release the pressing operation according to actual usage needs, thereby improving the user's gaming experience.
[0172] In some embodiments, for the second marker control, marking information of the second marker control can be displayed. The marking information can be one or more of an icon, text, and video. For example, the marking information can be the text "Closed", indicating that the path guidance information includes the path starting position, the path ending position, and the path direction. The marking information is used to indicate that the second marker control can mark the path ending position of the path guidance information.
[0173] In some embodiments, to improve the neatness of the display interface, a third marker control can be displayed in the location where the second marker control is displayed. The following describes how to display the third marker control in the location where the second marker control is displayed. A toggle control is displayed in the associated location of the second marker control, where the toggle control is used to switch the displayed second marker control to the third marker control. The associated location of the second marker control can be a location within the area where the second marker control is displayed, or a location whose distance from the area where the second marker control is displayed is less than a distance threshold. The specific setting can be based on actual usage requirements.
[0174] In response to the trigger operation for the switch control, the second mark control is switched to the third mark control, and the third mark control is used to mark the path direction of the path line, for example, see Figure 14 , Figure 14 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 , a second mark control 1401 can be displayed, and a switch control 1402 can be displayed at the associated position of the second mark control 1401. At this time, the function of the switch control 1402 is to switch the displayed second mark control 1401 to a third mark control 1403.
[0175] In response to a triggering operation on switch control 1402, second marker control 1401 is switched to third marker control 1403. When third marker control 1403 is displayed, switch control 1402 switches the displayed third marker control 1403 to second marker control 1401. In other words, the function of the switch control varies depending on the marker control displayed. In this way, the third marker control can be displayed in the position where the second marker control is displayed, which improves the neatness of the display interface and enriches the interaction methods.
[0176] In some embodiments, in the case of displaying a third marker control, during the drag operation, the corresponding path line is synchronously generated following the movement trajectory of the crosshairs. Based on the generated path line, in response to the trigger operation for the third marker control, the path direction of the path line is marked, and the movement direction of the crosshairs and the path direction of the mark are determined as the path direction in the path guidance information.
[0177] See also Figure 15 , Figure 15 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 1. In response to a press operation on the first marker control, a third marker control 1503 can be displayed in the virtual scene 1501. During the drag operation, the movement trajectory of the crosshair 1502 is followed and a corresponding path line 1505 is synchronously generated. Based on the generated path line 1505, in response to the first trigger operation on the third marker control 1503, the path direction of the marker path line 1505 (i.e., the direction indicated by the arrow) is indicated.
[0178] exist Figure 15 In the example, the path line 1505 takes the position corresponding to the target mark 1504 as the path starting position, and there is no path ending position. The path direction of the path line 1505 can be from the path starting position to the path ending position. Figure 15 The direction indicated by the arrow in Figure 15 In the example, the moving direction of the crosshair is the marked path direction. Therefore, the marked path direction can be determined as the path direction in the path guidance information.
[0179] pass Figure 15, the path direction can be accurately marked. The generated path line includes the path starting point position and the path direction. The path line is used to guide the virtual object to take action, which is equivalent to being able to accurately guide the virtual object to take action, which can improve the user's gaming experience.
[0180] contrast Figure 13 and Figure 15 It can be seen that in the path guidance method provided in the embodiment of the present application, different types of three-dimensional path lines can be marked. The user can specify the end position of the path according to actual usage needs, or only specify the path direction. It can be based on the user's diverse choices, thereby improving the user's gaming experience.
[0181] In some embodiments, the path direction may include the moving direction of the crosshairs and the path direction of the mark, wherein the path direction of the mark may be marked by the second mark control or the third mark control, and the specific instructions may be given below in conjunction with Figure 16 Indicates the direction of movement of the crosshair, see Figure 16 , Figure 16 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 Second, during the pressing operation, the finger moves to the right relative to the first marker control 1602, and the crosshair 1601 moves to the right in the virtual scene. Following the movement trajectory of the crosshair 1601, a corresponding path line 1603 is generated, where the path line 1603 is the first movement direction of the crosshair.
[0182] Continuing with the above process, during the pressing operation, the finger moves to the upper right relative to first marker control 1602, and crosshair 1601 moves to the upper right in the virtual scene. Following the movement trajectory of crosshair 1601, a corresponding path line 1604 is generated, where path line 1604 is the second movement direction of the crosshair.
[0183] That is to say, according to the actual use needs of the user, one or more moving directions of the crosshairs can be set. The path line includes multiple sub-path lines, and each sub-path line has a corresponding path direction. For example, Figure 16 In the figure, path line 1604 and path line 1603 are sub-path lines. In this way, the style of the path lines is enriched, that is, the style of the path guidance information is enriched, the diversity of information displayed in the virtual scene can be improved, more accurate path guidance information can be generated, and the accuracy of guiding virtual objects to take actions can be improved.
[0184] In some embodiments, marking at least one of the path end position and the path direction can be achieved only through the second marking control. The second marking control has a first marking mode and a second marking mode. The second marking control is used to mark the path end position of the path line in the first marking mode. For details, please refer to the above description and will not be repeated here.
[0185] In response to the second trigger operation on the second marking control, the first marking mode is switched to the second marking mode, and the second marking control is used to mark the path direction of the path line in the second marking mode, wherein the first trigger operation is different from the second trigger operation. For example, the first trigger operation can be a pressing operation on the first marking control, and the pressing time reaches a third preset time. The second trigger operation can be a double-click. The specific setting can be based on actual usage requirements and is not specifically limited here.
[0186] To facilitate users' intuitive understanding, different styles of path lines can be generated in different marking modes. A second prompt message can be displayed. The second prompt message is used to indicate the existence of different marking modes for the second marking control and the triggering methods of different marking models. The second marking mode can be found in the description of the third marking control and will not be repeated here. In this way, different styles of path guidance information can be marked based on a single control, which can increase the diversity of path guidance information, accurately guide virtual objects to take actions, and enhance the user's gaming experience.
[0187] In some embodiments, in response to a press operation on the first mark control, a close control for turning off the mark function is displayed. That is, when the mark function is turned on, a close control for turning off the mark function can be displayed. The user can turn off the mark function according to actual usage needs, which can improve the user's gaming experience.
[0188] In some embodiments, during a drag operation, in response to a trigger operation for closing a control, the marking function is turned off, and the target mark and the generated path line are removed. Users can turn off the marking function according to actual usage needs, which can improve the user's gaming experience.
[0189] For example, see Figure 17 , Figure 17 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10Third, in response to a press operation on the first marker control, a close control 1702 for disabling the marker function is displayed. During the drag operation, in response to a trigger operation on close control 1702, the marker function is disabled, and the target marker 1704, close control 1702, and generated path line 1703 are removed from the display. In this way, the user can disable the marker function according to actual usage needs. The embodiments of the present application provide multiple ways to disable the marker function, which can enrich the interaction methods and enhance the user's gaming experience.
[0190] In some embodiments, when the marking function is disabled, one or more of the following may be removed: the second marking control, the third marking control, the close control, the target marker, the path line, and the path endpoint marker. The specific settings can be configured based on actual usage requirements. When the marking function is disabled, a third prompt may also be displayed to indicate that the marking function is disabled.
[0191] The third prompt information can be displayed in the form of a pop-up window or a floating layer. The third prompt information can be displayed in the form of a weak prompt for a fourth preset time period. The third prompt information can also be displayed in the interface of the virtual scene all the time. It can be set according to actual usage needs. In this way, the diversity of information displayed in the interface displaying the virtual scene can be improved, the resource utilization of the electronic device can be improved, and the user can intuitively know whether the marking function is turned on, thereby improving the user's gaming experience.
[0192] In some embodiments, when the marking function is enabled and the first marking includes a guide line, a path line corresponding to the drag operation can be generated in response to a drag operation on the guide line. The path line uses the first position as the path starting position and the direction of the drag operation as the path direction, and the path line is determined as the path guidance information. From the user's perspective, this is equivalent to extending the guide line, and the extended guide line becomes the path line.
[0193] In some embodiments, during the process of performing a drag operation on a guide line, a path line corresponding to the drag operation is synchronously generated. Based on the generated path line, in response to a first trigger operation on a second marking control, the path end position of the path line is marked, and the path line including the path end position is determined as path guidance information.
[0194] In some embodiments, during the process of performing a drag operation on the guide line, a path line corresponding to the drag operation is synchronously generated. Based on the generated path line, in response to a trigger operation on a third marking control, the path direction of the path line is marked, and the moving direction of the crosshairs and the marked path direction are determined as the path direction in the path guidance information.
[0195] Of course, in response to the first trigger operation on the second marking control, the path direction of the marked path line can be determined as the path direction in the path guidance information by marking the path direction of the crosshairs and the marked path direction. For details, please refer to the corresponding instructions and will not be repeated here. In this way, it is possible to generate a path line by dragging the guide line, which is equivalent to the path guidance method provided in the embodiment of the present application. It can generate a path line in a variety of ways, which can enrich the interaction mode, and the generated path line meets the actual usage needs of the user, which can improve the accuracy of guiding the virtual object to take action.
[0196] In some embodiments, after marking the first position, in response to a movement instruction for the crosshair, the movement of the crosshair is controlled, following the movement trajectory of the crosshair, and a corresponding path line is synchronously generated. The path line uses the first position as the path starting position and the movement direction of the crosshair as the path direction, and the path line is determined as path guidance information. In this way, it is possible to generate a path line by controlling the movement of the crosshair, which is equivalent to the path guidance method provided in the embodiments of the present application. It can generate a path line in multiple ways, enriching the interaction methods, and the generated path line meets the actual usage needs of the user, which can improve the accuracy of guiding the virtual object to perform actions.
[0197] In some embodiments, when the user is drawing a path, there are obstacles in the drawn path. The following is explained in conjunction with the crosshairs. In response to the obstacle in the movement trajectory of the crosshairs, at least one candidate path line that avoids the obstacle is automatically generated.
[0198] Among them, the obstacle can be a location that the virtual object can reach or a location that the virtual object cannot reach. For obstacles that the virtual object can reach, it can be determined whether the virtual object is suitable for reaching the obstacle by combining one or more of the virtual object's virtual props, the virtual object's attribute values, and the virtual object's virtual vehicle, that is, whether the virtual object passes through the obstacle during the course of the action. In other words, in the path guidance method provided in the embodiment of the present application, the obstacles that are automatically avoided are obstacles that are not suitable for the virtual object to pass through or obstacles that the virtual object cannot reach.
[0199] Obstacles can be one or more of virtual terrain obstacles, virtual buildings, virtual plants, environmental obstacles, and pre-set obstacles. Virtual terrain obstacles in a virtual scene can include cliffs, rivers, swamps, and the like. Environmental obstacles can include fog, gases that negatively impact the attributes of virtual objects, flames, and the like. Pre-set obstacles can include non-player characters, virtual traps that move in a pre-set manner, and can be configured based on actual usage requirements.
[0200] For example, if the obstacle is gas that negatively impacts the virtual object's attribute value, the virtual object can reach the area corresponding to the gas. However, if the virtual object's movement within the gas area exceeds a fifth preset duration, the virtual object will be defeated, indicating that the virtual object is unsuitable for reaching the obstacle. Therefore, the virtual object can be determined not to pass through the obstacle, and a candidate path line for avoiding the obstacle can be automatically generated. In other words, whether to avoid an obstacle can be determined based on the virtual object, thereby improving the user's gaming experience.
[0201] The candidate path line can be determined by one or more of obstacles, a map of the virtual scene, a virtual vehicle held by the virtual object, and the moving speed of the virtual object, for example, see Figure 18 , Figure 18 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 Fourth, in response to the presence of obstacle 1802 in the moving trajectory of the crosshair, two candidate path lines are automatically generated to avoid obstacle 1802 , and the two candidate path lines include candidate path line 1804 and candidate path line 1805 .
[0202] Candidate path line 1804 starts at position 1801 and ends at position 1803. Candidate path line 1805 starts at position 1801 and ends at position 1803. In this way, the user-drawn path can be automatically adjusted to avoid obstacles in the virtual scene based on the user's actual needs, thereby improving the accuracy of path guidance information and the accuracy of guiding virtual objects to move.
[0203] In some embodiments, all generated candidate path lines can be determined as path guidance information. In some embodiments, to further enhance the user's gaming experience, in response to a selection operation for a target path line from at least one candidate path line, a target path line is determined as path guidance information. The number of target path lines can be less than or equal to the number of selected path lines, and can be determined based on the user's actual usage requirements. In this way, candidate path lines can be automatically generated for user selection, and the candidate path lines avoid obstacles in the virtual scene. In other words, the generated candidate path lines are more accurate, and the user can select a precise target path line based on actual usage requirements, thereby improving the accuracy of the path guidance information and the accuracy of guiding the virtual object's actions.
[0204] In some embodiments, there are multiple candidate route lines, and recommended information for each candidate route line is displayed. The recommended information is determined based on one or more of the length, duration, difficulty, and virtual vehicle of the candidate route line.
[0205] The difficulty of a candidate path line can be determined based on one or more of the complexity of the terrain involved in the candidate path line, the density of obstacles, the dangerousness of the environment, the number of non-player characters, the number of other virtual objects that may appear (virtual objects in different teams), the movement speed of virtual objects, and the combat capabilities of virtual objects.
[0206] In some embodiments, the recommendation information may be a recommendation value determined based on the length, duration, difficulty, types of virtual vehicles, and corresponding weights. For example, the recommendation information includes the length of the candidate path line and the duration of the candidate path line. The length of the candidate path line may be converted into a length fraction, and the length fraction may be multiplied by the length weight to obtain a first product. The duration of the candidate path line may be converted into a duration fraction, and the duration fraction may be multiplied by the duration weight to obtain a second product, thereby determining the sum of the first product and the second product as the recommendation value.
[0207] For example, see Figure 19 , Figure 19 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 5. Take over Figure 18 , recommendation information 1901 for candidate route line 1804 and recommendation information 1902 for candidate route line 1805 can be displayed. Recommendation information 1901 is "short duration, low difficulty," meaning that the duration and difficulty of moving to the destination position based on candidate route line 1804 are short. Recommendation information 1902 is "recommended to use virtual vehicle 1903," meaning that it is recommended to use virtual vehicle 1903 when moving to the destination position based on candidate route line 1805.
[0208] The recommended virtual vehicles can be those owned by the virtual subject. This allows for the recommendation of candidate routes based on the virtual subject's own virtual vehicles, enhancing the user's gaming experience. The recommended virtual vehicles can also be those not owned by the virtual subject. This allows the virtual subject to be guided in searching for the virtual vehicle within the virtual scene, thereby stimulating the user's gaming interest.
[0209] In some embodiments, based on the recommendation information, in response to the selection operation of the target path line from multiple candidate path lines, the target path line is determined as the path guidance information. In this way, the recommendation information can assist the user in selecting the target path line from multiple candidate path lines, which can improve the diversity of information displayed in the interface of the virtual scene, improve the accuracy of the path guidance information, and improve the accuracy of guiding virtual objects to take actions.
[0210] against Figure 3In step 102, the generated path guidance information is used to guide the virtual object along the path direction based on the path starting position. In other words, the path guidance information is used to guide the virtual object along the path line (target path line). The action can be set based on actual usage needs. For example, the action can be for the virtual object to board a vehicle, such as "Get in the car quickly."
[0211] The action can also be to obtain virtual props for the virtual object, or to pay attention to the presence of hostile virtual objects. The hostile virtual objects can be non-player virtual objects or virtual objects belonging to different teams. The action can also be one or more of moving to the target area, defending at the corresponding position, searching at the corresponding position, and supporting the virtual object at the corresponding position. The specific settings can be based on actual usage requirements. No specific limitations are given here. Through step 102, path guidance information can be generated. The path guidance information is used to guide the virtual object to take action, which is equivalent to accurately guiding the virtual object to take action, which can improve the user's gaming experience.
[0212] Continue to see Figure 3 , in step 103, path guidance information is sent to the virtual object.
[0213] In some embodiments, after the path guidance information is generated, the terminal corresponding to the current virtual object may send the path guidance information to the server, and then the server may send the path guidance information to the terminal corresponding to the virtual object.
[0214] In some embodiments, in the case of marking a first virtual object and thus marking a first location, path guidance information can be sent to the first virtual object. In this way, the current virtual object can send path guidance information to a certain virtual object, so that the first virtual object can perform an action based on the path guidance information. The actions can be described above and will not be repeated here. In this way, it is equivalent to commanding a certain virtual object to perform a corresponding action, thereby enriching the interaction between virtual objects. The path guidance information includes a precise path line, which can more clearly guide the first virtual object to perform the action, reduce the difference in understanding of the action between different users, and improve the accuracy of the virtual object's actions in the virtual scene, which can solve Technical Problem 2. For team (i.e., team) collaborative games, virtual objects in the same team can be divided into different tasks to perform actions, thereby improving the user's gaming experience and solving Technical Problem 3.
[0215] In some embodiments, path guidance information can be sent to virtual objects in the same team as the virtual object controlled by the current player object. The path guidance information includes precise path lines, which can more clearly guide the virtual objects in the same team to perform actions, reduce the understanding deviation of different users regarding actions, improve the accuracy of virtual objects in virtual scenes, improve the coordination of virtual objects in the same team in performing actions, and improve the consistency of team collaboration. In the face of complex virtual scenes or high-intensity interactive environments, the path guidance method provided in the embodiments of the present application can adapt to rapidly changing game needs, improve team collaboration efficiency, improve resource utilization of electronic devices, and improve user gaming experience, and can solve technical problems 2 and 3.
[0216] In some embodiments, path guidance information is sent to a second virtual object that is in the same team as the current virtual object controlled by the current player object, and the distance between the second virtual object and the first position is less than or equal to a distance threshold. The distance threshold can be set according to actual usage requirements. The path guidance information includes a precise path line, which can more clearly guide the second virtual object that is in the same team and is closer to perform actions, reduce the understanding deviation of different users on actions, improve the accuracy of the second virtual object in performing actions in the virtual scene, improve the coordination of the second virtual object in the same team in performing actions, and improve the consistency of team collaboration. In the face of complex virtual scenes or high-intensity interactive environments, the path guidance method provided in the embodiments of the present application can adapt to rapidly changing game requirements, improve team collaboration efficiency, improve resource utilization of electronic devices, and improve user gaming experience, and can solve technical problems 2 and 3.
[0217] In some embodiments, in the case of marking virtual props, after the target mark is generated, a fourth prompt information for indicating the direction of the third virtual object can be displayed. In response to the path drawing operation triggered based on the target mark, the first position is used as the starting position of the path, and path guidance information including the path direction is synchronously generated. The path direction can be pointed from the direction of the third virtual object to the starting position of the path, and then the path guidance information and the prop information of the virtual props can be sent to the third virtual object. The third virtual object does not have virtual props.
[0218] The item information of a virtual item can include one or more of the following: the item's name, icon, description, function information, usage conditions, attribute information, interaction information, and price information. The usage conditions can include the conditions that must be met by the virtual object to use the virtual item, such as requiring the virtual object to reach level 10 before it can be used. Attribute information can include the item's level, whether it increases the virtual object's attribute value, and so on. Interaction information can include one or more of how the virtual object triggers the item's function and how the virtual item interacts with the virtual environment. The specific configuration can be based on actual usage requirements and is not specifically limited here.
[0219] In some embodiments, after generating the path line, the path direction can be set, and the path direction can point to the starting point of the path, and then the path guidance information can be obtained. The path guidance information and the prop information of the virtual props can be sent to the third virtual object, wherein the third virtual object may not have any virtual props, or may not have the marked virtual props, which are all reasonable. In this way, the third virtual object can be assisted in obtaining virtual props, and the interaction method between virtual objects can be improved. For team (team) games, the combat capability of the entire team can be improved, thereby improving the user's gaming experience.
[0220] In some embodiments, in response to an instruction to send path guidance information, at least one candidate virtual object is displayed, and in response to a trigger operation on a target virtual object among the candidate virtual objects, the path guidance information is sent to the target virtual object.
[0221] In some embodiments, the number of target virtual objects can be one or more. In response to an instruction to send path guidance information, multiple candidate virtual objects can be displayed. In response to a selection operation on the displayed multiple candidate virtual objects, the selected candidate virtual object can be controlled to be in a selected state. In response to a confirmation instruction for the candidate virtual object in the selected state, the candidate virtual object in the selected state can be determined as the target virtual object, and then the path guidance information can be sent to the target virtual object.
[0222] In some embodiments, when multiple candidate virtual objects are displayed, object information for the candidate virtual objects can be displayed. The object information may include one or more of the candidate virtual object's name, status, virtual props held, and virtual vehicles possessed. Based on the object information of the candidate virtual object, in response to a selection operation for the displayed multiple candidate virtual objects, the selected candidate virtual object can be controlled to be in a selected state. In response to a confirmation instruction for the candidate virtual object in the selected state, the candidate virtual object in the selected state can be determined as the target virtual object, and path guidance information can be sent to the target virtual object. In this way, the user can select the object to which the target guidance information is sent according to actual usage needs, which can improve the richness of the interaction and the accuracy of guiding the virtual object to perform actions, thereby improving the user's gaming experience.
[0223] In the path guidance method provided in an embodiment of the present application, a target mark can be generated at the first position in response to a marking operation on a first position in a virtual scene. In response to a path drawing operation triggered based on the target mark, path guidance information including the path direction is synchronously generated with the first position as the path starting position. The path guidance information is used to guide the virtual object to move along the path direction based on the path starting position, and the path guidance information is sent to the virtual object.
[0224] The path guidance method provided in the embodiment of the present application can generate path guidance information through a path drawing operation after marking the first position. Compared with related technologies, this method can enable users to draw path guidance information according to actual usage needs, enrich the human-computer interaction mode, and improve the resource utilization of electronic devices. After the path guidance information is assigned to a virtual object, the user corresponding to the virtual object can obtain the path guidance information. The path guidance information can guide the virtual object to move along the path direction based on the starting position of the path. Compared with related technologies, it can improve the accuracy of guiding the virtual object to perform actions, thereby improving the user's gaming experience. The path guidance information includes not only the starting position of the path, but also the path direction, which can enrich the diversity of information displayed in the virtual scene, improve the resource utilization of the electronic device, and solve Technical Problem 1.
[0225] In some embodiments, in order to further improve the accuracy of guiding the virtual object to perform actions, Figure 3After step 102 shown, in response to the attribute setting instruction for the path guidance information, the functional attributes of the path guidance information are set so that the path guidance information has a target function, and the target function is used to indicate the target of the action. In this way, the accuracy of guiding virtual objects to perform actions can be further improved, and the understanding deviation of different users for path guidance information can be eliminated. For team (i.e., team) collaboration games, the coordination of virtual objects in the same team to perform actions can be improved, and the consistency of team collaboration can be improved. In the face of complex virtual scenes or high-intensity interactive environments, the path guidance method provided in the embodiment of the present application can adapt to rapidly changing game needs, improve team collaboration efficiency, improve the resource utilization of electronic devices, and improve the user's gaming experience, which can solve technical problems 2 and 3.
[0226] In some embodiments, in response to a selection operation on the path guidance information, a text editing area can be displayed. In response to a text input operation on the text editing area, an attribute setting instruction of the path guidance information can be triggered. The functional attributes of the path guidance information can be set to the text input by the user. The input text is the text for performing the corresponding action, which is equivalent to setting the functional attributes of the path guidance information so that the path guidance information has a target function. The target function is used to indicate the target of the action. The action can refer to the above description.
[0227] For example, a target function can be used to instruct a virtual object to defeat a hostile virtual object, where the hostile virtual object can be a non-player object or a virtual object belonging to another team. The functional information corresponding to the target function may include: the location of the hostile virtual object, the number of hostile virtual objects, and the virtual props of the hostile virtual objects. In this way, the target function can be set through text input, thereby further improving the accuracy of guiding the virtual object to perform actions.
[0228] In some embodiments, in response to an instruction to set attributes for path guidance information, a voice input function may be turned on; in response to receiving a voice, text content corresponding to the voice may be displayed; and in response to a determination operation on the text content, the function represented by the text content may be determined as a target function. In this way, the target function may be set through voice input, thereby further improving the accuracy of guiding virtual objects to perform actions.
[0229] In some embodiments, in response to a triggering operation on any position of a path line corresponding to the path guidance information, an attribute setting instruction for the path guidance information can be triggered. In response to the attribute setting instruction for the path guidance information, multiple candidate functions for the path guidance information are displayed. In response to an operation selecting a target function from the multiple candidate functions, the functional attributes of the path guidance information are set to the target function. In this way, the user does not need to manually enter the target function, but can instead set the target function through selection, thereby further improving the accuracy of guiding virtual objects to perform actions, enriching the diversity of information displayed on the virtual scene interface, and enhancing the user's gaming experience.
[0230] In some embodiments, in response to an instruction to set attributes for route guidance information, a virtual wheel is displayed, and a plurality of candidate functions for the route guidance information are displayed on the virtual wheel, wherein the virtual wheel can be rotated to select a candidate function. In response to a selection operation for a target function on the virtual wheel, the function attribute of the route guidance information is set to the target function.
[0231] In some embodiments, a selection component is provided corresponding to the virtual roulette wheel. The selection component can be one or more of a virtual pointer, a virtual circle, and a virtual square. The selection component is fixed. In response to a rotation instruction for the virtual roulette wheel, the function selected by the selection component can be changed. In response to the virtual roulette wheel stopping rotation, the selection component is controlled to select the target function. In response to the selection operation of the target function in the virtual roulette wheel, the functional attribute of the path guidance information is set to the target function.
[0232] In some embodiments, the virtual wheel can be fixed, and in response to a movement instruction for the selection component, the selection component is controlled to select a target function. In response to a selection operation for the target function in the virtual wheel, the functional attribute of the path guidance information is set to the target function.
[0233] In some embodiments, in response to pressing any position on the route line for a sixth preset duration, an instruction for setting attributes for the route guidance information may be triggered, and a virtual wheel and a press icon may be displayed. During the pressing operation, based on the virtual wheel, in response to a drag operation on the press icon, the press icon may be controlled to move to the display area of the target function, controlling the target function to be selected. In response to the selection operation of the target function on the virtual wheel, the functional attributes of the route guidance information are set to the target function. The selected state may be represented by one or more of a color mark that distinguishes it from other functions, a bold display, or a special effect mark that distinguishes it from other functions, and the specific setting may be based on actual usage requirements.
[0234] For example, see Figure 20 , Figure 20This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 Sixth, a path line 2002 with position 2001 as the starting point of the path can be displayed (equivalent to displaying generated path guidance information), and in response to a pressing operation on position 2001, and the duration of the pressing operation reaches a sixth preset duration, a virtual wheel is displayed (in Figure 20 (not numbered in the middle).
[0235] The virtual roulette displays multiple candidate functions of the path guidance information, including "attack," "defend," "gather," "need props," "need medicine," "get in the car," and "someone's been here." "Attack" is used to instruct the virtual object to attack a certain location in the virtual scene based on the path guidance information. "Defend" is used to instruct the virtual object to defend a certain location in the virtual scene based on the path guidance information. "Gather" is used to instruct the virtual object to gather at a certain location based on the path guidance information.
[0236] "Need props" is used to instruct the virtual object to deliver virtual props to a certain place in the virtual scene. "Need medicine" is used to instruct the virtual object to support a virtual object located somewhere in the virtual scene, where the medicine is a virtual medicine that can be used to increase the attribute value of the virtual object. "Get in the car" is used to instruct the virtual object to move to a certain place in the virtual scene to take a car (i.e., a virtual vehicle), and "Someone has been here" is used to instruct the hostile virtual object to move in the virtual scene according to the path guidance information. "Cancel" is also displayed in the virtual roulette, and Cancel is used to turn off the marking function.
[0237] exist Figure 20 In the example, during a pressing operation, based on the virtual wheel, in response to a drag operation on the pressing icon 2003, the pressing icon 2003 can be controlled to move to the display area of "Get on the bus" (the target function), and "Get on the bus" can be displayed in bold, which is equivalent to controlling "Get on the bus" to be selected. In response to the selection operation of "Get on the bus" in the virtual wheel, the functional attribute of the route guidance information is set to "Get on the bus". In this way, the target function can be selected through the virtual wheel, which can increase the diversity of interaction methods, further improve the accuracy of guiding virtual objects to perform actions, and enrich the diversity of information displayed on the virtual scene interface, thereby improving the user's gaming experience.
[0238] In some embodiments, in response to a selection operation for canceling in the virtual wheel, the marking function can be turned off, and the display of the virtual wheel and the generated path guidance information can be canceled. In this way, the user can turn off the marking function according to actual usage needs.
[0239] In some embodiments, in response to the crosshairs moving to any position of the path line in the path guidance information, in response to the triggering operation of the first marker control, a virtual roulette wheel can be displayed. In this way, the virtual roulette wheel can be displayed by the first marker control, which can enrich the interaction method.
[0240] After setting the target function for the path guidance information, the path guidance information including the target function can be sent to the virtual object. In this way, the accuracy of guiding the virtual object to perform actions can be further improved, and the understanding deviation of different users regarding the path guidance information can be eliminated. For team (i.e., team) collaborative games, the coordination of virtual objects in the same team in performing actions can be improved, and the consistency of team collaboration can be improved. In the face of complex virtual scenes or high-intensity interactive environments, the path guidance method provided in the embodiment of the present application can adapt to rapidly changing game needs, improve team collaboration efficiency, improve the resource utilization of electronic devices, and improve the user's gaming experience, which can solve technical problems 2 and 3.
[0241] In some embodiments, after synchronously generating path guidance information including path directions, the path guidance information can be displayed on a map, where the map can be a large map and a small map. The large map is used to display the complete virtual scene, allowing users to understand the location of virtual objects in the virtual scene at a more macro level. In other words, the large map is a global view of the virtual scene, generally showing the macro layout of the entire game world (virtual scene), including terrain, cities, levels, resource points, mission areas, etc. It provides players with an overall overview of the game world.
[0242] The minimap is used to display a partial view of the virtual scene. The displayed minimap is based on the location of the virtual object, allowing users to understand the virtual object's position in the virtual scene at a relatively microscopic level. In other words, the minimap displays detailed information about the virtual object's current location, including terrain, buildings, hostile virtual objects, and virtual objects belonging to the same team within the preset range of the virtual object's location. The minimap can provide real-time information about the local environment.
[0243] In some embodiments, for the current virtual object of the current player object and the virtual object that receives path guidance information, path guidance information can be displayed in the mini-map when a mini-map is displayed in the virtual scene. Among them, the path guidance information displayed in the mini-map is more complete than the path guidance information displayed in the virtual scene. In this way, the diversity of information displayed in the interface of the virtual scene can be improved, and the user corresponding to the virtual object can obtain the path guidance information. The path guidance information can guide the virtual object to move along the path direction based on the starting position of the path. Compared with related technologies, it can improve the accuracy of guiding the virtual object to perform actions.
[0244] For example, see Figure 21 , Figure 21 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 Seventh, path guidance information 2103 guiding virtual object 2101 can be displayed in virtual scene 2102. Path guidance information 2103 can be represented by arrows and pattern-filled squares, allowing the user to intuitively understand the direction virtual object 2101 is moving from its current location. A mini-map 2104 is displayed in virtual scene 2102, and path guidance information can be displayed on mini-map 2104. Virtual object 2101 can be the current virtual object or another virtual object, and the specific setting can be based on actual usage requirements.
[0245] Combine Figure 21 It can be seen that the display styles of the path guidance information displayed in the virtual scene and the path guidance information displayed in the small map can be different, so that the virtual object can perform actions in combination with the path guidance information in multiple display styles, thereby improving the accuracy of guiding the virtual object to perform actions.
[0246] In some embodiments, the path guidance information corresponds to the current player object, and the object identifier of the current player object is displayed on the minimap, with the display style of the object identifier being consistent with the display style of the path guidance information. Path guidance information and corresponding object identifiers of other player objects are displayed on the minimap, and different path guidance information is displayed in different styles.
[0247] Among them, the current player object corresponds to the current virtual object, and other player objects correspond to other virtual objects. Depending on the game, other player objects can also be player objects corresponding to other virtual objects belonging to the same team as the current virtual object. Other player objects can also be player objects corresponding to virtual objects other than the current virtual object and non-player virtual objects.
[0248] Among them, the object identifier can be one or more of the name, image, and animation of the player object, and can be set according to actual usage requirements. The display style of the object identifier is consistent with the display style of the path guidance information, which means that the colors used by the two are consistent, the line styles used by the two are consistent, the shapes used by the two are consistent, etc., which can be set according to actual usage requirements and are not specifically limited here.
[0249] For example, see Figure 22 , Figure 22 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 8. The object identifier 2204 of the current player object is displayed in the minimap 2201. The shape of the object identifier 2204 is consistent with the shape of the target identifier 2203 that identifies the starting point of the path in the path guidance information. The object identifier 2204 is a dotted line, and the path line 2202 in the path guidance information is also a dotted line. That is to say, the display style of the object identifier 2204 is consistent with the display style of the path guidance information.
[0250] The path guidance information of other player objects and the corresponding object identifier 2206 are also displayed in the minimap. The object identifier 2206 is a triangle. The shape of the object identifier 2206 is different from the shape of the object identifier 2204. The shape of the object identifier 2206 is consistent with the shape of the target identifier 2205 that identifies the starting point of the path in the path guidance information. In addition, the object identifier 2206 is a solid line, and the path line 2207 in the path guidance information is also a solid line. That is to say, the display style of the object identifier 2206 is consistent with the display style of the path guidance information of other player objects.
[0251] The shape of the target identifier 2203 that identifies the starting point of the path in the path guidance information of the current player object is inconsistent with the shape of the target identifier 2205 that identifies the starting point of the path in the path guidance information of other player objects. The line style used by the path line 2202 in the path guidance information of the current player object is inconsistent with the line style used by the path line 2207 in the path guidance information of other player objects. It can be seen that the display styles of different path guidance information are inconsistent.
[0252] In the path guidance method provided in the embodiment of the present application, different display styles can be used to mark the path guidance information of different player objects, and object marks of different player objects can also be marked, so that the player objects can intuitively know the path guidance information corresponding to different player objects, which can improve the diversity of displayed path guidance information, thereby improving the user's gaming experience.
[0253] In some embodiments, after the path guidance information including the path direction is synchronously generated, prompt information can be displayed in the interface of the virtual scene. The prompt information is used to indicate that the path guidance information has been generated. In the process of displaying the prompt information, in order to facilitate the player object (i.e., the user) to obtain the path guidance information, the audio of the prompt information can be broadcast.
[0254] The text corresponding to the audio prompt message can be "Route guidance information has been generated." The text corresponding to the audio prompt message can also be determined based on the action corresponding to the route guidance information. For example, if the action is "gather," the text corresponding to the audio prompt message can be "gather at the target location." Specific settings can be made based on actual usage needs.
[0255] In some embodiments, the audio of broadcasting prompt information means that the audio of the prompt information can be broadcast to virtual objects belonging to the same team as the current virtual object, that is, other player objects belonging to the same team as the current player object can hear the audio of the prompt information.
[0256] In some embodiments, the audio of the broadcast prompt information means that the prompt information can be broadcast to virtual objects whose distance from the first position is less than or equal to the distance threshold, that is, other player objects whose distance from the virtual objects of the first position is less than or equal to the distance threshold can hear the audio of the prompt information.
[0257] See also Figure 23 , Figure 23 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 10 9. After generating the path guidance information, Figure 23 The path line 2302, which only marks the path guidance information, can display a prompt message 2303 in the interface of the virtual scene. The prompt message 2303 can be "Player object 2301 marks a path". The player object 2301 can be the current player object or other player objects. The specific setting can be made according to actual usage requirements.
[0258] During the display of "Player object 2301 has marked a path," an audio prompt message may be broadcast, and the text corresponding to the audio prompt message may be "Your teammate has marked a path." In the path guidance method provided in the embodiments of the present application, the audio of the displayed prompt message and the audio of the broadcast prompt message may be the same or different, and may be set according to actual usage requirements. In this way, the diversity of information displayed in the virtual scene interface can be enriched, and the ways in which player objects obtain path guidance information can be enriched, so that the accuracy of guiding virtual objects to perform actions in the virtual scene can be improved, thereby enhancing the user's gaming experience.
[0259] In some embodiments, in response to receiving target path guidance information sent by other virtual objects, the target path guidance information is displayed including a target path line, and based on the target path line, in response to a control instruction for the current virtual object, the current virtual object is controlled to perform the target action corresponding to the target path guidance information.
[0260] In some embodiments, in response to the distance between the current virtual object and the target path line being greater than a first distance threshold, indicating that the current virtual object is not located on the target path line, in order to guide the current virtual object to move to the target path line, the distance between the current virtual object and a second position can be displayed. The second position is any position in the target path line whose distance from the current position is less than the second distance threshold.
[0261] The second distance threshold is greater than the first distance threshold. The second position may be the position on the target path line with the smallest distance from the current position. The second position may also be any position within an area of the target path line with a distance from the current position less than the second distance threshold. The second position may also be the starting position of the path. The specific setting can be based on actual usage requirements.
[0262] In some embodiments, the target path guidance information includes the target path endpoint. In response to the distance between the current virtual object and the target path line being less than or equal to a first distance threshold, indicating that the current virtual object is not located on the target path line, the distance between the current virtual object and the target path endpoint can be displayed to guide the current virtual object to perform an action. In this way, the accuracy of guiding the virtual object to perform an action can be improved, thereby enhancing the user's gaming experience. The path guidance information includes not only the path starting position but also the path direction, which can enrich the diversity of information displayed in the virtual scene and improve the resource utilization of the electronic device.
[0263] The following describes the path guidance information provided in the embodiments of the present application. Path guidance information can be visual guidance information. Visual guidance information can be displayed as arrows, lines, or light spots on the virtual ground. This makes the path guidance information intuitive and easy to understand. Multiple paths are preset in the virtual scene, and any one of the multiple paths can be highlighted. The highlighted path is the visual guidance information, which can help players more quickly learn the recommended path. Visual guidance information can also be provided as prompts for virtual elements in the virtual scene. These virtual elements can be flags, road signs, bonfires, etc. Guiding through virtual elements can enhance the player's sense of immersion in the game.
[0264] The path guidance information can also be displayed on a virtual map. The path guidance information can be a path displayed in the virtual map. The virtual map can be an interface displayed on a virtual scene using a floating layer or a movable window, or can be displayed through a map display instruction.
[0265] The path guidance information can also be audio, which can be the direction of movement of the virtual object through character voice or navigation voice. The audio can also be ambient sound effects, which can be the sound of wind or water. In this way, players can be guided to focus more on the game screen, perceive the virtual environment through hearing, and increase the immersion in the game.
[0266] Path guidance information can also include obstacle guidance information, which displays the direction of movement of the virtual object by setting obstacles to guide the virtual object to a preset position. Path guidance information can also display the distance between the virtual object and the preset position, or a progress bar that displays the progress of the virtual object's movement to the preset position.
[0267] The path guidance method provided in the embodiments of the present application can generate path guidance information through a path drawing operation after marking a first position. Compared to related technologies, this method enables users to draw path guidance information based on actual usage needs, enriching human-computer interaction methods and improving resource utilization of electronic devices. After the path guidance information is assigned to a virtual object, the user corresponding to the virtual object can obtain the path guidance information. The path guidance information can guide the virtual object to move along the path direction based on the path starting position. Compared to related technologies, this method can improve the accuracy of guiding the virtual object to perform actions, thereby improving the user's gaming experience. The path guidance information includes not only the path starting position but also the path direction, which can enrich the diversity of information displayed in the virtual scene and improve the resource utilization of the electronic device.
[0268] In order to facilitate understanding of the path guidance method provided in the embodiment of the present application, the relevant technologies and the path guidance information provided in the embodiment of the present application are explained below. Taking team (i.e., team) collaboration games as an example, player objects in the same team need to communicate with each other. With respect to the relevant technologies, users can mark locations in the virtual scene according to actual usage needs. The marked locations can be sent to the virtual objects in the virtual scene, so that the users corresponding to the virtual objects can know the marked locations in the virtual scene.
[0269] The related technical method of marking locations cannot accurately convey the path, and the marked location cannot clearly indicate the action performed at the location, resulting in deviations in the understanding of the marked location by different users, reducing the accuracy of guiding virtual objects to perform operations in virtual scenes. The actions performed by virtual objects corresponding to different users are inconsistent, which affects the coordination of actions performed by virtual objects in the same team, resulting in limited team collaboration. When faced with complex virtual scenes or high-intensity interactive environments, the existing technical method of marking locations cannot adapt to the rapidly changing game needs, resulting in inefficient team collaboration and reduced user gaming experience.
[0270] The following combination Figure 24 The path guidance method provided in the embodiment of the present application is described by way of example. Figure 24 , Figure 24 This is a schematic diagram of the process of the path guidance method provided in the embodiment of the present application. Figure 3 In step 2401, in response to a pressing operation on a first mark control, a marking function is turned on and a target mark is generated at a first position aimed at by the crosshairs.
[0271] For step 2401, the current player object activates the marking function by long pressing the first marking control. At this time, the system will generate a target mark at the first position where the crosshair is aimed. The first position is the starting position of the path. For example, see Figure 25 , Figure 25 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 10. In response to a pressing operation on the first mark control 2501, the marking function can be turned on to generate a target mark 2502 at the first position aimed at by the crosshairs.
[0272] exist Figure 25 In the game, the presence of a guide line on the target mark allows the current player to create a guide line in the 3D virtual space. This guide line can be used to determine the path direction of the path guidance information. After the current player marks the guide line, the direction of the guide line can be further adjusted to determine the path direction of the path guidance information.
[0273] In step 2402, during the pressing operation, based on the target marker, in response to the drag operation on the first marker control, the crosshair is synchronously moved in the virtual scene. For step 2402, please refer to the above description of the corresponding position, which will not be repeated here.
[0274] In step 2403, following the movement trajectory of the crosshair, a corresponding path line is synchronously generated, and based on the generated path line, in response to the first trigger operation on the second marking control, the path end position of the path line is marked.
[0275] For step 2403, after the current player object determines the starting point of the path, it needs to move the crosshairs to adjust the direction of the guide line. By precisely controlling the position at which the crosshairs are aimed, the current player object can adjust the direction of the guide line in real time to ensure that the direction of the guide line is consistent with the tactical direction expected by the current player object (i.e., the path direction corresponding to the action).
[0276] As the guide line moves, the system dynamically displays the direction changes, allowing the current player to intuitively understand the direction the guide line is pointing. When adjusting the guide line, the current player can switch between two marking modes to complete the marking. Step 2403 corresponds to the first marking mode, which closes the guide line to the end point of the path, forming a closed path guidance information.
[0277] For example, see Figure 26 and Figure 27 , Figure 26 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 eleven, Figure 27 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 Twelve, in Figure 26 In the example, following the moving track of the crosshair, a corresponding path line 2601 is synchronously generated. When the corresponding path line is generated, a second mark control 2602 and a close control 2603 may be displayed.
[0278] exist Figure 27 In response to the first trigger operation on the second marking control 2602, the path end position 2701 of the path line is marked. Figure 27 As shown, the method shown in step 2403 can close the guide line and the path end position to form a closed path guidance information.
[0279] Combined with step 2403, it can be seen that when the player selects "Close at the landing point" (corresponding to the second mark control), the system automatically identifies the end point of the guide line and connects it to the starting point of the path to form a closed path guidance information. At this time, the path guidance information will accurately display the starting point position, the end point position, and the direction of the path according to the player's operation. In response to the current player object releasing the finger, that is, in response to the pressing operation being released, the path guidance information is locked and takes effect immediately, and steps 2405 and 2407 can be executed.
[0280] In step 2404, following the movement trajectory of the crosshair, a corresponding path line is synchronously generated, and based on the generated path line, in response to a trigger operation on the third marking control, the path direction of the path line is marked.
[0281] Regarding step 2404, step 2404 corresponds to the second marking mode, that is, marking the path direction, that is, the guide line points to the path direction, which can clearly indicate that the target point corresponding to the path direction is the reference position for subsequent actions. When the current player object selects "Indicate to the landing point" (corresponding to the third marking control), the system automatically identifies the direction of the crosshairs compared to the starting position of the path and marks the path direction. At this time, the path guidance information will display the starting position of the path and the marked path direction, without the need to specify the end position of the path.
[0282] As the current player adjusts the direction of the crosshairs relative to the path's starting position, the system provides real-time feedback on the change in path direction, ensuring the accuracy of the marked path direction. In response to the current player releasing their finger, that is, in response to the pressing operation being released, the path guidance information is locked, and steps 2406 and 2407 can be executed.
[0283] See also Figure 28 , Figure 28 This is a schematic diagram of the virtual scene provided by the embodiment of the present application. Figure 2 Thirteen, following the moving trajectory of the crosshair, synchronously generate a corresponding path line 2801, based on the generated path line 2801, in response to the trigger operation of the third marking control 2802, mark the path direction of the path line (i.e. Figure 28 the direction the arrow points to).
[0284] In step 2405, the path line including the path endpoint is determined as path guidance information. In step 2406, the path line including the marked path direction is determined as path guidance information. In step 2407, the path guidance information is sent to the virtual object.
[0285] In step 2408, in response to the attribute setting instruction for the route guidance information, the functional attributes of the route guidance information are set so that the route guidance information has a target function, which is used to indicate the target of the action. For details about step 2408, please refer to the corresponding description of the virtual roulette and are not specifically limited here.
[0286] In some embodiments, in response to releasing the pressing operation, the three-dimensional vector (i.e., the path guidance information) is marked. At this point, the current player object can move the crosshairs to the path starting point. Long pressing the path starting point will display a virtual roulette wheel that displays multiple candidate functions of the path guidance information. When the current player object completes and confirms the selection, in response to the selection operation of the target function on the virtual roulette wheel, the function attribute of the path guidance information is set to the target function.
[0287] In the path guidance method provided in the embodiment of the present application, the current player object can select a specific teammate (first virtual physics), object (virtual prop) or position (first position) and assign directional instructions (i.e., path guidance information) to it.
[0288] For example, for a first virtual object, the current player simply needs to adjust the marker to the first virtual object's corresponding position, then select the corresponding path direction and target function. The first virtual object can then understand complex tactics based on the path guidance information and target function. This method can effectively distinguish and convey targeted tactical intentions, making instructions clearer and easier to understand.
[0289] The path guidance method provided in the embodiments of the present application can be combined with automatic pathfinding to automatically plan multiple path directions based on the terrain characteristics of complex maps. It can intelligently analyze the structure of the map, taking into account obstacles and terrain changes, generate a target path line, and display it for the current player object. For the current player object, it only needs to select the starting point of the path and mark the path direction, and multiple candidate path lines will be automatically displayed, so that the target path line can be selected, which can improve the user's gaming experience.
[0290] The path guidance method provided by the embodiment of the present application is described below: 1. Select the marked starting point: When the player (user) needs to convey tactical instructions in the game, first select the marked starting point (i.e., the path starting point). By clicking the mark tool button (the first mark control), the marking function can be enabled, allowing the player to select the starting point in the game interface. After the player selects the starting point, the coordinates of the location will be automatically recorded, and preliminary parameters will be generated for the subsequent marked path.
[0291] 2. Drag a guideline to generate a marker's direction: After enabling the marker function, players can drag their controller or mouse to generate a guideline between the starting point and the end point of the path, determining the marker's path direction. The straight-line distance from the starting point to the end point is calculated in real time, and the marker's spatial position is updated using the coordinate system. Players can adjust the guideline direction at any time to ensure the marker points to the correct tactical target.
[0292] 3. Adjusting the Marked Path: Once a path is determined, players can adjust its shape or direction as needed to ensure the content conveyed by the mark meets tactical requirements. The system monitors changes to the marked path in real time and dynamically updates the interface to display the specific direction of the path. As the path is adjusted, the system automatically updates the path to ensure continuity and accuracy.
[0293] 4. Closed Path Marking or Direction Indication: After marking a path (path line), the system determines whether a closed path is formed between the marked endpoint and the starting point. If the path is closed, the system displays a three-dimensional direction indicator, indicating the path's starting point, end point, and direction. If the path is not closed, the system displays an open line from the starting point to the path direction, clearly demonstrating the marking's intended meaning.
[0294] 5. Select Marked Content (i.e., Select Target Function): After completing the path marking, the player can move the crosshairs to the marked starting point and long-press the Mark button (the first mark control) to bring up a virtual wheel displaying available candidate functions. These candidate functions typically include action instructions, target setting, tactical guidance, or canceling the mark. Once the player selects the desired instruction, the corresponding tactical content will be automatically bound and associated with the path mark. This essentially associates the path guidance information with the target function.
[0295] 6. Confirm the mark and generate a 3D vector (path guidance information): After selecting the mark, the player confirms and submits the mark to generate the final 3D vector (path guidance information). This mark not only includes the starting position, but also clearly displays the complete path and direction from the starting point to the end point, forming a complete tactical instruction for teammates to refer to. The system automatically synchronizes this marked data to the team interface to ensure timely communication and execution of information.
[0296] In the path guidance method provided in the embodiment of the present application, a tactical marking system based on a three-dimensional vector (path guidance information) is designed to solve the problem of unclear tactical instruction transmission in the related art, and the following beneficial effects are achieved: 1. Improve the accuracy of tactical instruction transmission: By combining the three-dimensional vector markings of the starting point, end point and direction, the present invention can accurately mark the tactical path and execution direction, reducing misunderstandings and wrong decisions caused by vague instructions. 2. Improve team collaboration efficiency: The marking system can clearly convey complex tactical paths, help teammates accurately understand and execute instructions in a high-intensity combat environment, avoid inconsistent actions and information loss, and thus improve the efficiency of team collaboration. 3. Adapt to complex maps and environments: The marking system of the present invention can be combined with the automatic path-finding system to automatically plan the marked path in complex maps, further simplifying the player's operation and tactical execution, and improving the intelligence and adaptability of the system. 4. Enhance the flexibility of tactical execution: Players can freely adjust the marked path and content according to tactical needs, and the system updates the marked data in real time to ensure that tactical instructions can adapt to changes in the game environment in a timely and flexible manner. 5. Improved Gaming Experience: This new marking method allows players to more efficiently communicate tactical commands. The system's automatic path planning and command delivery greatly simplify operations and enhance the player experience. Beyond the team-based collaborative games mentioned in this case study, this invention also demonstrates these beneficial effects in other systems requiring precise command and path planning.
[0297] In the path guidance method provided in the embodiment of the present application, clear and specific tactical instructions are provided to players by combining the starting point, end point and direction information. Players can pull the marker vector to not only mark the target location, but also convey the specific execution path and direction of action, thereby eliminating misunderstandings caused by inconsistent understanding. The system can adapt to complex map environments and combine the automatic pathfinding function for path planning to provide players with more intelligent and accurate navigation guidance. The transmission of tactical instructions is clearer, which effectively improves the coordination and execution of team operations, especially in high-pressure combat scenarios and complex maps, significantly reducing information ambiguity and misunderstandings in collaboration.
[0298] The combination of starting point, end point and direction information can convey more accurate and clear tactical instructions. Players can indicate the target point by pulling the marker vector while clearly marking the execution path of the target point. This is not just a mark of the target position, but a marking system that can convey the complete execution route and direction of action. The advantage of this marking system is that it makes the transmission of tactical instructions clearer and more effective, reducing misunderstandings caused by misunderstandings. In addition, the marking system of the present invention can be combined with the automatic path-finding system in the game to automatically plan the marked path. In complex maps, the automatic path-finding function can provide accurate path planning based on the terrain and complexity of the map, thereby providing players with more intelligent navigation prompts.
[0299] By combining the three-dimensional vector markings of the starting point, end point and direction, not only the accuracy of the instruction transmission is improved, but it can also automatically adapt to the path planning needs in complex map environments. Compared with the existing traditional marking system, this innovative marking method effectively reduces misunderstandings caused by ambiguous information or unclear paths, thereby improving the efficiency of teamwork and the coordination of operations. In terms of gaming experience, the significance of this invention lies in providing a more accurate and efficient way of tactical communication, helping players to accurately understand and execute tactical instructions in a rapidly evolving gaming environment. Through this new marking system, players can more easily convey complex routes of action, and further simplify the execution process of instructions through intelligent path planning. This not only improves the player's operating experience, but also creates a more efficient environment for teamwork.
[0300] The following continues to describe the exemplary structure of the path guiding device 455 provided in the embodiment of the present application as a software module. In some embodiments, such as Figure 2 As shown, the software modules stored in the path guidance device 455 of the memory 450 may include:
[0301] a response module 4551 for generating a target mark at a first position in a virtual scene in response to a mark operation on the first position;
[0302] The response module 4551 is further configured to, in response to a path drawing operation triggered by the target mark, synchronously generate path guidance information including a path direction with the first position as a path starting position;
[0303] The path guidance information is used to guide the virtual object to move along the path direction based on the starting position of the path;
[0304] The sending module 4552 is used to send the path guidance information to the virtual object.
[0305] In some embodiments, the response module 4551 is further configured to, in response to a marking operation directed to a first position in the virtual scene, display a crosshair for aiming in the virtual scene and display a first marking control before generating a target mark at the first position;
[0306] The response module 4551 is also used to turn on the marking function in response to the trigger operation of the first marking control; when the marking function is turned on, the position at which the crosshairs is aimed is used as the first position, and a target mark is generated at the first position at which the crosshairs is aimed.
[0307] In some embodiments, the response module 4551 is further configured to enable a marking function in response to a pressing operation on the first marking control;
[0308] The response module 4551 is also used to, during the execution of the pressing operation, based on the target mark, respond to the drag operation on the first mark control, determine the drag operation as a path drawing operation, and synchronously move the crosshairs in the virtual scene; follow the movement trajectory of the crosshairs, and synchronously generate a corresponding path line, the path line using the first position as the path starting position and the moving direction of the crosshairs as the path direction; and determine the path line as the path guidance information.
[0309] In some embodiments, the response module 4551 is further configured to display a second mark control in response to a pressing operation on the first mark control, wherein the second mark control is configured to mark an end point of the path line;
[0310] The response module 4551 is further configured to follow the movement trajectory of the crosshair during the drag operation and synchronously generate a corresponding path line; based on the generated path line, in response to a first trigger operation on the second marking control, mark the end point of the path line;
[0311] The response module 4551 is further configured to determine the path line including the path end position as the path guidance information.
[0312] In some embodiments, the response module 4551 is further configured to, based on the generated path line, respond to a first trigger operation on the second marking control, before marking the path end position of the path line, and then, in response to the pressing operation being released, cancel display of the generated path line and turn off the marking function;
[0313] The sending module 4552 is further configured to send the path guidance information to the virtual object in response to the pressing operation being released.
[0314] In some embodiments, the response module 4551 is further configured to display a switch control at a position associated with the second mark control; in response to a triggering operation on the switch control, switch the second mark control to a third mark control, wherein the third mark control is configured to mark a path direction of the path line;
[0315] The response module 4551 is also used to follow the movement trajectory of the crosshairs during the execution of the drag operation and synchronously generate a corresponding path line; based on the generated path line, in response to the trigger operation of the third marking control, mark the path direction of the path line; and determine the movement direction of the crosshairs and the marked path direction as the path direction in the path guidance information.
[0316] In some embodiments, the second marking control has a first marking mode and a second marking mode; the second marking control is used to mark the path end position of the path line in the first marking mode;
[0317] The response module 4551 is further configured to switch the first marking mode to the second marking mode in response to a second trigger operation on the second marking control; the second marking control is configured to mark the path direction of the path line in the second marking mode.
[0318] In some embodiments, the response module 4551 is also used to display a close control for closing the marking function in response to a press operation on the first marking control; during the execution of the drag operation, in response to a trigger operation on the close control, the marking function is closed, and the target mark and the generated path line are canceled.
[0319] In some embodiments, the response module 4551 is further configured to automatically generate at least one candidate path line that avoids an obstacle in the movement trajectory in response to the obstacle existing in the movement trajectory;
[0320] The response module 4551 is further configured to, in response to a selection operation on a target path line from the at least one candidate path line, determine the target path line as the path guidance information.
[0321] In some embodiments, the response module 4551 is further configured to display recommendation information for each candidate route line, where the recommendation information is determined based on one or more of the length, duration, difficulty, and virtual vehicle of the candidate route line;
[0322] The response module 4551 is further configured to determine the target path line as the path guidance information in response to a selection operation on a target path line from the plurality of candidate path lines based on the recommendation information.
[0323] In some embodiments, the virtual object includes a first virtual object; the response module 4551 is further configured to display a crosshair for aiming in the virtual scene; when the crosshair is aimed at the first virtual object in the virtual scene, in response to a marking operation on the first virtual object, use the position of the first virtual object as the first position and generate a target mark at the first position;
[0324] The sending module 4552 is further configured to send the path guidance information to the first virtual object.
[0325] In some embodiments, the sending module 4552 is further used to send the path guidance information to a second virtual object that is in the same team as the current player object, and the distance between the second virtual object and the first position is less than or equal to a distance threshold.
[0326] In some embodiments, the virtual object includes a third virtual object, and the third virtual object does not have a virtual prop. The response module 4551 is further configured to, in response to a marking operation on the virtual prop in the virtual scene, use the position of the virtual prop in the virtual scene as the first position and generate a target mark at the first position.
[0327] The sending module 4552 is further configured to send the path guidance information and the item information of the virtual item to the third virtual object.
[0328] In some embodiments, the response module 4551 is also used to synchronously generate path guidance information including path direction, and then, in response to an attribute setting instruction for the path guidance information, set the functional attributes of the path guidance information so that the path guidance information has a target function, and the target function is used to indicate the target of the action.
[0329] In some embodiments, the response module 4551 is also used to display multiple candidate functions of the path guidance information in response to an attribute setting instruction for the path guidance information; and set the functional attribute of the path guidance information to the target function in response to a selection operation for a target function among the multiple candidate functions.
[0330] In some embodiments, the response module 4551 is further used to display a virtual wheel in response to an instruction to set the attributes of the path guidance information, and to display multiple candidate functions of the path guidance information in the virtual wheel; wherein the virtual wheel can select the candidate functions by rotating; and in response to a selection operation for a target function in the virtual wheel, set the functional attribute of the path guidance information to the target function.
[0331] In some embodiments, the sending module 4552 is further used to display at least one candidate virtual object in response to a sending instruction for the path guidance information; and to send the path guidance information to the target virtual object in response to a trigger operation for a target virtual object among the candidate virtual objects.
[0332] In some embodiments, the response module 4551 is further configured to synchronously generate the path guidance information including the path direction, and then, when a mini-map is displayed in the virtual scene, display the path guidance information in the mini-map.
[0333] In some embodiments, the path guidance information corresponds to the current player object, and the response module 4551 is also used to display the object identifier of the current player object in the minimap, and the display style of the object identifier is consistent with the display style of the path guidance information; the path guidance information and corresponding object identifiers of other player objects are displayed in the minimap, and the display styles of different path guidance information are inconsistent.
[0334] In some embodiments, the response module 4551 is also used to display prompt information in the interface of the virtual scene after synchronously generating path guidance information including the path direction, and the prompt information is used to prompt that the path guidance information has been generated; in the process of displaying the prompt information, the audio of the prompt information is broadcast.
[0335] In some embodiments, the response module 4551 is also used to display the target path line included in the target path guidance information in response to receiving the target path guidance information sent by other virtual objects; based on the target path line, in response to the control instruction for the current virtual object, control the current virtual object to perform the target action corresponding to the target path guidance information.
[0336] An embodiment of the present application provides a computer program product, comprising a computer program or computer-executable instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the path guidance method described above in the embodiment of the present application.
[0337] The embodiment of the present application provides a computer-readable storage medium in which computer-executable instructions or computer programs are stored. When the computer-executable instructions or computer programs are executed by a processor, the processor will execute the path guidance method provided by the embodiment of the present application, for example, Figure 3 The path guidance method is shown.
[0338] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or may be various devices including one or any combination of the above memories.
[0339] In some embodiments, computer-executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0340] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0341] By way of example, computer-executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed across multiple sites and interconnected by a communication network.
[0342] In the path guidance method provided in an embodiment of the present application, a target mark can be generated at the first position in response to a marking operation on a first position in a virtual scene. In response to a path drawing operation triggered based on the target mark, path guidance information including the path direction is synchronously generated with the first position as the path starting position. The path guidance information is used to guide the virtual object to move along the path direction based on the path starting position, and the path guidance information is sent to the virtual object.
[0343] The path guidance method provided in the embodiment of the present application can generate path guidance information through a path drawing operation after marking the first position. Compared with related technologies, this method can enable users to draw path guidance information according to actual usage needs, enrich the human-computer interaction mode, and improve the resource utilization of electronic devices. After the path guidance information is assigned to a virtual object, the user corresponding to the virtual object can obtain the path guidance information. The path guidance information can guide the virtual object to move along the path direction based on the starting position of the path. Compared with related technologies, it can improve the accuracy of guiding the virtual object to perform actions, thereby improving the user's gaming experience. The path guidance information includes not only the starting position of the path, but also the path direction, which can enrich the diversity of information displayed in the virtual scene, improve the resource utilization of the electronic device, and solve Technical Problem 1.
[0344] The path guidance method provided in the embodiment of the present application can further improve the accuracy of guiding virtual objects to perform actions and eliminate the misunderstanding of path guidance information by different users. For team (i.e., team) collaborative games, it can improve the coordination of virtual objects in the same team to perform actions and improve the consistency of team collaboration. In the face of complex virtual scenes or high-intensity interactive environments, the path guidance method provided in the embodiment of the present application can adapt to rapidly changing game needs, improve team collaboration efficiency, improve the resource utilization of electronic devices, and improve the user's gaming experience, which can solve technical problems 2 and 3.
[0345] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. A path guidance method, characterized in that: The method comprises: In response to a marking operation on a first position in a virtual scene, generating a target mark at the first position; In response to a path drawing operation triggered by the target mark, taking the first position as a path starting position, synchronously generating path guidance information including a path direction; The path guidance information is used to guide the virtual object to move along the path direction based on the starting position of the path; The path guidance information is sent to the virtual object.
2. The method according to claim 1, characterized in that In response to the marking operation for the first position in the virtual scene, before generating a target mark at the first position, the method further includes: Displaying a crosshair for aiming in the virtual scene and displaying a first marking control; In response to a marking operation on a first position in the virtual scene, generating a target mark at the first position includes: In response to a triggering operation on the first marking control, enabling a marking function; When the marking function is turned on, the position targeted by the crosshairs is used as the first position, and a target mark is generated at the first position targeted by the crosshairs.
3. The method according to claim 2, characterized in that The enabling of the marking function in response to the triggering operation on the first marking control includes: In response to a pressing operation on the first marking control, turning on a marking function; The step of: responding to the path drawing operation triggered by the target mark, taking the first position as the path starting position, and synchronously generating path guidance information including the path direction, comprises: During the pressing operation, based on the target marker, in response to a drag operation on the first marker control, determining the drag operation as a path drawing operation, and synchronously moving the crosshair in the virtual scene; Following the movement trajectory of the crosshair, a corresponding path line is synchronously generated, wherein the path line takes the first position as the path starting position and the moving direction of the crosshair as the path direction; The route line is determined as the route guidance information.
4. The method according to claim 3, characterized in that The method further comprises: In response to a pressing operation on the first mark control, displaying a second mark control, wherein the second mark control is used to mark an end point position of the path line; Following the movement trajectory of the crosshair and synchronously generating a corresponding path line includes: During the dragging operation, following the movement trajectory of the crosshair, a corresponding path line is synchronously generated; Based on the generated path line, in response to a first trigger operation on the second marking control, marking a path end position of the path line; The determining the path line as the path guidance information includes: A path line including the path end position is determined as the path guidance information.
5. The method according to claim 4, characterized in that Before marking the end point of the path line based on the generated path line in response to a first trigger operation on the second marking control, the method further includes: In response to the pressing operation being released, canceling the display of the generated path line and turning off the marking function; The sending the path guidance information to the virtual object includes: In response to the pressing operation being released, the path guidance information is sent to the virtual object.
6. The method according to claim 4, characterized in that The method further comprises: displaying a switch control at a location associated with the second mark control; In response to a trigger operation on the switching control, the second marking control is switched to a third marking control, wherein the third marking control is used to mark a path direction of the path line; Following the movement trajectory of the crosshair and synchronously generating a corresponding path line includes: During the dragging operation, following the movement trajectory of the crosshair, a corresponding path line is synchronously generated; Based on the generated path line, in response to a trigger operation on the third marking control, marking a path direction of the path line; The moving direction of the crosshair and the marked path direction are determined as the path direction in the path guidance information.
7. The method according to claim 4, characterized in that The second marking control has a first marking mode and a second marking mode; the second marking control is used to mark the path end position of the path line in the first marking mode; The method further comprises: In response to a second trigger operation on the second marking control, switching the first marking mode to the second marking mode; The second marking control is used to mark the path direction of the path line in the second marking mode.
8. The method according to claim 3, characterized in that The method further comprises: In response to a pressing operation on the first mark control, displaying a close control for closing the mark function; During the drag operation, in response to a trigger operation for closing a control, the marking function is closed, and the target mark and the generated path line are canceled from being displayed.
9. The method according to claim 3, characterized in that Following the movement trajectory of the crosshair and synchronously generating a corresponding path line includes: In response to an obstacle existing in the movement trajectory, automatically generating at least one candidate path line that avoids the obstacle; The determining the path line as the path guidance information includes: In response to a selection operation on a target path line among the at least one candidate path line, the target path line is determined as the path guidance information.
10. The method according to claim 9, characterized in that There are multiple candidate path lines; the method further includes: Displaying recommendation information for each candidate route line, wherein the recommendation information is determined based on one or more of the length, duration, difficulty, and virtual vehicle of the candidate route line; In response to a selection operation on a target path line from the at least one candidate path line, determining the target path line as the path guidance information includes: Based on the recommendation information, in response to a selection operation on a target route line among the plurality of candidate route lines, the target route line is determined as the route guidance information.
11. The method according to any one of claims 1 to 10, characterized in that The virtual object includes a first virtual object; and in response to a marking operation on a first position in the virtual scene, generating a target mark at the first position includes: Displaying a crosshair for aiming in the virtual scene; When the crosshair is aimed at a first virtual object in the virtual scene, in response to a marking operation on the first virtual object, taking a position of the first virtual object as the first position and generating a target mark at the first position; The sending the path guidance information to the virtual object includes: The path guidance information is sent to the first virtual object.
12. The method according to any one of claims 1 to 10, characterized in that The sending the path guidance information to the virtual object includes: The path guidance information is sent to a second virtual object that is in the same team as the current player object, where the distance between the second virtual object and the first position is less than or equal to a distance threshold.
13. The method according to any one of claims 1 to 10, characterized in that The virtual object includes a third virtual object, and the third virtual object does not have a virtual prop; In response to a marking operation on a first position in the virtual scene, generating a target mark at the first position includes: In response to a marking operation on the virtual prop in the virtual scene, taking the position of the virtual prop in the virtual scene as the first position and generating a target mark at the first position; The sending the path guidance information to the virtual object includes: The path guidance information and the item information of the virtual item are sent to the third virtual object.
14. The method according to any one of claims 1 to 10, characterized in that After synchronously generating the path guidance information including the path direction, the method further includes: In response to the attribute setting instruction for the route guidance information, the function attribute of the route guidance information is set so that the route guidance information has a target function, and the target function is used to indicate the target of the action.
15. The method according to claim 14, characterized in that The step of setting the functional attributes of the route guidance information in response to the attribute setting instruction for the route guidance information includes: In response to an instruction for setting an attribute of the route guidance information, displaying a plurality of candidate functions of the route guidance information; In response to a selection operation on a target function among the plurality of candidate functions, a function attribute of the route guidance information is set as the target function.
16. The method according to claim 15, characterized in that The displaying of a plurality of candidate functions of the route guidance information in response to the attribute setting instruction for the route guidance information includes: In response to an instruction for setting an attribute of the route guidance information, displaying a virtual wheel and displaying a plurality of candidate functions of the route guidance information in the virtual wheel; The virtual wheel can be rotated to select the candidate function; In response to a selection operation on a target function in the virtual wheel, a function attribute of the route guidance information is set to the target function.
17. The method according to any one of claims 1 to 10, characterized in that The sending the path guidance information to the virtual object includes: In response to a sending instruction for the path guidance information, displaying at least one candidate virtual object; In response to a trigger operation on a target virtual object among the candidate virtual objects, the path guidance information is sent to the target virtual object.
18. The method according to any one of claims 1 to 10, characterized in that After synchronously generating the path guidance information including the path direction, the method further includes: In a case where a small map is displayed in the virtual scene, the route guidance information is displayed in the small map.
19. The method according to claim 18, characterized in that The path guidance information corresponds to the current player object, and the method further includes: Displaying an object identifier of the current player object in the mini-map, wherein a display style of the object identifier is consistent with a display style of the path guidance information; Path guidance information and corresponding object identifiers of other player objects are displayed in the mini-map, and display styles of different path guidance information are inconsistent.
20. The method according to any one of claims 1 to 10, characterized in that After synchronously generating the path guidance information including the path direction, the method further includes: In the interface of the virtual scene, a prompt message is displayed, wherein the prompt message is used to prompt that the path guidance information has been generated; During the process of displaying the prompt information, the audio of the prompt information is broadcast.
21. The method according to any one of claims 1 to 10, characterized in that The method further comprises: In response to receiving target path guidance information sent by other virtual objects, displaying the target path guidance information including a target path line; Based on the target path line, in response to a control instruction for the current virtual object, the current virtual object is controlled to perform a target action corresponding to the target path guidance information.
22. A path guiding device, characterized in that: The device comprises: a response module, configured to generate a target mark at a first position in a virtual scene in response to a marking operation on the first position; The response module is further configured to, in response to a path drawing operation triggered by the target mark, synchronously generate path guidance information including a path direction with the first position as a path starting position; The path guidance information is used to guide the virtual object to move along the path direction based on the starting position of the path; A sending module is used to send the path guidance information to the virtual object.
23. An electronic device, characterized in that: The electronic device comprises: a memory for storing computer-executable instructions or computer programs; The processor is configured to implement the path guidance method according to any one of claims 1 to 21 when executing the computer executable instructions or computer program stored in the memory.
24. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that: When the computer executable instructions or computer program are executed by a processor, the path guidance method according to any one of claims 1 to 21 is implemented.
25. A computer program product comprising computer executable instructions or a computer program, characterized in that When the computer executable instructions or computer program are executed by a processor, the path guidance method according to any one of claims 1 to 21 is implemented.