Interaction method and device in virtual scene, equipment, storage medium and program product
By transforming player characters into virtual pets in virtual scenes and allowing them to interact with other virtual pets of the same kind, the problem of single interaction mode in the prior art is solved, and interaction efficiency and diversity is improved.
Patent Information
- Application Number
- CN202411566596.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-03-18
AI Technical Summary
The interaction methods in virtual scenes in existing games are too single, reducing human-computer interaction efficiency.
Show the second virtual pet of the same type and allow them to interact by displaying the player character in the virtual scene and transforming it into a virtual pet in response to the player's instructions.
It improves the diversity of interaction methods and human-computer interaction efficiency in virtual scenes, and enhances the hardware resource utilization rate of electronic devices.
Smart Images

Figure CN119633359A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to an interaction method, device, electronic device, computer-readable storage medium and computer program product in a virtual scene. Background Art
[0002] In related games, users can obtain pets in the game scene, and then control the obtained pets to follow the player character controlled by the user to carry out activities; however, this interaction method is not only too simple, but also reduces the efficiency of human-computer interaction in the game. Summary of the invention
[0003] The embodiments of the present application provide an interaction method, device, electronic device, computer-readable storage medium and computer program product in a virtual scene, which can improve the diversity of interaction methods and human-computer interaction efficiency in the virtual scene.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present application provides an interactive method in a virtual scene, including:
[0006] Displaying a player character in a virtual scene;
[0007] In response to a transformation instruction for the player character, controlling the form of the player character to transform into a first virtual pet;
[0008] displaying at least one second virtual pet, wherein the second virtual pet is of the same type as the first virtual pet;
[0009] In response to the interaction instruction for the first virtual pet, the first virtual pet is controlled to interact with the second virtual pet.
[0010] The embodiment of the present application provides an interactive device in a virtual scene, including:
[0011] A first display module, used to display a player character in a virtual scene;
[0012] A first control module, configured to control the transformation of the player character into a first virtual pet in response to a transformation instruction for the player character;
[0013] A second display module, used for displaying at least one second virtual pet, wherein the second virtual pet is of the same type as the first virtual pet;
[0014] The second control module is used to control the first virtual pet to interact with the second virtual pet in response to an interaction instruction for the first virtual pet.
[0015] In the above solution, the device also includes a third display module, and the third display module is used to trigger an interactive instruction for the first virtual pet in response to a summoning operation for the first virtual pet; wherein the summoning operation is used to summon the at least one second virtual pet so that the at least one second virtual pet follows the first virtual pet, and the summoning operation is triggered by at least one of a summoning control, a joystick, a mouse and a keyboard.
[0016] In the above solution, the second control module is further used to control the first virtual pet to summon the second virtual pet in response to an interactive instruction for the first virtual pet; and to display the process of the second virtual pet moving toward the first virtual pet during the process of the first virtual pet summoning the second virtual pet.
[0017] In the above scheme, the device also includes a fourth display module, which is used to display the virtual resources in a sealed state in the virtual scene; in response to a move operation on the first virtual pet, control the first virtual pet to move toward the virtual resource, and display the process of the at least one second virtual pet following the movement of the first virtual pet; when the first virtual pet and the at least one second virtual pet move to the associated position of the virtual resource, display the process of unsealing the virtual resource; in response to the unsealing of the virtual resource, display the virtual resource in a sealed state; in response to the picking up operation on the virtual resource in a sealed state, control the first virtual pet to pick up the virtual resource.
[0018] In the above scheme, there are multiple associated positions, each of which corresponds to a pattern. The device also includes a third control module, which is used to control the first virtual pet to move to a target pattern among the multiple patterns in response to a movement operation on the first virtual pet; when the first virtual pet moves to the sensing area of the target pattern, switch the target pattern from a first style to a second style; display the process of the at least one second virtual pet moving to other patterns, and when the second virtual pet moves to the sensing area of the other pattern, switch the other pattern from the first style to the second style; in response to the patterns of each of the associated positions being switched to the second style, determine that the first virtual pet and the at least one second virtual pet move to the associated position of the virtual resource.
[0019] In the above scheme, the device also includes a fourth control module, which is used to control the first virtual pet to move toward a target second virtual pet among the at least one second virtual pet in response to the movement operation on the first virtual pet, wherein the target second virtual pet is a second virtual pet that can distribute interactive tasks; when the first virtual pet moves to the interactive range of the target second virtual pet, display task collection guidance information; based on the task collection guidance information, in response to the task collection operation on the first virtual pet, trigger an interactive instruction for the first virtual pet; the second control module is also used to control the first virtual pet to collect the interactive task distributed by the target second virtual pet in response to the interactive instruction on the first virtual pet.
[0020] In the above scheme, the device also includes a fifth display module, which is used to display the process of the first virtual pet executing the interactive task in response to the task execution instruction for the first virtual pet; if the first virtual pet completes the interactive task, in response to the first virtual pet being located in the interactive range of the target second virtual pet, the first virtual pet is controlled to collect virtual resources from the target second virtual pet, and the virtual resources are used as rewards for completing the interactive task.
[0021] In the above scheme, the interactive task is to pick up a target number of virtual props; the fifth display module is also used to display at least two quantity options in response to the first virtual pet being located in the interactive range of the target second virtual pet, and different quantity options correspond to different quantities and are less than or equal to the target quantity; in response to the selection operation of the target quantity option among the at least two quantity options, the virtual props corresponding to the target quantity option are delivered to the target second virtual pet, and the first virtual pet is controlled to collect the corresponding virtual resources from the target second virtual pet.
[0022] In the above scheme, the interaction instruction is triggered by a pet communication operation performed on the first virtual pet, and the second control module is further used to control the first virtual pet to communicate with the second virtual pet in response to the interaction instruction triggered by the pet communication operation; during the communication process between the first virtual pet and the second virtual pet, output the communication reply of the second virtual pet to the first virtual pet; wherein the communication reply is used to prompt the first virtual pet to perform the interaction operation in the virtual scene.
[0023] In the above scheme, the virtual scene includes at least two scene areas, and the first virtual pet is located in the first scene area of the virtual scene; the device also includes a fifth control module, and the fifth control module is used to control the first virtual pet to move from the first scene area to the second scene area of the virtual scene in response to a movement instruction for the first virtual pet; wherein the second scene area includes a third virtual pet, and the third virtual pet is of a different type from the first virtual pet; when the first virtual pet is located in the second scene area, the form of the first virtual pet is controlled to change into the third virtual pet.
[0024] In the above scheme, the player character is located in the first virtual space in the virtual scene; the device also includes a transmission module, which is used to respond to a space transmission instruction for the player character and transmit the player character from the first virtual space to the second virtual space of the virtual scene; when the player character is located in the second virtual space, a transformation instruction for the player character is triggered.
[0025] In the above scheme, the camp to which the player character belongs also includes at least one other virtual pet; the device also includes a switching module, which is used to switch from controlling the first virtual pet to controlling the target other virtual pet in response to a switching instruction for a target other virtual pet among the at least one other virtual pet; wherein the target other virtual pet is different from the first virtual pet in at least one of the existence form and attribute value; the second control module is further used to control the target other virtual pet to interact with the second virtual pet in response to an interaction instruction for the target other virtual pet.
[0026] In the above scheme, the number of the first virtual pets to be transformed is at least one, and different first virtual pets are of different types; the first control component is also used to respond to the transformation instruction for the player character, display multiple pet options, and different pet options correspond to different types of the first virtual pets; in response to the selection operation of the target pet option among the multiple pet options, the player character is transformed into a first virtual pet of the target type corresponding to the target pet option.
[0027] In the above solution, the device also includes a sixth control module, which is used to control the first virtual pet and the second virtual pet to merge in response to a merging instruction for the first virtual pet, and display a fourth virtual pet obtained by the merging; wherein the attribute value of the fourth virtual pet is higher than that of the first virtual pet.
[0028] In some embodiments, the device further comprises a sixth display module, the sixth display module being configured to display an attackable object; in response to an attack instruction for the first virtual pet, controlling the first virtual pet to attack the attackable object, and displaying a process in which the at least one second virtual pet attacks the attackable object.
[0029] An embodiment of the present application provides an electronic device, including:
[0030] Memory for storing computer executable instructions or computer programs;
[0031] The processor is used to implement the interaction method in the virtual scene provided in the embodiment of the present application when executing the computer executable instructions or computer program stored in the memory.
[0032] An embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions or a computer program for causing a processor to execute and implement the interaction method in a virtual scene provided by the embodiment of the present application.
[0033] The embodiment of the present application provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device performs the interaction method in the virtual scene provided by the embodiment of the present application.
[0034] The embodiments of the present application have the following beneficial effects:
[0035] After displaying a player character with a first pet object in a virtual scene, in response to a transformation instruction for the player character, the player character is controlled to transform into the first virtual pet, and after displaying at least one second virtual pet of the same type as the first virtual pet, in response to an interaction instruction for the first virtual pet, the first virtual pet is controlled to interact with the second virtual pet. In this way, by changing the player character into a virtual pet and then making the virtual pet interact with other virtual pets of the same type, not only the interaction methods for virtual pets are enriched and the diversity of interaction methods in virtual scenes is increased, but also the human-computer interaction efficiency and the hardware resource utilization of electronic devices are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 is a schematic diagram of the architecture of an interactive system 100 in a virtual scene provided in an embodiment of the present application;
[0037] Figure 2is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0038] Figure 3 It is a flowchart of an interactive method in a virtual scene provided by an embodiment of the present application;
[0039] Figure 4 is a schematic diagram of a player character and a first virtual pet provided in an embodiment of the present application;
[0040] Figure 5 is a schematic diagram of a process of transforming a player character into a first virtual pet according to an embodiment of the present application;
[0041] Figure 6 The present application is a schematic diagram of a process of forming a first virtual pet based on the fusion of player characters provided in an embodiment;
[0042] Figure 7 is a schematic diagram of a player character located at a target position provided by an embodiment of the present application;
[0043] Figure 8 is a schematic diagram of a process of switching from controlling a first virtual pet to controlling another target virtual pet provided by an embodiment of the present application;
[0044] Fig. 9 is a schematic diagram of a summoning control provided in an embodiment of the present application;
[0045] Fig.10 is a schematic diagram of a summoning special effect provided in an embodiment of the present application;
[0046] Fig.11 is a schematic diagram of a pattern of associated positions provided in an embodiment of the present application;
[0047] Fig.12 It is a schematic diagram of the process of delivering an interactive task provided by an embodiment of the present application;
[0048] Fig.13 is a schematic diagram of a first virtual pet communicating with a second virtual pet provided in an embodiment of the present application;
[0049] Fig.14 It is a flowchart of the interactive method of the virtual scene provided in the embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0051] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0052] 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.
[0053] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0054] 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.
[0055] 1) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed may be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0056] 2) Client, also known as the user end, refers to the program corresponding to the server that provides local services to users. Except for some applications that can only run locally, it is generally installed on the terminal and needs to cooperate with the server to run, that is, it requires corresponding servers and service programs in the network to provide corresponding services. In this way, specific communication connections need to be established on the client and server sides to ensure the normal operation of the application, such as virtual scene clients (such as game clients) and video clients.
[0057] 3) Virtual scene is a virtual scene displayed (or provided) when the application is running on the terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene.
[0058] For example, the virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. The user may control the player character to perform activities in the virtual scene, including but not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. The virtual scene may be displayed from a first-person perspective (e.g., playing the player character in the game from the user's own perspective); it may also be displayed from a third-person perspective (e.g., the user chases the player character in the game to play the game); it may also be displayed from a bird's-eye view perspective, and the above perspectives may be switched arbitrarily.
[0059] 4) Player characters, images of various people and objects that can interact in the virtual scene, or movable objects in the virtual scene. The movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as: people, animals, plants, oil drums, walls, stones, vehicles, etc. displayed in the virtual scene. The player character can be a virtual image in the virtual scene that represents the user. The virtual scene can include multiple player characters, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene;
[0060] For example, the player character may be a user character controlled by operations on the client, or an artificial intelligence (AI) set in a virtual scene battle through training, or a non-player character (NPC) set in a virtual scene interaction. The number of player characters participating in the interaction in the virtual scene may be pre-set or dynamically determined according to the number of clients joining the interaction.
[0061] 5) Virtual pets, which are images of various people and objects that can interact in virtual scenes. They can be obtained through user transactions or captured by player characters controlled by users. They can be placed in the user's backpack, or follow the player character in the virtual scene, or move freely. Virtual pets can be controlled by users or can be NPCs.
[0062] 6) Third-person perspective: the in-game camera is positioned a certain distance behind the player character, and the character and all combat elements in the surrounding environment can be seen in the screen.
[0063] 7) First-person perspective: the in-game camera is at the player character’s eye position, and the character’s body parts and all combat elements in the surrounding environment can be seen on the screen.
[0064] See also Figure 1 , Figure 1 It is a schematic diagram of the architecture of the interactive system 100 in the virtual scene provided in an embodiment of the present application, a terminal (terminal 400 is shown as an example), and the terminal 400 is connected to the server 200 through a network 300, wherein the network 300 can be a wide area network or a local area network, or a combination of the two, and wireless or wired links are used to realize data transmission.
[0065] The server 200 is used to send display data of the virtual scene to the terminal 400;
[0066] Terminal 400 is used to receive display data of a virtual scene and display the virtual scene based on the display data; display a player character in the virtual scene, wherein the player character has a first virtual pet; in response to a transformation instruction for the player character, control the player character to transform into the first virtual pet; display at least one second virtual pet, wherein the second virtual pet is of the same type as the first virtual pet; and in response to an interaction instruction for the first virtual pet, control the first virtual pet to interact with the second virtual pet.
[0067] In some embodiments, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks (CDN, Content Deliver Network), and big data and artificial intelligence platforms. The terminal 400 may be a smart phone, a tablet computer, a laptop computer, a desktop computer, a set-top box, an intelligent voice interaction device, a smart home appliance, a virtual reality device, a vehicle-mounted terminal, an aircraft, a portable music player, a personal digital assistant, a dedicated messaging device, a portable gaming device, an intelligent speaker, and a smart watch, but is not limited thereto. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.
[0068] Next, an electronic device that implements the interactive method in a virtual scene provided by an embodiment of the present application is described. Figure 2 , Figure 2 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a server or a terminal. Figure 1 Take the terminal shown in as an example, Figure 2The electronic device shown includes: at least one processor 410, a memory 450, at least one network interface 420 and a user interface 430. The various components in the terminal 400 are coupled together via a bus system 440. It is understood that the bus system 440 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 440 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 440 is not shown in FIG. Figure 2 Various buses are labeled as bus system 440 .
[0069] Processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0070] The user interface 430 includes one or more output devices 431 that enable display of media content, including one or more speakers and / or one or more visual display screens. The user interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0071] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices that are physically remote from the processor 410.
[0072] The memory 450 includes a volatile memory or a non-volatile memory, and may also include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 450 described in the embodiments of the present application is intended to include any suitable type of memory.
[0073] In some embodiments, memory 450 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0074] Operating system 451, including system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0075] A network communication module 452, used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 include: Bluetooth, Wireless Compatibility Certification (WiFi), and Universal Serial Bus (USB), etc.;
[0076] a presentation module 453 for enabling display of information via one or more output devices 431 (e.g., display screen, speaker, etc.) associated with the user interface 430 (e.g., a user interface for operating peripherals and displaying content and information);
[0077] The input processing module 454 is used to detect one or more user inputs or interactions from one of the one or more input devices 432 and translate the detected inputs or interactions.
[0078] In some embodiments, the device provided in the embodiments of the present application can be implemented in software. Figure 2 An interactive device 455 in a virtual scene stored in a memory 450 is shown, which may be software in the form of a program or a plug-in, and includes the following software modules: a first display module 4551, a first control module 4552, a second display module 4553, and a second control module 4554. These modules are logical, and thus may be arbitrarily combined or further split according to the functions implemented. The functions of each module will be described below.
[0079] In other embodiments, the device provided in the embodiments of the present application can be implemented in hardware. As an example, the interactive device in the virtual scene provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the interactive method in the virtual scene provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.
[0080] In some embodiments, the terminal or server can implement the interactive method in the virtual scene provided by the embodiment of the present application by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a local (Native) application (APP, Application), that is, a local client, that is, a program that needs to be installed in the operating system to run, such as an instant messaging APP, a web browser APP; it can also be a small program, that is, a program that can be run only by downloading it to a browser environment; it can also be a small program that can be embedded in any APP. In short, the above-mentioned computer program can be any form of client, module or plug-in.
[0081] Based on the above description of the interactive system and electronic device in the virtual scene provided by the embodiment of the present application, the interactive method in the virtual scene provided by the embodiment of the present application is described below. In actual implementation, the interactive method in the virtual scene provided by the embodiment of the present application can be implemented by the terminal or the server alone, or by the terminal and the server in collaboration, so that Figure 1 The interactive method in the virtual scene provided by the embodiment of the present application is described as an example in which the terminal 400 alone executes the interactive method in the virtual scene provided by the embodiment of the present application. Figure 3 , Figure 3 is a flow chart of the interactive method in the virtual scene provided by the embodiment of the present application. Next, Figure 3 The steps shown are explained.
[0082] Step 101: The terminal displays a player character in a virtual scene.
[0083] In actual implementation, an application supporting virtual scenes is installed on the terminal. The application can be any one of a multiplayer online role-playing game, a first-person shooter game, a third-person shooter game, a multiplayer online tactical competitive game, a virtual reality application, a three-dimensional map program, or a multiplayer gunfight survival game. The user can use the terminal to play a game in the application. When the user opens the application on the terminal and the terminal runs the application, the terminal presents a page of a virtual scene. Here, the virtual scene is observed from the first-person object perspective, or from the third-person perspective. The virtual scene includes player characters; wherein the player character can be controlled by the current player, or by other players (teammates) belonging to the same group as the current player.
[0084] It should be noted that the form of the player character is pre-set, for example, it can be a human form, or an animal form, a plant form, a gas form, etc., and this embodiment of the present application does not limit this.
[0085] Step 102: In response to a transformation instruction for the player character, control the player character to transform into a first virtual pet.
[0086] It should be noted that controlling the form of the player character to be transformed into the first virtual pet means that the player character is transformed into the first virtual pet, that is, the control of the player character is changed to the control of the first virtual pet; wherein, the first virtual pet may be owned by the player character, that is, it may be acquired by the player before, such as captured in a virtual scene, or purchased from a game mall, or given as a gift, and this embodiment of the present application does not limit this; and when the player character is displayed in a virtual scene, the first virtual pet possessed by the player character may be displayed in the virtual scene, or may not be displayed in the virtual scene, such as in the backpack of the player character. Here, the virtual pet may be in the form of an animal, a plant, etc., and this embodiment of the present application does not limit this.
[0087] For example, see Figure 4 , Figure 4 is a schematic diagram of a player character and a first virtual pet provided in an embodiment of the present application, based on Figure 4 , Figure 4 The interface shown is a virtual scene interface in which a player character and a first virtual pet owned by the player character are displayed together, wherein the dotted frame 401 indicates the player character, and the dotted frame 402 indicates the first virtual pet owned by the player character.
[0088] Alternatively, the first virtual pet is not possessed by the player character, for example, encountered by the player character when moving in the virtual scene, or randomly determined when a transformation instruction for the player character is triggered, and this embodiment of the present application does not limit this.
[0089] In actual implementation, the player character may be directly transformed into the first virtual pet, or the player character and the target virtual pet may be combined to form the first virtual pet.
[0090] In some embodiments, if the player character is directly changed into the first virtual pet, in response to a transformation instruction for the player character, the process of controlling the player character's form to be transformed into the first virtual pet may be, in response to the transformation instruction for the player character, playing a transformation animation, wherein the transformation animation is used to indicate that the player character is being transformed into the first virtual pet; when the transformation animation is finished playing, displaying the first virtual pet transformed from the player character.
[0091] For example, see Figure 5 , Figure 5 is a schematic diagram of a process of transforming a player character into a first virtual pet according to an embodiment of the present application, based on Figure 5 , Figure 5The dashed box 501 in a is a player character, and in response to the transformation instruction for the player character, the transformation animation is played, such as Figure 5 When the change animation is finished, the first virtual pet obtained by the player character transformation is displayed, as shown in b. Figure 5 As shown in c, Figure 5 The dotted box 502 in c indicates the first virtual pet obtained by transforming the player character.
[0092] In other embodiments, if the player character and the target virtual pet are combined to form a first virtual pet, it may be that in response to a combination triggering operation for the player character and at least one target virtual pet, or the player character and at least one target virtual pet meet an automatic combination condition, a transformation instruction for the player character is determined to be triggered; thereby, in response to the transformation instruction for the player character, the process of controlling the player character's form to be transformed into the first virtual pet may be that, in response to the transformation instruction for the player character, the player character and at least one target virtual pet are combined into the first virtual pet.
[0093] It should be noted that the target virtual pet can be any virtual pet, such as a virtual pet owned by a player, or a virtual pet owned by a non-player in a virtual scene, and the embodiments of the present application do not limit this. At the same time, the shape and / or attribute value of the first virtual pet can be the same as or different from that of the target virtual pet, and the attribute value includes at least health value, damage value, defense value, speed, etc.
[0094] Among them, the fusion trigger operation can be executed based on the function control, or based on at least one of the keyboard, mouse and joystick; and the automatic fusion condition includes one of the following: the player character's current environment includes a virtual pet of the same type or race as the target virtual pet; the task object that the player character is to interact with is of the same type or race as the first virtual pet to be synthesized; the interactive task that the player character is to perform is associated with the first virtual pet to be synthesized.
[0095] In actual implementation, in the process of combining the player character and at least one target virtual pet into a first virtual pet, when the virtual scene currently includes only one target virtual pet, the player character and the target virtual pet currently included in the virtual scene are combined into the first virtual pet;
[0096] Alternatively, in the case where a plurality of target virtual pets are currently included in the virtual scene, in response to a selection operation for the plurality of target virtual pets, the player character is combined with at least one selected target virtual pet into a second virtual pet;
[0097] Alternatively, in the case where there are multiple target virtual pets, in response to an automatic fusion trigger operation, such as a trigger operation for an automatic fusion control, a trigger operation in the form of voice, somatosensory, etc., the player character and at least one target virtual pet selected from multiple target virtual pets are combined into a first virtual pet, wherein the selected target virtual pet is obtained by filtering based on descending sorting of filtering parameters, and the filtering parameters are determined based on at least one of the following characteristic parameters, by directly selecting one or performing weighted summation of multiple parameters: historical summoning frequency, historical fusion frequency, attribute value of the target virtual pet; wherein the historical summoning frequency refers to the number of times or frequency that the player character summons the pet into the virtual scene; and as mentioned above, the attribute value includes at least health value, damage value, defense value, speed, etc.
[0098] In actual applications, when there are multiple target virtual pets, the fusion priorities of different target virtual pets are usually different. According to the fusion priority of the target virtual pet, each target virtual pet can be displayed in a corresponding display style, that is, for target virtual pets with different fusion priorities, different display styles (such as different display orders, different display colors, different display brightness, different display fonts, etc.) are used to display each target virtual pet, or the target virtual pet with a higher fusion priority is highlighted, so that the player can select the desired target virtual pet for fusion, which is conducive to improving the pertinence and efficiency of the fusion.
[0099] For example, when there are multiple target virtual pets, the multiple target virtual pets are displayed in the pet list in a target order, wherein the target order is sorted according to characteristic parameters related to the target virtual pets, wherein the characteristic parameters may include the historical summoning frequency of the target virtual pet (i.e., if the target virtual pet is owned by the player, then this refers to the frequency or number of times the player character summons the target virtual pet to the virtual scene). Generally, the greater the historical summoning frequency of the target virtual pet, the higher its fusion priority, and accordingly, the higher the display order of the target virtual pet in the pet list; the characteristic parameters may also include the historical fusion frequency of the target virtual pet (i.e., the frequency or number of times the player character and the target virtual pet merge within the historical target time period). Generally, the greater the historical fusion frequency of the target virtual pet, the higher its fusion priority, and accordingly, the higher the display order of the target virtual pet in the pet list. The characteristic parameters may also include the attribute values of the target virtual pet's skills (attack ability, defense ability, speed, physical strength, magic value, etc.). Generally, the greater the attribute value of the target virtual pet's skills, the higher its fusion priority, and accordingly, the higher the display order of the target virtual pet in the pet list.
[0100] Feature parameters may also include the degree of match between the skills or abilities of the target virtual pet and the current environment of the player character. Generally, the greater the degree of match, the higher the priority of the corresponding target virtual pet, and the higher its display order in the pet list. The degree of match can be based on the ability characteristics of the target virtual pet (i.e., ability types, such as climbing ability, swimming ability, flying ability, ability to expand the field of vision, night vision ability, detection ability, etc.) and the scene characteristics of the current scene of the player character (i.e., scene type, such as hillside climbing scenes, wading swimming scenes, non-contact flying scenes, dark scenes, scenes with obstructions, etc.), and the machine learning model is called for prediction. The machine learning model is trained in the following way: based on the ability characteristics of the sample virtual pet and the scene characteristics of the current scene of the sample player character, the machine learning model is called for prediction. The learning model calculates the predicted matching degree, and performs back propagation based on the difference between the predicted matching degree and the actual matching result label (1 for match, 0 for mismatch) to update the parameters of the machine learning model. For example, after determining the value of the loss function of the machine learning model based on the difference between the predicted matching degree and the actual matching result label (1 for match, 0 for mismatch), it can be determined whether the value of the loss function exceeds the preset threshold. When the value of the loss function exceeds the preset threshold, the error signal of the machine learning model is determined based on the loss function, the error signal is back propagated in the machine learning model, and the model parameters of each layer are updated during the propagation process.
[0101] Among them, the embodiment of the present application does not limit the model structure of the machine learning model, for example, the machine learning model can be a convolutional neural network, a deep neural network, etc.; nor is it limited to the form of the loss function, for example, it can be a cross entropy loss function, an L2 loss function, etc. Here, the back propagation is explained, the training sample data is input into the input layer of the neural network model, through the hidden layer, and finally reaches the output layer and outputs the result. This is the forward propagation process of the neural network model. Since there is an error between the output result of the neural network model and the actual result, the error between the output result and the actual value is calculated, and the error is back-propagated from the output layer to the hidden layer until it is propagated to the input layer. In the process of back propagation, the value of the model parameter is adjusted according to the error, that is, the loss function is constructed according to the error between the output result and the actual value, and the partial derivative of the loss function to the model parameter is obtained layer by layer, and the gradient of the loss function to the model parameters of each layer is generated. Since the direction of the gradient indicates the direction of error expansion, the gradient of the model parameter is negated, and the original parameters of the model of each layer are summed up, and the summed result is used as the updated model parameters of each layer, thereby reducing the error caused by the model parameters, and the above process is continuously iterated until convergence.
[0102] It should be noted that when the target virtual pet merges with the player character, a fusion animation can be played, that is, the process of the player character and the target virtual pet coming into contact, gradually merging into each other, and finally becoming the first virtual pet is displayed, so that when the fusion animation is played, the first virtual pet obtained by the fusion is displayed.
[0103] For example, see Figure 6 , Figure 6 This application is a schematic diagram of a process based on the combination of player characters to form a first virtual pet according to an embodiment of the present invention. Figure 6 , Figure 6 The dashed box 601 in a is the player character, and the dashed box 602 is the target virtual pet, so that in response to the transformation instruction for the player character, the combined animation is played, such as Figure 6 When the fusion animation is played, the first virtual pet obtained by fusion of the player character and the target virtual pet is displayed, as shown in FIG. Figure 6 As shown in c, Figure 6 The dotted box 603 in c indicates the first virtual pet obtained by combining the player character and the target virtual pet.
[0104] In actual implementation, the transformation instruction for the player character may be triggered based on the transformation operation, or based on the props, or based on the virtual scene elements or target positions;
[0105] As an example, when the transformation instruction for the player character is triggered by a transformation operation, the process of receiving the transformation instruction for the player character specifically includes: displaying a transformation control; receiving the transformation instruction for the player character in response to the transformation operation triggered based on the transformation control; or receiving the transformation instruction for the player character in response to the transformation operation triggered based on at least one of a keyboard, a mouse, and a joystick;
[0106] As an example, when a transformation instruction for a player character is triggered based on a virtual scene element or a target position, the process of receiving a transformation instruction for the player character specifically includes, in response to a movement operation for the player character, controlling the player character to move toward the virtual scene element or the target position; when the player character moves to the sensing area of the virtual scene element or the target position, triggering a space teleportation instruction, that is, when the player character is in the sensing area of the virtual scene element or the target position, displaying the length of time the player character stays in the sensing area; when the stay time reaches a stay time threshold, triggering a transformation instruction for the player character.
[0107] The virtual natural phenomenon to which the virtual natural element belongs may be a natural phenomenon caused to the environment such as a tornado, a volcano, etc.; the target position is a pre-set position in the virtual scene, which may be marked by special effects or patterns;
[0108] In actual implementation, when the player character is in the sensing area of the virtual scene element or target position, the sensing area here is a circular area with the virtual scene element or target position as the center and the target distance as the radius. The process of determining that the player character is in the sensing area of the virtual scene element or target position specifically includes: the terminal detects the position of the player character in the virtual scene in real time, and obtains the position of the virtual scene element or target position and the sensing area of the virtual scene element or target position; based on the position of the player character and the position of the virtual scene element or target position, obtains the distance between the player character and the virtual scene element or target position, and compares the distance with the radius of the sensing area, that is, the target distance; when the comparison result indicates that the distance is less than or equal to the radius of the sensing area, it is determined that the player character is in the sensing range of the virtual scene element or target position.
[0109] It should be noted that when the player character is in the sensing area of the virtual scene element or the target position, the transformation instruction for the player character can be directly triggered; it can also be triggered according to the length of time the player character is in the sensing area. Specifically, when the player character is in the sensing area of the virtual scene element or the target position, the length of time the player character stays in the sensing area is displayed; when the length of stay reaches the length of stay threshold, the transformation instruction for the player character is triggered. Exemplarily, when the player character is in the sensing area of the virtual scene element or the target position, the length of stay of the player character is detected; when the detection result indicates that the length of stay of the player character reaches the length of stay threshold, such as 5 seconds, the transformation instruction for the player character is triggered.
[0110] For example, see Figure 7 , Figure 7 is a schematic diagram of a player character at a target position provided by an embodiment of the present application, based on Figure 7 , the dotted box 701 indicates the player character, and 702 indicates the target position, so that when the player character is in the sensing area of the target position indicated by 702, the transformation instruction for the player character indicated by the dotted box 701 is triggered.
[0111] In some embodiments, the number of first virtual pets to be transformed may be at least one, and different first virtual pets may have different types; wherein, if the number of first virtual pets to be transformed is one, then in response to a transformation instruction for the player character, the form of the player character is directly controlled to be transformed into the first virtual pet, that is, the player character is transformed into the first virtual pet, wherein the process of controlling the form of the player character to be transformed into the first virtual pet is as described above, and the form of the player character may be directly transformed into the first virtual pet, or the player character and the displayed target virtual pet may be combined and transformed to obtain the first virtual pet, and this is not limited in this embodiment of the present application.
[0112] If there are multiple first virtual pets to be transformed, and the types of different first virtual pets are different, then in response to a transformation instruction for the player character, the process of controlling the player character's form to be transformed into the first virtual pet may be, in response to the transformation instruction for the player character, displaying multiple pet options, and different pet options corresponding to different types of first virtual pets; in response to a selection operation for a target pet option among the multiple pet options, transforming the player character into a first virtual pet of a target type corresponding to the target pet option.
[0113] It should be noted that after triggering the transformation instruction, the number of the first virtual pets to be transformed by the player is obtained. When the number is multiple, the multiple first virtual pets are analyzed to obtain the type of each first virtual pet, and then multiple pet options are displayed based on the type of each first virtual pet; thereby responding to the selection operation of the target pet option among the multiple pet options, the player character is transformed into a first virtual pet belonging to the target type corresponding to the target pet option; and the selection operation of the target pet option among the multiple pet options can be a click operation for the target pet option, including a single click operation and a double click operation. Among them, the attribute values of different types of first virtual pets are different, and the attribute values at least include life value, damage value, defense value, speed, etc. In this way, the user can select the virtual pet to be transformed based on different pet options, so as to have the attribute values of the corresponding virtual pet, which not only enriches the pet transformation process, but also improves the diversity of interaction methods in virtual scenes and the efficiency of human-computer interaction.
[0114] In some embodiments, the virtual scene includes multiple camps, i.e., teams, and the player characters and / or virtual pets in different camps are in a confrontational relationship; and the camp to which the player character belongs also includes at least one other virtual pet; here, the other virtual pet can be a virtual pet possessed by the player character itself, or a virtual pet possessed by other characters belonging to the same camp as the player character, or a virtual pet directly controlled by other users, or an NPC in the virtual scene, etc., which is not limited in the embodiments of the present application;
[0115] After controlling the player character's form to be transformed into the first virtual pet in response to a transformation instruction for the player character, the control of the first virtual pet can be switched to controlling the target other virtual pet in response to a switching instruction for a target other virtual pet among at least one other virtual pet; wherein the target other virtual pet is different from the first virtual pet in at least one of form and attribute value; thus, in a subsequent process, in response to an interaction instruction for the first virtual pet, the process of controlling the first virtual pet to interact with the second virtual pet can be, in response to an interaction instruction for the target other virtual pet, controlling the target other virtual pet to interact with the second virtual pet.
[0116] It should be noted that switching from controlling the first virtual pet to controlling the target other virtual pet means that before triggering the switching instruction for the target other virtual pet in at least one other virtual pet, the current user can control the player character to move in the virtual scene, and after triggering the switching instruction for the target other virtual pet in at least one other virtual pet, the current user cannot control the player character to move in the virtual scene, but can control the target other virtual pet to move in the virtual scene; wherein, when the user controls the first virtual pet, the other virtual pets may be displayed in the virtual scene or not, and correspondingly, when the user controls the target other virtual pet, the first virtual pet may also be displayed in the virtual scene or not be displayed in the center of the virtual scene.
[0117] At the same time, as mentioned above, the attribute value includes at least health value, damage value, defense value, speed, etc. The switching instruction for the target other virtual pet in at least one other virtual pet can be triggered based on the function control, or can be triggered by at least one of the keyboard, mouse and joystick, which is not limited in the embodiment of the present application.
[0118] As an example, if the switching instruction for the target other virtual pet in the at least one other virtual pet is triggered based on the function control, the identification of each other virtual pet is displayed in the view interface, and then in response to the selection operation for the identification of the target other virtual pet in each identification, the switching instruction for the target other virtual pet in the at least one other virtual pet is received;
[0119] For example, see Figure 8 , Figure 8 is a schematic diagram of a process of switching from controlling a first virtual pet to controlling another virtual pet according to an embodiment of the present application, based on Figure 8 , the camp to which the player character belongs also includes another virtual pet, Figure 8The dotted box 801 in a indicates the first virtual pet, and the dotted box 802 indicates the identifiers of the first virtual pet and one other virtual pet included in the camp to which the player character belongs, wherein the first identifier in the dotted box 802 is the identifier of the first virtual pet, and the second identifier is the identifier of the other virtual pet. At this time, the identifier of the first virtual pet is in a selected state, so that the player character controls the first virtual pet; when a switching instruction triggered by a selection operation based on the identifier of the other virtual pet is received, in response to the switching instruction for the target other virtual pet, the control of the first virtual pet is switched to the control of the target other virtual pet, that is, the display is as follows. Figure 8 The interface shown in b, where Figure 8 In b, the dotted box 803 indicates other virtual pets, and 804 indicates the identifiers of other virtual pets in the selected state.
[0120] In some embodiments, the player character is located in a first virtual space in a virtual scene; before responding to a transformation instruction for the player character and controlling the player character's form to transform into a first virtual pet, the player character can also be teleported from the first virtual space to a second virtual space of the virtual scene in response to a space teleportation instruction for the player character; when the player character is located in the second virtual space, the transformation instruction for the player character is triggered.
[0121] It should be noted that, as described above in triggering the transformation instruction for the player character, the space teleportation instruction here can be triggered based on the teleportation operation, or based on the props, or based on the virtual scene elements;
[0122] As an example, when the spatial teleportation instruction is triggered by a teleportation operation, the process of receiving the spatial teleportation instruction specifically includes: displaying a teleportation control; receiving the spatial teleportation instruction in response to the teleportation operation triggered by the teleportation control; or receiving a transformation instruction for a player character in response to the teleportation operation triggered by at least one of a keyboard, a mouse, and a joystick;
[0123] As an example, when the space teleportation instruction is triggered based on a virtual scene element, the process of receiving the space teleportation instruction specifically includes displaying the virtual scene element belonging to the natural phenomenon in the first virtual space; when the player character is in the sensing area of the virtual scene element, the space teleportation instruction is triggered, that is, when the player character is in the sensing area of the virtual scene element, the length of time the player character stays in the sensing area is displayed; when the stay time reaches the stay time threshold, the space teleportation instruction is triggered.
[0124] Among them, the first virtual space and the second virtual space are both pre-set and belong to the same virtual scene, wherein the first virtual space and the second virtual space can be set as virtual spaces such as deserts, oceans, castles or jungles, the first virtual space can be a virtual space including multiple player characters or multiple types of virtual pets, and the second virtual space can be a virtual space including only virtual pets of the same type, for example, only the first virtual pet and the second virtual pet; that is, the second virtual space can be a racial gathering place for the first virtual pet and the second virtual pet; and the virtual natural phenomena to which the virtual natural elements belong can be natural phenomena such as tornadoes, volcanoes, etc. caused to the environment in which they are located.
[0125] In actual implementation, when the player character is in the sensing area of the virtual scene element, the sensing area here is a circular area with the virtual scene element as the center and the target distance as the radius. The process of determining that the player character is in the sensing area of the virtual scene element specifically includes: the terminal detects the position of the player character in the first virtual space in real time, and obtains the position of the virtual scene element and the sensing area of the virtual scene element. Based on the position of the player character and the position of the virtual scene element, the distance between the player character and the virtual scene element is obtained, and the distance is compared with the radius of the sensing area, that is, the target distance. When the comparison result indicates that the distance is less than or equal to the radius of the sensing area, it is determined that the player character is in the sensing range of the virtual scene element.
[0126] It should be noted that when the player character is in the sensing area of the virtual scene element, the space transmission instruction can be directly triggered; it can also be triggered according to the length of time the player character is in the sensing area. Specifically, when the player character is in the sensing area of the virtual scene element, the length of time the player character stays in the sensing area is displayed; when the length of time reaches the length of time threshold, the space transmission instruction is triggered. Exemplarily, when the player character is in the sensing area of the virtual scene element, the length of time the player character stays in the first virtual space is detected; when the detection result indicates that the length of time the player character stays in the first virtual space reaches the length of time threshold, such as 5 seconds, the space transmission instruction is triggered.
[0127] Step 103: display at least one second virtual pet, where the second virtual pet is of the same type as the first virtual pet.
[0128] It should be noted that the at least one second virtual pet displayed may be displayed around the first virtual pet when the player character is transformed into the first virtual pet, or may be displayed during the movement of the first virtual pet by controlling the first virtual pet to move in the virtual scene in response to a movement operation on the first virtual pet. The second virtual pet being of the same type as the first virtual pet means that the first virtual pet and the second virtual pet are of the same race, which means that the first virtual pet and the second virtual pet have the same morphology, or the morphological similarity reaches a target similarity such as 95%.
[0129] In some embodiments, after the player character is transformed into a first virtual pet, the user can make a second virtual pet of the same race as the first virtual pet to assist the user in activities in the virtual scene; specifically, after displaying at least one second virtual pet, the user can also, in response to a summoning operation for the first virtual pet, trigger an interactive instruction for the first virtual pet; wherein the summoning operation is used to summon the at least one second virtual pet so that the at least one second virtual pet follows the first virtual pet, and the summoning operation is triggered by at least one of a summoning control, a joystick, a mouse, and a keyboard.
[0130] It should be noted that summoning at least one second virtual pet refers to summoning at least one second virtual pet to gather and follow, wherein the summoning operation triggered by the summoning control is a triggering operation on the summoning control, and the summoning operation triggered by the summoning control may be a click operation on the summoning control, including a single-click operation and a double-click operation, or a pressing operation on the summoning control, such as a long-pressing operation. For example, see Fig. 9 , Fig. 9 is a schematic diagram of a summon control provided in an embodiment of the present application, based on Fig. 9 , the summoning control indicated by the dotted box 901, the first virtual pet indicated by the dotted box 902, and the at least one second virtual pet indicated by the dotted box 903. In response to the triggering operation on the summoning control indicated by the dotted box 901, the interaction instruction for the first virtual pet indicated by the dotted box 902 is triggered, and then the at least one second virtual pet indicated by the dotted box 903 is summoned, so that the at least one second virtual pet follows the first virtual pet.
[0131] In other embodiments, after the player character is transformed into the first virtual pet, the user can control the first virtual pet to receive interactive tasks from the second virtual pet. Specifically, after displaying at least one second virtual pet, that is, before controlling the first virtual pet to interact with the second virtual pet in response to an interactive instruction for the first virtual pet, the first virtual pet can be controlled to move toward a target second virtual pet among at least one second virtual pet in response to a movement operation for the first virtual pet, where the target second virtual pet is a second virtual pet that can distribute interactive tasks; when the first virtual pet moves to the interactive range of the target second virtual pet, task collection guidance information is displayed; based on the task collection guidance information, in response to the task collection operation for the first virtual pet, an interactive instruction for the first virtual pet is triggered.
[0132] It should be noted that, when the task collection operation is triggered based on a function control, the task collection guidance information may include a task collection control and guidance information, and the guidance information is used to guide the execution of the task collection operation, that is, a trigger operation such as a click operation for the task collection control, so that the first virtual pet receives the interactive task from the target second virtual pet; or, when the task guidance information is triggered based on at least one of a keyboard, a mouse, and a joystick, the task collection guidance information may include guidance information, and the guidance information is used to guide the execution of the task collection operation, that is, a trigger operation for at least one of a keyboard, a mouse, and a joystick, so that the first virtual pet receives the interactive task from the target second virtual pet; this is not limited to the embodiments of the present application.
[0133] It should be noted that the interactive task may be a dedicated task for a virtual pet of the type, i.e., the race, such as only a virtual pet of the type can execute it; the associated position of the target second virtual pet, such as one of the top position, left position, right position, and foot position of the target second virtual pet, may display a task identifier, which is used to indicate that the corresponding second virtual pet can distribute the interactive task; wherein the style of the task identifier may be pre-set, and the embodiment of the present application is not limited here; and the interactive range here is a fixed area, such as a circular area, with the target second virtual pet as the center and the target distance as the radius, so that the terminal detects the positions of the first virtual pet and the target second virtual pet in the virtual scene in real time, and obtains the sensing area of the target second virtual pet, obtains the real-time distance between the first virtual pet and the target second virtual pet based on the positions of the first virtual pet and the target second virtual pet, and compares the real-time distance with the radius of the interactive range, i.e., the target distance, and when the comparison result indicates that the real-time distance is less than or equal to the radius of the interactive range, it is determined that the first virtual pet moves to the interactive range of the target second virtual pet, thereby displaying the task collection guidance information; wherein the task collection guidance information may be displayed in the view interface.
[0134] Step 104: In response to the interaction instruction for the first virtual pet, control the first virtual pet to interact with the second virtual pet.
[0135] It should be noted that there are multiple ways to control the first virtual pet to interact with the second virtual pet in response to an interaction instruction for the first virtual pet. For example, after summoning the second virtual pet, the first virtual pet and the second virtual pet can perform the interaction task together, or, without summoning the second virtual pet, the first virtual pet can directly receive the interaction task from the second virtual pet to execute, or the first virtual pet can directly communicate with the second virtual pet, etc. Next, taking several of the interaction methods as examples, the process of controlling the first virtual pet to interact with the second virtual pet in response to an interaction instruction for the first virtual pet is explained.
[0136] In some embodiments, for the case where the first virtual pet and the second virtual pet can perform an interactive task together after summoning the second virtual pet, after triggering an interactive instruction for the first virtual pet based on a trigger operation for the summoning control, in response to the interactive instruction for the first virtual pet, the process of controlling the first virtual pet and the second virtual pet to interact may be, in response to the interactive instruction for the first virtual pet, controlling the first virtual pet to summon the second virtual pet; and in the process of the first virtual pet summoning the second virtual pet, displaying the second virtual pet moving toward the first virtual pet.
[0137] It should be noted that, during the process of the first virtual pet summoning the second virtual pet, the process of the second virtual pet moving toward the first virtual pet is displayed. When the second virtual pet moves within the target distance of the first virtual pet, the corresponding second virtual pet can stop moving; at the same time, when the first virtual pet ends or stops the summoning process, the second virtual pet that has not moved within the target distance of the first virtual pet stops moving toward the first virtual pet.
[0138] In actual implementation, as described above, taking the summoning operation as triggered by the summoning control as an example, the summoning operation can be a click operation on the summoning control, including a single-click operation and a double-click operation, or a pressing operation on the summoning control, such as a long press operation; when the summoning operation is a click operation on the summoning control, after receiving the click operation on the summoning control, the summoning duration and / or the summoning quantity are obtained, and then the summoning duration and / or the summoning quantity are displayed, where the summoning duration is used to indicate the duration of the first virtual pet summoning the second virtual pet, and the summoning quantity is used to indicate the number of summoned second virtual pets, wherein when the second virtual pet is within the target distance of the first virtual pet, it is determined that the second virtual pet is summoned, that is, the summoning quantity can indicate the number of second virtual pets whose distance from the first virtual pet is less than or equal to the target distance; thereby, the summoning duration and / or the summoning quantity are detected, and when the detection result indicates that the summoning duration reaches the target summoning duration, and / or the summoning quantity reaches the target summoning quantity, the summoning process is stopped. When the summoning operation is a pressing operation on the summoning control, after receiving the pressing operation on the summoning control, the process of continuously pressing the summoning control is also the process of summoning the second virtual pet, so when receiving the release operation on the summoning control, the summoning process is stopped.
[0139] In the process of the first virtual pet summoning the second virtual pet, a summoning special effect or a summoning signal will be displayed, and the summoning special effect and the summoning signal here may be pre-set, so as to prompt the first virtual pet that the summoning is in progress based on the summoning special effect. Fig.10 , Fig.10 is a schematic diagram of the summoning special effect provided in the embodiment of the present application, based on Fig.10 , 1001 indicates a summoning special effect. When the summoning special effect is displayed, it means that the first virtual pet is summoning at least one second virtual pet.
[0140] In actual implementation, after displaying the process of the second virtual pet moving toward the first virtual pet, it is also possible to display, in the virtual scene, a virtual resource in a sealed state; in response to a movement operation on the first virtual pet, control the first virtual pet to move toward the virtual resource, and display the process of at least one second virtual pet following the first virtual pet; when the first virtual pet and at least one second virtual pet move to the associated position of the virtual resource, display the process of unsealing the virtual resource; in response to the unsealing of the virtual resource, display the virtual resource in an unsealed state; in response to a picking operation on the virtual resource in an unsealed state, control the first virtual pet to pick up the virtual resource.
[0141] It should be noted that virtual resources can be applied to virtual scenes, such as props, experience that can increase attribute values or levels, vouchers, etc.; and virtual resources in a sealed state can be, for example, virtual resources in an unactivated state, such as a gray state, or virtual resources are wrapped by an isolation cover, etc. Correspondingly, the seal release state is also an activated state, such as a highlighted state, or the isolation cover disappears, etc.; at the same time, the associated position can be a surrounding position of the virtual resource, such as a preset position around the virtual scene; during the movement of the first virtual pet and the second virtual pet, the position of the first virtual pet and the second virtual pet is detected in real time, and when the detection result indicates that the first virtual pet and at least one second virtual pet move to the preset position around the virtual resource, it is determined that the first virtual pet and at least one second virtual pet move to the associated position of the virtual resource;
[0142] Among them, there is a sensing area at the associated position, and when the first virtual pet and the at least one second virtual pet move to the sensing area of the associated position, it is determined that the first virtual pet and the at least one second virtual pet move to the associated position around the virtual resource; the sensing area here is a fixed area such as a circular area with the virtual resource as the center and the target distance as the radius, so that the terminal detects the position of the first virtual pet and the at least one second virtual pet in the virtual scene in real time, and obtains the associated position of the virtual resource and the sensing area of the associated position, based on the position and the associated position of the first virtual pet and the at least one second virtual pet, the distance between the first virtual pet and the at least one second virtual pet and the associated position is obtained, and the distance is compared with the radius of the sensing area, that is, the target distance. When the comparison result indicates that the distance is less than or equal to the radius of the sensing area, it is determined that the first virtual pet and the at least one second virtual pet move to the associated position around the virtual resource.
[0143] In some embodiments, there are multiple associated positions, each associated position corresponds to a pattern, and before displaying the process of unsealing the virtual resource, it is also possible to, in response to a movement operation on the first virtual pet, control the first virtual pet to move to a target pattern among the multiple patterns; when the first virtual pet moves to the sensing area of the target pattern, switch the target pattern from a first style to a second style; display the process of at least one second virtual pet moving to other patterns, and when the second virtual pet moves to the sensing area of other patterns, switch the other patterns from the first style to the second style; in response to the patterns of each associated position being switched to the second style, determine that the first virtual pet and at least one second virtual pet move to the associated position of the virtual resource.
[0144] It should be noted that the patterns corresponding to the associated positions may be the same or different, and the patterns corresponding to the associated positions are equivalent to the identification of the associated positions, which are used to indicate the specific location of the associated positions; the first style and the second style may also be pre-set, for example, the first style may be in a gray state, and the second style may be in a highlighted state, or the first style may be in blue, and the second style may be in red, or the first style may be in a normal state, and the second style may be in a special effect state, etc., and the embodiments of the present application do not limit this; and the process of determining that the first virtual pet moves to the sensing area of the target pattern and determining that the second virtual pet moves to the sensing area of other patterns is similar to the process of determining that the first virtual pet and at least one second virtual pet move to the sensing area of the associated position of the virtual resource in the previous text, and the embodiments of the present application do not elaborate on this.
[0145] For example, see Fig.11 , Fig.11 is a schematic diagram of a pattern of associated positions provided in an embodiment of the present application, based on Fig.11 The dotted box 1102 indicates a virtual resource in a sealed state. There are three associated positions, corresponding to three identical patterns. Fig.11 Taking the associated position indicated by 1101 in a as an example, no virtual pet moves to the associated position, so the pattern corresponding to the associated position is the first style, that is, Fig.11 When a virtual pet moves to the position, the pattern corresponding to the associated position switches from the first style to the second style. Fig.11 The style indicated by 1103 in b is as follows Fig.11 As shown in b, the pattern at each associated position is switched to the second pattern, the first virtual pet and at least one second virtual pet are determined to move to the associated position of the virtual resource, and the virtual resource in the sealed state is unsealed, and the display is as shown in FIG. Fig.11 The virtual resource indicated by 1104 in b is in the unsealed state.
[0146] In some embodiments, for the case where the first virtual pet directly receives an interactive task from the second virtual pet to execute, after triggering an interactive instruction for the first virtual pet, in response to the interactive instruction for the first virtual pet, the process of controlling the first virtual pet to interact with the second virtual pet may be, in response to the interactive instruction for the first virtual pet, controlling the first virtual pet to receive the interactive task distributed by the target second virtual pet.
[0147] It should be noted that the interactive tasks distributed by the target second virtual pet can be of various types, for example, the interactive tasks can be watching promotional videos, or collecting target props, or defeating target objects, etc., and this embodiment of the application does not limit this.
[0148] In actual implementation, after controlling the first virtual pet to receive the interactive task distributed by the target second virtual pet, it is also possible to display the process of the first virtual pet performing the interactive task in response to the task execution instruction for the first virtual pet; if the first virtual pet completes the interactive task, in response to the first virtual pet being within the interactive range of the target second virtual pet, control the first virtual pet to receive virtual resources from the target second virtual pet, and the virtual resources are used as rewards for completing the interactive task.
[0149] It should be noted that, after the first virtual pet completes the interactive task, in response to the movement instruction for the first virtual pet, the first virtual pet is controlled to move toward the target second virtual pet; thus, when the first virtual pet moves to the interactive range of the target second virtual pet, it is determined that the first virtual pet is located in the interactive range of the target second virtual pet; wherein, the process of determining that the first virtual pet is located in the interactive range of the target second virtual pet is the same as the process of determining that the first virtual pet is located in the interactive range of the target second virtual pet when the task collection guidance information is displayed as described above, and the embodiments of the present application are not repeated here.
[0150] It should be noted that when the first virtual pet is within the interactive range of the target second virtual pet, a resource collection control is displayed, so that in response to a trigger operation on the resource collection control, the first virtual pet is controlled to collect virtual resources from the target second virtual pet, or the first virtual pet can be directly controlled to collect virtual resources from the target second virtual pet in response to a trigger operation on at least one of a joystick, a mouse and a keyboard; here, the virtual resources are similar to the virtual resources described above, and can be applied to virtual scenes, for example, they can be props, experience that can increase attribute values or levels, vouchers, etc.; at the same time, the resource collection control and the task collection control described above can be the same control, and the function of the control depends on whether the first virtual pet collects the interactive task. Before the first virtual pet receives the interactive task, the control is a task receiving control for receiving the task distributed by the target second virtual pet, and after the first virtual pet receives and interacts with the task, the control is a resource receiving control for receiving virtual resources from the target second virtual pet; accordingly, the triggering operation on at least one of the joystick, mouse and keyboard performed for receiving the virtual resources is the same as the triggering operation on at least one of the joystick, mouse and keyboard performed for receiving the interactive task as described above, except that before the first virtual pet receives the interactive task, the triggering operation on at least one of the joystick, mouse and keyboard is used to receive the interactive task, and after the first virtual pet receives and interacts with the task, the triggering operation on at least one of the joystick, mouse and keyboard is used to receive the virtual resource.
[0151] As an example, an interactive task is to pick up a target number of virtual props; thus, in response to the first virtual pet being located within the interactive range of the target second virtual pet, the process of controlling the first virtual pet to collect virtual resources from the target second virtual pet may be, in response to the first virtual pet being located within the interactive range of the target second virtual pet, displaying at least two quantity options, different quantity options corresponding to different quantities that are less than or equal to the target quantity; in response to a selection operation for a target quantity option among the at least two quantity options, delivering the number of virtual props corresponding to the target quantity option to the target second virtual pet, and controlling the first virtual pet to collect the corresponding virtual resources from the target second virtual pet.
[0152] It should be noted that the interactive task is to pick up a target number of virtual props, that is, the interactive task is to pick up a target number of virtual props for the target second virtual pet; different quantity options correspond to different quantities, but each quantity is less than or equal to the target quantity; wherein, each quantity option is used to indicate the delivery of a corresponding number of virtual props to the target second virtual pet, and delivering different numbers of virtual props can receive different virtual resources, that is, each quantity option has a corresponding virtual resource.
[0153] For example, see Fig.12 , Fig.12 is a schematic diagram of the process of delivering interactive tasks provided by an embodiment of the present application, based on Fig.12 , the dotted box 1201 indicates three quantity options, so in response to the selection operation of the target quantity option among the three quantity options, the virtual props corresponding to the target quantity option are delivered to the target second virtual pet, and the first virtual pet is controlled to receive the corresponding virtual resources from the target second virtual pet.
[0154] In other embodiments, in the case where the first virtual pet and the second virtual pet have direct conversation and communication, the interaction instruction is triggered by a pet communication operation performed on the first virtual pet, so that after the interaction instruction for the first virtual pet is triggered based on the pet communication operation, the process of controlling the first virtual pet and the second virtual pet to interact in response to the interaction instruction for the first virtual pet may be, in response to the interaction instruction triggered based on the pet communication operation, controlling the first virtual pet and the second virtual pet to communicate; during the communication process between the first virtual pet and the second virtual pet, outputting the communication reply of the second virtual pet to the first virtual pet; wherein the communication reply is used to prompt the first virtual pet for the interaction operation that can be performed in the virtual scene.
[0155] It should be noted that the pet communication operation can be performed based on the function control, or based on at least one of the joystick, mouse and keyboard, and this is not limited in the embodiment of the present application; and the communication content output by the first virtual pet can be pre-set or input by the user, wherein the input method can be text input or voice input, etc., and this is not limited in the embodiment of the present application. Accordingly, the output method of the second virtual pet's communication reply to the first virtual pet can be voice or text, etc.
[0156] Among them, the first virtual pet can obtain target information in the virtual scene, such as special gameplay, by communicating with the second virtual pet; for example, when the user is a new user, if the second virtual pet is an NPC or a virtual pet owned by other old players, then the player character controlled by the user can communicate with the second virtual pet after becoming a virtual pet, thereby obtaining gameplay information in the virtual scene, that is, guidance information.
[0157] For example, see Fig.13 , Fig.13 is a schematic diagram of a first virtual pet communicating with a second virtual pet provided in an embodiment of the present application, based on Fig.13 The dotted box 1301 indicates the first virtual pet and the second virtual pet. Here, the first virtual pet and the second virtual pet are communicating, so the text content of the communication process between the first virtual pet and the second virtual pet is displayed.
[0158] In some embodiments, the virtual scene includes at least two scene areas, and the first virtual pet is located in the first scene area of the virtual scene; thus, after controlling the first virtual pet to interact with the second virtual pet in response to an interaction instruction for the first virtual pet, the first virtual pet can also be controlled to move from the first scene area to the second scene area of the virtual scene in response to a movement instruction for the first virtual pet; wherein the second scene area includes a third virtual pet, and the third virtual pet is of a different type from the first virtual pet; when the first virtual pet is located in the second scene area, the form of the first virtual pet is controlled to change into the third virtual pet.
[0159] It should be noted that different scene areas indicate different positions in the virtual scene, and at least two scene areas constitute a virtual scene, that is, the virtual scene is composed of at least two scene areas; wherein, the second scene area may be a gathering place for the third virtual pet, that is, the third virtual pet is a unique pet in the second scene area, and there is no third virtual pet or only a small number of third virtual pets in other scene areas, such as a number of third virtual pets less than a threshold, so that when the first virtual pet is located in the second scene area, the form of the first virtual pet can be controlled to be transformed into the third virtual pet. In this way, the user can control the third virtual pet to move in the second scene area and interact or communicate with other third virtual pets in the second scene area.
[0160] In some embodiments, after controlling the first virtual pet to interact with the second virtual pet in response to an interaction instruction for the first virtual pet, the first virtual pet and the second virtual pet may be controlled to merge in response to a fusion instruction for the first virtual pet, and a fourth virtual pet obtained by the fusion may be displayed; wherein the attribute value of the fourth virtual pet is higher than that of the first virtual pet.
[0161] It should be noted that, as mentioned above, the attribute values include at least health value, damage value, defense value, speed, etc.; and in the process of controlling the first virtual pet and the second virtual pet to merge, a merging animation or a merging special effect can be displayed, and the merging animation or the merging special effect is used to indicate that the first virtual pet and the second virtual pet are merging. At the same time, the attribute value of the fourth virtual pet obtained by merging can be positively correlated with the number of the combined second virtual pets; or, regardless of the number of the combined second virtual pets, the attribute value of the fourth virtual pet obtained by merging is the same, and this embodiment of the application does not limit this.
[0162] In some embodiments, after displaying at least one second virtual pet, an attackable object may be displayed; in response to an attack instruction for the first virtual pet, the first virtual pet is controlled to attack the attackable object, and the process of the at least one second virtual pet attacking the attackable object is displayed.
[0163] It should be noted that the attackable object may be an NPC or a monster, or may be a virtual pet or a virtual character in a virtual scene that belongs to a different camp than the first virtual pet, wherein the virtual pet or the virtual character may be controlled by other users; thus, when the first virtual pet attacks the attackable object, at least one second virtual pet also follows the first virtual pet to attack the attackable object.
[0164] In some embodiments, after controlling the player character's form to transform into the first virtual pet in response to a transformation instruction for the player character, the first virtual pet can also be transformed back into the player character. Specifically, in response to the transformation instruction for the first virtual pet, the form of the first virtual pet is controlled to transform into the player character. The process of receiving the transformation instruction for the first virtual pet is similar to the process of receiving the transformation instruction for the player character described above. The process of receiving the transformation instruction for the first virtual pet specifically includes displaying a transformation control; receiving the transformation instruction for the first virtual pet in response to a trigger operation on the transformation control; or receiving the transformation instruction for the first virtual pet in response to a transformation operation triggered by at least one of a keyboard, a mouse, and a joystick; or, the combination time of the player character and the target virtual pet reaches a preset time; or, the second virtual pet completes an interactive task, etc. The embodiments of the present application do not limit this.
[0165] Among them, the preset time length can be pre-set, for example, 10 minutes; at the same time, if the player character is directly transformed into the first virtual pet, then when the transformation instruction for the first virtual pet is received, the first virtual pet will be directly transformed into the player character. If the player character is transformed into the first virtual pet based on the first virtual pet obtained by the player character and the fusion, then when the transformation instruction for the first virtual pet is received, the first virtual pet will be transformed into the player character, and the first virtual pet possessed by the player character will be displayed.
[0166] In some embodiments, see Fig.14 , Fig.14 is a flowchart of a virtual scene interaction method provided in an embodiment of the present application, based on Fig.14, step 1401, first initialize the virtual scene, and load the character controlled by the user, that is, the player character, into the virtual scene; step 1402-step 1403, perform real-time detection on the operation of the character, and determine whether to perform the transformation operation for the character based on the detection result, that is, whether to trigger the transformation instruction for the character, so as to determine whether to change the character into a pet character; step 1404-step 1405, when it is determined that the character is to be changed into a pet character, display the animation of the transformation process, and after the animation is displayed, call the data corresponding to the pet form, so as to display the pet character; step 1406-step 1408, real-time detection of the operation of the pet character is performed, and based on the detection result, it is determined whether to perform interactive operations for the same family or tasks, and when it is determined that the interactive operations for the same family or tasks are performed, the interactive process of the pet character is displayed; step 1409-step 1411, real-time detection of the pet character is performed, and based on the detection result, it is determined whether the change-back operation for the pet character is performed, that is, whether the change-back instruction for the pet character is triggered, so as to determine whether to change the pet character into a human character, and when it is determined that the pet character is changed into a human character, an animation of the change-back process is displayed, so that after the animation is displayed, the changed-back human character is displayed.
[0167] By using the above embodiment of the present application, after displaying a player character with a first pet object in a virtual scene, in response to a transformation instruction for the player character, the player character's form is controlled to be transformed into a first virtual pet, so that after displaying at least one second virtual pet of the same type as the first virtual pet, in response to an interaction instruction for the first virtual pet, the first virtual pet is controlled to interact with the second virtual pet. In this way, by changing the player character into a virtual pet and then allowing the virtual pet to interact with other virtual pets of the same type, not only the interaction methods for virtual pets are enriched and the diversity of interaction methods in virtual scenes is improved, but also the human-computer interaction efficiency and the hardware resource utilization of electronic devices are improved.
[0168] The following is a description of an exemplary structure of the interactive device 455 in the virtual scene provided by the present application as a software module. In some embodiments, Figure 2 As shown, the software modules stored in the interactive device 455 in the virtual scene of the memory 450 may include:
[0169] A first display module 4551 is used to display a player character in a virtual scene;
[0170] A first control module 4552, for controlling the transformation of the player character into a first virtual pet in response to a transformation instruction for the player character;
[0171] A second display module 4553, used for displaying at least one second virtual pet, where the second virtual pet is of the same type as the first virtual pet;
[0172] The second control module 4554 is used to control the first virtual pet to interact with the second virtual pet in response to an interaction instruction for the first virtual pet.
[0173] In some embodiments, the device further comprises a third display module, and the third display module is used to trigger an interactive instruction for the first virtual pet in response to a summoning operation for the first virtual pet; wherein the summoning operation is used to summon the at least one second virtual pet so that the at least one second virtual pet follows the first virtual pet, and the summoning operation is triggered by at least one of a summoning control, a joystick, a mouse, and a keyboard.
[0174] In some embodiments, the second control module 4554 is further used to control the first virtual pet to summon the second virtual pet in response to an interactive instruction for the first virtual pet; and to display the process of the second virtual pet moving toward the first virtual pet during the process of the first virtual pet summoning the second virtual pet.
[0175] In some embodiments, the device further includes a fourth display module, which is used to display the virtual resources in a sealed state in the virtual scene; in response to a move operation on the first virtual pet, control the first virtual pet to move toward the virtual resource, and display the process of the at least one second virtual pet following the movement of the first virtual pet; when the first virtual pet and the at least one second virtual pet move to the associated position of the virtual resource, display the process of unsealing the virtual resource; in response to the unsealing of the virtual resource, display the virtual resource in an unsealed state; in response to a pick-up operation on the virtual resource in an unsealed state, control the first virtual pet to pick up the virtual resource.
[0176] In some embodiments, there are multiple associated positions, each of which corresponds to a pattern. The device also includes a third control module, which is used to control the first virtual pet to move to a target pattern among the multiple patterns in response to a movement operation on the first virtual pet; when the first virtual pet moves to the sensing area of the target pattern, switch the target pattern from a first style to a second style; display the process of the at least one second virtual pet moving to other patterns, and when the second virtual pet moves to the sensing area of the other pattern, switch the other pattern from the first style to the second style; in response to the patterns of each of the associated positions being switched to the second style, determine that the first virtual pet and the at least one second virtual pet move to the associated position of the virtual resource.
[0177] In some embodiments, the device further includes a fourth control module, the fourth control module being used to control the first virtual pet to move toward a target second virtual pet among the at least one second virtual pet in response to a movement operation on the first virtual pet, the target second virtual pet being a second virtual pet capable of distributing interactive tasks; when the first virtual pet moves to the interactive range of the target second virtual pet, displaying task collection guidance information; based on the task collection guidance information, in response to a task collection operation on the first virtual pet, triggering an interactive instruction for the first virtual pet; the second control module 4554 is further used to control the first virtual pet to collect the interactive task distributed by the target second virtual pet in response to the interactive instruction on the first virtual pet.
[0178] In some embodiments, the device further includes a fifth display module, the fifth display module being used to display a process of the first virtual pet executing the interactive task in response to a task execution instruction for the first virtual pet; if the first virtual pet completes the interactive task, in response to the first virtual pet being located within the interactive range of the target second virtual pet, the first virtual pet is controlled to collect virtual resources from the target second virtual pet, and the virtual resources are used as a reward for completing the interactive task.
[0179] In some embodiments, the interactive task is to pick up a target number of virtual props; the fifth display module is further used to display at least two quantity options in response to the first virtual pet being located in the interactive range of the target second virtual pet, and different quantity options correspond to different quantities that are less than or equal to the target quantity; in response to a selection operation of a target quantity option among the at least two quantity options, the virtual props corresponding to the target quantity option are delivered to the target second virtual pet, and the first virtual pet is controlled to collect corresponding virtual resources from the target second virtual pet.
[0180] In some embodiments, the interaction instruction is triggered by a pet communication operation performed on the first virtual pet, and the second control module 4554 is further used to control the first virtual pet to communicate with the second virtual pet in response to the interaction instruction triggered by the pet communication operation; during the communication process between the first virtual pet and the second virtual pet, output the communication response of the second virtual pet to the first virtual pet; wherein the communication response is used to prompt the first virtual pet to perform interaction operations in the virtual scene.
[0181] In some embodiments, the virtual scene includes at least two scene areas, and the first virtual pet is located in the first scene area of the virtual scene; the device also includes a fifth control module, and the fifth control module is used to control the first virtual pet to move from the first scene area to the second scene area of the virtual scene in response to a movement instruction for the first virtual pet; wherein the second scene area includes a third virtual pet, and the third virtual pet is of a different type from the first virtual pet; when the first virtual pet is located in the second scene area, the form of the first virtual pet is controlled to change into the third virtual pet.
[0182] In some embodiments, the player character is located in a first virtual space in the virtual scene; the device also includes a transmission module, which is used to transmit the player character from the first virtual space to the second virtual space of the virtual scene in response to a space transmission instruction for the player character; when the player character is located in the second virtual space, a transformation instruction for the player character is triggered.
[0183] In some embodiments, the camp to which the player character belongs also includes at least one other virtual pet; the device also includes a switching module, which is used to switch from controlling the first virtual pet to controlling the target other virtual pet in response to a switching instruction for a target other virtual pet among the at least one other virtual pet; wherein the target other virtual pet differs from the first virtual pet in at least one of existence form and attribute value; the second control module 4554 is further used to control the target other virtual pet to interact with the second virtual pet in response to an interaction instruction for the target other virtual pet.
[0184] In some embodiments, the number of first virtual pets to be transformed is at least one, and different first virtual pets are of different types; the first control component 4552 is also used to display multiple pet options in response to a transformation instruction for the player character, and different pet options correspond to different types of the first virtual pets; in response to a selection operation for a target pet option among the multiple pet options, the player character is transformed into a first virtual pet of a target type corresponding to the target pet option.
[0185] In some embodiments, the device further includes a sixth control module, the sixth control module being used to control the first virtual pet to merge with the second virtual pet in response to a merge instruction for the first virtual pet, and to display a fourth virtual pet obtained by the merge; wherein the attribute value of the fourth virtual pet is higher than that of the first virtual pet.
[0186] In some embodiments, the device further comprises a sixth display module, the sixth display module being configured to display an attackable object; in response to an attack instruction for the first virtual pet, controlling the first virtual pet to attack the attackable object, and displaying a process in which the at least one second virtual pet attacks the attackable object.
[0187] The embodiment of the present application provides a computer program product, which includes computer executable instructions or computer programs, and the computer executable instructions or computer programs are stored in a computer-readable storage medium. The processor of the electronic device reads the computer executable instructions or computer programs from the computer-readable storage medium, and the processor executes the computer executable instructions or computer programs, so that the electronic device performs the above-mentioned interaction method in the virtual scene of the embodiment of the present application.
[0188] The present application embodiment provides a computer-readable storage medium storing computer-executable instructions or computer programs. When the computer-executable instructions or computer programs are executed by a processor, the processor will execute the interactive method in the virtual scene provided by the present application embodiment, for example, Figure 3 The interactive method in the virtual scene is shown.
[0189] In some embodiments, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disk, or a CD-ROM; or it may be various devices including one or any combination of the above memories.
[0190] 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.
[0191] 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 storing other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).
[0192] As an example, computer executable instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or on multiple electronic devices distributed at multiple sites and interconnected by a communication network.
[0193] It should be noted that in the embodiments of the present application, it involves obtaining user operation data and other related data. When the embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0194] The above is only an embodiment of the present application and is not intended to limit the protection scope of the present application. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the present application are included in the protection scope of the present application.
Claims
1. An interactive method in a virtual scene, characterized in that: The method comprises: Displaying a player character in a virtual scene; In response to a transformation instruction for the player character, controlling the form of the player character to transform into a first virtual pet; displaying at least one second virtual pet, wherein the second virtual pet is of the same type as the first virtual pet; In response to the interaction instruction for the first virtual pet, the first virtual pet is controlled to interact with the second virtual pet.
2. The method according to claim 1, characterized in that After displaying at least one second virtual pet, the method further includes: In response to the summoning operation for the first virtual pet, triggering an interaction instruction for the first virtual pet; The summoning operation is used to summon the at least one second virtual pet so that the at least one second virtual pet follows the first virtual pet, and the summoning operation is triggered by at least one of a summoning control, a joystick, a mouse and a keyboard.
3. The method according to claim 2, characterized in that The step of controlling the first virtual pet to interact with the second virtual pet in response to the interaction instruction for the first virtual pet comprises: In response to an interactive instruction for the first virtual pet, controlling the first virtual pet to summon the second virtual pet; During the process of the first virtual pet calling the second virtual pet, a process of the second virtual pet moving toward the first virtual pet is displayed.
4. The method according to claim 3, characterized in that After the process of displaying the second virtual pet moving toward the first virtual pet, the method further includes: In the virtual scene, displaying the virtual resources in a sealed state; In response to a movement operation on the first virtual pet, controlling the first virtual pet to move toward the virtual resource, and displaying a process in which the at least one second virtual pet follows the movement of the first virtual pet; When the first virtual pet and the at least one second virtual pet move to the associated position of the virtual resource, displaying the process of unsealing the virtual resource; In response to the virtual resource being unsealed, displaying the virtual resource in an unsealed state; In response to a pick-up operation for the virtual resource in the seal-released state, the first virtual pet is controlled to pick up the virtual resource.
5. The method according to claim 4, characterized in that There are multiple associated positions, each of which corresponds to a pattern. Before displaying the process of unsealing the virtual resource, the method further includes: In response to a movement operation on the first virtual pet, controlling the first virtual pet to move toward a target pattern among the multiple patterns; When the first virtual pet moves to the sensing area of the target pattern, the target pattern is switched from the first pattern to the second pattern; Displaying the process of at least one second virtual pet moving toward other patterns, and when the second virtual pet moves to the sensing area of the other patterns, switching the other patterns from the first style to the second style; In response to the patterns at the associated positions being switched to the second style, it is determined that the first virtual pet and the at least one second virtual pet move to the associated positions of the virtual resource.
6. The method according to claim 1, characterized in that Before controlling the first virtual pet to interact with the second virtual pet in response to the interaction instruction for the first virtual pet, the method further includes: In response to a movement operation on the first virtual pet, controlling the first virtual pet to move toward a target second virtual pet among the at least one second virtual pet, wherein the target second virtual pet is a second virtual pet capable of distributing interactive tasks; When the first virtual pet moves to the interactive range of the target second virtual pet, displaying task collection guidance information; Based on the task claiming guidance information, in response to a task claiming operation for the first virtual pet, triggering an interaction instruction for the first virtual pet; The step of controlling the first virtual pet to interact with the second virtual pet in response to the interaction instruction for the first virtual pet comprises: In response to the interaction instruction for the first virtual pet, the first virtual pet is controlled to receive the interaction task distributed by the target second virtual pet.
7. The method according to claim 6, characterized in that After controlling the first virtual pet to receive the interactive task distributed by the target second virtual pet, the method further includes: In response to a task execution instruction for the first virtual pet, displaying a process in which the first virtual pet executes the interactive task; If the first virtual pet completes the interactive task, in response to the first virtual pet being located in the interactive range of the target second virtual pet, the first virtual pet is controlled to collect virtual resources from the target second virtual pet, and the virtual resources are used as a reward for completing the interactive task.
8. The method according to claim 7, characterized in that The interactive task is to pick up a target number of virtual props; in response to the first virtual pet being located in the interactive range of the target second virtual pet, controlling the first virtual pet to collect virtual resources from the target second virtual pet, comprises: In response to the first virtual pet being located in the interactive range of the target second virtual pet, displaying at least two quantity options, wherein different quantity options correspond to different quantities and are less than or equal to the target quantity; In response to a selection operation of a target quantity option among the at least two quantity options, the virtual props of a quantity corresponding to the target quantity option are delivered to the target second virtual pet, and the first virtual pet is controlled to receive corresponding virtual resources from the target second virtual pet.
9. The method according to claim 1, characterized in that The interaction instruction is triggered by a pet communication operation performed on the first virtual pet, and in response to the interaction instruction for the first virtual pet, controlling the first virtual pet to interact with the second virtual pet includes: In response to the interactive instruction triggered by the pet communication operation, controlling the first virtual pet to communicate with the second virtual pet; During the communication between the first virtual pet and the second virtual pet, outputting the communication response of the second virtual pet to the first virtual pet; The communication reply is used to prompt the first virtual pet to perform interactive operations in the virtual scene.
10. An interactive device in a virtual scene, characterized in that: The device comprises: A first display module, used to display a player character in a virtual scene; A first control module, configured to control the transformation of the player character into a first virtual pet in response to a transformation instruction for the player character; A second display module, used for displaying at least one second virtual pet, wherein the second virtual pet is of the same type as the first virtual pet; The second control module is used to control the first virtual pet to interact with the second virtual pet in response to an interaction instruction for the first virtual pet.