Control method of virtual character, device, equipment, and storage medium

JP2025170019A5Pending Publication Date: 2026-01-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025141523
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-04-23
Filing Date
2025-08-27
Publication Date
2026-01-20

AI Technical Summary

Technical Problem

In battle games, particularly MOBA games, the activation of directional skills in virtual environments often results in inaccurate direction alignment due to delays in updating the orientation of virtual objects, leading to inefficient human-machine interaction and the need to wait for skills to cool down before reactivation.

Method used

A method and device that allow independent control of skill activation and movement operations, determining the skill activation direction based on the adjusted orientation of the virtual character during movement control, ensuring accurate skill activation without cooldown delays.

Benefits of technology

Improves the accuracy and efficiency of skill activation in virtual environments by aligning the skill direction with the adjusted orientation of the virtual character, reducing erroneous operations and enhancing overall system performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide control of a virtual character that avoids the problem of efficiency of human-machine interaction becoming deteriorated, and improves performance of entire computer equipment.SOLUTION: A control method of a virtual character includes: a step for displaying a virtual environment interface; a step for receiving skill activation operation and movement control operation, the skill activation operation being used for activating a directional skill in a first direction, and the movement control operation being used for executing control so that a master virtual character moves in a second direction, the first direction and the second direction being mutually independent; and a step for executing control so that the master virtual character activates the directional skill in the second direction. When activating the directional skill, the second direction is determined according to the received movement control operation, and control is executed so that the master virtual character activates the directional skill in the second direction.SELECTED DRAWING: Figure 5
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority from a Chinese patent application bearing application number 202010328532.3 and entitled "Method, device, equipment and storage medium for controlling virtual characters," filed with the State Intellectual Property Office of the People's Republic of China on April 23, 2020, the entire contents of which are incorporated herein by reference.

[0002] TECHNICAL FIELD Embodiments of the present application relate to the field of virtual environments, and in particular to methods, devices, equipment and storage media for controlling virtual characters. [Background technology]

[0003] A battle game is a game in which multiple user accounts battle in the same virtual scene. Optionally, the battle game may be a multiplayer online battle arena game (MOBA), in which a user can attack an opposing virtual object by controlling the virtual object to activate skills.

[0004] In the related art, skill activation includes at least two activation methods: quick activation and aiming activation, where quick activation refers to activating a skill according to the current orientation of a virtual object in a virtual environment when a user activates a trigger in a skill activation control.

[0005] However, when activating a skill in this manner, if the user adjusts the orientation of the virtual object with the movement control and then triggers a quick activation of the skill, the orientation of the virtual object has not yet been updated, so the direction in which the user expects the skill to be activated will differ from the actual direction in which the skill is activated. This reduces the accuracy of the skill activation and requires the user to wait for the skill to cool down before reactivating it, resulting in low efficiency of human-machine interaction. Summary of the Invention [Problem to be solved by the invention]

[0006] The embodiments of the present application provide a method, device, equipment, and storage medium for controlling a virtual character, which can improve the efficiency of human-machine interaction during the process of a user performing a skill. [Means for solving the problem]

[0007] In one aspect, a method for controlling a virtual character executed by a computing device is provided, the method comprising: displaying a virtual environment interface, the virtual environment interface including a view of the virtual environment, the view including a master virtual character positioned in the virtual environment; receiving a skill activation operation and a movement control operation, wherein the skill activation operation is used to control the master virtual character to activate a directional skill in a first direction in the virtual environment, and the movement control operation is used to control the master virtual character to move in a second direction in the virtual environment, the first direction and the second direction being independent of each other; and controlling the master virtual character to activate the directional skill in the second direction in the virtual environment in response to the skill activation operation and the movement control operation.

[0008] In another aspect, there is provided a control device for a virtual character adapted for use in a computing device, the device comprising: a display module for displaying a virtual environment interface, the virtual environment interface including a screen for viewing the virtual environment, the screen including a master virtual character positioned in the virtual environment; a receiving module for receiving a skill activation operation and a movement control operation, wherein the skill activation operation is used to control the master virtual character to activate a directional skill in a first direction in the virtual environment, and the movement control operation is used to control the master virtual character to move in a second direction in the virtual environment; and an activation module for controlling the master virtual character to activate the directional skill in the second direction in the virtual environment in response to the skill activation operation and the movement control operation.

[0009] In one alternative embodiment, the virtual environment interface further includes a movement control, and the movement control operation is a drag operation received at the movement control; The receiving module is further adapted to receive a drag operation on the movement control; The apparatus further comprises: An acquisition module is included for acquiring a drag direction of the drag operation from a presentation layer, and determining, according to the drag direction, the corresponding second direction in which the master virtual character moves.

[0010] In one alternative embodiment, the device further comprises: further comprising a transmitting module for transmitting the skill activation data packet to the server; the skill activation data packet includes the second direction; The receiving module is further used to receive a skill activation feedback packet transmitted from the server; The activation module is further used to control the master virtual character to activate the directional skill in the second direction in the virtual environment in response to the skill activation feedback packet.

[0011] In one alternative embodiment, the sending module is adapted to send a mobility control data packet including the second direction to a server in response to the mobility control operation; The receiving module is further used for receiving a mobility control feedback packet sent from the server; The apparatus further comprises: and a movement module for controlling the master virtual character to face and move in the second direction in the virtual environment in response to the movement control feedback packet.

[0012] In one alternative embodiment, the device further comprises: and a cache module for caching the second direction in a logic layer as a facing direction of the master virtual character in response to the movement control feedback packet.

[0013] In one alternative embodiment, the acquisition module is further configured to acquire the facing direction of the master virtual character from the logic layer and set the facing direction as the first direction in response to the skill activation operation and when the movement control operation is not received; The activation module is further used to control the master virtual character to activate the directional skill in the first direction in the virtual environment.

[0014] In one alternative embodiment, the virtual environment interface further includes a skill activation control; The receiving module is used to receive a first trigger operation within a first area of ​​the skill activation control and use it as the skill activation operation.

[0015] In an alternative embodiment, the receiving module further receives a second trigger operation within a second area of ​​the skill activation control, the second area being an area other than the first area corresponding to the skill activation control, and is used to determine an activation direction corresponding to the second trigger operation; The activation module is further used to control the master virtual character to activate the directional skill in the activation direction in the virtual environment.

[0016] In another aspect, there is provided a computing device including a processor and a memory, wherein the memory stores at least one instruction, at least a portion of a program, a code set, or an instruction set, and the at least one instruction, the at least a portion of the program, the code set, or the instruction set is loaded and executed by the processor so as to realize the method for controlling a virtual character as described above.

[0017] In another aspect, there is provided a computer-readable storage medium having stored thereon at least one instruction, at least a portion of a program, a code set, or an instruction set, the at least one instruction, the at least a portion of a program, the code set, or the instruction set being loaded and executed by a processor to implement the method for controlling a virtual character as described above.

[0018] In another aspect, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored on a computer-readable storage medium, the computer instructions read by a processor of a computing device from the computer-readable storage medium, and the processor executes the computer instructions to cause the computing device to perform the method for controlling a virtual character as described above. [Effects of the Invention]

[0019] The beneficial effects of the technical solutions provided in the embodiments of the present application include at least the following effects:

[0020] When activating a directional skill, if a movement control operation is received, instead of automatically activating the directional skill in the selected first direction, a second direction corresponding to the movement control operation is determined and the master virtual character is controlled to activate the directional skill in the second direction, thereby ensuring that the directional skill is activated in the adjusted facing direction of the master virtual character, improving the accuracy when activating the directional skill, and avoiding the problem of low efficiency of human-machine interaction due to the need to wait until the directional skill cools down (i.e., after activation, it recovers for a certain period of time and becomes available for activation again) due to an incorrect activation direction before re-activating the directional skill based on the user's new operation, thereby improving the efficiency of human-machine interaction, reducing the number of erroneous operations that the computer device needs to process, and further improving the overall performance of the computer device. [Brief explanation of the drawings]

[0021] In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. However, the drawings in the following description are only some embodiments of the present application, and it is obvious that a person skilled in the art can obtain other drawings based on these drawings without any creative efforts.

[0022] [Figure 1A] FIG. 1 is a schematic diagram of an interface for skill activation provided in an exemplary embodiment of the present application; [Figure 1B] FIG. 1 is a schematic diagram of an interface for skill activation provided in an exemplary embodiment of the present application; [Figure 2] FIG. 1 is a schematic diagram of the timeline for quick skill activation in the related art. [Figure 3] FIG. 1 is a schematic diagram of a timeline for quick activation of a skill provided in an exemplary embodiment of the present application; [Figure 4] FIG. 1 is a structural block diagram of a computer system provided in an exemplary embodiment of the present application. [Figure 5]1 is a flowchart of a method for controlling a virtual character provided in an exemplary embodiment of the present application. [Figure 6] FIG. 6 is a schematic diagram of an interface between skill activation and movement control provided based on the embodiment shown in FIG. 5. [Figure 7] 10 is a flowchart of a method for controlling a virtual character provided in another exemplary embodiment of the present application. [Figure 8] 8 is a flowchart of a process for activating a skill provided based on the embodiment shown in FIG. 7. [Figure 9] FIG. 8 is a schematic diagram of an interface between skill activation and movement control provided based on the embodiment shown in FIG. 7. [Figure 10] 10 is a flowchart of a method for controlling a virtual character provided in another exemplary embodiment of the present application. [Figure 11] 11 is a flowchart of a process for activating a skill provided based on the embodiment shown in FIG. 10. [Figure 12] 1 is a flowchart of the entire skill activation process provided in an exemplary embodiment of the present application. [Figure 13] FIG. 1 is a schematic diagram illustrating an interface of a virtual environment for quick activation of directional skills provided in an exemplary embodiment of the present application. [Figure 14] FIG. 2 is a structural block diagram of a control device for a virtual character provided in an exemplary embodiment of the present application. [Figure 15] FIG. 10 is a structural block diagram of a control device for a virtual character provided in another exemplary embodiment of the present application. [Figure 16] FIG. 2 is a structural block diagram of a terminal provided in an exemplary embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0023] To make the objectives, technical solutions and advantages of the present application clearer, the following describes the embodiments of the present application in more detail with reference to the drawings.

[0024] First, the nouns related to the embodiments of the present application will be briefly introduced.

[0025] 1) Virtual Environment

[0026] The virtual environment is 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 of the real world, a semi-simulated, semi-fictional environment, or a completely fictional environment. The virtual environment may be any one of a 2D virtual environment, a 2.5D virtual environment, and a 3D virtual environment, and the present application is not limited thereto. In the following embodiments, the virtual environment is described as a 3D virtual environment. In some embodiments, the virtual environment is used to provide a battle environment for at least two master virtual characters. The virtual environment includes symmetrical areas in the lower left corner and the upper right corner, and master virtual characters belonging to two opposing camps each occupy one of the areas and aim to win by destroying a target building, base, outpost, or nexus located at the back of the opponent's area.

[0027] 2) Virtual Characters

[0028] A virtual character refers to an object that can be moved in a virtual environment. The object can be a virtual person, a virtual animal, an animated bone character, or any other person or animal displayed in a three-dimensional virtual environment. Optionally, the virtual character is a three-dimensional solid model created based on skeletal animation techniques. In a three-dimensional virtual environment, each virtual character has its own shape and volume and occupies a portion of the space in the three-dimensional virtual environment. In this embodiment, the virtual character is a master virtual character controlled by a user, and the master virtual character generally refers to one or more master virtual characters in a virtual environment.

[0029] 3) Multiplayer Online Battle Arena Games (MOBA)

[0030] A multiplayer online battle arena game refers to a virtual environment in which different virtual teams, each belonging to at least two opposing camps, occupy their own map area and battle to achieve certain victory conditions. Such victory conditions include, but are not limited to, at least one of capturing a base or destroying the opposing camp's base, killing the opposing camp's virtual characters, ensuring one's own survival within a specified scene and time, capturing certain resources, and exceeding the opponent's score within a specified time. Tactical battles may be conducted in rounds, and the tactical battle map may be the same or different for each round. Each virtual team may include one or more virtual characters, such as one, two, three, or five. The duration of one round of a MOBA game is from the start of the game to the achievement of the victory conditions.

[0031] The method provided in the present application can be applied to virtual reality application programs, 3D map programs, military simulation programs, first-person shooter games (FPS), MOBA games, etc., and the following embodiments will be described using the application to games as an example.

[0032] A game based on a virtual environment consists of one or more game worlds, and the virtual environment of the game can simulate a scene from the real world. A user controls a master virtual character in the game to perform actions such as walking, running, jumping, shooting, fighting, driving, using skills, receiving attacks from other virtual characters, receiving damage from the virtual environment, and attacking other virtual characters in the virtual environment, which is highly interactive. Multiple users can team up online to play a battle game.

[0033] In some embodiments, when a master virtual character activates a skill in the virtual environment, the activation of the skill includes at least one of the following skill activation methods:

[0034] First, quick activation means that a skill is activated in the direction of the virtual object's orientation in the virtual environment by triggering the skill activation control during the skill activation process.

[0035] The skill activation control has selectable first and second areas corresponding to the skill activation control, and when a first trigger operation is received within the first area, a directional skill is activated in a first direction in the virtual environment, where the first direction is the orientation of the virtual object, or the first direction is a direction corresponding to the position of an attack target within a range for activating the skill. When a first trigger operation is received and no attack target is present within a predetermined range around the virtual object, the skill is activated in the orientation of the virtual object in the virtual environment. The first trigger operation within the first area includes a touch operation acting on the skill activation control, and the end position of the touch operation is located within the first area, or the first trigger operation within the first area includes a touch operation acting within the first area, and the touch operation does not leave the first area.

[0036] Second, aiming activation means that during the skill activation process, you adjust the direction of the skill activation using the skill activation control, and then activate the skill in the adjusted direction.

[0037] When a second trigger operation is received in the second area, the direction of skill activation is determined according to the second trigger operation, and when the trigger operation ends, the skill is activated in the direction of skill activation, where the second trigger operation in the second area includes a touch operation acting in the first area and the end position of the touch operation is located within the second area, or the second trigger operation in the second area includes a touch operation acting on the second area and the touch operation does not leave the second area.

[0038] 1A and 1B are schematic interface diagrams of a skill activation process provided in an exemplary embodiment of the present application. As shown in FIG. 1A, the virtual environment interface 100 includes a skill activation control 110, which includes a first area 111 and a second area 112. The skill activation process realized based on the skill activation control 110 in FIG. 1A is as shown in FIG. 1B. In response to receiving a skill activation operation in the first area 111, a skill is activated in the direction of the orientation of the virtual object 120 in the virtual environment. In response to receiving a skill activation operation in the second area 112, an activation direction corresponding to the skill activation operation is determined, and the skill is activated in the activation direction.

[0039] In the embodiment of the present application, the quick activation skill activation method will be described.

[0040] In the related technology, the virtual environment interface further includes a moving joystick, which is used to control the orientation of a virtual object and to control the movement of the virtual object in the virtual environment. When the moving joystick receives a control operation to change the orientation of the virtual object and simultaneously receives a quick activation operation on a skill activation control, the mobile terminal obtains the orientation of the virtual object from the logic layer and quickly activates the skill in the orientation direction. In an environment with poor network conditions, the moving joystick does not receive a feedback message after uploading the received control operation to the server, that is, the orientation adjustment of the virtual object in the logic layer is not completed, and the orientation obtained by the client from the logic layer is the orientation before adjustment, so the activation direction when the skill is activated is different from the orientation after adjustment, resulting in low accuracy of the skill activation direction.

[0041] Schematically, referring to FIG. 2, the skill activation process includes steps 201 to 208 on the time axis.

[0042] Step 201: The virtual object faces a first direction.

[0043] Step 202: The moving joystick controls the virtual object to face in a second direction.

[0044] In step 203, a skill is triggered in the skill trigger control to obtain the orientation direction (first direction) of the virtual object.

[0045] Step 204: The client sends a mobility control packet to the server.

[0046] Step 205: The client sends a skill activation packet to the server.

[0047] Step 206: The client receives the movement control feedback packet fed back from the server and controls the virtual object to face in the second direction.

[0048] Step 207: The client receives the skill activation feedback packet fed back from the server and controls the virtual object to face the first direction and activate the skill.

[0049] Step 208, the virtual object faces in a second direction.

[0050] In other words, because there is a time lag between controlling the virtual object to face the second direction and obtaining the direction from the logic layer and activating the skill, the direction obtained from the logic layer is the first direction before the update, and the direction in which the skill is activated is not accurate.

[0051] In the embodiment of the present application, as shown in FIG. 3, the skill activation process includes steps 301 to 308 on the time axis.

[0052] Step 301: The virtual object faces a first direction.

[0053] Step 302: The moving joystick controls the virtual object to face in a second direction.

[0054] Step 303: Trigger a skill in the skill trigger control to obtain the control direction (second direction) of the moving joystick.

[0055] Step 304: The client sends a mobility control packet to the server.

[0056] Step 305: The client sends a skill activation packet to the server.

[0057] Step 306: The client receives the movement control feedback packet fed back from the server and controls the virtual object to face in the second direction.

[0058] Step 307: The client receives the skill activation feedback packet fed back from the server and controls the virtual object to turn in the second direction and activate the skill.

[0059] Step 308, the virtual object faces in a second direction.

[0060] That is, during the skill activation process, the acquired activation direction is the control direction received in the movement control, that is, the direction the virtual object will ultimately face, thereby improving the accuracy of the skill activation direction.

[0061] 4 shows a structural block diagram of a computer system provided in an exemplary embodiment of the present application. The computer system 400 includes a first terminal 420, a server 440, and a second terminal 460.

[0062] An application program supporting a virtual environment is installed and executed on the first terminal 420. The application program may be any one of a virtual reality application program, a 3D map program, a military simulation program, an FPS game, a MOBA game, a multiplayer shooting survival game, and a battle royale-type shooting game. The first terminal 420 is used by a first user. The first user uses the first terminal 420 to control the actions of a first master virtual character located in the virtual environment, including, but not limited to, at least one of adjusting body posture, walking, running, jumping, using a skill, picking, attacking, and avoiding attacks from other virtual characters. Generally, the first master virtual character is a first virtual person, such as a simulated human character or an animated human character. Generally, when the first master virtual character activates an area-based skill in the virtual environment, the virtual environment screen moves from the location of the master virtual character to a target area selected by an area-based skill indicator. The area-based skill indicator is used to indicate the skill activation area when the master virtual character activates a skill.

[0063] The first terminal 420 is connected to the server 440 via a wireless network or a wired network.

[0064] The server 440 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Generally, the server 440 includes a processor 444 and a memory 442. The memory 442 also includes a receiving module 4421, a control module 4422, and a sending module 4423. The receiving module 4421 is used to receive requests sent from clients, such as a team formation request, the control module 4422 is used to control the rendering of the virtual environment screen, and the sending module 4423 is used to send message notifications, such as a team formation success notification, to clients. The server 440 is used to provide background services to application programs supporting the three-dimensional virtual environment. Alternatively, the server 440 may perform the primary computing tasks and the first terminal 420 and the second terminal 460 may perform the secondary computing tasks, or the server 440 may perform the secondary computing tasks and the first terminal 420 and the second terminal 460 may perform the primary computing tasks, or the server 440, the first terminal 420, and the second terminal 460 may perform collaborative computing using a distributed computing architecture.

[0065] The second terminal 460 is connected to the server 440 via a wireless network or a wired network.

[0066] An application program supporting a virtual environment is installed and executed on the second terminal 460. The application program may be any one of a virtual reality application program, a 3D map program, a military simulation program, an FPS game, a MOBA game, a multiplayer shooter survival game, and a battle royale-type shooter game. The second terminal 460 is used by a second user. The second user uses the second terminal 460 to control the activities of a second master virtual character located in the virtual environment, including, but not limited to, at least one of adjusting body posture, walking, running, jumping, using skills, picking, attacking, and avoiding attacks from other master virtual characters. Generally, the second master virtual character is a second virtual person, such as a simulated human character or an animated bone human character.

[0067] A first virtual human character and a second virtual human character are selectively in the same virtual environment, and the first virtual human character and the second virtual human character may selectively belong to the same team, may belong to the same organization, may have a friendly relationship, or may have temporary communication privileges.

[0068] Alternatively, the application programs installed on the first terminal 420 and the second terminal 460 may be the same, or the application programs installed on the two terminals may be the same type of application programs on different control system platforms. The first terminal 420 may generally refer to one of multiple terminals, and the second terminal 460 may generally refer to one of multiple terminals. In this embodiment, only the first terminal 420 and the second terminal 460 are used as an example. The first terminal 420 and the second terminal 460 may be the same or different device types, and the device types may include at least one of a smartphone, a tablet, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop portable computer, and a desktop computer. In the following embodiment, the terminal is described as including a smartphone.

[0069] Those skilled in the art will understand that the number of terminals may be greater or less. For example, there may be only one terminal, or there may be tens or hundreds of terminals, or even more. The embodiments of the present application do not limit the number and device types of terminals.

[0070] FIG. 5 is a flowchart of a method for controlling a virtual character provided in an exemplary embodiment of the present application, which can be executed by a computer device, which can be implemented as the first terminal 420 or the second terminal 460 in the computer system 400 shown in FIG. 4, or another terminal in the computer system 400. As shown in FIG. 5, the method includes steps 501 to 503.

[0071] Step 501: Display a virtual environment interface, the virtual environment interface including a screen for viewing the virtual environment, the screen including a master virtual character located in the virtual environment.

[0072] Optionally, the virtual environment interface further includes activation controls for controlling the master virtual character to activate directional skills and movement controls for controlling the master virtual character to move in the virtual environment.

[0073] The screen optionally includes a master virtual character positioned in the virtual environment. An application program supporting the virtual environment is executed on the terminal used by the user, and when the user executes the application program, a user interface for using the application program is correspondingly displayed on the terminal display, i.e., a virtual environment interface is displayed, and a screen for observing the virtual environment from a target observation position is displayed on the virtual environment interface, and the virtual environment displayed on the screen includes at least one element of mountains and rivers, plains, rivers, lakes, oceans, deserts, sky, plants, architecture, and vehicles.

[0074] In some embodiments, the virtual environment has an arbitrary boundary shape, for example, the virtual environment is a diamond-shaped virtual environment. A user can view the entire virtual environment by viewing a map corresponding to the virtual environment. A camera model is installed in the virtual environment, and the camera model observes the virtual environment from different viewing angles, thereby capturing a virtual environment image.

[0075] The viewing angle refers to the angle of observation when observing the virtual environment from the first-person or third-person perspective of the master virtual character.

[0076] The virtual environment interface selectively displays an activation control for controlling the master virtual character to activate a directional skill, where the directional skill corresponds to a skill activation direction, i.e., when activating the skill, the directional skill needs to be activated in a specified direction, where the skill activation direction includes at least one of the following two situations:

[0077] First, in the process of quickly activating a directional skill, the master virtual character is controlled to activate the directional skill in a first direction. Generally, when no attack object exists within a predetermined range around the virtual object, the direction in which the virtual object faces in the virtual environment is set as the activation direction of the directional skill; when an attack object exists within a predetermined range around the virtual object, the direction in which the directional skill is activated is set as the direction corresponding to the attack object.

[0078] Second, in the process of aiming and activating a directional skill, the activation direction of the directional skill is adjusted by performing an activation adjustment operation on the activation control, and when activation is triggered, the directional skill is activated in the adjusted activation direction.

[0079] In the embodiment of the present application, the quick activation process of the directional skill is described, that is, a skill activation method is described in which the facing direction of the master virtual character in the virtual environment is obtained during the activation process of the directional skill, and the directional skill is activated in the facing direction.

[0080] Optionally, the virtual environment interface displays movement controls for controlling the movement of the master virtual character, where the movement controls can also be used to control the master virtual character to adjust its movement direction in the process of controlling the movement of the master virtual character, that is, the user can adjust the facing direction of the master virtual character with the movement controls to control the master virtual character to face and move in the facing direction in the virtual environment.

[0081] When activating a directional skill, the quick activation method can selectively improve the efficiency of skill activation, so typically, when activating a skill, the user moves the control to quickly adjust the direction of the master virtual character, and then quickly activates the directional skill in the correct direction by performing a skill activation operation on the directional skill.

[0082] Step 502: receiving a skill activation operation and a movement control operation;

[0083] Selectably, the skill activation operation is used to control the master virtual character to activate a directional skill in a first direction in the virtual environment, and the movement control operation is used to control the master virtual character to move in a second direction in the virtual environment, the first direction and the second direction being independent of each other.

[0084] The skill activation operation may be selectively configured to correspond to a quick activation of the directional skill, i.e., the skill activation operation controls the master virtual character to activate the directional skill in a quick activation manner. Here, the first direction is a direction automatically selected by the client during the activation of the directional skill. For example, if an attack object exists within a predetermined range around the master virtual character, the direction corresponding to the position of the attack object is defined as the first direction. If no attack object exists within a predetermined range around the master virtual character, the direction of the master virtual character's facing is defined as the first direction.

[0085] In the embodiment of the present application, the facing direction of the master virtual character is described as the first direction, and a selectable facing direction acquisition method includes directly acquiring the current facing direction of the master virtual character in the virtual environment from the logic layer and setting it as the facing direction of the master virtual character. However, the facing direction acquired from the logic layer may be inaccurate due to delays in direction adjustment, resulting in an inaccurate skill activation direction. As shown in FIG. 6 , the virtual environment interface 600 includes a master virtual character 610, a skill activation control 620, and a movement control 630. When a drag operation to the bottom right is received on the movement control 630, the master virtual character 610 is controlled to face the direction corresponding to the bottom right and move in the direction corresponding to the bottom right. When a quick activation operation is received on the skill activation control 620, the master virtual character 610 is currently facing the direction corresponding to the bottom left, so the skill activation direction included in the skill activation request sent by the terminal to the server corresponds to the bottom left, and the skill is activated to the bottom left, which is different from the direction controlled on the movement control 630.

[0086] In the embodiment of the present application, the first direction is replaced by the second direction corresponding to the movement control operation to activate the directional skill, that is, the second direction corresponding to the movement control operation obtained from the presentation layer is set as the facing direction of the master virtual character.Optionally, the virtual environment interface further includes a movement control, and if the movement control operation is a drag operation received at the movement control, after receiving the drag operation for the movement control, the drag direction of the drag operation is obtained from the presentation layer, and the second direction corresponding to the movement of the master virtual character is determined according to the drag direction.

[0087] Optionally, the movement control operation is an operation triggered based on the movement control, and the presentation layer is used for realizing interface presentation and receiving interface operations. Generally, the presentation layer is used for displaying a screen of the virtual environment interface corresponding to the virtual environment and controls for controlling the master virtual character or the game process, and optionally, the presentation layer is further used for receiving touch operations on the virtual environment interface and reporting the touch operations to the logic layer via the server for logic processing.

[0088] Optionally, both the presentation layer and the logic layer exist in the game client, where the logic layer cannot directly access the data in the presentation layer, the presentation layer can access the data in the logic layer, and the presentation layer cannot modify the logic of the logic layer, but needs to perform logic processing in the logic layer via the server according to the received touch operation.

[0089] Optionally, in the process of the movement control operation, the user performs a touch operation on a movement control in the virtual environment interface, whereby the presentation layer reads the touch data and generates a movement touch message, for example, the movement touch message includes an adjusted orientation of the master virtual character, the client sends the movement touch message to the server, the server sends a movement feedback message to the logic layer of the client, and then the logic layer adjusts the orientation of the master virtual character according to the movement feedback message, and the presentation layer reads the adjusted orientation from the logic layer and then presents it, thereby realizing control over the master virtual character.

[0090] The virtual environment interface further includes a skill activation control, which is selectably used to control the virtual object to activate a directional skill, and which selectably has a first area and a second area corresponding to the skill activation control, where the first area is used to trigger a quick activation of the directional skill and the second area is used to trigger an aiming activation of the directional skill. Selectably, the first area is configured to determine whether to receive a skill activation operation in response to receiving a first trigger operation in the first area of ​​the skill activation control, and to quickly activate the directional skill when receiving the first trigger operation in the first area of ​​the skill activation control. Selectably, when receiving a second trigger operation in the second area of ​​the skill activation control, the interface selectably determines an activation direction corresponding to the second trigger operation and controls the master virtual character to activate the directional skill in the corresponding activation direction in the virtual environment, where the second area is an area other than the first area corresponding to the skill activation control.

[0091] Step 503: In response to the skill activation operation and the movement control operation, the master virtual character is controlled to activate a directional skill in a second direction in the virtual environment.

[0092] Optionally, the second direction is a direction corresponding to the movement control operation and an adjusted orientation direction when the user controls the master virtual character to adjust the orientation direction, so that the activation direction of the directional skill coincides with the movement control direction.

[0093] The skill activation control is usually set so that after a skill has been activated once based on the skill activation control, a specified period of time must elapse before the next skill activation based on the skill activation control can be performed. In other words, after a skill has been activated, it can only be activated again after it has cooled down. Therefore, based on the virtual character control method provided in the embodiments of the present application, the waste of skill activation time due to incorrect directional skill activation direction can be reduced, thereby improving the efficiency of human-machine interaction.

[0094] As described above, the control method for a virtual character provided in the embodiments of the present application, when a movement control operation is received to activate a directional skill, does not automatically activate the directional skill in a selected first direction, but determines a second direction corresponding to the movement control operation and controls the master virtual character to activate the directional skill in the second direction, thereby ensuring that the directional skill is activated in the adjusted facing direction of the master virtual character, improving the accuracy of activating the directional skill, and avoiding the problem of low efficiency of human-machine interaction due to the need to wait until the directional skill cools down (i.e., after activation, it recovers for a certain period of time and becomes activatable again) due to an incorrect activation direction before re-activating the directional skill based on the user's further operation, thereby improving the efficiency of human-machine interaction, reducing the number of erroneous operations that the computer device needs to process, and further improving the overall performance of the computer device.

[0095] In one alternative embodiment, when controlling a master virtual character to activate a directional skill, the skill activation process of the logic layer needs to be realized via a server. FIG. 7 is a flowchart of a method for controlling a virtual character provided in another exemplary embodiment of the present application. The method can be executed by a computer device, which can be implemented as the first terminal 420 or the second terminal 460 in the computer system 400 as shown in FIG. 4, or as another terminal in the computer system 400. As shown in FIG. 7, the method includes steps 701 to 705.

[0096] Step 701: Display a virtual environment interface, the virtual environment interface including a screen for viewing the virtual environment, the screen including a master virtual character located in the virtual environment.

[0097] Selectably, activation controls for controlling the master virtual character to activate a directional skill and movement controls for controlling the master virtual character to move in the virtual environment are displayed superimposed on the screen.

[0098] Unlike the case where the first direction corresponds to the skill activation direction in the quick activation process of a directional skill, in the embodiment of the present application, the facing direction of the master virtual character in the virtual environment is obtained in the quick activation process of a directional skill, and the directional skill is activated in the facing direction of the master virtual character.

[0099] Step 702: receiving a skill activation operation and a movement control operation;

[0100] Selectably, the skill activation operation is used to control the master virtual character to activate a directional skill in a first direction in the virtual environment, and the movement control operation is used to control the master virtual character to move in a second direction in the virtual environment, the first direction and the second direction being independent of each other.

[0101] Selectably, the skill activation operation corresponds to a quick activation of the directional skill, i.e., the skill activation operation controls the master virtual character to activate the directional skill in a quick activation manner.

[0102] Optionally, the mobile control operation obtains a second direction corresponding to the mobile control operation from the presentation layer in response to the mobile control operation as an operation triggered by the mobile control, and the presentation layer is used for realizing the interface presentation and receiving the interface operation.

[0103] Optionally, the movement control operation is realized by a drag operation on the movement control, i.e., receiving a drag operation on the movement control, obtaining a drag direction of the drag operation from the presentation layer, and determining a corresponding second direction when the master virtual character moves according to the drag direction.

[0104] Step 703: Send a skill activation data packet including the second direction to the server.

[0105] Optionally, since the presentation layer can access the data of the logic layer but cannot modify the logic of the logic layer, i.e., cannot control the logic processing of the logic layer, the presentation layer obtains the second direction and then sends a skill activation data packet to the server, where the skill activation data packet includes an activation direction with the second direction as a directional skill.

[0106] Step 704: Receive a skill activation feedback packet sent from the server.

[0107] Optionally, the logic layer receives a skill activation feedback packet sent from the server, and the logic layer performs logic processing according to the skill activation feedback packet.

[0108] Step 705: In response to the skill activation feedback packet, control the master virtual character to activate a directional skill in a second direction in the virtual environment.

[0109] Optionally, after receiving the skill activation feedback packet, the logic layer controls the master virtual character to activate a directional skill in a second direction in the virtual environment according to the control data in the skill activation feedback packet.

[0110] Optionally, the second direction is a direction corresponding to a movement control operation received in the movement control and an adjusted orientation direction when the user controls the master virtual character to adjust the orientation direction, so that the activation direction of the directional skill coincides with the movement control direction.

[0111] 8 , after a user 810 performs a skill activation operation based on a skill activation control, the user 810 triggers the presentation layer 820 to send a skill activation data packet to the server 830, where the skill activation data packet includes a movement control direction. After the server 830 receives the skill activation data packet, the server 830 sends a skill activation feedback packet to the logic layer 840. The logic layer 840 performs logic processing based on the skill activation feedback packet and sends a skill activation status to the presentation layer 820, instructing the presentation layer 820 to display the skill activation process. In response, the presentation layer 820 obtains the skill activation status from the logic layer 840 and displays the skill activation process to the presentation layer 820.

[0112] 9, the virtual environment interface 900 includes a master virtual character 910, a movement joystick 920, and a trigger control 930 for a directional skill, wherein the master virtual character 910 faces a first direction in the virtual environment and receives a movement control operation on the movement joystick 920 to control the master virtual character 910 to face a second direction in the virtual environment, and simultaneously a client receives a trigger operation on the trigger control 930, whereby the client reads the movement control operation on the movement joystick 920 from the presentation layer and activates a directional skill in the second direction.

[0113] As described above, in the virtual character control method provided in the embodiments of the present application, when a movement control operation is received to activate a directional skill, instead of automatically activating the directional skill in a selected first direction, a second direction corresponding to the movement control operation is determined and the master virtual character is controlled to activate the directional skill in the second direction, thereby ensuring that the directional skill is activated in the adjusted facing direction of the master virtual character and improving the accuracy of activating the directional skill. This avoids the problem of the user having to wait for the directional skill to cool down (i.e., recover for a certain period of time after activation and become ready to be activated again) before re-activating the directional skill based on the user's further operation due to an incorrect activation direction, thereby reducing the efficiency of human-machine interaction, thereby improving the efficiency of human-machine interaction, reducing the number of erroneous operations that the computer device needs to process, and further improving the overall performance of the computer device.

[0114] The method provided in this embodiment sends a skill activation data packet to the server via the presentation layer of the terminal, and the server feeds back a skill activation feedback packet to the logic layer of the terminal, thereby realizing skill activation from the logic layer and controlling the master virtual character to activate a directional skill in the second direction in the presentation layer, thereby improving the accuracy of directional skill activation.

[0115] In one alternative embodiment, if no movement control operation on the movement control is received, the direction of the master virtual character is directly obtained from the logic layer to activate the skill. Figure 10 is a flowchart of a method for controlling a virtual character provided in another exemplary embodiment of the present application, which can be executed by a computer device, and which can be implemented as the first terminal 420 or the second terminal 460 in the computer system 400 as shown in Figure 4, or as another terminal in the computer system 400. As shown in Figure 10, the method includes steps 1001 to 1006.

[0116] Step 1001: Display a virtual environment interface, the virtual environment interface including a screen for viewing the virtual environment, the screen including a master virtual character located in the virtual environment.

[0117] Selectably, activation controls for controlling the master virtual character to activate a directional skill and movement controls for controlling the master virtual character to move in the virtual environment are displayed superimposed on the screen.

[0118] Unlike the case where the first direction corresponds to the skill activation direction in the quick activation process of a directional skill, in the embodiment of the present application, the facing direction of the master virtual character in the virtual environment is obtained in the quick activation process of a directional skill, and the directional skill is activated in the facing direction.

[0119] Step 1002: receiving a skill activation operation, the skill activation operation being used to control the master virtual character to activate a directional skill in a first direction;

[0120] A skill activation operation is selectably adapted to quick activation of the directional skill, that is, the skill activation operation controls the master virtual character to activate the directional skill in a quick activation manner, and after the client acquires the facing direction of the master virtual character, the directional skill is activated in the facing direction.

[0121] Step 1003: receiving a movement control operation, the movement control operation being used to control the master virtual character to move in a second direction in the virtual environment;

[0122] Optionally, the movement control operation is realized by a drag operation on the movement control, i.e., receiving a drag operation on the movement control, obtaining the drag direction of the drag operation from the presentation layer, and determining a second direction corresponding to the drag direction.

[0123] Optionally, after receiving the movement control operation, a movement control data packet including the second direction is sent to the server, a movement control feedback packet sent from the server is received, and in response to the movement control feedback packet, the master virtual character is controlled to move in the virtual environment facing the second direction.

[0124] Optionally, in response to the movement control feedback packet, the second direction is cached in the logic layer as the facing direction of the master virtual character.

[0125] It should be noted that step 1002 and step 1003 may be executed in the following order: step 1002 may be executed first, or step 1003 may be executed first and then step 1002; or step 1002 and step 1003 may be executed simultaneously; and the embodiment of the present application does not limit the order in which step 1003 and step 1002 are executed.

[0126] Step 1004: Control the master virtual character to exercise a directional skill in a second direction in the virtual environment.

[0127] Optionally, the presentation layer sends a skill activation data packet including the second direction to the server, and the logic layer receives a skill activation feedback packet fed back from the server and controls the master virtual character to activate a skill that activates in the second direction in the virtual environment in accordance with the skill activation feedback packet.

[0128] Step 1005: In response to a skill activation operation and if no movement control operation is received, the facing direction of the master virtual character is obtained from the logic layer and set as the first direction.

[0129] When a skill activation operation is selectively received and a movement control operation is not triggered in the movement control, that is, when a directional skill is activated and the facing direction of the master virtual character is not adjusted, the skill is activated with the current facing direction of the master virtual character as the first direction.

[0130] Step 1006: Control the master virtual character to exercise a directional skill in a first direction in the virtual environment.

[0131] A skill activation data packet selectably including a first direction is sent to a server, and a logic layer receives a skill activation feedback packet fed back from the server, and controls the master virtual character to activate the skill in the first direction in the virtual environment in accordance with the skill activation feedback packet.

[0132] 11, when a user triggers a quick activation of a directional skill, this can be realized as steps 1101 to 1103.

[0133] Step 1101: Determine whether the presentation layer receives an input operation based on the moving joystick; if yes, execute step 1102; otherwise, execute step 1103;

[0134] Step 1102: The operation direction of the input operation of the moving joystick received by the presentation layer is set as the skill activation direction.

[0135] Step 1103: The direction of the master virtual character cached in the logic layer is set as the skill activation direction.

[0136] As described above, the method provided in this embodiment, when a skill activation operation is received, determines whether a movement control operation is received in the movement control, and if a movement control operation is received, controls to activate the directional skill in the movement control direction in the presentation layer; if a movement control operation is not received, controls to activate the directional skill in the orientation direction in the logic layer, thereby determining the accurate activation direction during the activation of the directional skill and improving the accuracy when activating the directional skill.

[0137] 12, which shows a flowchart of the entire skill activation process provided in an exemplary embodiment of the present application, and as shown in FIG. 12, the process includes steps 1201 to 1201.

[0138] Step 1201: Receive a skill activation operation.

[0139] Optionally, the skill activation operation is used to control the master virtual character to activate directional skills in the virtual environment.

[0140] Step 1202, determine whether a skill joystick orientation exists; if yes, execute step 1203; if not, execute step 1204.

[0141] Optionally, the orientation of the skill joystick is used to distinguish the activation method of the directional skill, where the activation method includes quick activation and aiming activation, and if there is an orientation of the skill joystick, it indicates that the activation method of the current directional skill is aiming activation, and if there is no orientation of the skill joystick, it indicates that the activation method of the current directional skill is quick activation.

[0142] Step 1203: The direction of the skill joystick is set to the direction in which the skill is activated.

[0143] If the skill joystick direction is selectable, it indicates that the current directional skill activation method is aiming activation, and the skill joystick direction is the skill activation direction.

[0144] Step 1204, determine whether there is a moving joystick orientation; if yes, execute step 1205; if not, execute step 1206;

[0145] If there is no selectable direction of the skill joystick, it indicates that the current directional skill activation method is quick activation, and further determines whether it is necessary to adjust the direction of the master virtual character according to the direction of the movement joystick during the quick activation process.

[0146] Step 1205: The direction of the movement joystick is set as the direction in which the skill is activated.

[0147] When the direction of the movement joystick exists, that is, when it is necessary to adjust the direction of the master virtual character, the direction of the movement joystick is set as the skill activation direction.

[0148] Step 1206: The character's direction is set to the direction in which the skill is activated.

[0149] If there is no direction of the moving joystick, that is, if the facing direction of the master virtual character is not adjusted, the current facing direction of the master virtual character is set as the skill activation direction.

[0150] Step 1207: Activate the directional skill.

[0151] When the activation method of the directional skill is quick activation, refer to FIG. 13, which shows a schematic diagram of a virtual environment interface for quick activation of a directional skill provided in an exemplary embodiment of the present application. As shown in FIG. 13, the virtual environment interface includes a master virtual character 1310, a movement joystick 1320, and a trigger control 1330 for a directional skill. In the initial state, the master virtual character 1310 faces right (first direction) in the virtual environment. The terminal receives a user's movement control operation based on the movement joystick 1320 to control the master virtual character 1310 to move left, and at the same time, the master virtual character Suppose the user needs to reverse the direction of the master virtual character 1310 and activate the directional skill in the changed direction (second direction) of the master virtual character 1310. For example, if the user changes the direction of the master virtual character in the virtual environment to face left (second direction) and the terminal receives a movement control operation based on the user's movement joystick 1320 and a trigger operation on the trigger control 1330 based on the user's directional skill, reversing the direction of the master virtual character 1310 during the user's operation takes a certain amount of time. If the user activates the directional skill using the quick cast method, the following erroneous operation results may occur: First, the user performs a quick cast operation on the directional skill after observing that the master virtual character has completed the direction reversal. However, there is inevitably a certain delay between the user observing that the master virtual character has completed the direction reversal and the user performing the quick cast operation, which reduces the efficiency of interaction. One is that if the user performs a quick cast operation when the master virtual character's direction reversal has not been completed, the direction in which the directional skill is activated will be maintained in the direction before the direction was reversed (first direction), which will not match the user's intention and will result in an incorrect operation.However, with this solution, in the process of controlling the master virtual character to move in the target direction, the user performs a quick activation operation on the directional skill, and then determines the second direction as the activation direction of the directional skill, that is, the master virtual character activates the directional skill in the direction of movement. From the perspective of the actual control effect, the master virtual character ignores its current orientation and directly activates the directional skill in the direction corresponding to the user's movement control operation. This not only ensures the efficiency of interaction when quickly activating a directional skill, but also improves the accuracy of skill activation.

[0152] As described above, in the virtual character control method provided in the embodiments of the present application, when a movement control operation is received to activate a directional skill, instead of automatically activating the directional skill in a selected first direction, a second direction corresponding to the movement control operation is determined and the master virtual character is controlled to activate the directional skill in the second direction, thereby ensuring that the directional skill is activated in the adjusted facing direction of the master virtual character and improving the accuracy of activating the directional skill. This avoids the problem of the user having to wait for the directional skill to cool down (i.e., recover for a certain period of time after activation and become ready to be activated again) before re-activating the directional skill based on the user's further operation due to an incorrect activation direction, thereby reducing the efficiency of human-machine interaction, thereby improving the efficiency of human-machine interaction, reducing the number of erroneous operations that the computer device needs to process, and further improving the overall performance of the computer device.

[0153] FIG. 14 is a structural block diagram of a control device of a virtual character provided in an exemplary embodiment of the present application. As shown in FIG. 14, the device includes: a display module 1410 for displaying a virtual environment interface, the virtual environment interface including a screen for viewing the virtual environment, the screen including a master virtual character located in the virtual environment; a receiving module 1420 for receiving a skill activation operation and a movement control operation, wherein the skill activation operation is used to control the master virtual character to activate a directional skill in a first direction in the virtual environment, and the movement control operation is used to control the master virtual character to move in a second direction in the virtual environment; and an activation module 1430 for controlling the master virtual character to activate the directional skill in the second direction in the virtual environment in response to the skill activation operation and the movement control operation.

[0154] In one alternative embodiment, the virtual environment interface further includes a movement control, and the movement control operation is a drag operation received at the movement control; The receiving module 1420 is further used for receiving a drag operation on the movement control; In an alternative embodiment, as shown in FIG. 15, the device further comprises: The device includes an obtaining module 1440 for obtaining a drag direction of the drag operation from a presentation layer, and determining, according to the drag direction, the corresponding second direction in which the master virtual character moves.

[0155] In an alternative embodiment, the device further comprises: a sending module 1450 for sending a skill activation data packet including the second direction to a server; The receiving module 1420 is further used for receiving a skill activation feedback packet sent from the server; The activation module 1430 is further used for controlling the master virtual character to activate the directional skill in the second direction in the virtual environment in response to the skill activation feedback packet.

[0156] In an alternative embodiment, the sending module 1450 is adapted to send a mobility control data packet including the second direction to a server in response to the mobility control operation; The receiving module 1420 is further used for receiving a mobility control feedback packet sent from the server; The apparatus further comprises: and a movement module for controlling the master virtual character to face and move in the second direction in the virtual environment in response to the movement control feedback packet.

[0157] In one alternative embodiment, the device further comprises: and a cache module for caching the second direction in a logic layer as a facing direction of the master virtual character in response to the movement control feedback packet.

[0158] In an alternative embodiment, the acquisition module 1440 is further configured to acquire the facing direction of the master virtual character from the logic layer and set the facing direction as the first direction in response to the skill activation operation and when the movement control operation is not received; The activation module 1430 is further used to control the master virtual character to activate the directional skill in the first direction in the virtual environment.

[0159] In one alternative embodiment, the virtual environment interface further includes a skill activation control; The receiving module 1420 is further used for receiving a first trigger operation in a first area of ​​the skill activation control, and treating it as the skill activation operation.

[0160] In an alternative embodiment, the receiving module 1420 further receives a second trigger operation within a second area of ​​the skill activation control, the second area being an area other than the first area corresponding to the skill activation control, and is used to determine an activation direction corresponding to the second trigger operation; The activation module 1430 is further used to control the master virtual character to activate the directional skill in the activation direction in the virtual environment.

[0161] As described above, when the virtual character control device provided in the embodiments of the present application receives a movement control operation to activate a directional skill, it does not automatically activate the directional skill in the selected first direction, but determines a second direction corresponding to the movement control operation and controls the master virtual character to activate the directional skill in the second direction, thereby ensuring that the directional skill is activated in the adjusted facing direction of the master virtual character, improving the accuracy of activating the directional skill, and avoiding the problem of low efficiency of human-machine interaction due to the need to wait for the directional skill to cool down (i.e., after activation, it recovers for a certain period of time and becomes activatable again) due to an incorrect activation direction before re-activating the directional skill based on the user's further operation, thereby improving the efficiency of human-machine interaction, reducing the number of erroneous operations that the computer device needs to process, and further improving the overall performance of the computer device.

[0162] The present application further provides a terminal including a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to realize the steps performed by the first terminal or the steps performed by the second terminal of the method for controlling a virtual character provided in each of the above method embodiments, which may be the terminal provided in FIG.

[0163] 16 shows a structural block diagram of a terminal 1600 provided in an exemplary embodiment of the present application. The terminal 1600 may be a smartphone, a tablet, an MP3 player, an MP4 player, a notebook computer, or a desktop computer. The terminal 1600 may also be called a user equipment, a mobile terminal, a laptop terminal, a desktop terminal, or the like.

[0164] Typically, the terminal 1600 includes a processor 1601 and a memory 1602 .

[0165] The processor 1601 may include one or more processing cores, such as a 4-core processor or an 8-core processor. The processor 1601 may be implemented using at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), or a PLA (Programmable Logic Array). The processor 1601 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state and is also called a CPU (Central Processing Unit), and the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), which is used to render and draw content that needs to be displayed on a display. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0166] Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. Memory 1602 may further include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage media in memory 1602 is used to store at least one instruction, which is used to be executed by processor 1601 to implement a method for controlling a virtual character provided in a method embodiment of the present application.

[0167] In some embodiments, terminal 1600 may optionally further include a peripheral interface 1603 and at least one peripheral device. The processor 1601, memory 1602, and peripheral interface 1603 are connected via a bus or signal lines. Each peripheral device is connected to peripheral interface 1603 via the bus, signal line, or circuit board. Specifically, the peripheral devices include at least one of radio frequency circuitry 1604, display 1605, camera head component 1606, audio circuitry 1607, positioning component 1608, and power supply 1609.

[0168] In some embodiments, terminal 1600 further includes one or more sensors 1610. The one or more sensors 1610 include, but are not limited to, an acceleration sensor 1611, a gyro sensor 1612, a pressure sensor 1613, a fingerprint sensor 1614, an optical sensor 1615, and a proximity sensor 1616.

[0169] Those skilled in the art will appreciate that the structure shown in FIG. 16 is not intended to limit terminal 1600, and that terminal 1600 may include more or fewer components than those shown, may combine some components, or may use a different component arrangement.

[0170] The memory further includes one or more programs, the one or more programs being stored in the memory, and the one or more programs including all or part of the steps for performing the virtual character control method provided in the embodiments of the present application.

[0171] The present application provides a computer-readable storage medium having stored therein at least one instruction, the at least one instruction being loaded and executed by the processor to implement all or part of the steps in the virtual character control method provided in each of the method embodiments.

[0172] The present application further provides a computer program product or a computer program, the computer program product or the computer program including computer instructions stored in a computer-readable storage medium, wherein a processor of a computing device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computing device to perform all or part of the steps of the virtual character control method provided in each of the method embodiments.

[0173] The numbers of the examples in the present application are for illustrative purposes only and do not represent the superiority or inferiority of the examples.

[0174] Those skilled in the art can understand that all or part of the steps for realizing the above embodiments may be completed by hardware, or may be completed by instructing relevant hardware with a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.

[0175] The above description is merely a possible 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 principles of the present application should be included within the scope of protection of the present application. [Explanation of symbols]

[0176] 400 Computer Systems 420 Terminal 1 440 Server 442 memory 444 processor 460 Terminal 2 1410 Display Module 1420 Receiver Module 1430 Activation Module 1440 Acquisition Module 1450 Transmit Module 1601 processor 1602 memory 1603 Peripheral Device Interface 1604 High Frequency Circuit 1605 Display 1606 Camera Head Components 1607 Audio Circuit 1608 Positioning Components 1609 Power supply 1610 Sensor 1611 Acceleration Sensor 1612 Gyro Sensor 1613 Pressure Sensor 1614 Fingerprint Sensor 1615 Optical Sensor 1616 Proximity Sensor 4421 Receiver Module 4422 Control Module 4423 Transmitting Module

Claims

1. 1. A method for controlling a virtual character executed by a computing device, the method comprising: displaying a virtual environment interface, the virtual environment interface including a view of the virtual environment, the view including a master virtual character positioned in the virtual environment; receiving at least one of a skill activation operation and a movement control operation, wherein the skill activation operation is used to control the master virtual character to activate a directional skill in the virtual environment, and the movement control operation is used to control the master virtual character to move in the virtual environment; a step of controlling the master virtual character to activate the directional skill in a first direction or a second direction in the virtual environment when the skill activation operation is received, wherein the first direction is a current facing direction of the master virtual character and the second direction is a current moving direction of the master virtual character; A method for controlling a virtual character.

2. The virtual environment interface further includes a movement control, and the movement control operation is a drag operation received at the movement control; The acquisition method of the second direction is receiving the drag operation on the movement control; obtaining a drag direction for the drag operation from a presentation layer; and determining the corresponding second direction in which the master virtual character moves according to the drag direction.

2. The method of claim 1 .

3. The step of controlling the master virtual character to activate the directional skill in a first direction or a second direction in the virtual environment comprises: sending a skill activation data packet to a server, the skill activation data packet including the second direction; receiving a skill activation feedback packet transmitted from the server; and controlling the master virtual character to activate the directional skill in the second direction in the virtual environment in response to the skill activation feedback packet.

2. The method of claim 1 .

4. The method comprises: sending a mobility control data packet including the second direction to a server when the mobility control operation is received; receiving a mobility control feedback packet sent from the server; and controlling the master virtual character to move in the virtual environment in the second direction in response to the movement control feedback packet.

4. The method according to claim 1, wherein the first and second electrodes are connected to a first electrode.

5. After the step of receiving a mobility control feedback packet transmitted from the server, further comprising: in response to the movement control feedback packet, caching the second direction in a logic layer as a facing direction of the master virtual character; 5. The method of claim 4.

6. The method comprises: When the skill activation operation is received and the movement control operation is not received, acquiring the facing direction of the master virtual character from the logic layer and setting the facing direction as the first direction; and controlling the master virtual character to activate the directional skill in the first direction in the virtual environment.

6. The method of claim 5.

7. The virtual environment interface further includes a skill activation control; The step of receiving at least one of a skill activation operation and a movement control operation includes: receiving a first trigger operation within a first area of ​​the skill activation control as the skill activation operation; 4. The method according to claim 1, wherein the first and second electrodes are connected to a first electrode.

8. The method comprises: receiving a second trigger operation in a second area of ​​the skill activation control, the second area being an area other than the first area corresponding to the skill activation control; determining an actuation direction corresponding to the second trigger operation; and controlling the master virtual character to activate the directional skill in the activation direction in the virtual environment.

8. The method of claim 7.

9. A control device for a virtual character applied to a computer device, said device comprising: a display module for displaying a virtual environment interface, the virtual environment interface including a screen for viewing the virtual environment, the screen including a master virtual character positioned in the virtual environment; a receiving module for receiving at least one of a skill activation operation and a movement control operation, wherein the skill activation operation is used to control the master virtual character to activate a directional skill in the virtual environment, and the movement control operation is used to control the master virtual character to move in the virtual environment; an activation module for controlling the master virtual character to activate the directional skill in a first direction or a second direction in the virtual environment when the skill activation operation is received, wherein the first direction is a current facing direction of the master virtual character and the second direction is a current moving direction of the master virtual character; A control device for a virtual character, comprising:

10. The virtual environment interface further includes a movement control, and the movement control operation is a drag operation received at the movement control; The receiving module is further adapted to receive a drag operation on the movement control; The apparatus further comprises: an acquisition module for acquiring a drag direction of the drag operation from a presentation layer and determining, according to the drag direction, the corresponding second direction in which the master virtual character moves; 10. The device of claim 9.

11. further comprising a transmission module for transmitting a skill activation data packet to the server; the skill activation data packet includes the second direction; The receiving module is further used to receive a skill activation feedback packet transmitted from the server; the activation module is further configured to control the master virtual character to activate the directional skill in the second direction in the virtual environment in response to the skill activation feedback packet.

11. The device of claim 10.

12. The sending module is used to send a movement control data packet including the second direction to a server when the movement control operation is received; The receiving module is further used for receiving a mobility control feedback packet sent from the server; The apparatus further comprises: a movement module for controlling the master virtual character to move in the virtual environment in the second direction in response to the movement control feedback packet; 12. Apparatus according to any one of claims 9 to 11.

13. The method according to claim 1, further comprising: a cache module for caching the second direction in a logic layer in response to the movement control feedback packet to set the second direction as a facing direction of the master virtual character.

13. The device of claim 12.

14. The acquisition module is further used to acquire the facing direction of the master virtual character from the logic layer and set it as the first direction when the skill activation operation is received but the movement control operation is not received; The activation module is further used to control the master virtual character to activate the directional skill in the first direction in the virtual environment.

14. The device of claim 13.

15. The virtual environment interface further includes a skill activation control; The receiving module is used to receive a first trigger operation within a first area of ​​the skill activation control and use it as the skill activation operation; 12. Apparatus according to any one of claims 9 to 11.

16. The receiving module further receives a second trigger operation within a second area of ​​the skill activation control, the second area being an area other than the first area corresponding to the skill activation control, and is used to determine an activation direction corresponding to the second trigger operation; The activation module is further used to control the master virtual character to activate the directional skill in the activation direction in the virtual environment.

16. The device of claim 15.

17. A computer device including a processor and memory, The memory stores at least one instruction, at least a part of a program, a code set, or an instruction set, and the at least one instruction, the at least a part of the program, the code set, or the instruction set is loaded and executed by the processor to realize the method for controlling a virtual character according to any one of claims 1 to 8.

1. A computer device characterized by:

18. The method for controlling a virtual character according to any one of claims 1 to 8 is implemented by being loaded and executed by a processor. A computer program characterized by: