Interaction method and device in virtual scene, equipment, storage medium and product
By dynamically changing the terrain in the virtual scene and generating multiple paths and obstacles, the problem of terrain design in the game scene consumes a lot of resources and a single interaction process, achieving a more efficient interaction method and player experience.
Patent Information
- Application Number
- CN202310636230.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
In existing game scenes, the terrain design consumes a lot of resources and the player interaction process is single, resulting in low human-computer interaction efficiency.
By dynamically changing the terrain in the second virtual space of the virtual scene, the virtual object changes from the first terrain to the second terrain and displays it in different locations, realizing dynamic generation of multiple paths and obstacles, enriching interaction methods and improving interaction efficiency .
It improves the diversity of interaction methods and human-computer interaction efficiency in virtual scenes, saves resources and enhances player experience.
Smart Images

Figure CN119056047A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to an interaction method, device, electronic device, computer-readable storage medium, and computer program product in a virtual scene. Background Art
[0002] In the related art, designing the terrain in a game scene requires a lot of planning and art resources. Therefore, in order to save resources, many games will design fixed maps or terrains for the same game scene. However, if players only interact in fixed maps or terrains, the player's interaction process will be relatively simple, resulting in low human-computer interaction efficiency. Summary of the invention
[0003] The embodiments of the present application provide an interaction method, device, electronic device, computer-readable storage medium, and computer program product in a virtual scene, which can improve the diversity of interaction methods and human-computer interaction efficiency in the virtual scene.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides an interactive method in a virtual scene, including:
[0006] Displaying, at a first position in a second virtual space of a virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space;
[0007] The second virtual space has a first terrain, an exit of the first terrain is associated with a plurality of paths, the first position is within the first terrain, and the first position is different from a position of the exit;
[0008] When the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, transmitting the virtual object back to the first virtual space;
[0009] When the virtual object is transferred from the first virtual space to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, and the virtual object is displayed at a second position in the second terrain different from the exit position.
[0010] An embodiment of the present application provides an interactive device in a virtual scene, including:
[0011] A display module, configured to display, at a first position in a second virtual space of a virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space; wherein the second virtual space has a first terrain, an exit of the first terrain is associated with a plurality of paths, the first position is within the first terrain, and the first position is different from a position of the exit;
[0012] a transmission module, configured to transmit the virtual object back to the first virtual space when the virtual object moves from the first position to the exit of the first terrain based on the multiple paths;
[0013] The control module is used to control the terrain of the second virtual space to change from the first terrain to the second terrain when the virtual object is transmitted from the first virtual space to the second virtual space again, and to display the virtual object at a second position in the second terrain different from the exit position.
[0014] In the above scheme, the first position is the entrance of the first terrain; the display module is also used to display the process of the virtual object appearing in the second virtual space at the entrance in the second virtual space of the virtual scene; the transmission module is also used to transmit the virtual object back to the first virtual space when the virtual object moves from the entrance to the exit of the first terrain based on the multiple paths.
[0015] In the above scheme, the device also includes a second control module, which is used to control the virtual object to enter the target path and move along the target path in response to a selection operation for a target path among the at least two paths when the first position is the intersection of at least two paths; the transmission module is also used to transmit the virtual object back to the first virtual space when the virtual object moves to the exit of the first terrain during the movement of the virtual object along the target path.
[0016] In the above scheme, the device also includes a third control module, which is used to respond to the movement instructions for the virtual object, control the virtual object to move in the first terrain of the second virtual space based on the multiple paths; during the movement of the virtual object, display obstacles, which are used to hinder the movement of the virtual object in the first terrain.
[0017] In the above scheme, the device also includes a fourth control module, which is used to control the target attribute value of the virtual object to decrease when the virtual object moves into the sensing range of the obstacle; wherein the target attribute value includes at least one of the following: the life value and speed value of the virtual object.
[0018] In the above solution, the device further includes a fifth control module, and the fifth control module is used to control the virtual object to perform a target movement in response to a movement instruction for the virtual object; wherein the target movement is used for the virtual object to avoid the obstacle.
[0019] In the above scheme, the device also includes a reset module, which is used to control the movement of the virtual object in the first terrain of the second virtual space in response to the movement operation of the virtual object; during the movement of the virtual object, when the target condition of resetting the position of the virtual object is met, the process of the virtual object reappearing in the first position is displayed; wherein the target condition includes at least one of the following: the movement time of the virtual object in the first terrain reaches the target time, and the health value of the virtual object drops to the health value threshold.
[0020] In the above scheme, the device also includes a determination module, which is used to obtain the initial target attribute value of the virtual object and the correlation coefficient of the initial target attribute value when the target condition for resetting the position of the virtual object is met; wherein the size of the correlation coefficient is negatively correlated with the number of times the virtual object is reset, and the initial target attribute value includes at least one of the following: the initial life value and the initial speed value of the virtual object; based on the correlation coefficient and the initial target attribute value, determine the initial target attribute value of the virtual object when it reappears in the first position.
[0021] In the above scheme, the transmission module is also used to display a first virtual resource used as a reward when the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, and the first virtual resource is used to be used in the first virtual space; in response to the collection operation for the first virtual resource, the first virtual resource is collected and the virtual object is transmitted back to the first virtual space.
[0022] In the above scheme, the transmission module is also used to display transmission prompt information when the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, and the transmission prompt information is used to prompt whether to transmit the virtual object back to the first virtual space; in response to the transmission instruction triggered based on the transmission prompt information, the virtual object is transmitted back to the first virtual space.
[0023] In the above scheme, the device also includes a sixth control module, which is used to control the movement of the virtual object in the first terrain of the second virtual space in response to the movement instruction for the virtual object; when the virtual object moves to the target position in the path, a second virtual resource used as a reward is displayed, and the second virtual resource is used for use in the second virtual space.
[0024] In the above scheme, the device also includes a second display module, which is used to display the first virtual object and the second virtual object in the first virtual space of the virtual scene; when the first virtual object and the second virtual object are simultaneously transmitted to the second virtual space, the device also includes a third display module, which is used to display the first virtual object at a third position different from the exit in the second virtual space of the virtual scene, and to display the second virtual object at a fourth position different from the exit in the second virtual space of the virtual scene; wherein the third position and the fourth position are different positions, and the distance between the third position and the exit is different from the distance between the fourth position and the exit.
[0025] In the above scheme, at least one obstacle is set in the multiple paths, and the obstacle is used to hinder the movement of the virtual object in the first terrain; the device also includes a fourth display module, and the fourth display module is used to display task guidance information of the interactive task; based on the task guidance information, in response to the task execution instruction for the interactive task, the virtual object is controlled to perform the interactive task; when the virtual object completes the interactive task, the obstacles included in the multiple paths are canceled.
[0026] In the above scheme, at least two types of obstacles are arranged in the multiple paths, and the at least two types of obstacles are used to hinder the movement of the virtual object in the first terrain, and different types of obstacles are associated with different interactive tasks; the device also includes a fifth display module, and the fifth display module is used to display task guidance information of the interactive tasks associated with each type of obstacle; based on the task guidance information, in response to the task execution instruction for the target interactive task, the virtual object is controlled to execute the target interactive task; when the virtual object completes the target interactive task, the target type of obstacles associated with the target interactive task in the multiple paths are undisplayed.
[0027] In the above scheme, the device also includes a sixth display module, which is used to display the virtual object and virtual scene elements belonging to natural phenomena in the first virtual space of the virtual scene; when the virtual object is within the sensing area of the virtual scene element, the virtual object is transmitted from the first virtual space to the second virtual space.
[0028] In the above scheme, the sixth display module is also used to display the length of time the virtual object stays in the sensing area when the virtual object is in the sensing area of the virtual scene element; when the stay time reaches a stay time threshold, the virtual object is transferred from the first virtual space to the second virtual space.
[0029] An embodiment of the present application provides an electronic device, including:
[0030] A memory for storing executable instructions;
[0031] The processor is used to implement the interaction method in the virtual scene provided in the embodiment of the present application when executing the executable instructions stored in the memory.
[0032] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute instructions to implement an interactive method in a virtual scene provided by an embodiment of the present application.
[0033] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the interaction method in the virtual scene provided by the embodiment of the present application.
[0034] The embodiments of the present application have the following beneficial effects:
[0035] A virtual object is transmitted from a first virtual space of a virtual scene to a first position of a second virtual space different from an exit; wherein the second virtual space has a first terrain, the exit of the first terrain is associated with a plurality of paths, and the first position is within the first terrain; when the virtual object moves from the first position to the exit of the first terrain based on the plurality of paths, the virtual object is transmitted back to the first virtual space; when the virtual object is transmitted from the first virtual space to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, and the virtual object is displayed at a second position in the second terrain different from the exit position. In this way, when the virtual object is transmitted to the second virtual space for the first time, the virtual object is transmitted to the first terrain of the second virtual space, and after the virtual object leaves the second virtual space, when the virtual object is transmitted to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, thereby transmitting the virtual object to the second terrain of the second virtual space. In this way, each time the virtual object is transmitted to the second virtual space, the terrain of the second virtual space is dynamically changed. Compared with transmitting the virtual object to a fixed terrain every time, this not only enriches the player's interaction process and improves the diversity of interaction methods in virtual scenes, but also improves the efficiency of human-computer interaction and the utilization rate of hardware resources of electronic equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 is a schematic diagram of the architecture of an interactive system 100 in a virtual scene provided in an embodiment of the present application;
[0037] Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0038] Figure 3 It is a flowchart of an interactive method in a virtual scene provided by an embodiment of the present application;
[0039] Figure 4 is a schematic diagram of a second virtual space when the first position provided by an embodiment of the present application is an entrance to a first terrain;
[0040] Figure 5 is a schematic diagram of a second virtual space when the first position provided by an embodiment of the present application is an intersection position of at least two paths of the first terrain;
[0041] Figure 6 is a schematic diagram of a virtual object moving in a first terrain of a second virtual space and obstacles provided by an embodiment of the present application;
[0042] Figure 7 is a schematic diagram of transmission prompt information provided by an embodiment of the present application;
[0043] Figure 8It is a technical flow chart of interaction in a virtual scene provided by an embodiment of the present application;
[0044] Fig. 9 It is a technical flow chart of the process of determining the land parcel connection mode provided in the embodiment of the present application;
[0045] Fig.10 is a schematic diagram of a data table read during the maze generation process provided in an embodiment of the present application;
[0046] Fig.11 is a schematic diagram of a data table read during the maze generation process provided in an embodiment of the present application;
[0047] Fig.12 is a schematic diagram of multiple plots provided in an embodiment of the present application;
[0048] Fig.13 It is a logical schematic diagram of the transmission of a virtual object to the entrance of a maze provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0050] In the following description, reference is made to “some embodiments”, which describe 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.
[0051] 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.
[0052] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0053] 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.
[0054] 1) Shooting games, including first-person shooting games, third-person shooting games, and other games that use firearms for long-range attacks, including but not limited to these.
[0055] 2) Third-person perspective: the in-game camera is positioned a certain distance behind the player character, and the character and all combat elements in the surrounding environment can be seen on the screen.
[0056] 3) In response, it is 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 may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.
[0057] 4) Virtual scene is a virtual scene displayed (or provided) when the application is running on the terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene.
[0058] For example, the virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. The user may control the virtual object 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 (for example, the user plays the role of a virtual object in the game from his own perspective); it may also be displayed from a third-person perspective (for example, the user chases the virtual object in the game to play the game); it may also be displayed from a bird's-eye view perspective, and the above perspectives may be switched arbitrarily.
[0059] 5) 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. A virtual scene can include multiple virtual objects, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene.
[0060] For example, the virtual object may be a user character controlled by an operation on the client, an artificial intelligence (AI) set in a virtual scene through training, or a non-player character (NPC) set in a virtual scene interaction. The number of virtual objects participating in the interaction in the virtual scene may be preset or dynamically determined according to the number of clients joining the interaction.
[0061] 6) Client, also known as the 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 in the network to provide corresponding services. In this way, specific communication connections need to be established between the client and server to ensure the normal operation of the application, such as the game client.
[0062] 7) Open world refers to a virtual game scene in which the battle scenes in the game are completely free and open. In the open world, players can move forward and explore freely in any direction, and the distance between the boundaries of each direction is very large.
[0063] See also Figure 1 , Figure 1 It is an architectural diagram of an interactive system 100 in a virtual scene provided in an embodiment of the present application. To realize an application scenario of interaction in a virtual scene (for example, an application scenario of interaction in a virtual scene can be an application scenario for interaction based on a virtual scene in a game APP, such as when a player is playing a game APP, the virtual object is transmitted to the entrance of a maze in the virtual scene, and when the virtual object moves from the entrance of the maze to the exit of the maze, the virtual object is controlled to leave the maze, and when the virtual object is transmitted to the maze again, the path in the maze is controlled to change, thereby transmitting the virtual object to the entrance of the changed maze), a terminal (terminal 400 is shown as an example) is connected to a server 200 via a network 300, and the network 300 can be a wide area network or a local area network, or a combination of the two. The terminal 400 is used for users to use the client 401, which is displayed on a display interface (display interface 401-1 is shown as an example), and the terminal 400 and the server 200 are connected to each other via a wired or wireless network.
[0064] The terminal 400 is used to send a transmission request to the server 200 for transmitting the virtual object from the first virtual space of the virtual scene to the second virtual space;
[0065] The server 200 is used to transmit the virtual object from the first virtual space of the virtual scene to the second virtual space based on the received transmission request for transmitting the virtual object from the first virtual space of the virtual scene to the second virtual space; and transmit the virtual scene including the virtual object at the first position of the second virtual space to the terminal 400;
[0066] Terminal 400 is also used to receive a virtual scene including a virtual object at a first position in a second virtual space; present the virtual scene, and display the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space at a first position in the second virtual space of the virtual scene; wherein the second virtual space has a first terrain, an exit of the first terrain is associated with multiple paths, the first position is within the first terrain, and the first position is different from the position of the exit; when the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, the virtual object is transmitted back to the first virtual space; when the virtual object is transmitted from the first virtual space to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, and the virtual object is displayed at a second position in the second terrain that is different from the exit position.
[0067] In some embodiments, the server 200 may be an independent physical server, or 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 distribution networks (CDN, Content Deliver Network), and big data and artificial intelligence platforms. The terminal 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a set-top box, an intelligent voice interaction device, a smart home appliance, a virtual display device, a vehicle-mounted terminal, an aircraft, and a mobile device (e.g., a mobile phone, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device, an intelligent speaker, and a smart watch), etc., but is not limited thereto. The terminal device and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0068] Next, an electronic device that implements the interactive method in a virtual scene provided by an embodiment of the present application is described. Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a server or a terminal. Figure 1 Take the terminal shown in as an example, Figure 2The 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 terminal 400 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 the 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 .
[0069] 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.
[0070] The user interface 430 includes one or more output devices 431 that enable display 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.
[0071] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0072] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. 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.
[0073] In some embodiments, 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 exemplarily described below.
[0074] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0075] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0076] a presentation module 453 for enabling display of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);
[0077] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
[0078] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 An interactive device 455 in a virtual scene stored in a memory 450 is shown, which may be software in the form of a program or a plug-in, including the following software modules: a display module 4551, a transmission module 4552, and a control module 4553. These modules are logical, and thus may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0079] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the interactive device in the virtual scene 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 interactive method in the virtual scene 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), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.
[0080] In some embodiments, the terminal or server can implement the interactive method in the virtual scene provided by the embodiment of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP, Application), that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP, a web browser APP; it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be an application, module or plug-in in any form.
[0081] Based on the above description of the interactive system and electronic device in the virtual scene provided by the embodiment of the present application, the interactive method in the virtual scene provided by the embodiment of the present application is described below. In actual implementation, the interactive method in the virtual scene provided by the embodiment of the present application can be implemented by the terminal or the server alone, or by the terminal and the server in collaboration, so that Figure 1 The interactive method in the virtual scene provided by the embodiment of the present application is described as an example in which the terminal 400 alone executes the interactive method in the virtual scene provided by the embodiment of the present application. Figure 3 , Figure 3 is a flowchart of an interactive method in a virtual scene provided by an embodiment of the present application, which will be combined with Figure 3 The steps shown are explained.
[0082] Step 101, the terminal is at the first position in the second virtual space of the virtual scene, and displays a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space; wherein the second virtual space has a first terrain, an exit of the first terrain is associated with multiple paths, the first position is within the first terrain, and the first position is different from the position of the exit.
[0083] In actual implementation, an application supporting virtual scenes is installed on the terminal. The application can be any of 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 gunfight survival game. The user can use the terminal to operate virtual objects in the virtual scene to carry out activities.
[0084] When a user opens an application on a terminal and the terminal runs the application, the terminal presents a picture of a virtual scene. Here, the picture of the virtual scene is obtained by observing the virtual scene from a first-person object perspective, or by observing the virtual scene from a third-person perspective. The picture of the virtual scene includes virtual objects. The virtual objects can be player characters controlled by the current player, or player characters controlled by other players (teammates) belonging to the same group as the current player, etc.
[0085] It should be noted that the first virtual space and the second virtual space are both pre-set and belong to the same virtual scene, wherein the first virtual space and the second virtual space can be set as virtual spaces such as deserts, oceans, castles or jungles, and the second virtual space has a first terrain that can be regarded as a maze, and the maze includes multiple paths, and the multiple paths are associated with at least one exit. The multiple paths include at least one obstacle, and the obstacle is used to hinder the movement of virtual objects in the first terrain. At the same time, the first position is different from the exit position, and can be any non-exit position in the first terrain, i.e., the maze, such as the entrance.
[0086] In some embodiments, before displaying the virtual object transmitted from the first virtual space to the second virtual space of the virtual scene at the first position in the second virtual space of the virtual scene, the virtual object and the virtual scene element belonging to the natural phenomenon are displayed in the first virtual space of the virtual scene; when the virtual object is in the sensing area of the virtual scene element, the virtual object is transmitted from the first virtual space to the second virtual space. Here, the virtual natural phenomenon to which the virtual natural element belongs can be a natural phenomenon caused to the environment such as a tornado, a volcano, etc.
[0087] In actual implementation, when the virtual object is within the sensing area of the virtual scene element, the sensing area here is a circular area with the virtual scene element as the center and the target distance as the radius. The process of determining that the virtual object is within the sensing area of the virtual scene element specifically includes: the terminal obtains the position of the virtual object in the first virtual space, the position of the virtual scene element and the sensing area of the virtual scene element, obtains the distance between the virtual object and the virtual scene element based on the position of the virtual object and the position of the virtual scene element, and compares the distance with the radius of the sensing area, that is, the target distance. When the comparison result indicates that the distance is less than or equal to the radius of the sensing area, it is determined that the virtual object is within the sensing range of the virtual scene element.
[0088] It should be noted that when a virtual object is in the sensing area of a virtual scene element, the virtual object can be directly transferred from the first virtual space to the second virtual space; it can also be transferred from the first virtual space to the second virtual space according to the length of time the virtual object is in the sensing area. Specifically, when the virtual object is in the sensing area of the virtual scene element, the process of transferring the virtual object from the first virtual space to the second virtual space can be, when the virtual object is in the sensing area of the virtual scene element, displaying the length of time the virtual object stays in the sensing area; when the length of time reaches a threshold of the length of time, transferring the virtual object from the first virtual space to the second virtual space. Exemplarily, when the virtual object is in the sensing area of the virtual scene element, the length of time the virtual object stays in the first virtual space is detected; when the detection result indicates that the length of time the virtual object stays in the first virtual space reaches a threshold of the length of time, such as 5 seconds, the virtual object is transferred from the first virtual space to the second virtual space.
[0089] In some embodiments, as described above, the first position is different from the position of the exit, and may be any non-exit position in the first terrain, i.e., the maze, such as the entrance. When the first position is the entrance of the first terrain, the process of displaying the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space at the first position in the second virtual space of the virtual scene may be, at the entrance of the second virtual space of the virtual scene, the process of displaying the virtual object appearing in the second virtual space; for example, see Figure 4 , Figure 4 is a schematic diagram of a second virtual space when the first position provided by an embodiment of the present application is the entrance to the first terrain, based on Figure 4 , the dotted box 401 indicates the entrance of the first terrain, and the dotted box 402 indicates the exit of the first terrain. Therefore, when the first position is the entrance of the first terrain, the process of the virtual object appearing in the second virtual space is displayed at the entrance as shown in 401 in the second virtual space of the virtual scene.
[0090] When the first position is the intersection of at least two paths, the process of displaying the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space at the first position in the second virtual space of the virtual scene may also be the process of displaying the virtual object appearing in the second virtual space at the intersection of at least two paths in the second virtual space of the virtual scene; for example, see Figure 5 , Figure 5 is a schematic diagram of a second virtual space when the first position provided by an embodiment of the present application is the intersection position of at least two paths of the first terrain, based on Figure 5, what is indicated in the dotted box 501 is the intersection of at least two paths of the first terrain, and what is indicated in the dotted box 502 is the exit of the first terrain. Thus, when the first position is the intersection of at least two paths of the first terrain, in the second virtual space of the virtual scene, at the intersection of at least two paths as shown in 501, the process of the virtual object appearing in the second virtual space is displayed.
[0091] Step 102: When the virtual object moves from the first position to the exit of the first terrain based on multiple paths, the virtual object is transmitted back to the first virtual space.
[0092] In actual implementation, as described above, the first position is different from the position of the exit, and can be any non-exit position in the first terrain, i.e., the maze, such as the entrance, etc. Therefore, when the first position is the entrance of the first terrain, when the virtual object moves from the first position to the exit of the first terrain based on multiple paths, the process of transmitting the virtual object back to the first virtual space can be that when the virtual object moves from the entrance to the exit of the first terrain based on multiple paths, the virtual object is transmitted back to the first virtual space. Here, there are multiple paths from the entrance to the exit, and the embodiment of the present application does not limit the process of the virtual object moving from the entrance to the exit of the first terrain based on which path.
[0093] When the first position is the intersection of at least two paths, it is also possible to control the virtual object to enter the target path and move along the target path in response to the selection operation for the target path in the at least two paths; thus, when the virtual object moves from the first position to the exit of the first terrain based on multiple paths, the process of transmitting the virtual object back to the first virtual space may be that during the movement of the virtual object along the target path, when the virtual object moves to the exit of the first terrain, the virtual object is transmitted back to the first virtual space. Here, since the virtual object is located at the intersection of at least two paths, there are at least two paths for the virtual object to select, so that in response to the selection operation for the target path in the at least two paths, the virtual object is controlled to enter the target path and move along the target path. At the same time, the movement process here may be forward movement or backward movement compared to the current position of the virtual object, and this is not limited in the embodiments of the present application.
[0094] In some embodiments, in response to movement instructions for the virtual object, the virtual object can be controlled to move in the first terrain of the second virtual space based on multiple paths; during the movement of the virtual object, obstacles are displayed, and the obstacles are used to hinder the movement of the virtual object in the first terrain.
[0095] It should be noted that, at the first position in the second virtual space of the virtual scene, while displaying the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space, the direction movement control corresponding to the virtual object is also displayed, and the direction movement control may be a joystick control, and then in response to the movement control instruction received based on the direction movement control, the virtual object is controlled to move in the first terrain of the second virtual space based on multiple paths in the direction indicated by the movement control instruction (including forward, backward, left and right movement). The obstacles displayed during the movement of the virtual object include at least one of a dynamic obstacle and a static obstacle, wherein the dynamic obstacle may be a monster, an animal, a moving prop, etc., and the static obstacle may be a laser, a plant, a fixed prop, etc.
[0096] For example, see Figure 6 , Figure 6 is a schematic diagram of a virtual object moving in a first terrain of a second virtual space and obstacles provided by an embodiment of the present application, based on Figure 6 , the dotted box 601 indicates a direction movement control. In response to the movement control instruction received for the direction movement control as indicated by the dotted box 601, the virtual object shown as 603 is controlled to move in the first terrain of the second virtual space based on multiple paths in the direction indicated by the movement control instruction (including forward, backward, left and right). At the same time, in the first terrain, an obstacle as shown in 602, that is, a laser, is displayed, thereby hindering the movement of the virtual object in the first terrain based on the obstacle as indicated by 602.
[0097] In some embodiments, after the obstacle is displayed, when the virtual object moves into the sensing range of the obstacle, the target attribute value of the virtual object can be controlled to decrease; wherein the target attribute value includes at least one of the following: the life value and the speed value of the virtual object.
[0098] It should be noted that the sensing range here is determined according to the type of obstacle. For example, when the obstacle is a laser, the sensing range here is a cylindrical area formed with the corresponding laser as the axis and the target distance as the radius. The process of determining that the virtual object is in the sensing range of the obstacle specifically includes: the terminal obtains the position of the virtual object in the second virtual space, the position of the obstacle and the sensing range of the obstacle, obtains the distance between the virtual object and the obstacle based on the position of the virtual object and the position of the obstacle, and compares the distance with the radius of the sensing range, that is, the target distance. When the comparison result indicates that the distance is less than or equal to the radius of the sensing area, it is determined that the virtual object is within the sensing range of the obstacle.
[0099] When the obstacle is a moving prop, the sensing range here is a dynamic circular area formed with the corresponding moving prop as the center and the target distance as the radius. The process of determining whether the virtual object is in the sensing range of the obstacle specifically includes: the terminal obtains the position of the virtual object in the second virtual space, the position of the obstacle and the sensing range of the obstacle, obtains the distance between the virtual object and the obstacle based on the position of the virtual object and the position of the obstacle, and compares the distance with the radius of the sensing range, that is, the target distance. When the comparison result indicates that the distance is less than or equal to the radius of the sensing area, it is determined that the virtual object is in the sensing range of the obstacle.
[0100] In actual implementation, when the virtual object moves into the sensing range of the obstacle, the target attribute value of the virtual object is controlled to decrease; wherein the target attribute value includes at least one of the following: the life value and speed value of the virtual object. Here, the target attribute value is used to indicate the attribute value that is strongly related to the interaction process. For example, when the interaction process is that the virtual object moves to the exit of the first terrain within the target duration, the target attribute value here may be the speed of the virtual object. When the interaction process is that the virtual object moves to the exit of the first terrain within the target life value, the target attribute value here may be the life value of the virtual object, etc. Exemplarily, when the interaction process is that the virtual object moves to the exit of the first terrain within the target life value and the obstacle is a laser, when the virtual object moves into the sensing range of the laser, such as touching the laser, the life value of the virtual object is controlled to decrease.
[0101] In some embodiments, the virtual object may also be controlled to avoid obstacles. Specifically, in response to a motion instruction for the virtual object, the virtual object is controlled to perform a target motion; wherein the target motion is used for the virtual object to avoid obstacles.
[0102] It should be noted that controlling the virtual object to perform the target movement here may be controlling the virtual object to perform actions such as jumping or moving, so as to avoid obstacles by jumping or moving, etc. In addition, when the target attribute value of the virtual object decreases, the action attribute of the virtual object performing the target movement such as jumping or moving will decrease, for example, the jumping ability will decrease, the moving speed will slow down, etc.
[0103] In some embodiments, in response to a movement operation on a virtual object, the virtual object is controlled to move in a first terrain in a second virtual space; during the movement of the virtual object, when a target condition for resetting the position of the virtual object is met, a process of the virtual object reappearing at the first position is displayed; wherein the target condition includes at least one of the following: the movement time of the virtual object in the first terrain reaches a target time, and the health value of the virtual object drops to a health value threshold.
[0104] It should be noted that, as mentioned above, when the virtual object moves into the sensing range of an obstacle, the target attribute value of the virtual object will decrease. Therefore, there is a corresponding relationship between the target condition for resetting the position of the virtual object and the target attribute of the virtual object. For example, when the target attribute value is the life value of the virtual object, the target condition for resetting the position of the virtual object here may be that the life value of the virtual object drops to the life value threshold; when the target attribute value is the speed value of the virtual object, the target condition for resetting the position of the virtual object here may be that the moving time of the virtual object in the first terrain reaches the target time.
[0105] Exemplarily, when the target attribute value is the life value of the virtual object and the obstacle is a laser, each time the virtual object touches the laser, its own life value will be reduced. Therefore, when the life value of the virtual object drops to the life value threshold and no exit is found, the target condition for resetting the position of the virtual object is determined to be met, thereby resetting the virtual object to the first position; when the target attribute value is the speed value of the virtual object and the obstacle is a laser, each time the virtual object touches the laser, its own speed value will be reduced. Therefore, when the moving time of the virtual object in the first terrain reaches the target time and no exit is found, the target condition for resetting the position of the virtual object is determined to be met, thereby resetting the virtual object to the first position.
[0106] In actual implementation, each time the virtual object touches an obstacle, the target attribute value of the virtual object will be detected. When the detection result represents the target attribute value based on the virtual object, such as the moving time of the virtual object in the first terrain reaches the target time, or the life value of the virtual object drops to the life value threshold, and the target condition for resetting the position of the virtual object is met, the process of the virtual object reappearing in the first position is displayed.
[0107] In some embodiments, when the target condition for resetting the position of the virtual object is met, the initial target attribute value of the virtual object and the correlation coefficient of the initial target attribute value are obtained; wherein the size of the correlation coefficient is negatively correlated with the number of times the virtual object is reset, and the initial target attribute value includes at least one of the following: the initial life value and the initial speed value of the virtual object; based on the correlation coefficient and the initial target attribute value, the initial target attribute value of the virtual object when it reappears at the first position is determined.
[0108] It should be noted that, the more times the virtual object is reset, the smaller the initial target attribute value when the virtual object reappears at the first position. Here, the initial target attribute value is used to indicate the target attribute value when the virtual object is transmitted to the second virtual space. Specifically, when the target condition for resetting the position of the virtual object is met, the initial target attribute value of the virtual object and the number of resets of the virtual object are obtained, and based on the number of resets, the correlation coefficient of the initial target attribute value is obtained, and then the initial target attribute value is multiplied by the correlation coefficient to obtain the initial target attribute value when the virtual object reappears at the first position, so that the virtual object moves in the first terrain based on the initial target attribute value when it reappears at the first position.
[0109] Exemplarily, when the target attribute value is health value and the number of reset times of the virtual object is 2, the correlation coefficient is 0.75. When the target condition for resetting the position of the virtual object is met, the initial health value of the virtual object, such as 100, and the number of reset times of the virtual object are obtained, and based on the number of resets, the correlation coefficient of the initial target attribute value, i.e. 0.75, is obtained. Then 100 and 0.75 are multiplied to obtain the initial target attribute value of the virtual object when it reappears in the first position, i.e. 75. That is, when the virtual object is reset to the first position for the second time, the health value of the virtual object is restored to 75, not 100.
[0110] In actual implementation, when the virtual object moves from the first position to the exit of the first terrain based on multiple paths, there are multiple ways to teleport the virtual object back to the first virtual space. Next, taking two of them as examples, the process of teleporting the virtual object back to the first virtual space when the virtual object moves from the first position to the exit of the first terrain based on multiple paths is explained.
[0111] In some embodiments, when the virtual object moves from the first position to the exit of the first terrain based on multiple paths, a first virtual resource used as a reward may also be displayed, and the first virtual resource is used for use in the first virtual space; in response to a claiming operation for the first virtual resource, the first virtual resource is claimed, and the virtual object is transferred back to the first virtual space. Here, the first virtual resource may be an interactive prop for the virtual object used in the first virtual space, or an experience value for improving the level of the virtual object.
[0112] In other embodiments, when the virtual object moves from the first position to the exit of the first terrain based on multiple paths, a transmission prompt information is displayed, and the transmission prompt information is used to prompt whether to transmit the virtual object back to the first virtual space; in response to a transmission instruction triggered based on the transmission prompt information, the virtual object is transmitted back to the first virtual space. For example, see Figure 7 , Figure 7is a schematic diagram of the transmission prompt information provided by the embodiment of the present application, based on Figure 7 When the virtual object moves from the first position to the exit of the first terrain based on multiple paths, the transmission prompt information as indicated by 701 is displayed, and then the virtual object is transmitted back to the first virtual space in response to the transmission instruction triggered by the leave control as shown in 702.
[0113] In some embodiments, virtual resources may also be displayed during the movement of the virtual object. Specifically, in response to movement instructions for the virtual object, the virtual object is controlled to move in the first terrain of the second virtual space; when the virtual object moves to the target position in the path, a second virtual resource used as a reward is displayed, and the second virtual resource is used for use in the second virtual space.
[0114] It should be noted that the second virtual resource can be an interactive prop for virtual objects used in the second virtual space, or experience points for improving the level of virtual objects, etc.; the target position is a specific position in the path, which can be pre-set or randomly set, or can be determined based on the current position of the virtual object. For example, the current position of the virtual object is detected in real time, and when the detection result indicates that the distance between the current position of the virtual object and the exit reaches the target distance threshold, the current position of the virtual object is determined to be the target position, and the second virtual resource used as a reward is displayed at the target position; here, the target distance threshold can be multiple, such as 300 meters, 200 meters, 100 meters, etc., so that based on multiple target distance thresholds, multiple second virtual resources can be displayed during the movement of the virtual object, thereby improving the movement enthusiasm of the virtual object and the interactive experience.
[0115] In some embodiments, at least one obstacle is provided in the multiple paths, and the obstacle is used to hinder the movement of the virtual object in the first terrain. Therefore, the obstacle can also be removed. Specifically, the task guidance information of the interactive task is displayed; based on the task guidance information, in response to the task execution instruction for the interactive task, the virtual object is controlled to perform the interactive task; when the virtual object completes the interactive task, the obstacles included in the multiple paths are canceled. Here, before the task guidance information of the interactive task is displayed, the interactive task for the obstacle is identified, and then the task guidance information of the interactive task is displayed, so as to show the process of the virtual object performing the interactive task based on the task guidance information. When the virtual object completes the interactive task, the obstacles included in the multiple paths are canceled; the interactive task here can be pre-set, and the interactive task can be a catapult task, a line connection task, or a synthesis task, etc.
[0116] It should be noted that the task guidance information includes at least one of the introduction information of the interactive task and the condition information for completing the interactive task. The introduction information is used to introduce the execution process of the interactive task, that is, the operation steps, and the condition information is used to indicate the conditions required to complete the interactive task. For example, when the interactive task is a connection task, the introduction information of the interactive task can be a step description of the connection task, such as connecting two identical elements, and the condition information of the interactive task is the conditions required to complete the interactive task, such as connecting a target number of elements.
[0117] In actual implementation, at least two types of obstacles are set in multiple paths, and the at least two types of obstacles are used to hinder the movement of virtual objects in the first terrain. Different types of obstacles are associated with different interactive tasks. Therefore, obstacles of the target type can also be removed. Specifically, task guidance information of interactive tasks associated with each type of obstacles is displayed; based on the task guidance information, in response to task execution instructions for the target interactive task, the virtual object is controlled to perform the target interactive task; when the virtual object completes the target interactive task, the obstacles of the target type associated with the target interactive task in the multiple paths are undisplayed.
[0118] In actual implementation, there are many types of obstacles, and different types of obstacles are associated with different interactive tasks. Therefore, based on the task guidance information, in response to the task execution instruction for the target interactive task, the process of controlling the virtual object to perform the target interactive task may be to identify the interactive tasks for each type of obstacle; display the task options for each type of obstacle and the task guidance information; based on the task guidance information, in response to the selection operation for the target task option among multiple task options, select the target interactive task corresponding to the target task option as the interactive task performed by the virtual object, and display the process of the virtual object performing the target interactive task based on the task guidance information, so that when the virtual object completes the target interactive task, the obstacles of the target type associated with the target interactive tasks in multiple paths are undisplayed.
[0119] It should be noted that the interactive tasks can be ejection tasks, connection tasks or synthesis tasks, etc. Different types of obstacles are associated with different interactive tasks. For example, the interactive task associated with the laser type obstacle can be an ejection task, and the interactive task associated with the monster type obstacle can be a connection task. As mentioned above, the task guidance information also includes at least one of the introduction information of the interactive task and the condition information for completing the interactive task. Among them, the introduction information is used to introduce the execution process of the interactive task, that is, the operation steps, and the condition information is used to indicate the conditions required to complete the interactive task.
[0120] Step 103, when the virtual object is transferred from the first virtual space to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, and the virtual object is displayed at a second position in the second terrain different from the exit position.
[0121] In some embodiments, before displaying the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space at the first position in the second virtual space of the virtual scene, the first virtual object and the second virtual object may also be displayed in the first virtual space of the virtual scene; thus, when the first virtual object and the second virtual object are simultaneously transmitted to the second virtual space, the first virtual object may also be displayed at a third position different from the exit in the second virtual space of the virtual scene, and the second virtual object may also be displayed at a fourth position different from the exit in the second virtual space of the virtual scene; wherein the third position and the fourth position are different positions, and the distance between the third position and the exit is different from the distance between the fourth position and the exit.
[0122] It should be noted that the first virtual object can be a player character controlled by the current player, or a player character controlled by other players (teammates) who belong to the same group as the current player; and the second virtual object can be a player character controlled by other players (teammates) who belong to the same group as the current player, or a player character controlled by other players who are in the enemy camp of the player character controlled by the current player, or an AI-controlled object for players to interact with in the virtual scene, or an NPC in the virtual scene, etc.
[0123] In actual implementation, when the first virtual object and the second virtual object are transmitted to the second virtual space together, the third position and the fourth position are determined according to the game attributes of the corresponding first virtual object and the second virtual object, such as record and level. Specifically, when the first virtual object and the second virtual object are transmitted to the second virtual space together, the game attributes of the first virtual object and the game attributes of the second virtual object are obtained, the game attributes of the first virtual object are analyzed to obtain the third position corresponding to the first virtual object, and the game attributes of the second virtual object are analyzed to obtain the fourth position corresponding to the second virtual object, so that the first virtual object is displayed at the third position different from the exit in the second virtual space of the virtual scene, and the second virtual object is displayed at the fourth position different from the exit in the second virtual space of the virtual scene.
[0124] It should be noted that the parameters related to the game attributes of the first virtual object and the second virtual object may be negatively correlated or positively correlated with the distance from the position where the first virtual object and the second virtual object are transmitted to the second virtual space to the exit. Specifically, when the parameters related to the game attributes of the first virtual object and the second virtual object are negatively correlated with the distance from the position where the first virtual object and the second virtual object are transmitted to the second virtual space to the exit, for example, when the game attributes are the levels of the first virtual object and the second virtual object or the winning rate of the game record, the higher the levels of the first virtual object and the second virtual object or the winning rate of the game record, the closer the distance from the position where the first virtual object and the second virtual object are transmitted to the second virtual space to the exit, that is, when the first virtual object When the level of the object or the winning rate of the game record is higher than that of the second virtual object, the distance between the third position and the exit is smaller than that of the fourth position; when the parameters related to the game attributes of the first virtual object and the second virtual object are positively correlated with the distance between the position where the first virtual object and the second virtual object are transmitted to the second virtual space and the exit, for example, when the game attribute is the level of the first virtual object and the second virtual object or the winning rate of the game record, the higher the level of the first virtual object and the second virtual object or the winning rate of the game record, the farther the position where the first virtual object and the second virtual object are transmitted to the second virtual space is from the exit, that is, when the level of the first virtual object or the winning rate of the game record is higher than that of the second virtual object, the distance between the third position and the exit is greater than that of the fourth position.
[0125] It should be noted that the parameters related to the game attributes of the first virtual object and the second virtual object can be pre-set with the relationship between the distance between the position where the first virtual object and the second virtual object are transmitted to the second virtual space and the exit, and this embodiment of the present application does not limit this.
[0126] In some embodiments, when the first virtual object and the second virtual object are transmitted to the second virtual space together, different virtual objects may also correspond to different terrains. Specifically, the first virtual object is transmitted to a fifth position in the third terrain that is different from the exit position, and the second virtual object is transmitted to a sixth position in the fourth terrain that is different from the exit position, wherein the second virtual space has a third terrain and a fourth terrain, and the third terrain is different from the fourth terrain. Here, the fifth position and the sixth position may be the same or different. When the fifth position and the sixth position are different, the determination process of the fifth position and the sixth position is the same as the determination process of the third position and the fourth position in the foregoing text, and this is not repeated in the embodiments of the present application.
[0127] It should be noted that, when the first virtual object and the second virtual object are transmitted to the second virtual space together, the third terrain and the fourth terrain are determined according to the game attributes of the corresponding first virtual object and the second virtual object, such as the record and the level. Specifically, when the first virtual object and the second virtual object are transmitted to the second virtual space together, the game attributes of the first virtual object and the game attributes of the second virtual object are obtained, the game attributes of the first virtual object are analyzed to obtain the third terrain corresponding to the first virtual object, and the game attributes of the second virtual object are analyzed to obtain the fourth terrain corresponding to the second virtual object, so that the first virtual object is transmitted to the fifth position in the third terrain different from the exit position, and the second virtual object is transmitted to the sixth position in the fourth terrain different from the exit position.
[0128] It should be noted that the parameters related to the game attributes of the first virtual object and the second virtual object may be negatively correlated or positively correlated with the complexity of the terrain to which the first virtual object and the second virtual object are transmitted to the second virtual space. Specifically, when the parameters related to the game attributes of the first virtual object and the second virtual object are negatively correlated with the complexity of the terrain to which the first virtual object and the second virtual object are transmitted to the second virtual space, for example, when the game attributes are the levels of the first virtual object and the second virtual object or the winning rate of the game record, the higher the levels of the first virtual object and the second virtual object or the winning rate of the game record, the lower the complexity of the terrain to which the first virtual object and the second virtual object are transmitted to the second virtual space. That is, when the levels of the first virtual object and the second virtual object or the winning rate of the game record are higher, the complexity of the terrain to which the first virtual object and the second virtual object are transmitted to the second virtual space is lower. When the level or the winning rate of the game record of the first virtual object is higher than that of the second virtual object, the complexity of the third terrain is lower than that of the fourth terrain; when the parameters related to the game attributes of the first virtual object and the second virtual object are positively correlated with the complexity of the terrain to which the first virtual object and the second virtual object are transmitted to the second virtual space, for example, when the game attribute is the level or the winning rate of the game record of the first virtual object and the second virtual object, the higher the level or the winning rate of the game record of the first virtual object and the second virtual object, the higher the complexity of the terrain to which the first virtual object and the second virtual object are transmitted to the second virtual space, that is, when the level or the winning rate of the game record of the first virtual object is higher than that of the second virtual object, the complexity of the third terrain is higher than that of the fourth terrain.
[0129] It should be noted that the terrain in the second virtual space is composed of a plurality of plots, wherein each plot has a corresponding connection method, which is used to indicate the direction in which the corresponding plot can be connected, such as the direction in which the connection can be made in the six directions of east, south, west, north, up and down. For example, the southeast, northwest and north of a plot at an intersection can be connected to any plot with a connection direction. However, a plot at a T-shaped intersection can only be connected to plots with connection directions in three directions, and one direction can only be connected to plots without a connection direction. That is, the connection method corresponding to each plot can be pre-set. At the same time, in addition to directly limiting the direction in which the plot can be connected, the connection method of the plot can also be set by an escape character, for example, escape character A represents never facing the boundary, and escape character B represents always facing the boundary, etc. Here, the setting process of the connection method of the plot is not limited in the embodiments of the present application.
[0130] In some embodiments, for the process of controlling the terrain of the second virtual space to change from a first terrain to a second terrain, first, multiple plots of land in the second virtual space for generating the terrain are obtained, and then the multiple plots of land are randomly combined to obtain a new terrain. That is, the process of controlling the terrain of the second virtual space to change from a first terrain to a second terrain can be to randomly combine multiple plots of land to obtain the second terrain.
[0131] In other embodiments, for the process of controlling the terrain of the second virtual space to change from the first terrain to the second terrain, the target terrain may be obtained from a pre-set terrain library including multiple terrains, so as to determine the target terrain as the second terrain.
[0132] It should be noted that the virtual object will carry a number identifier for indicating the number of times it has been transmitted to the second virtual space. Different number identifiers correspond to different terrains. Therefore, in the process of obtaining the target terrain, it can be that the number identifier carried by the virtual object is obtained, and based on the number identifier, the target terrain corresponding to the number identifier is obtained; thereby, the target terrain is determined as the second terrain, and the process of controlling the terrain of the second virtual space from the first terrain to the second terrain is realized, so that the virtual object will be in a different terrain each time it enters the second virtual space.
[0133] Applying the above-mentioned embodiment of the present application, when the first virtual object in the virtual scene has a summoning object, and the first virtual object kills the second virtual object in the virtual scene, the interactive props are displayed, and then the first virtual object is controlled to interact with the interactive props using the summoning object, and the summoning object is switched from the first form to the second form, and at the same time, an auxiliary object of the summoning object is generated, so as to use the summoning object and the auxiliary object to assist the first virtual object to interact with other virtual objects. In this way, the summoning object is used to interact with the interactive props displayed when the enemy is killed, so as to summon the auxiliary object attached to the summoning object, and then the summoning object and the auxiliary object are combined to assist the first virtual object controlled by the player to interact with other virtual objects. Compared with only interacting with other objects in the virtual scene through the summoning object, it not only enriches the player's interaction process and improves the diversity of interaction methods in the virtual scene, but also improves the efficiency of human-computer interaction and the utilization rate of hardware resources of electronic equipment.
[0134] The following is an explanation of an exemplary application of the embodiments of the present application in a practical application scenario.
[0135] In the related art, designing the terrain in a game scene requires a lot of planning and art resources. Therefore, in order to save resources, many games will design fixed maps or terrains for the same game scene. However, if players only interact in fixed maps or terrains, the player's interaction process will be relatively simple, resulting in low human-computer interaction efficiency.
[0136] Based on this, the embodiments of the present application provide an interactive method, device, electronic device, computer-readable storage medium, and computer program product in a virtual scene, whereby each time a player enters a dynamic maze, the maze structure will be completely different from the last time. The maze will contain entrances, exits, and obstacles, thus improving the player's gaming experience and playability through a dynamically generated maze.
[0137] Next, the technical solution of this application is described from the product side. Figure 8 , Figure 8 is a technical flow chart of interaction in a virtual scene provided by an embodiment of the present application, based on Figure 8, the technical solution provided by the present application is implemented through steps 801 to 804. Specifically, when the virtual object controlled by the player enters the special dark tide (the second virtual space), the virtual object is transmitted to the entrance of the maze in the second virtual space, and when the virtual object moves in the maze, a laser obstacle (obstacle) is displayed in the maze, wherein the laser can also cause damage to the virtual object (control the target attribute value of the virtual object to decrease); when the virtual object moves in the maze, a reward (the second virtual resource) is also displayed in the maze, and then the virtual object is controlled to avoid the laser obstacle, and the virtual object is controlled to receive the reward; here, there are multiple traversable routes from the entrance to the exit of the maze, and when the virtual object moves to the exit of the maze, it is determined that the virtual object wins, and the reward (the first virtual resource) is displayed. Among them, the laser can cause damage to the virtual object, and when the virtual object is injured by the laser to a very low blood volume, the virtual object will be transmitted to the entrance of the maze.
[0138] Next, the technical solution of the present application is described from the technical side. The maze is composed of a plurality of plots, wherein each plot has a corresponding connection method, which is used to indicate the direction in which the corresponding plot can be connected, such as the direction in which the connection can be made in the six directions of east, south, west, north, up and down. For example, the southeast, northwest and north of a plot at an intersection can be connected to any plot with a connection direction. However, a plot at a T-shaped intersection can only be connected to plots with connection directions in three directions, and one direction can only be connected to plots without connection directions. That is, the connection method corresponding to each plot can be pre-set. At the same time, in addition to directly limiting the direction in which the plot can be connected, the connection method of the plot can also be set by an escape character, such as escape character A represents never facing the boundary, and escape character B represents always facing the boundary, etc. Here, the setting process of the connection method of the plot is not limited in the embodiment of the present application.
[0139] See also Fig. 9 , Fig. 9 is a technical flow chart of the process of determining the land connection mode provided in the embodiment of the present application, based on Fig. 9 The process of determining the connection mode of plots is implemented through steps 901 to 905. Specifically, the size of the maze and multiple plots used to generate the terrain are first obtained, and then the connection mode of each plot is initialized. Based on the connection mode of each plot, multiple plots are combined, and the connection mode is determined for each plot one by one according to the combination result. When the connection mode of all plots is determined, the loop is jumped out, thereby determining the connection mode of all plots, and then according to the connection mode of all plots, multiple plots are randomly combined to obtain a maze.
[0140] It should be noted that when generating a maze, two data tables need to be read, one for storing plots and one for defining the connection method of each plot. For example, Fig.10 as well as Fig.11 As shown, Fig.10 is a schematic diagram of a data table read during the maze generation process provided in an embodiment of the present application, Fig.11 is a schematic diagram of a data table read during the maze generation process provided in an embodiment of the present application, based on Fig.10 , the dotted box 1001 shows eight plots with multiple locations, so when generating a maze, read Fig.10 The eight plots shown in the dashed box 1001 are then based on Fig.11 , the dashed box 1101 shows the connection mode defined for each plot, so that when generating the maze, the following is read: Fig.11 The connection mode of each plot indicated by the dashed box 1101 is randomly connected based on the connection mode of each plot, and multiple plots are connected and combined to generate a map. For example, see Fig.12 , Fig.12 is a schematic diagram of multiple plots provided in the embodiment of the present application, based on Fig.12 , Fig.12 The eight plots shown in 1201 to 1208 are included, so that a maze map is randomly generated based on the eight plots.
[0141] In other embodiments, the target maze can also be obtained from a pre-set maze library including multiple mazes (terrains), so that the target terrain is determined as a new maze. Here, different players (virtual objects) will carry a number identifier for indicating the number of times they have been transmitted, and different number identifiers correspond to different mazes, so the process of obtaining the target maze can be to obtain the number identifier carried by the virtual object controlled by the player, and based on the number identifier, obtain the target maze corresponding to the number identifier; so that each time the player enters the dark tide, it will be a different maze. In this way, the dynamically generated maze increases the diversity of the gameplay for players and allows players to have a better gaming experience; at the same time, the dynamic maze is extremely easy to expand for designers, so that a large number of different mazes can be produced in a short time, which improves the diversity of the interaction process.
[0142] In actual implementation, since lasers can cause damage to virtual objects, it is easy for players to die in a dynamic maze if they play for the first time. This is a bad experience for players, and it is difficult for teammates to rescue them, and the cost of exploring the maze is increased. Fig.13 , Fig.13 is a logical schematic diagram of a virtual object being transmitted to the entrance of a maze provided in an embodiment of the present application, based on Fig.13When a virtual object hits a laser, the virtual object's health (life value) will be checked. If the virtual object's health is not enough to bear the damage, the virtual object will be teleported to the entrance of the maze and restored to 75% of its health, so that the virtual object can move again in the maze based on the 75% health.
[0143] By applying the above-mentioned embodiments of the present application, a virtual object is transmitted from a first virtual space of a virtual scene to a first position of a second virtual space different from an exit; wherein the second virtual space has a first terrain, the exit of the first terrain is associated with multiple paths, and the first position is within the first terrain; when the virtual object moves from the first position to the exit of the first terrain based on multiple paths, the virtual object is transmitted back to the first virtual space; when the virtual object is transmitted from the first virtual space to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, and the virtual object is displayed at a second position in the second terrain different from the exit position. In this way, when the virtual object is transmitted to the second virtual space for the first time, the virtual object is transmitted to the first terrain of the second virtual space, and after the virtual object leaves the second virtual space, when the virtual object is transmitted to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, thereby transmitting the virtual object to the second terrain of the second virtual space. In this way, each time the virtual object is transmitted to the second virtual space, the terrain of the second virtual space is dynamically changed. Compared with transmitting the virtual object to a fixed terrain every time, this not only enriches the player's interaction process and improves the diversity of interaction methods in virtual scenes, but also improves the efficiency of human-computer interaction and the utilization rate of hardware resources of electronic equipment.
[0144] The following is a description of an exemplary structure of the interactive device 455 in the virtual scene provided by the present application as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the interactive device 455 in the virtual scene of the memory 450 may include:
[0145] A display module 4551 is configured to display, at a first position in a second virtual space of a virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space; wherein the second virtual space has a first terrain, an exit of the first terrain is associated with a plurality of paths, the first position is within the first terrain, and the first position is different from a position of the exit;
[0146] A transmission module 4552, configured to transmit the virtual object back to the first virtual space when the virtual object moves from the first position to the exit of the first terrain based on the multiple paths;
[0147] The control module 4553 is used to control the terrain of the second virtual space to change from the first terrain to the second terrain when the virtual object is transmitted from the first virtual space to the second virtual space again, and to display the virtual object at a second position in the second terrain that is different from the exit position.
[0148] In some embodiments, the first position is the entrance of the first terrain; the display module 4551 is also used to display the process of the virtual object appearing in the second virtual space at the entrance in the second virtual space of the virtual scene; the transmission module 4552 is also used to transmit the virtual object back to the first virtual space when the virtual object moves from the entrance to the exit of the first terrain based on the multiple paths.
[0149] In some embodiments, the device also includes a second control module, which is used to control the virtual object to enter the target path and move along the target path in response to a selection operation for a target path among the at least two paths when the first position is the intersection of at least two paths; the transmission module 4552 is also used to transmit the virtual object back to the first virtual space when the virtual object moves to the exit of the first terrain during the movement of the virtual object along the target path.
[0150] In some embodiments, the device also includes a third control module, which is used to control the virtual object to move in the first terrain of the second virtual space based on the multiple paths in response to a movement instruction for the virtual object; during the movement of the virtual object, obstacles are displayed, and the obstacles are used to hinder the movement of the virtual object in the first terrain.
[0151] In some embodiments, the device also includes a fourth control module, which is used to control the target attribute value of the virtual object to decrease when the virtual object moves into the sensing range of the obstacle; wherein the target attribute value includes at least one of the following: the life value and speed value of the virtual object.
[0152] In some embodiments, the device further includes a fifth control module, and the fifth control module is used to control the virtual object to perform a target movement in response to a movement instruction for the virtual object; wherein the target movement is used for the virtual object to avoid the obstacle.
[0153] In some embodiments, the device also includes a reset module, which is used to control the movement of the virtual object in the first terrain of the second virtual space in response to a movement operation on the virtual object; during the movement of the virtual object, when a target condition for resetting the position of the virtual object is met, the process of the virtual object reappearing in the first position is displayed; wherein the target condition includes at least one of the following: the movement time of the virtual object in the first terrain reaches the target time, and the health value of the virtual object drops to a health value threshold.
[0154] In some embodiments, the device also includes a determination module, which is used to obtain an initial target attribute value of the virtual object and a correlation coefficient of the initial target attribute value when a target condition for resetting the position of the virtual object is met; wherein the size of the correlation coefficient is negatively correlated with the number of times the virtual object is reset, and the initial target attribute value includes at least one of the following: an initial life value and an initial speed value of the virtual object; based on the correlation coefficient and the initial target attribute value, determine the initial target attribute value of the virtual object when it reappears at the first position.
[0155] In some embodiments, the transmission module 4552 is also used to display a first virtual resource used as a reward when the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, and the first virtual resource is used to be used in the first virtual space; in response to the collection operation for the first virtual resource, the first virtual resource is collected and the virtual object is transmitted back to the first virtual space.
[0156] In some embodiments, the transmission module 4552 is also used to display transmission prompt information when the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, and the transmission prompt information is used to prompt whether to transmit the virtual object back to the first virtual space; in response to the transmission instruction triggered based on the transmission prompt information, the virtual object is transmitted back to the first virtual space.
[0157] In some embodiments, the device also includes a sixth control module, which is used to control the movement of the virtual object in the first terrain of the second virtual space in response to a movement instruction for the virtual object; when the virtual object moves to the target position in the path, a second virtual resource used as a reward is displayed, and the second virtual resource is used for use in the second virtual space.
[0158] In some embodiments, the device further includes a second display module, which is used to display the first virtual object and the second virtual object in a first virtual space of the virtual scene; when the first virtual object and the second virtual object are simultaneously transmitted to the second virtual space, the device further includes a third display module, which is used to display the first virtual object at a third position different from the exit in the second virtual space of the virtual scene, and to display the second virtual object at a fourth position different from the exit in the second virtual space of the virtual scene; wherein the third position and the fourth position are different positions, and a distance from the third position to the exit is different from a distance from the fourth position to the exit.
[0159] In some embodiments, at least one obstacle is provided in the multiple paths, and the obstacle is used to hinder the movement of the virtual object in the first terrain; the device also includes a fourth display module, and the fourth display module is used to display task guidance information of the interactive task; based on the task guidance information, in response to the task execution instruction for the interactive task, the virtual object is controlled to perform the interactive task; when the virtual object completes the interactive task, the obstacles included in the multiple paths are canceled.
[0160] In some embodiments, at least two types of obstacles are provided in the multiple paths, and the at least two types of obstacles are used to hinder the movement of the virtual object in the first terrain, and different types of obstacles are associated with different interactive tasks; the device also includes a fifth display module, and the fifth display module is used to display task guidance information of the interactive tasks associated with each type of obstacle; based on the task guidance information, in response to a task execution instruction for a target interactive task, the virtual object is controlled to execute the target interactive task; when the virtual object completes the target interactive task, the target type of obstacles associated with the target interactive task in the multiple paths are undisplayed.
[0161] In some embodiments, the device also includes a sixth display module, which is used to display the virtual object and virtual scene elements belonging to natural phenomena in the first virtual space of the virtual scene; when the virtual object is in the sensing area of the virtual scene element, the virtual object is transmitted from the first virtual space to the second virtual space.
[0162] In some embodiments, the sixth display module is also used to display the length of time the virtual object stays in the sensing area when the virtual object is in the sensing area of the virtual scene element; when the stay time reaches a stay time threshold, the virtual object is transferred from the first virtual space to the second virtual space.
[0163] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the above-mentioned interaction method in the virtual scene of the embodiment of the present application.
[0164] The embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the interactive method in the virtual scene provided by the embodiment of the present application, for example, Figure 3 The interactive method in the virtual scene is shown.
[0165] In some embodiments, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a CD-ROM; or it may be various devices including one or any combination of the above memories.
[0166] In some embodiments, 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.
[0167] As an example, 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 coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0168] As an example, the 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 at multiple sites and interconnected by a communication network.
[0169] In summary, the embodiments of the present application have the following beneficial effects:
[0170] (1) When the virtual object is first transmitted to the second virtual space, the virtual object is transmitted to the first terrain of the second virtual space. After the virtual object leaves the second virtual space, when the virtual object is transmitted to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, thereby transmitting the virtual object to the second terrain of the second virtual space. In this way, each time the virtual object is transmitted to the second virtual space, the terrain of the second virtual space is dynamically changed. Compared with transmitting the virtual object to a fixed terrain every time, this not only enriches the player's interaction process and improves the diversity of interaction methods in the virtual scene, but also improves the efficiency of human-computer interaction and the utilization rate of hardware resources of the electronic device.
[0171] (2) Based on multiple target distance thresholds, multiple second virtual resources are displayed during the movement of the virtual object, thereby improving the movement enthusiasm of the virtual object and the interactive experience.
[0172] It is understandable that in the embodiments of the present application, data related to user trigger operations, etc., when the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0173] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. An interactive method in a virtual scene, characterized in that: The method comprises: Displaying, at a first position in a second virtual space of a virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space; The second virtual space has a first terrain, an exit of the first terrain is associated with a plurality of paths, the first position is within the first terrain, and the first position is different from a position of the exit; When the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, transmitting the virtual object back to the first virtual space; When the virtual object is transferred from the first virtual space to the second virtual space again, the terrain of the second virtual space is controlled to change from the first terrain to the second terrain, and the virtual object is displayed at a second position in the second terrain different from the exit position.
2. The method according to claim 1, characterized in that The first position is an entrance to the first terrain; the first position in the second virtual space of the virtual scene displays a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space, including: At the entrance of the second virtual space in the virtual scene, displaying a process in which the virtual object appears in the second virtual space; When the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, transmitting the virtual object back to the first virtual space comprises: When the virtual object moves from the entrance to the exit of the first terrain based on the multiple paths, the virtual object is transmitted back to the first virtual space.
3. The method according to claim 1, characterized in that After displaying the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space at the first position in the second virtual space of the virtual scene, the method further comprises: When the first position is an intersection position of at least two paths, in response to a selection operation on a target path among the at least two paths, controlling the virtual object to enter the target path and move along the target path; When the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, transmitting the virtual object back to the first virtual space comprises: During the movement of the virtual object along the target path, when the virtual object moves to the exit of the first terrain, the virtual object is transmitted back to the first virtual space.
4. The method according to claim 1, characterized in that After displaying the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space at the first position in the second virtual space of the virtual scene, the method further comprises: In response to a movement instruction for the virtual object, controlling the virtual object to move in the first terrain of the second virtual space based on the multiple paths; During the movement of the virtual object, obstacles are displayed, and the obstacles are used to hinder the movement of the virtual object in the first terrain.
5. The method according to claim 4, characterized in that After displaying the obstacle, the method further includes: When the virtual object moves into the sensing range of the obstacle, controlling the target attribute value of the virtual object to decrease; The target attribute value includes at least one of the following: the life value and the speed value of the virtual object.
6. The method according to claim 4, characterized in that After displaying the obstacle, the method further includes: In response to a movement instruction for the virtual object, controlling the virtual object to perform a target movement; The target motion is used for the virtual object to avoid the obstacle.
7. The method according to claim 1, characterized in that After displaying the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space at the first position in the second virtual space of the virtual scene, the method further comprises: In response to a movement operation on the virtual object, controlling the virtual object to move in a first terrain of the second virtual space; During the movement of the virtual object, when a target condition for resetting the position of the virtual object is met, a process of showing that the virtual object reappears at the first position; The target condition includes at least one of the following: the moving time of the virtual object in the first terrain reaches the target time, and the life value of the virtual object drops to a life value threshold.
8. The method according to claim 7, characterized in that The method further comprises: When a target condition for resetting the position of the virtual object is met, obtaining an initial target attribute value of the virtual object and a correlation coefficient of the initial target attribute value; The magnitude of the correlation coefficient is negatively correlated with the number of times the virtual object is reset, and the initial target attribute value includes at least one of the following: the initial life value and the initial speed value of the virtual object; An initial target attribute value when the virtual object reappears at the first position is determined based on the correlation coefficient and the initial target attribute value.
9. The method according to claim 1, characterized in that When the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, transmitting the virtual object back to the first virtual space comprises: When the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, displaying a first virtual resource used as a reward, wherein the first virtual resource is used to be used in the first virtual space; In response to a claiming operation on the first virtual resource, the first virtual resource is claimed, and the virtual object is transferred back to the first virtual space.
10. The method according to claim 1, characterized in that When the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, transmitting the virtual object back to the first virtual space comprises: When the virtual object moves from the first position to the exit of the first terrain based on the multiple paths, displaying transmission prompt information, wherein the transmission prompt information is used to prompt whether to transmit the virtual object back to the first virtual space; In response to a transmission instruction triggered based on the transmission prompt information, the virtual object is transmitted back to the first virtual space.
11. The method according to claim 1, characterized in that After displaying the virtual object transmitted from the first virtual space of the virtual scene to the second virtual space at the first position in the second virtual space of the virtual scene, the method further comprises: In response to a movement instruction for the virtual object, controlling the virtual object to move in the first terrain of the second virtual space; When the virtual object moves to the target position in the path, a second virtual resource used as a reward is displayed, and the second virtual resource is used for use in the second virtual space.
12. The method according to claim 1, characterized in that Before displaying, at a first position in a second virtual space of a virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space, the method further comprises: Displaying the first virtual object and the second virtual object in a first virtual space of the virtual scene; When the first virtual object and the second virtual object are simultaneously transmitted to the second virtual space, the method further includes: Displaying the first virtual object at a third position different from the exit in a second virtual space of the virtual scene, and displaying the second virtual object at a fourth position different from the exit in the second virtual space of the virtual scene; The third position and the fourth position are different positions, and the distance between the third position and the outlet is different from the distance between the fourth position and the outlet.
13. The method according to claim 1, characterized in that At least one obstacle is arranged in the plurality of paths, and the obstacle is used to hinder the movement of the virtual object in the first terrain; the method further includes: Display task guidance information for interactive tasks; Based on the task guidance information, in response to a task execution instruction for the interactive task, controlling the virtual object to execute the interactive task; When the virtual object completes the interactive task, the obstacles included in the multiple paths are undisplayed.
14. The method according to claim 1, wherein: At least two types of obstacles are arranged in the plurality of paths, the at least two types of obstacles are used to hinder the movement of the virtual object in the first terrain, and different types of obstacles are associated with different interactive tasks; The method further comprises: Displaying task guidance information of interactive tasks associated with each type of obstacle; Based on the task guidance information, in response to a task execution instruction for a target interactive task, controlling the virtual object to execute the target interactive task; When the virtual object completes the target interaction task, the target type obstacles associated with the target interaction task in the multiple paths are undisplayed.
15. The method according to claim 1, wherein: Before displaying, at a first position in a second virtual space of the virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space, the method further comprises: In a first virtual space of the virtual scene, displaying the virtual object and virtual scene elements belonging to natural phenomena; When the virtual object is within the sensing area of the virtual scene element, the virtual object is transmitted from the first virtual space to the second virtual space.
16. The method according to claim 15, characterized in that When the virtual object is in the sensing area of the virtual scene element, transmitting the first virtual object from the first virtual space to the second virtual space includes: When the virtual object is in the sensing area of the virtual scene element, display the length of time the virtual object has stayed in the sensing area; When the stay time reaches a stay time threshold, the virtual object is transferred from the first virtual space to the second virtual space.
17. An interactive device in a virtual scene, characterized in that: The device comprises: A display module, configured to display, at a first position in a second virtual space of a virtual scene, a virtual object transmitted from the first virtual space of the virtual scene to the second virtual space; wherein the second virtual space has a first terrain, an exit of the first terrain is associated with a plurality of paths, the first position is within the first terrain, and the first position is different from a position of the exit; a transmission module, configured to transmit the virtual object back to the first virtual space when the virtual object moves from the first position to the exit of the first terrain based on the multiple paths; The control module is used to control the terrain of the second virtual space to change from the first terrain to the second terrain when the virtual object is transmitted from the first virtual space to the second virtual space again, and to display the virtual object at a second position in the second terrain different from the exit position.
18. An electronic device, characterized in that: include: A memory for storing executable instructions; A processor is used to implement the interaction method in a virtual scene as described in any one of claims 1 to 16 when executing the executable instructions stored in the memory.
19. A computer-readable storage medium, characterized in that: Executable instructions are stored, which are used to cause the processor to execute and implement the interactive method in the virtual scene described in any one of claims 1 to 16.
20. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the interactive method in a virtual scene described in any one of claims 1 to 16 is implemented.
Citation Information
Patent Citations
Game application map switching method and device, storage medium, and electronic device
CN110013670A
Game display method and device, and terminal
CN113304480A
