US12090389B2ActiveUtilityA1
Virtual object control method and apparatus, terminal, and storage medium
Est. expiryAug 1, 2039(~13.1 yrs left)· nominal 20-yr term from priority
G06F 3/04883A63F 13/837A63F 13/214A63F 2300/8076A63F 2300/303A63F 2300/308A63F 13/537A63F 13/53G06F 3/04886A63F 13/2145A63F 13/79A63F 13/35A63F 13/422
50
PatentIndex Score
0
Cited by
57
References
18
Claims
Abstract
A virtual object control method includes displaying a user interface (UI) that includes a first fire button being an operation control configured to trigger to aim down sights (ADS) and fire. When a trigger signal corresponding to the first fire button is received, a virtual firearm enters an ADS state. When a fire condition is satisfied and the virtual firearm is in the ADS state, the virtual firearm can shoot. A one-tap ADS and fire capability is implemented which improves operation efficiency.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1. A virtual object control method comprising:
displaying a user interface (UI) having a first fire button configured as an operation control to trigger an aim down sights (ADS) and fire and a second fire button including configured as an operation control to trigger hip fire, the second fire button being next to the first fire button;
in response to receiving a trigger signal corresponding to the first fire button, controlling a virtual firearm held by a virtual object to enter an ADS state, determining whether a fire condition is satisfied, and controlling the virtual firearm to shoot in response to the fire condition being satisfied and the virtual firearm being in the ADS state, wherein the ADS state is a state of observing a virtual environment by using a virtual scope for the virtual firearm; and
in response to receiving a touch operation signal, obtaining a touch position of the touch operation signal and a distance between the touch position of the touch operation signal and a center position of the second fire button, determining that a trigger signal corresponding to the second fire button is received in response to the distance between the touch position of the touch operation signal and the center position of the second fire button being less than a second threshold, and controlling the virtual firearm held by the virtual object to hip fire in response to receiving the trigger signal corresponding to the second fire button.
2. The method according to claim 1 , wherein the fire condition comprises a first fire condition and a second fire condition, and
wherein the determining whether the fire condition is satisfied further comprises:
determining whether the virtual object satisfies the first fire condition;
in response to the virtual object satisfying the first fire condition, detecting whether the virtual firearm satisfies the second fire condition; and
in response to the virtual firearm satisfying the second fire condition, determining that the fire condition is satisfied.
3. The method according to claim 2 , wherein the determining whether the virtual object satisfies the first fire condition further comprises:
obtaining state information of the virtual object; and
detecting, according to the state information of the virtual object, whether the virtual object satisfies the first fire condition, wherein the first fire condition comprises at least one of the following: when the virtual object is alive, when the virtual object is not driving a vehicle, or when the virtual object is not in water.
4. The method according to claim 2 , wherein the detecting whether the virtual firearm satisfies the second fire condition further comprises:
obtaining state information of the virtual firearm; and
detecting, according to the state information of the virtual firearm, whether the virtual firearm satisfies the second fire condition, wherein the second fire condition comprises at least one of the following: when the virtual firearm has bullets left, or when the virtual firearm is not reloading bullets.
5. The method according to claim 1 , wherein the controlling the virtual firearm to shoot further comprises:
controlling, in a duration of the trigger signal, the virtual firearm to perform a shooting operation every preset time interval.
6. The method according to claim 1 , further comprising:
in response to a touch operation signal being received, obtaining a touch position of the touch operation signal;
obtaining a distance between the touch position of the touch operation signal and a center position of the first fire button; and
in response to the distance being less than a first threshold, determining that the trigger signal corresponding to the first fire button is received.
7. The method according to claim 1 , wherein after the controlling the virtual firearm held by a virtual object to enter an ADS state, the method further comprises:
obtaining a touch position corresponding to the trigger signal in a duration of the trigger signal; and
adjusting a shooting direction of the virtual firearm according to the touch position corresponding to the trigger signal.
8. The method according to claim 1 , further comprising:
detecting whether the virtual firearm held by the virtual object supports ADS fire; and
in response to the virtual firearm supporting the ADS fire and the trigger signal corresponding to the first fire button being received, performing an operation of controlling the virtual firearm held by the virtual object to enter the ADS state.
9. The method according to claim 8 , wherein the detecting whether the virtual firearm held by the virtual object supports ADS fire comprises:
obtaining a firearm category to which the virtual firearm belongs;
obtaining a setting option corresponding to the firearm category, the setting option being configured to set a fire manner, the fire manner comprising the ADS fire and the hip fire; and
in response to the setting option corresponding to the firearm category being the ADS fire, determining that the virtual firearm supports the ADS fire.
10. A mobile terminal comprising a processor and a memory, the memory storing at least one instruction, at least one program, a code set, or an instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement the virtual object control method according to claim 1 .
11. A virtual object control apparatus, comprising:
a processor; and
a non-transitory, computer-readable storage medium in communication with the processor and storing instructions thereon that, when executed by the processor, cause the processor to:
display on a display a user interface (UI) having a first fire button configured as an operation control to trigger an aim down sights (ADS) and fire and a second fire button configured as an operation control to trigger hip fire, the second fire button being next to the first fire button;
in response to receiving a trigger signal corresponding to the first fire button, control a virtual firearm held by a virtual object to enter an ADS state, determine whether a fire condition is satisfied, and control the virtual firearm to shoot in response to the fire condition being satisfied and the virtual firearm being in the ADS state, the ADS state being a state of observing a virtual environment by using a virtual scope equipped on the virtual firearm; and
in response to receiving a touch operation signal, obtain a touch position of the touch operation signal and a distance between the touch position of the touch operation signal and a center position of the second fire button, determine that a trigger signal corresponding to the second fire button is received in response to the distance between the touch position of the touch operation signal and the center position of the second fire button being less than a second threshold, and control the virtual firearm held by the virtual object to hip fire in response to receiving the trigger signal corresponding to the second fire button.
12. A non-transitory computer-readable storage medium storing at least one instruction or program that is configured to be loaded and executed by a processor to implement the following method:
displaying a user interface (UI) comprising a first fire button configured as an operation control to trigger an aim down sights (ADS) and fire and a second fire button configured as an operation control to trigger hip fire, the second fire button being next to the first fire button;
in response to receiving a trigger signal corresponding to the first fire button, controlling a virtual firearm held by a virtual object to enter an ADS state, determining whether a fire condition is satisfied, and controlling the virtual firearm to shoot in response to the fire condition being satisfied and the virtual firearm being in the ADS state, wherein the ADS state is a state of observing a virtual environment by using a virtual scope for the virtual firearm; and
in response to receiving a touch operation signal, obtaining a touch position of the touch operation signal and a distance between the touch position of the touch operation signal and a center position of the second fire button, determining that a trigger signal corresponding to the second fire button is received in response to the distance between the touch position of the touch operation signal and the center position of the second fire button being less than a second threshold, and controlling the virtual firearm held by the virtual object to hip fire in response to receiving the trigger signal corresponding to the second fire button.
13. The non-transitory computer-readable storage medium according to claim 12 , wherein the fire condition comprises a first fire condition and a second fire condition, and wherein the determining whether the fire condition is satisfied further comprises:
determining whether the virtual object satisfies the first fire condition;
in response to the virtual object satisfying the first fire condition, detecting whether the virtual firearm satisfies the second fire condition; and
in response to the virtual firearm satisfying the second fire condition, determining that the fire condition is satisfied.
14. The non-transitory computer-readable storage medium according to claim 13 , wherein the determining whether the virtual object satisfies the first fire condition further comprises:
obtaining state information of the virtual object; and
detecting, according to the state information of the virtual object, whether the virtual object satisfies the first fire condition, wherein the first fire condition comprises at least one of the following: when the virtual object is alive, when the virtual object is not driving a vehicle, or when the virtual object is not in water.
15. The non-transitory computer-readable storage medium according to claim 13 , wherein the detecting whether the virtual firearm satisfies the second fire condition further comprises:
obtaining state information of the virtual firearm; and
detecting, according to the state information of the virtual firearm, whether the virtual firearm satisfies the second fire condition, wherein the second fire condition comprises at least one of the following: when the virtual firearm has bullets left, or when the virtual firearm is not reloading bullets.
16. The non-transitory computer-readable storage medium according to claim 12 , wherein the controlling the virtual firearm to shoot further comprises:
controlling, in a duration of the trigger signal, the virtual firearm to perform a shooting operation every preset time interval.
17. The non-transitory computer-readable storage medium according to claim 12 , further comprising:
in response to a touch operation signal being received, obtaining a touch position of the touch operation signal;
obtaining a distance between the touch position of the touch operation signal and a center position of the first fire button; and
in response to the distance being less than a first threshold, determining that the trigger signal corresponding to the first fire button is received.
18. The non-transitory computer-readable storage medium according to claim 12 , wherein after the controlling the virtual firearm held by the virtual object to enter an ADS state, further comprises:
obtaining a touch position corresponding to the trigger signal in a duration of the trigger signal; and
adjusting a shooting direction of the virtual firearm according to the touch position corresponding to the trigger signal.Cited by (0)
No later patents cite this yet.
References (0)
No backward citations on record.