Method, device, and computer program for controlling virtual objects
The method improves control precision in network games by displaying a skill release indicator during the first skill's execution, enabling accurate targeting through aligned aiming and release positions for enhanced user interaction.
Patent Information
- Application Number
- JP2023219097
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-05-14
- Filing Date
- 2023-12-26
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2041-10-21
AI Technical Summary
Existing network game technologies, particularly in multiplayer online battle arena games, suffer from relatively low control precision for virtual objects, affecting user experience.
A method and apparatus for controlling virtual objects that involves releasing a first skill, acquiring a second operation during the first skill's release, displaying a skill release indicator based on the second position, and controlling the virtual object to release the second skill at the indicated action range after the first skill is completed.
This approach enhances control precision by ensuring the aiming position and release position of the second skill align, allowing accurate targeting of objects within the action range, thereby improving user interaction in network games.
Smart Images

Figure 0007601451000001 
Figure 0007601451000002 
Figure 0007601451000003
Abstract
Description
[Technical field]
[0001] TECHNICAL FIELD The present disclosure relates to the field of computer technology, and more particularly to a method, device, and apparatus for controlling a virtual object, and a computer-readable storage medium.
[0002] This application claims priority to a Chinese patent application filed on May 14, 2021, bearing application number 202110526815.3, and entitled "Virtual object control method, device, apparatus, and computer-readable storage medium," the entire contents of which are incorporated herein by reference. [Background technology]
[0003] Multiplayer online network game methods are being welcomed by more and more users, such as Multiplayer Online Battle Arena Games (MOBA).
[0004] In the network game method where multiple players play online, the operability of the network game has become an important factor to attract users.
[0005] Therefore, there is a need to provide a method for controlling a virtual object to improve the precision of the control over a first virtual object. Summary of the Invention [Problem to be solved by the invention]
[0006] The embodiments of the present application provide a method, an apparatus, a device, and a computer-readable storage medium for controlling a virtual object, which can be used to solve the problem that the control precision of a first virtual object in the related art is relatively low. [Means for solving the problem]
[0007] In one aspect, embodiments of the present application provide a method for controlling a virtual object, the method being performed by an electronic device, the method comprising: controlling a first virtual object to release a first skill in response to a first operation on a first skill control, the first skill being used to move the first virtual object from a first position to a second position; Obtaining a second operation on a second skill control during a period when the first virtual object releases the first skill; In response to the second operation, displaying a skill release indicator of a second skill based on the second position, the skill release indicator being used to indicate an action range when the second skill is released; and controlling the first virtual object to release the second skill at the second position according to the action range after the first virtual object has completed the release of the first skill.
[0008] In another aspect, an embodiment of the present application provides a device for controlling a virtual object, the device including: a control unit, an acquisition unit, and a display unit; the control unit is adapted to control a first virtual object to release a first skill in response to a first operation on a first skill control, the first skill being adapted to cause the first virtual object to reach a second position from a first position; The acquisition unit is used for acquiring a second operation for a second skill control during a period when the first virtual object releases the first skill; the display unit is used to display a skill release indicator of a second skill based on the second position in response to the second operation, and the skill release indicator is used to indicate an action range when the second skill is released; The control unit is further used for controlling the first virtual object to release the second skill at the second position according to the action range after the first virtual object completes the release of the first skill.
[0009] In another aspect, an embodiment of the present application provides an electronic device, the electronic device including a processor and a memory, at least one program code stored in the memory, the at least one program code being loaded and executed by the processor to cause the electronic device to realize any one of the above-mentioned virtual object control methods. Illustratively, the electronic device is installed as a terminal.
[0010] In another aspect, a non-transitory computer-readable storage medium is further provided, the non-transitory computer-readable storage medium having at least one program code stored therein, the at least one program code being loaded and executed by a processor to cause a computer to realize any one of the above-described methods for controlling a virtual object.
[0011] In another aspect, there is further provided a computer program or computer program product, the computer program or computer program product having at least one computer instruction stored therein, the at least one computer instruction being loaded and executed by a processor to cause a computer to realize any of the above methods for controlling a virtual object. Effect of the Invention
[0012] The technical means provided by the embodiment of the present application displays a skill release indicator of the second skill based on the second position after the first virtual object obtains a second operation on the second skill control during the period when the first virtual object releases the first skill. The second skill release indicator is for indicating the action range when the second skill is released. Therefore, the method can achieve the objective of predetermining the action range when the second skill is released. After the first virtual object completes the release of the first skill, the second skill is released according to the action range at the second position, so that the aiming position of the second skill and the release position of the second skill are the same position. The second skill released in this manner can attack the attacked object within the action range, and can further improve the accuracy of control over the first virtual object. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a schematic diagram of an implementation environment of a virtual object control method provided by an embodiment of the present application. [Diagram 2] 1 is a flowchart of a method for controlling a virtual object provided by an embodiment of the present application; [Diagram 3] FIG. 2 is a schematic diagram of a display page of an application program provided by an embodiment of the present application; [Figure 4] FIG. 2 is a schematic diagram of an operation interface of a first virtual object provided by an embodiment of the present application; [Diagram 5] FIG. 2 is a schematic diagram of determining a moving direction of a first virtual object provided by an embodiment of the present application; [Figure 6] FIG. 2 is a schematic diagram of a process of determining a second position after a first virtual object releases a directional skill provided by an embodiment of the present application; [Figure 7] FIG. 13 is a schematic diagram showing a second position displayed in a target shape according to an embodiment of the present application. [Figure 8] FIG. 13 is a schematic diagram showing the range of action when releasing a directional skill provided by an embodiment of the present application. [Figure 9]FIG. 2 is a schematic diagram showing the range of effect when releasing a sector-shaped skill provided by an embodiment of the present application; [Figure 10] FIG. 2 is a schematic diagram showing the range of action when releasing a circular skill provided by an embodiment of the present application. [Figure 11] FIG. 2 is a schematic diagram of the release of a second skill provided by an embodiment of the present application. [Figure 12] 1 is a flowchart of a method for controlling a virtual object provided by an embodiment of the present application; [Figure 13] FIG. 2 is a structural schematic diagram of a virtual object control device provided by an embodiment of the present application; [Figure 14] FIG. 2 is a structural schematic diagram of a terminal provided by an embodiment of the present application; [Figure 15] FIG. 2 is a structural schematic diagram of a server provided by an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] In order to make the objectives, technical means and advantages of the present application clearer, the embodiments of the present application will be described in more detail below in conjunction with the drawings.
[0015] To facilitate understanding, first, some nouns related to the embodiments of the present application will be explained.
[0016] Virtual scene: a scene provided (or displayed) when an application program is executed on a terminal, the virtual scene being a scene created for virtual objects to act upon. The virtual scene may be a 2D virtual scene, a 2.5D virtual scene, a 3D virtual scene, or the like. The virtual scene may be a simulation scene for the real world, a semi-simulated semi-fictional scene, or a purely fictional scene. Illustratively, the virtual scene in the embodiment of the present application is a 3D virtual scene. Illustratively, the virtual scene may also be referred to as a virtual environment.
[0017] Virtual object: A virtual object refers to an actionable object in a virtual scene. The actionable object may be a virtual character, a virtual animal, an animated character, etc. An interaction object can manipulate the virtual object by a peripheral part or by clicking on a touch display screen. Each virtual object has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. For example, when the virtual scene is a three-dimensional virtual scene, the virtual object is a three-dimensional solid model created based on skeletal animation technology.
[0018] An embodiment of the present application provides a method for controlling a virtual object, and a schematic diagram of an implementation environment of the method for controlling a virtual object provided by the embodiment of the present application is shown in FIG. 1. The implementation environment includes a terminal 11 and a server 12.
[0019] Here, an application program capable of providing a virtual scene is installed in the terminal 11. The terminal 11 can control a first virtual object to release (also called "cast" or "activate") a first skill based on a first operation on a first skill control, obtain a second operation on a second skill control during a period when the first virtual object releases the first skill, and in response to the second operation, display a skill release indicator of the second skill based on a second position, and control the first virtual object to release the second skill according to an action range at the second position.
[0020] The embodiments of the present application do not limit the type of application program capable of providing a virtual scene, and illustratively, the application program capable of providing a virtual scene refers to a game application program, such as a Third-Person Shooting (TPS) game, a First-Person Shooting (FPS) game, a Multiplayer Online Battle Arena (MOBA) game, and a multiplayer shooter survival game. In an exemplary embodiment, the game application program related to the embodiments of the present application is a game application program based on frame synchronization. That is, the method of controlling a virtual object provided by the embodiments of the present application can be applied to a game application program based on frame synchronization.
[0021] Of course, in addition to game-type application programs, application programs capable of providing virtual scenes may be other types of application programs, such as virtual reality (VR) type application programs, augmented reality (AR) type application programs, 3D map programs, military simulation programs, social type application programs, and interactive entertainment type application programs.
[0022] The server 12 is used to provide background services for application programs that can provide virtual scenes installed on the terminals 11. In one possible implementation, the server 12 is responsible for main computation tasks, and the terminals 11 are responsible for secondary computation tasks, or the server 12 is responsible for secondary computation tasks, and the terminals 11 are responsible for main computation tasks, or a distributed computing architecture is adopted between the server 12 and the terminals 11 to perform collaborative computing.
[0023] In one possible implementation, the terminal 11 is any kind of electronic product that can perform man-machine interaction with a user through one or more ways such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device, such as a PC (Personal Computer), a mobile phone, a smartphone, a PDA (Personal Digital Assistant), a wearable device, a pocket PC PPC (Pocket PC), a tablet PC, a smart in-vehicle infotainment, a smart TV, and a smart speaker. The server 12 can be a server, a server cluster consisting of multiple server units, or even a cloud computing service center. The terminal 11 and the server 12 establish a communication connection through a wired or wireless network.
[0024] As can be understood by those skilled in the art, the above terminal 11 and server 12 are merely examples, and other current or future terminals or servers, if applicable to the present application, should be included within the scope of protection of the present application and are hereby incorporated by reference.
[0025] Based on the implementation environment shown in Fig. 1, an embodiment of the present application provides a method for controlling a virtual object. The method is executed by an electronic device, which may be a terminal 11 or a server 12. The embodiment of the present application takes the method as an example applied to the terminal 11. As shown in Fig. 2, the method provided by the embodiment of the present application includes the following steps 201 to 204.
[0026] In step 201, in response to a first operation of a first skill control, a first virtual object is controlled to release a first skill, and the first skill is used to make the first virtual object reach a second position from a first position.
[0027] The embodiment of the present application is executed by a terminal, and an application program (abbreviated as application program) capable of providing a virtual environment is installed on the terminal. In response to a user's click operation on the application program, the terminal displays a display page of the application program. A plurality of virtual objects are displayed on the display page, and the plurality of virtual objects are virtual objects already acquired by an account corresponding to a user who logs in to the terminal. As shown in FIG. 3, it is a schematic diagram of a display page of an application program provided by an embodiment of the present application, and six virtual objects are displayed in FIG. 3, which are Hero 1, Hero 2, Hero 3, Hero 4, Hero 5, and Hero 6, respectively. The embodiment of the present application does not limit the number of virtual objects to be displayed, and when the number of virtual objects is multiple and all the virtual objects cannot be displayed on the display page, the display page may include a slide control, and when it is detected that the slide control is slid, the displayed virtual object is replaced.
[0028] In response to a user's selection command for any one of the plurality of virtual objects, the terminal displays the selected virtual object in the area 301 in FIG. 3. The selected virtual object is dynamically displayed in the area 301, and in response to receiving a selection command for the "start game" control 302, the terminal determines the virtual object selected by the user as a first virtual object. As shown in FIG. 3, in response to a user's selection of hero 1 from the plurality of virtual objects, hero 1 is dynamically displayed in the area 301. In FIG. 3, it is merely a randomly captured image of one frame, but in actual operation, hero 1 is dynamically displayed in the area 301. In response to a user's selection command for the "start game" control 302, the terminal determines hero 1 as a first virtual object and displays an operation interface for the first virtual object.
[0029] As shown in FIG. 4, it is a schematic diagram of an operation interface of a first virtual object provided by an embodiment of the present application. In the operation interface of FIG. 4, a scene screen of a virtual scene in which a first virtual object is located is displayed, and the first skill includes a displacement skill and a teleport skill, and a displacement skill control 411, a teleport skill control 412 and a second skill control 401 are displayed on the scene screen. Here, the displacement skill control 411 is used to control the release of the displacement skill, and the teleport skill control 412 is used to control the release of the teleport skill. The second skill control 401 is used to control the release of the second skill. The second skill is an aiming skill. The displacement skill and the teleport skill are both used to make the first virtual object reach a second position from a first position. The first position is the location of the first virtual object when the first skill control is triggered, and the second position is the location of the first virtual object when the release of the first skill is completed.
[0030] Exemplarily, the control referred to in the embodiments of the present application may refer to a push button, a triggerable icon, etc., and the embodiments of the present application are not limited thereto. For example, if the control refers to a push button, the first skill control refers to the first skill push button, the displacement skill control refers to the displacement skill push button, the teleport skill control refers to the teleport skill push button, and the second skill control refers to the second skill push button.
[0031] When the first virtual object releases a displacement skill, the movement process of the first virtual object from the first position to the second position is visible, i.e., the arrival method that can correspond to the displacement skill is an arrival method with a movement trajectory. The displacement skill is used to make the first virtual object walk from the first position to the second position, or the displacement skill is used to make the first virtual object fly from the first position to the second position. When the first virtual object releases a teleport skill, the movement process of the first virtual object from the first position to the second position is invisible, i.e., the arrival method that can correspond to the teleport skill is an arrival method without a movement trajectory. The teleport skill includes any one of instantaneous movement and flash.
[0032] In one possible implementation form, the first operation on the first skill control is an operation of dragging the first skill control. The first skill includes any one of a displacement skill and a teleport skill, and the displacement skill and the teleport skill cannot be released at the same time. That is, even if a first operation on the teleport skill control is received after responding to the first operation on the displacement skill control, the teleport skill is not released. The first skill control includes a displacement skill control and a teleport skill control. There are two types of methods for controlling the first virtual object to release the first skill in response to the first operation on the first skill control.
[0033] Method 1: In response to a first operation on a displacement-type skill control, a first virtual object is controlled to release a displacement-type skill.
[0034] In one possible implementation, when the first virtual object releases a displacement-type skill, the second position of the first virtual object after the first virtual object releases the displacement-type skill is determined based on the type of displacement-type skill released by the first virtual object.
[0035] In one possible implementation, the displacement skill includes any one of a directional skill, a target point skill, and a follow-up skill. In response to the first operation on the displacement skill control, controlling the first virtual object to release the displacement skill is in the following three situations:
[0036] Situation 1: In response to the type of the displacement skill released by the first virtual object being a directional skill, the first virtual object is controlled to release the directional skill.
[0037] In one possible implementation, the second position of the first virtual object after releasing the directional skill is determined based on the first position, the moving distance and the moving direction corresponding to the directional skill. Illustratively, the first position may also be referred to as the original position of the first virtual object. That is, the second position of the first virtual object after releasing the directional skill is determined based on the original position of the first virtual object, the moving distance and the moving direction corresponding to the directional skill.
[0038] In one possible implementation, in response to the first skill released by the first virtual object being a directional skill, the process of determining the second position after the first virtual object releases the directional skill is as follows: determine a moving direction and moving distance of the first virtual object, and determine a second position after the first virtual object releases the directional skill according to the original position, moving direction and moving distance of the first virtual object.
[0039] In one possible implementation, the process of determining the moving direction of the first virtual object is as follows: In response to the displacement skill being a directional skill, the user continuously drags the displacement skill control, and an arrowed direction is displayed on the operation interface of the first virtual object with the first virtual object as the origin. The arrowed direction changes with the user's movement on the displacement skill control. The direction is the moving direction of the first virtual object, and when the user releases the displacement skill control, the terminal determines the direction when the user releases the displacement skill control as the moving direction of the first virtual object.
[0040] As shown in FIG. 5, a schematic diagram of the movement direction of a first virtual object provided by an embodiment of the present application is shown. In FIG. 5, a control 501 is a displacement skill control, and the displacement skill is a directional skill. When a user triggers the control 501, a shaded area appears on the control, and when the user moves away from the control 501, the shaded area disappears. When a user drags the control 501, a black arrow 502 may be displayed on the control 501. The black arrow 502 is used to display the direction in which the first virtual object will move, and when the user is satisfied with the direction, the user releases the control 501, and the terminal displays the movement direction 503 of the first virtual object. When the user is not satisfied with the direction, the user continues to drag the control 501, and when a direction that the user is satisfied with appears, the user releases the control 501.
[0041] In one possible implementation, after determining the moving direction of the first virtual object, it is necessary to further obtain the moving distance of the first virtual object. The moving distance of the first virtual object in one go is fixed and is set by the developer of the application program during development. The moving distances corresponding to different virtual objects are not the same, and the terminal obtains the moving distance of the first virtual object based on the object identifier of the first virtual object. Furthermore, based on the original position, moving direction and moving distance of the first virtual object, the terminal determines a second position after the first virtual object releases the directional skill.
[0042] In one possible implementation form, the process of determining a second position of the first virtual object after releasing the directional skill based on an original position, a moving direction, and a moving distance of the first virtual object is as follows: determining an initial position based on an original position, a moving distance, and a moving direction of the first virtual object, and in response to the initial position being valid, determining the initial position as the second position of the first virtual object after releasing the directional skill; and in response to the initial position being invalid, determining a second position of the first virtual object after releasing the directional skill based on the initial position.
[0043] Exemplarily, the process of determining whether the initial position is valid is as follows: if the initial position meets the condition that it is invalid, the initial position is invalid; if the initial position does not meet the condition that it is invalid, the initial position is valid; the condition that it is invalid can be flexibly set by the developer of the application program, and the embodiment of the present application does not limit this. In some embodiments, the condition that the initial position meets is invalid refers to the initial position exceeding the boundary of the virtual scene or the initial position being a wall in the virtual scene. That is, if the initial position exceeds the boundary of the virtual scene, the initial position is invalid, and if the initial position is a wall in the virtual scene, the initial position is invalid. The initial positions in other situations are all valid positions.
[0044] In one possible implementation, in response to the initial position being invalid, the process of determining a second position of the first virtual object after releasing the directional skill based on the initial position is as follows: determine a target area based on the initial position, and determine any one of the valid positions within the target area as the second position of the first virtual object after releasing the directional skill.
[0045] Exemplarily, the process of determining the target area based on the initial position is as follows: A target circle is determined by using the initial position as the circle center and the target length as the radius, and the area corresponding to the target circle is determined as the target area. The target length is an arbitrary length, and the embodiment of the present application is not limited thereto. The shorter the target length, the closer the second position of the determined first virtual object after releasing the directional skill is to the initial position, and the closer it is to the initial position.
[0046] As shown in Fig. 6, a schematic diagram of a process of determining a second position of a first virtual object after releasing a directional skill provided by an embodiment of the present application is shown. In Fig. 6, position 601 is a determined initial position. Because the initial position is invalid, a target circle 602, i.e., the shaded part in Fig. 6, is obtained by taking the initial position as the circle center and the target length as the radius, and a position 603 in the target circle is determined as the second position of the first virtual object after releasing a directional skill.
[0047] It should be noted that the shape of the target area may be other shapes, and the embodiments of the present application simply use the target area shape as a circle as an example, but do not limit the shape of the target area.
[0048] Situation 2: In response to the type of the displacement skill released by the first virtual object being a target point skill, the first virtual object is controlled to release the target point skill.
[0049] In one possible implementation, the second position of the first virtual object after releasing the target point skill is determined based on the first target point corresponding to the target point skill. Exemplarily, the position of the first target point corresponding to the target point skill is determined as the second position of the first virtual object after releasing the target point skill. Exemplarily, the position of the first target point is a preset position.
[0050] The target point skill is used to instruct the first virtual object to move from a first position to a second position within a first time period, and to display the movement trajectory of the first virtual object. Exemplarily, the first position may further be referred to as the original position of the first virtual object. That is, the target point skill is used to instruct the first virtual object to move from the original position of the first virtual object to the position of the first target point within a first time period, and the movement process is visible. The movement process being visible refers to the user being able to see the movement trajectory of the first virtual object on the operation interface.
[0051] It is necessary to explain that the duration of the first time period can be any duration, and the embodiment of the present application is not limited thereto. For example, the duration of the first time period is 10 seconds, and for example, the duration of the first time period is 5 seconds.
[0052] It is further necessary to explain that, when responding that the type of the displacement skill is a directional skill or a target point skill, the movement process of the first virtual object is visible, so a situation in which the first virtual object is blocked or dragged during the movement process may occur. The first virtual object is controlled to release the directional skill or the target point skill, and the second position after the first virtual object releases the directional skill or the target point skill is determined based on the position of the first virtual object when it is blocked during the movement process. That is, when it is detected that the first virtual object is blocked by the fourth virtual object during the movement process, the position of the first virtual object when it is blocked is determined as the second position.
[0053] Alternatively, the first virtual object is controlled to release a directional skill or a target point skill, and the second position after the first virtual object releases the directional skill or the target point skill is determined based on the position of the destination point to which the first virtual object is dragged. That is, when it is detected that the first virtual object is being dragged by the fifth virtual object during the movement process, the position of the destination point to which the first virtual object is dragged is determined as the second position.
[0054] Situation 3: In response to the type of the displacement skill released by the first virtual object being a follow-type skill, the first virtual object is controlled to release a follow-type skill.
[0055] In one possible implementation, the second position of the first virtual object after releasing the follow-type skill is determined based on a third virtual object that the first virtual object follows.
[0056] In one possible implementation form, when responding that the type of the displacement skill released by the first virtual object is a follow-type skill, the user must first determine one third virtual object to follow before triggering the displacement skill control. The third virtual object may be an enemy virtual object or a friendly virtual object, and the embodiment of the present application is not limited thereto, but it is necessary to determine that the third virtual object is located in the virtual scene where the first virtual object is located. Exemplarily, the process of the user determining the third virtual object is as follows: The user arbitrarily selects one virtual object from a plurality of virtual objects displayed in the operation interface of the first virtual object, and the terminal determines the virtual object selected by the user as the third virtual object. In response to the terminal receiving the first operation on the displacement skill control, the terminal determines the location of the third virtual object after the first virtual object releases the first skill as the second location after the first virtual object releases the first skill.
[0057] Method 2: In response to a first operation on a teleport-like skill control, a first virtual object is controlled to release a teleport-like skill.
[0058] In one possible implementation, when the first virtual object releases a teleportation skill, the second position of the first virtual object after the teleportation skill is determined based on a second target point corresponding to the teleportation skill. Illustratively, the position of the second target point corresponding to the teleportation skill is determined as the second position of the first virtual object after the teleportation skill is released.
[0059] The teleport skill is used to instruct the first virtual object to move from a first position to a second position within the second time period, and to hide the movement trajectory of the first virtual object. Exemplarily, the first position may be further referred to as the original position of the first virtual object. That is, the teleport skill is used to instruct the first virtual object to move from the original position of the first virtual object to the position of the second target point within the second time period, and the movement process is not visible. The position of the second target point is also a preset position. That is, regardless of where the original position of the first virtual object is, if the user triggers the teleport skill control, the first virtual object needs to move from the original position to the position of the second target point within the second time period. The movement process is not visible means that the user cannot see the movement trajectory of the first virtual object on the operation interface.
[0060] It is necessary to explain that the duration of the second time period can be any duration, and the embodiment of the present application is not limited thereto. For example, the duration of the second time period is 10 seconds, and for example, the duration of the second time period is 5 seconds.
[0061] It is further necessary to explain that the duration of the first time period and the duration of the second time period may or may not be the same, and the embodiment of the present application does not limit this. The position of the first target point and the position of the second target point may or may not be the same, and the embodiment of the present application does not limit this.
[0062] In one possible embodiment, after determining the second position after the first virtual object releases the first skill, the second position may be further displayed in a target shape. The target shape is used to indicate that the second position is the location of the first virtual object after the first skill is released. As shown in FIG. 7, a schematic diagram of displaying the second position in a target shape provided by an embodiment of the present application is shown. In FIG. 7, position 701 is the second position, and the second position is displayed in a heart shape. Of course, the second position may be displayed in other shapes, and FIG. 7 simply takes the heart shape as an example of the target shape, and does not limit the target shape.
[0063] In one possible implementation, after determining the second position, an object can be placed at the second position, thereby representing the location of the first virtual object after completing the release of the first skill. The object can be a virtual object or other object, and the embodiment of the present application is not limited thereto, but the object is not displayed on the operation interface of the first virtual object. That is, the user cannot see the object on the operation interface of the first virtual object.
[0064] In one possible implementation, virtual objects in the friend team and enemy team of the first virtual object are further displayed on the operation interface of the first virtual object. Here, the friend team is the team where the first virtual object is located, and the enemy team is the team that the first virtual object is going to attack. For example, 402 in FIG. 4 is the first virtual object, 403 is the virtual object in the friend team of the first virtual object, and 404 and 405 are the virtual objects in the enemy team of the first virtual object. A map of the entire virtual scene is further displayed on the operation interface of the first virtual object. For example, the area 406 in FIG. 4 is the map of the entire virtual scene, and the map of the virtual scene can be enlarged and displayed in response to a selection operation on the area 406, thereby providing a better game experience for the user.
[0065] Of course, the hit points of each virtual object, that is, the fighting power of each virtual object, is further displayed on the operation interface of the first virtual object. Taking the fighting power of the first virtual object as an example, 407 in FIG. 4 is used to indicate the total fighting power of the first virtual object, and 408 in FIG. 4 is used to indicate the current remaining fighting power of the first virtual object. In order to distinguish between the friendly team and the enemy team, when displaying the fighting power of the virtual objects, the fighting power of the virtual objects in the friendly team is displayed in black, and the fighting power of the virtual objects in the enemy team is displayed in gray. This allows the user to easily distinguish between the friendly team and the enemy team. Of course, the fighting power of the virtual objects in the friendly team and the enemy team may be displayed in other colors. The embodiment of the present application is described simply by taking black and gray as an example, but is not limited thereto. The display form of the fighting power of other virtual objects is the same as the display form of the fighting power of the first virtual object, and will not be described in detail again here.
[0066] In one possible embodiment, the combat ratio between the friendly team and the enemy team is further displayed on the operation interface of the first virtual object. For example, "3VS4" displayed in 409 in FIG. 4 is the combat ratio between the friendly team and the enemy team. Of course, "3VS4" displayed in 409 may be the combat ratio between the enemy team and the friendly team, and the embodiment of the present application is not limited thereto. The combat situation of the first virtual object is further displayed in FIG. 4. For example, "1:2:3" displayed in 410 in FIG. 4 indicates that the first virtual object kills one person, is killed twice, and assists three times.
[0067] In one possible implementation form, after the terminal determines the first virtual object, it can further display selectable equipment of the first virtual object for the user to select. For example, the area 303 in Fig. 3 is an equipment selection area, in which selectable equipment corresponding to the selected virtual object is displayed. In response to a selection command of the selectable equipment by the user, the terminal determines the selectable equipment selected by the user as the equipment of the first virtual object.
[0068] In step 202, a second operation for a second skill control is obtained during the period when the first virtual object releases the first skill.
[0069] Here, the second skill control is used to control the release of the second skill. The second skill is an aiming skill, and the second skill includes any one of a directional skill, a sector skill, and a circular skill. The second operation includes, but is not limited to, a click operation. When responding that the second skill corresponding to the first virtual object is a directional skill, after obtaining a second operation of the second skill control, the first virtual object is controlled to release the directional skill. When responding that the second skill corresponding to the first virtual object is a sector skill, after obtaining a second operation of the second skill control, the first virtual object is controlled to release the sector skill. When responding that the second skill corresponding to the first virtual object is a circular skill, after obtaining a second operation of the second skill control, the first virtual object is controlled to release the circular skill.
[0070] It is necessary to explain that the terminal stores a correspondence between the identifier of the virtual object and the type of the second skill corresponding to the virtual object. After acquiring the second operation of the second skill control, the type of the second skill corresponding to the first virtual object is determined based on the object identifier of the first virtual object. Or, the server stores a correspondence between the identifier of the virtual object and the type of the second skill corresponding to the virtual object. After acquiring the second operation of the second skill control, the terminal generates a first acquisition request, in which the object identifier of the first virtual object is carried, and transmits the first acquisition request to the server. After receiving the first acquisition request, the server determines the type of the second skill corresponding to the first virtual object based on the object identifier of the virtual object carried in the first acquisition request, and the server transmits the type of the second skill corresponding to the first virtual object to the terminal. That is, the terminal acquires the type of the second skill corresponding to the first virtual object.
[0071] In one possible implementation, during the period when the first virtual object releases the first skill, if the first virtual object needs to be controlled to release a second skill, the second skill control needs to be clicked, and in response to the click operation on the second skill control, the terminal obtains a second operation on the second skill control.
[0072] In step 203, in response to the second operation, a skill release indicator of the second skill is displayed based on the second position, and the skill release indicator is used to indicate the effect range when the second skill is released.
[0073] The skill release indicator of the second skill is used to visualize the effect range when the second skill is released. Thus, the user can directly observe the effect range when the second skill is released based on the displayed skill release indicator of the second skill. In an embodiment of the present application, when the second operation is obtained, the skill release indicator of the second skill is displayed based on the second position. In an exemplary embodiment, displaying the skill release indicator of the second skill based on the second position refers to displaying the skill release indicator of the second skill at a position determined based on the second position.
[0074] In one possible implementation, the action range indicated by the skill release indicator of the second skill is determined with the second position as a reference point. Exemplarily, in this case, a position that matches the action range determined with the second position as a reference point is determined based on the second position. That is, the skill release indicator of the second skill is displayed at a position that matches the action range determined with the second position as a reference point. Exemplarily, the position that matches the action range determined with the second position as a reference point refers to the location of the action range determined with the second position as a reference point, or refers to the boundary position of the action range determined with the second position as a reference point.
[0075] In one possible implementation, the process of determining the action range indicated by the skill release indicator of the second skill is as follows: The aiming direction of the second skill is determined using the second position as a reference point, and the cover area corresponding to the aiming direction is determined as the action range indicated by the skill release indicator of the second skill. In this case, the position matching the cover area corresponding to the aiming direction is determined based on the second position. For example, the location of the cover area corresponding to the aiming direction is determined based on the second position, or the boundary position of the cover area corresponding to the aiming direction is determined based on the second position. At this time, the skill release indicator of the second skill is displayed at the position matching the cover area corresponding to the aiming direction. Exemplarily, the aiming direction of the second skill is determined by dragging the second skill control, and the aiming direction when the second skill control is released is determined as the aiming direction of the second skill.
[0076] In one possible implementation, before displaying the skill release indicator of the second skill based on the second position in response to the second operation, the terminal further needs to determine a release timing of the second skill, and if the release timing of the second skill is after the first virtual object completes the release of the first skill, determine a second position where the first virtual object is located after releasing the first skill, and display the skill release indicator of the second skill based on the second position.
[0077] In one possible implementation, there are two ways to determine the timing of the release of the second skill:
[0078] Method 1: The terminal determines, based on the object identifier of the first virtual object, whether the timing of releasing the second skill of the first virtual object is after completing the release of the first skill.
[0079] In one possible implementation, a correspondence relationship between each virtual object and a skill release order is stored in the terminal, and the skill release order of the first virtual object is obtained based on an object identifier of the first virtual object, and a timing for releasing a second skill of the first virtual object is determined to be after the release of the first skill is completed based on the skill release order of the first virtual object.
[0080] Method 2: The terminal determines, via the server, whether or not the timing for releasing the second skill of the first virtual object is after the release of the first skill is completed.
[0081] In one possible implementation, the terminal generates a second acquisition request, in which an object identifier of a first virtual object is carried, and the second acquisition request is used to acquire a skill release order of the first virtual object. After receiving the second acquisition request, the server analyzes the second acquisition request and acquires the object identifier of the first virtual object carried in the second acquisition request. The server stores a correspondence between each virtual object and a skill release order. The server determines a skill release order of the first virtual object based on the object identifier of the first virtual object and the correspondence, and sends the skill release order of the first virtual object to the terminal. That is, the terminal acquires the skill release order of the first virtual object. The terminal determines whether the release timing of the second skill is after the release of the first skill is completed based on the skill release order of the first virtual object.
[0082] It is necessary to explain that the skill release order of each virtual object may be set by the developer of the application program at the time of development, or may be set by the user himself / herself in the application program into which he / she is logged in, and the embodiments of the present application are not limited thereto.
[0083] It should be further noted that any one of the above methods may be selected to determine the release timing of the second skill of the first virtual object, and the embodiment of the present application is not limited thereto.
[0084] For example, the skill release order of the first virtual object is to release the skill in order according to the trigger timing of the skill, i.e., the release timing of the second skill is after the release of the first skill is completed. Also, for example, the skill release order of the first virtual object is to release the skill immediately after the trigger of the skill, i.e., the release timing of the second skill is not after the release of the first skill is completed.
[0085] In one possible embodiment, the timing of the release of the second skill is after the first virtual object completes the release of the first skill, and the second skill includes one of a directional skill, a sector skill, and a circular skill, so that when the type of the second skill is different, the skill release indicator of the second skill displayed according to the second position is different, and the action range indicated by the skill release indicator is also different. According to the type of the second skill, there are three situations in which the skill release indicator of the second skill is displayed:
[0086] Situation 1: In response to the second skill being a directional skill, in response to the second operation, a skill release indicator of the directional skill is displayed based on the second position. The range of action indicated by the skill release indicator of the directional skill is the range covered by the aiming direction determined with the second position as the starting point.
[0087] For example, the aiming direction determined from the second position is determined by the user, the user determines the aiming direction by dragging the second skill control, and the terminal determines the direction when the user releases the second skill control as the aiming direction. As shown in FIG. 8, a schematic diagram of the display of the action range when a directional skill is released according to an embodiment of the present application is shown. In FIG. 8, the position 801 is the second position, and the aiming direction is determined from the position 801. The range 802 covered by the aiming direction is determined as the action range when the directional skill is released.
[0088] In this situation 1, a position that matches the range covered by the aiming direction determined with the second position as the starting point is determined as a position determined based on the second position. For example, a location of the range covered by the aiming direction determined with the second position as the starting point is determined as a position determined based on the second position, or a boundary position of the range covered by the aiming direction determined with the second position as the starting point is determined as a position determined based on the second position. At this time, a skill release indicator for the second skill is displayed at a position that matches the range covered by the aiming direction determined with the second position as the starting point.
[0089] Situation 2: In response to the second skill being a sector skill, in response to the second operation, a skill release indicator of the sector skill is displayed based on the second position. The effect range indicated by the skill release indicator of the sector skill is a sector area determined with the second position as a circular center and the first distance as a radius.
[0090] In one possible implementation, the arc of the sector area is aligned with the aiming target, and the aiming target is one of the second virtual object and the target position. Exemplarily, the process of determining the aiming target is as follows: The user drags the second skill control, and the aiming direction is displayed according to the user's dragging operation. The aiming direction starts from the second position, and the aiming direction aligned when the user releases the second skill control is determined as the aiming direction of the second skill, and a virtual object located in the aiming direction of the second skill is determined as the aiming target, or a position covered by the aiming direction of the second skill is determined as the aiming target.
[0091] In one possible implementation, in response to the second skill being a sector skill, an aiming target for the second skill is a second virtual object, and a skill release indicator for the sector skill is displayed based on the second location. An action range indicated by the skill release indicator for the sector skill is a sector area having a circle center at the second location and a radius determined by the first distance, and an arc of the sector area is aligned with the second virtual object. Or, in response to the second skill being a sector skill, an aiming target for the second skill is a target location, and a skill release indicator for the sector skill is displayed based on the second location. An action range indicated by the skill release indicator for the sector skill is a sector area having a circle center at the second location and a radius determined by the first distance, and an arc of the sector area is aligned with the target location.
[0092] Exemplarily, the first distance is set by the developer of the application program during development. The degree of the sector is also set by the developer of the application program during development. The first distance and the degree of the sector corresponding to different virtual objects may be the same or different. The terminal obtains the first distance and the degree of the sector corresponding to the first virtual object based on the object identifier of the first virtual object. Exemplarily, the first distance is 5 meters and the degree of the sector is 60 degrees.
[0093] As shown in Figure 9, this is a schematic diagram of the range of effect when a sector-shaped skill provided in an embodiment of the present application is released. In Figure 9, position 901 is the second position, and a sector area is determined with position 901 as the starting point and the first distance as the radius. A range 902 corresponding to the sector area is determined as the range of effect when the sector-shaped skill is released.
[0094] In this situation 2, the position that matches with the sector area determined with the second position as the center of the circle and the first distance as the radius is determined as the position determined based on the second position. For example, the position of the sector area determined with the second position as the center of the circle and the first distance as the radius is determined as the position determined based on the second position, or the boundary position of the sector area determined with the second position as the center of the circle and the first distance as the radius is determined as the position determined based on the second position. At this time, a skill release indicator for the second skill is displayed at the position that matches with the sector area determined with the second position as the center of the circle and the first distance as the radius.
[0095] Situation 3: In response to the second skill being a circular skill, in response to the second operation, display a skill release indicator of the circular skill based on the second position. The effect range indicated by the skill release indicator of the circular skill is a circular area determined by taking the location of the aiming target as a circle center and taking the second distance as a radius.
[0096] In one possible implementation, in response to the second skill being a circular skill, determine an aim target for the circular skill based on the second position, the aim target being one of a second virtual object and a target position. The process of determining the aim target in situation 3 is the same as the process of determining the aim target in situation 2 above, and will not be described in detail again here.
[0097] In one possible implementation, in response to the second skill being a circular skill, an aiming target of the circular skill is a second virtual object, and a skill release indicator of the circular skill is displayed based on the second position. An action range indicated by the skill release indicator of the circular skill is a circular area determined by taking the location of the second virtual object as a circle center and taking the second distance as a radius.
[0098] In one possible implementation, in response to the second skill being a circular skill, an aiming target for the circular skill is the target location and a skill release indicator for the circular skill is displayed based on the second location, and an action range indicated by the skill release indicator for the circular skill is a circular area determined by taking the target location as a circle center and the second distance as a radius.
[0099] Exemplarily, the second distance is set by a developer of the application program during development. The second distances corresponding to different virtual objects may be the same or different. The terminal obtains the second distance corresponding to the first virtual object based on the object identifier of the first virtual object. Exemplarily, the second distance is 10 meters.
[0100] As shown in Fig. 10, a schematic diagram of the range of action when a circular skill provided in an embodiment of the present application is released is displayed. In Fig. 10, a position 1001 is the location of a second virtual object, and a circular area is determined by setting the position 1001 as the center of the circle and the second distance as the radius. A range 1002 corresponding to the circular area is determined as the range of action when the circular skill is released.
[0101] In this situation 3, the position of the target is determined as the center of the circle, and the position that matches the circular area determined as the radius of the second distance is determined as the position determined based on the second position. For example, the position of the target is determined as the center of the circle, and the position of the circular area determined as the radius of the second distance is determined as the position determined based on the second position, or the position of the boundary of the circular area determined as the center of the circle, and the radius of the second distance is determined as the position determined based on the second position. At this time, the skill release indicator of the second skill is displayed at the position that matches the circular area determined as the center of the circle, and the radius of the second distance.
[0102] In step 204, after the first virtual object completes the release of the first skill, the first virtual object is controlled to release a second skill at the second position according to the action range.
[0103] In one possible implementation, after the first virtual object has completed the release of the first skill, that is, after the first virtual object has already reached the second position from the first position, the first virtual object is controlled to release the second skill at the second position according to the action range. As shown in FIG. 11, a schematic diagram of the release of the second skill provided by the embodiment of the present application is shown. In FIG. 11, at the position 1101, the first virtual object is controlled to release the second skill 1103 according to the action range 1102, and the released second skill 1103 can attack the second virtual object 1104. The expression method of the second skill in FIG. 11 is a fan 1103, but of course the expression method of the second skill may be other, and the embodiment of the present application is not limited thereto. As can be seen from FIG. 11, the aiming position of the second skill and the release position of the second skill are the same position, and this method has a higher accuracy of control over the first virtual object.
[0104] In one possible implementation, in response to the timing of releasing the second skill not being after the first virtual object has completed releasing the first skill, display a skill release indicator of the second skill based on a third position, the third position being a current location of the first virtual object. Control the first virtual object to release the second skill according to an action range at the third position, so that the released second skill can attack all virtual objects within the action range. Illustratively, the current location of the first virtual object refers to the location of the first virtual object when the second operation on the second skill control is obtained. The process of displaying a skill release indicator of the second skill based on the third position is consistent with the process of displaying a skill release indicator of the second skill based on the second position, and will not be described in detail again here.
[0105] The method displays a skill release indicator of the second skill based on the second position after obtaining a second operation on the second skill control during the period when the first virtual object releases the first skill. The second skill release indicator is for indicating the action range when the second skill is released, so that the method can achieve the purpose of predetermining the action range when the second skill is released. After the first virtual object completes the release of the first skill, the second skill is released according to the action range at the second position, so that the aiming position of the second skill and the release position of the second skill are the same position. The second skill released in this manner can attack the attacked object within the action range, and further improve the accuracy of control over the first virtual object.
[0106] As shown in FIG. 12, a flow chart of a method for controlling a virtual object provided by an embodiment of the present application. In FIG. 12, a first operation of a first skill control is received, and a first virtual object is controlled to release a first skill, and the first skill control is used to control the release of the first skill. During the period when the first virtual object releases the first skill, a second operation for a second skill control is obtained. Whether or not the timing of the release of the second skill of the first virtual object is after the release of the first skill is completed is determined. When the timing of the release of the second skill of the first virtual object is after the release of the first skill is completed, a second position is determined. The second position is a location of the first virtual object after the release of the first skill is completed. A skill release indicator of the second skill is displayed based on the second position, and the skill release indicator is used to indicate the action range when the second skill is released. After the first virtual object completes the release of the first skill, the first virtual object is controlled to release the second skill according to the action range at the second position. In response to the timing of the release of the second skill of the first virtual object not being after the release of the first skill, a third position is determined. The third position is a current location of the first virtual object, and a skill release indicator of the second skill is displayed based on the third position, and the first virtual object is controlled to release the second skill at the third position according to the range of action.
[0107] As shown in Fig. 13, a structural schematic diagram of a virtual object control device provided by an embodiment of the present application is shown. As shown in Fig. 13, the device includes: a control unit 1301, an acquisition unit 1302, and a display unit 1303; The control unit 1301 is used to control a first virtual object to release a first skill in response to a first operation on a first skill control, the first skill being used to make the first virtual object reach a second position from a first position; The acquiring unit 1302 is used for acquiring a second operation for a second skill control during a period when the first virtual object releases the first skill; The display unit 1303 is used to display a skill release indicator of the second skill according to the second position in response to the second operation, and the skill release indicator is used to indicate the action range when the second skill is released; The control unit 1301 is further used for controlling the first virtual object to release a second skill at a second position according to the action range after the first virtual object completes the release of the first skill.
[0108] In one possible implementation, the range of action indicated by the skill release indicator of the second skill is determined using the second position as a reference point.
[0109] In one possible implementation, the second skill includes a directional skill; The display unit 1303 is used to display a skill release indicator of a directional skill based on the second position in response to the second operation, and the action range indicated by the skill release indicator of the directional skill is the range covered by the aiming direction determined from the second position.
[0110] In one possible implementation, the second skill includes a sector skill; The display unit 1303 is used to display a skill release indicator of the sector-shaped skill based on the second position in response to the second operation, and the action range indicated by the skill release indicator of the sector-shaped skill is a sector area determined with the second position as the circular center and the first distance as the radius.
[0111] In one possible implementation, the second skill includes a circular skill; The display unit 1303 is used for determining an aiming target of the circular skill based on the second position in response to the second operation, where the aiming target is one of a second virtual object and a target position, and displaying a skill release indicator of the circular skill based on the second position, where the action range indicated by the skill release indicator of the circular skill is a circular area determined with the location of the aiming target as the circle center and the second distance as the radius.
[0112] In one possible implementation, the first skill includes a displacement skill, the first skill control includes a displacement skill control, and the displacement skill control is used to control the release of the displacement skill; The control unit 1301 is used to control the first virtual object to release the displacement-type skill in response to a first operation on the displacement-type skill control, and the second position is determined based on a type of the displacement-type skill.
[0113] In one possible embodiment, the displacement skill includes one of a directional skill, a target point skill, and a follow-up skill; The control unit 1301, in response to the type of the displacement skill being a directional skill, controls the first virtual object to release the directional skill, and the second position is determined based on the first position, a moving distance and a moving direction corresponding to the directional skill; In response to the type of the displacement skill being a target point skill, controlling a first virtual object to release a target point skill, where a second position is determined based on a first target point corresponding to the target point skill, and the target point skill is used to instruct moving the first virtual object from the first position to the second position within a first time period and to display a movement trajectory of the first virtual object; In response to the type of the displacement skill being a follow-type skill, control a first virtual object to release the follow-type skill, and the second position is determined based on a third virtual object followed by the first virtual object.
[0114] In one possible implementation, the first skill includes a teleportation skill, the first skill control includes a teleportation skill control, and the teleportation skill control is used to release the teleportation skill; The control unit 1301 is used to control the first virtual object to release the teleport-type skill in response to a first operation on the teleport-type skill control, the second position being determined based on a second target point corresponding to the teleport-type skill, and the teleport-type skill being used to instruct the first virtual object to move from the first position to the second position within a second time period and to hide the movement trajectory of the first virtual object.
[0115] In one possible implementation, the control unit 1301 further controls the first virtual object to release the directional skill or the target point skill in response to the type of the displacement skill being a directional skill or a target point skill, and the second position is determined based on the position of the first virtual object when it is blocked in the movement process; Or, in response to the type of the displacement skill being a directional skill or a target point skill, controlling a first virtual object to release the directional skill or the target point skill, wherein the second position is determined based on the position of the destination point to which the first virtual object is dragged.
[0116] In one possible implementation, the display unit 1303 is responsive to the second operation, and is used for determining a second position after the first virtual object completes the release of the first skill, and displaying a skill release indicator of the second skill based on the second position, where the timing of the release of the second skill is determined.
[0117] In one possible implementation, the display unit 1303 is further used for displaying the second position with a target shape, and the target shape is used for indicating that the second position is a location of the first virtual object after completing the release of the first skill.
[0118] In one possible implementation, the display unit 1303 is further used for displaying a skill release indicator of the second skill in response to the second operation, and the timing of the release of the second skill is not after the first virtual object completes the release of the first skill, but based on a third position, where the third position is a current position of the first virtual object.
[0119] The device displays a skill release indicator of the second skill based on the second position after obtaining a second operation on the second skill control during the period when the first virtual object releases the first skill. The second skill release indicator is for indicating the action range when the second skill is released. Thus, the method can achieve the objective of predetermining the action range when the second skill is released. After the first virtual object completes the release of the first skill, the second skill is released according to the action range at the second position, so that the aiming position of the second skill and the release position of the second skill are the same position. The second skill released in this manner can attack the attacked object within the action range, and can further improve the accuracy of control over the first virtual object.
[0120] It should be understood that the above device provided in FIG. 13 is described by taking only the division of each functional unit as an example to realize its functions, but in actual application, the above functions can be assigned to different functional units to be completed as necessary. That is, the internal structure of the device is divided into different functional units to complete all or part of the functions described above. In addition, the device provided in the above embodiment belongs to the same idea as the method embodiment, and the specific implementation process thereof can be referred to the method embodiment in detail, so it will not be described in detail again here.
[0121] 14 shows a structural block diagram of a terminal 1400 provided by one exemplary embodiment of the present application. The terminal 1400 may be a portable mobile terminal, such as a smartphone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, MPEG Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, MPEG Audio Layer 4), a notebook computer, or a desktop computer. The terminal 1400 may also be referred to by other names, such as user equipment, a portable terminal, a laptop terminal, and a desktop terminal.
[0122] Generally, the terminal 1400 includes a processor 1401 and a memory 1402 .
[0123] The processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1401 may be implemented by adopting at least one hardware form among DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1401 may include a main processor and a coprocessor, the main processor is a processor used to process data in a wake-up state, also referred to as a CPU (Central Processing Unit), and the coprocessor is a low-power processor used to process data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit), which is used to render and draw content that needs to be displayed on a display screen. In some embodiments, the processor 1401 may further include an AI (Artificial Intelligence) processor, which is used to process computational operations related to machine learning.
[0124] The memory 1402 may include one or more computer-readable storage media, which may be non-transitory. The memory 1402 may further include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices or flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1402 is used to store at least one instruction, which is executed by the processor 1401 to implement the method of controlling a virtual object provided by the method embodiments herein.
[0125] In some embodiments, the terminal 1400 further optionally includes a peripheral interface 1403 and at least one peripheral device. The processor 1401, the memory 1402, and the peripheral interface 1403 may be coupled by a bus or signal lines. Each peripheral device may be coupled to the peripheral interface 1403 by a bus, signal lines, or a circuit board. Specifically, the peripheral device may include at least one of a radio frequency circuit 1404, a display screen 1405, a camera component 1406, an audio circuit 1407, a positioning component 1408, and a power source 1409.
[0126] The peripheral interface 1403 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, the memory 1402, and the peripheral interface 1403 are integrated on the same chip or circuit board, and in some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral interface 1403 may be implemented on a single chip or circuit board, and this embodiment is not limited thereto.
[0127] The radio frequency circuit 1404 is used to receive and transmit RF (Radio Frequency) signals, also referred to as electromagnetic signals. The radio frequency circuit 1404 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 1404 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 1404 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, and a user identity module card, etc. The radio frequency circuit 1404 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocols include, but are not limited to, the World Wide Web, metropolitan area networks, intranets, each generation mobile communication network (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuitry 1404 may further include circuitry related to Near Field Communication (NFC), although this application is not limited in this respect.
[0128] The display screen 1405 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 is further capable of collecting touch signals on or above the surface of the display screen 1405. The touch signals may be input as control signals to the processor 1401 for processing. At this time, the display screen 1405 may be further used to provide virtual buttons and / or virtual keyboards, also referred to as soft buttons and / or soft keyboards. In some embodiments, the display screen 1405 may be one and is disposed on the front panel of the terminal 1400. In other embodiments, the display screen 1405 may be at least two, each disposed on a different surface of the terminal 1400 or in a folding design. In other embodiments, the display screen 1405 may be a flexible display screen and disposed on a bending or folding surface of the terminal 1400. Furthermore, the display screen 1405 may also be configured as a non-rectangular irregular shape, i.e., an irregular screen. The display screen 1405 may be manufactured using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0129] The camera component 1406 is used to collect images or videos. Optionally, the camera component 1406 includes a front camera and a rear camera. Typically, the front camera is installed on the front panel of the terminal 1400, and the rear camera is installed on the back of the terminal 1400. In some embodiments, there are at least two rear cameras, which are any of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, whereby the main camera and the depth-of-field camera cooperate to realize a background blur function, and the main camera and the wide-angle camera cooperate to realize a panoramic shooting and a VR (Virtual Reality) shooting function or other cooperative shooting functions. In some embodiments, the camera component 1406 may further include a flash lamp. The flash lamp may be a single color temperature flash lamp or a dual color temperature flash lamp. The dual color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, which can be used for light compensation under different color temperatures.
[0130] The audio circuit 1407 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals to be input to the processor 1401 for processing, or to the radio frequency circuit 1404 for realizing voice communication. For the purpose of stereo collection or noise reduction, the microphones may be multiple, and each may be installed at different parts of the terminal 1400. The microphone may further be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1401 or the radio frequency circuit 1404 into an acoustic wave. The speaker may be a conventional thin-film speaker, or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into an acoustic wave that can be heard by humans, but also convert the electrical signal into an acoustic wave that cannot be heard by humans for distance measurement and other applications. In some embodiments, the audio circuit 1407 may further include a headphone jack.
[0131] The positioning component 1408 is used to determine the current geographical location of the terminal 1400 to realize navigation or LBS (Location Based Service). The positioning component 1408 may be a positioning component based on the US Global Positioning System (GPS), the Chinese Beidou system, or the Russian Galileo system.
[0132] The power source 1409 is used to supply power to each component in the terminal 1400. The power source 1409 may be an AC current, a DC current, a disposable battery, or a rechargeable battery. When the power source 1409 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is recharged by a wired line, and a wireless rechargeable battery is a battery that is recharged by a wireless coil. The rechargeable battery may also be used to support fast charging technology.
[0133] In some embodiments, terminal 1400 further includes one or more sensors 1140, including, but not limited to, an acceleration sensor 1411, a gyro sensor 1412, a pressure sensor 1413, a fingerprint sensor 1414, an optical sensor 1415, and a proximity sensor 1416.
[0134] The acceleration sensor 1411 can detect the magnitude of acceleration in three coordinate axes of a coordinate system established by the terminal 1400. For example, the acceleration sensor 1411 can be used to detect the components of gravitational acceleration in three coordinate axes. The processor 1401 can control the display screen 1405 to display a user interface in a landscape view or a portrait view based on the gravitational acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 can also be used to collect game or user motion data.
[0135] The gyro sensor 1412 can detect the direction and rotation angle of the body of the terminal 1400, and in cooperation with the acceleration sensor 1411, can collect the 3D motion of the user relative to the terminal 1400. Based on the data collected by the gyro sensor 1412, the processor 1401 can realize functions of motion sensing (for example, changing the UI based on the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0136] The pressure sensor 1413 may be installed on a side frame of the terminal 1400 and / or under the display screen 1405. When the pressure sensor 1413 is installed on the side frame of the terminal 1400, it can detect a user's gripping signal on the terminal 1400, and the processor 1401 performs left-hand recognition or shortcut operation based on the gripping signal collected by the pressure sensor 1413. When the pressure sensor 1413 is installed on a lower layer of the display screen 1405, the processor 1401 realizes control over an operable control in the UI interface based on the user's pressure operation on the display screen 1405. The operable control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0137] The fingerprint sensor 1414 is used to collect a user's fingerprint, and the processor 1401 recognizes the user's identity based on the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 recognizes the user's identity based on the fingerprint collected. When the processor 1401 recognizes the user's identity as a reliable identity, it allows the user to perform related confidential operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, changing settings, etc. The fingerprint sensor 1414 may be installed on the front, back, or side of the terminal 1400. When a physical push button or a manufacturer's logo is installed on the terminal 1400, the fingerprint sensor 1414 may be integrated with the physical push button or the manufacturer's logo.
[0138] The optical sensor 1415 is used to collect the ambient light intensity. In one embodiment, the processor 1401 can control the display brightness of the display screen 1405 based on the ambient light intensity collected by the optical sensor 1415. Specifically, when the ambient light intensity is relatively high, the display brightness of the display screen 1405 is increased, and when the ambient light intensity is relatively low, the display brightness of the display screen 1405 is decreased. In another embodiment, the processor 1401 can further dynamically adjust the shooting parameters of the camera component 1406 based on the ambient light intensity collected by the optical sensor 1415.
[0139] The proximity sensor 1416, also referred to as a distance sensor, is usually installed on the front panel of the terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front of the terminal 1400. In one embodiment, when the proximity sensor 1416 detects that the distance between the user and the front of the terminal 1400 is gradually decreasing, the processor 1401 controls the display screen 1405 to switch from a lighted state to an unlighted state, and when the proximity sensor 1416 detects that the distance between the user and the front of the terminal 1400 is gradually increasing, the processor 1401 controls the display screen 1405 to switch from an unlighted state to a lighted state.
[0140] As will be appreciated by those skilled in the art, the structure shown in FIG. 14 is not intended to limit terminal 1400 and may include more or fewer components than those shown, or may combine certain components, or may employ different components in an arrangement.
[0141] FIG. 15 is a structural diagram of a server provided by an embodiment of the present application, and the server 1500 may have a relatively large difference due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1501 and one or more memories 1502. Here, at least one program code is stored in the one or more memories 1502, and the at least one program code is loaded and executed by the one or more processors 1501 to realize the virtual object control method provided by each embodiment of the above method. Of course, the server 1500 may further include components such as a wired or wireless network interface, a keyboard, and an input / output interface, thereby performing input / output, and the server 1500 may further include other components used to realize the functions of the device, which will not be described in detail again here.
[0142] In an exemplary embodiment, an electronic device is further provided, the electronic device including a processor and a memory, and at least one program code is stored in the memory. The at least one program code is loaded and executed by the processor to cause the electronic device to realize any one of the above-mentioned virtual object control methods. Illustratively, the electronic device is installed as a terminal.
[0143] In an exemplary embodiment, a non-transitory computer-readable storage medium is further provided, the non-transitory computer-readable storage medium having at least one program code stored therein, the at least one program code being loaded and executed by a processor to cause a computer to realize any one of the above-mentioned methods for controlling a virtual object.
[0144] Optionally, the non-transitory computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
[0145] In an exemplary embodiment, a computer program or computer program product is further provided, which has stored therein at least one computer instruction, which is loaded and executed by a processor to cause a computer to realize any of the above-mentioned methods for controlling a virtual object.
[0146] As will be understood, "plurality" as referred to herein refers to two or more than two. "And / or" describes a related relationship of related objects and indicates that three types of relationships may exist, for example, A and / or B may represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the related objects before and after are in a type of "or" relationship.
[0147] The numbers of the embodiments of the present application above are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments.
[0148] The above are merely illustrative examples of the present application and should not be used to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application should be included within the protection scope of the present application. [Explanation of symbols]
[0149] 11 Terminal 12 Server 301 area 302 Control 303 areas 401 Second Skill Control 406 area 411 Displacement Skill Control 412 Teleport Skill Control 501 Control 502 Black Arrow 503 Direction of movement 602 Target Circle 1102 Range of Action 1104 Second Virtual Object 1140 Sensor 1301 Control Unit 1302 Acquired Units 1303 Display unit 1400 terminals 1401 Processor 1402 Memory 1403 Peripheral Device Interface 1404 Radio Frequency Circuits 1405 Display Screen 1406 Camera Component 1407 Audio Circuit 1408 Positioning Component 1409 Power supply 1411 Acceleration Sensor 1412 Gyro sensor 1413 Pressure Sensor 1414 Fingerprint sensor 1415 Optical Sensor 1416 Proximity Sensor 1500 Server 1501 Processor 1502 Memory
Claims
1. A method for controlling a virtual object, executed by an electronic device, the method comprising: controlling a first virtual object to release a first skill in response to a first operation on a first skill control displayed on an operation interface, the first skill being used to move the first virtual object from a first position to a second position; acquiring a second operation for a second skill control displayed on the operation interface during a period in which the first virtual object releases the first skill; a step of displaying a skill release indicator of a second skill based on the second position in response to the second operation, the skill release indicator being used to indicate an action range when the second skill is released; and controlling the first virtual object so as to release the second skill at the second position according to the action range after the first virtual object has completed the release of the first skill.
2. The method described in claim 1, wherein the direction of action and / or the range of action indicated by the skill release indicator of the second skill are determined using the second position as a reference point.
3. The second skill includes a directional skill whose action direction is a predetermined direction, The step of displaying a skill release indicator of the second skill based on the second position in response to the second operation includes: The method of claim 2, further comprising a step of displaying a skill release indicator of the directional skill based on the second position in response to the second operation, wherein the range of action indicated by the skill release indicator of the directional skill is the range covered by an aiming direction determined starting from the second position.
4. The second skill includes a fan-shaped skill whose range of action is fan-shaped, The step of displaying a skill release indicator of the second skill based on the second position in response to the second operation includes: The method of claim 2, further comprising a step of displaying a skill release indicator of the sector-shaped skill based on the second position in response to the second operation, the effect range indicated by the skill release indicator of the sector-shaped skill being a sector area having the second position as a circular center and a first distance as a radius.
5. The second skill includes a circular skill whose range of action is circular, The step of displaying a skill release indicator of the second skill based on the second position in response to the second operation includes: In response to the second operation, determining an aim target of the circular skill based on the second position, the aim target being any one of a second virtual object and a target position; The method of claim 2, further comprising: a step of displaying a skill release indicator of the circular skill based on the second position, the range of action indicated by the skill release indicator of the circular skill being a circular area having a circular center at the location of the aiming target and a second distance as a radius.
6. The first skill includes a movement type skill, the first skill control includes a movement type skill control, and the movement type skill control is used to control the release of the movement type skill, The step of controlling a first virtual object in response to a first operation on a first skill control to release a first skill includes:
2. The method of claim 1, comprising: controlling the first virtual object to release the movement-type skill in response to a first operation on the movement-type skill control, the second position being determined based on a type of the movement-type skill.
7. The movement type skill includes any one of a directional skill, a target point skill, and a follow-up skill, The step of controlling the first virtual object in response to a first operation on the movement type skill control to release the movement type skill includes: In response to the type of the movement skill being the directional skill, controlling the first virtual object to release the directional skill, wherein the second position is determined based on the first position, a movement distance and a movement direction corresponding to the directional skill; In response to the type of the movement-type skill being the target point skill, a step of controlling the first virtual object to release the target point skill, the second position being determined based on a first target point corresponding to the target point skill, the target point skill being used to instruct the first virtual object to move from the first position to the second position within a first time period and to display a movement trajectory of the first virtual object; 7. The method of claim 6, further comprising: in response to the type of the movement skill being the follow-type skill, controlling the first virtual object to release the follow-type skill, wherein the second position is determined based on a third virtual object followed by the first virtual object.
8. The first skill includes a teleport type skill, the first skill control includes a teleport type skill control, and the teleport type skill control is used to control the release of the teleport type skill, The step of controlling a first virtual object in response to a first operation on a first skill control to release a first skill includes:
2. The method of claim 1, comprising: controlling the first virtual object to release the teleport-type skill in response to a first operation on the teleport-type skill control, the second position being determined based on a second target point corresponding to the teleport-type skill, the teleport-type skill instructing the first virtual object to move from the first position to the second position within a second time period and being used to hide a movement trajectory of the first virtual object.
9. The method further comprises: In response to the type of the movement type skill being the directional skill or the target point skill, a step of controlling the first virtual object to release the directional skill or the target point skill, wherein the second position is determined based on a position of the first virtual object when it is blocked in a movement process; Or, 8. The method of claim 7, comprising: in response to the type of the movement skill being the directional skill or the target point skill, controlling the first virtual object to release the directional skill or the target point skill, wherein the second position is determined based on a position of a destination point to which the first virtual object is dragged.
10. The step of displaying a skill release indicator of a second skill based on the second position in response to the second operation, determining the second position in response to the second operation and after the first virtual object has completed the release of the first skill, the second position being determined when the second skill is released; The method of any one of claims 1 to 9, further comprising the step of: displaying a skill release indicator for the second skill based on the second position.
11. The method further comprising:
10. The method according to claim 1, further comprising: displaying the second location with a target shape, the target shape being used to indicate that the second location is a location where the first virtual object will be after completing the release of the first skill.
12. The method further comprising: The method according to any one of claims 1 to 9, comprising: displaying a skill release indicator of the second skill in response to the second operation and based on a third position, the third position being a current location of the first virtual object, and the timing of the release of the second skill being not after the first virtual object has completed the release of the first skill.
13. A control device for a virtual object, the device including: a control unit, an acquisition unit, and a display unit; the control unit is used to control a first virtual object to release a first skill in response to a first operation on a first skill control displayed on an operation interface, the first skill being used to cause the first virtual object to reach a second position from a first position; the acquisition unit is used for acquiring a second operation for a second skill control displayed on the operation interface during a period when the first virtual object releases the first skill; the display unit is used to display a skill release indicator of a second skill based on the second position in response to the second operation, and the skill release indicator is used to indicate an action range when the second skill is released; The control unit is further used for controlling the first virtual object to release the second skill at the second position according to the action range after the first virtual object has completed the release of the first skill.
14. An electronic device comprising a processor and a memory, at least one program code stored in the memory, the at least one program code being loaded and executed by the processor to cause the electronic device to realize a method for controlling a virtual object described in any one of claims 1 to 12.
15. A computer program that causes a computer to realize the method for controlling a virtual object described in any one of claims 1 to 12.
Citation Information
Patent Citations
Game program and game device
JP2006314349A
Operation and control method and terminal based on touch screen
JP2018518997A
Information processing method, terminal, and computer storage medium
JP2020036907A
Information interaction method and related device
WO2021043000A1
