Method and device for controlling skill activation by virtual object, computer device, and computer program
By customizing the activation range of skills in MOBA games through drag operations, the method enhances the efficiency of attacking dispersed enemies, simplifying the skill activation process and improving terminal processing efficiency.
Patent Information
- Application Number
- JP2022563112
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-08-03
- Filing Date
- 2021-10-20
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2041-10-20
AI Technical Summary
In competitive games like MOBA, efficiently attacking dispersed enemy characters with range-based skills is inefficient due to the need for multiple activation range selections, leading to low processing efficiency.
A method and device for controlling skill activation in virtual characters by displaying a range-type skill indicator with adjustable boundaries, allowing customization of the activation range through drag operations on a controller, determining two boundary points based on the virtual character and drag controller positions.
This approach simplifies the skill activation process by allowing a single operation to change the shape and area of the activation range, improving processing efficiency when attacking multiple dispersed enemies.
Smart Images

Figure 0007553131000005 
Figure 0007553131000011 
Figure 0007553131000003
Abstract
Description
[Technical field]
[0001] (Reference to Related Application) This application claims priority based on a Chinese patent application filed on August 3, 2021, bearing application number 202110888291.2, and entitled "Method, device, apparatus and storage medium for controlling skill activation by virtual object," the entire contents of which are incorporated herein by reference. (Technical field) The present application relates to the field of supporting human-machine interaction, and in particular to a method, device, apparatus, medium and program product for controlling skill activation by a virtual object. [Background technology]
[0002] A battle game is a game in which multiple user accounts compete in the same scene. Furthermore, the battle game may be a Multiplayer Online Battle Arena (MOBA) game.
[0003] In a typical MOBA game, a player can control a virtual character to activate an area-type skill to attack at least one enemy virtual character in a predetermined range. A client displays a virtual character and a skill button located in a virtual environment. When a user clicks the skill button, the client displays an area-type skill indicator on the ground in the virtual environment, the area-type skill indicator being for indicating the activation range of the area-type skill. A user controls the direction, position, and distance of the activation range by dragging the skill button.
[0004] In the above method, when the number of enemy virtual characters is not constant and their positions are dispersed, the skill activation range is constant, so the terminal must accept the selection operation of the activation range multiple times and activate the skill multiple times against multiple enemy virtual characters whose positions are dispersed, which makes the processing efficiency of the terminal for attacks on enemy virtual characters too low. Summary of the Invention [Problem to be solved by the invention]
[0005] The present application provides a method, device, equipment, medium, and program product for controlling skill activation by a range-type virtual object, which can efficiently attack enemy virtual characters even when the positions of the enemy virtual characters are dispersed, and can improve the processing efficiency of a terminal. [Means for solving the problem]
[0006] The present invention is as follows.
[0007] According to one aspect of the present application, there is provided a method for controlling skill activation by a virtual character, the method comprising: displaying a first virtual character and a skill controller, the skill controller being for activating an area-type skill; A step of displaying a range-type skill indicator and a drag controller in response to a trigger operation on the skill controller, the range-type skill indicator being for indicating an activation range of the range-type skill, the activation range having a first boundary point determined based on a position of a first virtual character and a second boundary point determined based on a position of the drag controller; and changing at least one of the shape and area of the activation range in response to a drag operation on the drag controller.
[0008] According to another aspect of the present application, A display module for displaying a first virtual character and a skill controller, the skill controller being for activating an area-type skill; an interaction module for displaying a range-type skill indicator and a drag controller in response to a trigger operation on the skill controller, the range-type skill indicator being for indicating an activation range of the range-type skill, the activation range having a first boundary point determined based on a position of a first virtual character and a second boundary point determined based on a position of the drag controller; and a change module for changing at least one of the shape and area of the activation range in response to a drag operation on the drag controller.
[0009] According to another aspect of the present application, there is provided a computer device comprising a processor and a memory, wherein the memory stores at least one command, at least one program, code set or command set, and the at least one command, at least one program, code set or command set is loaded and executed by the processor to realize the method of controlling skill activation by a virtual character described in the above aspect.
[0010] According to another aspect of the present application, there is provided a computer-readable storage medium storing at least one command, at least one program, code set or command set which, when loaded and executed by a processor, realizes the method for controlling skill activation by a virtual character described in the above aspect.
[0011] According to another aspect of an embodiment of the present disclosure, there is provided a computer program product or computer program including computer commands stored in a computer-readable storage medium, the computer program product or computer program causing a processor of a computer device to read and execute the computer commands from the computer-readable storage medium, thereby causing the computer device to perform the method for controlling skill activation by a virtual character provided in the above preferred embodiment. Effect of the Invention
[0012] According to the solution of the embodiment of the present application, the following beneficial effects can be achieved:
[0013] By accepting a drag operation on a drag controller, two boundary points in the activation range are determined based on the position of the first virtual character and the position of the drag controller, respectively, and further, the shape and / or area of the activation range is changed in response to the drag operation, thereby making it possible to change the area and / or shape of the activation range defined by the range-type skill indicator by simply accepting a single operation, thereby simplifying the processing steps of the terminal when attacking multiple enemy virtual characters that are positioned in different locations and improving the processing efficiency of the terminal, thereby providing an activation form of a range-type skill with a customizable activation range. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 is a block diagram illustrating a computer system according to an exemplary embodiment of the present application. [Diagram 2] 1 is a flowchart illustrating a method for controlling skill activation by a virtual character according to an exemplary embodiment of the present application. [Diagram 3] FIG. 13 is a schematic diagram illustrating an interface in which a range-type skill indicator is a rectangle according to an exemplary embodiment of the present application. [Figure 4] FIG. 13 is a schematic diagram illustrating an interface in which a range-type skill indicator is circular, according to an exemplary embodiment of the present application. [Diagram 5]FIG. 13 is a schematic diagram illustrating an interface in which the range-type skill indicator is a hexagon according to an exemplary embodiment of the present application. [Figure 6] 1 is a flowchart illustrating a method for controlling skill activation by a virtual character according to an exemplary embodiment of the present application. [Figure 7] FIG. 2 is a schematic diagram illustrating a wheel controller according to an exemplary embodiment of the present application. [Figure 8] FIG. 13 is a schematic diagram illustrating a skill scope interface according to an exemplary embodiment of the present application; [Figure 9] FIG. 2 is a schematic diagram illustrating the determination of a current skill effective range according to an exemplary embodiment of the present application. [Figure 10] 1 is a flowchart illustrating a method for controlling skill activation by a virtual character according to an exemplary embodiment of the present application. [Figure 11] FIG. 13 is a schematic diagram illustrating an interface for controlling the range of skill activation by a virtual character using a drag button according to an exemplary embodiment of the present application. [Figure 12] 1 is a flowchart illustrating a method for controlling skill activation by a virtual character according to an exemplary embodiment of the present application. [Figure 13] FIG. 2 is a block diagram illustrating a control device for skill activation by a virtual character according to an exemplary embodiment of the present application. [Figure 14] FIG. 2 is a schematic diagram illustrating a configuration of a computer device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] In order to make the objectives, solutions and advantages of the present application clearer, the embodiments of the present application will be described in more detail below with reference to the drawings.
[0016] First, the nouns according to the embodiments of the present application will be described.
[0017] Virtual environment: A virtual environment that is displayed (or provided) when an application program is executed on a terminal. The virtual environment may be a simulated environment for the real world, a half simulated and half virtualized three-dimensional environment, or a fully virtualized three-dimensional environment. The virtual environment may be any one of a two-dimensional virtual environment, a two-and-a-half dimensional virtual environment, and a three-dimensional virtual environment. Furthermore, the virtual environment may be used for a battle between at least two virtual characters in the virtual environment, and may have virtual resources available to the at least two virtual characters in the virtual environment. Furthermore, the virtual environment includes symmetrical lower left and upper right corner regions, and virtual characters belonging to two opposing camps may each occupy one of the regions and have the goal of winning by destroying a target building, base, base, or crystal in the depths of the opponent's region.
[0018] Virtual object: refers to a movable object in a virtual environment. The movable object may be at least one of a virtual character, a virtual animal, and a cartoon character. Furthermore, when the virtual environment is a three-dimensional virtual environment, the virtual characters may be three-dimensional virtual models, and each virtual character has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment. Furthermore, as a three-dimensional character constructed based on three-dimensional human skeleton technology, the virtual characters can realize different external images by wearing different skins. In some embodiments, the virtual characters may be realized by a 2.5-dimensional or two-dimensional model, and the embodiments of the present application are not limited thereto.
[0019] Multiplayer online tactical competition: In a virtual environment, different virtual teams belonging to at least two opposing camps each occupy a map area and compete to achieve a certain victory condition. The victory conditions include, but are not limited to, at least one of the following: occupying a base or destroying the base of the opposing camp, shooting and killing the virtual characters of the opposing camp, ensuring one's own survival within a specified scene and time, seizing a certain resource, and exceeding the opponent's score within a specified time. The tactical competition can be conducted on a station-by-station basis, and the maps of the tactical competition of each station may be the same or different. Each virtual team may include one or more virtual characters, for example, one, two, three, or five.
[0020] MOBA game: A game in which several bases are provided in a virtual environment, and users belonging to different camps compete in the virtual environment, controlling virtual characters to occupy bases or destroy the bases of the opposing camp. For example, a MOBA game may divide users into two opposing camps, distribute the virtual characters controlled by the users in the virtual environment and have them compete with each other, with the victory condition being to destroy or occupy all of the enemy's bases. MOBA games are played in units of stations, and the duration of one MOBA game station is from the time the game starts to the time the victory condition is achieved.
[0021] User Interface (UI) Controller: Any visible controller or element that appears in the user interface of an application program, such as a picture, an input box, a text box, a button, a tag, and the like. Some of the UI controllers are for responding to operations by a user, such as a skill controller that controls a main control virtual character to activate a skill. A user triggers the skill controller to control a main control virtual character to activate a skill. The UI controller according to the embodiment of the present application includes, but is not limited to, a skill controller and a shift controller.
[0022] 1 is a block diagram showing a configuration of a computer system according to an exemplary embodiment of the present application. The computer system 100 includes a first terminal 110, a server 120, and a second terminal .
[0023] A client 111 capable of supporting a virtual environment is installed and executed on the first terminal 110, and the client 111 may be a multiplayer online battle program. When the first terminal executes the client 111, a user interface of the client 111 is displayed on the screen of the first terminal 110. The client 111 may be any one of a military simulation program, a battle royale shooting game, a virtual reality (VR) application program, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online battle arena game (MOBA), and a simulation game (SLG). In this embodiment, the client 111 is an MOBA game as an example. The first terminal 110 is a terminal used by the first user 112, and the first user 112 uses the first terminal 110 to control the operation of a first virtual character in a virtual environment, and the first virtual character can be referred to as a main control virtual character of the first user 112. The operation of the first virtual character includes at least one of, but is not limited to, shifting, jumping, transferring, skill activation, adjusting body posture, crawling, walking, running, riding, flying, driving, picking up, shooting, attacking, and throwing. Illustratively, the first virtual character is a first virtual character such as, for example, a simulated human character or a cartoon human character.
[0024] The second terminal 130 has a client 131 installed and executed that can support a virtual environment, and the client 131 may be a multiplayer online battle program. When the second terminal 130 executes the client 131, the user interface of the client 131 is displayed on the screen of the second terminal 130. The client may be any one of a military simulation program, a battle royale shooting game, a VR application program, an AR program, a 3D map program, a virtual reality game, an augmented reality game, an FPS, a TPS, a MOBA, and a SLG, and in this embodiment, the client is an MOBA game. The second terminal 130 is a terminal used by a second user 113, and the second user 113 uses the second terminal 130 to control a second virtual character in a virtual environment to operate, and the second virtual character can be called a main control virtual character of the second user 113. Exemplarily, the second virtual character is a second virtual character such as a simulated human character or a cartoon human character.
[0025] Further, the first virtual character and the second virtual character may be located in the same virtual environment. Further, the first virtual character and the second virtual character may belong to the same camp, team, organization, or have a friend relationship or temporary communication rights. Further, the first virtual character and the second virtual character may belong to different camps, teams, organizations, or have an adversarial relationship.
[0026] Furthermore, the client installed on the first terminal 110 and the second terminal 130 may be the same, or the client installed on the two terminals may be the same type of client on different operating system platforms (Android or IOS). The first terminal 110 may refer broadly and generally to one of a plurality of terminals, and the second terminal 130 may refer broadly and generally to another one of a plurality of terminals, but in this embodiment, only the first terminal 110 and the second terminal 130 are described as examples. The models of the first terminal 110 and the second terminal 130 may be the same or different, and include at least one of a smartphone, a tablet, an e-book reader, an MP3 player, an MP4 player, a laptop-type portable computer, and a desktop computer.
[0027] 1 shows only two terminals, in different embodiments, there are multiple other terminals 140 that can access the server 120. In addition, there are one or more terminals 140 corresponding to developers, and a platform for developing and editing a client capable of supporting a virtual environment is installed in the terminal 140, and the developer can edit and update the client on the terminal 140, and transmit the updated client pack to the server 120 via a wired or wireless network, and the first terminal 110 and the second terminal 130 can download the client pack from the server 120 to realize the update of the client.
[0028] A first terminal 110, a second terminal 130, and another terminal 140 are connected to a server 120 via a wireless network or a wired network.
[0029] The server 120 includes at least one of a server, multiple servers, a cloud computing platform, and a virtualization center. The server 120 provides background services to clients capable of supporting a three-dimensional virtual environment. In addition, the server 120 may be responsible for main calculations, and the terminal may be responsible for secondary calculations, or the server 120 may be responsible for secondary calculations, and the terminal may be responsible for main calculations, or the server 120 and the terminal may be cooperatively performing calculations in a distributed computing architecture.
[0030] In one illustrative example, the server 120 includes a processor 122, a user account database 123, a match service module 124, and a user-facing input / output interface (I / O interface) 125. Here, the processor 122 loads commands stored in the server 120 and processes data in the user account database 123 and the match service module 124. The user account database 123 stores data of user accounts used by the first terminal 110, the second terminal 130, and the other terminals 140, such as avatars of the user accounts, nicknames of the user accounts, combat power indexes of the user accounts, and service areas in which the user accounts are located. The match service module 124 provides multiple match rooms so that users can play matches such as 1V1 matches, 3V3 matches, and 5V5 matches. The user-facing I / O interface 125 establishes communication and exchanges data with the first terminal 110 and / or the second terminal 130 via a wireless network or a wired network.
[0031] 2 is a flowchart illustrating a method for controlling skill activation by a virtual object according to an exemplary embodiment of the present application. The method may be executed by a computer device, for example, by a terminal in the system illustrated in FIG 1 or a client in the terminal. As illustrated in FIG 2, the method includes the following steps:
[0032] Step 202: Display a first virtual character and a skill controller, the skill controller being for activating a range-type skill.
[0033] The first virtual character is a virtual character controlled by a user. The client controls the first virtual character to act in a virtual environment based on a human-machine interaction operation by the first user received. Illustratively, the virtual environment is a three-dimensional virtual environment.
[0034] A skill is an ability used or activated by a first virtual character to give an attack, a detrimental effect, or a gain effect to the first virtual character (including itself and other virtual characters). Skills include active skills and passive skills, where an active skill is a skill that a virtual character actively uses or activates, and a passive skill is a skill that is automatically triggered when a passive condition is satisfied. Illustratively, the skill referred to in this embodiment is an active skill that a user actively uses or activates by controlling the first virtual character.
[0035] For example, skills can be divided into directional skills and range skills, and directional skills are skills that require the direction or target of activation to be specified during the activation process. Range skills are skills that require the range of activation to be specified during the activation process. The skills referred to in this embodiment generally refer to range skills, that is, the range of activation of the skill activated by the first virtual character has a specific area range.
[0036] For example, the naming of range-type skills is classified according to the way in which the skills are activated. The process of using a skill by a first virtual character includes an activation process and an effect process. In the activation process, the terminal accepts a user's operation to activate the skill, and in the effect process, the terminal controls the virtual character to use the skill based on the user's operation.
[0037] In other words, in the process of activating a range-type skill, the skill activation range must be determined by a user operation (trigger operation), and in the process of activating a range-type skill, the terminal must control the virtual character to use the skill based on the selected activation range.
[0038] In one preferred embodiment, the range skill is a skill that selects an activation range based on a user operation, determines an effective range based on the activation range, and activates the skill within the effective range. In one preferred embodiment, the range skill is a skill that selects an activation range based on a user operation, determines a hit target based on the activation range, and activates the skill on the hit target.
[0039] In contrast, a directional skill is a skill that selects an activation direction based on a user operation, determines an effective direction based on the activation direction, and activates the skill in the effective direction. In one preferred embodiment, a directional skill is a skill that selects an activation direction based on a user operation, determines a hit target based on the activation direction, and activates the skill on the hit target.
[0040] For example, when a range-type skill is activated, the activation range currently selected by the user in the virtual environment is displayed in real time based on the user's operation. The activation range has attributes such as position, size, and shape. According to the method in the related art, only the position of the activation range can be changed by the user's operation, and the size and shape of the activation range are fixed. In contrast, according to the method according to the embodiment of the present application, at least one of the position, size, and shape of the activation range can be changed by the user's operation.
[0041] Illustratively, a "range skill" may be referred to as an "area skill," "area skill," "range skill," "non-directional skill," "range skill," "area skill," or "non-directional skill," and a "range skill indicator" may be referred to as an "area skill indicator," "area skill indicator," "range skill indicator," "non-directional skill indicator," "range skill indicator," "area skill indicator," or "non-directional skill indicator."
[0042] The skill controller is a controller for controlling a virtual character to activate a skill, and the form of the skill controller includes at least one of a button controller and a wheel controller.
[0043] Illustratively, as shown in FIG. 3, the client displays a user interface 30, which includes a virtual environment display and at least one controller.
[0044] The virtual environment screen is a screen of the three-dimensional virtual environment seen from the viewing angle of the first virtual character 31. For example, a camera model is installed in the three-dimensional virtual environment at the viewing angle of the first virtual character 31, and the three-dimensional virtual environment is photographed by the camera model to obtain the virtual environment screen. The virtual environment screen includes the first virtual character 31 and the second virtual character 32 in the virtual environment. Furthermore, the second virtual character 32 may be an enemy virtual character.
[0045] The at least one controller is displayed as a floating head-up display (HUD) layer on the virtual environment screen, and even if the screen contents of the virtual environment screen change, the display position of the at least one controller is not affected by the screen contents. The at least one controller includes a movement wheel 33 on the left side and a plurality of skill controllers 34 on the right side. The movement wheel 33 is for controlling the first virtual character 31 to move in the virtual environment, and the plurality of skill controllers 34 are for controlling the first virtual character 31 to activate various skills.
[0046] For example, the skill controllers 34 include six skill buttons, Skill 1 to Skill 6, and three normal attack buttons in the lower right corner. In this embodiment, Skill 3 is the skill button for an area skill. In addition, in a consumer game scene, the skill controllers 34 may be realized by physical keys or physical sticks.
[0047] Step 204: In response to a trigger operation on the skill controller, a range-type skill indicator and a drag controller are displayed, the range-type skill indicator is for indicating an activation range of the range-type skill, and the activation range has a first boundary point determined based on the position of the first virtual character and a second boundary point determined based on the position of the drag controller.
[0048] The trigger operation is a user operation acting on a skill button accepted by the client, and the client generates a trigger command based on the accepted user operation. Exemplarily, the user operation may be at least one of an operation on a UI controller, a voice operation, a motion operation, a character operation, a mouse operation, a keyboard operation, and a game stick operation.
[0049] The range-type skill indicator is for indicating the activation range of the range-type skill. Furthermore, the range-type skill indicator is for indicating the activation range of the range-type skill before the activation and effect of the range-type skill. The range-type skill indicator is displayed on a reference plane of the virtual environment, and the reference plane is a plane when the range-type skill is activated. For example, if the reference plane is the ground of the virtual environment, the range-type skill indicator is a graphic indicator displayed on the ground of the virtual environment, and the graphic indicator occupies a part of the area on the ground of the virtual environment, and the area is for indicating the activation range of the range-type skill.
[0050] In this embodiment, the activation range is a sealed area having a first boundary point and a second boundary point. Usually, the first boundary point and the second boundary point are the two most distant points in the sealed area. Illustratively, the sealed area may be any one of a square, a rectangle, a rhombus, a circle, an ellipse, a hexagon, and a dodecagon. Among them, the first boundary point is determined based on the position of the first virtual character, and the second boundary point is determined based on the position of the drag controller.
[0051] For example, if the reference plane is the ground, the first boundary point is determined based on the position of the stance point of the first virtual character on the ground. The drag controller is a controller for changing the position of the second boundary point by a drag operation. If classified according to the display position, the drag controller is displayed on the HUD layer or the reference plane. When the drag controller is displayed on the HUD layer, the second boundary point is determined based on the mapping position of the drag controller on the reference plane, and the mapping position is obtained by mapping the display position of the drag controller on the HUD layer to the reference plane; when the drag controller is displayed on the reference plane in the virtual environment, the second boundary point is determined based on the real-time position of the drag controller on the reference plane.
[0052] 3, when a user clicks on the skill button for skill 3, a drag controller 35 and a range-type skill indicator 36 are additionally displayed on the user interface 30. The range-type skill indicator 36 is a rectangular area determined based on a first boundary point 37 and a second boundary point 38. Here, the first boundary point 37 is a stance point of the first virtual character 31, and the second boundary point 38 is determined based on the ground of the virtual environment, i.e., the mapping position of the drag controller 35 on the virtual ground.
[0053] Step 206: In response to a drag operation on the drag controller, at least one of the shape and area of the activation range indicated by the range-type skill indicator is changed.
[0054] A drag operation is an operation of dragging a drag controller to move or slide it. If the drag controller is displayed on the HUD layer, the drag operation is an operation of dragging the drag controller to move it on the HUD layer, and if the drag controller is displayed on the reference plane, the drag operation is an operation of dragging the drag controller to move it on the reference plane.
[0055] In response to a drag operation on the drag controller, the position of the second boundary point on the reference plane is changed, and further, the shape and / or area of the activation range indicated by the range-type skill indicator is changed according to the constraints of the first boundary point and the second boundary point.
[0056] For example, if the activation range is a rectangle, changing the activation range means changing at least one of the shape and area of the rectangle by moving the second boundary point.
[0057] As described above, the method of this embodiment accepts a drag operation on a drag controller, determines two boundary points in the activation range based on the position of the first virtual character and the position of the drag controller, and further changes the shape and / or area of the activation range in response to the drag operation, making it possible to change the area and / or shape of the activation range defined by the range-type skill indicator by simply accepting a single operation, thereby providing a range-type skill activation method that allows customization of the activation range, simplifying the processing steps of the terminal when attacking multiple enemy virtual characters that are positioned in different locations, and improving the processing efficiency of the terminal.
[0058] In the embodiment of the present application, the shape of the range type skill indicator is not limited. The shape may be determined by a first boundary point and a second boundary point. Exemplarily, the shape of the range type skill indicator may be any one of a square, a rectangle, a rhombus, a circle, an ellipse, a hexagon, and a dodecagon. Here, the first boundary point is determined based on the position of the first virtual character, and the second boundary point is determined based on the position of the drag controller.
[0059] In some embodiments, the range-type skill indicator 36 is a rectangular area, as shown in Fig. 3. Illustratively, the first boundary point 37 is positioned at the stance point of the first virtual character 31, and the second boundary point 38 is positioned at the mapping position of the drag controller 35 on the ground. When the first boundary point 37 and the second boundary point 38 are used as two vertices on the diagonal of the rectangular area to form a rectangle, the rectangle becomes the range-type skill indicator.
[0060] In some embodiments, the range skill indicator 36 is circular, as shown in Fig. 4. Illustratively, the first boundary point 37 is positioned at the foot of the first virtual character 31, and the second boundary point 38 is positioned at the mapping position of the drag controller 35 on the ground. If the distance between the first boundary point 37 and the second boundary point 38 is set to the diameter of the circular range skill indicator, and the center of the circle is positioned at a position where the distance between the first boundary point 37 and the second boundary point 38 is equal to the distance between the two points to form a circle, the circle becomes the range skill indicator.
[0061] In some embodiments, the range-type skill indicator 36 is a hexagon, as shown in Fig. 5. Illustratively, the first boundary point 37 is positioned at the stance point of the first virtual character 31, and the second boundary point 38 is positioned at the mapping position of the drag controller 35 on the ground. When the first boundary point 37 and the second boundary point 38 are used as two vertices on the diagonal line of a hexagonal area to form a hexagon, the hexagon becomes the range-type skill indicator.
[0062] According to the display position, the drag controller 35 has at least two implementations.
[0063] In the first type, the drag controller 35 is displayed on the HUD layer, as in the example shown in FIG. 6 below, and in the second type, the drag controller 35 is displayed on the reference plane of the virtual environment, as in the example shown in FIG. 10 below.
[0064] Regarding the first method
[0065] 6 is a flowchart illustrating a method for controlling skill activation by a virtual object according to an exemplary embodiment of the present application. The method may be executed by a computer device, for example, a terminal or a client in a terminal as shown in FIG. 1. As shown in FIG. 6, the method includes the following steps:
[0066] Step 202: Display a first virtual character and a skill controller, the skill controller being for activating a range-type skill.
[0067] Since this step can be referred to as step 202 in FIG. 2, the description thereof will be omitted here.
[0068] Step 204a: In response to a trigger operation on the skill controller, a range-type skill indicator is displayed on a reference surface of the virtual environment, and the skill controller is switched to a wheel controller, where the wheel controller includes a wheel region and a stick portion, the range-type skill indicator is for indicating an activation range of the range-type skill, and the activation range has a first boundary point determined based on a position of a first virtual character and a second boundary point determined based on a position of a drag controller.
[0069] Illustratively, the trigger operation is an operation of clicking the skill controller. In an initial state, the skill controller is displayed in the form of a skill button.
[0070] When the user clicks the skill controller, a range-type skill indicator is displayed on the reference plane of the virtual environment. In this embodiment, the range-type skill indicator is taken as an example of a rectangular area skill indicator. At the same time, when the user clicks the skill controller, the skill controller is switched from the form of a skill button to a wheel controller and displayed. During the process of displaying the wheel controller, the display of the original skill button is canceled or is still retained and displayed at the original position.
[0071] 7, the wheel controller includes a wheel area 35a and a stick portion 35b, both of which are circular, and the display area of the stick portion 35b is smaller than that of the wheel area 35a. The stick portion 35b can be dragged to move within the circular range indicated by the wheel area 35a. The center of the wheel area 35a corresponds to the standing point 37 of the first virtual character 31 on the ground of the virtual environment, i.e., corresponds to the first boundary point 37. There is a circular range 35c on the ground of the virtual environment corresponding to the wheel area 35a, and the radius of the wheel area 35a and the radius of the circular range 35c form a mapping ratio k. When the stick portion 35b is moved within the wheel area 35a, a second boundary point 38 is mapped to the ground of the virtual environment at the mapping ratio k based on the direction angle and distance of the stick portion 35b to the circle of the wheel area 35a.
[0072] 8, in the initial state, the skill controller 35 is displayed in the form of a skill button. When the user clicks the skill controller 35, the wheel controller 35 and the range-type skill indicator 36 are displayed on the reference plane of the virtual environment. The wheel controller 35 includes a wheel area 35a and a stick part 35b. In this embodiment, the range-type skill indicator 36 is a skill indicator of a rectangular area, and the range-type skill indicator 36 is determined based on a first boundary point 37 and a second boundary point 38. In the process of displaying the wheel controller 35, the original skill button "Skill 3" is still displayed retained in the original position.
[0073] Step 206a: In response to a drag operation on the stick, update the second boundary point based on a mapping position of the stick on the virtual ground to obtain an updated second boundary point.
[0074] After the range-type skill indicator 36 is displayed on the terminal, in response to detecting a drag operation of the stick portion 35b, a second boundary point 38 is determined based on the mapping position of the stick portion 35b on the virtual ground.
[0075] For example, in response to the terminal detecting a leftward sliding operation of the stick portion 35b, the terminal determines a second boundary point 38 by moving left in accordance with the leftward sliding operation based on the mapping position of the stick portion 35b on the virtual ground, and updates the display position of the second boundary point 38.
[0076] In one preferred embodiment, the range skill has a plurality of candidate boundary points, and the second boundary point can only be selected from the plurality of candidate boundary points. In response to a drag operation on the stick, an updated second boundary point is determined from the plurality of candidate boundary points based on a mapping position of the stick on the reference plane.
[0077] For example, the method of determining the second boundary point based on the mapping position may be such that the candidate boundary point closest to the mapping position is determined as the updated second boundary point. Alternatively, the candidate boundary point located at the upper right of the mapping position and closest to the mapping position may be determined as the updated second boundary point. Alternatively, the candidate boundary point located at the lower left of the mapping position and closest to the mapping position may be determined as the updated second boundary point.
[0078] For example, each candidate boundary point corresponds to one candidate skill effective range. After selecting the corresponding candidate boundary point as the second boundary point, if the dragging operation is terminated at this time, the selected activation range becomes the skill effective range corresponding to the candidate boundary point. That is, in response to the end of the dragging operation, the range-type skill is activated within the current skill effective range, and the current skill effective range is the same as the activation range.
[0079] Step 206b: Modify at least one of the shape and area of the activation range based on the updated second boundary points.
[0080] Since the activation range is determined based on the first boundary point and the second boundary point, when the second boundary point is updated, the shape and / or area of the activation range is changed based on the updated second boundary point.
[0081] Taking the activation range as an example having a rectangular shape, this step includes the following two steps:
[0082] S1: Determine an updated rectangular shape by taking the first boundary point and the updated second boundary point as two diagonal points of the rectangular shape.
[0083] S2: Change the activation range indicated by the range-type skill indicator to an updated rectangular state.
[0084] For example, after determining the second boundary point mapped to the virtual ground based on the drag-slide operation of the stick of the wheel controller, the client determines an updated rectangular-shaped range-type skill indicator with the first boundary point and the updated second boundary point as two diagonal points of the rectangular shape. The terminal changes the range of the range-type skill indicator based on the updated rectangle to indicate the activation range of the range-type skill.
[0085] Similarly, since the first boundary point is determined based on the position of the first virtual character, when the user changes the position of the first virtual character using the shift controller during the process of activating a range-type skill, an updated first boundary point is determined based on the position of the first virtual character, and the shape and / or area of the activation range is changed based on the updated first boundary point.
[0086] In one possible design, in the process of activating the range-type skill, in response to a shift operation on the shift controller, the positions of the first virtual character and the first boundary point are simultaneously changed, and the position of the first virtual character's stance point and the position of the first boundary point are always the same. In another possible design, in the process of activating the range-type skill, in response to a shift operation on the shift controller, the position of the first boundary point is changed while keeping the stance point of the first virtual character as it is, in this case, the position of the stance point of the first virtual character and the position of the first boundary point are different. In another possible design, in the process of activating the range-type skill, in response to a shift operation on the shift controller, the position of the first virtual character's stance point is changed while keeping the position of the first boundary point as it is, in this case, the position of the stance point of the first virtual character and the position of the first boundary point are different.
[0087] Step 208: In response to the end of the dragging motion, the current skill activation range of the range-type skill is determined based on the activation range.
[0088] The skill range is the range of effect when an area-type skill is activated. The client will automatically adjust the skill range of the area-type skill based on the activation range.
[0089] In some embodiments, the activation range and the skill effective range are the same, and the terminal determines the activation range as the skill effective range.
[0090] In some embodiments, the activation range and the skill effective range are not exactly the same, but have a slight difference. The terminal determines the skill effective range based on the activation range.
[0091] Illustratively, the range-type skill includes multiple candidate skill effective ranges. Schematically referring to FIG. 9, the ground in the virtual environment is taken as the reference plane, a world coordinate system is established with the position of the first virtual character as the center, and the largest skill effective range of the range-type skill is divided into multiple square regions in units of 3 meters, where 3 meters is merely illustrative. In this case, the range-type skill includes five candidate square skill effective ranges and multiple candidate rectangular skill effective ranges.
[0092] The first skill effective range: The first boundary point is (0,0), the second boundary point is (3,3), and it is composed of block A; The second skill effective range: The first boundary point is at (0,0), the second boundary point is at (6,6), and it is composed of blocks A, B, F, and G. The third skill effective range: The first boundary point is at (0,0), the second boundary point is at (9,9), and it is composed of blocks A, B, C, F, G, H, K, L, and M. Fourth skill effective range: The coordinates of the first boundary point are (0,0), the coordinates of the second boundary point are (12,12), Fifth skill effective range: The coordinates of the first boundary point are (0,0), and the coordinates of the second boundary point are (15,15). The fifth skill effective range is the largest skill effective range of an area-type skill.
[0093] The skill activation range of multiple candidate rectangles is as follows: The sixth skill range includes blocks A and B. The seventh skill range includes blocks A, B, and C; The eighth skill area includes blocks A, B, C, and D; The ninth skill area includes blocks A, B, C, D, and E; 10th Skill Area including Blocks A, B, C, F, G, and H Includes.
[0094] The skill effectiveness range of each rectangle includes multiple adjacent blocks, and as can be inferred as above, a detailed explanation will be omitted here.
[0095] In one feasible design, the smallest circumscribed skill effective range is selected from the multiple candidate skill effective ranges to determine the current skill effective range of the area-type skill. The "smallest circumscribed skill effective range" is the smallest area among the multiple candidate skill effective ranges that contain or cover the activation range.
[0096] 9, if the coordinates of the second boundary point corresponding to the activation range are (4,4), the coordinates of the second boundary point are rounded up to (6,6), and the second skill activation range is determined as the current skill activation range of the area-type skill. Also, if the coordinates of the second boundary point corresponding to the activation range are (2,4), the coordinates of the second boundary point are rounded up to (3,6), and block A and block F are determined as the current skill activation range of the area-type skill.
[0097] In another possible design, the skill effect range with the highest overlap area ratio of the activation ranges is selected from multiple candidate skill effect ranges and determined as the current skill effect range of the area-type skill.
[0098] Referring to Figure 9, assuming that the coordinates of the second boundary point corresponding to the activation range are (4,4), the overlap area ratio between the first skill effectiveness range and the activation range is 9 / 16 = 56%, and the overlap area ratio between the second skill effectiveness range and the activation range is 16 / 36 = 44%, so the first skill effectiveness range is determined as the current skill effectiveness range of the area-type skill.
[0099] Step 210: Activate an area-based skill within the effective range of this skill.
[0100] When a range skill is activated, the range skill generates a skill activation value for the second virtual character 32 within the current skill activation range. The skill activation value may be a blood damage value, a blood recovery value, a magic damage value, a magic recovery value, etc.
[0101] For example, the effective value of the range-type skill within the current skill effective range is determined based on the effective area ratio. The effective area ratio is the ratio between the area of the current skill effective range and the largest skill effective area of the range-type skill. The largest skill effective area of the range-type skill is the largest area in which the range-type skill can effectively exert its effect when the activation range generated by the user's drag operation is at the edge of the wheel area, for example, the fifth skill effective range in FIG. 9.
[0102] In one possible design, the effective area value of the range-type skill is determined based on the effective area ratio. The effective area value refers to the skill effective value per unit area.
[0103] For example, the total effect value of a range skill is constant, and the smaller the effect area ratio, the larger the unit area effect value, and the larger the effect area ratio, the smaller the unit area effect value. In this way, if there are fewer enemy virtual characters, more damage value can be caused.
[0104] In one possible design, the total effect value of the range-type skill is determined based on the effective area ratio. The total effect value is the effect value generated in the total area of the skill's effective range.
[0105] For example, the effective value per unit area of a range skill is constant, and the smaller the effective area ratio, the smaller the total effective value, and the larger the effective area ratio, the larger the total effective value. In this way, when the total effective value is small, the magic consumption of the first virtual character can be saved.
[0106] For example, taking an area-type skill as a skill that has a location-blocking effect, when the area-type skill is activated based on user operation, a blocking effect is exerted within the range of effect of the current skill, and an enemy virtual character within the range of effect of the current skill cannot leave the range of effect of the current skill and can only move within the range of effect of the current skill, and the effect is exerted continuously on the enemy virtual character.
[0107] Referring to FIG. 8, when a range-type skill is activated, a current skill effective range 39 is displayed on the user interface 30, and an animated special effect is displayed in the current skill effective range 39. In order to ensure that the display of the animated special effect is consistent every time the range-type skill is activated, an engineer can create the animated special effect according to the largest skill effective range when creating the animated special effect. If the current skill effective range 39 is smaller than the largest skill effective range, a mask layer is used to mask the animated special effect that does not belong to the current skill effective range 39, and only the animated special effect that belongs to the current skill effective range 39 is reserved and displayed. This display method does not require the animated special effect to be stretched or contracted, and therefore can ensure the consistency of the display of the animated special effect when the skill effective range is different.
[0108] As described above, the method of this embodiment accepts a drag operation on a drag controller, determines two boundary points in the activation range based on the position of the first virtual character and the position of the drag controller, and further changes the shape and / or area of the activation range in response to the drag operation, making it possible to change the area and / or shape of the activation range defined by the range-type skill indicator by simply accepting a single operation, thereby providing a range-type skill activation method that allows customization of the activation range, simplifying the processing steps of the terminal when attacking multiple enemy virtual characters that are positioned in different locations, and improving the processing efficiency of the terminal.
[0109] The method according to this embodiment further accepts a drag operation on the stick portion of the wheel controller, and maps the position selected by the stick portion onto the reference plane of the virtual environment to change the area and / or shape of the activation range defined by the range-type skill indicator, and by controlling the activation range using the stick portion of the wheel controller, the processing steps of the terminal are simplified and the terminal can efficiently process the process of aiming at an enemy virtual character.
[0110] The method according to this embodiment further determines the effective value of the range-type skill within the current skill effective range based on the effective area ratio, thereby determining the activation range of the range-type skill based on the number and distribution area range of the enemy virtual characters, thereby achieving the purpose of saving the magic consumption of the first virtual character and inflicting more damage value on the enemy virtual characters.
[0111] Regarding the second method
[0112] 10 is a flowchart illustrating a method for controlling skill activation by a virtual object according to an exemplary embodiment of the present application. The method may be executed by a computer device, for example, a terminal or a client in a terminal as shown in FIG. 1. As shown in FIG. 10, the method includes the following steps:
[0113] Step 202: Display a first virtual character and a skill controller, the skill controller being for activating a range-type skill.
[0114] Since this step can be referred to as step 202 in FIG. 2, the description thereof will be omitted here.
[0115] Step 204b: In response to a trigger operation on the skill controller, a range-type skill indicator is displayed on a reference plane of the virtual environment, and a drag button is displayed at a second boundary point of the range-type skill indicator, where the range-type skill indicator is for indicating an activation range of the range-type skill, and the activation range has a first boundary point determined based on a position of the first virtual character and a second boundary point determined based on a position of the drag controller.
[0116] Illustratively, the drag controller includes a drag button. The user can trigger the skill controller to call the drag button in the virtual environment screen, and move the drag button in the virtual environment screen to determine the position of the second boundary point by himself.
[0117] Exemplarily, as shown in FIG. 11, when the user clicks on "Skill 3" on the skill controller, a drag button 35 is called up on the virtual environment screen, and a range-type skill indicator 36 and the drag button 35 are displayed on the virtual environment screen of the user interface. The user can move the drag button 35 on the screen displayed in the virtual environment by pressing the drag button 35, and the client determines the final position of the drag button 35 on the reference plane of the virtual environment as the second boundary point. The range-type skill indicator 36 is a rectangle displayed on the reference plane with the position where the first virtual character 31 is located as the first boundary point and the final position of the drag button 35 on the reference plane as the second boundary point. Exemplarily, when the drag button is called up, the drag button can be pressed and moved arbitrarily to change the position of the corresponding second boundary point on the reference plane, and the area range indicated by the range-type skill indicator can be changed.
[0118] Step 206c: In response to a drag operation on the drag button, update the second boundary point based on a position of the drag button on the reference plane to obtain an updated second boundary point.
[0119] Illustratively, when the terminal detects a drag operation of the drag button on the virtual environment screen after displaying the range-type skill indicator, the client determines a second boundary point based on the position of the drag button on the virtual ground.
[0120] For example, in response to the terminal detecting a leftward sliding operation of the stick portion 35b, the terminal determines a second boundary point 38 by moving left in accordance with the leftward sliding operation based on the mapping position of the stick portion 35b on the virtual ground, and updates the display position of the second boundary point 38.
[0121] In one preferred embodiment, the range-type skill has a plurality of candidate boundary points, and the second boundary point can only be selected from the plurality of candidate boundary points. In response to a drag operation on the drag button, an updated second boundary point is determined from the plurality of candidate boundary points based on the position of the drag button on the reference plane.
[0122] For example, as a method of determining the second boundary point based on the position of the drag button on the reference plane, a candidate boundary point closest to the position may be determined as the updated second boundary point. Alternatively, a candidate boundary point located to the upper right of the position and closest to the mapping position may be determined as the updated second boundary point. Alternatively, a candidate boundary point located to the lower left of the position and closest to the mapping position may be determined as the updated second boundary point.
[0123] For example, each candidate boundary point corresponds to one candidate skill effective range. After selecting the corresponding candidate boundary point as the second boundary point, if the dragging operation is terminated at this time, the selected activation range becomes the skill effective range corresponding to the candidate boundary point. That is, in response to the end of the dragging operation, the range-type skill is activated within the current skill effective range, and the current skill effective range is the same as the activation range.
[0124] Step 206d: Modify at least one of the shape and area of the activation range based on the updated second boundary points.
[0125] Since the activation range is determined based on the first boundary point and the second boundary point, when the second boundary point is updated, the shape and / or area of the activation range is changed based on the updated second boundary point.
[0126] Similarly, since the first boundary point is determined based on the position of the first virtual character, when the user changes the position of the first virtual character using the shift controller during the process of activating a range-type skill, an updated first boundary point is determined based on the position of the first virtual character, and the shape and / or area of the activation range is changed based on the updated first boundary point.
[0127] Taking the activation range as an example having a rectangular shape, this step includes the following two steps:
[0128] S1: Determine an updated rectangular shape by taking the first boundary point and the updated second boundary point as two diagonal points of the rectangular shape.
[0129] S2: Change the activation range indicated by the range-type skill indicator to an updated rectangular state.
[0130] For example, after determining the second boundary point mapped to the virtual ground based on the drag-slide operation on the stick of the wheel controller, the client determines an updated rectangular-shaped range-type skill indicator with the first boundary point and the updated second boundary point as two diagonal points of the rectangular shape. The terminal changes the range of the range-type skill indicator based on the updated rectangle to indicate the activation range of the range-type skill.
[0131] Step 208: In response to the end of the dragging motion, the current skill activation range of the range-type skill is determined based on the activation range.
[0132] The skill range is the range of effect when an area-type skill is activated. The client will automatically adjust the skill range of the area-type skill based on the activation range.
[0133] In some embodiments, the activation range and the skill effective range are the same, and the terminal determines the activation range as the skill effective range.
[0134] In some embodiments, the activation range and the skill effective range are not exactly the same, but have a slight difference. The terminal determines the skill effective range based on the activation range.
[0135] Illustratively, the range-type skill includes multiple candidate skill effective ranges. Schematically referring to FIG. 9, the ground in the virtual environment is taken as a reference plane, a world coordinate system is established with the position of the first virtual character as the center, and the reference plane is divided into multiple small area regions in units of 3 meters. In this case, the range-type skill includes five candidate skill effective ranges.
[0136] First skill effective range: The coordinates of the first boundary point are (0,0), and the coordinates of the second boundary point are (3,3); Second skill effective range: The coordinates of the first boundary point are (0,0), the coordinates of the second boundary point are (6,6), Third skill effective range: The coordinates of the first boundary point are (0,0), the coordinates of the second boundary point are (9,9), Fourth skill effective range: The coordinates of the first boundary point are (0,0), the coordinates of the second boundary point are (12,12), Fifth skill effective range: The coordinates of the first boundary point are (0,0), and the coordinates of the second boundary point are (15,15). The fifth skill effective range is the largest skill effective range of an area-type skill.
[0137] In one feasible design, the smallest circumscribed skill effective range is selected from the multiple candidate skill effective ranges to determine the current skill effective range of the area-type skill. The "smallest circumscribed skill effective range" is the smallest area among the multiple candidate skill effective ranges that contain or cover the activation range.
[0138] In another possible design, the skill effect range with the highest overlap area ratio of the activation ranges is selected from multiple candidate skill effect ranges and determined as the current skill effect range of the area-type skill.
[0139] Step 210: Activate an area-based skill within the effective range of this skill.
[0140] When a range skill is activated, the range skill generates a skill activation value for the second virtual character 32 within the current skill activation range. The skill activation value may be a blood damage value, a blood recovery value, a magic damage value, a magic recovery value, etc.
[0141] For example, the effective value of the range-type skill within the current skill effective range is determined based on the effective area ratio. The effective area ratio is the ratio between the area of the current skill effective range and the largest skill effective area of the range-type skill. The largest skill effective area of the range-type skill is the largest area in which the range-type skill can effectively exert its effect when the activation range generated by the user's drag operation is at the edge of the wheel area, for example, the fifth skill effective range in FIG. 9.
[0142] In one possible design, the effective area value of the range-type skill is determined based on the effective area ratio. The effective area value refers to the skill effective value per unit area.
[0143] For example, if the total effect value of a range skill is constant, the smaller the effect area ratio, the larger the unit area effect value, and the larger the effect area ratio, the smaller the unit area effect value. In this way, if there are fewer enemy virtual characters, more damage value can be caused.
[0144] In one possible design, the total effect value of the range-type skill is determined based on the effective area ratio. The total effect value is the effect value generated in the total area of the skill's effective range.
[0145] For example, the effective value per unit area of a range skill is constant, and the smaller the effective area ratio, the smaller the total effective value, and the larger the effective area ratio, the larger the total effective value. In this way, when the total effective value is small, the magic consumption of the first virtual character can be saved.
[0146] For example, taking an area-type skill as a skill that has a location-blocking effect, when the area-type skill is activated based on user operation, a blocking effect is exerted within the range of effect of the current skill, and an enemy virtual character within the range of effect of the current skill cannot leave the range of effect of the current skill and can only move within the range of effect of the current skill, and the effect is exerted continuously on the enemy virtual character.
[0147] As described above, the method of this embodiment accepts a drag operation on a drag controller, determines two boundary points in the activation range based on the position of the first virtual character and the position of the drag controller, and further changes the shape and / or area of the activation range in response to the drag operation, making it possible to change the area and / or shape of the activation range defined by the range-type skill indicator by simply accepting a single operation, thereby providing a range-type skill activation method that allows customization of the activation range, which simplifies the processing steps of the terminal when attacking multiple enemy virtual characters that are positioned in different locations, and can improve the processing efficiency range type of the terminal.
[0148] The method of this embodiment further includes accepting a trigger operation on the skill controller, displaying a drag button located on the virtual environment screen, accepting a drag operation by the drag button on the virtual environment screen, determining the position of a second boundary point based on the drag operation, changing the area and / or shape of the activation range defined by the range-based skill indicator, and displaying the drag button on the virtual environment screen, thereby improving the accuracy of the drag operation accepted by the terminal, and enabling the terminal to accurately display the activation range selected by the operation on the virtual environment screen based on the drag operation.
[0149] The method according to this embodiment further determines the effective value of the range-type skill within the current skill effective range based on the effective area ratio, thereby determining the activation range of the range-type skill based on the number and distribution area range of the enemy virtual characters, thereby achieving the purpose of saving the magic consumption of the first virtual character and inflicting more damage value on the enemy virtual characters.
[0150] After using a range skill, the range skill cannot be used again until a certain cooldown period has elapsed. The present invention further provides an optional step of returning the cooldown period based on the effective range of the current skill.
[0151] 12 is a flow chart illustrating a method for controlling skill activation by a virtual object according to an exemplary embodiment of the present application. The method may be executed by a computing device, for example, a terminal or a client in a terminal as shown in FIG. 1. In addition to the above method embodiment, the method includes the following steps:
[0152] Step 212: Determine the cooldown time of the range-type skill based on the effective area ratio, where the effective area ratio is the ratio of the area of the current skill effective range to the area of the largest skill effective range of the range-type skill.
[0153] After activating a range skill, a cooling buffer process is performed on the range skill, and the cooling time refers to the time during which the range skill cannot be operated, and is determined based on the effective area ratio. The effective area ratio is the ratio of the area of the current skill effective area to the area of the largest skill effective area of the range skill. The largest skill effective area of a range skill is the largest area in which the range skill can effectively exert its effect when the activation range generated by the user's drag operation is at the edge of the wheel area, for example, the fifth skill effective area in FIG. 9.
[0154] For example, the effective area ratio is directly proportional to the cooling time. The larger the effective area ratio, the longer the cooling time, and the smaller the effective area ratio, the shorter the cooling time.
[0155] Exemplarily, the product of the effective area ratio and the cooling coefficient is determined as the cooling time of the range skill. Furthermore, the compensation coefficient may be selected according to linear compensation, or may be selected based on various compensation methods such as nonlinear compensation, parabolic compensation, etc., and this embodiment is not limited thereto. Exemplarily, if the current skill effective area of the range skill occupies 50% of the largest skill effective area, the client returns 50% of the largest cooling time for the range skill as a cooling buffer.
[0156] Illustratively, when selecting from multiple possible skill effect ranges based on activation range, selecting a smaller skill effect range can reduce the cooldown time of an area-based skill.
[0157] Step 214: In response to the end of the dragging motion, the skill controller is switched to and displayed as a skill controller in a cooling state.
[0158] Illustratively, the end of the drag action includes at least one of an end of dragging the wheel controller by the user and an end of pressing the drag button.
[0159] When the user finishes the dragging action, the client switches the wheel controller to a skill controller in a cooling state, and during the cooling phase, the wheel controller cannot be operated, i.e., area-type skills cannot be activated.
[0160] Step 216: When the display duration of the skill controller in the cooling state reaches the cooling time, display the skill controller in the enabled state.
[0161] Illustratively, when the cooling duration of a skill controller in a cooling state reaches the cooling time, the skill controller is restored to a usable state, in which case the range-type skill can be activated again by dragging the skill controller.
[0162] This embodiment can be combined with any of the three preferred embodiments shown in FIG. 2, FIG. 6 and FIG.
[0163] As described above, the method of this embodiment increases the number of effective uses of a range-type skill by cooling the skill controller for a certain period of time after the terminal accepts the end of the drag operation, and restoring the skill controller to a usable state when the cooling duration reaches the cooling time, thereby compensating for the cooling time.
[0164] The method of this embodiment further determines the cooldown time of the range-type skill based on the effective area ratio, thereby selecting a smaller skill effective range from multiple candidate skill effective ranges, thereby achieving the objective of reducing the cooldown time of the range-type skill.
[0165] 13 is a diagram showing the configuration of a control device for skill activation by a virtual object according to an exemplary embodiment of the present application. The device can be realized as a whole or part of a computer device by software, hardware, or a combination of both. The device 1300 includes: A display module 1320 for displaying a first virtual character and a skill controller, the skill controller being for activating an area-type skill; an interaction module 1340 for displaying a range-type skill indicator and a drag controller in response to a trigger operation on the skill controller, the range-type skill indicator being for indicating an activation range of a range-type skill, the activation range having a first boundary point determined based on a position of the first virtual character, and a second boundary point determined based on a position of the drag controller; and a modification module 1360 for modifying at least one of a shape and an area of the activation range in response to a drag operation on the drag controller. According to the implementation method 1, the drag controller includes a wheel controller including a wheel area and a stick part; The interaction module 1340, in response to a trigger operation on the skill controller, displays the range-type skill indicator on a reference surface of a virtual environment and displays the skill controller as the wheel controller; The change module 1360 changes at least one of the shape and the area of the activation range in response to a drag operation on the stick portion.
[0166] In the option design of this embodiment, in response to a drag operation on the stick part, the change module 1360 updates the second boundary point based on the mapping position of the stick part on the reference plane to obtain an updated second boundary point, and changes at least one of the shape and area of the activation range based on the updated second boundary point.
[0167] According to the implementation method 2, the drag controller includes a drag button; The interaction module 1340, in response to a trigger operation on the skill controller, displays the range-type skill indicator on a reference plane of the virtual environment and displays the drag button at the second boundary point of the range-type skill indicator; The change module 1360 changes at least one of the shape and the area of the activation range in response to a drag operation on the drag button.
[0168] In the optional design of this embodiment, in response to a drag operation on the drag button, the change module 1360 updates the second boundary point based on the position of the drag button on the reference plane to obtain an updated second boundary point, and changes at least one of the shape and area of the activation range based on the updated second boundary point.
[0169] In the option design of this embodiment, the range-type skill indicator is a skill indicator having a rectangular shape, the first boundary point is a first diagonal point of the rectangular shape, and the second boundary point is a second diagonal point of the rectangular shape; The change module 1360 determines an updated rectangular shape by taking the first diagonal point and the updated second diagonal point as two diagonal points of the rectangular shape, and changes the activation range indicated by the range-type skill indicator to the updated rectangular state.
[0170] In the optional design of this embodiment, the device is: The skill control module 1380 further includes, in response to the dragging motion being completed, an activation module 1380 that determines a current skill activation range of the range-type skill based on the activation range and activates the range-type skill within the current skill activation range.
[0171] In the option design of this embodiment, the range-type skill includes a plurality of candidate skill effective ranges, The actuation module 1380 includes: In response to the end of the dragging motion, select a skill activation range having the highest overlapping area ratio from the plurality of candidate skill activation ranges and determine the selected skill activation range as the current skill activation range of the range-type skill; or In response to the end of the dragging motion, a circumscribed skill effect range with the smallest activation range is selected from the plurality of candidate skill effect ranges and determined as the current skill effect range of the range-type skill.
[0172] In the optional design of this embodiment, the activation module 1380 determines a unit area effective value of the range-type skill based on the effective area ratio, and activates the range-type skill corresponding to the unit area effective value within the current skill effective range, and the effective area ratio is the ratio of the area of the current skill effective range to the area of the largest skill effective range of the range-type skill.
[0173] Alternatively, the activation module 1380 determines a total activation value of the range-type skill based on an activation area ratio, and activates the range-type skill corresponding to the total activation value within the current skill activation range, where the activation area ratio is the ratio of the area of the current skill activation range to the area of the largest skill activation range of the range-type skill.
[0174] In the option design of this embodiment, the range skill includes a plurality of candidate boundary points, The modification module 1360 determines an updated second boundary point from the plurality of candidate boundary points based on a mapping position of the stick on the reference plane in response to a drag operation on the stick.
[0175] In the option design of this embodiment, the range skill includes a plurality of candidate boundary points, The modification module 1360 determines an updated second boundary point from the plurality of candidate boundary points based on a position of the drag button in the reference plane in response to a drag operation on the drag button.
[0176] In the optional design of this embodiment, the activation module 1380 activates the range-type skill within the current skill activation range in response to the end of the drag action, and the current skill activation range is the same as the activation range.
[0177] In the optional design of this embodiment, the device is: A cooling module 1390 for determining a cooling time of the range-type skill based on an effective area ratio, the effective area ratio being a ratio of an area of the current skill effective range to an area of the largest skill effective range of the range-type skill; The display module 1320 further switches the wheel controller to the skill controller in a cooling state and displays it in response to the dragging action being ended, and displays the skill controller in a usable state when the display duration of the skill controller in the cooling state reaches the cooling time.
[0178] 14 is a diagram showing a configuration of a computer device 1400 according to an exemplary embodiment of the present application. The computer device 1400 may be a portable mobile terminal such as a smartphone, a tablet, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, etc. The computer device 1400 may also be called a user device, a mobile terminal, or other names.
[0179] The computing device 1400 generally includes a processor 1401 and a memory 1402 .
[0180] 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 at least one of the following hardware: a digital signal processing (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 1401 may include a main processor, also called a central processing unit (CPU), for processing data in an active state, and a coprocessor, which is a low-power processor for processing data in an idle state. In some embodiments, the processor 1401 may further include a graphics processing unit (GPU), which is responsible for rendering and drawing content to be displayed on a display screen. In some embodiments, the processor 1401 may further include an artificial intelligence (AI) processor for performing computational operations related to machine learning.
[0181] The memory 1402 may include one or more tangible and / or non-transitory computer readable storage media. The memory 1402 may further include high speed random access memory and / or non-volatile memory such as one or more magnetic disk storage devices, flash memory, etc. In some embodiments, the non-transitory computer readable storage media in the memory 1402 is for storing at least one command that, when executed by the processor 12401, realizes a method for displaying a virtual environment screen provided by an embodiment of the present application.
[0182] In some embodiments, the computing device 1400 may further include a peripherals interface 1403 and at least one peripheral. Specifically, the peripherals include at least one of an RF (radio frequency) circuit 1404 and a display screen 1405.
[0183] The peripheral interface 1403 is 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. In some other embodiments, any one or two of the processor 1401, the memory 1402, and the peripheral interface 1403 can be implemented on an independent chip or circuit board, although this embodiment is not limited thereto.
[0184] The RF circuit 1404 is for transmitting and receiving radio frequency (RF) signals, also called electromagnetic signals. The RF circuit 1404 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1404 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. In addition, the RF circuit 1404 may include an antenna system, an RF transceiver, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, and user identity module cards, etc. The RF circuit 1404 may communicate with other terminals according to at least one wireless communication protocol, including, but not limited to, the World Wide Web, metropolitan area networks, intranets, mobile communication networks of various generations (2G, 3G, 4G, and 5G), wireless local area networks, and / or wireless fidelity (Wi-Fi) networks. In some embodiments, the RF circuit 1404 may further include circuitry related to near field communication (NFC), but this application is not limited thereto.
[0185] The display screen 1405 is for displaying a user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. The display screen 1405 is also capable of collecting touch signals on or above its surface. The touch signals may be input as control signals to the processor 1401 for processing. The display screen 1405 is for providing 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 that is provided on a front panel of the computing device 1400. In other embodiments, the display screen 1405 may be at least two, each of which is provided on a different surface of the computing device 1400 or is provided in a folded manner. Furthermore, in some embodiments, the display screen 1405 may be a flexible display screen and provided on a curved or folded surface of the computing device 1400. Furthermore, the display screen 1405 may be provided in a non-rectangular irregular shape, i.e., irregular shape. The display screen 1405 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0186] Those skilled in the art will readily appreciate that the computing device 1400 is not limited to the configuration shown in FIG. 14, but may include more or fewer elements than those shown, combine some elements, or employ different arrangements of elements.
[0187] According to an embodiment of the present application, there is further provided a computer device including a processor and a memory, the memory storing at least one command, at least one program, code set or command set for implementing a method of displaying a virtual environment screen provided by each of the embodiments of the above methods when loaded and executed by the processor.
[0188] According to an embodiment of the present application, there is further provided a computer-readable storage medium storing at least one command, at least one program, code set or command set for realizing the method of displaying a virtual environment screen provided by each of the embodiments of the above methods when loaded and executed by a processor.
[0189] In this specification, "multiple" means two or more. "And / or" describes the correlation between related objects, and indicates that there are three types of relationships. For example, A and / or B indicates three cases: A simply exists, A and B exist simultaneously, and B simply exists. The character " / " generally indicates that the related objects before and after it are in an "or" relationship.
[0190] In addition, a person having ordinary skill in the art can understand that all or part of the steps of the above embodiments may be performed by hardware, or may be instructed by a program to be executed by related hardware, and the program may be stored in a computer-readable storage medium, and the above storage medium may be a ROM, a magnetic disk, an optical disk, etc.
[0191] The above is merely a preferred embodiment of the present application, and is not intended 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.
Claims
1. A method for controlling skill activation by a virtual character, executed by a computer device, comprising: displaying a first virtual character and a skill controller, the skill controller being for activating an area-type skill; a step of displaying a range-type skill indicator and a drag controller in response to a trigger operation on the skill controller, the range-type skill indicator being for indicating an activation range of the range-type skill, the activation range having a first boundary point determined based on a position of the first virtual character, and a second boundary point determined based on a position of the drag controller; changing at least one of a shape and an area of the activation range in response to a drag operation on the drag controller; The cooldown time of the range skill is determined based on the area of the activation range. Characterized in that Control methods.
2. the drag controller includes a wheel controller including a wheel region and a stick portion; The step of displaying a range type skill indicator and a drag controller in response to a trigger operation on the skill controller includes: displaying the range-type skill indicator on a reference plane of a virtual environment and displaying the skill controller as the wheel controller in response to a trigger operation on the skill controller; The step of changing at least one of the shape and the area of the activation range in response to a drag operation on the drag controller includes: The method includes a step of changing at least one of a shape and an area of the activation range in response to a drag operation on the stick portion. The control method according to claim 1 .
3. The step of changing at least one of the shape and the area of the activation range in response to a drag operation on the stick portion includes: updating the second boundary point based on a mapping position of the stick part on the reference plane in response to a drag operation on the stick part to obtain an updated second boundary point; and changing at least one of a shape and an area of the activation range based on the updated second boundary point. The control method according to claim 2 .
4. the drag controller includes a drag button; The step of displaying a range type skill indicator and a drag controller in response to a trigger operation on the skill controller includes: In response to a trigger operation on the skill controller, displaying the range-type skill indicator on a reference plane of a virtual environment and displaying the drag button at the second boundary point of the range-type skill indicator; The step of changing at least one of the shape and the area of the activation range in response to a drag operation on the drag controller includes: The method further comprises a step of changing at least one of a shape and an area of the activation range in response to a drag operation on the drag button. The control method according to claim 1 .
5. the step of changing at least one of the shape and the area of the activation range in response to a drag operation on the drag button, updating the second boundary point based on a position of the drag button on the reference plane in response to a drag operation on the drag button to obtain an updated second boundary point; and changing at least one of a shape and an area of the activation range based on the updated second boundary point. The control method according to claim 4.
6. the range type skill indicator is a skill indicator having a rectangular shape, the first boundary point is a first diagonal point of the rectangular shape, and the second boundary point is a second diagonal point of the rectangular shape; The step of changing at least one of the shape and the area of the activation range based on the updated second boundary point includes: determining an updated rectangular shape with the first diagonal point and the updated second diagonal point as two diagonal points of a rectangular shape; and changing the activation range indicated by the range-type skill indicator to the updated rectangular state. The control method according to claim 3 or 5.
7. In response to the drag operation being completed, determining a current skill activation range of the range-type skill based on the activation range; and activating the range-type skill within the current skill effective range. A control method according to any one of claims 1 to 5.
8. The range skill includes a plurality of candidate skill effective ranges; The step of determining the current skill activation range of the range-type skill based on the activation range in response to the end of the drag operation, In response to the end of the drag operation, a step of selecting a skill activation range having the highest overlapping area ratio from the plurality of candidate skill activation ranges and determining the selected skill activation range as the current skill activation range of the range-type skill; or In response to the end of the drag operation, a circumscribed skill effect range having the smallest activation range is selected from the plurality of candidate skill effect ranges, and determined as the current skill effect range of the range-type skill. The control method according to claim 7.
9. The step of activating the range-type skill within the effective range of the current skill is A step of determining a unit area effective value of the range-type skill based on an effective area ratio, the effective area ratio being a ratio of an area of the current skill effective range to an area of the largest skill effective range of the range-type skill; activating the range-type skill corresponding to the unit area effective value within the current skill effective range; or A step of determining a total effective value of the range-type skill based on an effective area ratio, the effective area ratio being a ratio of an area of the current skill effective range to an area of the largest skill effective range of the range-type skill; and activating the range-type skill corresponding to the total effective value within the current skill effective range. The control method according to claim 8.
10. the range skill includes a plurality of candidate boundary points; the step of updating the second boundary point based on a mapping position of the stick portion on the reference plane in response to a drag operation on the stick portion to obtain an updated second boundary point, and determining an updated second boundary point from the plurality of candidate boundary points based on a mapping position of the stick part on the reference plane in response to a drag operation on the stick part. The control method according to claim 3.
11. the range skill includes a plurality of candidate boundary points; the step of updating the second boundary point based on a position of the drag button on the reference plane in response to a drag operation on the drag button to obtain an updated second boundary point, determining an updated second boundary point from the plurality of candidate boundary points based on a position of the drag button on the reference plane in response to a drag operation on the drag button, The control method according to claim 5.
12. The control method according to claim 10 or 11, further comprising a step of activating the range-type skill within a current skill effective range, which is the same as the activation range, in response to the drag operation being completed.
13. A step of determining a cooldown time of the range-type skill based on an effective area ratio, the effective area ratio being a ratio of an area of the current skill effective range to an area of the largest skill effective range of the range-type skill; In response to the end of the drag operation, switching the wheel controller to the skill controller in a cooling state and displaying the skill controller; and displaying the skill controller in a usable state when a display duration of the skill controller in a cooling state reaches the cooling time. The control method according to claim 2 or 3.
14. A display module for displaying a first virtual character and a skill controller, the skill controller being for activating an area-type skill; an interaction module for displaying a range-type skill indicator and a drag controller in response to a trigger operation on the skill controller, the range-type skill indicator for indicating an activation range of the range-type skill, the activation range having a first boundary point determined based on a position of the first virtual character and a second boundary point determined based on a position of the drag controller; a change module for changing at least one of a shape and an area of the activation range in response to a drag operation on the drag controller, The cooldown time of the range skill is determined based on the area of the activation range. A control device for controlling skill activation by a virtual character.
15. the drag controller includes a wheel controller including a wheel region and a stick portion; the interaction module, in response to a trigger operation on the skill controller, displays the range-type skill indicator on a reference plane of a virtual environment and displays the skill controller as the wheel controller; The change module changes at least one of a shape and an area of the activation range in response to a drag operation on the stick unit. The control device according to claim 14.
16. The modification module includes: updating the second boundary point based on a mapping position of the stick portion on the reference plane in response to a drag operation on the stick portion to obtain an updated second boundary point; At least one of a shape and an area of the activation range is changed based on the updated second boundary point. The control device according to claim 15.
17. the drag controller includes a drag button; the interaction module, in response to a trigger operation on the skill controller, displays the range-type skill indicator on a reference plane of a virtual environment and displays the drag button at the second boundary point of the range-type skill indicator; The change module changes at least one of a shape and an area of the activation range in response to a drag operation on the drag button. The control device according to claim 14.
18. A computing device comprising a processor and a memory, The memory stores at least one program; The at least one program is loaded and executed by the processor to realize the control method according to any one of claims 1 to 13. Computer equipment.
19. computer instructions stored on a computer readable storage medium; A processor of a computer device reads and executes computer commands from the computer-readable storage medium, thereby implementing the control method according to any one of claims 1 to 13. Characterized by Computer program.
Citation Information
Patent Citations
Method and apparatus for releasing game skills, electronic device, and storage medium
CN109107153A
A method and apparatus for automatically targeting objects appearing in computer games.
JP2016525909A
Game program
JP2017099845A
Information processing method, terminal and computer storage medium
JP2018514041A
Operation and control method and terminal based on touch screen
JP2018518997A
