Virtual Object Control Method and Apparatus, Storage Medium, and Electronic Device
Patent Information
- Application Number
- SA522431616
- Authority / Receiving Office
- SA · SA
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-02-07
- Publication Date
- 2024-02-12
- Estimated Expiration
- 2041-10-12
Abstract
Claims
Claims 1- A method for controlling a virtual object, characterized in that, the method includes: displaying a game interface for a target virtual object and an interaction interface in a target game application, displaying a virtual action button in the interaction interface, the virtual action button being configured to control the target virtual object to perform a first virtual action, the first virtual action being initially associated with the virtual action button and being permitted to be performed by the target virtual object; when the target virtual object is within range of performing a target interactive event, displaying the first directional information in the interaction interface, the first directional information being configured to direct a touch operation to be performed on the virtual action button; controlling the target virtual object to perform a second virtual action at the target interactive event in the target game application when the first touch operation being performed on the virtual action button is detected; the second virtual action being a virtual action that the target virtual object is permitted to perform when the target virtual object is within range of performing a target interactive eventThe target virtual object in the target interactive event; the method further includes: when the target virtual object is within the range for simultaneously executing the firing of a first interactive event and within the range for executing the firing of a second interactive event, and a scroll operation performed on the virtual action button is detected, causing a first region and a second region to be displayed, respectively, in the interaction interface, the target interactive event includes the first interactive event and the second interactive event, the first region is used to trigger the target virtual object to perform a first sub-action in the first interactive event, the second region is used to trigger the target virtual object to perform a second sub-action in the second interactive event, and the second virtual action includes a first sub-section and a second sub-section; and the display of the first routing information in the interaction interface includes: displaying the direction vector information in the interaction interface, the direction vector information configured to guide the direction of a slider for the scroll operation, and the first routing information comprising the direction vector information.
2. The method according to claim 1,The target virtual object is controlled to perform a second virtual action at the target interactive event in the target game application when a first touch operation performed on the virtual action button is detected, comprising: controlling the target virtual object to perform a second virtual action at the target interactive event in the target game application when a swipe operation performed on the virtual action button is detected and the swipe operation terminates in a target region.
3. The method according to claim 2, further comprising: displaying the target region in the interaction interface when a swipe operation performed on the virtual action button is detected, or displaying the target region in the interaction interface when a long press operation on the virtual action button is detected.
4. The method according to claim 2, further comprising: when a finger is pressed on the virtual action button and the finger displacement distance is in the target directiongreater than the predetermined distance limit, determining that a swipe operation performed on the virtual action button has been detected.
5. The method according to claim 2, further comprising: when the virtual action button is detected to be pressed and the finger is swiped to the target region and then released, determining that the swipe operation ends in the target region; or when the virtual action button is detected to be dragged to overlap the target region and then released, determining that the swipe operation ends in the target region.
6. The method according to claim 1, further comprising: when the target interactive event is a zip-line ride action, controlling the target virtual object to perform a zip-line ride action in the zip-line ride action in the target game application, the second virtual action is a zip-line ride action, wherein the zip-line ride action is configured to enable the virtual objectThe target virtual object is able to jump, grab the virtual rope, and slide along the virtual zipline.
7. The method according to claim 1, characterized in that, controlling the target virtual object to perform a second virtual action at the target interactive event in the target game application, includes: when the target interactive event is a climb action, the target virtual object is controlled to perform a climb action at the climb action in the target game application, and the second virtual action is a climb action.
8. The method according to claim 1, characterized in that, controlling the target virtual object to perform a second virtual action at the target interactive event in the target game application when the first touch operation performed on the virtual action button is detected, includes: when the scroll operation performed on the virtual action button is detected and the scroll operation ends in the first region, the target virtual object is controlled to performThe first sub-action in the first interactive event in the target game application; and when the swipe operation performed on the virtual action button is detected and the swipe operation in the second region ends, the target virtual object is controlled to perform the second sub-action in the second interactive event in the target game application.
9. The method according to claim 8, characterized in that, controlling the target virtual object to perform the first sub-action in the first interactive event in the target game application includes: controlling the target virtual object to perform a zip-line ride action in the zip-line ride action in the target game application, the first interactive event being a zip-line ride action, the first sub-action being a zip-line ride action, wherein the zip-line ride action is configured to enable the target virtual object to jump, grab onto the virtual zip-line, and slide along the virtual zip-line; and controlling the target virtual object to perform the second sub-action in the interactive eventThe second in the target game application is as follows: controlling the target virtual object to perform a climbing action at the climb event in the target game application, the second interactive event is a climb event, and the second subsection is a climb event.
10. The method according to claim 1, characterized in that, after controlling the target virtual object to perform a second virtual action at the target interactive event in the target game application, the method further comprises: controlling the target virtual object to terminate the target interactive event in the target game application upon detecting a second touch operation performed on the virtual action button.
11. The method according to claim 10, characterized in that, controlling the target virtual object to terminate the target interactive event in the target game application includes: controlling, when the target interactive event is a zip-line ride event, the target virtual object jumping off a virtual zip-line in the target game application; or controlling, when the target interactive event is aTo climb, the target virtual object jumps from a climbing area in the target game application.
12. A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a program, and the program, when executed by a peripheral device or computer, executes the method according to any of protections 1 to 11.
13. An electronic device, comprising a memory and a processor, characterized in that, the memory stores a computer program, and the processor are configured to execute the method according to any of protections 1 to 11 by computer programs.
