CN113813599B - Virtual character control method and device, storage medium and electronic equipment - Google Patents

Virtual character control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113813599B
CN113813599B CN202110997371.1A CN202110997371A CN113813599B CN 113813599 B CN113813599 B CN 113813599B CN 202110997371 A CN202110997371 A CN 202110997371A CN 113813599 B CN113813599 B CN 113813599B
Authority
CN
China
Prior art keywords
target
virtual character
target virtual
control object
direction control
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.)
Active
Application number
CN202110997371.1A
Other languages
Chinese (zh)
Other versions
CN113813599A (en
Inventor
邓颖
江涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110997371.1A priority Critical patent/CN113813599B/en
Publication of CN113813599A publication Critical patent/CN113813599A/en
Application granted granted Critical
Publication of CN113813599B publication Critical patent/CN113813599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a virtual character control method and device, a storage medium and electronic equipment. Wherein the method comprises the following steps: displaying a virtual game scene where a target virtual character is located in a game picture of a game, and displaying a target operation list in the game picture in response to a first operation performed by a direction control object, wherein the operation included in the target operation list is an operation controlled by a target control key of the target virtual character, the direction control object is used for controlling movement of the target virtual character, the direction control object is set to allow the control target virtual character to perform a target operation selected in the target operation list in response to a second operation performed on the target operation list, and the target virtual character is automatically controlled to perform the target operation when an execution condition of the target operation is satisfied in the process of controlling movement of the target virtual character through the direction control object. The invention solves the technical problem of complex control operation mode of the virtual roles in the related technology.

Description

Virtual character control method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for controlling a virtual character, a storage medium, and an electronic device.
Background
Along with the development of technology and the improvement of the performance of mobile equipment, the operation direction of a human-computer interface is necessarily developed to a more convenient and more efficient control mode, so that a user has a more pleasant human-computer interaction mode.
In the prior art, in a game application of a mobile terminal, when a player encounters a scene where interaction is required in a virtual game when operating a directional control object (e.g., a joystick) with a left hand, the player needs to click an interaction button with the right hand to complete the interaction operation, which results in a greater right hand operation pressure.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a virtual character control method and device, a storage medium and electronic equipment, which are used for at least solving the technical problem of complex control operation modes of virtual characters in the related technology.
According to an aspect of the embodiment of the present invention, there is provided a method for controlling a virtual character, including: displaying a virtual game scene where a target virtual character is located in a game picture of a game; displaying a target operation list in the game screen in response to a first operation performed by a direction control object for controlling movement of the target virtual character, wherein the target operation list includes operations controlled by a target control key of the target virtual character; in response to a second operation performed on the target operation list, setting the direction control object to allow the control of the target virtual character to perform a target operation selected in the target operation list; and in the process of controlling the movement of the target virtual character through the direction control object, when the execution condition of the target operation is met, automatically controlling the target virtual character to execute the target operation.
According to another aspect of the embodiment of the present invention, there is also provided a control device for a virtual character, including: the first display module is used for displaying a virtual game scene where the target virtual character is in a game picture of a game; a second display module for displaying a target operation list in the game screen in response to a first operation performed by a direction control object for controlling movement of the target virtual character, wherein the target operation list includes operations controlled by a target control key of the target virtual character; a setting module, configured to set the direction control object to allow the control of the target virtual character to execute a target operation selected in the target operation list in response to a second operation performed on the target operation list; and the control module is used for automatically controlling the target virtual character to execute the target operation when the execution condition of the target operation is met in the process of controlling the target virtual character to move through the direction control object.
Optionally, the device is further configured to:
and displaying an operation identifier of the target operation on the direction control object in the condition that the direction control object is set to allow the target virtual character to be controlled to execute the target operation selected in the target operation list and the direction control object is a virtual rocker or a virtual direction key, wherein the operation identifier is used for indicating that the direction control object is set to allow the target virtual character to be controlled to execute the target operation.
Alternatively, the process may be carried out in a single-stage,
the setting module comprises: a first setting unit, configured to set the direction control object to allow the control of the target virtual character to perform a collection operation selected in the target operation list, where the collection operation is used to control the target virtual character to collect a target virtual resource;
the control module comprises: and the first control unit is used for automatically controlling the target virtual character to acquire the target virtual resource when the distance between the target virtual resource and the target virtual character is smaller than or equal to a first preset distance in the process of controlling the target virtual character to move through the direction control object.
Alternatively, the process may be carried out in a single-stage,
the setting module comprises: a second setting unit, configured to set the direction control object to allow the target virtual character to be controlled to execute a chat operation selected in the target operation list, where the chat operation is used to control the target virtual character to initiate a conversation;
the control module comprises: and the second control unit is used for automatically controlling the target virtual character to initiate a conversation to the first virtual character when the distance between the target virtual character and the first virtual character allowing the conversation is smaller than or equal to a second preset distance in the process of controlling the target virtual character to move through the direction control object.
Alternatively, the process may be carried out in a single-stage,
the setting module comprises: the third setting unit is used for setting the direction control object to allow the target virtual character to be controlled to execute the interaction operation selected in the target operation list, wherein the interaction operation is used for controlling the target virtual character to initiate interaction action;
the control module comprises: and the third control unit is used for automatically controlling the target virtual character to initiate the interaction action to the second virtual character when the distance between the target virtual character and the second virtual character allowing interaction is smaller than or equal to a third preset distance in the process of controlling the target virtual character to move through the direction control object.
Alternatively, the process may be carried out in a single-stage,
the setting module comprises: a fourth setting unit, configured to set the direction control object to allow the target virtual character to be controlled to execute the attack operation selected in the target operation list, where the attack operation is used to control the target virtual character to initiate a target attack operation;
the control module comprises: a fourth control unit configured to automatically control, in a process of controlling movement of the target virtual character by the direction control object, the target virtual character to initiate the target attack operation to a third virtual character allowed to be attacked when a distance between the target virtual character and the third virtual character is less than or equal to a fourth preset distance; or when the distance between the target virtual character and the target virtual object allowed to be attacked is smaller than or equal to a fifth preset distance, automatically controlling the target virtual character to initiate the target attack operation to the target virtual object.
Optionally, the fourth control unit is configured to automatically control the target virtual role to initiate the target attack operation to the third virtual role by:
When the target virtual character currently holds a first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the third virtual character by using the first virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the third virtual character by using a preset second virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to initiate preset attack operation to the third virtual character.
Optionally, the fourth control unit is configured to automatically control the target virtual character to initiate the target attack operation to the target virtual object by:
when the target virtual character currently holds a first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the target virtual object by using the first virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the target virtual object by using a preset second virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, the target virtual character is automatically controlled to initiate preset attack operation to the target virtual object.
Optionally, the apparatus is configured to display a target operation list in the game screen in response to a first operation performed on the directional control object by:
displaying the target operation list in the game screen when the direction control object is a virtual rocker, or an entity rocker, or a virtual direction key or an entity direction key and the first operation is a long-press operation performed on the direction control object; or alternatively, the process may be performed,
displaying the target operation list in the game screen when the direction control object is a virtual rocker, or an entity rocker, or a virtual direction key or an entity direction key and the first operation is a click operation performed on the direction control object;
and displaying the target operation list in the game screen when the direction control object is a virtual rocker, the first operation is a drag operation executed on the virtual rocker, and the distance of the virtual rocker dragged is smaller than or equal to a first threshold value.
Optionally, the device is further configured to:
and after the direction control object is set to allow the control of the target virtual character to execute the target operation selected in the target operation list, when the direction control object is a virtual rocker, responding to a third operation executed on the virtual rocker, and controlling the target virtual character to move, wherein the third operation is a dragging operation executed on the virtual rocker, and the dragging distance of the virtual rocker is larger than the first threshold.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the control method of the virtual character described above when running.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device including a memory in which a computer program is stored, and a processor configured to execute the control method of the virtual character described above by the computer program.
In the embodiment of the invention, a virtual game scene where a target virtual character is located is displayed in a game picture of a game, a target operation list is displayed in the game picture in response to a first operation executed by a target control object, wherein the operation included in the target operation list is an operation controlled by a target control key of the target virtual character, the target control object is used for controlling the movement of the target virtual character, the target control object is set to allow the control target virtual character to execute the target operation selected in the target operation list in response to a second operation executed by the target operation list, and in the process of controlling the movement of the target virtual character through the target control object, when the execution condition of the target operation is met, the mode of automatically controlling the target virtual character to execute the target operation is achieved by setting the target operation in the direction control object for controlling the movement of the target virtual character, the purpose of automatically executing the set target operation is achieved while the movement of the target virtual character is controlled, thereby realizing the control operation mode of simplifying the virtual character, optimizing the technical effect of the operation flow of users, and further solving the technical problem of the control operation mode of the virtual character in related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
fig. 1 is a schematic view of an application environment of an alternative virtual character control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative virtual character control method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative virtual character control method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of yet another alternative virtual character control method in accordance with an embodiment of the invention;
FIG. 5 is a schematic diagram of yet another alternative virtual character control method in accordance with an embodiment of the invention;
FIG. 6 is a schematic diagram of yet another alternative virtual character control method in accordance with an embodiment of the invention;
fig. 7 is a schematic diagram of a control method of a virtual character according to still another alternative embodiment of the present invention;
FIG. 8 is a schematic diagram of yet another alternative virtual character control method in accordance with an embodiment of the invention;
fig. 9 is a schematic diagram of a control method of a further alternative virtual character according to an embodiment of the present invention;
Fig. 10 is a schematic diagram of a control method of a further alternative virtual character according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of yet another alternative virtual character control method in accordance with an embodiment of the invention;
FIG. 12 is a schematic diagram of yet another alternative virtual character control method in accordance with an embodiment of the invention;
fig. 13 is a schematic view of a control method of a further alternative virtual character according to an embodiment of the present invention;
fig. 14 is a schematic structural view of an alternative virtual character control apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural view of an alternative electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in describing embodiments of the present application are applicable to the following explanation:
the invention is illustrated below with reference to examples:
according to an aspect of the embodiment of the present invention, there is provided a control method of a virtual character, and optionally, in this embodiment, the control method of a virtual character described above may be applied to a hardware environment composed of a server 101 and a terminal device 103 as shown in fig. 1. As shown in fig. 1, a server 101 is connected to a terminal 103 through a network, and may be used to provide services to a terminal device or an application installed on the terminal device, which may be a video application, an instant messaging application, a browser application, an educational application, a game application, or the like. The database 105 may be provided on or separate from the server for providing data storage services for the server 101, such as a game data storage server, which may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: local area networks, metropolitan area networks, and wide area networks, the wireless network comprising: bluetooth, WIFI and other wireless communication networks, the terminal device 103 may be a terminal configured with an application program, and may include, but is not limited to, at least one of the following: the mobile phone (such as an Android mobile phone, an iOS mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, an MID (Mobile Internet Devices, mobile internet device), a PAD, a desktop computer, a smart television, etc., where the server may be a single server, a server cluster formed by a plurality of servers, or a cloud server, and the application program 107 using the virtual character control method is displayed through the terminal device 103.
As shown in fig. 1, the above-mentioned virtual character control method may be implemented in the terminal device 103 by the following steps:
s1, displaying a virtual game scene where a target virtual character is located in a game picture of a game on a terminal device 103;
s2, in response to a first operation performed on a direction control object, which is used for controlling movement of a target virtual character, a target operation list is displayed in a game screen, wherein the operation included in the target operation list is an operation controlled by a target control key of the target virtual character;
s3, setting a direction control object to allow a control target virtual character to execute a target operation selected in the target operation list in response to a second operation executed on the target operation list on the terminal device 103;
s4, in the process of controlling the movement of the target virtual character through the direction control object on the terminal equipment 103, when the execution condition of the target operation is met, the target virtual character is automatically controlled to execute the target operation.
Alternatively, in the present embodiment, the above-described control method of the virtual character may also be implemented by a server, for example, in the server 101 shown in fig. 1; or by both the user terminal and the server.
The above is merely an example, and the present embodiment is not particularly limited.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for controlling the virtual character includes:
s202, displaying a virtual game scene where a target virtual character is located in a game picture of a game;
s204, in response to a first operation executed by a direction control object, displaying a target operation list in a game screen, wherein the operation included in the target operation list is an operation controlled by a target control key of a target virtual character, and the direction control object is used for controlling the movement of the target virtual character;
s206, in response to the second operation performed on the target operation list, setting the direction control object to allow the control target virtual character to perform the target operation selected in the target operation list;
s208, in the process of controlling the movement of the target virtual character by the direction control object, when the execution condition of the target operation is satisfied, the target virtual character is automatically controlled to execute the target operation.
Optionally, in this embodiment, the application scenario of the control method of the virtual character may include, but is not limited to, game applications in a plurality of application scenarios including medical, financial, credit, banking, government, energy, education, security, building, game, traffic, internet of things, industry, and the like. .
Alternatively, in the present embodiment, the above-mentioned target game application includes, but is not limited to, one or more types of combined game applications such as a MOBA game application, a shooting application, etc., wherein a MOBA (english full name: multiplayer Online Battle Arena, abbreviation: MOBA, chinese translation: multiplayer online tactical competition game), also referred to as an Action Real-Time Strategy (abbreviation: action RTS, ARTS) Action instant strategic game, may be executed on a terminal device (e.g., a mobile phone terminal, a PC side).
Alternatively, in this embodiment, the first operation and the second operation may include, but are not limited to, a touch interaction operation, for example, pressing, clicking, double clicking, etc., where pressing is exemplified, and may include, but are not limited to, pressing a corresponding interaction button, and not releasing the interaction button, so as to implement the first operation and the second operation.
Alternatively, in this embodiment, the target virtual character may include, but is not limited to, a virtual character generated in a target game application, and in particular, may include, but is not limited to, a virtual character controlled by an account number that logs into the target game application to participate in a game.
Alternatively, in the present embodiment, the above-described virtual game scene may include, but is not limited to, a MOBA game scene, a shooting game scene, and the like.
Taking a shooting game scenario as an example, all games using a heat weapon to conduct a remote attack may include, but are not limited to, a first person shooting game, a third person shooting game, and the like.
A First-person shooter Game (FPS) belongs to a branch of an Action Game (ACT), and as the name implies, the First-person visual angle shooter Game plays a shooter Game with a subjective visual angle of a player.
A Third person shooter-type game (TPS), which is also one type of shooter game, differs from the first person shooter-type game in that virtual control objects operated by the player are visible in the game display interface. The above-described games may include, but are not limited to, a first person shooter game, a third person shooter game, a shooter game capable of switching between a first person and a third person, etc., wherein fig. 3 is a schematic diagram of another virtual character control method according to an embodiment of the present invention, and a game display interface may be divided into a first person display interface 301 and a third person display interface 303, and a display interface including, but not limited to, switching between the first person and the third person using a viewing angle switching key, as shown in fig. 3.
Alternatively, in this embodiment, the target operation list may include, but is not limited to, operations that are allowed to be controlled by a target control key of the target virtual character, for example, operations that need to be controlled by the target control key, such as shooting, capturing, expressing, and talking.
Optionally, in this embodiment, the direction control object may include, but is not limited to, a Virtual rocker, or a physical rocker, or a Virtual direction key, or a physical direction key, and may also include, but is not limited to, a direction control object in a Virtual Reality (VR) game application, an augmented Reality (Augmented Reality, AR) game application, a Mixed Reality (MR) game application, and the direction control object controls the movement of the target Virtual character by responding to pressing, dragging, shaking, and the like.
Alternatively, in this embodiment, the setting the direction control object to allow the control target avatar to perform the selected target operation in the target operation list may include, but is not limited to, setting the direction control object to be bound to the selected target operation.
For example, fig. 4 is a schematic diagram of a control method of a virtual character according to still another embodiment of the present invention, and as shown in fig. 4, a target operation list 404 is displayed in a game screen in response to a first operation performed on a direction control object 402;
FIG. 5 is a schematic diagram of a method of controlling a virtual character according to an embodiment of the present invention, as shown in FIG. 5, in response to a second operation performed on a target operation list 502, setting a directional control object 504 to allow the control target virtual character to perform a target operation 506 selected in the target operation list;
fig. 6 is a schematic diagram of a control method of a virtual character according to still another embodiment of the present invention, as shown in fig. 6, automatically controlling a target virtual character to perform a target operation (initiate a dialogue) when an execution condition of the target operation is satisfied (other virtual characters are detected) in controlling the target virtual character to move (move to the left) by a direction control object.
In the embodiment, the walking rocker and the interaction behavior are combined, so that the interaction behavior can be completed when the rocker is operated to walk, the right hand is not required to operate, and the right hand operation pressure is reduced. The operation is quick and convenient, and the user experience is better.
Alternatively, in this embodiment, the control of the virtual character may include, but is not limited to, the following steps:
s1, detecting and judging different operations and finger movement displacement executed on a rocker (corresponding to the direction control object);
s2, executing different actions (corresponding to the display target operation list) according to different operations;
S3, when the long press has no displacement change or the displacement does not exceed the required value, executing the fusion operation of the rocker and the interaction behavior (corresponding to the selected target operation);
s4, according to the fused interaction behavior, when the rocker is operated, related operation is automatically executed.
After the processor collects the event data, the gesture execution can be judged as a long click or a sliding. And the control unit executes corresponding operation after receiving the processing result of the processor. For example, fig. 7 is a schematic diagram of a control method of a virtual character according to an embodiment of the present invention, as shown in fig. 7, specifically may include, but is not limited to, the following steps:
s702, starting;
s704, long-pressing the rocker;
s706, judging whether the displacement change of the finger exceeds 8mm or not;
s708, executing a rocker moving logic and executing step S722 when the judgment result of the S706 is yes;
s710, if the judgment result of S706 is negative, opening a fusible interaction behavior list;
s712, judging whether a proper interaction behavior is selected;
s714, if the judgment result of S712 is yes, the rocker fusion interaction behavior is completed;
s716, meeting the interactable;
s718, walking to the nearby area and automatically generating interaction behavior, and executing step S722;
S720, if the judgment result of S712 is NO, displaying an empty state, and executing step S722;
s722, end.
The above is merely an example, and the present embodiment is not limited in any way.
According to the method, a virtual game scene where a target virtual character is located is displayed in a game picture of a game, a target operation list is displayed in the game picture in response to a first operation executed by a target control object, wherein the operation included in the target operation list is an operation controlled by a target control key of the target virtual character, the target control object is used for controlling movement of the target virtual character, the target control object is set to allow the target virtual character to execute the target operation selected in the target operation list in response to a second operation executed by the target operation list, in the process of controlling movement of the target virtual character through the target control object, when the execution condition of the target operation is met, the target virtual character is automatically controlled to execute the target operation, and the purpose of automatically executing the set target operation while controlling movement of the target virtual character is achieved, so that the virtual character control operation mode is simplified, the technical effect of optimizing the operation flow of a user is achieved, and the technical problem of the control operation mode of the virtual character in the related technology is solved.
As an alternative, the method further comprises:
in the case where the direction control object is set to allow the control target virtual character to perform the target operation selected in the target operation list and the direction control object is a virtual rocker or a virtual direction key, an operation identification of the target operation is displayed on the direction control object, wherein the operation identification is used to indicate that the direction control object is set to allow the control target virtual character to perform the target operation.
Optionally, in this embodiment, the operation identifier may include, but is not limited to, a collection operation identifier, a chat operation identifier, an attack operation identifier, an interaction operation identifier, and the like.
For example, fig. 8 is a schematic diagram of a control method of a virtual character according to an embodiment of the present invention, and as shown in fig. 8, a target operation list is displayed in a virtual game screen, including a identifier 802 for indicating a collection operation identifier, a identifier 804 for indicating a chat operation identifier, a identifier 806 for indicating an interaction operation identifier, and a identifier 808 for indicating an attack operation identifier, and after the identifier 804 is selected, an operation identifier 810 for displaying a target operation on a direction control object may be included, but is not limited to.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative to this, it is also possible,
setting the direction control object to allow execution of a selected target operation in the target operation list includes: setting a direction control object to allow a control target virtual character to execute a collection operation selected in a target operation list, wherein the collection operation is used for controlling the target virtual character to collect target virtual resources;
in the process of controlling the movement of the target virtual character through the direction control object, when the execution condition of the target operation is satisfied, automatically controlling the target virtual character to execute the target operation, comprising: and in the process of controlling the movement of the target virtual character through the direction control object, when the distance between the target virtual resource and the target virtual character is smaller than or equal to a first preset distance, automatically controlling the target virtual character to acquire the target virtual resource.
Alternatively, in the present embodiment, the above-described collection operation is used to collect target virtual resources that are allowed to be collected in the target game application, and the above-described target virtual resources may include, but are not limited to, virtual gold coins, virtual weapons, virtual medicines, virtual vehicles, and the like.
Alternatively, in this embodiment, the first preset distance may be configured according to the attribute of the target virtual resource or the target virtual character, for example, the virtual energy may be configured as a longer distance, the virtual prop may be configured as a shorter distance, and so on.
For example, fig. 9 is a schematic diagram of a control method of a virtual character according to still another embodiment of the present invention, as shown in fig. 9, a target operation list is displayed in a virtual game screen, an identifier 902 is selected from the target operation list through a second operation, and the acquisition operation may include, but is not limited to, an operation identifier 904 displayed in a direction control object to indicate that the direction control object is set to allow the control target virtual character to perform the acquisition operation selected in the target operation list, and in a case that a distance a between the target virtual resource and the target virtual character is less than or equal to a first preset distance, the target virtual character is automatically controlled to acquire the target virtual resource, and the target virtual resource is automatically configured to the target virtual character.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative to this, it is also possible,
setting the direction control object to allow the control target virtual character to execute the selected target operation in the target operation list, including: setting a direction control object to allow a control target virtual character to execute a chat operation selected in a target operation list, wherein the chat operation is used for controlling the target virtual character to initiate a conversation;
In the process of controlling the movement of the target virtual character through the direction control object, when the execution condition of the target operation is satisfied, automatically controlling the target virtual character to execute the target operation, comprising: and in the process of controlling the movement of the target virtual character through the direction control object, when the distance between the target virtual character and the first virtual character allowing the conversation is smaller than or equal to a second preset distance, automatically controlling the target virtual character to initiate the conversation to the first virtual character.
Optionally, in this embodiment, the chat operation is used to perform a dialogue with the first virtual character that allows a dialogue in the target game application, and the manner of initiating the dialogue may include, but is not limited to, displaying a dialogue panel, playing voice dialogue information, and so on.
Alternatively, in this embodiment, the second preset distance may be configured according to the attribute of the first virtual character or the target virtual character, for example, the first virtual character may be configured as a longer distance for the player, the first virtual character may be configured as a shorter distance for the system character, and so on.
For example, fig. 10 is a schematic diagram of a control method of a virtual character according to an embodiment of the present invention, as shown in fig. 10, a target operation list is displayed in a virtual game screen, an identifier 1002 is selected from the target operation list through a second operation, the above chat operation may include, but is not limited to, an operation identifier 1004 displayed in a direction control object to indicate that the direction control object is set to allow the control target virtual character to perform the chat operation selected in the target operation list, and in a case where a distance B between the above-mentioned first virtual character and the target virtual character is less than or equal to a second preset distance, the target virtual character is automatically controlled to initiate a session to the first virtual character, and a dialog box is displayed in the virtual game screen.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative to this, it is also possible,
setting the direction control object to allow the control target virtual character to execute the selected target operation in the target operation list, including: setting a direction control object to allow a control target virtual character to execute the selected interactive operation in a target operation list, wherein the interactive operation is used for controlling the target virtual character to initiate an interactive action;
in the process of controlling the movement of the target virtual character through the direction control object, when the execution condition of the target operation is satisfied, automatically controlling the target virtual character to execute the target operation, comprising: and in the process of controlling the movement of the target virtual character through the direction control object, when the distance between the target virtual character and the second virtual character allowing interaction is smaller than or equal to a third preset distance, automatically controlling the target virtual character to initiate interaction action to the second virtual character.
Optionally, in this embodiment, the interactive operation is used to interact with a second virtual character in the target game application that allows the interactive action to be performed, and the manner of initiating the interactive operation may include, but is not limited to, displaying the interactive action, playing an interactive animation (e.g., expression), and so on.
Alternatively, in this embodiment, the third preset distance may be configured according to the attribute of the second virtual character or the target virtual character, for example, the second virtual character may be configured as a longer distance for the player, the second virtual character may be configured as a shorter distance for the system character, and so on.
For example, fig. 11 is a schematic diagram of a control method of a virtual character according to an embodiment of the present invention, as shown in fig. 11, a target operation list is displayed in a virtual game screen, an identifier 1102 is selected from the target operation list through a second operation, the interactive operation may include, but is not limited to, an operation identifier 1104 displayed in a direction control object to indicate that the direction control object is set to allow the control target virtual character to perform the interactive operation selected in the target operation list, and in a case that a distance C between the second virtual character and the target virtual character is less than or equal to a third preset distance, the control target virtual character automatically initiates an interactive action to the second virtual character, and an interactive animation is played in the virtual game screen.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative to this, it is also possible,
Setting the direction control object to allow the control target virtual character to execute the selected target operation in the target operation list, including: setting a direction control object to allow a control target virtual character to execute attack operation selected in a target operation list, wherein the attack operation is used for controlling the target virtual character to initiate target attack operation;
in the process of controlling the movement of the target virtual character through the direction control object, when the execution condition of the target operation is satisfied, automatically controlling the target virtual character to execute the target operation, comprising: in the process of controlling the movement of the target virtual character through the direction control object, when the distance between the target virtual character and the third virtual character allowed to be attacked is smaller than or equal to a fourth preset distance, automatically controlling the target virtual character to initiate target attack operation to the third virtual character; or when the distance between the target virtual character and the target virtual object allowed to be attacked is smaller than or equal to a fifth preset distance, automatically controlling the target virtual character to initiate target attack operation to the target virtual object.
Optionally, in this embodiment, the foregoing attack operation is used to attack the third virtual character or the target virtual object in the target game application, where the foregoing attack operation may include, but is not limited to, attack using a held virtual prop or virtual skill, and may also include, but is not limited to, attack by switching the virtual prop or virtual skill according to the type of the third virtual character or the target virtual object.
Optionally, in this embodiment, the fourth preset distance and the fifth preset distance may be configured according to the attribute of the third virtual character or the target virtual object or the target virtual character, for example, the third virtual character may be configured as a longer distance for the player, the second virtual character may be configured as a shorter distance for the system character, the target virtual object may be configured as a longer distance when being larger, and the target virtual object may be configured as a shorter distance when being smaller.
For example, fig. 12 is a schematic diagram of a control method of a virtual character according to an embodiment of the present invention, as shown in fig. 12, a target operation list is displayed in a virtual game screen, an identifier 1202 is selected from the target operation list through a second operation, the attack operation may include, but is not limited to, an operation identifier 1204 displayed in a direction control object to indicate that the direction control object is set to allow the control target virtual character to perform the attack operation selected in the target operation list, a distance D between the third virtual character and the target virtual character is less than or equal to a fourth preset distance, or a distance between the target virtual character and a target virtual object allowed to be attacked is less than or equal to a fifth preset distance, and in the case that the target virtual character initiates a target attack action to the third virtual character or the target virtual object, the attack animation is played in the virtual game screen.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, the automatically controlling the target virtual character to initiate the target attack operation to the third virtual character includes:
when the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to initiate attack operation to the third virtual character by using the first virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to initiate attack operation to the third virtual character by using a preset second virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, the target virtual character is automatically controlled to initiate preset attack operation to the third virtual character.
Optionally, in this embodiment, when the target virtual character currently holds the first virtual attack prop, the automatically controlling the target virtual character to use the first virtual attack prop to launch the attack operation to the third virtual character may include, but is not limited to, directly and automatically launching the attack operation to the third virtual character by using the first virtual attack prop currently held by the target virtual character; when the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to use the preset second virtual attack prop to launch the attack operation to the third virtual character may include, but is not limited to, switching the currently held first virtual attack prop to the second virtual attack prop by the target virtual character, and then automatically launching the attack operation to the third virtual character; the automatically controlling the target virtual character to initiate the preset attack operation to the third virtual character when the target virtual character currently holds the first virtual attack prop may include, but is not limited to, executing a preset attack operation, such as a near combat attack operation, when the target virtual character currently holds the first virtual attack prop.
As an alternative, the target virtual character is automatically controlled to initiate a target attack operation to the target virtual object:
when the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to initiate attack operation to the target virtual object by using the first virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to initiate attack operation to the target virtual object by using a preset second virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, the target virtual character is automatically controlled to initiate preset attack operation to the target virtual object.
Optionally, in this embodiment, when the target virtual character currently holds the first virtual attack prop, the automatically controlling the target virtual character to use the first virtual attack prop to launch the attack operation on the target virtual prop may include, but is not limited to, directly and automatically launching the attack operation on the target virtual prop by using the first virtual attack prop currently held by the target virtual character; when the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to use a preset second virtual attack prop to launch an attack operation to the target virtual prop may include, but is not limited to, switching the currently held first virtual attack prop to the second virtual attack prop by the target virtual character, and then automatically launching the attack operation to the target virtual prop; the automatically controlling the target virtual character to launch the preset attack operation to the target virtual character when the target virtual character currently holds the first virtual attack prop may include, but is not limited to, executing the preset attack operation, such as the near combat attack operation, when the target virtual character currently holds the first virtual attack prop.
As an alternative, displaying a target operation list in a game screen in response to a first operation performed on a direction control object, includes:
displaying a target operation list in a game screen when the direction control object is a virtual rocker, or an entity rocker, or a virtual direction key or an entity direction key and the first operation is a long-press operation executed on the direction control object; or alternatively, the process may be performed,
displaying a target operation list in a game screen when the direction control object is a virtual rocker, or an entity rocker, or a virtual direction key or an entity direction key and the first operation is a clicking operation performed on the direction control object;
when the direction control object is a virtual joystick, the first operation is a drag operation performed on the virtual joystick, and the distance by which the virtual joystick is dragged is less than or equal to a first threshold value, a target operation list is displayed in the game screen.
Alternatively, in this embodiment, when the first operation is a long press operation, a target operation list may be displayed, and when the first operation is a single press operation, the target operation list may be displayed, where the difference between the single press and the long press is the duration in which the operation is performed on the direction control object. The operation time of the click operation is shorter than that of the long press operation.
Alternatively, in the present embodiment, the above-described drag operation may include, but is not limited to, moving the direction control object after holding the direction control object. The first threshold may include, but is not limited to, sensitivity of a drag, controlling movement of the target avatar when the drag exceeds a distance of the first threshold, and displaying the target operation list when the drag is less than or equal to the distance of the first threshold.
As an alternative, after setting the directional control object to allow the control target virtual character to perform the target operation selected in the target operation list, the method further includes:
and when the direction control object is a virtual rocker, controlling the target virtual character to move in response to a third operation executed on the virtual rocker, wherein the third operation is a dragging operation executed on the virtual rocker, and the distance by which the virtual rocker is dragged is larger than a first threshold.
Alternatively, in this embodiment, the third operation is an operation in which the drag distance is greater than the first threshold, and the target virtual character may be controlled to move by the virtual rocker.
For example, fig. 13 is a schematic diagram of a control method of a virtual character according to still another embodiment of the present invention, in which a target operation list is displayed in a virtual game screen and a chat operation is selected, and then, in response to a third operation performed on a virtual rocker, the target virtual character is controlled to move, and when the target virtual character moves to a first preset distance from a first virtual character, a dialog box between the target virtual character and the first virtual character is displayed in the virtual game screen.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
According to another aspect of the embodiment of the present invention, there is also provided a virtual character control apparatus for implementing the virtual character control method. As shown in fig. 14, the apparatus includes:
a first display module 1402, configured to display a virtual game scene where a target virtual character is located in a game screen of a game;
a second display module 1404 for displaying a target operation list in the game screen in response to a first operation performed by a direction control object for controlling movement of the target virtual character, wherein the target operation list includes operations controlled by a target control key of the target virtual character;
A setting module 1406 for setting the direction control object to allow the control of the target virtual character to execute the target operation selected in the target operation list in response to the second operation performed on the target operation list;
a control module 1408 for automatically controlling the target virtual character to execute the target operation when the execution condition of the target operation is satisfied in the process of controlling the movement of the target virtual character through the direction control object.
As an alternative, the device is further configured to:
and displaying an operation identifier of the target operation on the direction control object in the condition that the direction control object is set to allow the target virtual character to be controlled to execute the target operation selected in the target operation list and the direction control object is a virtual rocker or a virtual direction key, wherein the operation identifier is used for indicating that the direction control object is set to allow the target virtual character to be controlled to execute the target operation.
As an alternative to this, it is also possible,
the setting module 1406 includes: a first setting unit, configured to set the direction control object to allow the control of the target virtual character to perform a collection operation selected in the target operation list, where the collection operation is used to control the target virtual character to collect a target virtual resource;
The control module 1408 includes: and the first control unit is used for automatically controlling the target virtual character to acquire the target virtual resource when the distance between the target virtual resource and the target virtual character is smaller than or equal to a first preset distance in the process of controlling the target virtual character to move through the direction control object.
As an alternative to this, it is also possible,
the setting module 1406 includes: a second setting unit, configured to set the direction control object to allow the target virtual character to be controlled to execute a chat operation selected in the target operation list, where the chat operation is used to control the target virtual character to initiate a conversation;
the control module 1408 includes: and the second control unit is used for automatically controlling the target virtual character to initiate a conversation to the first virtual character when the distance between the target virtual character and the first virtual character allowing the conversation is smaller than or equal to a second preset distance in the process of controlling the target virtual character to move through the direction control object.
As an alternative to this, it is also possible,
the setting module 1406 includes: the third setting unit is used for setting the direction control object to allow the target virtual character to be controlled to execute the interaction operation selected in the target operation list, wherein the interaction operation is used for controlling the target virtual character to initiate interaction action;
The control module 1408 includes: and the third control unit is used for automatically controlling the target virtual character to initiate the interaction action to the second virtual character when the distance between the target virtual character and the second virtual character allowing interaction is smaller than or equal to a third preset distance in the process of controlling the target virtual character to move through the direction control object.
As an alternative to this, it is also possible,
the setting module 1406 includes: a fourth setting unit, configured to set the direction control object to allow the target virtual character to be controlled to execute the attack operation selected in the target operation list, where the attack operation is used to control the target virtual character to initiate a target attack operation;
the control module 1408 includes: a fourth control unit configured to automatically control, in a process of controlling movement of the target virtual character by the direction control object, the target virtual character to initiate the target attack operation to a third virtual character allowed to be attacked when a distance between the target virtual character and the third virtual character is less than or equal to a fourth preset distance; or when the distance between the target virtual character and the target virtual object allowed to be attacked is smaller than or equal to a fifth preset distance, automatically controlling the target virtual character to initiate the target attack operation to the target virtual object.
As an alternative, the fourth control unit is configured to automatically control the target virtual character to initiate the target attack operation to the third virtual character by:
when the target virtual character currently holds a first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the third virtual character by using the first virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the third virtual character by using a preset second virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to initiate preset attack operation to the third virtual character.
As an alternative, the fourth control unit is configured to automatically control the target virtual character to initiate the target attack operation to the target virtual object by:
when the target virtual character currently holds a first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the target virtual object by using the first virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the target virtual object by using a preset second virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, the target virtual character is automatically controlled to initiate preset attack operation to the target virtual object.
As an alternative, the apparatus is configured to display a target operation list in the game screen in response to a first operation performed on the direction control object by:
displaying the target operation list in the game screen when the direction control object is a virtual rocker, or an entity rocker, or a virtual direction key or an entity direction key and the first operation is a long-press operation performed on the direction control object; or alternatively, the process may be performed,
displaying the target operation list in the game screen when the direction control object is a virtual rocker, or an entity rocker, or a virtual direction key or an entity direction key and the first operation is a click operation performed on the direction control object;
And displaying the target operation list in the game screen when the direction control object is a virtual rocker, the first operation is a drag operation executed on the virtual rocker, and the distance of the virtual rocker dragged is smaller than or equal to a first threshold value.
As an alternative, the device is further configured to:
and after the direction control object is set to allow the control of the target virtual character to execute the target operation selected in the target operation list, when the direction control object is a virtual rocker, responding to a third operation executed on the virtual rocker, and controlling the target virtual character to move, wherein the third operation is a dragging operation executed on the virtual rocker, and the dragging distance of the virtual rocker is larger than the first threshold.
According to still another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the control method of the virtual character described above, which may be a terminal device or a server as shown in fig. 1. The present embodiment is described taking the electronic device as a terminal device as an example. As shown in fig. 15, the electronic device comprises a memory 1502 and a processor 1504, the memory 1502 having stored therein a computer program, the processor 1504 being arranged to perform the steps of any of the method embodiments described above by means of the computer program.
Alternatively, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of the computer network.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, displaying a virtual game scene where a target virtual character is located in a game picture of a game;
s2, in response to a first operation executed by a direction control object, displaying a target operation list in a game picture, wherein the operation included in the target operation list is an operation controlled by a target control key of a target virtual character, and the direction control object is used for controlling the movement of the target virtual character;
s3, responding to a second operation executed on the target operation list, setting a direction control object to allow a control target virtual character to execute a target operation selected in the target operation list;
and S4, when the execution condition of the target operation is met in the process of controlling the movement of the target virtual character through the direction control object, automatically controlling the target virtual character to execute the target operation.
Alternatively, as will be appreciated by those skilled in the art, the structure shown in fig. 15 is merely illustrative, and the electronic device may be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palmtop computer, a mobile internet device (Mobile Internet Devices, MID), a PAD, etc. Fig. 15 is not limited to the structure of the electronic device and the electronic apparatus described above. For example, the electronics can also include more or fewer components (e.g., network interfaces, etc.) than shown in fig. 15, or have a different configuration than shown in fig. 15.
The memory 1502 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for controlling a virtual character in the embodiment of the present invention, and the processor 1504 executes the software programs and modules stored in the memory 1502 to perform various functional applications and data processing, that is, implement the method for controlling a virtual character. The memory 1502 may include high-speed random access memory, but may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1502 may further include memory located remotely from the processor 1504, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1502 may be used to store information such as a target virtual character and a target operation list, but is not limited to. As an example, as shown in fig. 15, the memory 1502 may include, but is not limited to, a first display module 1402, a second display module 1404, a setting module 1406, and a control module 1408 in a control device including the virtual character. In addition, other module units in the control device of the virtual character may be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmission device 1506 is configured to receive or transmit data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1506 includes a network adapter (Network Interface Controller, NIC) that may be connected to other network devices and routers via a network cable to communicate with the internet or a local area network. In one example, the transmission device 1506 is a Radio Frequency (RF) module that is configured to communicate wirelessly with the internet.
In addition, the electronic device further includes: a display 1508 for displaying the game screen; and a connection bus 1510 for connecting the respective module parts in the above-described electronic device.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes through a network communication. Among them, the nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, etc., may become a node in the blockchain system by joining the Peer-To-Peer network.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of the electronic device, which executes the computer instructions, causing the electronic device to perform the methods provided in the various alternative implementations of the control aspects of the virtual character described above. Wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a virtual game scene where a target virtual character is located in a game picture of a game;
s2, in response to a first operation executed by a direction control object, displaying a target operation list in a game picture, wherein the operation included in the target operation list is an operation controlled by a target control key of a target virtual character, and the direction control object is used for controlling the movement of the target virtual character;
S3, responding to a second operation executed on the target operation list, setting a direction control object to allow a control target virtual character to execute a target operation selected in the target operation list;
and S4, when the execution condition of the target operation is met in the process of controlling the movement of the target virtual character through the direction control object, automatically controlling the target virtual character to execute the target operation.
Alternatively, in this embodiment, it will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by a program for instructing a terminal device to execute the steps, where the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), magnetic or optical disk, and the like.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
The integrated units in the above embodiments may be stored in the above-described computer-readable storage medium if implemented in the form of software functional units and sold or used as separate products. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing one or more computer devices (which may be personal computers, servers or network devices, etc.) to perform all or part of the steps of the method described in the embodiments of the present invention.
In the foregoing embodiments of the present invention, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.

Claims (15)

1. A method for controlling a virtual character, applied to a target game application, comprising:
displaying a virtual game scene where a target virtual character is located in a game picture of a game;
displaying a target operation list in the game screen in response to a first operation performed by a direction control object for controlling movement of the target virtual character, wherein the target operation list includes operations controlled by a target control key of the target virtual character;
In response to a second operation performed on the target operation list, setting the direction control object to allow the control of the target virtual character to perform a target operation selected in the target operation list;
and in the process of controlling the movement of the target virtual character through the direction control object, when the distance between the target virtual resource and the target virtual character is smaller than a preset distance, automatically controlling the target virtual character to execute the target operation.
2. The method according to claim 1, wherein the method further comprises:
and displaying an operation identifier of the target operation on the direction control object in the condition that the direction control object is set to allow the target virtual character to be controlled to execute the target operation selected in the target operation list and the direction control object is a virtual rocker or a virtual direction key, wherein the operation identifier is used for indicating that the direction control object is set to allow the target virtual character to be controlled to execute the target operation.
3. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the setting the direction control object to allow execution of the selected target operation in the target operation list includes: setting the direction control object to allow the target virtual character to be controlled to execute the acquisition operation selected in the target operation list, wherein the acquisition operation is used for controlling the target virtual character to acquire target virtual resources;
Automatically controlling the target virtual character to execute the target operation when the execution condition of the target operation is satisfied in the process of controlling the movement of the target virtual character through the direction control object, comprising: and in the process of controlling the target virtual character to move through the direction control object, when the distance between the target virtual resource and the target virtual character is smaller than or equal to a first preset distance, automatically controlling the target virtual character to acquire the target virtual resource.
4. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the setting the direction control object to allow the control of the target virtual character to execute the target operation selected in the target operation list includes: setting the direction control object to allow the target virtual character to be controlled to execute the chat operation selected in the target operation list, wherein the chat operation is used for controlling the target virtual character to initiate a conversation;
automatically controlling the target virtual character to execute the target operation when the execution condition of the target operation is satisfied in the process of controlling the movement of the target virtual character through the direction control object, comprising: and in the process of controlling the movement of the target virtual character through the direction control object, when the distance between the target virtual character and the first virtual character allowing the conversation is smaller than or equal to a second preset distance, automatically controlling the target virtual character to initiate the conversation to the first virtual character.
5. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the setting the direction control object to allow the control of the target virtual character to execute the target operation selected in the target operation list includes: setting the direction control object to allow the target virtual character to be controlled to execute the interaction operation selected in the target operation list, wherein the interaction operation is used for controlling the target virtual character to initiate interaction action;
automatically controlling the target virtual character to execute the target operation when the execution condition of the target operation is satisfied in the process of controlling the movement of the target virtual character through the direction control object, comprising: and in the process of controlling the target virtual character to move through the direction control object, when the distance between the target virtual character and a second virtual character allowing interaction is smaller than or equal to a third preset distance, automatically controlling the target virtual character to initiate the interaction action to the second virtual character.
6. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the setting the direction control object to allow the control of the target virtual character to execute the target operation selected in the target operation list includes: setting the direction control object to allow the target virtual character to execute the attack operation selected in the target operation list, wherein the attack operation is used for controlling the target virtual character to initiate target attack operation;
Automatically controlling the target virtual character to execute the target operation when the execution condition of the target operation is satisfied in the process of controlling the movement of the target virtual character through the direction control object, comprising: in the process of controlling the target virtual character to move through the direction control object, when the distance between the target virtual character and a third virtual character allowed to be attacked is smaller than or equal to a fourth preset distance, automatically controlling the target virtual character to initiate the target attack operation to the third virtual character; or when the distance between the target virtual character and the target virtual object allowed to be attacked is smaller than or equal to a fifth preset distance, automatically controlling the target virtual character to initiate the target attack operation to the target virtual object.
7. The method of claim 6, wherein the automatically controlling the target avatar to initiate the target attack operation to the third avatar comprises:
when the target virtual character currently holds a first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the third virtual character by using the first virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the third virtual character by using a preset second virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to initiate preset attack operation to the third virtual character.
8. The method of claim 6, wherein the automatically controlling the target virtual character initiates the target attack operation on the target virtual object:
when the target virtual character currently holds a first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the target virtual object by using the first virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, automatically controlling the target virtual character to launch attack operation to the target virtual object by using a preset second virtual attack prop; or alternatively
When the target virtual character currently holds the first virtual attack prop, the target virtual character is automatically controlled to initiate preset attack operation to the target virtual object.
9. The method according to any one of claims 1 to 8, wherein the displaying a target operation list in the game screen in response to the first operation performed on the direction control object includes:
displaying the target operation list in the game screen when the direction control object is a virtual rocker, or an entity rocker, or a virtual direction key or an entity direction key and the first operation is a long-press operation performed on the direction control object; or alternatively, the process may be performed,
displaying the target operation list in the game screen when the direction control object is a virtual rocker, or an entity rocker, or a virtual direction key or an entity direction key and the first operation is a click operation performed on the direction control object;
and displaying the target operation list in the game screen when the direction control object is a virtual rocker, the first operation is a drag operation executed on the virtual rocker, and the distance of the virtual rocker dragged is smaller than or equal to a first threshold value.
10. The method of claim 9, wherein after the setting the direction control object to allow the control of the target avatar to perform the selected target operation in the list of target operations, the method further comprises:
And when the direction control object is a virtual rocker, controlling the target virtual character to move in response to a third operation executed on the virtual rocker, wherein the third operation is a dragging operation executed on the virtual rocker, and the distance of the virtual rocker to be dragged is larger than the first threshold.
11. A virtual character control apparatus for use in a target game application, comprising:
the first display module is used for displaying a virtual game scene where the target virtual character is in a game picture of a game;
a second display module for displaying a target operation list in the game screen in response to a first operation performed by a direction control object for controlling movement of the target virtual character, wherein the target operation list includes operations controlled by a target control key of the target virtual character;
a setting module, configured to set the direction control object to allow the control of the target virtual character to execute a target operation selected in the target operation list in response to a second operation performed on the target operation list;
And the control module is used for automatically controlling the target virtual character to execute the target operation when the distance between the target virtual resource and the target virtual character is smaller than a preset distance in the process of controlling the target virtual character to move through the direction control object.
12. The apparatus of claim 11, wherein the apparatus is further configured to:
and displaying an operation identifier of the target operation on the direction control object in the condition that the direction control object is set to allow the target virtual character to be controlled to execute the target operation selected in the target operation list and the direction control object is a virtual rocker or a virtual direction key, wherein the operation identifier is used for indicating that the direction control object is set to allow the target virtual character to be controlled to execute the target operation.
13. The apparatus of claim 11, wherein the device comprises a plurality of sensors,
the setting module comprises: a setting unit, configured to set the direction control object to allow the control of the target virtual character to perform a collection operation selected in the target operation list, where the collection operation is used to control the target virtual character to collect a target virtual resource;
The control module comprises: and the control unit is used for automatically controlling the target virtual character to acquire the target virtual resource when the distance between the target virtual resource and the target virtual character is smaller than or equal to a first preset distance in the process of controlling the target virtual character to move through the direction control object.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program is executable by a terminal device or a computer to perform the method of any one of claims 1 to 10.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of the claims 1 to 10 by means of the computer program.
CN202110997371.1A 2021-08-27 2021-08-27 Virtual character control method and device, storage medium and electronic equipment Active CN113813599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110997371.1A CN113813599B (en) 2021-08-27 2021-08-27 Virtual character control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110997371.1A CN113813599B (en) 2021-08-27 2021-08-27 Virtual character control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113813599A CN113813599A (en) 2021-12-21
CN113813599B true CN113813599B (en) 2023-07-14

Family

ID=78913724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110997371.1A Active CN113813599B (en) 2021-08-27 2021-08-27 Virtual character control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113813599B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117815661A (en) * 2022-09-27 2024-04-05 腾讯科技(深圳)有限公司 Batch execution method and device for target operation, storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509139A (en) * 2018-03-30 2018-09-07 腾讯科技(深圳)有限公司 Control method for movement, device, electronic device and the storage medium of virtual objects
WO2019201049A1 (en) * 2018-04-17 2019-10-24 腾讯科技(深圳)有限公司 Method for displaying object in virtual scene, device, and storage medium
CN110465088A (en) * 2019-08-07 2019-11-19 上海欧皇网络科技有限公司 A kind of control method and device of game role
WO2020042746A1 (en) * 2018-08-31 2020-03-05 腾讯科技(深圳)有限公司 Method and apparatus for picking up virtual object in virtual environment, terminal, and computer readable storage medium
CN111111165A (en) * 2019-12-05 2020-05-08 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108509139A (en) * 2018-03-30 2018-09-07 腾讯科技(深圳)有限公司 Control method for movement, device, electronic device and the storage medium of virtual objects
WO2019201049A1 (en) * 2018-04-17 2019-10-24 腾讯科技(深圳)有限公司 Method for displaying object in virtual scene, device, and storage medium
WO2020042746A1 (en) * 2018-08-31 2020-03-05 腾讯科技(深圳)有限公司 Method and apparatus for picking up virtual object in virtual environment, terminal, and computer readable storage medium
CN110465088A (en) * 2019-08-07 2019-11-19 上海欧皇网络科技有限公司 A kind of control method and device of game role
CN111111165A (en) * 2019-12-05 2020-05-08 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic device

Also Published As

Publication number Publication date
CN113813599A (en) 2021-12-21

Similar Documents

Publication Publication Date Title
CN106984043B (en) Data synchronization method and system for multiplayer battle game
JP5563709B2 (en) System and method for facilitating interaction with virtual space via a touch-sensitive surface
CN111298430A (en) Virtual item control method and device, storage medium and electronic device
CN112107861B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN108310768B (en) Virtual scene display method and device, storage medium and electronic device
CN110917621B (en) Position display method and device, storage medium and electronic device
WO2023134272A1 (en) Field-of-view picture display method and apparatus, and device
CN113350779A (en) Game virtual character action control method and device, storage medium and electronic equipment
JP2016047124A (en) Program, game system, control method, and recording medium
CN113813599B (en) Virtual character control method and device, storage medium and electronic equipment
KR20220044724A (en) How to control gameplay
CN114911558A (en) Cloud game starting method, device and system, computer equipment and storage medium
CN111228805A (en) Control method and device of virtual operation object, storage medium and electronic device
CN113244609A (en) Multi-picture display method and device, storage medium and electronic equipment
CN111111219A (en) Control method and device of virtual prop, storage medium and electronic device
CN113244615B (en) Chat panel display control method and device, storage medium and electronic equipment
CN113599821B (en) Method and device for displaying current blood volume of virtual character
CN113996052A (en) Virtual button adjusting method and device, storage medium and electronic equipment
CN116920374A (en) Virtual object display method and device, storage medium and electronic equipment
CN114225412A (en) Information processing method, information processing device, computer equipment and storage medium
CN113713384B (en) Virtual character control method and device, storage medium and electronic equipment
CN114011071A (en) Control method and device of virtual role, storage medium and electronic equipment
US10668384B2 (en) System using rule based techniques for handling gameplay restrictions
CN114210067B (en) Virtual prop control method and device, storage medium and electronic equipment
CN113813607B (en) Game view angle switching method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant