IP Library › Granted Patent US 12,569,758
Granted Patent B2
US 12,569,758 · App. 17/840,486 · Granted Mar 10, 2026

Method and apparatus for controlling virtual character to cast skill, device, medium, and program product

Inventor: Renjie Li (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
A63F13/426A63F13/2145A63F13/45A63F13/52A63F13/53A63F13/537A63F13/55A63F13/58A63F13/80A63F13/822A63F13/92A63F2300/80
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,569,758
App. No.
17/840,486
Granted
Mar 10, 2026
Kind
B2
Abstract

A method for controlling a virtual character to cast a skill includes: displaying a first virtual character and a skill control configured to cast a ranged skill; in response to detecting a trigger operation on the skill control: displaying a ranged skill indicator to indicate a casting range of the ranged skill based on a user control, the casting range having a first boundary point based on a location of the first virtual character and a second boundary point based on a location of the drag control. The method changes at least one of a shape and an area of the casting range in response to a drag operation on the drag control. The method allows a user to efficiently attack enemy virtual characters in accordance with a determination that locations of the enemy virtual characters are scattered, improving a processing efficiency of an electronic device.

Claims (84)

1 . A method for controlling a virtual character to cast a skill, at an electronic device, the method comprising:

displaying a first virtual character and a skill control configured to cast a ranged skill;

in response to detecting a trigger operation on the skill control:

displaying a ranged skill indicator, wherein the ranged skill indicator is configured to indicate a first boundary point and a second boundary point of a casting range of the ranged skill based on a user control, wherein the first boundary point is determined based on a location of the first virtual character, and the second boundary point is determined based on a location of the user control; and

in response to a drag operation on the user control:

changing at least one of a shape or an area of the casting range.

2 . The method according to claim 1 , wherein the user control comprises a drag control and the drag control comprises a wheel control;

and displaying the ranged skill indicator and the drag control comprises:

displaying the ranged skill indicator on a reference plane of a virtual environment in response to detecting the trigger operation on the skill control; and displaying the skill control as the wheel control, the wheel control comprising a wheel region and a joystick portion; and

changing at least one of the shape or the area of the casting range comprises:

changing at least one of the shape or the area of the casting range in response to a drag operation on the joystick portion.

3 . The method according to claim 2 , wherein changing at least one of a shape or an area of the casting range comprises:

updating, in response to the drag operation on the joystick portion, the second boundary point based on a mapped location of the joystick portion on the reference plane to obtain an updated second boundary point; and

changing at least one of the shape or the area of the casting range based on the updated second boundary point.

4 . The method according to claim 3 , wherein the ranged skill comprises a plurality of candidate boundary points; and

updating the second boundary point based on a mapped location of the joystick portion on the reference plane comprises:

determining, in response to the drag operation on the joystick portion, the updated second boundary point from the plurality of candidate boundary points based on the mapped location of the joystick portion on the reference plane.

5 . The method according to claim 2 , further comprising:

determining a cooldown time of the ranged skill based on an effect-taking area ratio, wherein the effect-taking area ratio is a ratio between an area of the current skill effect-taking range and an area of a largest skill effect-taking range of the ranged skill; and

switching, in response to an end of the drag operation, the wheel control to the skill control in a cooldown state; and

in accordance with a determination that a continuous display duration of the skill control in the cooldown state reaches the cooldown time:

displaying the skill control in an available state.

6 . The method according to claim 1 , wherein the user control comprises a drag control, and the drag control comprises a drag button;

displaying the ranged skill indicator and the drag control comprises:

displaying the ranged skill indicator on a reference plane of a virtual environment in response to detecting the trigger operation on the skill control; and displaying the drag button at the second boundary point of the ranged skill indicator; and

changing at least one of the shape or the area of the casting range comprises:

changing at least one of the shape or the area of the casting range in response to a drag operation on the drag button.

7 . The method according to claim 6 , wherein changing at least one of the shape or the area of the casting range comprises:

updating, in response to the drag operation on the drag button, the second boundary point based on a location of the drag button on the reference plane, to obtain an updated second boundary point; and

changing at least one of the shape or the area of the casting range based on the updated second boundary point.

8 . The method according to claim 7 , wherein the ranged skill indicator has a rectangular shape, the first boundary point is a first diagonal point of the rectangular shape, and the second boundary point is a second diagonal point of the rectangular shape; and

changing at least one of the shape or the area of the casting range based on the updated second boundary point comprises:

using the first diagonal point and the updated second diagonal point as two diagonal points of the rectangular shape to determine an updated rectangular shape;

changing the casting range indicated by the ranged skill indicator to match the updated rectangular shape.

9 . The method according to claim 7 , wherein the ranged skill comprises a plurality of candidate boundary points; and

updating the second boundary point based on a location of the drag button on the reference plane comprises:

determining, in response to the drag operation on the drag button, the updated second boundary point from the plurality of candidate boundary points based on the location of the drag button on the reference plane.

10 . The method according to claim 9 , further comprising:

in accordance with detecting an end of the drag operation:

casting the ranged skill in the current skill effect-taking range, wherein the current skill effect-taking range is equal to the casting range.

11 . The method according to claim 1 , further comprising:

determining, in response to an end of the drag operation, a current skill effect-taking range of the ranged skill based on the casting range; and

casting the ranged skill in the current skill effect-taking range.

12 . The method according to claim 11 , wherein the ranged skill comprises a plurality of candidate skill effect-taking ranges; and

determining the current skill effect-taking range of the ranged skill comprises:

selecting, in response to the end of the drag operation, a skill effect-taking range from the plurality of candidate skill effect-taking ranges that has a highest overlapping area ratio with the casting range, and setting the skill effect-taking range as the current skill effect-taking range of the ranged skill; or

selecting, in response to the end of the drag operation, a smallest external skill effect-taking range of the casting range from the plurality of candidate skill effect-taking ranges, and setting the skill effect-taking range as the current skill effect-taking range of the ranged skill.

13 . The method according to claim 12 , wherein casting the ranged skill in the current skill effect-taking range comprises:

determining a unit area effect-taking value of the ranged skill based on an effect-taking area ratio, the effect-taking area ratio being a ratio between an area of the current skill effect-taking range and an area of a largest skill effect-taking range of the ranged skill; and casting the ranged skill corresponding to the unit area effect-taking value in the current skill effect-taking range; or

determining a total effect-taking value of the ranged skill based on an effect-taking area ratio, the effect-taking area ratio being a ratio between an area of the current skill effect-taking range and an area of a largest skill effect-taking range of the ranged skill; and casting the ranged skill corresponding to the total effect-taking value in the current skill effect-taking range.

14 . An electronic device, comprising:

one or more processors; and

memory storing one or more programs, the one or more programs comprising instructions that, when executed by the one or more processors, cause the one or more processors to perform operations comprising:

displaying a first virtual character and a skill control configured to cast a ranged skill;

in response to detecting a trigger operation on the skill control:

displaying a ranged skill indicator and a drag control, wherein the ranged skill indicator is configured to indicate a first boundary point and a second boundary point of a casting range of the ranged skill, wherein the first boundary point is determined based on a location of the first virtual character, and the second boundary point is determined based on a location of the drag control; and

in response to a drag operation on the drag control:

changing at least one of a shape or an area of the casting range.

15 . The electronic device according to claim 14 , wherein the drag control comprises a wheel control;

and displaying the ranged skill indicator and the drag control comprises:

displaying the ranged skill indicator on a reference plane of a virtual environment in response to detecting the trigger operation on the skill control; and displaying the skill control as the wheel control, the wheel control comprising a wheel region and a joystick portion; and

changing at least one of the shape or the area of the casting range comprises:

changing at least one of the shape or the area of the casting range in response to a drag operation on the joystick portion.

16 . The electronic device according to claim 15 , wherein changing at least one of a shape or an area of the casting range comprises:

updating, in response to the drag operation on the joystick portion, the second boundary point based on a mapped location of the joystick portion on the reference plane to obtain an updated second boundary point; and

changing at least one of the shape or the area of the casting range based on the updated second boundary point.

17 . The electronic device according to claim 16 , wherein the drag control comprises a drag button;

displaying the ranged skill indicator and the drag control comprises:

displaying the ranged skill indicator on a reference plane of a virtual environment in response to detecting the trigger operation on the skill control; and displaying the drag button at the second boundary point of the ranged skill indicator; and

changing at least one of the shape or the area of the casting range comprises:

changing at least one of the shape or the area of the casting range in response to a drag operation on the drag button.

18 . The electronic device according to claim 17 , wherein changing at least one of the shape or the area of the casting range comprises:

updating, in response to the drag operation on the drag button, the second boundary point based on a location of the drag button on the reference plane, to obtain an updated second boundary point; and

changing at least one of the shape or the area of the casting range based on the updated second boundary point.

19 . The electronic device according to claim 18 , wherein the ranged skill indicator has a rectangular shape, the first boundary point is a first diagonal point of the rectangular shape, and the second boundary point is a second diagonal point of the rectangular shape; and

changing at least one of the shape or the area of the casting range based on the updated second boundary point comprises:

using the first diagonal point and the updated second diagonal point as two diagonal points of the rectangular shape to determine an updated rectangular shape;

changing the casting range indicated by the ranged skill indicator to match the updated rectangular shape.

20 . A non-transitory computer-readable storage medium, storing a computer program, the computer program, when executed by one or more processors of an electronic device, cause the one or more processors to perform operations comprising:

displaying a first virtual character and a skill control configured to cast a ranged skill;

in response to detecting a trigger operation on the skill control:

displaying a ranged skill indicator, wherein the ranged skill indicator is configured to indicate a first boundary point and a second boundary point of a casting range of the ranged skill, wherein the first boundary point is determined based on a location of the first virtual character, and the second boundary point is determined based on a location of the drag control; and

in response to a drag operation on the drag control:

changing at least one of a shape or an area of the casting range.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 25, 2022
From: LI, RENJIE
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 060905/0613 →
Priority Claims (1)
CN 202110888291.2 · Aug 3, 2021 · national
Continuity (2)
Continuation PCTCN2021125019 · Oct 20, 2021
Related Publication 20230040506A1 · Feb 9, 2023
References Cited (60)
US 6409604B1 · Matsuno · 2002 [cited by examiner]
US 9808720B2 · Taylor · 2017 [cited by examiner]
US 9901821B2 · Matsui · 2018 [cited by examiner]
US 10183222B2 · Tsui · 2019 [cited by examiner]
US 10456667B2 · Tang · 2019 [cited by examiner]
US 10507383B2 · He · 2019 [cited by examiner]
US 10702774B2 · Wang · 2020 [cited by examiner]
US 10702775B2 · Rong · 2020 [cited by examiner]
US 10716997B2 · He · 2020 [cited by examiner]
US 11383165B2 · Shao · 2022 [cited by examiner]
US 11890541B2 · Hu · 2024 [cited by examiner]
US 11890542B2 · Wan · 2024 [cited by examiner]
US 11893217B2 · Wan · 2024 [cited by examiner]
US 12102916B2 · Hu · 2024 [cited by examiner]
US 12179091B2 · Anderson · 2024 [cited by examiner]
US 12303781B2 · Wei · 2025 [cited by examiner]
US 20120252577A1 · Webster · 2012 [cited by examiner]
US 20130217498A1 · Wang · 2013 [cited by examiner]
US 20140364214A1 · Ayoub · 2014 [cited by examiner]
US 20150231491A1 · Hwang · 2015 [cited by examiner]
US 20150265927A1 · Taylor · 2015 [cited by examiner]
US 20170282076A1 · Tsui · 2017 [cited by examiner]
US 20170340959A1 · Tang · 2017 [cited by examiner]
US 20180121086A1 · Wang · 2018 [cited by applicant]
US 20180339229A1 · He · 2018 [cited by examiner]
US 20180369693A1 · Rong · 2018 [cited by examiner]
US 20190070494A1 · He · 2019 [cited by examiner]
US 20190070496A1 · He · 2019 [cited by examiner]
US 20190091570A1 · Wang · 2019 [cited by examiner]
US 20190308105A1 · Lai et al. · 2019 [cited by applicant]
US 20210260479A1 · Yang · 2021 [cited by examiner]
US 20210339138A1 · Shao · 2021 [cited by examiner]
US 20220035515A1 · Wan · 2022 [cited by examiner]
US 20220047946A1 · Hu · 2022 [cited by examiner]
US 20220152509A1 · Zhang · 2022 [cited by examiner]
US 20230040506A1 · Li · 2023 [cited by examiner]
US 20240033629A1 · Zheng · 2024 [cited by examiner]
US 20240261686A1 · Hu · 2024 [cited by examiner]
US 20240350918A1 · Li · 2024 [cited by examiner]
CN 105148517A · 2015 [cited by applicant]
CN 107596688A · 2018 [cited by applicant]
CN 109107153A · 2019 [cited by applicant]
CN 109117050A · 2019 [cited by applicant]
CN 110694261A · 2020 [cited by applicant]
CN 111589140A · 2020 [cited by applicant]
CN 111659107A · 2020 [cited by applicant]
CN 111672103A · 2020 [cited by applicant]
CN 111760274A · 2020 [cited by applicant]
CN 112402949A · 2021 [cited by applicant]
JP 2016525909A · 2016 [cited by applicant]
JP 2018514041A · 2018 [cited by applicant]
TW 201250577A · 2012 [cited by applicant]
WO WO2023010690A1 · 2023 [cited by applicant]
Tencent Technology, Japanese Office Action, JP 2022-563112, Oct. 24, 2023, 10 pgs. [cited by applicant]
Tencent Technology, Extended European Search Report, EP 21935453, Sep. 27, 2023, 9 pgs. [cited by applicant]
Tencent Technology, ISR, PCT/CN2021/125019, Apr. 29, 2022, 2 pgs. [cited by applicant]
Tencent Technology, WO, PCT/CN2021/125019, Apr. 29, 2022, 3 pgs. [cited by applicant]
Tencent Technology, IPRP, PCT/CN2021/125019, Feb. 6, 2024, 4 pgs. [cited by applicant]
Tencent Technology, Philippines Office Action, PH Patent Application No. 1/2022/551474, May 21, 2025, 6 pgs. [cited by applicant]
Tencent Technology, Korean Office Action, KR Patent Application No. 1020227031710, Jul. 5, 2024, 9 pgs. [cited by applicant]