Control method of virtual character, device, equipment, and storage medium
Patent Information
- Application Number
- JP2024034076
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2020-04-23
- Filing Date
- 2024-03-06
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-03-15
AI Technical Summary
In competitive games like MOBA, the activation direction of skills using quick activation methods often differs from the intended direction due to orientation updates not being synchronized, leading to inaccurate skill activation and reduced efficiency in human-machine interaction.
A method and device that allow independent control of skill activation and movement, ensuring the virtual character activates skills in the direction corresponding to the movement control operation, thereby aligning with the user's intended direction.
Improves the accuracy and efficiency of skill activation by ensuring the virtual character activates in the correct direction, reducing the need for reactivation and enhancing overall human-machine interaction performance.
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to a Chinese patent application bearing application number 202010328532.3 and entitled "Virtual character control method, device, apparatus and storage medium" 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 enemy virtual object by controlling the virtual object to activate a skill in the MOBA game.
[0004] In the related technology, skill activation includes at least two activation methods, namely, 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, when the user adjusts the orientation of the virtual object with the movement control and triggers a quick activation of the skill, the orientation of the virtual object has not yet been updated, so the direction of the skill activation expected by the user will be different from the actual direction of the skill activation, resulting in low accuracy of the skill activation and requiring 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, apparatus and storage medium for controlling a virtual character, which can improve the efficiency of human-machine interaction in the process of a user exercising a skill. [Means for solving the problem]
[0007] In one aspect, there is provided 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 a skill activation operation and a movement control operation, the skill activation operation being 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 being 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 application to 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 located in the virtual environment; a receiving module for receiving a skill activation operation and a movement control operation, the skill activation operation being 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 being 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: and 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.
[0010] In an alternative embodiment, the device further comprises: further comprising a transmission 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 for receiving a skill activation feedback packet transmitted from the server; The activation module 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.
[0011] In an alternative embodiment, the sending module is adapted to send a mobile control data packet including the second direction to a server in response to the mobile 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 an 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 adapted 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 accepted; The activation module is further used for controlling 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 treat 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 for controlling 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 such that the method for controlling a virtual character as described above is realized.
[0017] In another aspect, there is provided a computer readable storage medium having stored therein 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 the program, the code set or the instruction set being loaded and executed by a processor such that the method for controlling a virtual character as described above is realized.
[0018] In another aspect, there is provided a computer program product or computer program comprising computer instructions stored on a computer readable storage medium, the computer instructions being read by a processor of a computing device from the computer readable storage medium and executed by the processor to cause the computing device to perform the method for controlling a virtual character as described above. Effect 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 activating the directional skill in an automatically 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 prepared 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 a certain period of recovery after activation, it becomes available for activation again) due to an incorrect activation direction, and then re-activating the directional skill based on the user's re-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 performance of the overall computer device. [Brief description of the drawings]
[0021] In order to more clearly describe the technical solutions in the embodiments of the present application, the following briefly introduces 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 a skill activation process provided in an exemplary embodiment of the present application. [Figure 1B] FIG. 1 is a schematic diagram of an interface for a skill activation process provided in an exemplary embodiment of the present application. [Diagram 2] FIG. 1 is a schematic diagram of the timeline of a quick activation of a skill in the related art. [Diagram 3] FIG. 1 is a schematic diagram of a timeline of a quick activation of a skill provided in an exemplary embodiment of the present application; [Figure 4] FIG. 2 is a structural block diagram of a computer system provided in an exemplary embodiment of the present application. [Diagram 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] 11 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] 11 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. 13 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 PREFERRED EMBODIMENTS
[0023] In order 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 simulation 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 embodiment, the virtual environment is described as a 3D virtual environment by way of example. 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 lower left corner areas and upper right corner areas, and the master virtual characters belonging to two opposing camps each occupy one of the areas and have the victory goal of destroying a target building, base, base, or nexus at the back of the opponent's area.
[0027] 2) Virtual Characters
[0028] A virtual character refers to an actionable object in a virtual environment. The actionable object may be a person or an animal displayed in a three-dimensional virtual environment, such as a virtual person, a virtual animal, an animated bone person, etc. Optionally, the virtual character is a three-dimensional solid model created based on skeletal animation technology. In a three-dimensional virtual environment, each virtual character has its own shape and volume and occupies a part of the space in the three-dimensional virtual environment. In the embodiment of the present application, the virtual character is exemplified as 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 means that in a virtual environment, different virtual teams, each belonging to at least two opposing camps, occupy their own map area and battle to achieve a certain victory condition. The victory conditions include, but are not limited to, at least one of occupying a base or destroying the base of the opposing camp, killing the virtual character 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 battle may be conducted in rounds, and the tactical battle map may be the same or different for each round. Each virtual team includes one or more virtual characters, such as one, two, three, or five. The duration of one round of a MOBA game is from the time the game starts to the time the victory condition is achieved.
[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 is composed of one or more game worlds, the virtual environment of the game can simulate a real-world scene, and a user can control a master virtual character in the game to perform actions such as walking, running, jumping, shooting, fighting, driving, activating 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, and 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 includes at least one of the following skill activation methods:
[0034] First, quick activation means that a skill is activated in the direction of a virtual object's orientation in the virtual environment by triggering a skill activation control during the skill activation process.
[0035] A first area and a second area are selectably provided 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, and the first direction is a direction in which the virtual object faces, or the first direction is a direction corresponding to a position of an attack target within a range in which the skill is activated. When a first trigger operation is received and an attack target does not exist within a predetermined range on the periphery of the virtual object, a skill is activated in a direction in which the virtual object faces in the virtual environment. Here, the first trigger operation within the first area includes a touch operation acting on the skill activation control, and an 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 selectively received within the second area, a 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 within the second area includes a touch operation acting within the first area, and the end position of the touch operation is located within the second area, or the second trigger operation within 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. Here, 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, and 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, a method of quickly activating a skill will be described.
[0040] In the related technology, the virtual environment interface further includes a moving joystick, which is used for controlling the orientation of the virtual object and controlling the movement of the virtual object in the virtual environment, and when the moving joystick receives a control operation to change the orientation of the virtual object and simultaneously receives a quick activation operation on the 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, does not complete the orientation adjustment in the logic layer of the virtual object, and the orientation obtained by the client from the logic layer is the orientation before adjustment, so that the activation direction when the skill is activated is different from the orientation after adjustment, and therefore the accuracy of the skill activation direction is low.
[0041] Schematically, referring to FIG. 2, on the time axis, the skill activation process includes steps 201 to 208.
[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] In step 307, the client receives the skill activation feedback packet fed back from the server, and controls the virtual object to face 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 obtained 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 the virtual environment is installed and executed on the first terminal 420. The application program is any one of a virtual reality application program, a three-dimensional 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 a terminal used by a first user, and the first user uses the first terminal 420 to control a first master virtual character located in the virtual environment to perform an activity, and the activity includes, but is not limited to, at least one of adjusting a body posture, walking, running, jumping, activating a skill, picking, attacking, and avoiding attacks from other virtual characters. Generally, the first master virtual character is a first virtual person, for example, a simulation human character or an animation bone human character. Generally, the first master virtual character activates an area-type skill in the virtual environment, and the virtual environment screen moves from the position where the master virtual character is located to the target area selected by the area-type skill indicator. The area-type skill indicator is used to indicate a 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 server, multiple servers, a cloud computing platform, and a virtualization center. In general, the server 440 includes a processor 444 and a memory 442, and the memory 442 also includes a receiving module 4421, a control module 4422, and a sending module 4423, where the receiving module 4421 is used to receive a request sent from a client, such as a team formation request, the control module 4422 is used to control the rendering of a virtual environment screen, and the sending module 4423 is used to send a message notification, such as a team formation success notification, to the client. The server 440 is used to provide background services to application programs supporting the three-dimensional virtual environment. Alternatively, the server 440 may perform primary computing tasks and the first terminal 420 and the second terminal 460 may perform secondary computing tasks, or the server 440 may perform secondary computing tasks and the first terminal 420 and the second terminal 460 may perform 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] The second terminal 460 has an application program that supports a virtual environment installed and running. The application program is any one of a virtual reality application program, a three-dimensional 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 second terminal 460 is a terminal used by a second user, and the second user uses the second terminal 460 to control a second master virtual character located in the virtual environment to perform an activity, and the activity includes, but is not limited to, at least one of adjusting a body posture, walking, running, jumping, activating a skill, picking, attacking, and avoiding an attack from another master virtual character. In general, the second master virtual character is a second virtual person, for example, a simulation person character or an animation bone person character.
[0067] A first virtual human character and a second virtual human character are in the same virtual environment, and the first virtual human character and the second virtual human character may be selectably on the same team, may be selectably on the same organization, may have a friendly relationship, or may have temporary communication privileges.
[0068] Optionally, the application programs installed on the first terminal 420 and the second terminal 460 are the same, or the application programs installed on the two terminals are the same type of application programs on different control system platforms. The first terminal 420 may generally mean one of a plurality of terminals, and the second terminal 460 may generally mean one of a plurality of terminals, and this embodiment will be described by taking only the first terminal 420 and the second terminal 460 as an example. The first terminal 420 and the second terminal 460 may be the same or different device types, and the device types include at least one of a smartphone, a tablet, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, a moving picture experts group layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, a moving picture experts group layer 4) player, a laptop portable computer, and a desktop computer. In the following embodiment, the terminal will be described by taking a smartphone as an example.
[0069] Those skilled in the art will understand that the number of terminals may be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more. The embodiment of the present application does 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, the method being executable by a computer device, which may be implemented as a first terminal 420 or a second terminal 460 in a computer system 400 as shown in FIG. 4, or another terminal in the computer system 400, and 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 a 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 a directional skill, and movement controls for controlling the master virtual character to move in the virtual environment.
[0073] The screen optionally includes a master virtual character located 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, the terminal display correspondingly displays a user interface when using the application program, i.e., displays a virtual environment interface, and the virtual environment interface displays a screen for observing the virtual environment from a target observation position, 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 is a virtual environment having an arbitrary boundary shape, for example, the virtual environment is a diamond shape. 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 at different viewing angles, thereby acquiring a virtual environment image.
[0075] The viewing angle refers to the viewing angle when observing the virtual environment from the first or third person perspective of the master virtual character.
[0076] Selectably, the virtual environment interface displays an activation control for controlling the master virtual character to activate a directional skill, where a skill activation direction corresponds to the directional skill, i.e., when the skill is activated, 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. In general, when an attack object does not exist 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 directional skill activation process, 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, i.e., the user can adjust the heading direction of the master virtual character with the movement controls to control the master virtual character to move in the heading direction in the virtual environment.
[0081] Selectably, when activating a directional skill, the quick activation method can improve the efficiency of skill activation, so that 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 a precise 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 the 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] Selectably, the skill activation operation corresponds to a 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. Here, the first direction is a direction automatically selected by the client during the activation process of the directional skill, and for example, when an attack object exists within a predetermined range around the master virtual character, the direction corresponding to the position of the attack object is set as the first direction, and when no attack object exists within a predetermined range around the master virtual character, the facing direction of the master virtual character is set as the first direction.
[0085] In the embodiment of the present application, the heading direction of the master virtual character is described as the first direction, and the way of acquiring the heading direction selectably includes directly acquiring the current heading direction of the master virtual character in the virtual environment from the logic layer to be the heading direction of the master virtual character, but the heading direction acquired from the logic layer may be inaccurate due to delay in the direction adjustment, which may result in 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 the facing direction of the master virtual character.Optionally, the virtual environment interface further includes a movement control, and when the movement control operation is a drag operation received at the movement control, after receiving the drag operation for the movement control, obtain the drag direction of the drag operation from the presentation layer, and determine the corresponding second direction when the master virtual character moves 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 implementing the interface presentation and receiving the interface operation. In general, the presentation layer is used for displaying a screen of the virtual environment interface corresponding to the virtual environment and a control for controlling the master virtual character or the game process, and optionally, the presentation layer is further used for receiving a touch operation on the virtual environment interface and reporting the touch operation to the logic layer via the server for logic processing.
[0088] Optionally, the presentation layer and the logic layer are both present in the game client, where the logic layer cannot directly access data in the presentation layer, the presentation layer can access data in the logic layer, the presentation layer cannot modify the logic of the logic layer, and logic processing needs to be performed 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] Selectably, the virtual environment interface further includes a skill activation control, the skill activation control is used to control the virtual object to activate a directional skill, and selectably, there are 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, for the first area, in response to receiving a first trigger operation in the first area of the skill activation control, a determination is made to receive a skill activation operation, and upon receiving the first trigger operation in the first area of the skill activation control, the directional skill is quickly activated. Selectably, upon receiving a second trigger operation in the second area of the skill activation control, an activation direction corresponding to the second trigger operation is determined, and the master virtual character is controlled to activate the directional skill in the virtual environment in the corresponding activation direction, 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] Selectably, the second direction is a direction corresponding to the movement control operation and a post-adjustment orientation direction when the user controls the master virtual character to adjust the orientation direction, whereby the activation direction of the directional skill coincides with the movement control direction.
[0093] The skill activation control is usually set such 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; that is, after a skill has been activated, it can only be reactivated after the skill has cooled down. Therefore, based on the virtual character control method provided in the embodiment of the present application, the waste of skill activation time due to incorrect directional skill activation direction is reduced, thereby improving the efficiency of human-machine interaction.
[0094] As described above, in the control method of a virtual character provided in the embodiment of the present application, when a movement control operation is received when a directional skill is activated, the method does not activate the directional skill in an automatically 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 direction of the master virtual character after preparation, improving the accuracy of activating the directional skill, and avoiding the problem that the efficiency of human-machine interaction is reduced due to the erroneous activation direction, which requires waiting until the directional skill cools down (i.e., after a certain period of recovery after activation, it becomes available for activation again), and then re-activating the directional skill based on the user's re-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 performance of the entire computer device.
[0095] In one selectable embodiment, when controlling a master virtual character to activate a directional skill, it is necessary to realize a skill activation process of a logic layer via a server. FIG. 7 is a flowchart of a virtual character control method provided in another exemplary embodiment of the present application, the method can be executed by a computer device, and the computer device can be implemented as the first terminal 420 or the second terminal 460 in the computer system 400 as shown in FIG. 4, or 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 a 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 a first direction corresponds to the skill activation direction in the quick activation process of a directional skill, in the embodiment of the present application, in the quick activation process of a directional skill, the facing direction of the master virtual character in the virtual environment is obtained, 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 the 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 a 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 moving the master virtual character according to the drag direction.
[0104] Step 703: Send a skill activation data packet including the second direction to the server.
[0105] Optionally, because 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 sends a skill activation data packet to the server after obtaining the second direction, 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 in response to the skill activation feedback packet.
[0108] Step 705, in response to the skill activation feedback packet, controls 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] Selectably, the second direction is a direction corresponding to a movement control operation received at the movement control and an adjusted orientation direction when the user controls the master virtual character to adjust the orientation direction, whereby the activation direction of the directional skill coincides with the movement control direction.
[0111] In general, the skill activation logic of the user, presentation layer, server and logic layer is combined and described. As shown in FIG. 8 , first, after a user 810 performs a skill activation operation based on a skill activation control, it 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, it 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 to instruct 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] Generally, referring to FIG. 9 , the virtual environment interface 900 includes a master virtual character 910, a movement joystick 920, and a trigger control 930 of a directional skill, in which 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 at the same time, 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 the directional skill in the second direction.
[0113] As described above, in the control method of a virtual character provided in the embodiment of the present application, when a movement control operation is received when activating a directional skill, the directional skill is not automatically activated in a first direction selected, but 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 direction of the master virtual character after preparation, improving the accuracy of activating the directional skill, and avoiding the problem that the efficiency of human-machine interaction is reduced due to the erroneous activation direction, which requires waiting until the directional skill cools down (i.e., after a certain period of recovery after activation, it becomes available for activation again), and then the directional skill is re-activated based on the user's re-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.
[0114] The method provided in this embodiment sends a skill activation data packet to a 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 optional 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. FIG. 10 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 another terminal in the computer system 400. As shown in FIG. 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 a 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 a first direction corresponds to the skill activation direction in the quick activation process of a directional skill, in the embodiment of the present application, in the quick activation process of a directional skill, the facing direction of the master virtual character in the virtual environment is obtained, 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] Selectably, a skill activation operation corresponds to a 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 mobile control operation is realized by a drag operation on the mobile control, i.e., receiving a drag operation on the mobile control, obtaining a drag direction of the drag operation from the presentation layer, and determining a second direction corresponding to the drag direction.
[0123] Selectably, 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 face and move in the second direction in the virtual environment.
[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, in regard to steps 1002 and 1003, step 1002 may be executed first and then step 1003, 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 of execution of step 1003 and step 1002.
[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 in the second direction in the virtual environment in response to 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 response to the skill activation feedback packet.
[0132] Generally, referring to FIG. 11, when a user triggers a quick activation of a directional skill, this can be realized as steps 1101 to 1103.
[0133] Step 1101, judge whether the presentation layer receives an input operation based on the moving joystick; if yes, execute step 1102; otherwise, execute step 1103.
[0134] In step 1102, the presentation layer determines the direction of the input operation of the joystick to be received as the skill activation direction.
[0135] In 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 or not a movement control operation has been 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, and 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 activation of the directional skill and improving the accuracy when activating the directional skill.
[0137] Generally, referring to FIG. 12, it 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: A skill activation operation is received.
[0139] Optionally, skill activation operations are used to control the master virtual character to activate directional skills in the virtual environment.
[0140] Step 1202, determine whether 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 methods include quick activation and aiming activation, and when there is a skill joystick orientation, it represents that the current directional skill activation method is aiming activation, and when there is no skill joystick orientation, it represents that the current directional skill activation method 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 the direction of the skill joystick is optional, it indicates that the current activation method of the directional skill is quick activation, and further determines whether or not the direction of the master virtual character needs to be adjusted by 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 moving joystick exists, that is, when it is necessary to adjust the direction of the master virtual character, the direction of the moving joystick is set as the skill activation direction.
[0148] In step 1206, the character's direction is set to the direction in which the skill will be 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 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 of a directional skill. In the initial state, the master virtual character 1310 faces right (first direction) in the virtual environment. The terminal receives a movement control operation based on the movement joystick 1320 of the user to control the master virtual character 1310 to move left, and at the same time, the master virtual character If the user changes the direction of the character in the virtual environment to the 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 at the same time, it is assumed that 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. In the user's operation process, it takes a certain amount of time to reverse the direction of the master virtual character. When the user activates the directional skill using the quick cast method, the following erroneous operation results may occur. First, the user performs a quick activation operation on the directional skill after observing that the master virtual character's direction inversion is completed, but there is inevitably a certain delay between the user observing that the master virtual character's direction inversion is completed and performing the quick activation operation, which reduces the efficiency of the interaction. First, 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 (the first direction), which will not match the user's intention and will result in an erroneous 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 moving direction, and 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, thereby not only ensuring the efficiency of interaction when the directional skill is quickly activated, but also improving the accuracy of skill activation.
[0152] As described above, in the control method of a virtual character provided in the embodiment of the present application, when a movement control operation is received when activating a directional skill, the directional skill is not automatically activated in a first direction selected, but 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 direction of the master virtual character after preparation, improving the accuracy of activating the directional skill, and avoiding the problem that the efficiency of human-machine interaction is reduced due to the erroneous activation direction, which requires waiting until the directional skill cools down (i.e., after a certain period of recovery after activation, it becomes available for activation again), and then the directional skill is re-activated based on the user's re-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.
[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, the skill activation operation being 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 being 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 apparatus further comprises: The device further 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 apparatus 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 mobile control data packet including the second direction to a server in response to the mobile 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 an 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 adapted to acquire, in response to the skill activation operation and when the movement control operation is not received, the facing direction of the master virtual character from the logic layer and set the facing direction as the first direction; The activation module 1430 is further used for controlling 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 within a first area of the skill activation control 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 control device of the virtual character provided in the embodiment of the present application receives a movement control operation when activating 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 that the efficiency of human-machine interaction is reduced due to the erroneous activation direction, which requires waiting until the directional skill cools down (i.e., after a certain period of recovery after activation, it becomes available for activation again), and then re-activating the directional skill based on the user's re-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, the memory storing at least one instruction, the at least one instruction being 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 embodiments of the method, the terminal 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 other names.
[0164] Generally, 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, an 8-core processor, etc. The processor 1601 may be implemented using at least one of the following hardware forms: DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1601 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, 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 paint 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] The memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The 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 the memory 1602 is used to store at least one instruction, which is used to be executed by the processor 1601 to realize the method for controlling a virtual character provided in the method embodiment of the present application.
[0167] In some embodiments, the terminal 1600 may optionally further include a peripheral interface 1603 and at least one peripheral device. The processor 1601, the memory 1602, and the peripheral interface 1603 are connected to each other via a bus or signal lines. Each peripheral device is connected to the peripheral interface 1603 via a bus, signal lines, or a circuit board. Specifically, the peripheral devices include at least one of a high-frequency circuit 1604, a display 1605, a camera head component 1606, an audio circuit 1607, a positioning component 1608, and a power source 1609.
[0168] In some embodiments, the 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 different component arrangements.
[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 a portion 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 at least one instruction stored therein, the at least one instruction being loaded and executed by the processor to realize all or part of the steps of 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 comprising computer instructions, the computer instructions being stored in a computer readable storage medium, a processor of a computing device reading the computer instructions from the computer readable storage medium, the processor executing the computer instructions, thereby causing the computing device to perform all or part of the steps of the method for controlling a virtual character 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 indicate 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 related 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 selectable 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 Transmitter 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 implemented by a computing device, the method comprising: displaying a virtual environment interface, the virtual environment interface including a screen for viewing a virtual environment, the screen including a master virtual character located in the virtual environment, the virtual environment interface further including a skill activation control and a movement control; receiving a skill activation operation on the skill activation control, or the skill activation operation and a movement control operation on the movement control, the skill activation operation being used to control the master virtual character to activate a directional skill in the virtual environment, and the movement control operation being used to control the master virtual character to move in a second direction in the virtual environment; When the skill activation operation and the movement control operation are received, the master virtual character activates the directional skill in the second direction in the virtual environment; When the skill activation operation is received and the movement control operation is not received, the master virtual character activates the directional skill in a first direction in the virtual environment. and controlling the step of: The first direction and the second direction are independent of each other.
13. A method for controlling a virtual character comprising:
2. The movement control operation is a drag operation received at the movement control; The second direction is receiving the drag operation on the movement control; obtaining a drag direction for the drag operation from a presentation layer; determining the second direction in which the master virtual character moves according to the drag direction; Determined based on 2. The method of claim 1 .
3. The step of controlling the master virtual character to activate the directional skill in the second direction in the virtual environment includes: 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 mobile control data packet to a server in response to the mobile control operation, the mobile control data packet including the second direction; 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 arranged in a first direction.
5. After the step of receiving a mobility control feedback packet transmitted from the server, further comprising: 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.
5. The method of claim 4.
6. Receiving the skill activation 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 arranged in a first direction.
7. The method comprises: receiving 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; 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.
7. The method of claim 6.
8. The method described in claim 1, wherein the first direction is a current facing direction of the master virtual character.
9. When there is no skill activation target within a predetermined range around the master virtual character, the first direction is a facing direction of the master virtual character, The method according to claim 1 , wherein, when a skill activation target exists within a predetermined range around the master virtual character, the first direction is a direction corresponding to a position of the skill activation target within a range in which the directional skill is activated.
10. A control device for a virtual character applied to a computer device, the device comprising: a display module for displaying a virtual environment interface, the virtual environment interface including a screen for observing a virtual environment, the screen including a master virtual character located in the virtual environment, the virtual environment interface further including a skill activation control and a movement control; a receiving module for receiving a skill activation operation on the skill activation control, or the skill activation operation and a movement control operation on the movement control, the skill activation operation being used to control the master virtual character to activate a directional skill in the virtual environment, and the movement control operation being used to control the master virtual character to move in a second direction in the virtual environment; When the skill activation operation and the movement control operation are received, the master virtual character activates the directional skill in the second direction in the virtual environment; When the skill activation operation is received and the movement control operation is not received, the master virtual character activates the directional skill in a first direction in the virtual environment. and an actuation module for controlling the actuation of the The first direction and the second direction are independent of each other. A control device for a virtual character comprising:
11. 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; 11. The apparatus of claim 10.
12. further comprising a transmission 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 for receiving 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.
12. The apparatus of claim 11 .
13. A sending module is used 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: 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; 13. Apparatus according to any one of claims 10 to 12.
14. The method of claim 13, further comprising: 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.
14. The apparatus of claim 13.
15. The receiving module is used to receive a first trigger operation within a first area of the skill activation control and use the first trigger operation as the skill activation operation.
13. Apparatus according to any one of claims 10 to 12.
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 apparatus of claim 15.
17. The device of claim 10, wherein the first direction is a current facing direction of the master virtual character.
18. When there is no skill activation target within a predetermined range around the master virtual character, the first direction is a facing direction of the master virtual character, The device according to claim 10 , wherein, when a skill activation target exists within a predetermined range around the master virtual character, the first direction is a direction corresponding to a position of the skill activation target within a range in which the directional skill is activated.
19. A computing device including a processor and a memory, comprising: 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 9.
1. A computer device comprising:
20. The method for controlling a virtual character according to any one of claims 1 to 9 is implemented by being loaded and executed by a processor. A computer program comprising:
