Interaction method and apparatus for virtual scene, and electronic device, computer-readable storage medium and computer program product
Through the trap interference operation of virtual objects, the virtual objects are transferred from the first virtual scene to the second virtual scene, which solves the problem of low interaction efficiency and resource waste caused by the virtual object's movement restrictions, and improves the interaction diversity and efficiency of the virtual scene.
Patent Information
- Application Number
- PCT/CN2023/130182
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-06
- Filing Date
- 2023-11-07
- Publication Date
- 2024-09-12
AI Technical Summary
In virtual scenes, when virtual objects are restricted from moving, it results in low efficiency of human-computer interaction and waste of computing and communication resources. Moreover, existing technology is difficult to implement restrictions through interactive methods, which limits the diversity of interactions in virtual scenes.
Through the trap interference operation of the first virtual object, the second virtual scene is displayed and the second virtual object is controlled to enter the scene, thereby performing interactive tasks in the second virtual scene, providing more interaction methods and modes, and improving the diversity of human-computer interaction. , and improve interaction efficiency and resource utilization without affecting the game logic of the first virtual scene.
It achieves meeting the virtual object interaction needs without affecting the progress of the first virtual scene game, improves human-computer interaction efficiency and resource utilization, and provides players with a broader visual space and interactive experience.
Smart Images

Figure CN2023130182_12092024_PF_FP_ABST
Abstract
Description
Virtual scene interactive method, device, electronic device, computer-readable storage medium, and computer program product
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 202310122153.2 and application date of February 6, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to computer human-computer interaction technology, and in particular to a virtual scene interaction method, device, electronic device, computer-readable storage medium and computer program product. Background Art
[0004] Display technology based on graphics processing hardware has expanded the channels for perceiving the environment and obtaining information, especially multimedia technology for virtual scenes. With the help of human-computer interaction engine technology, it can realize diversified interactions between virtual objects controlled by users or artificial intelligence according to actual application needs. It has various typical application scenarios. For example, in virtual scenes such as games, it can simulate the real battle process between virtual objects.
[0005] Players control virtual objects to interact in virtual scenes to win the game. During the interaction process in the virtual scene, some virtual objects will be restricted in their movements for various reasons. For example, some virtual objects will be confined to a certain area in the virtual scene. However, when virtual objects are restricted in their movements, the corresponding players will be unable to participate in the game, resulting in low human-computer interaction efficiency and waste of related computing and communication resources.
[0006] Summary of the Invention
[0007] Embodiments of the present application provide a method, device, electronic device, computer-readable storage medium, and computer program product for interacting with a virtual scene, which can improve the interactive diversity of the virtual scene.
[0008] The technical solution of the embodiment of the present application is implemented as follows:
[0009] An embodiment of the present application provides a method for interacting with a virtual scene, the method being executed by an electronic device and comprising:
[0010] Displaying a first virtual scene, wherein the first virtual scene includes a first virtual object, and the first virtual object is a virtual object controlled by a player;
[0011] In response to the trap interference operation of the first virtual object, displaying a second virtual scene and displaying the second virtual object in the second virtual scene, wherein the second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered;
[0012] The process of displaying the second virtual object being controlled to perform an interactive task in the second virtual scene.
[0013] The embodiment of the present application provides an interactive device for a virtual scene, comprising:
[0014] A first display module is configured to display a first virtual scene, wherein the first virtual scene includes a first virtual object, and the first virtual object is a virtual object controlled by a player;
[0015] a first trap module configured to display a second virtual scene and display the second virtual object in the second virtual scene in response to a trap interference operation of the first virtual object, wherein the second virtual object is a virtual object that is within an influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered;
[0016] The first virtual module is configured to display a process in which the second virtual object is controlled to perform an interactive task in the second virtual scene.
[0017] An embodiment of the present application provides a method for interacting with a virtual scene, the method being executed by an electronic device and comprising:
[0018] displaying a first virtual scene, wherein the first virtual scene includes a first virtual object;
[0019] In response to the trap interference operation of the first virtual object, displaying a second virtual scene and displaying the second virtual object in the second virtual scene;
[0020] The second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered, and the second virtual scene is another virtual scene completely different from the first virtual scene;
[0021] The process of displaying the second virtual object being controlled to perform an interactive task in the second virtual scene.
[0022] The embodiment of the present application provides an interactive device for a virtual scene, comprising:
[0023] a second display module configured to display a first virtual scene, wherein the first virtual scene includes a first virtual object;
[0024] a second trap module configured to display a second virtual scene and the second virtual object in response to the trap interference operation of the first virtual object; wherein the second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered, and the second virtual scene is another virtual scene completely different from the first virtual scene;
[0025] The second virtual module is configured to display a process in which the second virtual object is controlled to perform an interactive task in the second virtual scene.
[0026] An embodiment of the present application provides an electronic device, including:
[0027] a memory for storing computer-executable instructions;
[0028] The processor is used to implement the virtual scene interaction method provided in the embodiment of the present application when executing the computer executable instructions stored in the memory.
[0029] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for causing a processor to execute the instructions to implement the virtual scene interaction method provided in the embodiment of the present application.
[0030] An embodiment of the present application provides a computer program product, including computer-executable instructions. When the computer-executable instructions are executed by a processor, the virtual scene interaction method provided in the embodiment of the present application is implemented.
[0031] The embodiments of the present application have the following beneficial effects:
[0032] Through the trap interference operation of the first virtual object, the second virtual object is controlled to enter the second virtual scene, which is equivalent to the player controlling the first virtual object being able to prevent the second virtual object from interacting in the first virtual scene through operation, providing game players with more interaction methods and human-computer interaction modes, and improving the diversity of human-computer interaction; controlling the second virtual object to enter the second virtual scene and displaying the process of the second virtual object performing the interactive task in the second virtual scene allows the second virtual object to interact in the game in the second virtual scene, which can meet the interaction needs of the second virtual object without affecting the game logic in the first virtual scene, thereby improving the efficiency of human-computer interaction and the utilization rate of related computing and communication resources. In addition, through the expansion of the virtual scene, the utilization rate of display resources can be improved, and a wider visual space can be provided for players. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] 1A-1C are schematic diagrams of the structure of an interactive system for a virtual scene provided in an embodiment of the present application;
[0034] FIG2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0035] 3A-3C are flowcharts of a virtual scene interaction method provided in an embodiment of the present application;
[0036] FIG4 is a flow chart of a virtual scene interaction method provided in an embodiment of the present application;
[0037] 5A-5C are schematic diagrams of interfaces of a virtual scene interaction method provided in an embodiment of the present application;
[0038] 6A-6B are schematic diagrams of interfaces of a virtual scene interaction method provided in an embodiment of the present application;
[0039] 7A-7D are schematic diagrams of interfaces of a virtual scene interaction method provided in an embodiment of the present application;
[0040] FIG8 is a flow chart of a method for interacting with a virtual scene according to an embodiment of the present application;
[0041] FIG9 is a schematic diagram of the attack principle of the interactive method of the virtual scene provided in an embodiment of the present application;
[0042] 10A-10C are schematic diagrams showing the principles of interactive tasks in the virtual scene interactive method provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0044] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0045] 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.
[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0047] 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.
[0048] 1) Virtual scenes: Using devices to output scenes that are different from the real world, visual perception of virtual scenes can be formed with the naked eye or with the assistance of devices, such as two-dimensional images output by display screens, and three-dimensional images output by stereoscopic display technologies such as stereo projection, virtual reality, and augmented reality. In addition, various possible hardware can also be used to form various perceptions that simulate the real world, such as auditory perception, tactile perception, olfactory perception, and motion perception.
[0049] 2) 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 can be real-time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0050] 3) Virtual objects: objects that interact in virtual scenes, are controlled by users or robot programs (for example, robot programs based on artificial intelligence), and can be still, move, and perform various behaviors in virtual scenes, such as various characters in games.
[0051] 4) Skill Chips: These are items used to grant game characters special abilities. For example, they can grant new abilities to virtual characters, or grant new abilities to other items held by the virtual character (e.g., virtual shooting props), such as emitting camouflage signals.
[0052] Games using related technologies may employ various interaction modes to attract players, such as a one-on-one battle mode, where points are gained by attacking enemies, or the side that prioritizes attacking a set number of enemies wins. However, such interaction modes are relatively basic, and new interaction modes may be implemented by adding new elements. For example, a virtual object may be restricted so that it cannot interact in the game (moving, attacking, using props, etc.) within a certain period of time. This interaction mechanism may enhance the diversity and complexity of interactions in virtual scenes.
[0053] However, when implementing the embodiments of the present application, the applicant discovered that in the related technology, when virtual objects are restricted in their actions, the corresponding players will be unable to participate in the game, resulting in low human-computer interaction efficiency and waste of related computing and communication resources. In addition, restrictions on virtual objects are usually issued by the background system, and it is difficult for virtual objects to implement restrictions through interaction, which is equivalent to limiting the diversity of human-computer interaction and interaction diversity in the virtual scene.
[0054] The embodiments of the present application provide a method, device, electronic device, computer-readable storage medium and computer program product for interacting with a virtual scene, which can improve the interactive diversity of the virtual scene. The following describes exemplary applications of the electronic device provided by the embodiments of the present application. The electronic device provided by the embodiments of the present application can be implemented as various types of user terminals such as laptop computers, tablet computers, desktop computers, set-top boxes, mobile devices (for example, mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices), etc.
[0055] To facilitate easier understanding of the interactive method of the virtual scene provided in the embodiment of the present application, an exemplary implementation scenario of the interactive method of the virtual scene provided in the embodiment of the present application is first described. The virtual scene can be output entirely based on the terminal, or output based on the collaboration of the terminal and the server.
[0056] In some embodiments, the virtual scene may be an environment for game characters to interact. For example, the virtual scene may be an environment for game characters to fight against each other. By controlling the actions of virtual objects, both parties may interact in the virtual scene.
[0057] In one implementation scenario, refer to Figure 1A, which is a schematic diagram of the application mode of the interactive method of the virtual scene provided in an embodiment of the present application. It is suitable for some application modes that completely rely on the computing power of the terminal 400 to complete the relevant data calculation of the virtual scene 100, such as stand-alone / offline mode games, and the output of the virtual scene is completed through the terminal 400 such as a smartphone, tablet computer and virtual reality / augmented reality device.
[0058] When forming a visual perception of a virtual scene 100 (including a virtual object 110), the terminal 400 calculates the data required for display through graphics computing hardware, and completes the loading, parsing and rendering of the display data, and outputs video frames that can form a visual perception of the virtual scene on the graphics output hardware, for example, presenting two-dimensional video frames on the display screen of a smartphone, or projecting video frames to achieve a three-dimensional display effect on the lenses of augmented reality / virtual reality glasses; in addition, in order to enrich the perception effect, the device can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0059] As an example, the terminal 400 runs a client (such as a stand-alone game application), and during the operation of the client, a virtual scene including role-playing is output. The virtual scene is an environment for game characters to interact, such as plains, streets, valleys, etc. for game characters to fight; a first virtual scene is displayed on the terminal 400, and the first virtual scene includes a first virtual object, which is a virtual object controlled by the player; in response to a trap interference operation of the first virtual object, the human-computer interaction interface of the terminal 400 displays a second virtual scene and displays the second virtual object in the second virtual scene, and the second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered; and a process in which the second virtual object is controlled to perform an interactive task in the second virtual scene is displayed. The terminal 400 may be a terminal used by a player controlling the first virtual object, and the second virtual object may be a virtual object not controlled by the player. The player controlling the first virtual object can see the process of the second virtual object performing the interactive task in the second virtual scene through the terminal 400.
[0060] In another implementation scenario, refer to Figure 1B, which is a schematic diagram of the application mode of the interactive method of the virtual scene provided in an embodiment of the present application, which is applied to the terminal 400 and the server 200. Generally, it is suitable for an application mode that relies on the computing power of the server 200 to complete the virtual scene calculation and output the virtual scene at the terminal 400.
[0061] Taking the visual perception of the virtual scene 100 (including the virtual object 110) as an example, the server 200 calculates the virtual scene-related display data and sends it to the terminal 400. The terminal 400 relies on the graphics computing hardware to complete the loading, parsing and rendering of the display data, and relies on the graphics output hardware to output the virtual scene to form a visual perception. For example, a two-dimensional video frame can be presented on the display screen of a smartphone, or a video frame with a three-dimensional display effect can be projected on the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal can be used, such as using a microphone output to form an auditory perception, using a vibrator output to form a tactile perception, and so on.
[0062] As an example, the terminal 400 runs a client (such as an online version of a game application) and interacts with other users in a game by connecting to a game server (i.e., server 200). A first virtual scene is displayed on the terminal 400. The first virtual scene includes a first virtual object, which is a virtual object controlled by a player. In response to a trap interference operation of the first virtual object, the terminal 400 sends operation data of the trap interference operation to the server 200. The server 200 obtains display data of the second virtual scene and returns it to the terminal 400. The second virtual scene is displayed on the human-computer interaction interface of the terminal 400 and the second virtual object is displayed in the second virtual scene. The second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered. The process of the second virtual object being controlled to perform an interactive task in the second virtual scene is displayed. The terminal 400 may be a terminal used by a player who controls the first virtual object. The second virtual object may be a virtual object not controlled by the player. The player who controls the first virtual object can see the process of the second virtual object performing the interactive task in the second virtual scene through the terminal 400.
[0063] In another implementation scenario, refer to Figure 1C, which is a schematic diagram of the application mode of the interactive method of the virtual scene provided in an embodiment of the present application, which is applied to terminal 400, terminal 500 and server 200. Generally, it is suitable for an application mode that relies on the computing power of server 200 to complete the virtual scene calculation and output the virtual scene at terminal 400 and terminal 500.
[0064] Taking the visual perception of the virtual scene 100 (including the virtual object 110) as an example, the server 200 calculates the virtual scene-related display data and sends it to the terminal 400 and the terminal 500. The terminal 400 and the terminal 500 rely on the graphics computing hardware to complete the loading, parsing and rendering of the calculated display data, and rely on the graphics output hardware to output the virtual scene to form a visual perception. For example, a two-dimensional video frame can be presented on the display screen of a smartphone, or a video frame with a three-dimensional display effect can be projected on the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that the corresponding hardware output of the terminal can be used, such as using a microphone output to form an auditory perception, using a vibrator output to form a tactile perception, and so on.
[0065] As an example, terminal 400 and terminal 500 run a client (e.g., an online version of a game application) and interact with each other in a game by connecting to a game server (i.e., server 200). A first virtual scene is displayed on terminal 400, where the first virtual scene includes a first virtual object, which is a virtual object controlled by player A. In response to a trap interference operation of the first virtual object, terminal 400 sends operation data of the trap interference operation to server 200, which obtains display data of a second virtual scene and returns it to terminals 400 and 500. A second virtual scene is displayed on the human-computer interaction interface of terminal 500, and the second virtual object is displayed in the second virtual scene. The second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered. The process of the second virtual object being controlled to perform an interactive task in the second virtual scene is displayed. Terminal 400 can be the terminal used by the player controlling the first virtual object, and terminal 500 can be the terminal used by the player controlling the second virtual object. Here, the player controlling the first virtual object can also see the process of the second virtual object performing the interactive task in the second virtual scene through terminal 400.
[0066] In some embodiments, the terminal 400 can implement the interactive method of the virtual scene provided in the embodiments 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 a game APP (i.e., the above-mentioned client); it can also be a small program, that is, a program that can be run only by downloading it into a browser environment; it can also be a game 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.
[0067] The embodiments of the present application can be implemented with the help of cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and network within a wide area network or a local area network to realize data calculation, storage, processing, and sharing.
[0068] Cloud technology is a general term for network, information, integration, management platform, and application technologies used in the cloud computing business model. It can form a resource pool that can be used flexibly and conveniently on demand. Cloud computing technology will become a key support. The backend services of technical network systems require a large amount of computing and storage resources.
[0069] As an example, the server 200 can 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, CDN, and big data and artificial intelligence platforms. The terminal 400 can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal 400 and the server 200 can be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0070] Referring to Figure 2, Figure 2 is a schematic diagram of the structure of an electronic device for applying an interactive method of a virtual scene provided in an embodiment of the present application. Taking the electronic device as a terminal as an example for explanation, the terminal 400 shown in Figure 2 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 through a bus system 440. It can be 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, various buses are labeled as bus system 440 in Figure 2.
[0071] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0072] The user interface 430 includes one or more output devices 431 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0073] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0074] The memory 450 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0075] In some embodiments, the memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0076] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, and driver layer, which are used to implement various basic services and process hardware-based tasks;
[0077] A network communication module 452 for reaching other computing devices via one or more (wired or wireless) network interfaces 420 , exemplary network interfaces 420 including Bluetooth, WiFi, and USB;
[0078] a presentation module 453 for enabling presentation of information via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripheral devices and displaying content and information);
[0079] The input processing module 454 is configured to detect one or more user inputs or interactions from one of the one or more input devices 432 and to translate the detected inputs or interactions.
[0080] In some embodiments, the interactive device of the virtual scene provided in the embodiments of the present application can be implemented in software. Figure 2 shows the interactive device 455 of the virtual scene stored in the memory 450, which can be software in the form of programs and plug-ins, including the following software modules: a first display module 4551, a first trap module 4552 and a first illusion module 4553. These modules are logical, so they can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.
[0081] Next, refer to FIG3A , which is a flow chart of an interactive method in a virtual scene provided in an embodiment of the present application, and will be described in conjunction with the steps shown in FIG3A .
[0082] It should be noted that the method shown in Figure 3A can be executed by various forms of computer programs running on the terminal, and is not limited to the above-mentioned client, such as the operating system, software modules and scripts mentioned above. Therefore, the client should not be regarded as a limitation on the embodiments of the present application.
[0083] In step 101, a first virtual scene is displayed.
[0084] As an example, the first virtual scene includes a first virtual object, which is a virtual object controlled by the player. The first virtual scene is the main scene for the player to strive for victory after logging into the game. Whether the player wins is determined based on the performance achieved by the virtual object controlled by the player in the first virtual scene. The first virtual object is a virtual object controlled by the player.
[0085] In step 102 , in response to a trap interference operation of a first virtual object, a second virtual scene is displayed and the second virtual object is displayed in the second virtual scene.
[0086] As an example, the second virtual scene can be derived from the first virtual scene, for example by applying a different special effects filter to the first virtual scene, or by rotating the first virtual scene. The second virtual scene can also be a completely different virtual scene from the first virtual scene. There can be multiple second virtual scenes in the game. In response to a trap interference operation by a first virtual object, a target second virtual scene from multiple candidate second virtual scenes is displayed, and the second virtual object is displayed in the target second virtual scene. The target second virtual scene currently entered by the second virtual object is different from any second virtual scene previously entered by the second virtual object.
[0087] As an example, the second virtual object is a virtual object within the first virtual scene that is within the influence range of the trap interference operation when the trap interference operation is triggered. The second virtual object can be a virtual object controlled by the player or a virtual object with a behavioral pattern controlled by AI technology. The trap interference operation initiated by the first virtual object can send the second virtual object within the influence range into the second virtual scene. The terminal performing step 102 can be the terminal used by the player controlling the first virtual object or the terminal used by the player controlling the second virtual object.
[0088] In step 103 , a process in which the second virtual object is controlled to perform an interactive task in the second virtual scene is displayed.
[0089] As an example, the interactive task may be a task in which the second virtual object interacts with virtual elements in the second virtual scene in the second virtual scene, or the interactive task may simply be that the second virtual object stays in the second virtual scene for a period of time. In this way, the second virtual object will be controlled in the second virtual scene and will not be able to have any interactive behavior in the first virtual scene. Since the player's victory is determined based on the performance of the virtual object controlled by the player in the first virtual scene, the performance of the second virtual object in the second virtual scene will not affect the outcome of the game, but will only affect whether the second virtual object can return to the first virtual scene. Therefore, it is equivalent to the second virtual object's teammates in the first virtual scene temporarily losing the support of a partner, and during this period the second virtual object cannot affect the outcome of the game.
[0090] In some embodiments, referring to FIG. 3B , after step 103, step 104 shown in FIG. 3B is executed. In step 104, when the second virtual object completes the interactive task in the second virtual scene, the second virtual object is controlled to exit the second virtual scene, and the second virtual object is controlled to interact within the first virtual scene. This embodiment of the present application can help the second virtual object return to the first virtual scene to continue the game, reducing the consumption of rendering resources in the second virtual scene and improving resource utilization.
[0091] As an example, when the second virtual object completes an interactive task in the second virtual scene, such as completing a specific interactive task or staying in the second virtual scene for a long enough time, the second virtual object can leave the second virtual scene and return to the first virtual scene, which is equivalent to the second virtual object continuing to interact in the first virtual scene and strive for victory in the game.
[0092] In some embodiments, when a second virtual object is in a second virtual scene, in response to the first virtual object's life state value in the first virtual scene being less than a third life state threshold, the second virtual object is controlled to exit the second virtual scene, and the second virtual object is controlled to interact within the first virtual scene. This embodiment of the present application can help the second virtual object return to the first virtual scene to continue the game, reducing the consumption of rendering resources in the second virtual scene and improving resource utilization.
[0093] As an example, when the second virtual object is in the second virtual scene, the interaction in the first virtual scene will continue. The first virtual object may be attacked by other virtual objects in the first virtual scene. After being attacked, the life status value of the first virtual object will decrease. When the life status value of the first virtual object is reduced to less than the third life status threshold (for example, the third life status threshold is 1), the effect of the trap interference operation triggered by the first virtual object will become invalid, so that the second virtual object can also leave the second virtual scene and return to the first virtual scene, which is equivalent to the second virtual object continuing to interact in the first virtual scene and strive for victory in the game.
[0094] In some embodiments, as described in step 102, in response to a trap interference operation of the first virtual object, a second virtual scene is displayed and the second virtual object is displayed in the second virtual scene. The interference operation here has various forms. For example, the first virtual object holds a trap interference prop, and the trap interference operation is a trigger operation in which the first virtual object uses the trap interference prop to point in the target direction; before displaying the second virtual scene and displaying the second virtual object in the second virtual scene, the trap prop launched by the trap interference prop is controlled to move along the target direction, and a trap with an impact range is formed at the collision position of the trap prop. Through the embodiments of the present application, the trap interference operation can be implemented through props, so that the player has a sense of control and improves the human-computer interaction experience.
[0095] As an example, trap interference props (which may be reused existing props) include at least one of the following: throwing objects, shooting props. By using trap interference props, the target direction can be determined. For example, when the trap interference prop is a throwing object, after aiming at a virtual element, the target direction is the throwing direction after aiming. When the trap interference prop is a shooting prop, after aiming at a virtual element, the target direction is the shooting direction after aiming. When the trap interference prop is a throwing object, a trap with an influence range is formed at at least one collision position of the parabola. When the trap interference prop is a shooting prop, a bullet with a trap interference function is fired and falls on the ground at a collision position after flight, forming a trap with an influence range, or a bullet with a trap interference function is fired and forms a trap with an influence range at a collision position with any virtual element after flight. The virtual element here can be any entity in the virtual scene.
[0096] In some embodiments, as described in step 102, in response to a trap interference operation of a first virtual object, a second virtual scene is displayed and the second virtual object is displayed within the second virtual scene. Interference operations can take various forms. For example, the first virtual object may have a trap interference skill, and the trap interference operation is a triggering operation based on the trap interference skill that controls the first virtual object; or before displaying the second virtual scene and displaying the second virtual object within the second virtual scene, a trap with an impact range is formed at the location indicated by the trap interference operation. This embodiment of the present application can reduce user operational difficulty and improve the efficiency of human-computer interaction for players.
[0097] For example, a trap interference skill trigger button is displayed in the human-computer interaction interface. In response to a click on the trap interference skill trigger button, a skill setting interface is displayed. In response to receiving the location set in the skill setting interface, a trap with an impact range is formed at the set location. The trap can be presented as a model or through special effects.
[0098] In some embodiments, displaying the second virtual scene and displaying the second virtual object in the second virtual scene in step 102 can be achieved by the following technical solution: when the second virtual object is outside the influence range of the trap at the moment the trap interference operation is triggered, the process of the second virtual object moving within the first virtual scene is displayed; when the second virtual object moves from outside the influence range of the trap to within the influence range of the trap within the first virtual scene, the second virtual scene is displayed and the second virtual object is displayed in the second virtual scene. Through the embodiments of the present application, the interactive range of the trap interference operation in the time dimension can be increased, the effective time of the operation can be increased, and thus the efficiency of human-computer interaction can be improved.
[0099] For example, if the second virtual object is not within the influence range of the trap when the trap is formed, the second virtual object will not be sent into the second virtual scene. Once the second virtual object enters the influence range of the trap, the second virtual object will be sent into the second virtual scene, indicating that the trap has taken effect on the second virtual object.
[0100] In some embodiments, displaying the second virtual scene and displaying the second virtual object in the second virtual scene in step 102 can be achieved by the following technical solution: when the second virtual object is already within the influence range of the trap at the moment the trap interference operation is triggered, the second virtual scene is displayed and the second virtual object is displayed in the second virtual scene. Through the embodiments of the present application, the operational efficiency and interference accuracy of the trap interference operation can be improved.
[0101] As an example, when the trap interference operation is triggered, the second virtual object happens to be within the influence range of the trap interference operation, that is, the influence range of the trap. Then, as the trap is formed, the second virtual object will be sent into the second virtual scene in real time. For example, the position of the second virtual object happens to be the position pointed to by the trap interference operation, or the position of the second virtual object happens to be the trap prop launched by the trap interference prop moving along the target direction and at the collision position of the trap prop.
[0102] In some embodiments, any of the following processes are performed: in response to a trap interference operation on a first virtual object, continuing to display a second virtual object in the first virtual scene, with the second virtual object in a blocked interaction state; or in response to a trap interference operation on the first virtual object, blocking the display of the second virtual object in the first virtual scene. Through embodiments of the present application, the interaction of the second virtual object within the first virtual scene can be isolated, thereby implementing a trap interference function for the second virtual object, satisfying the interaction requirements of the second virtual object without affecting the game logic within the first virtual scene.
[0103] As an example, when a second virtual object is sent into the second virtual scene, the model of the second virtual object can continue to be displayed in the first virtual scene, that is, other virtual objects in the first virtual scene can still see the second virtual object in the first virtual scene, but the second virtual object in the first virtual scene cannot move, cannot attack others, but will not be attacked either, and can be regarded as not participating in any interaction. In order to prevent other virtual objects from triggering invalid interaction operations on the second virtual object, a prompt message can be displayed to prompt that the second virtual object is sent into the second virtual scene. The second virtual object sent into the second virtual scene can be a copy model of the second virtual object retained in the first virtual scene. When the second virtual object is sent into the second virtual scene, it is also possible not to display the second virtual object in the first virtual scene, for example, by displaying a prompt message to prompt that the second virtual object is sent into the second virtual scene.
[0104] In some embodiments, before responding to a trap interference operation on a first virtual object, the trap interference function is displayed as being activated when at least one of the following conditions is met: receiving an activation operation for the trap interference function; the interval since the last response to the trap interference operation exceeds an interval time threshold; wherein the trap interference function being in the activated state indicates that the trap interference operation can be responded to. Through embodiments of the present application, the frequency of the interference function being used can be controlled, saving computing resources within the virtual scene.
[0105] As an example, in some embodiments, referring to FIG5A , a progress bar is displayed on a human-computer interaction interface 501A within a skill icon 502A. An item that provides a trap jamming function (a trap jamming item) is considered an important item. The frequency of use of important items needs to be controlled. Therefore, each virtual object can be equipped with an important item. Important items can be used multiple times, but a period of time must elapse between each use. The 12% displayed on the progress bar in FIG5A indicates that a further period of waiting is required, during which the important item is unusable. Referring to FIG5B , a progress bar is displayed on a human-computer interaction interface 501B within a skill icon 502B. When the progress bar in FIG5B reaches 100%, the skill icon 502B becomes highlighted, indicating that the important item is ready for use. In response to a triggering operation on the skill icon 502B in FIG5B , the human-computer interaction interface 501C shown in FIG5C is displayed, and the trap jamming item 502C is switched out and equipped on the shooting item.
[0106] In some embodiments, referring to FIG. 3C , the process of displaying the second virtual object performing the interactive task in the second virtual scene in step 103 may be implemented through steps 1031 to 1032 shown in FIG. 3C .
[0107] In step 1031 , the process of the second virtual object occupying the task area in the second virtual scene is displayed, and timing starts from the moment the second virtual object occupies the task area in the second virtual scene.
[0108] In some embodiments, the process of displaying the second virtual object occupying the task area in the second virtual scene can be implemented by the following technical solutions: displaying prompt information, wherein the prompt information is used to indicate that the second virtual object occupies the task area; displaying a task area identifier in the task area to prompt the second virtual object to enter the task area; and displaying the task area identifier as occupied in response to the second virtual object entering the task area. Through the embodiments of the present application, the convenience of task interaction in the virtual scene can be improved, and the efficiency of human-computer interaction can be improved.
[0109] As an example, referring to FIG7A , another virtual scene (different from the virtual scene shown in human-computer interaction interface 601A) is displayed in human-computer interaction interface 701A. After virtual object 702A enters the virtual scene, an indicator 703A pops up in the middle of the human-computer interaction interface, informing virtual object 702A of the task it needs to complete. Referring to FIG7B , human-computer interaction interface 701B displays hotspot identifier 702B. Virtual object 702B needs to find a hotspot (task area) in the task and occupy it. Virtual object 703B can find hotspot identifier 702B and enter hotspot identifier 702B to occupy the hotspot. Referring to FIG7C , hotspot identifier 702C in human-computer interaction interface 701C is initially white. After the virtual object occupies the hotspot, hotspot identifier 702C turns blue. If the hotspot is occupied by other virtual objects in the virtual scene, the hotspot identifier turns red.
[0110] In step 1032 , when the second virtual object no longer occupies the task area, a timing stop process is executed; and an occupation score positively correlated with the accumulated time of the second virtual object occupying the task area is displayed.
[0111] After executing step 1032 , when the occupation score reaches the set score, it is determined that the second virtual object completes the interactive task.
[0112] For example, when other virtual objects in the second virtual scene evict the second virtual object from the task area, or when other virtual objects in the second virtual scene occupy the task area, the timing process needs to be stopped, that is, only the cumulative time of the second virtual object occupying the task area is counted, and the occupation score positively correlated with the cumulative time of the second virtual object occupying the task area is displayed. Referring to Figure 7D, human-computer interaction interface 701D displays a score control 702D, which is used to display the score of the virtual object controlled by the player controlling the human-computer interaction interface and the scores of other virtual objects. A corresponding score is obtained based on the length of time the hotspot is occupied, and the task is completed when the score reaches a set value.
[0113] In some embodiments, the score is negatively correlated with a first parameter and positively correlated with a second parameter, where the first parameter includes the distance between the second virtual object and the center of the influence range, and the second parameter is the life state value of the first virtual object when the trap interference operation is triggered. This embodiment of the present application can dynamically control task difficulty and improve interaction diversity.
[0114] As an example, the smaller the distance between the second virtual object and the center of the influence range, the deeper the second virtual object is trapped in the trap, so the set score will be higher, and it will be more difficult for the second virtual object to complete the task and exit from the second virtual scene. The greater the life status value of the first virtual object when the trap interference operation is triggered, the stronger the trap created by the first virtual object will be, and the deeper the second virtual object is trapped in the trap, so the set score will be higher.
[0115] In some embodiments, when a second virtual object is attacked by a third virtual object in a second virtual scene, the life state value of the second virtual object in the second virtual scene is reduced; when the life state value of the second virtual object in the second virtual scene is less than a first life state threshold, the life state value of the second virtual object in the second virtual scene is initialized, and the accumulated timer is reset to zero to continue executing the interactive task. Through the embodiments of the present application, the game logic of the second virtual object in the second virtual scene can be implemented in a closed loop, that is, even if the life state value of the second virtual object in the second virtual scene is less than the first life state threshold, the second virtual object will not return to the first virtual scene to affect the game logic in the first virtual scene.
[0116] As an example, when the life status value of the virtual object in the virtual world is zero, the task is restarted. At this time, the second virtual object is equivalent to having just entered the second virtual scene, with the same configuration, and restarts the task. The player can not leave the virtual world (second virtual scene) and return to the real world (first virtual scene) until the task is completed. That is, it will cycle repeatedly in the second virtual scene. When the virtual object is in the virtual world, the virtual object in the real world will be invincible and unable to move. That is, if the player is trapped in the virtual world and cannot get out, he will not be able to help teammates in the real game scene.
[0117] In some embodiments, the process of displaying the second virtual object performing an interactive task in the second virtual scene can be implemented by the following technical solution: when the first virtual object enters the second virtual scene, in response to the second virtual object's attack operation against the first virtual object in the second virtual scene, the life state value of the first virtual object in the second virtual scene is reduced; thereafter, when the life state value of the first virtual object in the second virtual scene is less than a second life state threshold, it is determined that the second virtual object has completed the interactive task. Through the embodiments of the present application, the interactive scene of the first virtual object can be expanded from the first virtual scene to the second virtual scene, thereby providing an opportunity for interaction between the first virtual object and the second virtual object.
[0118] As an example, when the second virtual object is in the second virtual scene, the first virtual object may also enter the second virtual scene in response to the trap interference operation of other virtual objects. The first virtual object may be attacked by the second virtual object in the second virtual scene. After being attacked, the life status value of the first virtual object will decrease. When the life status value of the first virtual object is reduced to less than the second life status threshold (for example, the second life status threshold is 1), the effect of the trap interference operation triggered by the first virtual object will become invalid, so that the second virtual object can also leave the second virtual scene and return to the first virtual scene, which is equivalent to the second virtual object continuing to interact in the first virtual scene and strive for victory in the game.
[0119] In some embodiments, the amount by which each attack operation reduces the health status value of the first virtual object in the second virtual scene is positively correlated with a first parameter and negatively correlated with a second parameter, where the first parameter includes the distance between the second virtual object and the center of the impact range, and the second parameter is the health status value of the first virtual object when the trap interference operation is triggered. This embodiment of the present application allows for dynamic control of task difficulty and improved interaction diversity.
[0120] As an example, the smaller the distance between the second virtual object and the center of the affected range, the deeper the second virtual object is trapped in the trap. Therefore, the amount of reduction in the life status value of the first virtual object in the second virtual scene due to each attack operation will be smaller. As a result, each attack on the first virtual object will not cause much impact, and it will be difficult for it to drop below the second life status threshold. As a result, it will be more difficult for the second virtual object to complete the task and exit from the second virtual scene. The larger the life status value of the first virtual object when the trap interference operation is triggered, the stronger the trap created by the first virtual object will be, and the deeper the second virtual object is trapped in the trap. Therefore, the amount of reduction in the life status value of the first virtual object in the second virtual scene due to each attack operation will be smaller.
[0121] Next, referring to FIG4 , FIG4 is a flow chart of an interactive method in a virtual scene provided in an embodiment of the present application, which will be described in conjunction with the steps shown in FIG4 .
[0122] It should be noted that the method shown in Figure 4 can be executed by various forms of computer programs running on the terminal, and is not limited to the above-mentioned client, such as the operating system, software modules and scripts mentioned above. Therefore, the client should not be regarded as a limitation on the embodiments of the present application.
[0123] In step 201, a first virtual scene is displayed.
[0124] As an example, the first virtual scene includes a first virtual object.
[0125] In step 202 , in response to a trap interference operation of a first virtual object, a second virtual scene is displayed and the second virtual object is displayed in the second virtual scene.
[0126] As an example, the second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered. The second virtual scene is another virtual scene completely different from the first virtual scene.
[0127] In step 203 , a process in which the second virtual object is controlled to perform an interactive task in the second virtual scene is displayed.
[0128] The specific implementation of steps 201 to 203 can refer to steps 101 to 103. The only difference is that the second virtual scene in steps 101 to 103 can be obtained based on the first virtual scene, for example, different special effect filters are applied to the first virtual scene, or the first virtual scene is rotated in direction. However, the second virtual scene used in steps 201 to 203 is another virtual scene that is completely different from the first virtual scene. The second virtual object can complete the interactive task in the completely different virtual scene, which expands the player's game space, can attract players to explore in the second virtual scene, and improve the diversity of interaction between players and virtual scenes.
[0129] The following describes an exemplary application of the embodiments of the present application in a practical application scenario.
[0130] Terminal A and terminal B run a client (e.g., an online version of a game application), interact with each other in a game by connecting to a game server (i.e., a server), and display a first virtual scene on terminal A. The first virtual scene includes a first virtual object, which is a virtual object controlled by player A. In response to a trap interference operation on the first virtual object, terminal A sends operation data of the trap interference operation to the server. The server obtains display data of a second virtual scene and returns it to terminal A and terminal B. A second virtual scene is displayed on the human-computer interaction interface of terminal B, and the second virtual object is displayed in the second virtual scene. The second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered. The process of the second virtual object being controlled to perform an interactive task in the second virtual scene is displayed. Terminal A can be the terminal used by the player controlling the first virtual object, and terminal B can be the terminal used by the player controlling the second virtual object. Here, the player controlling the first virtual object can also see the process of the second virtual object performing the interactive task in the second virtual scene through terminal A.
[0131] In some embodiments, virtual object A and virtual object B are both in a first virtual scene interacting with each other. In response to virtual object A using a specific prop or an operation of attacking virtual object B with a prop, virtual object B is trapped in another virtual scene (a second virtual scene). In the second virtual scene, virtual object B can still attack other virtual objects normally, but the attack behavior generated by virtual object B in the second virtual scene does not convert into game points. In the second virtual scene, virtual object B must complete a specific task or defeat virtual object A that trapped it in the second virtual scene (for example, virtual object A also enters the second virtual scene) before virtual object B can break out of the virtual scene (the second virtual scene) and return to the real scene (the first virtual scene). If virtual object B fails to complete the task or is defeated by other virtual objects in the second virtual scene, it must restart in the second virtual scene and complete the task again with the same props as last time until it breaks out of the second virtual scene. Virtual object B trapped in the second virtual scene is invincible in the first virtual scene, that is, virtual object B cannot be attacked and cannot take any actions in the first virtual scene.
[0132] In some embodiments, referring to FIG5A , a progress bar is displayed on a human-computer interaction interface 501A within a skill icon 502A. Items that provide trap jamming functions (trap jamming items) are considered important items, and their frequency of use needs to be controlled. Therefore, each virtual object can be equipped with an important item. Important items can be used multiple times, but each use requires a period of time. The 12% displayed on the progress bar in FIG5A indicates that a further period of time is required, during which the important item is unusable. Referring to FIG5B , a progress bar is displayed on a human-computer interaction interface 501B within a skill icon 502B. When the progress bar in FIG5B reaches 100%, the skill icon 502B becomes highlighted, indicating that the important item is available for use. In response to a trigger operation on the skill icon 502B in FIG5B , the human-computer interaction interface 501C shown in FIG5C is displayed, and the trap jamming item 502C is switched out and equipped on the shooting item.
[0133] In some embodiments, referring to FIG6A , a trap jammer 602A in a human-computer interaction interface 601A launches a trap missile, which forms a trap 603A upon landing. Referring to FIG6B , a virtual object 602B is displayed in the trap's range of influence in the human-computer interaction interface 601B. Upon entering the trap's range of influence, the virtual object 602B falls into a coma and becomes unable to move. At this point, the virtual object 602B enters another virtual world.
[0134] In some embodiments, referring to FIG7A , another virtual scene (different from the virtual scene shown in human-computer interaction interface 601A) is displayed in human-computer interaction interface 701A. After virtual object 702A enters the virtual scene, an indicator 703A pops up in the middle of the human-computer interaction interface, informing virtual object 702A of the task it needs to complete. Referring to FIG7B , human-computer interaction interface 701B displays hotspot identifier 702B. Virtual object 702B needs to find the hotspot in the task and occupy it. Virtual object 703B can find hotspot identifier 702B and enter hotspot identifier 702B to occupy the hotspot. Referring to FIG7C , hotspot identifier 702C in human-computer interaction interface 701C is initially white. After the virtual object occupies the hotspot, hotspot identifier 702C turns blue. If the hotspot is occupied by another virtual object in the virtual scene, the hotspot identifier turns red. Referring to Figure 7D, the human-computer interaction interface 701D displays a score control 702D. The score control 702D is used to display the score of the virtual object controlled by the player who controls the human-computer interaction interface and the scores of other virtual objects. The corresponding score will be obtained according to the length of time the hotspot is occupied. When the score reaches the set value, the task is completed.
[0135] In some embodiments, when the life status value of a virtual object in the virtual world reaches zero, the task is restarted, and the player can leave the virtual world and return to the real world only after completing the task. When the virtual object is in the virtual world, the virtual object in the real world will be invincible and unable to move, that is, if a player is trapped in the virtual world and cannot get out, he will not be able to help teammates in the real game scene.
[0136] In some embodiments, referring to FIG8 , in step 801 , a trap interference prop is equipped, in step 802 , it is determined whether the trap interference prop is activated, and when the determination result is yes, step 803 is executed, and in step 803 , the trap interference prop is used, in step 804 , it is determined whether a bullet is fired, and when the determination result is yes, step 805 is executed, and in step 805 , a trap is placed, in step 806 , it is determined whether the target enters the trap, and when the determination result is no, step 807 is executed, and in step 807 , the target is continued to be waited for, and when the determination result is yes, step 808 is executed, and in step 808 , the target is locked and enters the virtual world, and in step 809 , it is determined whether the task is completed, and when the determination result is yes, step 810 is executed, and in step 810 , the real game scene is returned to.
[0137] In some embodiments, the random numbers generated by the Random interface provided by the game engine are not true random numbers. The random numbers it generates are pseudo-random numbers. True random numbers are relatively difficult to generate, and random numbers in computer programs are usually pseudo-random numbers. Pseudo-random numbers are all obtained based on a seed. Every time a random number is needed, a mathematical operation is performed on the current seed to obtain a number. Based on this number, the required random number and new seed are obtained. The mathematical operation is fixed, so after the seed is determined, the random number sequence generated is fixed. The fixed number sequence is not a true random number, but different seeds will result in different sequences. The distribution of numbers in each sequence is also relatively random and uniform, so it is called a pseudo-random number. Therefore, as long as the current time is selected as a seed, sufficient randomness can be basically guaranteed. In the embodiment of the present application, tasks are randomly assigned to targets trapped in the virtual world, and the random principle here is the random number generation process described above.
[0138] In some embodiments, when firing, a ray for detection is emitted from the player's shooting prop, and then it is detected whether it hits the damage detection box on the target, see Figure 9. However, because shooting different parts will cause different damage, the client will calculate the damage based on the configuration data and then report it to the server. Finally, the server determines whether the player is dead.
[0139] In some embodiments, the present application embodiment takes occupying hotspots as a task. After the game starts, the background will randomly generate a hotspot and display it on the minimap. These locations are not truly random, but pre-set. For example, X hotspots will be set in the minimap, and the background will randomly generate hotspots from these points. Because hotspots cannot be placed everywhere, as long as enough points are set, they become random points in the true sense. These hotspots are all special effects, and then collision boxes are hung on the special effects. See Figures 10A and 10B. Figure 10A shows the generated hotspot model, and Figure 10B shows the corresponding collision boxes. These collision boxes are used to detect whether the player enters and exits. When a hotspot appears, in addition to displaying the approximate location of the hotspot on the minimap, its direction and distance will also be displayed on the screen. The calculation method is shown in Figure 10C. A line AO is connected between the player and the center of the hotspot 0, OP is perpendicular to the player's front AP, and the distance between OP is the distance between the hotspot and the player, and AP represents the direction and distance of the center of the screen. That is, the guide point will appear to the right of the center of the screen, and the horizontal distance is AP. Once a player captures a point, their team's points will be increased until the hotspot disappears or the enemy team captures the hotspot. The game ends when either team reaches the target score or the game timer expires. The team with the higher score wins the game.
[0140] It is understandable that in the embodiments of the present application, when user information and other related data are involved, 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 must comply with relevant laws, regulations and standards of relevant countries and regions.
[0141] The following continues to describe an exemplary structure of the virtual scene interactive device 455 provided in an embodiment of the present application implemented as a software module. In some embodiments, as shown in Figure 2, the software modules in the virtual scene interactive device 455 stored in the memory 450 may include: a first display module 4551, configured to display a first virtual scene, wherein the first virtual scene includes a first virtual object, and the first virtual object is a virtual object controlled by a player; a first trap module 4552, configured to display a second virtual scene and display the second virtual object in the second virtual scene in response to a trap interference operation of the first virtual object, wherein the second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered; a first illusion module 4553, configured to display a process in which the second virtual object is controlled to perform an interactive task in the second virtual scene.
[0142] In some embodiments, the first virtual object holds a trap interference prop, and the trap interference operation is a trigger operation in which the first virtual object uses the trap interference prop to point in the target direction; the first trap module 4552 is further configured to control the trap prop launched by the trap interference prop to move along the target direction, and form a trap with the said influence range at the collision position of the trap prop.
[0143] In some embodiments, the first virtual object has a trap interference skill, and the trap interference operation is a trigger operation based on the trap interference skill that controls the first virtual object to be implemented; the first trap module 4552 is further configured to form a trap with the influence range at the position pointed by the trap interference operation.
[0144] In some embodiments, the first trap module 4552 is further configured to display the process of the second virtual object moving within the first virtual scene when the second virtual object is outside the influence range of the trap at the moment of triggering the trap interference operation; and to display the second virtual scene when the second virtual object moves from outside the influence range of the trap to within the influence range of the trap within the first virtual scene.
[0145] In some embodiments, the first trap module 4552 is further configured to display the second virtual scene when the second virtual object is already within the influence range of the trap at the moment when the trap interference operation is triggered.
[0146] In some embodiments, the first trap module 4552 is further configured to perform any one of the following processes: in response to a trap interference operation of the first virtual object, continuing to display the second virtual object in the first virtual scene, and the second virtual object is in a shielded interaction state; in response to a trap interference operation of the first virtual object, shielding the display of the second virtual object in the first virtual scene.
[0147] In some embodiments, the first trap module 4552 is further configured to display that the trap interference function is in an activated state before responding to the trap interference operation of the first virtual object when at least one of the following conditions is met: an activation operation for the trap interference function is received; the interval time from the last response to the trap interference operation exceeds an interval time threshold; wherein, the trap interference function being in an activated state indicates that the trap interference operation can be responded to.
[0148] In some embodiments, the first unreal module 4553 is further configured to display the process of the second virtual object occupying the task area in the second virtual scene, and start timing from the time when the second virtual object occupies the task area in the second virtual scene; when the second virtual object no longer occupies the task area, execute stop timing processing; display the occupation score that is positively correlated with the cumulative timing of the second virtual object occupying the task area; when the occupation score reaches the set score, determine that the second virtual object completes the interactive task.
[0149] In some embodiments, the set score is negatively correlated with a first parameter and positively correlated with a second parameter, wherein the first parameter includes the distance between the second virtual object and the center of the influence range, and the second parameter is the life status value of the first virtual object when the trap interference operation is triggered.
[0150] In some embodiments, the first virtual module 4553 is further configured to reduce the life status value of the second virtual object in the second virtual scene when the second virtual object is attacked by a third virtual object in the second virtual scene; when the life status value of the second virtual object in the second virtual scene is less than the first life status threshold, initialize the life status value of the second virtual object in the second virtual scene, and clear the accumulated timer to continue executing the interactive task.
[0151] In some embodiments, the first virtual module 4553 is further configured to display prompt information, wherein the prompt information is used to indicate that the second virtual object occupies the task area; display a task area identifier in the task area to prompt the second virtual object to enter the task area; and display the task area identifier as an occupied state in response to the second virtual object entering the task area.
[0152] In some embodiments, the first virtual module 4553 is further configured to, when the first virtual object enters the second virtual scene, reduce the life status value of the first virtual object in the second virtual scene in response to the attack operation of the second virtual object against the first virtual object in the second virtual scene; and when the life status value of the first virtual object in the second virtual scene is less than a second life status threshold, determine that the second virtual object completes the interaction task.
[0153] In some embodiments, the amount of reduction in the life status value of the first virtual object in the second virtual scene caused by each attack operation is positively correlated with a first parameter and negatively correlated with a second parameter, wherein the first parameter includes the distance between the second virtual object and the center of the influence range, and the second parameter is the life status value of the first virtual object when the trap interference operation is triggered.
[0154] In some embodiments, the first virtual module 4553 is further configured to control the second virtual object to exit the second virtual scene when the second virtual object completes the interaction task in the second virtual scene, and control the second virtual object to interact within the first virtual scene.
[0155] In some embodiments, the first virtual module 4553 is further configured to, when the second virtual object is in the second virtual scene, in response to the life status value of the first virtual object in the first virtual scene being less than a third life status threshold, control the second virtual object to exit the second virtual scene and control the second virtual object to interact within the first virtual scene.
[0156] In some embodiments, the software modules in the interactive device of the virtual scene stored in the memory may include: a second display module, configured to display a first virtual scene, wherein the first virtual scene includes a first virtual object; a second trap module, configured to display a second virtual scene and display the second virtual object in the second virtual scene in response to a trap interference operation of the first virtual object; wherein the second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered, and the second virtual scene is another virtual scene completely different from the first virtual scene; a second illusion module, configured to display the process of the second virtual object being controlled to perform an interactive task in the second virtual scene.
[0157] The present invention provides a computer program product comprising computer-executable instructions or a computer program, wherein the computer-executable instructions are stored in a computer-readable storage medium. A processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the aforementioned method for interacting with a virtual scene in the present invention.
[0158] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the processor executes the interactive method in the virtual scene provided by the embodiment of the present application.
[0159] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or various devices including one or any combination of the above memories.
[0160] In some embodiments, computer-executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0161] As an example, computer-executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0162] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0163] To sum up, through the embodiments of the present application, through the trap interference operation of the first virtual object, the second virtual object is in a stationary state in the first virtual scene and the second virtual object is controlled to enter the second virtual scene, which is equivalent to the player controlling the first virtual object being able to prevent the second virtual object from interacting in the first virtual scene through operation, providing game players with more interaction methods and human-computer interaction modes, and improving the diversity of human-computer interaction; controlling the second virtual object to enter the second virtual scene and displaying the process of the second virtual object performing the interactive task in the second virtual scene, so that although the second virtual object is restricted in the first virtual scene, it can interact in the game in the second virtual scene, and can meet the interaction needs of the second virtual object without affecting the game progress in the first virtual scene, thereby improving the efficiency of human-computer interaction and the utilization rate of related computing and communication resources, and through the expansion of the virtual scene, it can improve the utilization rate of display resources and provide players with a wider visual space.
[0164] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. A virtual scene interactive method, the method is executed by an electronic device, the method include: Displaying a first virtual scene, wherein the first virtual scene includes a first virtual object, and the first virtual object is a virtual object controlled by a player; In response to the trap interference operation of the first virtual object, displaying a second virtual scene and displaying the second virtual object in the second virtual scene, wherein the second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered; The process of displaying the second virtual object being controlled to perform an interactive task in the second virtual scene.
2. The method according to claim 1, in, The first virtual object holds a trap interference prop, and the trap interference operation is a trigger operation in which the first virtual object uses the trap interference prop to point in a target direction; Before displaying the second virtual scene and displaying the second virtual object in the second virtual scene, the method further includes: The trap prop launched by the trap interference prop is controlled to move along the target direction, and a trap with the influence range is formed at the collision position of the trap prop.
3. The method according to claim 1, in, The first virtual object has a trap interference skill, and the trap interference operation is a trigger operation based on the trap interference skill implemented by controlling the first virtual object; Before displaying the second virtual scene and displaying the second virtual object in the second virtual scene, the method further includes: A trap having the influence range is formed at the location directed by the trap interference operation.
4. The method according to claim 2 or 3, in, The displaying of the second virtual scene and displaying the second virtual object in the second virtual scene comprises: When the second virtual object is outside the influence range of the trap at the moment of triggering the trap interference operation, displaying the process of the second virtual object moving in the first virtual scene; When the second virtual object moves from outside the influence range of the trap to within the influence range of the trap in the first virtual scene, the second virtual scene is displayed and the second virtual object is displayed in the second virtual scene.
5. The method according to claim 2 or 3, in, The displaying of the second virtual scene and displaying the second virtual object in the second virtual scene comprises: When the second virtual object is already in the influence range of the trap at the moment of triggering the trap interference operation, the second virtual scene is displayed and the second virtual object is displayed in the second virtual scene.
6. The method according to any one of claims 1 to 5, in, The method further comprises: In response to the trap interference operation of the first virtual object, continue to display the second virtual object in the first virtual scene, and the second virtual object is in a shielded interaction state; or In response to the trap interference operation of the first virtual object, the second virtual object is shielded from display in the first virtual scene.
7. The method according to any one of claims 1 to 6, in, Prior to the trap interference operation in response to the first virtual object, the method further includes: The display trap interference function is activated when at least one of the following conditions is met: receiving an activation operation for the trap interference function; The interval time from the last response to the trap interference operation exceeds the interval time threshold; The fact that the trap interference function is in an activated state indicates that the trap interference operation can be responded to.
8. The method according to any one of claims 1 to 7, in, The process of displaying the second virtual object to perform an interactive task in the second virtual scene includes: Displaying the process of the second virtual object occupying the task area in the second virtual scene, and starting the timing from the time when the second virtual object occupies the task area in the second virtual scene; When the second virtual object no longer occupies the task area, executing a timing stop process; displaying an occupation score that is positively correlated with the accumulated time of the second virtual object occupying the task area; The method further comprises: When the occupation score reaches a set score, it is determined that the second virtual object completes the interactive task.
9. The method according to claim 8, in, The set score is negatively correlated with a first parameter and positively correlated with a second parameter, wherein the first parameter includes the distance between the second virtual object and the center of the influence range, and the second parameter is the life state value of the first virtual object when the trap interference operation is triggered.
10. The method according to claim 8, in, The method further comprises: When the second virtual object is attacked by a third virtual object in the second virtual scene, reducing the life state value of the second virtual object in the second virtual scene; When the life state value of the second virtual object in the second virtual scene is less than the first life state threshold, the life state value of the second virtual object in the second virtual scene is initialized, and the accumulated time is cleared to continue executing the interactive task.
11. The method according to claim 8, in, The process of displaying the second virtual object occupying the task area in the second virtual scene includes: Displaying prompt information, wherein the prompt information is used to indicate that the second virtual object occupies the task area; Displaying a task area mark in the task area to prompt the second virtual object to enter the task area; In response to the second virtual object entering the task area, the task area mark is displayed as an occupied state.
12. The method according to any one of claims 1 to 7, in, The process of displaying the second virtual object to perform an interactive task in the second virtual scene includes: When the first virtual object enters the second virtual scene, in response to an attack operation of the second virtual object on the first virtual object in the second virtual scene, reducing a life state value of the first virtual object in the second virtual scene; The method further comprises: When the life state value of the first virtual object in the second virtual scene is less than a second life state threshold, it is determined that the second virtual object completes the interactive task.
13. The method according to claim 12, in, The amount of reduction in the life status value of the first virtual object in the second virtual scene caused by each attack operation is positively correlated with a first parameter and negatively correlated with a second parameter, wherein the first parameter includes the distance between the second virtual object and the center of the influence range, and the second parameter is the life status value of the first virtual object when the trap interference operation is triggered.
14. The method according to any one of claims 1 to 13, in, The method further comprises: When the second virtual object completes the interactive task in the second virtual scene, the second virtual object is controlled to exit the second virtual scene, and the second virtual object is controlled to interact in the first virtual scene.
15. The method according to any one of claims 1 to 14, in, The method further comprises: When the second virtual object is in the second virtual scene, in response to the life state value of the first virtual object in the first virtual scene being less than a third life state threshold, the second virtual object is controlled to exit the second virtual scene, and the second virtual object is controlled to interact within the first virtual scene.
16. A method for interacting with a virtual scene, the method being executed by an electronic device, the method include: Displaying a first virtual scene, wherein the first virtual scene includes a first virtual object; In response to the trap interference operation of the first virtual object, displaying a second virtual scene and displaying the second virtual object in the second virtual scene; Wherein, the second virtual object is a virtual object that is within the influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered, and the second virtual scene is another virtual scene completely different from the first virtual scene; The process of displaying the second virtual object being controlled to perform an interactive task in the second virtual scene.
17. An interactive device for a virtual scene, the device include: A first display module is configured to display a first virtual scene, wherein the first virtual scene includes a first virtual object, and the first virtual object is a virtual object controlled by a player; a first trap module configured to display a second virtual scene and display the second virtual object in the second virtual scene in response to a trap interference operation of the first virtual object, wherein the second virtual object is a virtual object that is within an influence range of the trap interference operation in the first virtual scene when the trap interference operation is triggered; The first virtual module is configured to display a process in which the second virtual object is controlled to perform an interactive task in the second virtual scene.
18. An electronic device, the electronic device include: A memory for storing computer executable instructions; A processor is used to implement the interactive method of the virtual scene described in any one of claims 1 to 15 or claim 16 when executing the computer executable instructions stored in the memory.
19. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a processor, implement the interactive method of a virtual scene as described in any one of claims 1 to 15 or claim 16.
20. A computer program product, comprising computer executable instructions, which, when executed by a processor, implement the virtual scene interaction method described in any one of claims 1 to 15 or claim 16.
