CN116832446A - Virtual character control method and device and electronic equipment - Google Patents
Virtual character control method and device and electronic equipment Download PDFInfo
- Publication number
- CN116832446A CN116832446A CN202210321255.2A CN202210321255A CN116832446A CN 116832446 A CN116832446 A CN 116832446A CN 202210321255 A CN202210321255 A CN 202210321255A CN 116832446 A CN116832446 A CN 116832446A
- Authority
- CN
- China
- Prior art keywords
- virtual character
- virtual
- action
- target action
- controlling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000009471 action Effects 0.000 claims abstract description 250
- 230000003993 interaction Effects 0.000 claims abstract description 23
- 230000008569 process Effects 0.000 claims abstract description 13
- 230000004044 response Effects 0.000 claims abstract description 10
- 230000033001 locomotion Effects 0.000 claims description 39
- 230000015654 memory Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 5
- 238000012549 training Methods 0.000 description 21
- 238000003860 storage Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000002860 competitive effect Effects 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- -1 ethyl methyl Chemical group 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000011065 in-situ storage Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 230000033764 rhythmic process Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/56—Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure provides a virtual role control method and device and electronic equipment; relates to the technical field of virtual interaction. Providing a graphical user interface through the terminal equipment, wherein the content displayed by the graphical user interface partially comprises a virtual scene, the virtual scene comprises a first virtual role operated by a user through the terminal equipment, and a second virtual role, and the method comprises the following steps: controlling the virtual character to execute a target action in response to a first input operation; acquiring a target action executed by the virtual character, and generating an action record according to the target action; and controlling the first virtual character to interact with the second virtual character, wherein in the interaction process, the second virtual character is controlled to execute the target action based on the action record. The method and the device can improve pertinence, accuracy and convenience of controlling the virtual character to train.
Description
Technical Field
The present disclosure relates to the field of virtual interaction technology, and in particular, to a virtual character control method, a virtual character control device, an electronic apparatus, and a computer-readable storage medium.
Background
Games are widely favored as an important recreational or competitive activity. Games are typically played in virtual scenes where users operate their own virtual characters to be active.
While operating the avatar's activities, combat can occur with other avatars. Each avatar has its own skills or actions that the user needs to train to become familiar with the skills or actions of the different avatar. Currently, non-player characters are used for training or learning how to deal with in actual combat games.
According to the scheme, the non-player character cannot bring real experience, and the pertinence and accuracy of training are low; the study in actual combat leads to high failure rate of the countermeasures, and proper combat cannot be met, so that the method is inconvenient.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of an embodiment of the present disclosure is to provide a virtual character control method, a virtual character control device, an electronic apparatus, and a computer-readable storage medium, so as to improve pertinence, accuracy, and convenience of virtual character training at least to some extent.
According to one aspect of the present disclosure, there is provided a virtual character control method, providing, by a terminal device, a graphical user interface, where content displayed by the graphical user interface partially includes a virtual scene, the virtual scene includes a first virtual character operated by a user through the terminal device, and the virtual scene further includes a second virtual character, and the method includes:
responding to the first input operation, and controlling a virtual character to execute a target action;
acquiring a target action executed by the virtual character, and generating an action record according to the target action;
and controlling the first virtual character to interact with the second virtual character, wherein in the interaction process, the second virtual character is controlled to execute the target action based on the action record.
In one embodiment of the present disclosure, the method further comprises:
and controlling the moving direction of the second virtual character based on a preset control logic in the interaction process.
In one embodiment of the present disclosure, the step of controlling the movement direction of the second virtual character based on predetermined control logic includes:
and sending a movement instruction to the second virtual character according to the position of the first virtual character in the virtual scene, wherein the movement instruction is used for indicating the second virtual character to move towards the first virtual character.
In one embodiment of the present disclosure, after the step of controlling the first virtual character to interact with the second virtual character in response to the second input operation, the method further includes:
and detecting that the first virtual role and the second virtual role are in a continuous state, and continuously controlling the second virtual role to execute the target action based on the action record.
In one embodiment of the disclosure, the step of controlling a virtual character to perform the target action in response to the first input operation includes:
responding to a first input operation, and determining an action instruction corresponding to the first input operation;
and acquiring the action instruction, and controlling a virtual character to execute the target action based on the action instruction.
In one embodiment of the disclosure, the step of obtaining the target action executed by the virtual character and generating an action record according to the target action further includes:
and acquiring the time and/or place of the target action executed by the virtual character.
In one embodiment of the present disclosure, the step of controlling the second virtual character to perform a target action based on the action record further includes:
Updating the action range of the second virtual character in real time according to the action distance of the target action and the position of the second virtual character;
and controlling the second virtual role to execute a target action when the first virtual role is detected to be in the action range.
In one embodiment of the present disclosure, the method further comprises:
when the second virtual character is detected to stop executing the target action, a corresponding stop position on the action record is obtained;
and continuing to execute the target action which is not executed based on the stop position.
According to an aspect of the present disclosure, there is provided a virtual character control apparatus for providing, by a terminal device, a graphical user interface, the content displayed by the graphical user interface partially including a virtual scene including a first virtual character operated by a user through the terminal device, and a second virtual character, the apparatus comprising:
the action input module is used for responding to the first input operation and controlling the virtual character to execute a target action;
the action recording module is used for acquiring a target action executed by the virtual character and generating an action record according to the target action;
And the role interaction module is used for controlling the first virtual role to interact with the second virtual role, wherein in the interaction process, the second virtual role is controlled to execute the target action based on the action record.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
and the movement control module is used for controlling the movement direction of the second virtual character based on a preset control logic in the interaction process.
In one embodiment of the disclosure, the movement control module is configured to send a movement instruction to the second virtual character according to a position of the first virtual character in the virtual scene, where the movement instruction is configured to instruct the second virtual character to move toward the first virtual character.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
and the re-executing module is used for continuously controlling the second virtual role to execute the target action based on the action record after detecting that the first virtual role and the second virtual role are in a continuous state after the step of controlling the second virtual role to execute the target action based on the action record and controlling the first virtual role to interact with the second virtual role.
In one embodiment of the disclosure, an action input module is used for responding to a first input operation and determining an action instruction corresponding to the first input operation;
and acquiring the action instruction, and controlling a virtual character to execute the target action based on the action instruction.
In one embodiment of the disclosure, the action recording module is further configured to obtain a time and/or place of the target action performed by the virtual character.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
the action triggering module is used for updating the action range of the second virtual character in real time according to the action distance of the target action and the position of the second virtual character;
and controlling the second virtual role to execute a target action when the first virtual role is detected to be in the action range.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
the continuous execution module is used for acquiring a corresponding stop position on the action record when the second virtual character is detected to stop executing the target action;
and continuing to execute the target action which is not executed based on the stop position.
According to one aspect of the present disclosure, there is provided a computer readable medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the method of any one of the above.
According to one aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the method of any of the above via execution of the executable instructions.
According to one aspect of the present disclosure, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of any one of the above.
Exemplary embodiments of the present disclosure may have some or all of the following advantages:
in the technical scheme provided by the disclosed example embodiment, a virtual character may be controlled to execute a target action, then an action record is generated on the executed target, and a second virtual character is automatically controlled to execute the target action based on the action record to interact with the first virtual character. On the one hand, the second virtual character can be controlled to execute target actions, an accurate action record is generated, the method can be suitable for the training purpose of a user, and the pertinence and the accuracy of virtual character training are improved; on the other hand, training can be performed at any time without being performed in actual combat, so that the training convenience is improved, and the higher failure rate caused by actual combat training is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 illustrates a schematic diagram of a system architecture of an exemplary application environment in which a virtual character control method and apparatus of embodiments of the present disclosure may be applied;
FIG. 2 illustrates a schematic diagram of a computer system suitable for use in implementing embodiments of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a virtual character control method according to one embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a virtual character control method according to one embodiment of the present disclosure;
FIG. 5 schematically illustrates an interface diagram of a range of action in one embodiment in accordance with the present disclosure;
Fig. 6 schematically illustrates a block diagram of a virtual character control apparatus according to one embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 is a schematic diagram illustrating a system architecture of an exemplary application environment to which a virtual character control method and apparatus according to an embodiment of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of the terminal devices 101, 102, 103. The terminal devices 101, 102, 103 may be various electronic devices with display screens including, but not limited to, desktop computers, portable computers, smart phones, tablet computers, and the like. It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, as desired for implementation.
The virtual character control method in one embodiment of the present disclosure may be run on a local terminal device or a server. When the virtual prop control method is operated on the server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and operation of the game interface control method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the terminal device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
As shown in fig. 2, the computer system 200 includes a central processing unit CPU that can perform various appropriate actions and processes according to a program stored in a read only memory ROM or a program loaded from a storage section into a random access memory RAM. In the RAM, various programs and data required for the system operation are also stored. The CPU, ROM and RAM are connected to each other by a bus. An input/output (I/O) interface is also connected to the bus.
The following components are connected to the (I/O) interface: an input section including a keyboard, a mouse, etc.; an output section including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage section including a hard disk or the like; and a communication section including a network interface card such as a LAN card, a modem, and the like. The communication section performs communication processing via a network such as the internet. The drive is also connected to the (I/O) interface as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, and the like are mounted on the drive as needed so that a computer program read therefrom is mounted into the storage section as needed.
In the exemplary embodiment of the disclosure, the virtual scene may be a digital scene outlined by an intelligent terminal device such as a computer, a mobile phone, a tablet computer and the like through a digital communication technology, and the digital scene may be on a display screen of the intelligent terminal device or may be projected onto other display devices. The virtual scene may include buildings or structures such as houses, buildings, gardens, bridges, pools and the like, and may further include natural landscapes such as mountains, rivers, lakes and the like, and any virtual articles such as weapons, tools, living things and the like, which are not particularly limited in this exemplary embodiment.
The number of the first virtual characters and the second virtual characters in the embodiments of the present disclosure is not limited, and the first or second virtual characters may refer to a single virtual character or may refer to a plurality of virtual characters.
The following describes the technical scheme of the embodiments of the present disclosure in detail:
the present exemplary embodiment provides a virtual character control method. Referring to fig. 3, the virtual character control method provides a graphical user interface through a terminal device, wherein content displayed by the graphical user interface partially includes a virtual scene, the virtual scene includes a first virtual character operated by a user through the terminal device, the virtual scene further includes a second virtual character, and the method may include the following steps:
step S310, responding to the first input operation, controlling a virtual character to execute the target action.
Step 320, obtaining a target action executed by the virtual character, and generating an action record according to the target action.
And step S330, controlling the first virtual character to interact with the second virtual character, wherein in the interaction process, the second virtual character is controlled to execute the target action based on the action record.
In the virtual character control method provided in this exemplary embodiment, a virtual character may be controlled to execute a target action, and then the executed target generation action record automatically controls a second virtual character to execute the target action based on the action record, and interact with the first virtual character. On the one hand, the second virtual character can be controlled to execute target actions, an accurate action record is generated, the method can be suitable for the training purpose of a user, and the pertinence and the accuracy of virtual character training are improved; on the other hand, training can be performed at any time without being performed in actual combat, so that the training convenience is improved, and the higher failure rate caused by actual combat training is avoided.
In another embodiment, the above steps are described in more detail below.
In step S310, a virtual character is controlled to perform a target action in response to a first input operation.
In the disclosed embodiments, the input operation may be determined based on an input device that is self-contained with or connected to the terminal device, e.g., may be accomplished through a keyboard, a handle, a touchable display. The virtual character herein may be a first virtual character, a second virtual character, or other virtual character. Optionally, the virtual character herein may refer to a first virtual character operated by a user through a terminal device, or may be a virtual character operated by another user in the same office with the user, or may be a non-player character (Non Player Character, abbreviated as NPC) preset in a virtual scene through a game program. Each user may operate at least one virtual character, and embodiments of the present disclosure are not limited herein to virtual characters controlled based on the first input operation.
The target action is determined based on an input operation performed by the user, and the target action may be one or a set of actions. For example, if the user presses a on the keyboard, the terminal device may control the virtual character to perform the first skill in response to the input operation; the user presses B on the keyboard, and the virtual character can be controlled to execute the second skill; or pressing down A, the virtual character executes the first skill, pressing down B, and the virtual character executes the second skill, so as to form a group of target actions of the first skill and the second skill.
In step S320, a target action executed by the virtual character is acquired, and an action record is generated according to the target action.
In the embodiment of the disclosure, the target actions executed by the virtual roles can be recorded in time sequence. The action record may be generated based on the time of the input operation, for example, when the input operation is performed through the touchable screen, the time of clicking the touchable screen for the first time is taken as the execution time of the first target action, the time of clicking the touchable screen for the second time is taken as the execution time of the second target action, and the interval time of each target action is recorded. Or may be recorded not by time but only in the order of the target actions performed, for example, the record of the performance of three skills of ethyl methyl, 1 a 2 c 3 b without regard to the time interval between skills.
It will be appreciated that more than one virtual character may have performed the target action, i.e., the target action is performed by two or more virtual characters in common. For example, a user needs to train how to control the first virtual character pair in the case where two enemies co-attack their first virtual character. The user can firstly execute the input operation of the first part, the terminal equipment responds to the input operation of the first part to control one virtual character to execute the target action, and the user executes the input operation of the second part to control the other virtual character to execute the target action. The target actions executed by the two virtual roles can be performed simultaneously or sequentially, and the embodiments of the present disclosure do not limit the target actions executable by the virtual roles.
The characteristics of the target action may include the time and place of action execution, which may be the time of a certain action in the game world view, such as midnight and noon of a virtual scene within the game; the relative time of two or more target actions, for example, the second action is performed after the first action is performed for ten seconds, and the time can represent the sequence and rhythm of the target action. The location where the action is performed may be a location where the virtual scene is referenced, for example, a fixed location in the virtual scene; the relative positions of two or more target actions may be used, for example, the first action is performed at the point a, and the second action is performed at a position ten meters away from the point a. Accordingly, the action record may also include the time and/or place of the target action.
The action record may be stored on the terminal device after generation, and the action record may also be uploaded by the user to the game server via a game program on the terminal device. Other terminal devices can send requests to the game server to acquire action records generated by the terminal devices of other users.
In step S330, the first virtual character is controlled to interact with the second virtual character, wherein during the interaction, the second virtual character is controlled to execute the target action based on the action record.
After the action record is generated, the game program in the terminal device can automatically control the second virtual character to execute the target action according to the action record. For example, by time in the action log, or just according to skill or order between actions.
Optionally, the terminal device is further configured to receive a first input operation.
It will be appreciated that if the target action is to be performed with the aid of a virtual prop or other auxiliary object, it may be generated accordingly.
The user can control the first virtual character to interact with the second virtual character through the terminal equipment. For example, the user may control the first avatar to fight, at which point the second avatar may be considered an enemy avatar; the user may also control the first avatar to engage with a second avatar, such as an engagement in skills, to release the skills, at which point the second avatar may be considered a friend avatar.
In the virtual scene, the first virtual character controlled by the user is in continuous movement, and if the second virtual character is fixed at one position, the virtual character is hard, and a better training result cannot be obtained.
Based on this, in one embodiment of the present disclosure, an implementation of a virtual character control method is also provided. The method further comprises the steps of:
and controlling the moving direction of the second virtual character based on a preset control logic in the interaction process.
In an embodiment of the present disclosure, the predetermined control logic may include a maximum slope that the virtual character can pass, beyond which it cannot pass; the maximum height of the stairs is not passed beyond the maximum height; limit of jump height, limit of jump distance, etc. On the basis, the distance between the virtual character and the target can be judged in real time, and the virtual character is controlled to move to reduce the distance.
In one embodiment of the present disclosure, an implementation of a virtual character control method is also provided. The step of controlling the moving direction of the second virtual character based on a predetermined control logic includes:
and sending a movement instruction to the second virtual character according to the position of the first virtual character in the virtual scene, wherein the movement instruction is used for indicating the second virtual character to move in the virtual scene.
The second virtual character may be a virtual character that is an adversary or a virtual character that is a friend. The second virtual character needs to be in the same position as the first virtual character, if the second virtual character is kept in a fixed position, the first virtual character needs to be operated by a user to move, so that the operation burden of the user is increased, and the second virtual character cannot simulate the movement experience of the real virtual character.
In the embodiment of the disclosure, a moving instruction can be sent to the second virtual character according to the position of the first virtual character in the virtual scene and the position of the second virtual character, so that the second virtual character is controlled to move towards the position of the first virtual character. Notably, the position of the first virtual character is controlled by the user, the position of the first virtual character being in dynamic change. Therefore, the moving route of the second virtual character is also changed in real time. The movement instruction may be just the position coordinates of the first virtual character, or may be a movement route planned based on the position coordinates.
When the movement instruction indicates a movement route, the movement route may be generated by a game program on the terminal device based on a specific rule. Such as shortest distance rules or shortest time rules, embodiments of the present disclosure are not limited herein.
Embodiments of the present disclosure are implemented by sending a movement instruction to a second virtual character to instruct the second virtual character to move according to the position of the first virtual character in the virtual scene. The reality degree during training can be improved, the training quality is further improved, and meanwhile, the operation cost of a user is reduced.
The embodiment of the present disclosure further proposes an implementation manner of a virtual character control method, after the step of controlling the interaction between the first virtual character and the second virtual character in response to the second input operation, the method further includes step S340:
In step S340, it is detected that both the first virtual character and the second virtual character are in a persistent state, and the second virtual character is continuously controlled to execute the target action based on the action record.
In the embodiment of the disclosure, after the second virtual character is controlled to execute the target action and the first virtual character and the second virtual character complete interaction, the first virtual character may defeat the second virtual character or be defeated by the second virtual character. Thus, the state of persistence of the first and second virtual characters is detected to determine whether the first and second virtual characters are still "alive". It may occur that both the first virtual character and the second virtual character remain, at which point training may be considered to have not been completed and should continue. The terminal device continues to control the second virtual character to execute the target action based on the action record.
After the step of controlling the second virtual character to execute the target action based on the action record and controlling the first virtual character to interact with the second virtual character, the embodiment of the present disclosure is implemented, the first virtual character and the second virtual character are detected to be in a continuous state, and the second virtual character is continuously controlled to execute the target action based on the action record. The integrity and the authenticity of the virtual character training can be improved.
When a user controls a virtual character to perform a target action, there is a high possibility that there is a control of movement in addition to the control of the action. The virtual environment where the user virtual character performs the target action to generate the action record is generally different from the virtual environment where the subsequent first virtual character interacts with the second virtual character, and the positions of the virtual characters are also different. Thus, if the second virtual character is controlled based on the motion control and the movement control when the user virtual character performs the target motion, the target motion may be performed inaccurately.
Based on this, the embodiment of the disclosure further provides an implementation manner of the virtual character control method, where the step of controlling a virtual character to execute the target action in response to the first input operation includes:
responding to a first input operation, and determining an action instruction corresponding to the input operation;
and acquiring the action instruction, and controlling a virtual character to execute the target action based on the action instruction.
In the embodiment of the disclosure, the input operation of the user controls the action and movement of the virtual character, for example, controls the virtual character to release the first skill in situ, controls the virtual character to release the second skill after advancing, and controls the virtual character to release the third skill after backing. Where releasing the first skill in place, releasing the second skill after advancing, and releasing the third skill after reversing may not be applicable for the first and second virtual characters to interact. Accordingly, the motion instruction corresponding to the input operation is determined based only on the input operation, and the second virtual character is controlled to execute the target motion based on the motion instruction. Without reference to a movement instruction corresponding to the first input operation.
In the embodiment of the disclosure, in response to an input operation, determining an action instruction and a movement instruction corresponding to the input operation, and acquiring the action instruction. And controlling the second virtual character to execute the target action based on the action instruction, so that the accuracy of controlling the second virtual character to execute the target action can be improved.
The embodiment of the disclosure further provides an implementation manner of the virtual character control method, where the step of controlling the second virtual character to execute the target action based on the action record further includes:
updating the action range of the second virtual character in real time according to the action distance of the target action and the position of the second virtual character;
and controlling the second virtual role to execute a target action when the first virtual role is detected to be in the action range.
In the disclosed embodiment, a trigger condition for the second virtual character to perform the target action needs to be determined. It will be appreciated that the skills or actions of the avatar have a range of action, which may be attack, defense, and others. When the second virtual character is controlled to execute the target action based on the action record, determining the attack range of the second virtual character according to the actionable distance of the target action and the position of the second virtual character. And updating the attack range in real time according to the position in the second virtual character change.
It will be appreciated that some skills or actions also have a preset breadth of action. For example, as shown in fig. 5, the action width of the included angle 100 ° is centered on the direction facing the second virtual character 501, and the action range is a sector; the second virtual character 502 may be an action width of 100 with respect to the facing direction, and the action range may be a rectangle.
When the actual virtual roles interact, the first virtual role or the second virtual role can execute the target action and can be stopped or interrupted by the other side. After the second virtual character is suspended or the execution of the target action is interrupted, incomplete execution of the action is caused, and the training reality is reduced.
Based on this, the embodiment of the disclosure further provides an implementation manner of the virtual role control method, and the method further includes:
when the second virtual character is detected to stop executing the target action, a corresponding stop position on the action record is obtained;
and continuing to execute the target action which is not executed based on the stop position.
In the embodiment of the disclosure, the terminal device determines a position where the target action is stopped based on the execution progress and the action record of the target action, and based on the position, controls the second virtual character to continue to execute the remaining target actions. It is understood that if the cause of stopping the target action is continuously present, the target action may be continuously executed after the cause of stopping is released. If the preset feature of the specific skill or action indicates that the execution of the target action cannot be stopped, all the target actions can be directly re-executed.
When the second virtual character is detected to stop executing the target action, the embodiment of the disclosure obtains the corresponding stop position on the action record, and based on the stop position, the non-executed target action is continuously executed. The target action can be completely executed by the second virtual character, and the training reality and training quality are improved.
It should be noted that although the steps of the methods in the present disclosure are depicted in the accompanying drawings in a particular order, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
Further, in this example embodiment, there is also provided a virtual character control apparatus 600, providing, by a terminal device, a graphical user interface, where a content displayed by the graphical user interface partially includes a virtual scene, where the virtual scene includes a first virtual character operated by a user through the terminal device, and where the virtual scene further includes a second virtual character, and the apparatus 600 includes:
A motion input module 601, configured to control the virtual character to execute a target motion in response to a first input operation;
the action recording module 602 is configured to obtain a target action executed by the virtual character, and generate an action record according to the target action;
and a role interaction module 603, configured to control the first virtual role to interact with the second virtual role, where during the interaction process, the second virtual role is controlled to execute the target action based on the action record.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
and the movement control module is used for controlling the movement direction of the second virtual character based on a preset control logic in the interaction process.
In one embodiment of the disclosure, the movement control module is configured to send a movement instruction to the second virtual character according to a position of the first virtual character in the virtual scene, where the movement instruction is configured to instruct the second virtual character to move toward the first virtual character.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
and the re-executing module is used for continuously controlling the second virtual role to execute the target action based on the action record after detecting that the first virtual role and the second virtual role are in a continuous state after the step of controlling the second virtual role to execute the target action based on the action record and controlling the first virtual role to interact with the second virtual role.
In one embodiment of the disclosure, an action input module is used for responding to a first input operation and determining an action instruction corresponding to the first input operation;
and acquiring the action instruction, and controlling a virtual character to execute the target action based on the action instruction.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
and the record transmission module is used for uploading the generated action record to the server by the terminal equipment and sending a request to the server to acquire other action records.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
the action triggering module is used for updating the action range of the second virtual character in real time according to the action distance of the target action and the position of the second virtual character;
and controlling the second virtual role to execute a target action when the first virtual role is detected to be in the action range.
In one embodiment of the present disclosure, the virtual character control apparatus further includes:
the continuous execution module is used for acquiring a corresponding stop position on the action record when the second virtual character is detected to stop executing the target action;
And continuing to execute the target action which is not executed based on the stop position.
The specific details of each module or unit in the above device are described in detail in the corresponding virtual role control method, so that they will not be described herein.
As another aspect, the present application also provides a computer-readable medium that may be contained in the electronic device described in the above embodiment; or may exist alone without being incorporated into the electronic device. The computer-readable medium carries one or more programs which, when executed by one of the electronic devices, cause the electronic device to implement the method as described in the embodiments.
It should be noted that the computer readable medium shown in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (11)
1. A virtual character control method, characterized in that a graphical user interface is provided through a terminal device, and content displayed by the graphical user interface partially includes a virtual scene, wherein the virtual scene includes a first virtual character operated by a user through the terminal device, and the virtual scene also includes a second virtual character, and the method includes:
responding to the first input operation, and controlling a virtual character to execute a target action;
acquiring a target action executed by the virtual character, and generating an action record according to the target action;
and controlling the first virtual character to interact with the second virtual character, wherein in the interaction process, the second virtual character is controlled to execute the target action based on the action record.
2. The method according to claim 1, wherein the method further comprises:
and controlling the moving direction of the second virtual character based on a preset control logic in the interaction process.
3. The method of claim 1, wherein the step of controlling the movement direction of the second virtual character based on predetermined control logic comprises:
and sending a movement instruction to the second virtual character according to the position of the first virtual character in the virtual scene, wherein the movement instruction is used for indicating the second virtual character to move towards the first virtual character.
4. The method of claim 1, wherein after the step of controlling the first virtual character to interact with the second virtual character, the method further comprises:
and detecting that the first virtual role and the second virtual role are in a continuous state, and continuously controlling the second virtual role to execute the target action based on the action record.
5. The method of claim 1, wherein the step of controlling a virtual character to perform the target action in response to the first input operation comprises:
responding to a first input operation, and determining an action instruction corresponding to the first input operation;
and acquiring the action instruction, and controlling a virtual character to execute the target action based on the action instruction.
6. The method of claim 1, wherein the step of obtaining a target action performed by the virtual character and generating an action record from the target action further comprises:
and acquiring the time and/or place of the target action executed by the virtual character.
7. The method of claim 3, wherein the step of controlling the second virtual character to perform a target action based on the action record further comprises:
Updating the action range of the second virtual character in real time according to the action distance of the target action and the position of the second virtual character;
and controlling the second virtual role to execute a target action when the first virtual role is detected to be in the action range.
8. The method according to claim 1, wherein the method further comprises:
when the second virtual character is detected to stop executing the target action, a corresponding stop position on the action record is obtained;
and continuing to execute the target action which is not executed based on the stop position.
9. A virtual character control apparatus, wherein a graphical user interface is provided through a terminal device, and wherein content displayed by the graphical user interface partially includes a virtual scene, wherein the virtual scene includes a first virtual character operated by a user through the terminal device, and wherein the virtual scene further includes a second virtual character, the apparatus comprising:
the action input module is used for responding to the first input operation and controlling a virtual character to execute a target action;
the action recording module is used for acquiring a target action executed by the virtual character and generating an action record according to the target action;
And the role interaction module is used for controlling the first virtual role to interact with the second virtual role, wherein in the interaction process, the second virtual role is controlled to execute the target action based on the action record.
10. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any one of claims 1-8.
11. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1-8 via execution of the executable instructions.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210321255.2A CN116832446A (en) | 2022-03-24 | 2022-03-24 | Virtual character control method and device and electronic equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210321255.2A CN116832446A (en) | 2022-03-24 | 2022-03-24 | Virtual character control method and device and electronic equipment |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116832446A true CN116832446A (en) | 2023-10-03 |
Family
ID=88173091
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210321255.2A Pending CN116832446A (en) | 2022-03-24 | 2022-03-24 | Virtual character control method and device and electronic equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116832446A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025246509A1 (en) * | 2024-05-28 | 2025-12-04 | 北京字跳网络技术有限公司 | Control method and apparatus for virtual character, and medium, device and program product |
-
2022
- 2022-03-24 CN CN202210321255.2A patent/CN116832446A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2025246509A1 (en) * | 2024-05-28 | 2025-12-04 | 北京字跳网络技术有限公司 | Control method and apparatus for virtual character, and medium, device and program product |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12420207B2 (en) | Marker in a message providing access to a full version of a video game | |
| CN113398601B (en) | Information transmission method, information transmission device, computer-readable medium, and apparatus | |
| CN110548288B (en) | Virtual object hit prompting method and device, terminal and storage medium | |
| CN113457171B (en) | Live broadcast information processing method, electronic equipment and storage medium | |
| JP7741222B2 (en) | Virtual character control method, device, equipment, and storage medium | |
| JP2024019394A (en) | Virtual object control method, device, terminal and computer program thereof | |
| CN111672111A (en) | Interface display method, device, equipment and storage medium | |
| CN110801629B (en) | Method, device, terminal and medium for displaying virtual object life value prompt graph | |
| CN109771957B (en) | Method and device for fighting in game, electronic equipment and storage medium | |
| CN111228803A (en) | A screen switching method, device, equipment and medium | |
| JP6959267B2 (en) | Generate challenges using a location-based gameplay companion application | |
| CN113967355A (en) | Game virtual character action control method and device, storage medium and electronic equipment | |
| CN116712725A (en) | An information processing method, device, equipment and medium in a game | |
| CN116832446A (en) | Virtual character control method and device and electronic equipment | |
| CN116328297A (en) | Interaction method, device, equipment and storage medium for game collaboration | |
| CN115554699A (en) | In-game information processing method and device and electronic equipment | |
| JP2017153772A (en) | Information processing device and game program | |
| CN113680062A (en) | Information viewing method and device in game | |
| CN112619133A (en) | Game picture display method, device, equipment and storage medium | |
| CN117398691A (en) | Virtual object control method and device, storage medium and electronic equipment | |
| CN115970271A (en) | Game action execution method, game action execution device, storage medium and equipment | |
| WO2024055811A1 (en) | Message display method and apparatus, device, medium, and program product | |
| CN116421968A (en) | Virtual character control method, device, electronic device and storage medium | |
| WO2023231557A9 (en) | Interaction method for virtual objects, apparatus for virtual objects, and device, storage medium and program product | |
| CN115607957A (en) | Game control method, device, storage medium and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |