US-12623149-B2 - Virtual object control method and apparatus, computer device and storage medium
Abstract
This application relates to virtual object control, including: displaying a virtual scene including a first virtual object controlled by a user and a second virtual object not controlled by the user; in response to an operation against the second object, controlling the first object to fight against the second object in the virtual scene to reduce an attribute value of the second object; when the attribute value is less than a preset threshold, displaying conversion prompt information; in response to a conversion operation on the second object, playing a conversion animation, and displaying conversion progress indication information and object type options; and in response to the selection of a target object type option and the conversion progress indication information indicating the completion of playing of the conversion animation, converting the second object into a dependent virtual object of the first object.
Inventors
- Weihui NI
Assignees
- TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Dates
- Publication Date
- 20260512
- Application Date
- 20230727
- Priority Date
- 20220113
Claims (19)
- 1 . A virtual object control method, performed by a processor executing instructions from a memory, the method comprising: displaying a virtual scene on a display screen, the virtual scene comprising a first object, a second object, a visual field focus region, and a visual field peripheral region, the first object being a virtual object controlled by a user, the second object being a virtual object not controlled by a user; in response to an operation against the second object, controlling the first object to fight against the second object in the virtual scene to reduce an attribute value of the second object; in response to the attribute value of the second object being less than a preset threshold, displaying conversion prompt information on the display screen; in response to a conversion operation on the second object, playing a conversion animation, and displaying conversion progress indication information and object type options on the display screen, by: displaying an option indication region in a position in a display region deviating from a center point of the visual field focus region, and displaying the object type options in the visual field peripheral region; and displaying the conversion progress indication information and an option indication flag in the option indication region, the option indication flag used to indicate a target object type option being selected; and in response to a selection of the target object type option and the conversion progress indication information indicating a completion of playing of the conversion animation, converting the second object into a dependent virtual object of the first object, the target object type option being one of the object type options, an object type to which the dependent virtual object belongs being an object type indicated by the target object type option.
- 2 . The method according to claim 1 , wherein a number of the object type options and object types indicated by the object type options are determined according to the number and types of target virtual resources in a virtual backpack of the first object.
- 3 . The method according to claim 1 , wherein the visual field peripheral region is different than the visual field focus region; the visual field focus region is a region focused by a user's sight line within a preset range centered on the center point of the display region; and the object type options are displayed in the visual field peripheral region.
- 4 . The method according to claim 1 , wherein converting the second object into a dependent virtual object of the first object in response to the selection of the target object type option and the conversion progress indication information indicating the completion of playing of the conversion animation comprises: in response to an option selection event, determining the target object type option selected by the option selection event within a time period during which the conversion animation is played, and pointing the option indication flag to the target object type option; and in response to the conversion progress indication information indicating the completion of playing of the conversion animation, converting the second object into the dependent virtual object of the first object.
- 5 . The method according to claim 4 , wherein the option indication region comprises a prompt information display region, and the method further comprises: displaying trigger prompt information corresponding to the option selection event in the prompt information display region of the option indication region, the trigger prompt information being configured to prompt a triggering mode of the option selection event.
- 6 . The method according to claim 5 , wherein the trigger prompt information comprises device information and device operation information, the device information configured to characterize information of an input device, the device operation information used to indicate the input device to trigger an operation mode of the option selection event; the input device configured to trigger the option selection event; and the method further comprises: in response to a triggering operation on the input device and the triggering operation conforming to the device operation information, determining the option selection event.
- 7 . The method according to claim 4 , wherein the option indication region comprises selection regions which are in one-to-one mapping with the object type options being displayed; and pointing the option indication flag to the target object type option comprises: acquiring a position of a selection point for the option selection event; and in response to the position of the selection point being in one of the selection regions, pointing the option indication flag to an object type option mapped by the selection region in the position of the selection point, the object type option mapped by the selection region in the position of the selection point being the target object type option selected by the option selection event.
- 8 . The method according to claim 1 , further comprising: in response to withdrawing the conversion operation, canceling playing the conversion animation, and canceling displaying the option indication region and the object type options.
- 9 . The method according to claim 1 , wherein a number of the object type options and object types indicated by the object type options are determined according to the number and types of target virtual resources in a virtual backpack of the first object.
- 10 . The method according to claim 1 , wherein playing the conversion animation, and displaying the conversion progress indication information and the object type options in response to the conversion operation on the second object comprises: in response to the conversion operation on the second object, playing the conversion animation, and sending an information acquisition request to a server, the information acquisition request carrying a user identification (ID); in response to the server acquiring a number and types of target virtual resources owned by the first object based on the user ID, receiving an object type option corresponding to the number and types of the target virtual resources returned by the server; and displaying the conversion progress indication information and the object type options being returned.
- 11 . The method according to claim 1 , further comprising: stopping responding to a control operation on the first object within a time period during which the conversion animation is played.
- 12 . The method according to claim 11 , further comprising: in response to an animation termination instruction, terminating playing the conversion animation, and canceling displaying the conversion progress indication information and the object type options, within the time period during which the conversion animation is played.
- 13 . The method according to claim 1 , wherein the playing the conversion animation comprises: playing the conversion animation in a display region of the virtual scene, a screen of the virtual scene displayed in the display region being a background screen of the conversion animation; and in response to a display updating instruction for the screen of the virtual scene, updating the display of the screen of the virtual scene displayed in the display region, within a time period during which the conversion animation is played.
- 14 . The method according to claim 1 , further comprising: in response to the completion of playing of the conversion animation, displaying the dependent virtual object of the first object in an animation form.
- 15 . The method according to claim 1 , wherein the response to the conversion operation on the second object comprises: receiving the conversion operation on the second object, and responding to the conversion operation on the second object in response to determining that a virtual backpack of the first object comprises target virtual resources.
- 16 . The method according to claim 1 , wherein the virtual scene further comprises a collaborative object of the first object, the collaborative object of the first object and the first object belonging to a same team.
- 17 . A virtual object control apparatus, comprising: a memory storing a plurality of computer-readable instructions; and a processor configured to execute the plurality of computer-readable instructions, wherein upon execution of the computer-readable instructions, the processor is configured to: display, via a display screen, a virtual scene, the virtual scene comprising a first object, a second object, a visual field focus region, and a visual field peripheral region, the first object being a virtual object controlled by a user, the second object being a virtual object not controlled by a user; in response to an operation against the second object, control the first object to fight against the second object in the virtual scene to reduce an attribute value of the second object; in response to the attribute value of the second object being less than a preset threshold, display conversion prompt information on the display screen; in response to a conversion operation on the second object, play a conversion animation, and display conversion progress indication information and object type options on the display screen, by: displaying an option indication region in a position in a display region deviating from a center point of the visual field focus region, and displaying the object type options in the visual field peripheral region; and displaying the conversion progress indication information and an option indication flag in the option indication region, the option indication flag used to indicate a target object type option being selected; and in response to a selection of the target object type option and the conversion progress indication information indicating a completion of playing of the conversion animation, convert the second object into a dependent virtual object of the first object, the target object type option being one of the object type options, an object type to which the dependent virtual object belongs being an object type indicated by the target object type option.
- 18 . The apparatus according to claim 17 , wherein a number of the object type options and object types indicated by the object type options are determined according to the number and types of target virtual resources in a virtual backpack of the first object.
- 19 . One or more non-transitory computer-readable storage media storing a plurality of computer-readable instructions, wherein the plurality of computer-readable instructions, when executed by one or more processors, cause the one or more processors to: display, via a display screen, a virtual scene, the virtual scene comprising a first object, a second object, a visual field focus region, and a visual field peripheral region, the first object being a virtual object controlled by a user, the second object being a virtual object not controlled by a user; in response to an operation against the second object, control the first object to fight against the second object in the virtual scene to reduce an attribute value of the second object; in response to the attribute value of the second object being less than a preset threshold, display conversion prompt information on the display screen; in response to a conversion operation on the second object, play a conversion animation, and display conversion progress indication information and object type options on the display screen, by: displaying an option indication region in a position in a display region deviating from a center point of the visual field focus region, and displaying the object type options in the visual field peripheral region; and displaying the conversion progress indication information and an option indication flag in the option indication region, the option indication flag used to indicate a target object type option being selected; and in response to a selection of the target object type option and the conversion progress indication information indicating a completion of playing of the conversion animation, convert the second object into a dependent virtual object of the first object, the target object type option being one of the object type options, an object type to which the dependent virtual object belongs being an object type indicated by the target object type option.
Description
RELATED APPLICATION This application is a continuation of International Patent Application No. PCT/CN2022/130750, filed Nov. 9, 2022, which claims priority to Chinese Patent Application No. 202210035341.7, entitled “VIRTUAL OBJECT CONTROL METHOD AND APPARATUS, COMPUTER DEVICE AND STORAGE MEDIUM” filed to the China National Intellectual Property Administration on Jan. 13, 2022. The contents of International Patent Application No. PCT/CN2022/130750 and Chinese Patent Application No. 202210035341.7 are each incorporated herein by reference in their entirety. FIELD OF THE TECHNOLOGY This application relates to the field of computer technologies, and more particularly, to a virtual object control method and apparatus, a computer device and a storage medium. BACKGROUND OF THE DISCLOSURE With the development of computer technologies, virtual scenes are applied to more and more scenes. The virtual scenes may, for example, be virtual scenes in games or anime, wherein each virtual scene may include virtual objects controlled by users through user terminals, and the users can control the virtual objects through the user terminals to interact (such as, a player kill (PK)) in the virtual scenes. At present, in the process of users controlling virtual objects in a virtual scene through user terminals to perform PK, virtual PK objects are usually destroyed, resulting in certain limitations in the way of interaction. SUMMARY According to various embodiments provided in this application, a virtual object control method and apparatus, a computer device, a storage medium and a computer program product are provided. A virtual object control method is performed by a computer device. The method includes: displaying a virtual scene, the virtual scene including a first object and a second object, the first object being a virtual object controlled by a user, the second object being a virtual object not controlled by a user; in response to a PK operation against the second object, controlling the first object to fight against the second object to reduce an attribute value of the second object; in response to the attribute value of the second object being less than a preset threshold, displaying conversion prompt information; in response to a conversion operation on the second object, playing a conversion animation, and displaying conversion progress indication information and object type options; and in response to the selection of a target object type option and the conversion progress indication information indicating the completion of playing of the conversion animation, converting the second object into a dependent virtual object of the first object, the target object type option being one of the displayed object type options, an object type to which the dependent virtual object belongs being an object type indicated by the target object type option. A virtual object control apparatus includes: a virtual scene displaying module, configured to display a virtual scene, the virtual scene including a first object and a second object, the first object being a virtual object controlled by a user, the second object being a virtual object not controlled by a user; a PK operation responding module, configured to, in response to a PK operation against the second object, control the first object to fight against the second object to reduce an attribute value of the second object; a conversion prompt information displaying module, configured to, in response to the attribute value of the second object being less than a preset threshold, display conversion prompt information; a conversion operation responding module, configured to, in response to a conversion operation on the second object, play a conversion animation, and display conversion progress indication information and object type options; and an object conversion module, configured to, in response to the selection of a target object type option and the conversion progress indication information indicating the completion of playing of the conversion animation, convert the second object into a dependent virtual object of the first object, the target object type option being one of the displayed object type options, an object type to which the dependent virtual object belongs being an object type indicated by the target object type option. A computer device is provided, which includes a memory and one or more processors. The memory stores computer-readable instructions therein. The computer-readable instructions, when executed by the processors, cause the one or more processors to perform the steps in the above virtual object control method. One or more non-volatile computer-readable storage mediums are provided, which store computer-readable instructions therein. The computer-readable instructions, when executed by one or more processors, cause the one or more processors to perform the steps in the above virtual object control method. A computer program product is provided, which inclu