Method and apparatus for using virtual throwing prop, terminal, and storage medium
View Patent ↗Embodiments of this application disclose a method and apparatus for using a virtual throwing prop. The method includes displaying a prop throwing control; controlling a virtual object to throw a virtual throwing prop and displaying a prop triggering control in response to a trigger operation on a prop throwing control; and triggering a prop effect of the virtual throwing prop in response to a trigger operation on the prop triggering control.
1. A method for using a virtual throwing prop, applied to a terminal, the method comprising:
displaying a prop throwing control in response to a trigger operation on a prop switching control, the prop switching control being configured to trigger switching of a virtual prop used by a virtual object;
controlling a virtual object to throw a virtual throwing prop and switching from displaying the prop throwing control to displaying a prop triggering control in response to a trigger operation on the prop throwing control, wherein the prop triggering control is configured to trigger a prop effect of the virtual throwing prop in response to a trigger operation on the prop triggering control; and
after displaying the prop triggering control, switching the prop triggering control to the prop switching control if the virtual throwing prop is damaged.
2. The method according to claim 1 , wherein the triggering a prop effect of the virtual throwing prop in response to a trigger operation on the prop triggering control comprises:
triggering the prop effect of the virtual throwing prop in response to the trigger operation on the prop triggering control and when the prop triggering control meets a trigger condition, the trigger condition comprising at least one of a trigger distance condition or a trigger interference condition.
3. The method according to claim 2 , wherein the trigger condition comprises the trigger distance condition; and
the triggering the prop effect of the virtual throwing prop in response to the trigger operation on the prop triggering control and when the prop triggering control meets a trigger condition comprises:
obtaining a trigger distance between the virtual object and the virtual throwing prop in a virtual environment in response to the trigger operation on the prop triggering control; and
determining, when the trigger distance is less than a trigger distance threshold corresponding to the virtual throwing prop, that the trigger distance condition is met, and triggering the prop effect of the virtual throwing prop; and
after the obtaining a trigger distance between the virtual object and the virtual throwing prop in a virtual environment, the method further comprises:
determining, when the trigger distance is greater than the trigger distance threshold, that the trigger distance condition is not met, and displaying first prompt information, the first prompt information being used for prompting that the trigger distance between the virtual object and the virtual throwing prop is greater than the trigger distance threshold.
4. The method according to claim 2 , wherein the trigger condition comprises the trigger interference condition;
the triggering the prop effect of the virtual throwing prop in response to the trigger operation on the prop triggering control and when the prop triggering control meets a trigger condition comprises:
determining a trigger situation of a virtual interference prop in a virtual environment in response to the trigger operation on the prop triggering control, the virtual interference prop being configured to interfere with use of a preset virtual prop, the preset virtual prop comprising the virtual throwing prop; and
determining, when the virtual environment does not comprise the virtual interference prop in a triggered state, that the trigger interference condition is met, and triggering the prop effect of the virtual throwing prop; and
after the determining a trigger situation of a virtual interference prop in a virtual environment, the method further comprises:
determining, when the virtual environment comprises the virtual interference prop in the triggered state, that the trigger interference condition is not met, and displaying second prompt information, the second prompt information being used for prompting that a trigger operation on the virtual throwing prop is interfered.
5. The method according to claim 4 , wherein the determining, when the virtual environment comprises the virtual interference prop in the triggered state, that the trigger interference condition is not met comprises:
determining an interference range of the virtual interference prop if the virtual environment comprises the virtual interference prop in the triggered state; and
determining, if one of the virtual object or the virtual throwing prop is located within the interference range, that the trigger interference condition is not met.
6. The method according to claim 1 , wherein after the controlling a virtual object to throw a virtual throwing prop and displaying a prop triggering control in response to a trigger operation on the prop throwing control, the method further comprises:
obtaining a prop position of a thrown virtual throwing prop in the virtual environment; and
displaying a prop identifier of the virtual throwing prop in a map presentation control based on the prop position.
7. The method according to claim 6 , wherein after the obtaining a prop position of a thrown virtual throwing prop in the virtual environment, the method further comprises:
determining an action range of the virtual throwing prop; and
displaying an action range identifier on a periphery of the prop identifier in the map presentation control based on the action range.
8. The method according to claim 1 , wherein the virtual throwing prop has adhesiveness; and
after the controlling a virtual object to throw a virtual throwing prop and displaying a prop triggering control in response to a trigger operation on the prop throwing control, the method further comprises:
determining a normal direction of a motion of the virtual throwing prop during throwing; and
controlling, when there is a virtual attachment within a preset distance range in the normal direction of the motion, the virtual throwing prop to adhere to the virtual attachment, the virtual attachment comprising at least one of a static attachment or a dynamic attachment.
9. A terminal, comprising a processor and a memory, the memory storing at least one piece of instruction, at least one program, a code set, or an instruction set, and the at least one piece of instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement the method according to claim 1 .
10. A method for using a virtual throwing prop, applied to a terminal, the method comprising:
displaying a prop throwing control, wherein a virtual object is equipped with m virtual throwing props, m being an integer greater than or equal to 2;
controlling the virtual object to throw n virtual throwing prop and displaying a prop triggering control in response to n trigger operations on the prop throwing control, n being a positive integer greater than 1 and less than or equal to m; and
triggering a prop effect of an i th virtual throwing prop in response to an i th trigger operation on the prop triggering control, i being a positive integer less than or equal to n, the i th virtual throwing prop being a virtual throwing prop thrown for an i th time.
11. The method according to claim 10 , wherein after the triggering a prop effect of the virtual throwing prop in response to a trigger operation on the prop triggering control, the method further comprises:
switching the prop triggering control to a prop switching control in response to an n th trigger operation on the prop triggering control, the prop switching control being configured to trigger switching of a virtual prop used by the virtual object.
12. A terminal, comprising a processor and a memory, the memory storing at least one piece of instruction, at least one program, a code set, or an instruction set, and the at least one piece of instruction, the at least one program, the code set, or the instruction set being loaded and executed by the processor to implement the method according to claim 10 .
13. A non-transitory computer-readable storage medium, storing at least one piece of instruction, at least one program, a code set, or an instruction set, the at least one piece of instruction, the at least one program, the code set, or the instruction set being loaded and executed by a processor to implement the method according to claim 10 .
14. A non-transitory computer-readable storage medium, storing at least one piece of instruction, at least one program, a code set, or an instruction set, the at least one piece of instruction, the at least one program, the code set, or the instruction set being loaded and executed by a processor to implement:
displaying a prop throwing control in response to a trigger operation on a prop switching control, the prop switching control being configured to trigger switching of a virtual prop used by a virtual object;
controlling a virtual object to throw a virtual throwing prop and switching from displaying the prop throwing control to displaying a prop triggering control in response to a trigger operation on the prop throwing control, wherein the prop triggering control is configured to trigger a prop effect of the virtual throwing prop in response to a trigger operation on the prop triggering control; and
after displaying the prop triggering control, switching the prop triggering control to the prop switching control if the virtual throwing prop is damaged.
15. The computer-readable storage medium according to claim 14 , wherein the triggering a prop effect of the virtual throwing prop in response to a trigger operation on the prop triggering control comprises:
triggering the prop effect of the virtual throwing prop in response to the trigger operation on the prop triggering control and when the prop triggering control meets a trigger condition, the trigger condition comprising at least one of a trigger distance condition or a trigger interference condition.
16. The computer-readable storage medium according to claim 14 , wherein the trigger condition comprises the trigger distance condition; and
the triggering the prop effect of the virtual throwing prop in response to the trigger operation on the prop triggering control and when the prop triggering control meets a trigger condition comprises:
obtaining a trigger distance between the virtual object and the virtual throwing prop in a virtual environment in response to the trigger operation on the prop triggering control; and
determining, when the trigger distance is less than a trigger distance threshold corresponding to the virtual throwing prop, that the trigger distance condition is met, and triggering the prop effect of the virtual throwing prop; and
after the obtaining a trigger distance between the virtual object and the virtual throwing prop in a virtual environment, the processor is further caused to implement:
determining, when the trigger distance is greater than the trigger distance threshold, that the trigger distance condition is not met, and displaying first prompt information, the first prompt information prompting that the trigger distance between the virtual object and the virtual throwing prop is greater than the trigger distance threshold.
17. The computer-readable storage medium according to claim 14 , wherein the trigger condition comprises the trigger interference condition;
the triggering the prop effect of the virtual throwing prop in response to the trigger operation on the prop triggering control and when the prop triggering control meets a trigger condition comprises:
determining a trigger situation of a virtual interference prop in a virtual environment in response to the trigger operation on the prop triggering control, the virtual interference prop being configured to interfere with use of a preset virtual prop, the preset virtual prop comprising the virtual throwing prop; and
determining, when the virtual environment does not comprise the virtual interference prop in a triggered state, that the trigger interference condition is met, and triggering the prop effect of the virtual throwing prop; and
after the determining a trigger situation of a virtual interference prop in a virtual environment, the processor is further caused to implement:
determining, when the virtual environment comprises the virtual interference prop in the triggered state, that the trigger interference condition is not met, and displaying second prompt information, the second prompt information for prompting that a trigger operation on the virtual throwing prop is interfered.
18. The computer-readable storage medium according to claim 17 , wherein the determining, when the virtual environment comprises the virtual interference prop in the triggered state, that the trigger interference condition is not met comprises:
determining an interference range of the virtual interference prop if the virtual environment comprises the virtual interference prop in the triggered state; and
determining, if one of the virtual object or the virtual throwing prop is located within the interference range, that the trigger interference condition is not met.
19. The computer-readable storage medium according to claim 14 , wherein:
displaying the prop throwing control comprises: displaying the prop throwing control in response to a trigger operation on a prop switching control, the prop switching control being configured to trigger switching of a virtual prop used by a virtual object; and
displaying the prop triggering control comprises: switching the prop switching control to the prop triggering control in response to the trigger operation on the prop throwing control.