IP Library › Granted Patent US 11,865,451
Granted Patent B2
US 11,865,451 · App. 17/316,522 · Granted Jan 9, 2024

Object control method and apparatus, storage medium, and electronic device

Inventor: Xiongfei Huang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
A63F13/58A63F13/803G06F3/04886
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 11,865,451
App. No.
17/316,522
Granted
Jan 9, 2024
Kind
B2
Abstract

This application discloses an object control method performed at a terminal device. The method includes: detecting, in a running process of a round of game, a target angle generated by a target object controlled by a user of the terminal device during execution of a target action, the target angle being an included angle between a forward orientation of the target object and a sliding direction of the target object; automatically triggering, when the target angle reaches a trigger threshold, adjustment of a key state of a target virtual key; detecting, when the key state of the target virtual key is a touch-enabled state, a touch operation performed on the target virtual key; and controlling, in response to the touch operation, the target object to perform a target operation matching the target virtual key.

Claims (73)

1. An object control method, applicable to a terminal device, the method comprising:

detecting, in a running process of a round of game, a target angle generated by a target object controlled by a user of the terminal device during execution of a target action, the target angle being an included angle between a forward orientation of the target object and a sliding direction of the target object;

triggering adjustment of a key state of a target virtual key when the target angle reaches a trigger threshold;

detecting, when the key state of the target virtual key is a touch-enabled state, a touch operation performed on the target virtual key; and

controlling, in response to the touch operation, the target object to perform a target operation matching the target virtual key.

2. The method according to claim 1 , wherein the triggering adjustment of a key state of a target virtual key when the target angle reaches a trigger threshold comprises:

increasing, when the target angle reaches the trigger threshold, an energy value of an energy bar corresponding to a game prop controlled by the target virtual key by a first target value within a unit time to obtain an accumulated energy value; and

adjusting, when the accumulated energy value reaches a preset energy threshold, the key state of the target virtual key from a non-touch-enabled state to the touch-enabled state.

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

after increasing an energy value of an energy bar corresponding to a game prop controlled by the target virtual key by a first target value within a unit time to obtain an accumulated energy value:

keeping, when the accumulated energy value does not reach the preset energy threshold, the key state of the target virtual key being the non-touch-enabled state, and continuously detecting the energy value of the energy bar.

4. The method according to claim 1 , wherein the detecting a target angle generated by a target object controlled by a user of the terminal device during execution of a target action comprises:

obtaining a first operation instruction generated by performing a touch and hold operation on a first virtual key and a second virtual key in a man-machine interaction interface presented on the client, the first virtual key being configured to adjust the forward orientation of the target object, and the second virtual key being configured to trigger the target object to perform the target action;

controlling, in response to the first operation instruction, the target object to perform the target action, the target action comprising: a first target sub-action performed by controlling the target object according to the forward orientation as a first direction, and a second target sub-action performed by controlling the target object according to the forward orientation as a second direction; and

detecting the target angle generated by the target object during execution of the first target sub-action and the second target sub-action.

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

during the detecting a target angle generated by a target object controlled by a user of the terminal device during execution of a target action:

obtaining, during controlling the target object to perform the first target sub-action, a first action parameter value corresponding to the first target sub-action;

increasing, according to a second target value matching the first action parameter value, an energy value of an energy bar corresponding to a game prop controlled by the target virtual key, the second target value being an energy value added in the energy bar within a unit time during execution of the first target sub-action;

obtaining, during controlling the target object to perform the second target sub-action, a second action parameter value corresponding to the second target sub-action; and

increasing, according to a third target value matching the second action parameter value, an energy value of an energy bar corresponding to a game prop controlled by the target virtual key, the third target value being an energy value added in the energy bar within a unit time during execution of the second target sub-action.

6. The method according to claim 4 , further comprising:

before the triggering adjustment of a key state of a target virtual key:

detecting the target angle generated by the target object during switching from the first target sub-action to the second target sub-action; and

determining, when it is detected that the target angle is less than or equal to 0, that the target angle reaches the trigger threshold.

7. The method according to claim 1 , wherein the controlling the target object to perform a target operation matching the target virtual key comprises:

controlling the target object to perform a release operation on a special skill matching the target virtual key, and adjusting the key state of the target virtual key to the non-touch-enabled state, the special skill being used for assisting the target object in completing the round of game.

8. The method according to claim 7 , wherein the controlling the target object to perform a release operation on a special skill matching the target virtual key comprises:

controlling the target object to perform an acceleration operation matching the target virtual key.

9. A terminal device, comprising a memory and a processor, the memory storing a plurality of computer programs that, when executed by the processor, cause the terminal device to perform a plurality of operations including:

detecting, in a running process of a round of game, a target angle generated by a target object controlled by a user of the terminal device during execution of a target action, the target angle being an included angle between a forward orientation of the target object and a sliding direction of the target object;

triggering adjustment of a key state of a target virtual key when the target angle reaches a trigger threshold;

detecting, when the key state of the target virtual key is a touch-enabled state, a touch operation performed on the target virtual key; and

controlling, in response to the touch operation, the target object to perform a target operation matching the target virtual key.

10. The terminal device according to claim 9 , wherein the triggering adjustment of a key state of a target virtual key when the target angle reaches a trigger threshold comprises:

increasing, when the target angle reaches the trigger threshold, an energy value of an energy bar corresponding to a game prop controlled by the target virtual key by a first target value within a unit time to obtain an accumulated energy value; and

adjusting, when the accumulated energy value reaches a preset energy threshold, the key state of the target virtual key from a non-touch-enabled state to the touch-enabled state.

11. The terminal device according to claim 10 , wherein the plurality of operations further comprise:

after increasing an energy value of an energy bar corresponding to a game prop controlled by the target virtual key by a first target value within a unit time to obtain an accumulated energy value:

keeping, when the accumulated energy value does not reach the preset energy threshold, the key state of the target virtual key being the non-touch-enabled state, and continuously detecting the energy value of the energy bar.

12. The terminal device according to claim 9 , wherein the detecting a target angle generated by a target object controlled by a user of the terminal device during execution of a target action comprises:

obtaining a first operation instruction generated by performing a touch and hold operation on a first virtual key and a second virtual key in a man-machine interaction interface presented on the client, the first virtual key being configured to adjust the forward orientation of the target object, and the second virtual key being configured to trigger the target object to perform the target action;

controlling, in response to the first operation instruction, the target object to perform the target action, the target action comprising: a first target sub-action performed by controlling the target object according to the forward orientation as a first direction, and a second target sub-action performed by controlling the target object according to the forward orientation as a second direction; and

detecting the target angle generated by the target object during execution of the first target sub-action and the second target sub-action.

13. The terminal device according to claim 12 , wherein the plurality of operations further comprise:

during the detecting a target angle generated by a target object controlled by a user of the terminal device during execution of a target action:

obtaining, during controlling the target object to perform the first target sub-action, a first action parameter value corresponding to the first target sub-action;

increasing, according to a second target value matching the first action parameter value, an energy value of an energy bar corresponding to a game prop controlled by the target virtual key, the second target value being an energy value added in the energy bar within a unit time during execution of the first target sub-action;

obtaining, during controlling the target object to perform the second target sub-action, a second action parameter value corresponding to the second target sub-action; and

increasing, according to a third target value matching the second action parameter value, an energy value of an energy bar corresponding to a game prop controlled by the target virtual key, the third target value being an energy value added in the energy bar within a unit time during execution of the second target sub-action.

14. The terminal device according to claim 12 , wherein the plurality of operations further comprise:

before the triggering adjustment of a key state of a target virtual key:

detecting the target angle generated by the target object during switching from the first target sub-action to the second target sub-action; and

determining, when it is detected that the target angle is less than or equal to 0, that the target angle reaches the trigger threshold.

15. The terminal device according to claim 9 , wherein the controlling the target object to perform a target operation matching the target virtual key comprises:

controlling the target object to perform a release operation on a special skill matching the target virtual key, and adjusting the key state of the target virtual key to the non-touch-enabled state, the special skill being used for assisting the target object in completing the round of game.

16. The terminal device according to claim 15 , wherein the controlling the target object to perform a release operation on a special skill matching the target virtual key comprises:

controlling the target object to perform an acceleration operation matching the target virtual key.

17. A non-transitory computer readable storage medium, comprising a plurality of computer programs that, when executed by a processor of a terminal device, cause the terminal device to perform a plurality of operations including:

detecting, in a running process of a round of game, a target angle generated by a target object controlled by a user of the terminal device during execution of a target action, the target angle being an included angle between a forward orientation of the target object and a sliding direction of the target object;

triggering adjustment of a key state of a target virtual key when the target angle reaches a trigger threshold;

detecting, when the key state of the target virtual key is a touch-enabled state, a touch operation performed on the target virtual key; and

controlling, in response to the touch operation, the target object to perform a target operation matching the target virtual key.

18. The non-transitory computer readable storage medium according to claim 17 , wherein the triggering adjustment of a key state of a target virtual key when the target angle reaches a trigger threshold comprises:

increasing, when the target angle reaches the trigger threshold, an energy value of an energy bar corresponding to a game prop controlled by the target virtual key by a first target value within a unit time to obtain an accumulated energy value; and

adjusting, when the accumulated energy value reaches a preset energy threshold, the key state of the target virtual key from a non-touch-enabled state to the touch-enabled state.

19. The non-transitory computer readable storage medium according to claim 18 , wherein the plurality of operations further comprise:

after increasing an energy value of an energy bar corresponding to a game prop controlled by the target virtual key by a first target value within a unit time to obtain an accumulated energy value:

keeping, when the accumulated energy value does not reach the preset energy threshold, the key state of the target virtual key being the non-touch-enabled state, and continuously detecting the energy value of the energy bar.

20. The non-transitory computer readable storage medium according to claim 17 , wherein the detecting a target angle generated by a target object controlled by a user of the terminal device during execution of a target action comprises:

obtaining a first operation instruction generated by performing a touch and hold operation on a first virtual key and a second virtual key in a man-machine interaction interface presented on the client, the first virtual key being configured to adjust the forward orientation of the target object, and the second virtual key being configured to trigger the target object to perform the target action;

controlling, in response to the first operation instruction, the target object to perform the target action, the target action comprising: a first target sub-action performed by controlling the target object according to the forward orientation as a first direction, and a second target sub-action performed by controlling the target object according to the forward orientation as a second direction; and

detecting the target angle generated by the target object during execution of the first target sub-action and the second target sub-action.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 14, 2022
From: HUANG, XIONGFEI
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 059000/0628 →
Priority Claims (1)
CN 201910272526.8 · Apr 4, 2019 · national
Continuity (2)
Continuation PCTCN2020077441 · Mar 2, 2020
Related Publication 20210260484A1 · Aug 26, 2021