Virtual prop control method and apparatus, computer-readable storage medium, and electronic device
AssigneeTencent Technology (Shenzhen) Company Limited
InventorZhihong LIU
Life of this patent
Estimating the term…
Abstract
A virtual prop control method includes: displaying a crosshair of a virtual shooting prop in a game scene of a virtual shooting game; detecting whether an aiming ray of the virtual shooting prop is in contact with adhesion boxes of other virtual operation objects in response to an input operation of the target virtual operation object, the aiming ray representing a direction aimed by the crosshair, the input operation including a target touch operation on a display screen that displays the game scene; and determining, from the non-target virtual operation objects corresponding to the contacted adhesion boxes, an adhesion target of the virtual shooting prop during shooting of the virtual shooting prop.
Claims20
A virtual prop control method, performed by an electronic device, the method comprising:
- displaying a crosshair of a target virtual operation object in a virtual shooting game;
- detecting whether an aiming ray corresponding to the crosshair is in contact with an adhesion box of at least one non-target virtual operation object in response to a user input, the aiming ray representing a direction aimed by the crosshair;
- and
- determining, when the aiming ray is in contact with adhesion boxes of a plurality of non-target virtual operation objects simultaneously, a second virtual operation object closest to the crosshair among the plurality of non-target virtual operation objects as an adhesion target of the crosshair during a movement of the crosshair.
A virtual prop control apparatus, comprising:
- a memory and one or more processors, the memory storing computer-readable instructions, the one or more processors being configured, when executing the computer-readable instructions, to:
- display a crosshair of a target virtual operation object in a virtual shooting game;
- detect whether an aiming ray corresponding to the crosshair is in contact with an adhesion box of at least one non-target virtual operation object in response to a user input, the aiming ray representing a direction aimed by the crosshair;
- and
- determine, when the aiming ray is in contact with adhesion boxes of a plurality of non-target virtual operation objects simultaneously, a second virtual operation object closest to the crosshair among the plurality of non-target virtual operation objects as an adhesion target of the crosshair during a movement of the crosshair.
One or more non-transitory computer-readable storage media, the computer-readable storage medium comprising stored computer-readable instructions, the computer-readable instructions, when run by a processor, causing the processor to perform:
- displaying a crosshair of a target virtual operation object in a virtual shooting game;
- detecting whether an aiming ray corresponding to the crosshair is in contact with an adhesion box of at least one non-target virtual operation object in response to a user input, the aiming ray representing a direction aimed by the crosshair;
- and
- determining, when the aiming ray is in contact with adhesion boxes of a plurality of non-target virtual operation objects simultaneously, a second virtual operation object closest to the crosshair among the plurality of non-target virtual operation objects as an adhesion target of the crosshair during a movement of the crosshair.
Dependencies are inferred from the claim text.