Search

US-12626471-B2 - Control method of virtual object, control apparatus, device, and medium

US12626471B2US 12626471 B2US12626471 B2US 12626471B2US-12626471-B2

Abstract

The present disclosure relates to a control method of a virtual object, a control apparatus, a device and a medium. The method displays a target virtual scene in a target interactive interface, under the condition that there is a target virtual object in the plurality of virtual objects, displays a target control, the target virtual object being a virtual object controllable by the virtual subject in a non-contact manner; in response to receiving a trigger operation on the target control, causes the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control, wherein the target virtual scene includes a plurality of virtual objects and a virtual subject controlled by a user.

Inventors

  • Haixing Zheng
  • Xiao Chen
  • Liqiang Wang
  • Songyun DING
  • Chuanzan LI

Assignees

  • BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD.

Dates

Publication Date
20260512
Application Date
20230901
Priority Date
20220901

Claims (17)

  1. 1 . A control method of a virtual object, comprising: displaying a target virtual scene in a target interactive interface, the target virtual scene comprising a plurality of virtual objects and a virtual subject controlled by a user; under the condition that there is a target virtual object in the plurality of virtual objects, displaying a target control, the target virtual object being a virtual object controllable by the virtual subject in a non-contact manner; in response to receiving a trigger operation on the target control, causing the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control, wherein the target control comprises a follow control, wherein, the causing the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control, comprises: determining a preset ground clearance corresponding to the target virtual object; controlling the target virtual object to move to the preset ground clearance in a vertical direction; calculating a first horizontal distance between the target virtual object and the virtual subject; and controlling to keep the first horizontal distance between the target virtual object and the virtual subject.
  2. 2 . The method according to claim 1 , wherein the method further comprises: under the condition that there is the target virtual object in the plurality of virtual objects, highlighting the target virtual object in its entirety; reducing a brightness value of the target virtual object in real time according to a preset brightness difference; and under the condition that the brightness value of the target virtual object is reduced to a preset brightness value, highlighting an edge of the target virtual object.
  3. 3 . The method according to claim 1 , wherein the method further comprises: under the condition that there is the target virtual object in the plurality of virtual objects, highlighting the target virtual object in its entirety; reducing a brightness value of the target virtual object in real time according to a preset brightness difference; and under the condition that the brightness value of the target virtual object is reduced to a preset brightness value, cancelling displaying the target virtual object.
  4. 4 . The method according to claim 1 , wherein the target control further comprises a hit control; wherein, the causing the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control, comprises: determining a hit distance between the target virtual object and a hitting target; determining a hit path corresponding to the target virtual object according to the hit distance and a preset path type corresponding to the target virtual object; and controlling the target virtual object to hit the hitting target according to the hit path.
  5. 5 . The method according to claim 4 , wherein, after the controlling the target virtual object to hit the hitting target according to the hit path, the method further comprises: determining a type of a hit result corresponding to the target virtual object; displaying the hit result corresponding to the target virtual object based on the type of the hit result; if the type of the hit result is a damage type, timing a damage duration of the target virtual object; and if the damage duration reaches a preset duration, redisplaying the target virtual object in the target virtual scene.
  6. 6 . The method according to claim 1 , wherein the method further comprises: obtaining a subject attribute of the virtual subject, wherein the subject attribute comprises at least one of a subject level or a target skill rank; and determining a maximum number of objects that can be controlled by the virtual subject in a non-contact manner according to the subject attribute; wherein the number of target virtual objects is less than or equal to the maximum number of objects.
  7. 7 . The method according to claim 1 , wherein the method further comprises: obtaining object parameters of the virtual objects, the object parameters comprising object attributes and object priorities; selecting an operable object among the plurality of virtual objects based on the object attributes; and selecting the target virtual object among the operable objects according to the object priorities.
  8. 8 . The method according to claim 7 , wherein the object parameters further include object importance; wherein the selecting the target virtual object among the operable objects according to the object priorities comprises: selecting the target virtual object among the operable objects with the highest object priority according to the object importance.
  9. 9 . The method of claim 7 , wherein the object parameters further include an object interaction state; wherein after the selecting the target virtual object among the operable objects according to the object priorities, the method further comprises: eliminating the target virtual object whose object interaction state is non-interactable.
  10. 10 . The method according to claim 7 , wherein the object parameters further comprise a second horizontal distance from a center of the target interactive interface; wherein after the selecting the target virtual object among the operable objects according to the object priorities, the method further comprises: reserving the target virtual object whose second horizontal distance meets a preset distance screening condition.
  11. 11 . An electronic device, comprising: a processor; a memory configured to store executable instructions; wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement a control method of a virtual object, wherein the method comprises: displaying a target virtual scene in a target interactive interface, the target virtual scene comprising a plurality of virtual objects and a virtual subject controlled by a user; under the condition that there is a target virtual object in the plurality of virtual objects, displaying a target control, the target virtual object being a virtual object controllable by the virtual subject in a non-contact manner; in response to receiving a trigger operation on the target control, causing the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control, wherein the target control comprises a follow control, wherein, the causing the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control, comprises: determining a preset ground clearance corresponding to the target virtual object; controlling the target virtual object to move to the preset ground clearance in a vertical direction; calculating a first horizontal distance between the target virtual object and the virtual subject; and controlling to keep the first horizontal distance between the target virtual object and the virtual subject.
  12. 12 . The electronic device according to claim 11 , wherein the processor is configured to read the executable instructions from the memory and execute the instructions to further implement steps of: under the condition that there is the target virtual object in the plurality of virtual objects, highlighting the target virtual object in its entirety; reducing a brightness value of the target virtual object in real time according to a preset brightness difference; and under the condition that the brightness value of the target virtual object is reduced to a preset brightness value, highlighting an edge of the target virtual object.
  13. 13 . The electronic device according to claim 11 , wherein the processor is configured to read the executable instructions from the memory and execute the instructions to further implement steps of: under the condition that there is the target virtual object in the plurality of virtual objects, highlighting the target virtual object in its entirety; reducing a brightness value of the target virtual object in real time according to a preset brightness difference; and under the condition that the brightness value of the target virtual object is reduced to a preset brightness value, cancelling displaying the target virtual object.
  14. 14 . The electronic device according to claim 11 , wherein the target control comprises a hit control; wherein, the causing the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control, comprises: determining a hit distance between the target virtual object and a hitting target; determining a hit path corresponding to the target virtual object according to the hit distance and a preset path type corresponding to the target virtual object; and controlling the target virtual object to hit the hitting target according to the hit path.
  15. 15 . A non-transitory computer readable storage medium, wherein the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the control method of a virtual object according to claim 1 .
  16. 16 . A non-transitory computer readable storage medium, wherein the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the control method of a virtual object according to claim 2 .
  17. 17 . A non-transitory computer readable storage medium, wherein the storage medium stores a computer program which, when executed by a processor, causes the processor to implement the control method of a virtual object according to claim 3 .

Description

CROSS-REFERENCE TO RELATED APPLICATIONS The present application is based on and claims priority of CN Application No. 202211067665.5, filed on Sep. 1, 2022, the disclosure of which is incorporated by reference herein in its entirety. TECHNICAL FIELD The present disclosure relates to the technical field of games, and in particular, to a control method of a virtual object, a control apparatus, a device, and a medium. BACKGROUND With the development of science and technology, video games running on electronic device platforms become important activities for people to enjoy leisure and entertainment. In games, players can operate characters to perform related operations in game scenes, so that the players can experience visual impact brought by the games in an immersive manner, which greatly enhances initiative and sense of reality of the games. SUMMARY The present disclosure provides a control method of a virtual object, a control apparatus, a device, and a medium. In a first aspect, the present disclosure provides a control method of a virtual object, comprising: displaying a target virtual scene in a target interactive interface, the target virtual scene comprising a plurality of virtual objects and a virtual subject controlled by a user;under the condition that there is a target virtual object in the plurality of virtual objects, displaying a target control, the target virtual object being a virtual object controllable by the virtual subject in a non-contact manner;in response to receiving a trigger operation on the target control, causing the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control. In a second aspect, the present disclosure provides a control apparatus of a virtual object, comprising: a scene display module configured to display a target virtual scene in a target interactive interface, the target virtual scene comprising a plurality of virtual objects and a virtual subject controlled by a user;a control display module configured to, under the condition that there is a target virtual object in the plurality of virtual objects, display a target control, the target virtual object being a virtual object controllable by the virtual subject in a non-contact manner;an object control module configured to, in response to receiving a trigger operation on the target control, cause the virtual subject to perform non-contact control on the target virtual object according to a control mode corresponding to the target control. In a third aspect, the present disclosure provides an electronic device, comprising: a processor;a memory configured to store executable instructions;wherein the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the control method of a virtual object according to the first aspect. In a fourth aspect, the present disclosure provides a non-transitory computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to implement the control method of a virtual object according to the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS The above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent by referring to the following DETAILED DESCRIPTION when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and components are not necessarily drawn to scale. FIG. 1 is a schematic flowchart of a control method of a virtual object according to embodiments of the present disclosure; FIG. 2 is a schematic diagram of an application scenario of a control method of a virtual object according to embodiments of the present disclosure; FIG. 3 is a schematic flowchart of selecting a target virtual object according to embodiments of the present disclosure; FIG. 4 is a schematic flowchart of a control method of a virtual object when a target control includes a follow control according to embodiments of the present disclosure; FIG. 5 is a schematic flowchart of a control method of a virtual object when a target control includes a hit control according to embodiments of the present disclosure; FIG. 6 is a schematic structural diagram of a control apparatus of a virtual object according to embodiments of the present disclosure; FIG. 7 is a schematic structural diagram of an electronic device according to embodiments of the present disclosure. DETAILED DESCRIPTION The embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be