Search

US-20260124534-A1 - METHOD AND DEVICE FOR INTERACTION IN VIRTUAL SCENE, ELECTRONIC DEVICE, STORAGE MEDIUM, AND PROGRAM PRODUCT

US20260124534A1US 20260124534 A1US20260124534 A1US 20260124534A1US-20260124534-A1

Abstract

A method and device for interaction in a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product are provided. The method includes that: a player character is displayed in a virtual scene; the form of the player character is controlled to be transformed into a first virtual pet in response to the transformation command for the player character; at least one second virtual pet of the same kind as the first virtual pet is displayed; and the first virtual pet is controlled to interact with the second virtual pet in response to the interaction command for the first virtual pet.

Inventors

  • Yingwu ZHONG

Assignees

  • Hangzhou Pawprint Interactive Entertainment Technology Co., Ltd.

Dates

Publication Date
20260507
Application Date
20250915
Priority Date
20241104

Claims (20)

  1. 1 . A method for interaction in a virtual scene, comprising: displaying a player character in the virtual scene; in response to a transformation command for the player character, controlling a form of the player character to be transformed into a first virtual pet; displaying at least one second virtual pet of a same kind as the first virtual pet; and in response to an interaction command for the first virtual pet, controlling the first virtual pet to interact with the at least one second virtual pet.
  2. 2 . The method of claim 1 , wherein after displaying the at least one second virtual pet, the method further comprises: in response to a summoning operation for the first virtual pet, triggering an interaction command for the first virtual pet; and wherein the summoning operation is used for summoning the at least one second virtual pet to follow the first virtual pet, and the summoning operation is triggered by at least one of a summoning control, a joystick, a mouse, or a keyboard.
  3. 3 . The method of claim 2 , wherein in response to the interaction command for the first virtual pet, controlling the first virtual pet to interact with the at least one second virtual pet, comprises: in response to the interaction command for the first virtual pet, controlling the first virtual pet to summon the at least one second virtual pet; and displaying a process of the second virtual pet moving toward the first virtual pet during the first virtual pet summoning the at least one second virtual pet.
  4. 4 . The method of claim 3 , wherein after displaying the process of the at least one second virtual pet moving toward the first virtual pet, the method further comprises: displaying a virtual resource in a sealed state in the virtual scene; in response to a movement operation for the first virtual pet, controlling the first virtual pet to move toward the virtual resource, and displaying a process of the at least one second virtual pet following a movement of the first virtual pet; in response to the first virtual pet and the at least one second virtual pet moving to associated positions of the virtual resource, displaying a process of unsealing the virtual resource; in response to unsealing of the virtual resource, displaying the virtual resource in an unsealed state; and in response to a pick-up operation for the virtual resource in the unsealed state, controlling the first virtual pet to pick up the virtual resource.
  5. 5 . The method of claim 4 , wherein a number of the associated positions is multiple, each of the associated position corresponds to a pattern, and before displaying the process of unsealing the virtual resource, the method further comprises: in response to a movement operation for the first virtual pet, controlling the first virtual pet to move toward a target pattern of a plurality of patterns; in response to the first virtual pet moving to a sensing area of the target pattern, switching the target pattern from a first style to a second style; displaying a process of the at least one second virtual pet moving toward another pattern, and switching the another pattern from the first style to the second style in response to the at least one second virtual pet moving to an sensing area of the another pattern; and in response to the plurality of patterns of the associated positions switching to the second style, determining that the first virtual pet and the at least one second virtual pet move to the associated positions of the virtual resource.
  6. 6 . The method of claim 1 , wherein before the operation of in response to the interaction command for the first virtual pet, controlling the first virtual pet to interact with the at least one second virtual pet, the method further comprises: in response to a movement operation for the first virtual pet, controlling the first virtual pet to move toward a target second virtual pet of the at least one second virtual pet, wherein the target second virtual pet is a second virtual pet that distributes an interaction task; in response to the first virtual pet moving to an interactable range of the target second virtual pet, displaying task acquisition guidance information; and in response to a task acquisition operation for the first virtual pet, triggering an interaction command for the first virtual pet based on the task acquisition guidance information; wherein in response to the interaction command for the first virtual pet, controlling the first virtual pet to interact with the at least one second virtual pet, comprises: in response to the interaction command for the first virtual pet, controlling the first virtual pet to acquire the interaction task distributed by the target second virtual pet.
  7. 7 . The method of claim 6 , wherein after controlling the first virtual pet to acquire the interaction task distributed by the target second virtual pet, the method further comprises: in response to a task execution command for the first virtual pet, displaying a process of the first virtual pet performing the interaction task; and in response to the first virtual pet completing the interaction task, and in response to the first virtual pet being located in the interactable range of the target second virtual pet, controlling the first virtual pet to acquire a virtual resource from the target second virtual pet, the virtual resource being used as a reward for completing the interaction task.
  8. 8 . The method of claim 7 , wherein the interaction task is to pick up a target quantity of virtual props; and in response to the first virtual pet being located in the interactable range of the target second virtual pet, controlling the first virtual pet to acquire the virtual resource from the target second virtual pet, comprises: in response to the first virtual pet being located in the interactable 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; and in response to a selection operation for a target quantity option of the at least two quantity options, delivering a quantity of virtual props corresponding to the target quantity option to the target second virtual pet, and controlling the first virtual pet to acquire the corresponding virtual resource from the target second virtual pet.
  9. 9 . The method of claim 1 , wherein the interaction command is triggered by a pet communication operation performed on the first virtual pet; and in response to the interaction command for the first virtual pet, controlling the first virtual pet to interact with the at least one second virtual pet, comprises: in response to the interaction command triggered based on the pet communication operation, controlling the first virtual pet to communicate with the at least one second virtual pet; outputting a communication reply from the at least one second virtual pet to the first virtual pet during communication between the first virtual pet and the at least one second virtual pet; and wherein the communication reply is used to prompt an interaction operation that is able performed by the first virtual pet in the virtual scene.
  10. 10 . A device for interaction in a virtual scene, comprising: a processor; and a memory configured to store a computer program executable for the processor, wherein the processor is configured to: display a player character in the virtual scene; in response to a transformation command for the player character, control a form of the player character to be transformed into a first virtual pet; display at least one second virtual pet of a same kind as the first virtual pet; and in response to an interaction command for the first virtual pet, control the first virtual pet to interact with the at least one second virtual pet.
  11. 11 . The device of claim 10 , wherein the processor is further configured to: in response to a summoning operation for the first virtual pet, trigger an interaction command for the first virtual pet; and wherein the summoning operation is used for summoning the at least one second virtual pet to follow the first virtual pet, and the summoning operation is triggered by at least one of a summoning control, a joystick, a mouse, or a keyboard.
  12. 12 . The device of claim 11 , wherein the processor is further configured to: in response to the interaction command for the first virtual pet, control the first virtual pet to summon the at least one second virtual pet; and display a process of the at least one second virtual pet moving toward the first virtual pet during the first virtual pet summoning the at least one second virtual pet.
  13. 13 . The device of claim 12 , wherein the processor is further configured to: display a virtual resource in a sealed state in the virtual scene; in response to a movement operation for the first virtual pet, control the first virtual pet to move toward the virtual resource, and display a process of the at least one second virtual pet following a movement of the first virtual pet; in response to the first virtual pet and the at least one second virtual pet moving to associated positions of the virtual resource, display a process of unsealing the virtual resource; in response to unsealing of the virtual resource, display the virtual resource in an unsealed state; and in response to a pick-up operation for the virtual resource in the unsealed state, control the first virtual pet to pick up the virtual resource.
  14. 14 . The device of claim 10 , wherein the virtual scene comprises at least two scene areas; the first virtual pet is located in a first scene area of the virtual scene; and the processor is further configured to: in response to a movement command for the first virtual pet, control the first virtual pet to move from the first scene area to a second scene area of the virtual scene; wherein the second scene area comprises a third virtual pet of a different kind from the first virtual pet; and in response to the first virtual pet being located in the second scene area, control a form of the first virtual pet to be transformed into the third virtual pet.
  15. 15 . The device of claim 10 , wherein the player character is located in a first virtual space in the virtual scene; and the processor is further configured to: in response to a spatial teleportation command for the player character, teleport the player character from the first virtual space to a second virtual space of the virtual scene; and in response to the player character being located in the second virtual space, trigger a transformation command for the player character.
  16. 16 . The device of claim 10 , wherein a faction to which the player character belongs further comprises at least one other virtual pet; and the processor is further configured to: in response to a switching command for a target other virtual pet of the at least one other virtual pet, switch a control from the first virtual pet to the target other virtual pet; wherein the target other virtual pet is different from the first virtual pet in at least one of a form or attribute values; wherein a second controlling module is further configured to: in response to an interaction command for the target other virtual pet, control the target other virtual pet to interact with the at least one second virtual pet.
  17. 17 . The device of claim 10 , wherein a number of first virtual pets to be transformed comprises at least one, and kinds of different first virtual pets are different; the processor is further configured to: in response to a transformation command for the player character, display a plurality of pet options; wherein different pet options correspond to different kinds of the first virtual pets; and in response to a selection operation for a target pet option of the plurality of pet options, transform the player character into the first virtual pet belonging to a target kind corresponding to the target pet option.
  18. 18 . The device of claim 10 , wherein the processor is further configured to: in response to a fusion command for the first virtual pet, control the first virtual pet to fuse with the at least one second virtual pet, and display a fourth virtual pet obtained through the fusion; wherein, attribute values of the fourth virtual pet are higher than attribute values of the first virtual pet.
  19. 19 . The device of claim 10 , wherein the processor is further configured to: display an attackable object; and in response to an attack command for the first virtual pet, control the first virtual pet to attack the attackable object and display a process of the at least one second virtual pet attacking the attackable object.
  20. 20 . A non-transitory computer-readable storage medium having stored thereon a computer program that when executed by a processor, implements a method for interaction in a virtual scene, wherein the method comprises: displaying a player character in the virtual scene; in response to a transformation command for the player character, controlling a form of the player character to be transformed into a first virtual pet; displaying at least one second virtual pet of a same kind as the first virtual pet; and in response to an interaction command for the first virtual pet, controlling the first virtual pet to interact with the at least one second virtual pet.

Description

CROSS-REFERENCE TO RELATED APPLICATION This application claims priority to Chinese Patent Application No. 202411566596.1 filed on November 4, 2024, the entire content of which is incorporated herein by reference in its entirety. BACKGROUND In the related games, the user can acquire a pet in the game scene, and then control the acquired pet to follow and perform activities alongside the player character controlled by the user. However, such an interaction mode is not only too simplistic, but also reduces the efficiency of human-computer interaction in the game. SUMMARY The present disclosure relates to the technical field of the Internet, and more particularly relates to a method and apparatus for interaction in virtual scene, an electronic device, a computer-readable storage medium, and a computer program product. An embodiment of the present disclosure provides a method for interaction in a virtual scene, which includes the following operations. A player character is displayed in virtual scenes. In response to a transformation command for the player character, a form of the player character is controlled to be transformed into a first virtual pet. At least one second virtual pet of the same kind as the first virtual pet is displayed. In response to an interaction command for the first virtual pet, the first virtual pet is controlled to interact with the at least one second virtual pet. An embodiment of the present disclosure provides a device for interaction in a virtual scene, which includes a processor; and a memory configured to store a computer program executable for the processor. The processor is configured to: display a player character in a virtual scene; in response to a transformation command for the player character, control a form of the player character to be transformed into a first virtual pet; display at least one second virtual pet of the same kind as the first virtual pet; and in response to an interaction command for the first virtual pet, control the first virtual pet to interact with the at least one second virtual pet. An embodiment of the present disclosure provides computer-readable storage medium having stored thereon a computer-executable instruction or a computer program that, when executed by a processor, implement the method for interaction in the virtual scene provided by the embodiments of the present disclosure. The method includes the following operations. A player character is displayed in virtual scenes. In response to a transformation command for the player character, a form of the player character is controlled to be transformed into a first virtual pet. At least one second virtual pet of the same kind as the first virtual pet is displayed. In response to an interaction command for the first virtual pet, the first virtual pet is controlled to interact with the at least one second virtual pet. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of an architecture of an interaction system 100 in a virtual scene provided by an embodiment of the present disclosure. FIG. 2 is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. FIG. 3 is a flowchart of a method for interaction in the virtual scene provided by an embodiment of the present disclosure. FIG. 4 is a schematic diagram of a player character and a first virtual pet provided by an embodiment of the present disclosure. FIG. 5A-FIG. 5C are schematic diagrams of a process of transforming a form of the player character into the first virtual pet provided by an embodiment of the present disclosure. FIG. 6A-FIG. 6C are schematic diagrams of a process of fusing and forming the first virtual pet through the player character provided by an embodiment of the present disclosure. FIG. 7 is a schematic diagram of the player character located at a target position provided by an embodiment of the present disclosure. FIG. 8A-FIG. 8B are schematic diagrams of a process of switching the control from the first virtual pet to target other virtual pets provided by an embodiment of the present disclosure. FIG. 9 is a schematic diagram of a summoning control provided by an embodiment of the present disclosure. FIG. 10 is a schematic diagram of a summoning special effect provided by an embodiment of the present disclosure. FIG. 11A-FIG. 11B are schematic diagrams of patterns at associated positions provided by an embodiment of the present disclosure. FIG. 12 is a schematic diagram of a process of delivering an interaction task provided by an embodiment of the present disclosure. FIG. 13 is a schematic diagram of communication between the first virtual pet and the second virtual pet provided by an embodiment of the present disclosure. FIG. 14 is a flowchart of a method for interaction in virtual scene provided by an embodiment of the present disclosure. DETAILED DESCRIPTION In order to make the purposes, technical solutions and advantages of the present disclosure clearer, th