Virtual object control method and apparatus, computer device, and storage medium
Patent Information
- Application Number
- PCT/CN2026/074913
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-20
- Filing Date
- 2026-01-26
- Publication Date
- 2026-08-27
Smart Images

Figure CN2026074913_27082026_PF_FP_ABST
Abstract
Description
Methods, devices, computer equipment, and storage media for controlling virtual objects
[0001] This application claims priority to Chinese Patent Application No. 202510192060.6, filed on February 20, 2025, entitled “Control Method, Apparatus, Computer Equipment and Storage Medium for Virtual Objects”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of computer technology, and in particular to a method, apparatus, computer device, and storage medium for controlling virtual objects. Background Technology
[0003] The variety of video games is constantly increasing, including genres such as shooting games and role-playing games. Video games allow players to control virtual objects within a virtual environment, such as controlling virtual objects to unleash their skills. Currently, controlling a virtual object to unleash a skill requires selecting a target object from the virtual environment, and then controlling the virtual object to unleash the skill on that target. Summary of the Invention
[0004] This application provides a method, apparatus, computer device, and storage medium for controlling virtual objects. The technical solution is as follows:
[0005] On the one hand, a method for controlling a virtual object is provided, executed by a computer device, the method comprising:
[0006] In response to a pre-release operation of a skill on a first virtual object, a position aiming device is displayed, the position aiming device being used to aim at the release position of the skill in the virtual scene;
[0007] In response to a confirmation operation of the position that the position aiming device has been aimed at, a first direction indicator is displayed, the first direction indicator indicating the target release direction of the skill, the target release direction being the recommended release direction;
[0008] In response to the confirmation release operation of the skill, the first virtual object is controlled to release the skill along the target release direction at the position already aimed by the position aiming device.
[0009] On the other hand, a control device for a virtual object is provided, the device comprising:
[0010] The display module is used to display a position aiming device in response to a pre-release operation of a skill on a first virtual object, the position aiming device being used to aim at the release position of the skill in the virtual scene;
[0011] The display module is further configured to display a first direction indicator in response to a confirmation operation of the position that the position aiming device has aimed at, the first direction indicator indicating the target release direction of the skill, the target release direction being a recommended release direction;
[0012] The display module is also configured to, in response to a confirmation release operation of the skill, control the first virtual object to release the skill along the target release direction at the position already aimed by the position aiming device.
[0013] On the other hand, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to perform the operations performed by the virtual object control method as described above.
[0014] On the other hand, a computer-readable storage medium is provided that stores at least one computer program, which is loaded and executed by a processor to implement the operations performed by the virtual object control method as described above.
[0015] In another aspect, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the operations performed by the virtual object control method as described above.
[0016] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can first be aimed at using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. This ensures that when the skill release confirmation operation is triggered, the first virtual object is controlled to release the skill along the recommended target release direction at the position aiming device. Therefore, after determining the skill release starting point, this application embodiment can intelligently recommend the skill release direction, eliminating the need for the user to manually select which virtual object to release the skill from the virtual objects displayed in the virtual scene, nor requiring the user to manually select the skill release direction. This enriches the ways to release skills, reduces the operational difficulty of releasing skills, and improves the efficiency of releasing skills, thereby enhancing human-computer interaction efficiency. Furthermore, by intelligently recommending the skill release direction, the probability of the skill hitting the virtual object can be increased, ensuring the skill release effect and thus improving the user experience. Attached Figure Description
[0017] Figure 1 is a structural block diagram of a computer system provided in an embodiment of this application;
[0018] Figure 2 is a flowchart of a virtual object control method provided in an embodiment of this application;
[0019] Figure 3 is a flowchart of another virtual object control method provided in an embodiment of this application;
[0020] Figure 4 is a flowchart of another virtual object control method provided in an embodiment of this application;
[0021] Figure 5 is a flowchart of another virtual object control method provided in an embodiment of this application;
[0022] Figure 6 is a flowchart of another virtual object control method provided in an embodiment of this application;
[0023] Figure 7 is a flowchart of another virtual object control method provided in an embodiment of this application;
[0024] Figure 8 is a flowchart of another virtual object control method provided in an embodiment of this application;
[0025] Figure 9 is a flowchart of another virtual object control method provided in an embodiment of this application;
[0026] Figure 10 is a flowchart of another virtual object control method provided in an embodiment of this application;
[0027] Figure 11 is a schematic diagram of a virtual scene provided in an embodiment of this application;
[0028] Figure 12 is a schematic diagram of another virtual scene provided in an embodiment of this application;
[0029] Figure 13 is a schematic diagram of another virtual scene provided in an embodiment of this application;
[0030] Figure 14 is a schematic diagram of the skill options provided in an embodiment of this application;
[0031] Figure 15 is a schematic diagram of another virtual scene provided in an embodiment of this application;
[0032] Figure 16 is a schematic diagram of another virtual scene provided in an embodiment of this application;
[0033] Figure 17 is a schematic diagram of another virtual scene provided in an embodiment of this application;
[0034] Figure 18 is a schematic diagram of another virtual scene provided in an embodiment of this application;
[0035] Figure 19 is a flowchart of a virtual object control method also provided in an embodiment of this application;
[0036] Figure 20 is a schematic diagram of the structure of a virtual object control device provided in an embodiment of this application;
[0037] Figure 21 is a schematic diagram of the structure of a terminal provided in an embodiment of this application;
[0038] Figure 22 is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0040] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the information involved in this application, the data used to render virtual scenes, and events were all obtained with full authorization.
[0041] First, a brief introduction to the terms used in the embodiments of this application:
[0042] World game: refers to a game that allows users to explore within a game world; the map area of a world game is often quite large. In this application, the map in the world game is the world map.
[0043] RPG (Role-Playing Game): A game where users assume the role of a specific character, complete quests, interact with other characters, or explore a game world. In RPGs, users control virtual characters, moving within a virtual environment. Furthermore, users can choose different character types to role-play, explore new locations, solve puzzles, form new groups, or participate in the story. By completing game quests, exploring virtual environments, and developing the skills and attributes of their virtual characters, users advance the game's story. These games typically feature complex plots and world-building, and users can freely choose the behavior and development path of their virtual characters.
[0044] MOBA (Multiplayer Online Battle Arena) games are a type of game where multiple player-controlled virtual objects compete in a virtual arena, aiming to capture or destroy enemy arenas. For example, a MOBA game might divide players into at least two opposing factions, with each team occupying their own map area and competing against each other with a specific victory condition. This victory condition may include, but is not limited to, capturing or destroying enemy arenas, eliminating enemy virtual objects, surviving within a specified time and scenario, acquiring a resource, or achieving a higher score than the opponent within a specified time. For instance, a MOBA game could divide players into two opposing factions, distributing their virtual objects across a virtual arena to compete, with the goal of destroying or capturing all of the enemy's arenas.
[0045] MMORPGs (Multiplayer Online Role-Playing Games) support a large number of players simultaneously playing in a virtual game world. Players assume specific roles and improve their characters' abilities, levels, and equipment by completing quests, engaging in combat, and exploring. They can also explore virtual environments together through multiplayer online collaboration. In MMORPGs, multiple players can participate in the same game within the same virtual environment through matchmaking. During the game, different players can control virtual objects to attack each other and compete for game resources, or they can cooperate to win game resources. In this embodiment, each virtual object corresponds to its own virtual environment, and different virtual environments are two parallel virtual worlds, with game progress in different virtual environments being independent of each other. For example, in a level-based RPG, after completing a game, a player can choose to restart the game, create a new virtual object, and review the game's story in a new virtual environment.
[0046] Taking shooting games as an example, these games can display virtual scenes from either a first-person or third-person perspective. Shooting games displaying virtual scenes from a first-person perspective are also called FPS (First-Person Shooter). The first-person perspective is the viewpoint observed through a virtual camera positioned on the chest of the virtual object; or, the first-person perspective is the viewpoint observed through a virtual camera positioned on the head of the virtual object; or, the first-person perspective is the viewpoint observed through a virtual camera positioned on the neck of the virtual object. In the virtual environment viewpoint corresponding to the first-person perspective, the head or torso of the virtual object's 3D model cannot be seen, but the arms or feet of the virtual object may be visible. The third-person perspective is the viewpoint observed through a virtual camera positioned behind or behind the virtual object's head. Optionally, the third-person perspective is the viewpoint observed through a virtual camera positioned behind or behind the virtual object. In the virtual environment displayed from a third-person perspective, the head or torso of a virtual object's 3D model can be seen. When a shooting game is running on the terminal, a virtual scene is displayed, in which virtual objects can control virtual items to perform remote attacks.
[0047] Virtual scene: A virtual scene is a scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional environment, or a purely fictional environment. The virtual world can be any of a two-dimensional virtual world, a 2.5-dimensional virtual world, or a three-dimensional virtual world; this application does not limit it. The following embodiments use a three-dimensional virtual world as an example.
[0048] Virtual objects refer to the movable objects that users interact with in a virtual world. Virtual objects can be virtual characters, virtual animals, anime characters, etc., such as people and animals displayed in a 3D virtual world. Optionally, virtual objects are 3D models created based on animation skeletal technology. Each virtual object has its own shape and volume in the 3D virtual world, occupying a portion of the space within that world.
[0049] Figure 1 is a structural block diagram of a computer system provided in an embodiment of this application. Referring to Figure 1, the computer system includes a first terminal 101, a server 102, and a second terminal 103.
[0050] The first terminal 101 has an application 111 installed and running that supports virtual scenes. Optionally, the application 111 can be any one of a 3D map program, a virtual reality (VR) application, an augmented reality (AR) application, an open-world game program, an RPG (role-playing game) program, a turn-based game program, or a turn-based RPG program. The first terminal 101 is a terminal used by a first user, who uses the first terminal 101 to control a first virtual object located in the virtual scene to perform activities, including but not limited to: adjusting body posture, walking, running, jumping, riding, driving, aiming, picking up, fighting, using throwable items, and attacking other virtual objects. For example, the first virtual object is a virtual character, such as a simulated character or an anime character. For example, the first user controls the first virtual object to perform activities through UI controls on the virtual scene screen.
[0051] The second terminal 103 has an application 131 installed and running that supports virtual scenes. The second terminal 103 is used by a second user who uses it to control a second virtual object located in the virtual scene. Optionally, the first virtual object and the second virtual object are in the same virtual scene. The first virtual object and the second virtual object belong to different factions, or they belong to the same faction.
[0052] The first terminal 101 is connected to the server 102 via a wireless or wired network, and the second terminal 103 is also connected to the server 102 via a wireless or wired network. The server 102 provides background services for applications supporting 3D virtual scenes. The server 102 includes at least one of a single server, multiple servers, or a virtualization center. For example, the server 102 includes a processor and a memory. The memory further includes a receiving module, a control module, and a sending module. The receiving module receives requests sent by clients, such as skill release requests or information acquisition requests. The control module controls the rendering of the virtual scene. The sending module sends responses to clients, such as sending information to clients. Optionally, the server 102 undertakes the main computational work, and the first terminal 101 and the second terminal 103 undertake secondary computational work; or, the server 102 undertakes secondary computational work, and the first terminal 101 and the second terminal 103 undertake the main computational work; or, the server 102, the first terminal 101, and the second terminal 103 collaborate using a distributed computing architecture.
[0053] Optionally, the applications installed on the first terminal 101 and the second terminal 103 are the same, or the applications installed on the three terminals are the same type of application on different operating system platforms. The first terminal 101 can refer to one of multiple terminals, and the second terminal 103 can refer to one of multiple terminals. This application embodiment only uses the first terminal 101 and the second terminal 103 as examples. The device types of the first terminal 101 and the second terminal 103 may be the same or different, and these device types include at least one of: smartphones, smartwatches, smart TVs, tablets, wearable devices, in-vehicle terminals, MP3 players, MP4 players, laptops, and desktop computers. The following embodiments use smartphones as examples.
[0054] Furthermore, during the process of the first terminal 101 controlling the first virtual object to release a skill through the application 111, the screens displayed by the first terminal 101 through the application 111 are shown in (1)-(3) of Figure 1. The first terminal 101 responds to the pre-release operation of the skill of the first virtual object and displays screen (1) through the application 111. In screen (1), the first virtual object 112 and the position aiming device 113 are displayed. The first terminal 101 responds to the confirmation operation of the position aimed by the position aiming device and displays screen (2) through the application 111. In screen (2), the first direction mark 114 is displayed, with the first direction mark 114 starting from the position aimed by the position aiming device 113. The first terminal 101 responds to the confirmation release operation of the skill and displays screen (3) through the application 111. In screen (3), the skill effect 115 of the first virtual object 112 releasing the skill along the recommended release direction at the position aimed by the position aiming device 113 is displayed.
[0055] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. This application does not limit the number of terminals or the type of device.
[0056] Figure 2 is a flowchart of a virtual object control method provided in an embodiment of this application. Taking the method being executed by a terminal as an example, as shown in Figure 2, the method includes:
[0057] 201. In response to the pre-release operation of the skill on the first virtual object, the terminal displays a position aiming device, which is used to aim at the release position of the skill in the virtual scene.
[0058] In this embodiment, a first virtual object in the virtual scene possesses skills, which the user can control via a terminal to release. When a pre-release operation for a skill is triggered, a position aiming device is displayed to aim at the skill's release location in the virtual scene. After confirming the position aimed at, a first direction indicator is displayed, indicating the target release direction. This allows the user to control the first virtual object to release the skill along the target release direction at the confirmed release location, thereby enriching the ways to release skills and reducing the operational difficulty of releasing skills.
[0059] The skill release location refers to the starting position of the skill release, and the skill release range depends on the starting position and the direction of the skill release.
[0060] The skill can be of any type, such as an attack skill, a defense skill, or a support skill. For example, a skill might reduce the target's health, increase the target's defense, or increase the target's health. The pre-release operation indicates that the skill is about to be released by the first virtual object; the pre-release operation can be of any type, such as a click or a press. The position aiming device can be represented in any form, such as a circular or square circle.
[0061] In this embodiment of the application, when a position aiming device is displayed in a virtual scene, the position aiming device will aim at any position in the virtual scene. The position aimed at by the position aiming device can be used as the starting position for the subsequent first virtual to release the skill. That is, the subsequent first virtual object releases the skill in a certain direction at the position aimed at by the position aiming device.
[0062] 202. In response to the confirmation operation of the position aiming device, the terminal displays a first direction indicator, which indicates the target release direction of the skill. The target release direction is the recommended release direction.
[0063] In this embodiment of the application, when the position aiming device is displayed, the position aiming device can aim at any position in the virtual scene. The confirmation operation of the position aiming device is equivalent to confirming that the position aiming device is used as the starting position for releasing the skill. Then, the release direction of the skill is recommended by displaying the first direction indicator. The direction indicated by the first direction indicator is the target release direction, which is also the recommended release direction. The user does not need to manually select the release direction of the skill.
[0064] The confirmation operation can be any type of operation, such as a click or a press. For example, the completion of a press operation is equivalent to triggering a confirmation operation. The target release direction indicates the direction in which the first virtual object can release the skill, or the direction in which the skill can affect other virtual objects when released. The first direction identifier can be represented in any form, such as an arrow.
[0065] In this embodiment of the application, when the position that the position aiming device has been determined as the starting position for releasing a skill, the position that the position aiming device has been determined is equivalent to the starting position for releasing a skill when the first virtual object releases a skill in the virtual scene. Then, when the first virtual object releases a skill in a certain direction at that position, the position that the position aiming device has been determined is the starting position in the virtual scene where the skill effect will be generated, and other positions pointed to in that direction from the starting position will also generate skill effects.
[0066] 203. In response to the confirmation and release operation of the skill, the terminal controls the first virtual object to release the skill along the target release direction at the position already aimed by the position aimer.
[0067] In this embodiment, the confirmation release operation of the skill is equivalent to confirming the release of the skill along the target release direction at the position already aimed by the position aimer. This controls the first virtual object to release the skill along the target release direction at the position already aimed by the position aimer, eliminating the need to select which virtual object to release the skill to from the virtual objects displayed in the virtual scene, thus improving the convenience of releasing the skill.
[0068] For example, the position aiming device is aimed at position 1, the target release direction is to the right, and the skill is used to release flames at the specified release position. In response to the confirmation release operation of the skill, the first virtual object is controlled to remain in the current position and release the skill at position 1 along the target release direction, so that flames will be displayed at position 1 and other positions to the right of position 1 in the virtual scene.
[0069] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can first be aimed at using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. This ensures that when the skill release confirmation operation is triggered, the first virtual object is controlled to release the skill along the recommended target release direction at the position aiming device. Therefore, after determining the skill release starting point, this application embodiment can intelligently recommend the skill release direction, eliminating the need for the user to manually select which virtual object to release the skill from the virtual objects displayed in the virtual scene, nor requiring the user to manually select the skill release direction. This enriches the ways to release skills, reduces the operational difficulty of releasing skills, and improves the efficiency of releasing skills, thereby enhancing human-computer interaction efficiency. Furthermore, by intelligently recommending the skill release direction, the probability of the skill hitting the virtual object can be increased, ensuring the skill release effect and thus improving the user experience.
[0070] Based on the embodiment shown in Figure 2, this application embodiment releases the skill by performing the same press operation on the skill option. The specific process is detailed in the following embodiments. Figure 3 is a flowchart of a virtual object control method provided by this application embodiment. Taking the method executed by a terminal as an example, as shown in Figure 3, the method includes:
[0071] 301. The terminal displays the skill options of the first virtual object in the virtual scene.
[0072] In this embodiment, a first virtual object is displayed in a virtual scene, and the virtual scene displays skill options for the first virtual object's skills. These skill options are used to control the first virtual object to release the skill.
[0073] The skill options can be of any type, such as buttons or virtual joysticks.
[0074] In one possible implementation, the skill options in the virtual scene are in a ready state.
[0075] In this embodiment, the ready state means that the skill is ready and not in a cooldown state; that is, the skill option can be triggered to cause the first virtual object to release the skill. When the skill option is in the ready state, the user can trigger the skill option through the terminal to control the first virtual object to release the skill.
[0076] The ready state can be represented in any form. For example, in a virtual scene, highlighting the skill option indicates that the skill option is in a ready state.
[0077] In one possible implementation, the terminal displays the virtual scene from the first-person perspective of the first virtual object, and displays the skill options for the skill in the virtual scene; or, the terminal displays the virtual scene from the third-person perspective, and displays the first virtual object and the skill options corresponding to the skill in the virtual scene.
[0078] In this embodiment, when the virtual scene is displayed from the first-person perspective of the first virtual object, the first virtual object may not be displayed in the virtual scene, or only a portion of the first virtual object may be displayed. When the virtual scene is displayed from the third-person perspective of the first virtual object, the first virtual object may be displayed in the virtual scene.
[0079] 302. In response to the first press operation of the skill option, the terminal displays a position aiming device. The position aiming device changes with the press position of the first press operation. The position aiming device is used to aim at the release position of the skill in the virtual scene.
[0080] In this embodiment, the first press operation on the skill option is equivalent to a pre-release operation of the skill. By pressing the skill option, the user triggers the pre-release operation, and the terminal displays a position aiming device in the virtual scene. Moving the pressing position of the first press operation while holding down the skill option will cause the position of the position aiming device in the virtual scene to move accordingly. The displayed position of the position aiming device is the position that the position aiming device is targeting. In other words, the position aimed at by the position aiming device moves with the pressing position. Thus, by pressing and moving the skill option, the user can freely choose the starting position for releasing the skill, improving the convenience of selecting the release position.
[0081] For example, if the terminal displays skill options for a first virtual object, and the user presses the skill option displayed on the terminal with their finger, a position aiming device will be displayed on the terminal. If the user starts to move their finger on the terminal while keeping the skill option pressed, the position aiming device will be displayed moving in the virtual scene, and the movement of the position aiming device in the virtual scene will be synchronized with the movement of the finger's pressing position on the terminal screen.
[0082] The first press operation on the skill option is the pre-release operation of the skill for the first virtual object.
[0083] In one possible implementation, if a first virtual object is displayed in the virtual scene, then step 301 includes: in response to a first press operation on a skill option, displaying a position aiming device at a preset location in the virtual scene.
[0084] The preset position is a position that has a preset relative positional relationship with the first virtual object. This preset relative positional relationship can be any relative positional relationship. For example, the preset position is 2 meters directly in front of the first virtual object, or 1 meter to the right front of the first virtual object, etc.
[0085] In one possible implementation, step 301 includes: in response to a first press operation on the skill option, displaying a position aiming device and displaying an active area centered on the display position of the skill option.
[0086] The active area represents the region where the press position of the first press operation can move; that is, while maintaining the press skill option, the press position can move within the active area. The active area can be represented in any form, such as a circular area or a square area.
[0087] In this embodiment, when a skill option is pressed, the terminal not only displays a position aiming device in the virtual scene, but also displays an active area centered on the display position of the skill option. This allows the user to know the range of movement of the pressing operation, enabling the user to move within the active area while keeping the skill option pressed, thereby adjusting the position of the position aiming device in the virtual scene. This enriches the displayed content, facilitates user operation, and improves the user experience.
[0088] Optionally, during the movement of the pressing position of the first pressing operation within the active area, the distance between the pressing position and the display position of the skill option is mapped to the virtual scene to obtain the mapped distance. In the virtual scene, the display position aiming device is aimed at the fourth position. The distance between the fourth position and the default display position is the mapped distance and is located in the first direction. The first direction is the direction from the display position of the skill option to the pressing position.
[0089] The default display position is the initial position where the aiming reticle is displayed when the skill option is pressed. For example, the default display position is the same as the preset position mentioned above.
[0090] In this embodiment of the application, considering that the active area is small, the pressing position of the first pressing operation is mapped to the virtual scene to facilitate the adjustment of the position aiming device in the virtual scene, and the adjustable range of the position aiming device in the virtual scene is larger.
[0091] Optionally, there is a mapping relationship between the active area and the skill release range in the virtual scene, and each position within the skill release range has a mapped position in the active area. The terminal then maps the press position in the active area to the skill release range in the virtual scene to obtain the mapped position, and uses this mapped position as the position described by the display aiming device.
[0092] The skill release range is a circular area centered on the location of the first virtual object. It represents the range of possible release locations for the first virtual object when releasing a skill. The position aiming device can move within the skill release range to aim at specific locations within that range.
[0093] In this embodiment of the application, during the movement of the pressing position of the first pressing operation within the activation area, the pressing position can be mapped to the skill release range in the manner described above, so as to control the position aiming device to move within the skill release range.
[0094] Optionally, in response to a press operation on a skill option, the terminal displays the skill release range in the virtual scene. This press operation includes the first press operation described above.
[0095] In this embodiment of the application, when the skill option is pressed, the skill release range centered on the location of the first virtual object will be displayed in the virtual scene for the user to view, which facilitates the user to select the skill release location.
[0096] 303. When the duration of the first press operation reaches a first threshold, the terminal displays a first direction indicator, which indicates the target release direction of the skill. The target release direction is the recommended release direction.
[0097] In this embodiment of the application, when the pressing duration of the first pressing operation reaches the first threshold, it is equivalent to a confirmation operation of the position currently aimed at by the position aiming device. That is, if the position currently aimed at by the position aiming device is confirmed as the release position of the skill, a first direction indicator will be displayed to indicate the target release direction of the skill.
[0098] Among them, when the pressing duration of the first pressing operation reaches the first threshold, it is a confirmation operation of the position that the position aiming device has aimed at.
[0099] The first threshold can be any value, such as 2 seconds or 3 seconds. The press duration of the first press operation is used to indicate the duration of the first press operation.
[0100] In this embodiment, by pressing the skill option, a position aiming device is displayed in the virtual scene. While keeping the skill option pressed, the pressing position is moved. During the movement of the pressing position, the position aimed at by the position aiming device changes with the pressing position of the first pressing operation. If the pressing duration of the first pressing operation reaches a first threshold, the currently aimed position is confirmed as the skill release position, and a first direction indicator is displayed to indicate the target release direction of the skill. In this way, the skill release position can be freely selected by pressing, and the currently aimed position can be confirmed as the skill release position without triggering too many operations, ensuring the convenience of determining the release position and thus improving the efficiency of human-computer interaction.
[0101] In one possible implementation, the first direction marker is based on a first position, which is the position that the position aiming device is targeting when the pressing duration reaches a first threshold.
[0102] For example, the first direction is identified by an arrow, the starting point of the arrow is the first position, and the arrow points to the target release direction.
[0103] In this embodiment of the application, the first direction indicator displayed in the virtual scene points from the first position to other positions so as to present the starting point and direction of the release of the skill by the first virtual object. This allows the user to grasp the release range of the skill based on the first direction indicator, ensuring the display effect of the first direction indicator and thus improving the user experience.
[0104] In one possible implementation, step 303 includes: displaying a first direction indicator in response to the first pressing operation pressing the same position for a duration reaching a first threshold.
[0105] Among them, the first pressing operation, when the pressing time of the same position reaches the first threshold, is a confirmation operation of the position that the position aiming device has aimed at.
[0106] In this embodiment, the pressing position of the first pressing operation is movable, and the position aimed at by the position aiming device changes with the pressing position of the first pressing operation. When the duration of holding the first pressing operation at any position reaches a first threshold, it is equivalent to a confirmation operation of the position currently aimed at by the position aiming device, and a first direction indicator is displayed. In this way, during the process of adjusting the position aimed at by the position aiming device, the current aiming position is confirmed by keeping the first pressing operation stationary, which facilitates user operation and improves the efficiency of human-computer interaction.
[0107] The pressing duration is the duration during which the first pressing operation holds the pressure at any position, that is, the duration during which the first pressing operation holds the pressure at any position without moving.
[0108] In one possible implementation, the target release direction is from the position already aimed by the position aimer to the target virtual object. The target virtual object is any one of the following: the virtual object closest to the first virtual object, the virtual object with the lowest health within the skill's release range, the virtual object attacking the first virtual object, or the virtual object with the greatest influence value. The influence value indicates the change in the virtual object's attribute value when the skill is applied to the virtual object.
[0109] The target virtual object is the recommended virtual object for casting skills on the first virtual object; that is, it is an intelligent recommendation to cast skills on the target virtual object. The target virtual object and the first virtual object belong to different factions, or they belong to the same faction.
[0110] The impact value corresponds to the attribute value of the virtual object and is used to indicate the change in the attribute value. This attribute value can be of any type, such as health points, defense points, etc. For example, if a skill is used to reduce the health points of a virtual object, the impact value caused by the skill acting on the virtual object is the reduction in the virtual object's health points when the skill is cast on it.
[0111] Optionally, the virtual scene includes multiple second virtual objects. A second virtual object refers to any virtual object in the virtual scene other than the first virtual object, or a second virtual object refers to a virtual object in the virtual scene belonging to a different faction than the first virtual object. The target virtual object is the second virtual object closest to the first virtual object among the multiple second virtual objects; or, the target virtual object is the second virtual object with the lowest health within the skill's range among the multiple second virtual objects; or, the target virtual object is the second virtual object with the greatest influence value among the multiple second virtual objects.
[0112] In this embodiment, the target release direction is from the position already aimed by the position aiming device to the target virtual object. This is equivalent to intelligently recommending the release direction to release the skill to the target virtual object. This ensures that when the skill is released along the target release direction, the skill will hit the target virtual object. On the one hand, the user does not need to manually select which virtual object to release the skill to, and on the other hand, it avoids the situation of skill being released without effect, ensuring that the skill will have an effect when released later, thus improving the user experience.
[0113] It should be noted that the embodiments of this application are illustrated by taking the confirmation of the position aiming device having been aimed at a position through the first pressing operation as an example. In another embodiment, it is not necessary to perform the above steps 302-303. Instead, other methods are adopted, such as displaying the position aiming device in response to the pre-release operation of the skill of the first virtual object; and displaying the first direction indicator in response to the confirmation operation of the position aiming device having been aimed at a position.
[0114] 304. Upon the end of the first press operation, the terminal controls the first virtual object to release the skill along the target release direction at the first position. The first position is the position aimed at by the position aiming device when the press duration reaches the first threshold.
[0115] In this embodiment, the end of the first press operation is equivalent to triggering the confirmation release operation of the skill. By pressing the skill option, the position aiming device can be controlled to select the release position of the skill. When the first direction indicator for indicating the target release direction is displayed, the first press operation ends, thereby controlling the first virtual object to release the skill at the selected release position along the target release direction. In this way, the release position, release direction and skill can be confirmed with one click by pressing the skill option, without requiring the user to perform too many operations, reducing the difficulty of operation and improving the efficiency of human-computer interaction.
[0116] The first press operation is the confirmation and release operation of the skill.
[0117] The first position refers to any location in the virtual scene. Ending the first press operation means no longer pressing the skill option.
[0118] For example, a user presses a skill option displayed on the terminal screen with their finger, and while holding the press, moves their finger across the screen to control the position aiming device's movement within a virtual scene. If the duration of the first press operation reaches a first threshold, a first direction indicator is displayed. At this point, if the user lifts their finger, the terminal controls a first virtual object to release the skill at the first position along the target release direction. Here, pressing the skill option displayed on the terminal screen is equivalent to the first press operation, which is a pre-release operation of the skill for the first virtual object; the duration of pressing the skill option reaching the first threshold is equivalent to the duration of the first press operation reaching the first threshold, which is a confirmation operation of the position aiming device's target position; when the user lifts their finger, the terminal detects that the finger is no longer pressing the screen, which is equivalent to detecting the end of the first press operation, which is a confirmation release operation of the skill.
[0119] In one possible implementation, step 304 includes: in response to the end of the first press operation, if the distance between the first press position and the second press position is not greater than a second threshold, controlling the first virtual object to release the skill along the target release direction at the first position, wherein the first press position is the press position when the press duration reaches the first threshold, and the second press position is the press position when the first press operation ends.
[0120] In this embodiment, after confirming the position aimed at by the position aiming device, the first pressing operation is still maintained. Considering that the pressing position may change before the first pressing operation ends, if the distance between the pressing position at the end of the first pressing operation and the pressing position when the pressing duration of the first pressing operation reaches the first threshold is not greater than the second threshold, it means that the user expects the first virtual object to release the skill along the target release direction. Then, the first virtual object is controlled to release the skill along the target release direction at the first position. In this way, considering that there may be slight movement during the user's pressing operation, as long as the movement distance of the pressing position is not large, it can be considered that the target release direction is selected to release the skill, compared with the pressing position after the position aimed at by the position aiming device is confirmed, the movement distance of the pressing position is not large. This avoids the situation where the movement range of the pressing position is too strict, which leads to difficulty in releasing the skill, reduces the difficulty of operation, ensures the success rate of skill release, and improves the efficiency of human-computer interaction.
[0121] The range centered on the first press position and with the second threshold as the radius is called the first activity range. The first activity range is equivalent to the range of motion of the press position after the position is confirmed by the position aiming device. When the press position is within the first activity range at the end of the first press operation, it means that the target release direction is selected to release the skill.
[0122] Optionally, the process of controlling the first virtual object to release a skill includes: in response to the pressing duration of the first pressing operation reaching a first threshold, displaying a first direction indicator and a direction confirmation area centered on the first pressing position; in response to the end of the pressing operation, if the pressing position of the first pressing operation is located in the direction confirmation area, controlling the first virtual object to release the skill along the target release direction at the first position.
[0123] The direction confirmation area is used to determine the target release direction as the skill release direction. The distance between any position in the direction confirmation area and the first press position is no greater than a second threshold. The direction confirmation area is equivalent to the aforementioned first activity range. The direction confirmation area can be represented in any form; for example, it can be a circular area.
[0124] It should be noted that the embodiments of this application are described using the example of the completion of the first pressing operation being equivalent to the confirmation and release operation of the skill. In another embodiment, it is not necessary to execute the above step 304. Instead, other methods are adopted to control the first virtual object to release the skill along the target release direction at the position already aimed by the position aimer in response to the confirmation and release operation of the skill.
[0125] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can first be aimed at using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. This ensures that when the skill release confirmation operation is triggered, the first virtual object is controlled to release the skill along the recommended target release direction at the position aiming device. Therefore, after determining the skill release starting point, this application embodiment can intelligently recommend the skill release direction, eliminating the need for the user to manually select which virtual object to release the skill from the virtual objects displayed in the virtual scene, nor requiring the user to manually select the skill release direction. This enriches the ways to release skills, reduces the operational difficulty of releasing skills, and improves the efficiency of releasing skills, thereby enhancing human-computer interaction efficiency. Furthermore, by intelligently recommending the skill release direction, the probability of the skill hitting the virtual object can be increased, ensuring the skill release effect and thus improving the user experience.
[0126] Based on the embodiment shown in Figure 2, this application embodiment releases skills through pressing skill options and other triggering operations. The specific process is detailed in the following embodiments. Figure 4 is a flowchart of a virtual object control method provided by this application embodiment. Taking the method executed by a terminal as an example, as shown in Figure 4, the method includes:
[0127] 401. The terminal displays the skill options of the first virtual object in the virtual scene.
[0128] 402. In response to the first press operation of the skill option, the terminal displays a position aiming device. The position aiming device changes with the press position of the first press operation. The position aiming device is used to aim at the release position of the skill in the virtual scene.
[0129] It should be noted that steps 401-402 are the same as steps 301-302 above, and will not be repeated here.
[0130] 403. Upon completion of the first press operation, the terminal displays a first direction indicator, which indicates the target release direction of the skill. The target release direction is the recommended release direction.
[0131] In this embodiment, the end of the first press operation is equivalent to triggering a confirmation operation of the position already aimed at by the position aiming device. By pressing the skill option, the position aimed at by the position aiming device in the virtual scene can be adjusted. The end of the first press operation confirms the position already aimed at by the position aiming device. In this way, by pressing the skill option, the release position of the skill can be selected and a first directional indicator used to indicate the target release direction is displayed. This reduces the need for the user to perform too many operations, lowers the difficulty of operation, and improves the efficiency of human-computer interaction.
[0132] The first press operation is the confirmation operation for the position that the position aiming device has been aimed at.
[0133] It should be noted that the process of displaying the first direction indicator is the same as step 303 above, and will not be repeated here.
[0134] It should be noted that the embodiments of this application are illustrated by taking the selection of the skill release position through the first press operation as an example. In another embodiment, it is not necessary to perform the above steps 402-403. Instead, other methods are adopted. In response to the pre-release operation of the skill on the first virtual object, a position aiming device is displayed; in response to the confirmation operation of the position aiming device being aimed at the position, a first direction indicator is displayed.
[0135] 404. In response to the triggering operation of the skill option, the terminal controls the first virtual object to release the skill along the target release direction at the second position, where the second position is the position aimed at by the position aiming device at the end of the first press operation.
[0136] In this embodiment, if the position aiming device has been confirmed to be aimed at the second position and the first direction indicator is displayed after the first press operation of the skill option, triggering the skill option again is equivalent to triggering the confirmation release operation of the skill. Then, the first virtual object is controlled to release the skill at the second position along the target release direction. In this way, the process of selecting the release position and release direction can be separated from the process of confirming the release of the skill. When the release position has been confirmed and the target release direction is displayed, it is not necessary to keep pressing the skill option. This allows the user to choose any time to trigger the skill option to control the first virtual object to release the skill. Afterwards, only a simple trigger operation is needed to control the first virtual object to complete the skill release. This can meet various user needs, reduce the difficulty of operation, improve the efficiency of human-computer interaction, and thus improve the user experience.
[0137] The triggering action for a skill option is the confirmation and release action for the skill. The triggering action for a skill option can be of any type, such as clicking, swiping, or pressing.
[0138] In one possible implementation, the process of controlling the first virtual object to release a skill includes: displaying a skill option to enter an active state in response to the end of a first press operation; and, while the skill option is active, controlling the first virtual object to release the skill at a second position along the target release direction in response to a trigger operation on the skill option.
[0139] In this embodiment, the end of the first press operation is equivalent to triggering a confirmation operation of the position already aimed at by the position aiming device. Once the position already aimed at by the position aiming device is confirmed, the skill option is displayed as active. When the skill option is active, triggering the skill option will control the first virtual object to release the skill at the confirmed release position along the recommended target release direction. In this way, the activation of the skill option serves as a reminder, allowing the user to know that the skill option can be triggered to release the skill simply by checking that the skill option is active. This reminds the user to release the skill according to the confirmed release position and target release direction by triggering the skill option, thus improving the user experience.
[0140] The activation state can be represented in any form. For example, when a skill option enters the activation state, the activated option can be highlighted, enlarged, or flashing.
[0141] Optionally, the status of a skill option can be either cooldown, ready, or active.
[0142] The "cooldown" state refers to the first virtual object's skill being on cooldown; the skill option cannot be triggered at this time, meaning the virtual object cannot release the skill while the skill option is on cooldown. The "ready" state means the first virtual object's skill has completed its cooldown, and the skill option can be triggered. The ready state is essentially the state after the cooldown period ends. When the skill option is in the ready state, it can be triggered to select the skill's release location and display the release direction, but the release location and direction are not yet confirmed. The "active" state means the skill's release location and direction have been confirmed.
[0143] For example, when the skill option is in the ready state, steps 402-403 above can be executed, and in response to the end of the first press operation, the skill option changes from the ready state to the active state; step 404 above can be executed, and then the skill option changes from the active state to the cooldown state, and after the cooldown state of the skill option ends, it changes back to the ready state.
[0144] It should be noted that in this embodiment, the first virtual object releases a skill by triggering the skill option when the position aiming device has been confirmed to be aimed at the second position and the first direction indicator is displayed. In another embodiment, it is not necessary to perform the above step 404. Instead, other methods are adopted to control the first virtual object to release the skill along the target release direction at the position that the position aiming device has been aimed at in response to the confirmation release operation of the skill.
[0145] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can first be aimed at using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. This ensures that when the skill release confirmation operation is triggered, the first virtual object is controlled to release the skill along the recommended target release direction at the position aiming device. Therefore, after determining the skill release starting point, this application embodiment can intelligently recommend the skill release direction, eliminating the need for the user to manually select which virtual object to release the skill from the virtual objects displayed in the virtual scene, nor requiring the user to manually select the skill release direction. This enriches the ways to release skills, reduces the operational difficulty of releasing skills, and improves the efficiency of releasing skills, thereby enhancing human-computer interaction efficiency. Furthermore, by intelligently recommending the skill release direction, the probability of the skill hitting the virtual object can be increased, ensuring the skill release effect and thus improving the user experience.
[0146] Based on the embodiment shown in Figure 2, this embodiment adjusts the position aimed at by the position aiming device through a displayed position adjustment area. The specific process is detailed in the following embodiments. Figure 5 is a flowchart of a virtual object control method provided by this embodiment. Taking the method executed by a terminal as an example, as shown in Figure 5, the method includes:
[0147] 501. In response to the pre-release operation of the skill possessed by the first virtual object, the terminal displays a position aiming device and a position adjustment area. The position aiming device is used to aim at the release position of the skill in the virtual scene, and the position adjustment area is used to adjust the position aimed at by the position aiming device.
[0148] In this embodiment of the application, in response to the pre-release operation of the skill on the first virtual object, not only is the position aiming device displayed, but also the position adjustment area is displayed so that the position aimed at by the position aiming device can be adjusted through the position adjustment area.
[0149] The position adjustment area can be represented in any form, such as a circular, square, or fan-shaped area. Alternatively, it can be represented as a highlighted border, with the area covered by the highlighted border being the position adjustment area; or it can be represented as a button, with the area covered by the button being the position adjustment area.
[0150] 502. The terminal responds to the trigger operation on the position adjustment area and adjusts the position aimed at by the position aiming device.
[0151] In this embodiment of the application, triggering the position adjustment area can adjust the position aimed at by the position aiming device so that the changes of the position aiming device can be displayed in the virtual scene.
[0152] In this embodiment, the position aimed at by the position aiming device is adjusted by adjusting the position adjustment area. This makes it easier for users to choose the release position of skills, improves the accuracy of adjusting the position aimed at by the position aiming device, facilitates user operation, and improves the efficiency of human-computer interaction.
[0153] The triggering operations for the position adjustment area include click operations, press operations, etc.
[0154] For example, the position adjustment area has multiple direction options. By clicking on any direction option, the user can adjust the position that the position aiming device is pointing at and move it in the direction indicated by that direction option.
[0155] For example, the position adjustment area is a virtual joystick, which consists of a fixed virtual wheel and a movable joystick button. The user moves the joystick button on the virtual wheel to adjust the position aimed at by the position aiming device and move it in the direction indicated by the direction option.
[0156] It should be noted that the embodiments of this application are described using the example of displaying the position adjustment area. In another embodiment, it is not necessary to perform the above steps 501-502. Instead, other methods are adopted to display the position aimer in response to the pre-release operation of the skill on the first virtual object.
[0157] 503. In response to the confirmation operation of the position aiming device, the terminal displays a first direction indicator, which indicates the target release direction of the skill. The target release direction is the recommended release direction.
[0158] 504. In response to the confirmation and release operation of the skill, the terminal controls the first virtual object to release the skill along the target release direction at the position already aimed by the position aimer.
[0159] It should be noted that steps 503-504 are the same as steps 202-203 above, and will not be repeated here.
[0160] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can first be aimed at using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. This ensures that when the skill release confirmation operation is triggered, the first virtual object is controlled to release the skill along the recommended target release direction at the position aiming device. Therefore, after determining the skill release starting point, this application embodiment can intelligently recommend the skill release direction, eliminating the need for the user to manually select which virtual object to release the skill from the virtual objects displayed in the virtual scene, nor requiring the user to manually select the skill release direction. This enriches the ways to release skills, reduces the operational difficulty of releasing skills, and improves the efficiency of releasing skills, thereby enhancing human-computer interaction efficiency. Furthermore, by intelligently recommending the skill release direction, the probability of the skill hitting the virtual object can be increased, ensuring the skill release effect and thus improving the user experience.
[0161] Based on the embodiment shown in Figure 5 above, in this embodiment, the position aimed at by the position aiming device is adjusted and confirmed by pressing the position adjustment area. The specific process is detailed in the following embodiments. Figure 6 is a flowchart of a virtual object control method provided in this embodiment. Taking the method executed by a terminal as an example, as shown in Figure 6, the method includes:
[0162] 601. In response to the pre-release operation of the skill on the first virtual object, the terminal displays a position aiming device and a position adjustment area. The position aiming device is used to aim at the release position of the skill in the virtual scene, and the position adjustment area is used to adjust the position aimed at by the position aiming device.
[0163] It should be noted that step 601 is the same as step 501 above, and will not be repeated here.
[0164] 602. In response to a second press operation on the position adjustment area, the terminal displays that the position aimed at by the position aiming device changes as the pressing position of the second press operation changes.
[0165] In this embodiment, the second press operation on the position adjustment area is equivalent to triggering the position adjustment area. By pressing the position adjustment area, the user begins to move the pressing position while maintaining the pressed position; that is, the pressing position of the second press operation begins to move. During the movement of the pressing position of the second press operation, the position aimed at by the position aiming device will change in the virtual scene as the pressing position of the second press operation changes. This allows the user to freely choose the skill release position, improving the convenience of selecting the release position.
[0166] For example, if a position adjustment area is displayed on the terminal screen, and the user presses the position adjustment area displayed on the terminal screen with their finger, the user's finger will start moving on the terminal screen while keeping the skill option pressed. Then, the position aiming device on the terminal screen will move in the virtual scene as the user's finger presses, and the movement of the position aiming device in the virtual scene will be synchronized with the movement of the finger's pressing position on the terminal screen.
[0167] 603. Upon completion of the second press operation, the terminal displays the first direction indicator, which indicates the target release direction of the skill. The target release direction is the recommended release direction.
[0168] In this embodiment of the application, the end of the second press operation is equivalent to a confirmation operation of the position that the position aiming device has been aimed at. That is, the position that the position aiming device is aimed at when the second press operation ends is used as the release position of the subsequent skill. The end of the press operation can confirm the position that the position aiming device is aimed at, which is convenient for user operation.
[0169] 604. In response to the confirmation and release operation of the skill, the terminal controls the first virtual object to release the skill in the third position along the target release direction. The third position is the position aimed at by the position aiming device when the second press operation ends.
[0170] In this embodiment of the application, the position aimed at by the position aiming device at the end of the second pressing operation is the third position. When the third position has been confirmed and the first direction mark is displayed, the confirmation and release operation of the skill can be triggered so as to control the first virtual object to release the skill at the third position along the target release direction indicated by the first direction mark.
[0171] In this embodiment, in response to a second press operation on the position adjustment area, the position aimed at by the display aiming device changes with the press position of the second press operation. The position aimed at by the aiming device is adjusted by pressing the position adjustment area, and the position is confirmed after the press operation ends. This facilitates user operation, eliminating the need for excessive user intervention to adjust the aiming position, reducing operational difficulty and improving human-computer interaction efficiency. Furthermore, if the position aiming device has already been confirmed to be at a third position through pressing the position adjustment area and a first direction indicator is displayed, triggering a skill release confirmation operation will control the first virtual object to release the skill at the third position along the target release direction. This separates the process of selecting the release position and direction from the process of confirming skill release. With the release position confirmed and the target release direction displayed, continuous operation on the position adjustment area is unnecessary. This allows the user to choose any time to control the first virtual object to release the skill, requiring only a simple trigger operation to complete the skill release. This satisfies various user needs, reduces operational difficulty, improves human-computer interaction efficiency, and ultimately enhances the user experience.
[0172] It should be noted that step 604 is the same as step 203 above, and will not be repeated here.
[0173] It should be noted that in this embodiment, the position aimed at by the position aiming device is adjusted and confirmed by pressing the position adjustment area. In another embodiment, it is not necessary to perform the above steps 602-604. Instead, other methods are adopted: in response to the triggering operation of the position adjustment area, the position aimed at by the position aiming device is adjusted; in response to the confirmation operation of the position aiming device, a first direction indicator is displayed; and in response to the confirmation release operation of the skill, the first virtual object is controlled to release the skill along the target release direction at the position aimed at by the position aiming device.
[0174] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can first be aimed at using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. This ensures that when the skill release confirmation operation is triggered, the first virtual object is controlled to release the skill along the recommended target release direction at the position aiming device. Therefore, after determining the skill release starting point, this application embodiment can intelligently recommend the skill release direction, eliminating the need for the user to manually select which virtual object to release the skill from the virtual objects displayed in the virtual scene, nor requiring the user to manually select the skill release direction. This enriches the ways to release skills, reduces the operational difficulty of releasing skills, and improves the efficiency of releasing skills, thereby enhancing human-computer interaction efficiency. Furthermore, by intelligently recommending the skill release direction, the probability of the skill hitting the virtual object can be increased, ensuring the skill release effect and thus improving the user experience.
[0175] Based on the embodiment shown in Figure 2 above, in this embodiment, the display state of the position aimer changes before and after confirming the skill release location. The specific process is detailed in the following embodiment. Figure 7 is a flowchart of a virtual object control method provided in this embodiment. Taking the method executed by a terminal as an example, as shown in Figure 7, the method includes:
[0176] 701. In response to the pre-release operation of the skill on the first virtual object, the terminal displays a position aiming device in a first display state. The position aiming device is used to aim at the release position of the skill in the virtual scene.
[0177] In this embodiment of the application, during the process of selecting the skill release location through the position aiming device, the position aiming device is displayed in a first display state. When the position already aimed by the position aiming device is confirmed, the position aiming device will switch from the first display state to a second display state and display a first direction indicator. In this way, different display states are used to present whether the skill release location has been confirmed, so as to remind the user whether the release location has been confirmed, which can achieve the reminder effect and improve the user experience.
[0178] The first display state can be represented in any form. For example, when the position aiming device is displayed in the first display state, the position aiming device is displayed in blue.
[0179] 702. In response to the confirmation operation of the position aiming device, the terminal displays that the position aiming device has switched from the first display state to the second display state, and displays the first direction indicator, which indicates the target release direction of the skill. The target release direction is the recommended release direction.
[0180] The second display state can be any state different from the first display state. For example, the first display state is blue and the second display state is yellow; or, when the position aiming device is displayed in the first display state, the position aiming device is circular, while when the position aiming device is displayed in the second display state, the position aiming device is square.
[0181] In this embodiment of the application, when the position that the position aiming device has not been confirmed, the position aiming device is displayed in a first display state. After the position that the position aiming device has been confirmed, the position aiming device is displayed in a second display state. By presenting the position aiming device in different display states, the effect of reminding the user whether the release position has been confirmed can be achieved, thereby improving the user experience.
[0182] It should be noted that the embodiments of this application are illustrated by showing the position aiming device in different display states before and after confirming the release position of the skill. In another embodiment, it is not necessary to perform the above steps 701-702. Instead, other methods are adopted to display the position aiming device in response to the pre-release operation of the skill on the first virtual object; and to display the first direction indicator in response to the confirmation operation of the position aiming device at the position.
[0183] 703. In response to the confirmation and release operation of the skill, the terminal controls the first virtual object to release the skill along the target release direction at the position already aimed by the position aimer.
[0184] It should be noted that step 703 is the same as step 203 above, and will not be repeated here.
[0185] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can first be aimed at using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. This ensures that when the skill release confirmation operation is triggered, the first virtual object is controlled to release the skill along the recommended target release direction at the position aiming device. Therefore, after determining the skill release starting point, this application embodiment can intelligently recommend the skill release direction, eliminating the need for the user to manually select which virtual object to release the skill from the virtual objects displayed in the virtual scene, nor requiring the user to manually select the skill release direction. This enriches the ways to release skills, reduces the operational difficulty of releasing skills, and improves the efficiency of releasing skills, thereby enhancing human-computer interaction efficiency. Furthermore, by intelligently recommending the skill release direction, the probability of the skill hitting the virtual object can be increased, ensuring the skill release effect and thus improving the user experience.
[0186] It should be noted that, based on the embodiments shown in Figures 2 to 7 above, when the position aiming device is displayed by triggering a pre-release operation, the position aiming device is aimed at the position of the target virtual object by default. That is, the process of displaying the position aiming device includes: in response to the pre-release operation of the skill on the first virtual object, displaying the position aiming device at the position of the target virtual object.
[0187] The target virtual object is the recommended virtual object for casting skills on the first virtual object; that is, it is an intelligent recommendation to cast skills on the target virtual object. The target virtual object and the first virtual object belong to different factions, or they belong to the same faction.
[0188] In this embodiment, in response to the pre-release operation of the skill on the first virtual object, it recommends which virtual object to release the skill on, thereby displaying the position of the recommended target virtual object that the position aiming at is located. If the position aimed at by the position aiming at is not adjusted subsequently, the position of the target virtual object can be used as the release position of the subsequent skill. This method of recommending the target virtual object by displaying the position aimed at by the position aiming at can reduce the operation of the user actively selecting which virtual object to release the skill on, reduce the difficulty of operation, ensure the convenience of skill release, and thus improve the efficiency of human-computer interaction.
[0189] In one possible implementation, the target virtual object is any one of the following: the virtual object closest to the first virtual object, the virtual object with the lowest health within the skill's release range, the virtual object attacking the first virtual object, or the virtual object with the greatest influence value. The influence value indicates how the attribute value of the virtual object changes when the skill is applied to it.
[0190] In this embodiment, the target virtual object is any of the above-mentioned alternative solutions, which can enrich the ways of using the target virtual object to meet different user needs and improve user experience.
[0191] It should be noted that the recommendation method for the target virtual object in this embodiment is the same as the recommendation method for the target release direction described above, and will not be repeated here.
[0192] It should be noted that the method by which the position aiming device targets the virtual object in this embodiment can be arbitrarily combined with the embodiments shown in Figures 2 to 7 above. For example, taking the embodiment shown in Figure 3 as an example, in response to the first press operation on the skill option, the position of the target virtual object is displayed, and then the position aimed at by the position aiming device changes with the press position of the first press operation. In this way, when the pre-release operation is triggered, the position aiming device is aimed at the target virtual object by default, and then the user can actively adjust the position aimed at by the position aiming device.
[0193] It should be noted that the embodiments shown in Figures 2 to 7 above are illustrated by example of releasing skills according to the target release direction. However, the embodiments of this application can adjust the release direction of skills based on the display of a first direction indicator. For details, please refer to the following embodiments. Figure 8 is a flowchart of a virtual object control method provided by an embodiment of this application. Taking the method executed by a terminal as an example, as shown in Figure 8, the method includes:
[0194] 801. In response to the pre-release operation of the skill on the first virtual object, the terminal displays a position aiming device, which is used to aim at the release position of the skill in the virtual scene.
[0195] 802. In response to the confirmation operation of the position aiming device, the terminal displays a first direction indicator, which indicates the target release direction of the skill. The target release direction is the recommended release direction.
[0196] In one possible implementation, steps 801-802 include: displaying a position aimer and a position confirmation area in response to a pre-release operation of a skill on the first virtual object; and displaying a first direction indicator in response to a trigger operation on the position confirmation area.
[0197] In this embodiment of the application, in response to the pre-release operation of the skill of the first virtual object, a position aiming device and a position confirmation area are displayed so that the position aimed by the position aiming device can be confirmed through the position confirmation area, and then a first direction indicator is displayed, which makes it convenient for the user to confirm the position aimed by the position aiming device, reduces the difficulty of operation, and improves the efficiency of human-computer interaction.
[0198] The location confirmation area can be represented in any form, such as a circular, square, or fan-shaped area. Alternatively, it can be represented by a highlighted border, with the area covered by the highlighted border being the location confirmation area; or it can be represented by a button, with the area covered by the button being the location confirmation area.
[0199] It should be noted that steps 801-802 are the same as steps 201-202 above, and will not be repeated here.
[0200] 803. In response to the direction adjustment operation, the terminal updates the first direction identifier to the second direction identifier, which indicates the adjusted release direction.
[0201] In this embodiment, the direction adjustment operation is used to adjust the release direction of a skill, so as to change the currently displayed target release direction to another skill release direction. In response to the direction adjustment operation, if the release direction of the skill can be adjusted, other direction indicators will be displayed in the virtual scene so that the displayed direction indicators can indicate the adjusted release direction.
[0202] The second direction indicator can be represented in any form, for example, as an arrow. The first and second direction indicators may indicate different directions, and may be represented in the same or different forms.
[0203] Optionally, both the first and second direction indicators are represented by arrows, but they are different colors. For example, the first direction indicator used to indicate the target release direction is red, and the second direction indicator used to indicate the release direction actively adjusted by the user is blue.
[0204] In this embodiment, the target release direction or the release direction actively adjusted by the user is represented by different colored directional markers, so that the user can know which release direction is currently being released, thereby improving the display effect of the directional markers and enhancing the user experience.
[0205] 804. In response to the confirmation and release operation of the skill, the terminal controls the first virtual object to release the skill along the adjusted release direction at the position already aimed by the position aimer.
[0206] The confirmation release operation for a skill is equivalent to confirming the release of the skill at the position already aimed at by the position aiming device, in the direction indicated by the currently displayed direction indicator. The adjusted release direction is the direction indicated by the currently displayed direction indicator.
[0207] It should be noted that step 804 is the same as step 203 above, and will not be repeated here.
[0208] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can be aimed at first using a position aiming device. Once the position aimed at by the position aiming device is confirmed, a first direction indicator is displayed to recommend the release direction of the skill. Based on this, the release direction of the skill can also be adjusted so that other direction indicators used to indicate the adjusted release direction can be displayed in the virtual scene. In response to the confirmation release operation of the skill, the first virtual object is controlled to release the skill along the adjusted release direction at the position aimed at by the position aiming device. This allows the user to adjust any release direction to release the skill, instead of just displaying the target release direction, which can meet the user's skill release needs and make the skill release effect satisfactory to the user, thereby improving the user experience.
[0209] Based on the embodiment shown in Figure 8 above, in this embodiment, the release position and release direction of the skill are selected and adjusted by pressing the skill option for the first time. The specific process is detailed in the following embodiments. Figure 9 is a flowchart of a virtual object control method provided in this embodiment. Taking the method executed by a terminal as an example, as shown in Figure 9, the method includes:
[0210] 901. The terminal displays the skill options of the first virtual object in the virtual scene.
[0211] 902. In response to the first press operation of the skill option, the terminal displays the position aiming device. The position aiming device changes with the press position of the first press operation. The position aiming device is used to aim at the release position of the skill in the virtual scene.
[0212] 903. When the duration of the first press operation reaches a first threshold, the terminal displays a first direction indicator, which indicates the target release direction of the skill. The target release direction is the recommended release direction.
[0213] It should be noted that steps 901-903 are the same as steps 301-303 above, and will not be repeated here.
[0214] 904. In response to the first pressing operation, the terminal moves from the first pressing position to the third pressing position and updates the first direction identifier to the second direction identifier. The direction indicated by the second direction identifier is the same as the direction from the first pressing position to the second pressing position. The first pressing position is the pressing position when the pressing time reaches the first threshold. The third pressing position is any position different from the first pressing position. The second direction identifier indicates the adjusted release direction.
[0215] In this embodiment of the application, after confirming the position aimed at by the position aiming device through the first pressing operation, the first pressing operation can be maintained and movement can be started to adjust the release direction of the skill. This allows the selection of the skill release position and the adjustment of the skill release direction to be realized by pressing the skill option, without requiring the user to perform too many operations, reducing the difficulty of skill release and improving the efficiency of human-computer interaction.
[0216] In this embodiment, the third pressing position is a pressing position different from the first pressing position. When the position aimed at by the position aiming device is determined by the first pressing operation, the pressing position of the first pressing operation is the first pressing position, at which time the first direction indicator is displayed. Then, while maintaining the first pressing operation, movement begins, and the pressing position of the first pressing operation begins to change, thereby adjusting the release direction of the skill. The change in the pressing position of the first pressing operation is equivalent to adjusting the release direction of the skill, so the displayed direction indicator will change. Taking the pressing position of the first pressing operation moving from the first pressing position to the third pressing position as an example, the displayed direction indicator is updated from the first direction indicator to the second direction indicator to indicate the adjusted release direction. The adjusted release direction is the direction from the first pressing position to the second pressing position.
[0217] In one possible implementation, step 904 includes: moving the pressing position from the first pressing position to the third pressing position in response to the first pressing operation, and updating the first direction identifier to the second direction identifier if the distance between the third pressing position and the first pressing position is greater than a second threshold.
[0218] In this embodiment, after confirming the position aimed at by the position aiming device, the first press operation is still maintained. If the distance between the pressing position of the first press operation and the first pressing position is not greater than a second threshold, it is equivalent to not triggering a direction adjustment operation, and the first direction indicator used to indicate the target release direction is still displayed. If the distance between the pressing position of the first press operation and the first pressing position is greater than a second distance, it is equivalent to triggering a direction adjustment operation, and the second direction indicator used to indicate the adjusted release direction will be displayed. The direction indicated by the second direction indicator is the same as the direction from the first pressing position to the current pressing position. Thus, compared with the first pressing position, if the distance between the current pressing position and the first pressing position is not greater than the second threshold, it can be considered that the target release direction is selected to release the skill. If the distance between the current pressing position and the first pressing position is greater than the second threshold, a new release direction can be re-determined according to the current pressing position. This provides users with multiple possibilities for selecting a direction, allowing users to achieve direction adjustment through the same pressing operation, which can meet user needs and improve user experience.
[0219] The range centered on the first press position and with the second threshold as the radius is called the first activity range. If the press position of the first press operation is within the first activity range, it means that the target release direction is selected to release the skill; if the press position of the first press operation is outside the first activity range, it means that the target release direction is adjusted to another direction.
[0220] Optionally, the process of adjusting the release direction includes: the terminal responding to the pressing duration of the first pressing operation reaching a first threshold, displaying a first direction indicator, displaying a touch area centered on the first pressing position, the terminal responding to the pressing position of the first pressing operation moving from the first pressing position to a third pressing position in the touch area, and updating the first direction indicator to a second direction indicator.
[0221] In this embodiment, the radius of the touch area is greater than the second threshold. When displaying the first direction indicator, a touch area centered on the first press position is also displayed, so that the press position of the first press operation can move within the touch area to adjust the release direction of the skill, which facilitates user operation, improves the display effect, and thus enhances the user experience.
[0222] The touch area is equivalent to the second range of motion, which is the movable range of the pressing position after the position is confirmed by the position aiming device. The center of the first range of motion is the same as that of the second range of motion, and the second range of motion includes the first range of motion. The third pressing position is a position within the second range of motion but outside the first range of motion.
[0223] It should be noted that in this embodiment, the skill release position and release direction are selected and adjusted by pressing the skill option for the first time. In another embodiment, steps 901-904 are not required. Instead, other methods are used: in response to the pre-release operation of the skill on the first virtual object, a position aiming device is displayed; in response to the confirmation operation of the position aiming device, a first direction indicator is displayed; and in response to the direction adjustment operation, the first direction indicator is updated to a second direction indicator.
[0224] 905. In response to the confirmation and release operation of the skill, the terminal controls the first virtual object to release the skill along the adjusted release direction at the position already aimed by the position aiming device.
[0225] It should be noted that step 905 is the same as step 203 above, and will not be repeated here.
[0226] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can be aimed at first using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. Furthermore, the release direction of the skill can be adjusted so that other direction indicators are displayed in the virtual scene to indicate the adjusted release direction. In response to the confirmation release operation of the skill, the first virtual object is controlled to release the skill along the adjusted release direction at the position aiming device. This allows the user to adjust any release direction to release the skill, rather than simply displaying the target release direction, thus meeting the user's skill release needs and ensuring that the skill release effect is satisfactory to the user, thereby improving the user experience.
[0227] Based on the embodiment shown in Figure 8 above, in this embodiment, the release direction of the skill is adjusted by displaying a direction adjustment area. The specific process is detailed in the following embodiments. Figure 10 is a flowchart of a virtual object control method provided in this embodiment. Taking the method executed by a terminal as an example, as shown in Figure 10, the method includes:
[0228] 1001. In response to the pre-release operation of the skill on the first virtual object, the terminal displays a position aiming device, which is used to aim at the release position of the skill in the virtual scene.
[0229] It should be noted that step 1001 is the same as step 201 above, and will not be repeated here.
[0230] 1002. In response to the confirmation operation of the position aiming device, the terminal displays a first direction indicator and a direction adjustment area. The first direction indicator indicates the target release direction of the skill, and the direction adjustment area is used to adjust the release direction of the skill.
[0231] In this embodiment of the application, after confirming the position that the position aiming device has aimed at, not only is the first direction indicator displayed, but also the direction adjustment area is displayed so that the release direction of the skill can be adjusted through the direction adjustment area. In this way, the user only needs to trigger the direction adjustment area to adjust the release direction of the skill without performing complicated operations, which facilitates the adjustment of the release direction of the skill, improves the convenience of direction adjustment, and improves the efficiency of human-computer interaction.
[0232] The orientation adjustment area can be represented in any form, such as a circular, square, or fan-shaped area. Alternatively, it can be represented by a highlighted border, with the area covered by the highlighted border being the orientation adjustment area; or it can be represented by a button, with the area covered by the button being the orientation adjustment area.
[0233] 1003. In response to the trigger operation on the direction adjustment area, the terminal updates the first direction identifier to a second direction identifier, which indicates the adjusted release direction.
[0234] In this embodiment of the application, triggering the direction adjustment area can adjust the release direction of the skill and display the adjusted direction indicator in the virtual scene to indicate the adjusted release direction.
[0235] The trigger operation for the direction adjustment area can be any type of operation, such as a click operation, a press operation, etc.
[0236] For example, the direction adjustment area is a virtual joystick, which consists of a fixed virtual wheel and a movable joystick button. Users can adjust the release direction of skills by dragging the joystick button on the virtual wheel, so that the release direction indicated by the displayed direction indicator is consistent with the direction from the center of the virtual wheel to the joystick button, and the displayed direction indicator and the movement of the joystick button are kept synchronized.
[0237] It should be noted that the embodiments of this application are illustrated by taking the adjustment of the release direction of the skill through the displayed direction adjustment area as an example. In another embodiment, it is not necessary to perform the above steps 1002-1003. Instead, other methods are adopted. In response to the confirmation operation of the position aiming device, a first direction indicator is displayed. In response to the direction adjustment operation, the first direction indicator is updated to a second direction indicator.
[0238] 1004. In response to the confirmation and release operation of the skill, the terminal controls the first virtual object to release the skill along the adjusted release direction at the position already aimed by the position aimer.
[0239] It should be noted that step 1004 is the same as step 203 above, and will not be repeated here.
[0240] In the solution provided in this application embodiment, when controlling a virtual object to release a skill, the starting position for releasing the skill can be aimed at first using a position aiming device. Once the position aiming device is confirmed, a first direction indicator is displayed to recommend a target release direction for the skill. Furthermore, the release direction of the skill can be adjusted so that other direction indicators are displayed in the virtual scene to indicate the adjusted release direction. In response to the confirmation release operation of the skill, the first virtual object is controlled to release the skill along the adjusted release direction at the position aiming device. This allows the user to adjust any release direction to release the skill, rather than simply displaying the target release direction, thus meeting the user's skill release needs and ensuring that the skill release effect is satisfactory to the user, thereby improving the user experience.
[0241] It should be noted that the embodiments shown in Figures 2 to 10 above illustrate the example of displaying the first direction indicator only after the skill release starting position is confirmed. In another embodiment, when a position aiming device is displayed in the virtual scene, a direction indicator is also displayed, indicating the target release direction when the position currently aimed at by the position aiming device is taken as the skill release starting position. Furthermore, as the position aimed at by the position aiming device changes in the virtual scene, such as the position aimed at by the position aiming device changing with the pressing position of the first pressing operation in step 302 above, the displayed direction indicator changes with the position aimed at by the position aiming device.
[0242] In one possible implementation, the target release direction indicated by the direction marker is from the position currently being aimed at by the position aiming device to the target virtual object.
[0243] In this embodiment, when a position aiming device is displayed in a virtual scene, a direction indicator is also displayed. The direction indicator indicates the target release direction from the position currently aimed at by the position aiming device to the target virtual object. Thus, as the position aimed at by the position aiming device changes with the pressing position of the first pressing operation according to the above step 302, direction indicators pointing to different target virtual objects will be displayed. This makes it easier for the user to select the release direction of the skill so that the skill can be released to different target virtual objects in the future, ensuring the convenience of skill release, reducing the difficulty of operation, and improving the efficiency of human-computer interaction.
[0244] It should be noted that the above-mentioned multiple optional embodiments can be combined in any way, and this application will not elaborate on them one by one here.
[0245] Based on the embodiments shown above, in this embodiment of the application, the skill button and the location confirmation area of the skill of the first virtual object displayed in the virtual scene are used as the confirmation button. During the process of the user controlling the first virtual object to release the skill based on the skill button through the terminal, the virtual scene displayed by the terminal is shown in Figures 11 to 18.
[0246] In Figure 11, the virtual scene displays virtual objects 1101, 1102, 1103 and 1104. Virtual object 1101 is a virtual object controlled by the terminal. The virtual scene also displays the skill button 1105 of virtual object 1101 and other skill buttons.
[0247] Based on the virtual scene shown in Figure 11, taking the user pressing the skill button 1105 with their finger as an example, the first stage of the skill release process begins, namely the selection stage of the release start position, as shown in Figure 12. Figure 12 displays a virtual joystick centered on the skill button 1105. The virtual joystick includes a virtual wheel 1106 and a movable joystick button 1107. The joystick button 1107 is synchronized with the pressing position of the press operation, moving within the virtual wheel 1106 as the pressing position moves. Figure 12 also shows a cancel button 1108, a position aiming device 1109, and a confirm button 1110. The cancel button 1108 cancels the current skill release of the virtual object 1101. The position aiming device 1109 is blue and is used to aim at the skill release start position. The confirm button 1110 confirms the release start position aimed at by the position aiming device 1109. The position aiming device 1109 is used to aim at the starting position of the skill release within the skill release range. Furthermore, Figure 12 shows a direction indicator 1111, which indicates the target release direction when the position currently aimed at by the position aiming device 1109 is the starting position of the skill release. As the position aimed at by the position aiming device 1109 is changed via the joystick button 1107, the direction indicator 1111 changes accordingly.
[0248] Based on the virtual scene shown in Figure 12, the position of the joystick button 1107 shown in Figure 12 is called position 2, which is the first pressing position. While maintaining the pressing operation of the skill button 1105, taking the user clicking the confirmation button 1110 when the joystick button 1107 is in position 2 as an example, the second stage of the skill release process, namely the release direction confirmation stage, is entered. Taking the position aimed at by the position aiming device 1109 at this time as position 3 as an example, the virtual scene is shown in Figure 13. In Figure 13, the display of the confirmation button 1110 is switched to the undo button 1112, and the virtual joystick centered on the skill button 1105 is canceled, that is, the virtual wheel 1106 and the movable joystick button 1107 are canceled, and a new virtual joystick centered on position 2 is displayed. The new virtual joystick includes a virtual wheel 1113 and a movable joystick button 1114. The joystick button 1114 can move within the virtual wheel 1113 as the pressing position of the pressing operation moves. The undo button 1112 is used to return to the release start point position selection stage. If the user clicks the undo button 1112, the user will return to the release start point position selection stage, and the virtual scene will be displayed as shown in Figure 12.
[0249] Furthermore, in Figure 13, the position aiming device 1109 is shown to turn yellow to remind the user that the starting point of the skill release has been confirmed. Figure 13 also shows a first direction indicator 1111 to indicate the target release direction of the skill.
[0250] Based on the embodiment shown in Figure 13 above, when the user's finger presses on position 2, the circular area centered on position 2 and with the second threshold as the radius is the dead zone; the area in the virtual wheel 1113 other than the dead zone is the non-dead zone. As shown in Figure 14, for the dead zone 1401 and non-dead zone 1402 corresponding to the skill, if the pressing position of the pressing operation does not move out of the dead zone 1401, the quick casting mechanism is triggered; if the pressing position of the pressing operation moves out of the dead zone, that is, if the pressing position of the pressing operation enters the non-dead zone 1402, the active aiming mechanism is triggered.
[0251] Based on the embodiment shown in Figure 13 above, if the user lifts their finger and the pressing position when the finger is lifted is within the dead zone, it is equivalent to triggering a quick casting mechanism. In the virtual scene, the virtual object 1101 will be displayed at position 3 along the target release direction indicated by the first direction marker to release the skill. For example, if the skill is used to release virtual flames and the target release direction is to the right of position 3, then after the virtual object 1101 releases the skill at position 3 along the target release direction indicated by the first direction marker, virtual flames will be displayed in the straight area at position 3 and to the right of position 3 in the virtual scene.
[0252] Based on the embodiment shown in Figure 13 above, when the user's finger is pressed on position 2, if the user's finger remains pressed and moves, and if the pressing position moves from the dead zone to the non-dead zone, the active aiming mechanism is triggered, and the first direction indicator 1111 displayed in the virtual scene will change to other direction indicators, as shown in Figure 15. The first direction indicator 1111 displayed in the virtual scene is switched to direction indicator 1115, and as the pressing position moves within the non-dead zone, the direction indicator 1115 will change with the pressing position.
[0253] In this embodiment of the application, after entering the release direction confirmation stage, if the pressing position has not moved out of the dead zone and the current aiming state of the skill button is TAP (tap), the skill will be cast quickly by intelligently selecting the target release direction of the target virtual object; if the pressing position moves out of the dead zone and the current aiming state of the skill button is switched to AIM (aim), the skill will be actively aimed and released according to the actively selected release direction.
[0254] Based on the virtual scene shown in Figure 15 above, as shown in Figure 16, the center position 2 of the virtual wheel 1113 is point 1116, and the user's pressing position moves to the position within the non-dead zone, which is point 1117. At this time, the direction of the displayed direction indicator 1115 is consistent with the direction from point 1116 to point 1117. As shown in Figure 16, the arrow 1118 is used to indicate the direction from point 1116 to point 1117. The direction indicator 1115 points from position 3 to other directions, and the direction indicator 1115 is consistent with the direction indicated by the arrow 1118.
[0255] Based on the virtual scene shown in Figure 15 above, when the user raises their finger, it is equivalent to triggering an active aiming mechanism. The virtual object 1101 will then release a skill at position 3 along the release direction indicated by direction marker 1115. For example, if the skill is used to release virtual flames, and direction marker 1115 indicates the release direction to the right of position 3, then after virtual object 1101 releases the skill at position 3 along the release direction indicated by direction marker 1115, virtual flames will be displayed in the straight area at position 3 and to the right of position 3 in the virtual scene.
[0256] Based on the embodiments shown above, in this embodiment, when a position aiming device is displayed in the virtual scene, a corresponding direction indicator is also displayed. The displayed direction indicator indicates the target release direction when the position currently aimed at by the position aiming device is used as the skill release starting point position. As shown in Figures 17 and 18, Figure 17 shows the virtual scene in the release starting point position selection stage, and Figure 18 shows the virtual scene in the release direction confirmation stage. In Figure 17, a virtual joystick centered on the skill button 1701 is displayed. The virtual joystick includes a virtual wheel 1702 and a movable joystick button 1703. The joystick button 1703 is synchronized with the pressing position of the pressing operation, and the joystick button 1703 moves within the virtual wheel 1702 as the pressing position of the pressing operation moves. When the joystick button 1703 is in its current position in Figure 17, the position aiming device 1704 and the corresponding direction indicator 1705 in the virtual scene are used to indicate the starting position of the currently aimed skill release and the current target release direction. That is, the direction indicator 1705 points to the virtual object 1706, and the position aiming device 1704 is displayed as a dashed line. Based on the virtual scene shown in Figure 17, after the user clicks the confirmation button 1707 in Figure 17, the release direction confirmation stage begins, and the virtual scene is shown in Figure 18. In Figure 18, the position aiming device 1704 is shown as a solid line, indicating a change in its display state. This signifies that the skill's release starting point has been confirmed, and its position remains unchanged during the release direction confirmation phase. The confirmation button 1707 is replaced by the cancel button 1708. The virtual joystick centered on the skill button 1701 is replaced by a new virtual joystick, which includes a virtual wheel 1709 and a movable joystick button 1710. The center of the virtual wheel 1709 is the position of the joystick button 1703 when the user clicks the confirmation button 1707. The direction indicator 1705 remains pointing towards the virtual object 1706. Thus, the strategy for the target virtual object remains consistent throughout both the release starting point selection and release direction confirmation phases, ensuring that the target virtual object does not change when transitioning from the release starting point selection phase to the release direction confirmation phase, thereby improving the user experience.
[0257] Based on the embodiment shown in Figure 12 above, a circular area with a first radius centered on the position of skill option 1105 is designated as the dead zone, and the first radius is smaller than the radius of the virtual wheel 1106; the area of the virtual wheel 1106 excluding the dead zone is designated as the non-dead zone. If the user's finger is pressed within the dead zone, i.e., the joystick button 1107 is within the dead zone, the position aiming device 1109 is displayed aiming at the target virtual object. If the user lifts their finger at this time, the virtual object 1101 will be displayed in the virtual scene releasing a skill towards the target virtual object. When the position aiming device 1109 is aimed at the target virtual object, if the user's finger moves out of the dead zone and into the non-dead zone, i.e., the joystick button 1107 is within the non-dead zone, the position aiming device 1109 will be displayed changing as the joystick button 1107 changes position within the non-dead zone.
[0258] In this embodiment, the distance between the position of the joystick button 1107 and the position of the skill button 1105 is used to determine whether the joystick button 1107 is in the dead zone; if the distance is not greater than the radius of the dead zone, the joystick button 1107 is determined to be in the dead zone; if the distance is greater than the radius of the dead zone, the joystick button 1107 is determined to be in the non-dead zone.
[0259] Based on the embodiments shown above, this application also provides a flowchart of a method for controlling a virtual object, as shown in Figure 19. The method includes:
[0260] 1901. The user presses the skill button to enter the first stage, which is the selection stage of the starting position.
[0261] In this embodiment of the application, in the first stage, the position aimed at by the position aiming device in the virtual scene changes with the change of the pressing position.
[0262] 1902. The user keeps pressing the skill button and clicks the confirmation button.
[0263] 1903. The terminal confirms the current position aimed at by the position aiming device as the starting point position for skill release, and enters the second stage, namely the release direction confirmation stage.
[0264] 1904. The terminal sets the press position when clicking the confirmation button to the center of the virtual joystick corresponding to the skill button.
[0265] 1905. The terminal resets the dead zone of the skill button based on the location of the center.
[0266] 1906. The terminal reset skill button's current aiming state is TAP.
[0267] 1907. The terminal determines whether the pressing position of the pressing operation has moved out of the dead zone. If yes, proceed to step 1908; otherwise, proceed to steps 1909-1910.
[0268] 1908. If the terminal does not move out of the dead zone during the pressing operation, the pressing operation ends, realizing rapid spell casting and controlling the virtual object to release the skill along the target release direction at the determined release starting position.
[0269] 1909. If the pressing position of the press operation moves out of the dead zone, the terminal sets the current aiming state of the skill button to AIM.
[0270] 1910. When the terminal moves out of the dead zone during the pressing operation, the pressing operation ends, realizing active aiming casting, controlling the virtual object to release the skill along the active aiming release direction at the determined release starting position.
[0271] In this embodiment, the starting point of skill release can be selected and the release direction confirmed by pressing the skill button once, thereby controlling the virtual object to release the skill. After entering the second stage by pressing once, it is possible to achieve quick casting or active aiming casting. The default selection when entering the second stage is quick casting. If the user is not satisfied with quick casting, they can start moving while keeping the button pressed to perform active aiming. This avoids the situation where only active aiming casting can be performed when entering the second stage, which can meet the user's various needs and improve the user experience.
[0272] Figure 20 is a schematic diagram of a virtual object control device provided in an embodiment of this application. As shown in Figure 20, the device includes:
[0273] Display module 2001 is used to display a position aiming device in response to a pre-release operation of a skill on a first virtual object. The position aiming device is used to aim at the release position of the skill in the virtual scene.
[0274] The display module 2001 is also used to display a first direction indicator in response to a confirmation operation of the position that the position aiming device has aimed at, the first direction indicator indicating the target release direction of the skill, the target release direction being the recommended release direction;
[0275] The display module 2001 is also used to control the first virtual object to release the skill along the target release direction at the position already aimed by the position aimer in response to the confirmation release operation of the skill.
[0276] In one possible implementation, a skill option with skills is displayed in the virtual scene; a display module 2001 is used to display a position aiming device in response to a first press operation on the skill option, the position aimed at by the position aiming device changing with the press position of the first press operation;
[0277] Display module 2001 is used to display a first direction indicator in response to the pressing duration of the first pressing operation reaching a first threshold.
[0278] In another possible implementation, the display module 2001 is used to control the first virtual object to release the skill along the target release direction at a first position in response to the end of the first press operation, where the first position is the position aimed at by the position aiming device when the press duration reaches a first threshold.
[0279] In another possible implementation, the display module 2001 is used to control the first virtual object to release a skill along the target release direction at the first position when the distance between the first pressing position and the second pressing position is not greater than a second threshold, in response to the end of the first pressing operation. The first pressing position is the pressing position when the pressing duration reaches the first threshold, and the second pressing position is the pressing position when the first pressing operation ends.
[0280] In another possible implementation, a skill option with skills is displayed in the virtual scene; a display module 2001 is used to display a position aiming device in response to a first press operation on the skill option, the position aimed at by the position aiming device changing with the press position of the first press operation;
[0281] Display module 2001 is used to display a first direction indicator in response to the end of the first press operation.
[0282] In another possible implementation, the display module 2001 is used to control the first virtual object to release the skill in a second position along the target release direction in response to a trigger operation of the skill option, the second position being the position aimed at by the position aiming device at the end of the first press operation.
[0283] In another possible implementation, the display module 2001 is also used to display the skill option entering an active state in response to the end of the first press operation;
[0284] Display module 2001 is used to control the first virtual object to release the skill along the target release direction at the second position in response to the trigger operation of the skill option when the skill option is active.
[0285] In another possible implementation, the display module 2001 is also configured to display a position adjustment area in response to a pre-release operation, the position adjustment area being used to adjust the position aimed at by the position aiming device; and to adjust the position aimed at by the position aiming device in response to a trigger operation on the position adjustment area.
[0286] In another possible implementation, the display module 2001 is configured to, in response to a second pressing operation on the position adjustment area, display the position aimed at by the position aiming device as the pressing position of the second pressing operation changes;
[0287] Display module 2001 is used to display a first direction indicator in response to the end of the second pressing operation.
[0288] In another possible implementation, the display module 2001 is used to control the first virtual object to release the skill in a third position along the target release direction in response to the confirmed release operation, the third position being the position aimed at by the position aiming device at the end of the second press operation.
[0289] In another possible implementation, the display module 2001 is used to display the position of the target virtual object targeted by the position aiming device in response to the pre-release operation. The target virtual object is any one of the following: the virtual object closest to the first virtual object, the virtual object with the lowest health value within the skill release range, the virtual object attacking the first virtual object, or the virtual object with the largest influence value. The influence value indicates the change of the attribute value of the virtual object when the skill is applied to the virtual object.
[0290] In another possible implementation, the display module 2001 is configured to display the position aiming device in a first display state in response to a pre-release operation;
[0291] The display module 2001 is also used to switch the position aiming device from a first display state to a second display state in response to a confirmation operation of the position aiming device having been aimed at.
[0292] In another possible implementation, the target release direction is from the position already aimed by the position aimer to the target virtual object. The target virtual object is any one of the following: the virtual object closest to the first virtual object, the virtual object with the lowest health within the skill's release range, the virtual object attacking the first virtual object, or the virtual object with the greatest influence value. The influence value indicates how the attribute value of the virtual object changes when the skill is applied to it.
[0293] In another possible implementation, the display module 2001 is also configured to update the display of the first direction identifier to a second direction identifier in response to the direction adjustment operation, the second direction identifier indicating the adjusted release direction; and to control the first virtual object to release the skill along the adjusted release direction at the position already aimed by the position aimer in response to the skill confirmation release operation.
[0294] In another possible implementation, a skill option with skills is displayed in the virtual scene; a display module 2001 is used to display a position aiming device in response to a first press operation on the skill option, the position aimed at by the position aiming device changing with the press position of the first press operation;
[0295] Display module 2001 is used to display a first direction indicator in response to the pressing duration of the first pressing operation reaching a first threshold.
[0296] The display module 2001 is used to update the first direction identifier to a second direction identifier in response to the pressing position moving from the first pressing position to the third pressing position. The direction indicated by the second direction identifier is the same as the direction from the first pressing position to the second pressing position. The first pressing position is the pressing position when the pressing time reaches the first threshold. The third pressing position is any position different from the first pressing position.
[0297] In another possible implementation, the display module 2001 is used to update the first direction identifier to the second direction identifier in response to the pressing position moving from the first pressing position to the third pressing position, provided that the distance between the third pressing position and the first pressing position is greater than a second threshold.
[0298] In another possible implementation, the display module 2001 is also used to display a direction adjustment area in response to a confirmation operation of the position aiming device, the direction adjustment area being used to adjust the release direction of the skill;
[0299] Display module 2001 is used to update the first direction identifier to a second direction identifier in response to a trigger operation on the direction adjustment area.
[0300] It should be noted that the virtual object control device provided in the above embodiments is only an example of the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the virtual object control device and the virtual object control method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0301] This application also provides a computer device, which includes a processor and a memory. The memory stores at least one computer program, which is loaded and executed by the processor to implement the operations performed by the virtual object control method of the above embodiments.
[0302] Optionally, the computer device is provided as a terminal. Figure 21 shows a structural block diagram of a terminal 2100 provided in an exemplary embodiment of this application. The terminal 2100 includes a processor 2101 and a memory 2102.
[0303] Processor 2101 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2101 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 2101 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 2101 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 2101 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0304] The memory 2102 may include one or more computer-readable storage media, which may be non-transitory. The memory 2102 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 2102 are used to store at least one computer program, which is executed by the processor 2101 to implement the virtual object control method provided in the method embodiments of this application.
[0305] In some embodiments, the terminal 2100 may also optionally include a peripheral device interface 2103 and at least one peripheral device. The processor 2101, memory 2102, and peripheral device interface 2103 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 2103 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 2104, a display screen 2105, a camera assembly 2106, an audio circuit 2107, and a power supply 2108.
[0306] Those skilled in the art will understand that the structure shown in FIG21 does not constitute a limitation on terminal 2100, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0307] Optionally, the computer device is provided as a server. Figure 22 is a schematic diagram of a server structure provided in an embodiment of this application. The server 2200 can vary considerably due to different configurations or performance, and may include one or more Central Processing Units (CPUs) 2201 and one or more memories 2202. The memory 2202 stores at least one computer program, which is loaded and executed by the processor 2201 to implement the methods provided in the above-described method embodiments. Of course, the server may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server may also include other components for implementing device functions, which will not be elaborated here.
[0308] Server 2200 can be used to execute the steps performed by the control method of the aforementioned virtual object.
[0309] This application also provides a computer-readable storage medium storing at least one computer program, which is loaded and executed by a processor to implement the operations performed by the virtual object control method of the above embodiments.
[0310] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the operations performed by the virtual object control method of the above embodiments.
[0311] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.
[0312] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present application should be included within the protection scope of the present application.
Claims
1. A method for controlling a virtual object, executed by a computer device, the method comprising: In response to a pre-release operation of a skill on a first virtual object, a position aiming device is displayed, the position aiming device being used to aim at the release position of the skill in the virtual scene; In response to a confirmation operation of the position that the position aiming device has been aimed at, a first direction indicator is displayed, the first direction indicator indicating the target release direction of the skill, the target release direction being the recommended release direction; In response to the confirmation release operation of the skill, the first virtual object is controlled to release the skill along the target release direction at the position already aimed by the position aiming device.
2. The method according to claim 1, wherein, The virtual scene displays skill options for the skill; the display of a position aiming device in response to a pre-release operation of the skill on the first virtual object includes: In response to a first press operation on the skill option, the position aiming device is displayed, and the position aimed at by the position aiming device changes as the press position of the first press operation changes; The operation of displaying a first direction indicator in response to confirmation of the position being aimed at by the position sight includes: In response to the press duration of the first press operation reaching a first threshold, the first direction indicator is displayed.
3. The method according to claim 2, wherein, The step of controlling the first virtual object to release the skill along the target release direction at the position already aimed by the position aiming device, in response to the confirmed release operation of the skill, includes: In response to the end of the first press operation, the first virtual object is controlled to release the skill along the target release direction at a first position, where the first position is the position aimed at by the position aiming device when the press duration reaches the first threshold.
4. The method according to claim 3, wherein, The response to the end of the first press operation, controlling the first virtual object to release the skill at the first position along the target release direction, includes: In response to the end of the first press operation, if the distance between the first press position and the second press position is not greater than a second threshold, the first virtual object is controlled to release the skill at the first position along the target release direction. The first press position is the press position when the press duration reaches the first threshold, and the second press position is the press position when the first press operation ends.
5. The method according to any one of claims 1 to 4, wherein, The skill options for the aforementioned skill are displayed in the virtual scene; The method of displaying a position aimer in response to a pre-release operation of a skill on a first virtual object includes: In response to a first press operation on the skill option, the position aiming device is displayed, and the position aimed at by the position aiming device changes as the press position of the first press operation changes; The operation of displaying a first direction indicator in response to confirmation of the position being aimed at by the position sight includes: In response to the end of the first press operation, the first direction indicator is displayed.
6. The method according to claim 5, wherein, The step of controlling the first virtual object to release the skill along the target release direction at the position already aimed by the position aiming device, in response to the confirmed release operation of the skill, includes: In response to the triggering operation of the skill option, the first virtual object is controlled to release the skill at a second position along the target release direction, the second position being the position aimed at by the position aiming device at the end of the first press operation.
7. The method according to claim 6, wherein, The method further includes: In response to the end of the first press operation, the skill option is displayed as being activated. The step of controlling the first virtual object to release the skill along the target release direction at the second position in response to a trigger operation on the skill option includes: When the skill option is in the active state, in response to the triggering operation of the skill option, the first virtual object is controlled to release the skill at the second position along the target release direction.
8. The method according to any one of claims 1 to 7, wherein, The method further includes: In response to the pre-release operation, a position adjustment area is displayed, the position adjustment area being used to adjust the position aimed at by the position aiming device; In response to a trigger operation on the position adjustment area, the position aimed at by the position aiming device is adjusted.
9. The method according to claim 8, wherein, The step of adjusting the position aimed at by the position aiming device in response to a trigger operation on the position adjustment area includes: In response to a second press operation on the position adjustment area, the position aimed at by the position aiming device changes as the press position of the second press operation changes; The operation of displaying a first direction indicator in response to confirmation of the position being aimed at by the position sight includes: In response to the end of the second press operation, the first direction indicator is displayed.
10. The method according to claim 9, wherein, The step of controlling the first virtual object to release the skill along the target release direction at the position already aimed by the position aiming device, in response to the confirmed release operation of the skill, includes: In response to the confirmed release operation, the first virtual object is controlled to release the skill at a third position along the target release direction, the third position being the position aimed at by the position aiming device when the second press operation ends.
11. The method according to any one of claims 1 to 10, wherein, The method of displaying a position aimer in response to a pre-release operation of a skill on a first virtual object includes: In response to the pre-release operation, the location of the target virtual object is displayed. The target virtual object is any one of the following: the virtual object closest to the first virtual object, the virtual object with the lowest health within the skill's release range, the virtual object attacking the first virtual object, or the virtual object with the greatest influence value. The influence value indicates the change in the attribute value of the virtual object when the skill is applied to it.
12. The method according to any one of claims 1 to 11, wherein, The method of displaying a position aimer in response to a pre-release operation of a skill on a first virtual object includes: In response to the pre-release operation, the position aiming device is displayed in a first display state; The method further includes: In response to a confirmation operation of the position that the position aiming device has been aimed at, the position aiming device is displayed to switch from the first display state to the second display state.
13. The method according to any one of claims 1 to 12, wherein, The target release direction is from the position already aimed by the position aiming device to the target virtual object. The target virtual object is any one of the following: the virtual object closest to the first virtual object, the virtual object with the lowest health within the skill release range, the virtual object attacking the first virtual object, or the virtual object with the greatest influence value. The influence value indicates the change in the attribute value of the virtual object when the skill is applied to it.
14. The method according to any one of claims 1 to 13, wherein, After displaying a first direction indicator in response to a confirmation operation of the position being aimed at by the position sight, the method further includes: In response to the direction adjustment operation, the first direction identifier is updated to a second direction identifier, which indicates the adjusted release direction; In response to the confirmation release operation of the skill, the first virtual object is controlled to release the skill along the adjusted release direction at the position already aimed by the position aiming device.
15. The method according to claim 14, wherein, The virtual scene displays skill options for the skill; the display of a position aiming device in response to a pre-release operation of the skill on the first virtual object includes: In response to a first press operation on the skill option, the position aiming device is displayed, and the position aimed at by the position aiming device changes as the press position of the first press operation changes; The operation of displaying a first direction indicator in response to confirmation of the position being aimed at by the position sight includes: In response to the press duration of the first press operation reaching a first threshold, the first direction indicator is displayed; The step of updating the first direction identifier to a second direction identifier in response to a direction adjustment operation includes: In response to the pressing position moving from the first pressing position to the third pressing position, the first direction identifier is updated and displayed as the second direction identifier. The direction indicated by the second direction identifier is the same as the direction from the first pressing position to the second pressing position. The first pressing position is the pressing position when the pressing duration reaches the first threshold. The third pressing position is any position different from the first pressing position.
16. The method according to claim 15, wherein, The step of updating the first direction identifier to the second direction identifier in response to the press position moving from the first press position to the third press position includes: In response to the pressing position moving from the first pressing position to the third pressing position, if the distance between the third pressing position and the first pressing position is greater than a second threshold, the first direction identifier is updated to the second direction identifier.
17. The method according to any one of claims 14 to 16, wherein, The method further includes: In response to a confirmation operation of the position that the position aiming device has aimed at, a direction adjustment area is displayed, which is used to adjust the release direction of the skill; The step of updating the first direction identifier to a second direction identifier in response to a direction adjustment operation includes: In response to a trigger operation on the direction adjustment area, the first direction identifier is updated and displayed as the second direction identifier.
18. A control device for a virtual object, the device comprising: The display module is configured to display a position aiming device in response to a pre-release operation of a skill on a first virtual object, the position aiming device being used to aim at the release position of the skill in the virtual scene; The display module is further configured to display a first direction indicator in response to a confirmation operation of the position that the position aiming device has aimed at, the first direction indicator indicating the target release direction of the skill, the target release direction being a recommended release direction; The display module is also configured to, in response to a confirmation release operation of the skill, control the first virtual object to release the skill along the target release direction at the position already aimed by the position aiming device.
19. A computer device comprising a processor and a memory, the memory storing at least one computer program, the at least one computer program being loaded and executed by the processor to perform the operations performed by the control method of the virtual object as claimed in any one of claims 1 to 17.
20. A computer-readable storage medium storing at least one computer program, said at least one computer program being loaded and executed by a processor to perform the operations performed by the control method of the virtual object as claimed in any one of claims 1 to 17.
21. A computer program product comprising a computer program that, when executed by a processor, implements the operations performed by the control method for a virtual object as described in any one of claims 1 to 17.