Virtual object control method, device and electronic device
By displaying the skill release indicator control in the mobile control area of the multiplayer online tactical competitive game, the skill can be released automatically or manually, which solves the problem of high operation difficulty and improves game performance and experience.
Patent Information
- Application Number
- CN202110524808.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-13
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-05-13
AI Technical Summary
In multiplayer online tactical competitive games, users need to quickly and continuously operate multiple skill controls to attack the enemy, which makes the operation difficult and affects game performance and experience.
By displaying the skill release indicator control in the movement control area, the first skill and the second skill are automatically or manually released in response to specified attack conditions, allowing users to conveniently release multiple skills with coordinated operation of both hands.
It reduces the user's hand speed and operational familiarity requirements, improves game performance and experience, and reduces the need for fast finger movement through automatic release of skills.
Smart Images

Figure CN113244608B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a method, device and electronic equipment for controlling a virtual object. Background Art
[0002] In mobile games such as MOBA (Multiplayer Online Battle Arena), users usually operate the mobile control area with one hand to control the movement of the character, and operate the skill control with the other hand to control the release of skills. In some scenarios, in order to successfully attack the enemy, the hand that operates the skill control needs to operate multiple skill controls continuously in a very short time, so as to continuously release multiple skills; for example, by continuously releasing fast movement skills and attack skills, you can attack enemies at a distance. But this usually requires users to have a faster hand speed and be familiar with the skill release operation, otherwise, they may be attacked by the enemy during the skill release process. Therefore, the above-mentioned method of releasing multiple skills has a certain degree of operating difficulty and is likely to affect the user's game performance. Summary of the invention
[0003] In view of this, an object of the present invention is to provide a method, device and electronic device for controlling a virtual object, so as to conveniently and easily operate and release a variety of skills, thereby improving the user's gaming performance and enhancing the user's gaming experience.
[0004] In a first aspect, an embodiment of the present invention provides a method for controlling a virtual object, wherein a graphical user interface is provided through a terminal device, and the graphical user interface includes a movement control area, a first skill control, and a second skill control; the movement control area is used to control the movement of the virtual object; the first skill control is used to release a first skill to control the virtual object to perform an attack action, and the second skill control is used to release a second skill to control the virtual object to perform a preset displacement action; the method includes: in response to a specified attack condition, displaying a skill release indication control within a preset range of the movement control area; in response to a triggering operation of the skill release indication control, releasing the second skill to control the virtual object to perform a preset displacement action;
[0005] After executing the preset displacement action, the virtual object is automatically controlled to execute the first skill, or, after executing the preset displacement action, in response to a release event of the first skill, the virtual object is controlled to execute the first skill.
[0006] The above-mentioned specified attack condition includes: the virtual object continuously moves in one direction.
[0007] There is a target object in a first direction relative to the virtual object; and a direction difference between the first direction and the moving direction of the virtual object is within a first difference range.
[0008] The above-mentioned step of displaying a skill release indication control within a preset range of the mobile control area in response to a specified attack condition includes: in response to the specified attack condition, displaying the skill release indication control within a preset distance range in a second direction relative to the mobile control area; wherein the direction difference between the second direction and the moving direction of the virtual object is within a second difference range.
[0009] The above-mentioned specified attack conditions include: the distance between the virtual object and the target object in the virtual scene is less than or equal to the maximum attack range generated after the first skill and the second skill are released continuously.
[0010] The specified attack condition also includes: the first skill is in a pending release state; wherein, in the pending release state, the first skill control is selected.
[0011] The above-mentioned designated attack conditions also include: the distance between the virtual object and the target object in the virtual scene is less than or equal to the sum of the attack range of the first skill and the displacement of the second skill.
[0012] The above-mentioned step of controlling the virtual object to execute the first skill in response to the release event of the first skill after executing the preset displacement action includes: after executing the preset displacement action, in response to the release operation of the first skill control within a first specified time period, controlling the virtual object to execute the first skill.
[0013] A moving joystick is set in the above-mentioned moving control area; the skill release indication control is set outside the moving control area, and the distance between the skill release indication control and the moving control area is less than the first distance threshold; the triggering operation of the above-mentioned skill release indication control includes: after dragging the moving joystick to the edge of the moving control area, continue to drag the skill release indication control and release the skill release indication control.
[0014] The skill release indication control includes a second control.
[0015] The above-mentioned step of displaying a skill release indication control within a preset range of the mobile control area in response to the specified attack condition includes: in response to the specified attack condition, if the second skill is in a cooling state, displaying the skill release indication control in a specified display mode; wherein the specified display mode is used to indicate that the skill corresponding to the skill release indication control is in a cooling state.
[0016] In a second aspect, an embodiment of the present invention provides a control device for a virtual object, which provides a graphical user interface through a terminal device, and the graphical user interface includes a movement control area, a first skill control and a second skill control; the movement control area is used to control the movement of the virtual object; the first skill control is used to release the first skill to control the virtual object to perform an attack action, and the second skill control is used to release the second skill to control the virtual object to perform a preset displacement action; the device includes: a control display module, which is used to display a skill release indication control within a preset range of the movement control area in response to a specified attack condition; in response to a triggering operation of the skill release indication control, the second skill is released to control the virtual object to perform a preset displacement action; a skill release module, which is used to automatically control the virtual object to perform the first skill after performing the preset displacement action, or, after performing the preset displacement action, respond to a release event of the first skill to control the virtual object to perform the first skill.
[0017] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned virtual object control method.
[0018] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual object control method.
[0019] The embodiments of the present invention bring the following beneficial effects:
[0020] The control method, device and electronic device of the virtual object described above, in response to the specified attack condition, displays the skill release indication control within the preset range of the mobile control area; in response to the triggering operation of the skill release indication control, releases the second skill to control the virtual object to perform the preset displacement action; after performing the preset displacement action, automatically controls the virtual object to perform the first skill, or, after performing the preset displacement action, responds to the release event of the first skill to control the virtual object to perform the first skill. In this way, when the specified attack condition is reached, the skill release indication control is displayed within the preset range of the mobile control area, which can facilitate the user to operate the control with the finger that operates the mobile control area, thereby releasing the second skill, and the finger operation of the other hand releases the first skill, and continuously releases multiple skills by cooperating with both hands, or automatically releases the first skill after releasing the second skill. Without the need for the user to have a fast hand speed or be familiar with the skill operation, multiple skills can be conveniently and easily operated and released, which is conducive to improving the user's game performance and improving the user's game experience.
[0021] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0022] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0024] Figure 1 A flowchart of a method for controlling a virtual object provided by an embodiment of the present invention;
[0025] Figure 2 A schematic diagram of a display mode of a skill control provided by an embodiment of the present invention;
[0026] Figure 3 A schematic diagram of another display mode of a skill control provided by an embodiment of the present invention;
[0027] Figure 4 A schematic diagram of triggering operation of a skill control provided by an embodiment of the present invention;
[0028] Figure 5 A schematic diagram of the structure of a virtual object control device provided by an embodiment of the present invention;
[0029] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0031] The following is a brief description of the nouns used in this article:
[0032] Virtual Scene
[0033] It is a virtual scene displayed (or provided) when the application is running on a terminal or server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene. The virtual environment can be the sky, land, ocean, etc., wherein the land includes environmental elements such as deserts and cities. Among them, the virtual scene is a scene with complete game logic of virtual objects such as user control.
[0034] Virtual Objects
[0035] Refers to a dynamic object that can be controlled in a virtual scene. Optionally, the dynamic object can be a virtual character, a virtual animal, a cartoon character, etc. The virtual object is a character controlled by a player through an input device, or an artificial intelligence (AI) set in a virtual environment battle through training, or a non-player character (NPC) set in a virtual scene battle. Optionally, the virtual object is a virtual character competing in a virtual scene. Optionally, the number of virtual objects in the virtual scene battle is preset, or is dynamically determined according to the number of clients joining the battle, and the embodiment of the present application is not limited to this. In a possible implementation, the user can control the virtual object to move in the virtual scene, for example, control the virtual object to run, jump, crawl, etc., and can also control the virtual object to use the skills, virtual props, etc. provided by the application to fight with other virtual objects.
[0036] In competitive games or other types of mobile games, users are required to release multiple skills continuously. For example, if the user wants to attack an enemy at a long distance, he can first release the fast movement skill to control the character to quickly move near the enemy, and then release the attack skill to attack the enemy. These skill controls are usually placed in a similar area and are completed by one hand operating the skill control. In order to successfully attack the enemy, the user needs to operate multiple skill controls in succession at a faster hand speed, such as the above-mentioned fast movement skill and attack skill; if the attack skill is triggered slowly, the character controlled by the user will enter the enemy's skill attack range after moving near the enemy, and may be attacked by the enemy first, so the above-mentioned method of releasing multiple skills has a certain degree of operating difficulty and is easy to affect the user's game performance.
[0037] Based on the above, the embodiments of the present invention provide a method, device and electronic device for controlling a virtual object, which can be applied to competitive games or other types of related mobile games that require skill release operations. In this embodiment, the user can also be called a player.
[0038] In one embodiment of the present disclosure, the control method of the virtual object can be run on a terminal device or a server. The terminal device can be a local terminal device. When the control method of the virtual object is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0039] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the control method of the virtual object are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the terminal device for information processing is a cloud game server in the cloud. When playing the game, the user operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0040] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the user through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the user through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0041] In a possible implementation, an embodiment of the present invention provides a method for controlling a virtual object, providing a graphical user interface through a terminal device, wherein the terminal device may be the local terminal device mentioned above, or may be the client device in the cloud interaction system mentioned above. A graphical user interface is provided through the terminal device, and the graphical user interface includes a movement control area, a first skill control, and a second skill control; the movement control area is used to control the movement of the virtual object; the first skill control is used to release the first skill to control the virtual object to perform an attack action, and the second skill control is used to release the second skill to control the virtual object to perform a preset displacement action; the graphical user interface may also include a portion of a virtual scene, and a virtual object located in the virtual scene; the user controls the movement of the virtual object in the virtual scene by operating the movement control area; the user can release the first skill to control the virtual object to perform an attack action by operating the first skill control; the first skill can generate a damage value to a target object within the attack range; the user can release the second skill to control the virtual object to perform a preset displacement action by operating the second skill control; for example, the second skill can control the virtual object to quickly move a specified distance or move to a specified position.
[0042] See also Figure 1 A flow chart of a method for controlling a virtual object is shown; the method comprises the following steps:
[0043] Step S102, in response to the specified attack condition, displaying a skill release indication control within a preset range of the movement control area; in response to the triggering operation of the skill release indication control, releasing the second skill to control the virtual object to perform a preset displacement action;
[0044] The above-mentioned designated attack conditions can be preset, and the designated attack conditions can be related to parameters such as the position and distance of the virtual character, skill status, game duration, and game task completion process. The system can monitor in real time whether the current state of the virtual object meets the condition; in this embodiment, when the virtual object meets the condition, it means that the virtual object can release multiple skills to the target object and can successfully attack the target object.
[0045] Since in the graphical user interface of the mobile game, the mobile control area and the skill control are usually distributed on both sides of the graphical user interface, the user controls the mobile control area with one hand and the skill control with the other hand. In order to facilitate the user to release multiple skills, the skill release indicator control is displayed within the preset range of the mobile control area. The preset range can be set based on the mobile control area. Usually, the range value of the preset range is small, so that the skill release indicator control can be displayed near the mobile control area. For example, the mobile control area is usually set in an area in the graphical user interface that is convenient for the user's left hand to operate, and the skill control is usually set in an area in the graphical user interface that is convenient for the user's right hand to operate; at this time, the above-mentioned skill release indicator control is displayed near the mobile control area for the convenience of the user's left hand operation, and the above-mentioned first skill control is usually displayed in the graphical user interface according to the conventional setting, in an area that is convenient for the user's right hand to operate. In this case, the user can quickly release the first skill and the second skill.
[0046] In a specific implementation method, the specific display position of the skill release indication control can be determined according to the specific position of the user's finger operating the mobile control area when the virtual object reaches the specified attack condition, so that the user can quickly switch from controlling the mobile control area to the skill release indication control, thereby improving the user's operating efficiency and operating experience.
[0047] The skill release indication control is used to release the second skill. The skill release indication control can be a second skill control, or a control related to the second skill, but different from the second skill control. For example, the skill release indication control can be a control identifier of the second skill control, and is also used to trigger the second skill. When the skill release indication control is a second skill control, the second skill control can also be simultaneously displayed in the area where skill controls are conventionally displayed in the graphical user interface, for example, the area that is convenient for the user's right hand to operate, so that the user can more flexibly select the trigger position of the second skill. Of course, the second skill control can also be displayed only within the preset range of the mobile control area, and the second skill control is no longer displayed in other locations, or the second skill control can be displayed in other locations through a non-triggerable display method.
[0048] Step S104, after executing the preset displacement action, automatically controlling the virtual object to execute the first skill, or, after executing the preset displacement action, responding to the release event of the first skill, controlling the virtual object to execute the first skill.
[0049] After the second skill is released, the first skill can be automatically released, thereby controlling the virtual object to perform an attack action, so that the first skill and the second skill can be released continuously. In another method, the user needs to trigger the first skill and the second skill continuously, that is, release the second skill first, and then trigger the first skill control to release the first skill.
[0050] In actual implementation, a maximum time interval can be set. When the interval between the release time of the first skill and the release time of the second skill is less than or equal to the maximum time interval, it can be considered that the user has issued a continuous release of the first skill and the second skill. When releasing the first skill and the second skill, the first skill and the second skill can be released according to the triggering order of the triggering operation of the first skill control and the triggering operation of the second skill control. The release order of the first skill and the second skill can also be pre-specified. Regardless of which of the triggering operations of the first skill control and the triggering operation of the second skill control occurs first, the first skill and the second skill are released in the specified release order.
[0051] It should be noted that the above-mentioned first skill control may include one or more controls, and the above-mentioned second skill control may also include the first or more controls. The purpose of this embodiment is to distribute the corresponding multiple skill controls in positions where the user's two hands can cooperate with each other to operate when releasing skills continuously, so as to avoid the high operating difficulty caused by the user operating multiple skill controls with one hand when multiple skill controls are concentratedly distributed.
[0052] The control method of the virtual object described above, in response to the specified attack condition, displays the skill release indication control within the preset range of the mobile control area; in response to the triggering operation of the skill release indication control, releases the second skill to control the virtual object to perform the preset displacement action; after performing the preset displacement action, automatically controls the virtual object to perform the first skill, or, after performing the preset displacement action, responds to the release event of the first skill to control the virtual object to perform the first skill. In this method, when the specified attack condition is reached, the skill release indication control is displayed within the preset range of the mobile control area, which can facilitate the user to operate the control with the finger that operates the mobile control area, thereby releasing the second skill, and the finger of the other hand operates to release the first skill, and continuously releases multiple skills by cooperating with both hands, or automatically releases the first skill after releasing the second skill. Without the need for the user to have a fast hand speed or be familiar with the skill operation, multiple skills can be conveniently and easily operated and released, which is conducive to improving the user's game performance and improving the user's game experience.
[0053] For ease of understanding, Figure 2 and Figure 3 A comparative example is shown; wherein, Figure 2 All skill controls in the game are set in the right area of the graphical user interface and are controlled by the user's right finger. When you need to release the first skill and the second skill in succession, you need to first drag or click the first skill control with your right finger, then quickly move your finger to the second skill control, and continue to drag or click the second skill control with your finger. Figure 3, when the virtual object reaches the specified attack condition, the skill release indicator control is displayed outside the movement control area. When the first skill and the second skill need to be released continuously, the user needs to control the skill release indicator control with the left finger to release the second skill, and control the first skill control with the right finger, without the need for the same finger to move quickly between multiple controls. Alternatively, when the first skill and the second skill need to be released continuously, the user needs to control the skill release indicator control with the left finger to release the second skill, and then the first skill is automatically released, without the need to use the right hand to operate.
[0054] in addition, Figure 3 In the display, the second skill control is still displayed on the right, retaining this conventional operation method for users. When users are accustomed to operating multiple skill controls continuously with one hand, it is convenient for users to make flexible choices.
[0055] In a specific implementation, the above-mentioned specified attack condition includes: the virtual object continues to move in one direction. When the virtual object continues to move in one direction, it is more likely that the user has discovered the target object that needs to be attacked. At this time, the user will control the virtual object to continue to move in the direction of the target object. The target object can be an enemy virtual object, or a non-user character set in the scene, such as a monster. Specifically, a time length or a moving distance length can be pre-set. If the virtual object continues to move in one direction for a period of time that reaches the time length, or the distance of continuous movement reaches the moving distance length, it can be determined that the above-mentioned specified attack condition is triggered. By setting the specified attack condition, when the user has the intention to continuously release the first skill and the second skill, the skill release indication control can be displayed in time, which is convenient for the user to operate flexibly.
[0056] As can be seen from the above, when the virtual object continues to move in one direction, it is more likely that the user has discovered a target object that needs to be attacked. At this time, there is a target object in a first direction relative to the virtual object; the direction difference between the first direction and the moving direction of the virtual object is within a first difference range. The first direction can be determined based on the relative position of the virtual object and the target object. For example, the virtual object and the target object are connected by a line, and the direction indicated by the connecting line is the first direction. The moving direction of the virtual object is usually controlled by the moving control area operated by the user. Affected by the operation error, the moving direction of the virtual object may not be exactly the same as the first direction. If the direction difference between the moving direction of the virtual object and the first direction is within the first difference range, it can be considered that the moving direction of the virtual object is the same as the first direction, and there is a target object in the first direction relative to the virtual object.
[0057] Based on the above-mentioned specified attack condition, in response to the specified attack condition, a skill release indication control is displayed within a preset distance range in a second direction relative to the mobile control area; wherein the direction difference between the second direction and the moving direction of the virtual object is within the second difference range. Usually, a mobile joystick is provided in the mobile control area, and the user controls the mobile joystick to move in the mobile control area to control the movement of the virtual object. By controlling the position of the mobile joystick in the mobile control area, the moving direction of the virtual object in the virtual scene can be controlled. For example, if the mobile joystick is on the right side of the mobile control area, the virtual object moves to the right; if the mobile joystick is at the upper part of the mobile control area, the virtual object moves forward. Therefore, the position of the mobile joystick in the mobile control area corresponds to the moving direction of the virtual object. Based on this, a skill release indication control is displayed within a preset distance range in the second direction relative to the mobile control area.
[0058] For example, if the virtual object moves forward, the moving joystick is at the upper part of the moving control area. In this case, the skill release indicator is also displayed at the upper part of the moving control area, and the second direction is relative to the upper part of the moving control area. This makes it easier for the user to quickly move the finger from the moving joystick to the skill release indicator, facilitating operation and improving skill release efficiency.
[0059] In addition, taking into account the influence of manual operation errors, the second direction and the moving direction of the virtual object do not need to be exactly the same. The direction difference between the second direction and the moving direction of the virtual object can be within a second difference range. It is also possible to display the skill release indication control close to the user's finger, making it easier for the user to operate and release skills.
[0060] The above-mentioned designated attack conditions may also include: the first skill is in a state to be released; wherein, in the state to be released, the first skill control is selected. When the first skill control is selected but not released, it indicates that the user intends to release the first skill. At the same time, the virtual object continues to move in one direction, indicating that the user intends to continuously release the first skill and the second skill. In this method, the designated attack conditions include not only the continuous movement of the virtual object in one direction, but also the first skill is in a state to be released. This condition can more accurately determine that the user has the intention to continuously release multiple skills, thereby displaying the skill release indication control, which is conducive to the control being displayed at a more accurate time, thereby improving the accuracy of the user's skill release operation.
[0061] In another specific implementation, the above-mentioned specified attack condition includes: the distance between the virtual object and the target object in the virtual scene is less than or equal to the maximum attack range generated after the first skill and the second skill are released continuously. This condition is set with the distance between the virtual object and the target object in the virtual scene as a parameter. The maximum attack range generated after the first skill and the second skill are released continuously is usually larger than the attack range generated by the first skill or the second skill being released alone. In order to be able to attack the target object at a longer distance, the first skill and the second skill need to be released continuously at this time. When the distance between the virtual object and the target object in the virtual scene is less than the above-mentioned maximum attack range, it can be said that when the user releases the first skill and the second skill continuously at this time, the target object can be successfully attacked. Therefore, by setting the above-mentioned specified attack condition, the user can be guided to trigger the continuous release operation of the first skill and the second skill at a suitable position, thereby improving the hit rate of the user's attack target, thereby improving the user's game performance and game experience.
[0062] As an example, among the first skill and the second skill mentioned above, one of the skills can control the virtual object to move a specified moving distance, which can also be called a displacement skill, for example, skills such as "flash", "instant movement" and "fast movement", which can help the virtual object move quickly to the vicinity of the target object; the other skill can cause damage to the target object within a specified attack distance, which can also be called an attack skill, such as various skills that can cause damage to the target object; through the above-mentioned displacement skill, after the virtual object is moved to the vicinity of the target object, the target object will usually be located within the specified attack distance of the attack skill. At this time, the attack skill is released to the target object to cause damage to the target object.
[0063] Based on the above example of the first skill and the second skill, the specified attack condition specifically includes: the distance between the virtual object and the target object in the virtual scene is less than or equal to the sum of the attack range of the first skill and the displacement of the second skill. When the above specified attack condition is met, it can be said that when the user continuously releases the first skill and the second skill at the current position of the virtual object, the target object far away from the virtual object can be successfully attacked, thereby improving the user's game performance.
[0064] The above-mentioned designated attack condition may also be described in other ways. For example, the condition includes: the distance between the virtual object and the target object in the virtual scene, the difference between the distance and the designated attack range, is less than or equal to the designated moving distance.
[0065] The above-mentioned specified attack conditions may also include: the first skill is in a pending state; wherein, in the pending state, the first skill control is selected. When the first skill control is selected but not released, it indicates that the user has the intention to release the first skill. At the same time, the distance between the virtual object and the target object in the virtual scene is less than or equal to the maximum attack range generated after the first skill and the second skill are released continuously, indicating that the user can successfully attack the target object after continuously releasing the first skill and the second skill. In this way, the specified attack condition not only limits the distance between the virtual object and the target object, but also limits the first skill to be in a pending state. This condition can more accurately determine that the user has the intention to release multiple skills continuously, thereby displaying the skill release indication control, which is conducive to the control being displayed at a more accurate time, thereby improving the accuracy of the user's skill release operation.
[0066] In a specific implementation method, the above-mentioned step of controlling the virtual object to execute the first skill in response to the release event of the first skill after executing the preset displacement action can be achieved in the following way: after executing the preset displacement action, in response to the release operation of the first skill control within a first specified time period, the virtual object is controlled to execute the first skill.
[0067] The first specified duration here can be preset. If the time difference between the release operation of the first skill and the release operation of the second skill is less than or equal to the first specified duration, it can be considered that the user has triggered the continuous release operation of the first skill and the second skill. In actual implementation, when the second skill is released, a timer can be started. When the timing duration reaches the first specified duration, or before the first specified duration, the first skill is released, and it can be considered that the user has continuously released the first skill and the second skill. In this embodiment, since the first skill control and the skill release indication control can be controlled by the user's two hands, the operation time difference of the two controls is usually shorter than that of one hand operating the two controls, so as to quickly launch an attack on the target object and improve the user's game performance and game experience.
[0068] For the first and second skills that are released consecutively, if the target object can be successfully attacked no matter which skill is released first, the release order can be set; in this case, the skill whose skill control is triggered first will be released first. However, if one of the skills must be released first to successfully attack the target object, the first and second skills need to be preset with a specified release order; the release order between skills is no longer affected by the triggering order of the skill controls.
[0069] Specifically, when releasing the first skill and the second skill to the target object, if the time interval between the release time of the first skill and the release time of the second skill is less than or equal to the second specified time, the first skill and the second skill are released to the target object in the release order specified above; wherein the second specified time is less than or equal to the first specified time. Considering that the two skill controls in this embodiment are respectively controlled by two fingers of the user, human subjective control has a certain error. If the skills are released strictly in the triggering order of the skill controls, the release order of the skills may be wrong due to the user's misoperation, which may lead to the failure of attacking the target object. For example, if the first skill needs to be released first and then the second skill to successfully attack the target object, the user's two fingers may tap the two skill controls at the same time. Since the two skill controls need to be triggered continuously in a short period of time, it is very likely that the user will trigger the second skill control first and then the first skill control. At this time, the second skill will be released first, resulting in failure to attack the target object.
[0070] As an example, for displacement skills and attack skills, if you need to attack a target object at a long distance, you usually need to release the displacement skill first to move the virtual object to the vicinity of the target object, so that the target object is within the attack range of the attack skill, and then release the attack skill to successfully attack the target object. However, due to misoperation, the user releases the attack skill first, and the attack fails because the target object is far away and not within the attack range of the target; after releasing the attack skill, the displacement skill is released, and the virtual object is within the attack range of the target object, making it easier to be attacked by the target object.
[0071] In order to avoid the above problem, the time interval between the release time of the first skill and the release time of the second skill can be monitored. If the time interval is less than or equal to the second specified time, no matter which skill is released first, the first skill and the second skill are released to the target object in the above specified release order. This method provides users with a certain margin of error, is especially friendly to novice users, and improves the user's gaming experience.
[0072] In addition, the second specified duration is less than or equal to the first specified duration. If the time interval between the triggering operations of the first skill control and the second skill control is greater than the second specified duration but less than the first specified duration, it is still considered as a continuous release operation of the first skill and the second skill, but the first skill and the second skill can be released to the target object in the order of release of the first skill and the second skill. This method can provide users with a more flexible skill release method without excessive restrictions on skill release.
[0073] In order to further understand the relevant operations of this embodiment, Figure 4A specific example is shown. In the above embodiment, a moving joystick is set in the moving control area; the moving joystick moves in the moving control area. The skill release indicator control is set outside the moving control area, and the distance between the skill release indicator control and the moving control area is less than the first distance threshold; Figure 4 In the game, the user can control the movement of virtual objects in the virtual scene by dragging the mobile joystick in the mobile control area. When the specified attack condition is reached, if the user drags the mobile joystick to Figure 4 The location shown ( Figure 4 The skill release indicator control is displayed in the outer area of the mobile control area near the position indicated by the black arrow on the left side of the figure, so that the user can directly start dragging the skill release indicator control without changing the dragging direction after dragging the mobile joystick, or only slightly change the dragging direction. This operation has strong continuity and can improve the efficiency and convenience of control operation.
[0074] Based on the above, the triggering operation of the skill release indicator control specifically includes: after dragging the movement joystick to the edge of the movement control area, continue to drag the skill release indicator control and release the skill release indicator control. Figure 4 In the example, after the user drags the mobile joystick to the edge of the mobile control area, he / she continues to drag along the direction of the dotted arrow to implement the dragging operation on the second skill control, thereby triggering the second skill. In this process, the user's right hand drags the first skill control, and releases the first skill after the dragging ends.
[0075] In addition, considering that many skills have a cooldown time, in response to a specified attack condition, if the second skill is in a cooldown state, the skill release indicator control is displayed in a specified display mode; wherein the specified display mode is used to indicate that the skill corresponding to the skill release indicator control is in a cooldown state. For example, the skill release indicator control is displayed in a grayscale and non-triggerable manner. This method can prompt the user that the current virtual object meets the specified attack condition, but because the second skill is in a cooldown state, the second skill cannot be triggered.
[0076] Corresponding to the above method embodiment, see Figure 5 The schematic diagram of the structure of a control device for a virtual object is shown, wherein a graphical user interface is provided through a terminal device, and the graphical user interface includes a movement control area, a first skill control, and a second skill control; the movement control area is used to control the movement of the virtual object; the first skill control is used to release a first skill to control the virtual object to perform an attack action, and the second skill control is used to release a second skill to control the virtual object to perform a preset displacement action; the device includes:
[0077] The control display module 50 is used to display a skill release instruction control within a preset range of the movement control area in response to a specified attack condition; in response to a trigger operation of the skill release instruction control, release the second skill to control the virtual object to perform a preset displacement action;
[0078] The skill release module 52 is used to automatically control the virtual object to perform the first skill after performing a preset displacement action, or, after performing a preset displacement action, respond to a release event of the first skill and control the virtual object to perform the first skill.
[0079] The control device of the virtual object above, in response to the specified attack condition, displays a skill release indication control within the preset range of the mobile control area; in response to the triggering operation of the skill release indication control, releases the second skill to control the virtual object to perform a preset displacement action; after performing the preset displacement action, automatically controls the virtual object to perform the first skill, or, after performing the preset displacement action, responds to the release event of the first skill to control the virtual object to perform the first skill. In this method, when the specified attack condition is reached, the skill release indication control is displayed within the preset range of the mobile control area, which can facilitate the user to operate the control with the finger that operates the mobile control area, thereby releasing the second skill, and the finger of the other hand operates to release the first skill, and continuously release multiple skills by cooperating with both hands, or automatically release the first skill after releasing the second skill. Without the need for the user to have a fast hand speed or be familiar with the skill operation, multiple skills can be conveniently and easily operated and released, which is conducive to improving the user's game performance and improving the user's game experience.
[0080] The above-mentioned specified attack condition includes: the virtual object continuously moves in one direction.
[0081] There is a target object in the first direction relative to the virtual object; and a direction difference between the first direction and the moving direction of the virtual object is within a first difference range.
[0082] The above-mentioned control display module is also used to: in response to a specified attack condition, display a skill release indication control within a preset distance range in a second direction relative to the moving control area; wherein the direction difference between the second direction and the moving direction of the virtual object is within a second difference range.
[0083] The above-mentioned specified attack conditions include: the distance between the virtual object and the target object in the virtual scene is less than or equal to the maximum attack range generated after the first skill and the second skill are released continuously.
[0084] The above-mentioned designated attack conditions also include: the first skill is in a waiting-to-release state; wherein, in the waiting-to-release state, the first skill control is selected.
[0085] The above-mentioned designated attack conditions also include: the distance between the virtual object and the target object in the virtual scene is less than or equal to the sum of the attack range of the first skill and the displacement of the second skill.
[0086] The skill release module is also used to: after executing a preset displacement action, in response to a release operation of a first skill control within a first specified time period, control the virtual object to execute a first skill.
[0087] A moving joystick is set in the above-mentioned moving control area; the skill release indication control is set outside the moving control area, and the distance between the skill release indication control and the moving control area is less than the first distance threshold; the triggering operation of the above-mentioned skill release indication control includes: after dragging the moving joystick to the edge of the moving control area, continue to drag the skill release indication control and release the skill release indication control.
[0088] The skill release indication control includes a second control.
[0089] The above-mentioned control display module is also used to: in response to specified attack conditions, if the second skill is in a cooling state, display the skill release indication control in a specified display mode; wherein the specified display mode is used to indicate that the skill corresponding to the skill release indication control is in a cooling state.
[0090] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned virtual object control method. The electronic device can be a server or a terminal device.
[0091] See also Figure 6 As shown, the electronic device includes a processor 100 and a memory 101, wherein the memory 101 stores machine executable instructions that can be executed by the processor 100, and the processor 100 executes the machine executable instructions to implement the above-mentioned virtual object control method.
[0092] Further, Figure 6 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0093] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0094] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.
[0095] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned virtual object control method.
[0096] The computer program product of the virtual object control method, device, electronic device and storage medium provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0097] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0098] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0099] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0100] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0101] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A method for controlling a virtual object, characterized in that: A graphical user interface is provided through a terminal device, the graphical user interface comprising a movement control area, a first skill control and a second skill control; the movement control area is used to control the movement of a virtual object; the first skill control is used to release a first skill to control the virtual object to perform an attack action, and the second skill control is used to release a second skill to control the virtual object to perform a preset displacement action; the method comprises: In response to the specified attack condition, a skill release indication control is displayed within a preset range of the movement control area; in response to the triggering operation of the skill release indication control, a second skill is released to control the virtual object to perform a preset displacement action; After executing the preset displacement action, the virtual object is automatically controlled to execute the first skill; or, after executing the preset displacement action, in response to a release event of the first skill, the virtual object is controlled to execute the first skill, wherein the release event includes a release operation on the first skill control within a first specified time period.
2. The method according to claim 1, characterized in that: The specified attack condition includes: the virtual object continuously moves in a direction.
3. The method according to claim 2, characterized in that There is a target object in a first direction relative to the virtual object; and a direction difference between the first direction and the moving direction of the virtual object is within a first difference range.
4. The method according to claim 2, characterized in that: In response to the specified attack condition, the step of displaying a skill release indication control within a preset range of the movement control area comprises: In response to a specified attack condition, a skill release indication control is displayed within a preset distance range in a second direction relative to the movement control area; wherein a direction difference between the second direction and the movement direction of the virtual object is within a second difference range.
5. The method according to claim 1, characterized in that The designated attack condition includes: the distance between the virtual object and the target object in the virtual scene is less than or equal to the maximum attack range generated after the first skill and the second skill are released continuously.
6. The method according to claim 2 or 5, characterized in that: The designated attack condition also includes: the first skill is in a pending release state; wherein, in the pending release state, the first skill control is selected.
7. The method according to claim 5, characterized in that The designated attack condition also includes: the distance between the virtual object and the target object in the virtual scene is less than or equal to the sum of the attack range of the first skill and the displacement of the second skill.
8. The method according to claim 1, characterized in that A moving joystick is provided in the moving control area; the skill release indication control is provided outside the moving control area, and the distance between the skill release indication control and the moving control area is less than a first distance threshold; The triggering operation of the skill release indication control includes: after dragging the movement joystick to the edge of the movement control area, continuing to drag the skill release indication control and releasing the skill release indication control.
9. The method according to claim 1, characterized in that: The skill release indication control includes the second skill control.
10. The method according to claim 1, characterized in that In response to the specified attack condition, the step of displaying a skill release indication control within a preset range of the movement control area comprises: In response to a specified attack condition, if the second skill is in a cooling state, the skill release indication control is displayed in a specified display mode; wherein the specified display mode is used to indicate that the skill corresponding to the skill release indication control is in a cooling state.
11. A control device for a virtual object, characterized in that: A graphical user interface is provided through a terminal device, the graphical user interface comprising a movement control area, a first skill control and a second skill control; the movement control area is used to control the movement of a virtual object; the first skill control is used to release a first skill to control the virtual object to perform an attack action, and the second skill control is used to release a second skill to control the virtual object to perform a preset displacement action; the device comprises: A control display module, configured to display a skill release indication control within a preset range of the movement control area in response to a specified attack condition; and in response to a triggering operation of the skill release indication control, release a second skill to control the virtual object to perform a preset displacement action; A skill release module is used to automatically control the virtual object to perform the first skill after performing the preset displacement action, or, after performing the preset displacement action, respond to a release event of the first skill to control the virtual object to perform the first skill, wherein the release event includes a release operation for the first skill control within a first specified time period.
12. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method for controlling a virtual object according to any one of claims 1 to 10.
13. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the virtual object control method according to any one of claims 1 to 10.
