IP Library › Granted Patent US 12,725,379
Granted Patent B2
US 12,725,379 · App. 18/379,108 · Granted Sep 1, 2026

Method and apparatus for controlling virtual object, electronic device, storage medium, and program product

Inventors: Shuai Wang (Shenzhen, CN); Jianquan Li (Shenzhen, CN); Xiaofeng Chen (Shenzhen, CN); Qiwen Zheng (Shenzhen, CN); Guangxin Wang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06T19/20G06T7/70G06V10/761G06T2219/2004
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,725,379
App. No.
18/379,108
Granted
Sep 1, 2026
Kind
B2
Abstract

This application provides a method for controlling a virtual object in a virtual scene performed by an electronic device. The method includes: presenting, in the virtual scene, a first virtual object and at least one second virtual object that is in an action execution state of a target performance, wherein the action execution state of the target performance indicates that the second virtual object performs an action of the target performance in the virtual scene; in response to a movement control instruction for the first virtual object, controlling the first virtual object to move in the virtual scene; and during movement of the first virtual object, when a position of the first virtual object meets an execution condition of the target performance, controlling the first virtual object to automatically perform the action of the target performance.

Claims (70)

1 . A method for controlling a virtual object in a virtual scene performed by an electronic device, the method comprising:

presenting, in the virtual scene, a first virtual object and a plurality of second virtual objects that are in an action execution state of a target performance, wherein the action execution state of the target performance indicates that the second virtual objects perform an identical action of the target performance in the virtual scene;

presenting, in the virtual scene, a performance area corresponding to the target performance, wherein the performance area comprises a matrix of performance positions;

presenting, at a respective one of the matrix of performance positions, a corresponding one of the second virtual objects in the action execution state of performing the identical action of the target performance;

in response to a movement control instruction for the first virtual object, controlling the first virtual object to move in the virtual scene; and

during movement of the first virtual object, obtaining a distance between the first virtual object and any of the second virtual objects;

when the distance is less than a distance threshold:

allocating a first position in the matrix of performance positions that has not been occupied by any of the second virtual objects for the first virtual object and

controlling the first virtual object to automatically perform the identical action of the target performance at the first position in the matrix of performance positions.

2 . The method according to claim 1 , wherein each performance position has a corresponding position number; and the presenting, at a respective one of the matrix of performance positions, a corresponding one of the second virtual objects in the action execution state of performing the identical action of the target performance comprises:

obtaining a joining order in which each second virtual object joins the target performance; and

for each second virtual object, presenting the second virtual object in the action execution state of the target performance at a performance position indicated by a position number corresponding to the joining order of the second virtual object.

3 . The method according to claim 1 , wherein the target performance has a corresponding performance object quantity threshold; and

the controlling the first virtual object to automatically perform the identical action of the target performance comprises:

when an object quantity of the second virtual object does not reach the performance object quantity threshold, controlling the first virtual object to automatically perform the identical action of the target performance.

4 . The method according to claim 1 , wherein the controlling the first virtual object to automatically perform the identical action of the target performance comprises:

presenting a joining prompt control corresponding to the target performance when the position of the first virtual object meets the execution condition of the target performance; and

in response to a joining confirmation instruction that is triggered based on the joining prompt control, controlling the first virtual object to join the target performance.

5 . The method according to claim 4 , wherein the controlling the first virtual object to join the target performance comprises:

sending a performance joining request in response to the joining confirmation instruction that is triggered based on the joining prompt control, wherein the performance joining request is used for requesting to join the target performance; and

controlling, in response to an allow-to-join instruction returned for the performance joining request, the first virtual object to join the target performance.

6 . The method according to claim 1 , wherein the plurality of second virtual objects comprise an initiating object of the target performance; and the method further comprises:

presenting a performance sensing area corresponding to the initiating object; and

during movement of the first virtual object, when the first virtual object moves onto the performance sensing area, determining that the position of the first virtual object meets an execution condition of performing the identical action of the target performance.

7 . The method according to claim 1 , wherein the method further comprises:

presenting a performance exit function item of the target performance; and

in response to a trigger operation for the performance exit function item, controlling the first virtual object to stop automatically performing the identical action of the target performance.

8 . The method according to claim 1 , wherein the method further comprises:

presenting an invitation function item corresponding to the target performance;

in response to an invitation instruction for a target virtual object is triggered based on the invitation function item, sending an invitation request to a terminal corresponding to the target virtual object; and

when a confirmation instruction is received for the invitation request, presenting the target virtual object that automatically performs the identical action of the target performance.

9 . The method according to claim 1 , wherein after the first virtual object exits the target performance, the method further comprises:

presenting a performance function item;

in response to a trigger operation for the performance function item, presenting a selection control of at least one candidate performance, wherein the candidate performance comprises at least one action; and

in response to a selection operation for a target candidate performance is triggered based on the selection control, controlling the first virtual object to be in an action execution state of the target candidate performance, wherein the action execution state of the target candidate performance is used for indicating that the first virtual object performs at least one action comprised in the target candidate performance.

10 . The method according to claim 9 , wherein the controlling the first virtual object to be in an action execution state of the target candidate performance comprises:

creating and presenting a performance area corresponding to the target candidate performance by using a position of the first virtual object as a reference position; and

controlling the first virtual object to automatically perform an action of the target candidate performance at the reference position in the performance area.

11 . The method according to claim 10 , wherein the performance area comprises at least one performance position, and the method further comprises:

when a position of a third virtual object meets an execution condition of the target candidate performance, presenting the third virtual object at a target performance position of the at least one performance position, wherein the third virtual object automatically performs the action of the target candidate performance.

12 . The method according to claim 10 , wherein the method further comprises:

when a movement instruction for the first virtual object is received, controlling the first virtual object to move in the virtual scene; and

controlling the performance area to synchronously move with the first virtual object.

13 . The method according to claim 10 , wherein the creating a performance area corresponding to the target candidate performance by using a position of the first virtual object as a reference position comprises:

determining, by using the position of the first virtual object as the reference position, a target area comprising the reference position, and performing obstacle detection on the target area, to obtain a detection result;

when the detection result indicates that there is no obstacle in the target area, determining that the target area is the performance area corresponding to the target candidate performance; and

when the detection result indicates that the obstacle exists in the target area, presenting prompt information indicating that the performance area is not creatable at the position of the first virtual object.

14 . The method according to claim 9 , wherein before the presenting a selection control of at least one candidate performance, the method further comprises:

for each candidate performance, respectively performing the following processing: obtaining an interaction attribute of the first virtual object; and

controlling the selection control of the candidate performance to be in the active state when the interaction attribute meets a performance activation condition corresponding to the candidate performance.

15 . An electronic device, comprising:

a memory, configured to store computer-executable instructions; and

a processor, configured to execute the computer-executable instructions and cause the electronic device to implement a method for controlling a virtual object in a virtual scene including:

presenting, in the virtual scene, a first virtual object and a plurality of second virtual objects that are in an action execution state of a target performance, wherein the action execution state of the target performance indicates that the second virtual objects perform an identical action of the target performance in the virtual scene;

presenting, in the virtual scene, a performance area corresponding to the target performance, wherein the performance area comprises a matrix of performance positions;

presenting, at a respective one of the matrix of performance positions, a corresponding one of the second virtual objects in the action execution state of performing the identical action of the target performance;

in response to a movement control instruction for the first virtual object, controlling the first virtual object to move in the virtual scene; and

during movement of the first virtual object, obtaining a distance between the first virtual object and any of the second virtual objects;

when the distance is less than a distance threshold:

allocating a first position in the matrix of performance positions that has not been occupied by any of the second virtual objects for the first virtual object and

controlling the first virtual object to automatically perform the identical action of the target performance at the first position in the matrix of performance positions.

16 . A non-transitory computer-readable storage medium, storing computer-executable instructions, the computer-executable instructions, when executed by a processor of an electronic device, causing the electronic device to implement a method for controlling a virtual object in a virtual scene including:

presenting, in the virtual scene, a first virtual object and a plurality of second virtual objects that are in an action execution state of a target performance, wherein the action execution state of the target performance indicates that the second virtual objects perform an identical action of the target performance in the virtual scene;

presenting, in the virtual scene, a performance area corresponding to the target performance, wherein the performance area comprises a matrix of performance positions;

presenting, at a respective one of the matrix of performance positions, a corresponding one of the second virtual objects in the action execution state of performing the identical action of the target performance;

in response to a movement control instruction for the first virtual object, controlling the first virtual object to move in the virtual scene; and

during movement of the first virtual object, obtaining a distance between the first virtual object and any of the second virtual objects;

when the distance is less than a distance threshold:

allocating a first position in the matrix of performance positions that has not been occupied by any of the second virtual objects for the first virtual object and

controlling the first virtual object to automatically perform the identical action of the target performance at the first position in the matrix of performance positions.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 12, 2023
From: WANG, SHUAI; LI, JIANQUAN; CHEN, XIAOFENG; ZHENG, QIWEN; WANG, GUANGXIN
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 065203/0971 →
Priority Claims (1)
CN 202210226658.9 · Mar 9, 2022 · national
Continuity (2)
Continuation PCTCN2022136135 · Dec 2, 2022
Related Publication 20240037885A1 · Feb 1, 2024
References Cited (11)
US 11007439B1 · Pineda · 2021 [cited by examiner]
US 20180214777A1 · Hingorani · 2018 [cited by examiner]
US 20200319771A1 · Liao et al. · 2020 [cited by applicant]
US 20210394067A1 · Saito · 2021 [cited by examiner]
US 20240012491A1 · Torres · 2024 [cited by examiner]
CN 108434731A · 2018 [cited by applicant]
CN 110302537A · 2019 [cited by applicant]
CN 110737435A · 2020 [cited by applicant]
CN 111744185A · 2020 [cited by applicant]
CN 112057860A · 2020 [cited by applicant]
Tencent Technology, ISR, PCT/CN2022/136135, Feb. 21, 2023, 2 pgs. [cited by applicant]