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

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

Info

Publication number
CN116764193A
CN116764193A CN202310883352.5A CN202310883352A CN116764193A CN 116764193 A CN116764193 A CN 116764193A CN 202310883352 A CN202310883352 A CN 202310883352A CN 116764193 A CN116764193 A CN 116764193A
Authority
CN
China
Prior art keywords
sliding
virtual character
target
player
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310883352.5A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202310883352.5A priority Critical patent/CN116764193A/en
Publication of CN116764193A publication Critical patent/CN116764193A/en
Pending legal-status Critical Current

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • 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/30Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by output arrangements for receiving control signals generated by the game device
    • A63F2300/308Details of the user interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a control method, a device, electronic equipment and a readable storage medium for virtual roles, wherein a graphical user interface is provided through terminal equipment; responding to a sight shift operation aiming at the terminal equipment, and aiming the sight at a target virtual character; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character. The virtual control can be used for realizing movement of the virtual character of the player and dragging of the target virtual character, so that the operation complexity can be reduced, the game playability and the interest can be enhanced, the experience of the player can be improved, the virtual controls with different functions can be integrated, and the screen information bearing pressure of the terminal equipment can be reduced.

Description

Virtual character control method, device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of game technologies, and in particular, to a method and apparatus for controlling a virtual character, an electronic device, and a readable storage medium.
Background
In the existing electronic game, the movement of the player virtual character and the dragging of the second virtual character can be realized by different keys, so that the operation is complex, the playability and the interestingness of the game are low, and the experience of a user is poor.
In addition, if the terminal device is a touch device such as a mobile phone and a tablet computer, in the prior art, different virtual controls are required to be respectively set on a graphical user interface of the touch device to realize movement of a player virtual character and dragging of a second virtual character, so that too many virtual controls of the graphical user interface are caused, and screen information bearing pressure of the touch device is increased.
Disclosure of Invention
Accordingly, an object of the present invention is to provide a method, an apparatus, an electronic device, and a readable storage medium for controlling a virtual character, so as to implement movement of a player virtual character and dragging of a second virtual character through one virtual control, thereby reducing operation complexity, enhancing game playability and interest, improving user experience, and reducing screen information bearing pressure of a touch device.
In a first aspect, an embodiment of the present invention provides a method for controlling a virtual character, where a graphical user interface is provided by a terminal device, where the graphical user interface displays a sight, a virtual control, and at least one virtual character; the method comprises the following steps: responding to a sight shift operation aiming at the terminal equipment, and aiming the sight at a target virtual character; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character.
In a second aspect, the embodiment of the present invention further provides a control device for a virtual character, where a graphical user interface is provided by a terminal device, and the graphical user interface displays a sight, a virtual control, and at least one virtual character; the device comprises: the target virtual character alignment module is used for responding to the sight movement operation aiming at the terminal equipment and enabling the sight to be aligned to the target virtual character; the target virtual character locking module is used for responding to the pressing operation aiming at the virtual control, so that the sight is locked in the target virtual character; the virtual character moving module is used for responding to the sliding operation of the virtual control and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, where the memory stores computer executable instructions executable by the processor, and the processor executes the computer executable instructions to implement the steps of the method for controlling a virtual character described above.
In a fourth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to implement the steps of the method for controlling a virtual character described above.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a control method, a device, electronic equipment and a readable storage medium for a virtual character, wherein aiming at a target virtual character is achieved by responding to aiming at aiming movement operation of a terminal equipment; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character. In the mode, the movement of the player virtual character and the dragging of the target virtual character are realized through one virtual control, so that the operation complexity can be reduced, the playability and the interestingness of the game are enhanced, the experience of the player is improved, the virtual controls with different functions can be integrated, and the screen information bearing pressure of the terminal equipment is reduced.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques of the disclosure.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of a graphical user interface according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for controlling a virtual character according to an embodiment of the present invention;
fig. 4 is a flowchart of another method for controlling a virtual character according to an embodiment of the present invention;
FIG. 5 is a diagram of a graphical user interface provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of another graphical user interface provided by an embodiment of the present invention;
FIG. 7 is a schematic diagram of another graphical user interface provided by an embodiment of the present invention;
FIG. 8 is a schematic diagram of another graphical user interface provided by an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a virtual character control device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of another virtual character control device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
At present, in the existing electronic game, the movement of the virtual character of the player and the dragging of the second virtual character can be realized by different keys, so that the operation is complex, the playability and the interestingness of the game are low, and the experience of the user is poor.
In addition, if the terminal device is a touch device such as a mobile phone and a tablet computer, in the prior art, different virtual controls are required to be respectively set on a graphical user interface of the touch device to realize movement of a player virtual character and dragging of a second virtual character, so that too many virtual controls of the graphical user interface are caused, and screen information bearing pressure of the touch device is increased.
First, the present application is described with respect to nouns:
(1) Game scene
The gaming system may provide virtual game scenes that the application displays (or provides) when running on the terminal device or server. Optionally, the game scene is a simulated environment for the real world, or a semi-simulated semi-fictional virtual environment, or a purely fictional virtual environment. The game scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be sky, land, ocean and the like, wherein the land comprises environmental elements such as deserts, cities and the like. The game scene is a scene of complete game logic of virtual characters such as user control.
A virtual character refers to a dynamic object that can be controlled in a virtual scene. Alternatively, the dynamic object may be a virtual character, a virtual animal, or the like. Wherein the virtual character includes a cartoon character, a game character, and the like. The virtual Character is a Character that a Player controls through an input device, or is an artificial intelligence (Artificial Intelligence, AI) set in a virtual environment fight by training, or is a Non-Player Character (NPC) set in a virtual environment fight. Optionally, the avatar is a avatar playing an athletic activity in the virtual scene. Optionally, the number of virtual characters in the virtual scene fight is preset, or dynamically determined according to the number of clients joining the fight, which is not limited by the embodiment of the present application. In one possible implementation, a user can control a virtual character to move in the virtual scene, e.g., control the virtual character to run, jump, crawl, etc., as well as control the virtual character to fight other virtual characters using skills, virtual props, etc., provided by the application.
(2) Player character
A player character refers to a virtual character that may be manipulated by a player to be active in a gaming environment, which may also be referred to as a god character, hero character in some electronic games. The player character may be at least one of a virtual character, a virtual animal, a cartoon character, a virtual vehicle, or the like.
(3) Game interface
The game Interface is an Interface corresponding to an application program provided or displayed through a graphical User Interface, and the Interface includes a UI (User Interface) and a game screen for a player to interact. In alternative embodiments, game controls (e.g., skill controls, movement controls, functionality controls, etc.), indication identifiers (e.g., direction indication identifiers, character indication identifiers, etc.), information presentation areas (e.g., number of clicks, time of play, etc.), or game setting controls (e.g., system settings, stores, gold coins, etc.) may be included in the UI interface. In an alternative embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device, and the game screen may include virtual characters such as a game character, an NPC character, an AI character, and the like that execute game logic in the virtual scene.
Based on the above, the method, the device, the electronic device and the readable storage medium for controlling the virtual character provided by the embodiment of the invention can be applied to devices capable of realizing man-machine interaction such as mobile phones, tablet computers, computers and servers, and can be particularly suitable for scenes of mobile phone games.
For the sake of understanding the present embodiment, first, a detailed description will be given of a virtual character control method disclosed in the present embodiment.
The method for controlling the virtual character in one embodiment of the present disclosure may be executed on a terminal device or a server. The terminal device may be a local terminal device. When the control method of the virtual character runs on the server, the method can be realized and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an alternative embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud game. Taking cloud game as an example, cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and operation of the virtual character control method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting game pictures, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the terminal device for information processing is cloud game server of cloud. When playing the game, the player operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the client device through a network, and finally decodes the data through the client device and outputs the game pictures.
In an alternative embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used for interacting with the player through the graphical user interface, namely, conventionally downloading and installing the game program through the electronic device and running. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal, or provided to the player by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including game visuals, and a processor for running the game, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.
In a possible implementation manner, the embodiment of the present invention provides a method for controlling a virtual character, and a graphical user interface is provided through a terminal device, where the terminal device may be the aforementioned local terminal device or the aforementioned client device in the cloud interaction system. Providing a graphical user interface through the terminal device, the graphical user interface including at least a portion of the game scene and player characters and other virtual characters in the same pair; as in the previous embodiments, the player may control the player character to attack other virtual characters.
See a schematic diagram of one implementation environment shown in fig. 1. The implementation environment may include: the system comprises a first terminal device, a server and a second terminal device. The first terminal device and the second terminal device are respectively communicated with the server to realize data communication. In this embodiment, the first terminal device and the second terminal device are respectively installed with a client for executing the method for controlling the virtual character provided by the present application, and the host is a server for executing the method for controlling the virtual character provided by the present application. The first terminal device and the second terminal device can respectively communicate with the host through the client.
Taking a first terminal device as an example, the first terminal device establishes communication with a host through an operation client. In an alternative embodiment, the server establishes game play according to the game request from the client. The parameters of the game play may be determined according to the parameters in the received game request, for example, the parameters of the game play may include the number of people participating in the game play, the role level of the participating game play, and the like. And when the first terminal equipment receives the response of the server, displaying a virtual scene corresponding to the game play through a graphical user interface of the first terminal equipment. In an alternative embodiment, the server determines a target game for the client from the plurality of established game games according to the game request of the client, and when the first terminal device receives the response of the server, the virtual scene corresponding to the game is displayed through the graphical user interface of the first terminal device. The first terminal equipment is equipment controlled by a first user, the virtual character displayed in the graphical user interface of the first terminal equipment is a player character controlled by the first user, and the first user inputs an operation instruction through the graphical user interface so as to control the player character to execute corresponding operation in the virtual scene.
Taking a second terminal device as an example, the second terminal device establishes communication with the host through the operation client. In an alternative embodiment, the server establishes game play according to the game request from the client. The parameters of the game play may be determined according to the parameters in the received game request, for example, the parameters of the game play may include the number of people participating in the game play, the role level of the participating game play, and the like. And when the second terminal equipment receives the response of the server, displaying a virtual scene corresponding to the game play through a graphical user interface of the second terminal equipment. In an alternative embodiment, the server determines a target game for the client from the plurality of established game games according to the game request of the client, and when the second terminal device receives the response of the server, the virtual scene corresponding to the game is displayed through the graphical user interface of the second terminal device. The second terminal equipment is equipment controlled by a second user, the virtual character displayed in the graphical user interface of the second terminal equipment is a player character controlled by the second user, and the second user inputs an operation instruction through the graphical user interface so as to control the player character to execute corresponding operation in the virtual scene.
The server calculates data according to game data reported by the first terminal equipment and the second terminal equipment, and synchronizes the calculated game data to the first terminal equipment and the second terminal equipment, so that the first terminal equipment and the second terminal equipment control rendering of corresponding virtual scenes and/or virtual roles in the graphical user interface according to the synchronous data issued by the server.
In this embodiment, the virtual character controlled by the first terminal device and the virtual character controlled by the second terminal device are virtual characters in the same game pair. The virtual character controlled by the first terminal device and the virtual character controlled by the second terminal device may have the same character attribute, or may have different character attributes.
It should be noted that, the virtual characters in the current game play may include two or more virtual characters, and different virtual characters may correspond to different terminal devices, that is, in the current game play, there are two or more terminal devices that perform transmission and synchronization of game data with the host respectively.
The embodiment provides a control method for virtual characters, the game of the embodiment can be a multi-player fight game, and the terminal equipment of the embodiment can be a touch control device with communication function and man-machine interaction function, such as a mobile phone, a tablet personal computer and the like.
In this embodiment, the terminal device provides a graphical user interface of the game, and referring to a schematic diagram of one graphical user interface shown in fig. 2, a sight, a virtual control, and at least one virtual character may be displayed through the graphical user interface of the terminal device.
The virtual characters displayed in the graphical user interface may be player-controlled virtual characters (i.e., player virtual characters) or other player-controlled virtual characters, which may include friend virtual characters that are co-located with the player-controlled virtual characters or enemy virtual characters that are co-located with the player-controlled virtual characters.
The player can press and slide the virtual control displayed in the graphical user interface, and the terminal device can respond to the pressing operation or the sliding operation of the player to execute the corresponding control operation.
The sight displayed in the graphic user interface is generally fixed at the center position of the graphic user interface, and the player can adjust the game scene displayed by the graphic user interface through the sight moving operation, thereby achieving the purpose of enabling the sight.
Based on the above description, referring to a flowchart of a control method of a virtual character shown in fig. 3, the control method of the virtual character includes the steps of:
Step S302, in response to the sight shift operation for the terminal device, the sight is directed to the target virtual character.
Wherein, the sight moving operation may include: a sliding operation by a player with respect to a graphical user interface, a tilting or rotating operation by a player with respect to a terminal device, or the like. For example: the player may perform a sliding operation at any position of the graphical user interface, and move the game scene displayed by the graphical user interface through the sliding operation. Also for example: the player may tilt and rotate the terminal device, and the gyro sensor in the terminal device may move the game scene displayed by the graphical user interface in response to the tilting or rotating operation.
In response to the sight movement operation, the terminal device can aim the sight at one virtual character displayed on the graphical user interface, and the virtual character is called a target virtual character. The target virtual character in this embodiment is not a player virtual character, but may be a friend virtual character or an enemy virtual character, which is not limited in this embodiment.
Step S304, responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character.
After the sight is aimed at the target virtual character, the player may press the virtual control, and the terminal device may cause the sight to lock the target virtual character in response to the above-described pressing operation.
The locked target virtual character may be understood as a target virtual character that is continuously aligned by an interface of a graphic user, that is, a sight is continuously aligned with the target virtual character regardless of whether a player performs a sight moving operation. For example: after the sight is locked to the target virtual character, if the target virtual character moves, the game scene displayed by the graphical user interface can automatically move along with the movement of the target virtual character, so that the sight is kept to be aligned to the target virtual character until the sight is unlocked from the target virtual character.
Therefore, the terminal equipment can respond to the pressing operation of the player on the virtual control, so that the sight glass locks the target virtual role, and the sight glass can continuously aim at the target virtual role, thereby facilitating the player to execute the subsequent sliding operation on the virtual control and improving the experience of the player.
In step S306, in response to the sliding operation for the virtual control, the first operation or the second operation is performed based on the sliding direction of the sliding operation.
The first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character.
After determining the target virtual character, the player may perform a sliding operation with respect to the virtual control. The sliding operation may specifically be: the virtual control is pressed first and then slid. The terminal device may perform the first operation or the second operation based on a sliding direction of the sliding operation in response to the above-described sliding operation.
In some embodiments, the first operation or the second operation may be performed based on a sliding direction of the sliding operation so that a distance between the player avatar controlled by the terminal device and the target avatar reaches a target distance.
For example: the target distance may include a first distance and a second distance, the first operation characterization moving the player avatar controlled by the terminal device within the first distance of the target avatar, the second operation characterization moving the target avatar within the second distance of the player avatar.
If the sliding direction is upward, the terminal device may perform a first operation to instantaneously move the player character around the target character (i.e., within a first distance). Also for example: if the sliding direction is downward, the terminal device may perform a second operation to drag the target avatar instantaneously to the surroundings of the player avatar (i.e., within a second distance). The first distance may be equal to the second distance, or the first distance may not be equal to the second distance, which is not limited in this embodiment.
The embodiment of the invention provides a control method of a virtual character, which responds to a sight shift operation aiming at terminal equipment to lead the sight to aim at a target virtual character; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character. In the mode, the movement of the player virtual character and the dragging of the target virtual character are realized through one virtual control, so that the operation complexity can be reduced, the playability and the interestingness of the game are enhanced, the experience of the player is improved, the virtual controls with different functions can be integrated, and the screen information bearing pressure of the terminal equipment is reduced.
As shown in fig. 4, in an alternative embodiment, the method for controlling a virtual character includes the following steps:
step S402, in response to the sight shift operation for the terminal device, the sight is directed to the target virtual character.
The player may perform a sliding operation at any position of the graphical user interface or tilt, rotate the terminal device as a sight-moving operation for the terminal device. The terminal device may move the game scene displayed by the graphical user interface in response to the above-described sight movement operation, thereby adjusting the targets at which the sight is aimed, and may aim the sight at target virtual characters other than the player-controlled virtual characters.
Referring to the schematic diagram of one graphical user interface shown in FIG. 5, a sight at the center of the graphical user interface, a virtual control at the lower right corner of the graphical user interface, a player avatar, avatar A, and avatar B are shown in FIG. 5. As shown in fig. 5, the sight is aligned with the virtual character a, which may be the target virtual character.
Step S404, responding to the pressing operation of the virtual key, and enabling the sight to lock the target virtual character.
In some embodiments, after the sight locks the target virtual character, the terminal device may generate a lock feedback; wherein the lock feedback comprises at least one of: sound feedback, vibration feedback, animation feedback.
After the sight locks the target virtual character, the terminal device may generate lock feedback, for example: sound feedback for emitting a prompt sound, vibration feedback for vibrating the terminal device, or animation feedback.
Wherein the animation feedback may be for a target virtual character, or for a virtual control. Referring to the schematic diagram of another graphical user interface shown in fig. 6, the lock feedback performed in fig. 6 is an animated feedback, covering the target virtual character and virtual control with colors of different gray scale values.
Thus, the terminal device generates lock feedback after the sight-locked target virtual character, prompts the player in the form of sound, vibration, animation, or the like: the terminal equipment locks the target virtual character, and the player can execute subsequent sliding operation aiming at the virtual control, so that the experience of the player is improved.
In step S406, in response to the sliding operation for the virtual control, the first operation or the second operation is performed based on the sliding direction of the sliding operation.
In some embodiments, if the sliding direction of the sliding operation is a first direction, performing the first operation; if the sliding direction of the sliding operation is the second direction, performing the second operation; wherein the first direction is upward and the second direction is downward.
The terminal device may determine, in response to the sliding operation for the virtual control, a sliding direction of the sliding operation to be a first direction or a second direction, and then execute the first operation or the second operation according to the sliding direction of the sliding operation.
Referring to the schematic view of another graphical user interface shown in fig. 7 and the schematic view of another graphical user interface shown in fig. 8, the sliding direction of the sliding operation shown in fig. 7 is the first direction upward (i.e., the sliding operation is upward with respect to the virtual control), and the terminal device performs the first operation. The sliding direction of the sliding operation shown in fig. 8 is a second direction downward (i.e., the sliding operation is downward with respect to the virtual control), and the terminal device performs the second operation.
In some embodiments, in addition to the sliding direction of the sliding operation, the sliding distance of the sliding operation may be used as a basis for determining whether to perform the first operation or the second operation, for example: determining a sliding distance of a sliding operation; if the sliding distance of the sliding operation is greater than a preset first distance threshold, the first operation or the second operation is performed based on the sliding direction of the sliding operation.
The sliding distance of the sliding operation can be understood as the distance that the finger of the player moves after pressing the virtual key.
If the sliding distance of the sliding operation is smaller than or equal to the first distance threshold value, the situation that the player touches the device by mistake is indicated, and the terminal device can not execute the first operation or the second operation. If the sliding distance of the sliding operation is greater than the first distance threshold, it is indicated that the player does not have false touch, and the terminal device may perform the first operation or the second operation based on the sliding direction of the sliding operation.
Therefore, the terminal device can judge whether the first operation or the second operation is executed or not by taking the sliding distance of the sliding operation as a basis, so that whether the player touches by mistake or not is judged, and the experience of the player is improved.
In some embodiments, in addition to the sliding direction of the sliding operation, the distance between the player avatar and the target avatar may be used as a basis for determining whether to perform the first operation or the second operation, for example: determining the distance between the player virtual character controlled by the terminal equipment and the target virtual character; and if the distance is less than or equal to a preset second distance threshold, performing the first operation or the second operation based on the sliding direction of the sliding operation.
In general, there is an upper limit value, i.e., a second distance threshold, for both the distance that the player avatar moves in the first operation and the distance that the target avatar moves in the second operation. Thus, the terminal device can first determine the distance of the player avatar controlled by the terminal device from the target avatar.
If the distance is smaller than or equal to a preset second distance threshold value, the distance is not larger than the upper limit value of the distance moved by the player virtual character in the first operation and the distance moved by the target virtual character in the second operation, and the terminal device can execute the first operation or the second operation based on the sliding direction of the sliding operation.
If the distance is greater than the second distance threshold, it is indicated that the distance has exceeded an upper limit of the distance that the player avatar moved in the first operation and the distance that the target avatar moved in the second operation. The terminal device at this time may not perform the first operation or the second operation; the terminal device may also control the movement of the player avatar or the target avatar, but the distance moved by the player avatar or the distance moved by the target avatar is the second distance threshold, where after the movement of the player avatar or the target avatar, the distance between the player avatar and the target avatar is greater than the first distance or the second distance.
For example: the second distance threshold is 150, and the first distance and the second distance are 10. If the distance between the player avatar and the target avatar before the first operation or the second operation is performed is 200, the distance 200 is greater than the second distance threshold 150, and the terminal device may not perform the first operation or the second operation, or may control the player avatar or the target avatar to move by the second distance threshold 100, and the distance (200-150=50) between the moved player avatar and the target avatar is greater than the first distance or the second distance 10.
Therefore, the terminal device may determine whether the distance between the player character controlled by the terminal device and the target character exceeds the second distance threshold, which is the upper limit value of the movement of the player character and the target character, by using the distance between the player character and the target character as a basis for determining whether to perform the first operation or the second operation. When the distance is smaller than or equal to the second distance threshold, the distance is not larger than the upper limit value of the movement of the player virtual character and the target virtual character, and the terminal device can execute the first operation or the second operation based on the sliding direction of the sliding operation, so that the experience of the player is improved.
In some embodiments, the target speed of the player avatar or target avatar may be determined based on the sliding distance, for example: determining a sliding distance of the sliding operation, and determining a target speed based on the sliding distance; the speed at which the player avatar moves toward the target avatar is controlled according to the target speed, or the speed at which the target avatar moves toward the player avatar is controlled according to the target speed.
For example, the terminal device may set in advance a correspondence relationship between a sliding distance of the sliding operation and a target speed of the player avatar or the target avatar. In general, the farther the sliding distance is, the faster the target moving speed can be set. The terminal device may determine the target speed corresponding to the sliding distance according to the corresponding relationship, and then control the player avatar to be within a first distance from the target speed to the target avatar or within a second distance from the target avatar to the player avatar.
Therefore, the terminal device can control the target speed of the player avatar or the target avatar according to the sliding distance of the sliding operation, thereby further enhancing the operability of the game and thus improving the experience of the player.
In some embodiments, the target distance for the player avatar or target avatar may be determined based on the sliding distance, for example: determining a sliding distance of a sliding operation; the distance that the player avatar moves toward the target avatar is controlled according to the sliding distance, or the distance that the target avatar moves toward the player avatar is controlled according to the sliding distance.
For example, the terminal device may set in advance a correspondence relationship between a sliding distance of the sliding operation and a target distance of the player avatar or the target avatar. In general, the farther the sliding distance, the farther the target distance can be set. The terminal device may determine the target distance corresponding to the sliding distance according to the corresponding relationship, and then control the player virtual character or the target virtual character to move the target distance. Here, the terminal device needs to ensure that the distance between the target virtual character and the player virtual character is smaller than the first distance or the second distance after the player virtual character or the target virtual character moves by the target distance.
Therefore, the terminal device can control the target distance of the player virtual character or the target virtual character according to the sliding distance of the sliding operation, thereby further enhancing the operability of the game and further improving the experience of the player.
In some embodiments, the first operation or the second operation may be performed based on a sliding direction of the sliding operation so that a distance between the player avatar controlled by the terminal device and the target avatar reaches a target distance.
In some embodiments, to facilitate a player control avatar to attack a target avatar as soon as possible after the player control avatar or the target avatar moves, the target distances may each be less than the attack distance of the player avatar.
Therefore, the distance between the target virtual character after moving and the player virtual character can be ensured to be smaller than the attack distance of the player virtual character, so that the player can conveniently control the virtual character to attack the target virtual character as soon as possible, and the experience of the player can be improved.
In step S408, the angle of view of the graphical user interface is adjusted based on the sliding operation during the duration of the sliding operation.
During the period in which the player continues to perform the sliding operation, the terminal device may adjust the angle of view of the graphical user interface according to the sliding operation, for example: the player performs the sliding operation upwards, and the terminal device can enable the lens of the graphical user interface to move forwards, so that the player can conveniently adjust the visual angle of the graphical user interface according to the requirement of the player, and the experience of the player can be improved.
According to the method provided by the embodiment of the invention, the movement of the player virtual character and the dragging of the target virtual character are realized through one virtual control, so that the operation complexity can be reduced, the playability and the interestingness of the game are enhanced, the experience of the player is improved, the virtual controls with different functions can be integrated, and the screen information bearing pressure of the terminal equipment is reduced.
In the mode, the terminal equipment can respond to the pressing operation of the player on the virtual control, so that the sight glass locks the target virtual role, and the sight glass can continuously aim at the target virtual role, thereby facilitating the player to execute the subsequent sliding operation on the virtual control and improving the experience of the player.
In this manner, the terminal device generates lock feedback after the sight-locked target virtual character, and prompts the player in the form of sound, vibration, animation, or the like: the terminal equipment locks the target virtual character, and the player can execute subsequent sliding operation aiming at the virtual control, so that the experience of the player is improved.
In this manner, the terminal device may determine whether the player has made a false touch by using the sliding distance of the sliding operation as a basis for determining whether to perform the first operation or the second operation, thereby improving the experience of the player.
In this manner, the terminal device may determine whether the distance between the player virtual character and the target virtual character controlled by the terminal device exceeds a second distance threshold, which is an upper limit value of movement of the player virtual character and the target virtual character, by using the distance between the player virtual character and the target virtual character as a basis for determining whether to perform the first operation or the second operation. When the distance is smaller than or equal to the second distance threshold, the distance is not larger than the upper limit value of the movement of the player virtual character and the target virtual character, and the terminal device can execute the first operation or the second operation based on the sliding direction of the sliding operation, so that the experience of the player is improved.
In this way, the terminal device can control the target speed of the player virtual character or the target virtual character according to the sliding distance of the sliding operation, thereby further enhancing the operability of the game and further improving the experience of the player.
In this way, the terminal device can control the target distance of the player virtual character or the target virtual character according to the sliding distance of the sliding operation, thereby further enhancing the operability of the game and further improving the experience of the player.
In the mode, the distance between the target virtual character after moving and the player virtual character can be ensured to be smaller than the attack distance of the player virtual character, so that the player can conveniently control the virtual character to attack the target virtual character as soon as possible, and the experience of the player can be improved.
Corresponding to the embodiment of the method, the embodiment of the invention provides a control device for the virtual character, and a graphical user interface is provided through the terminal equipment, wherein the graphical user interface displays a sight, a virtual control and at least one virtual character. As shown in fig. 9, a schematic configuration diagram of a virtual character control device includes:
a target virtual character alignment module 91 for aligning a sight with a target virtual character in response to a sight moving operation for a terminal device;
a target virtual character locking module 92 for locking the sight to the target virtual character in response to a pressing operation for the virtual control;
a virtual character movement module 93 for performing a first operation or a second operation based on a sliding direction of a sliding operation in response to the sliding operation for the virtual control; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character.
The embodiment of the invention provides a control device for a virtual character, which responds to a sight shift operation aiming at terminal equipment to lead the sight to aim at a target virtual character; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character. In the mode, the movement of the player virtual character and the dragging of the target virtual character are realized through one virtual control, so that the operation complexity can be reduced, the playability and the interestingness of the game are enhanced, the experience of the player is improved, the virtual controls with different functions can be integrated, and the screen information bearing pressure of the terminal equipment is reduced.
In one possible embodiment, as shown in fig. 10, the above-described apparatus includes: a lock feedback generation module 94 for generating lock feedback; wherein the lock feedback comprises at least one of: sound feedback, vibration feedback, animation feedback.
In a possible embodiment, the virtual character movement module is configured to perform the first operation if the sliding direction of the sliding operation is the first direction; if the sliding direction of the sliding operation is the second direction, performing the second operation; wherein the first direction is upward and the second direction is downward.
In a possible embodiment, the virtual character movement module is configured to determine a sliding distance of a sliding operation; if the sliding distance of the sliding operation is greater than a preset first distance threshold, the first operation or the second operation is performed based on the sliding direction of the sliding operation.
In a possible implementation manner, the virtual character moving module is used for determining the distance between the player virtual character controlled by the terminal equipment and the target virtual character; and if the distance is less than or equal to a preset second distance threshold, performing the first operation or the second operation based on the sliding direction of the sliding operation.
In a possible embodiment, the virtual character movement module is further configured to determine a sliding distance of the sliding operation, and determine the target speed based on the sliding distance; the speed at which the player avatar moves toward the target avatar is controlled according to the target speed, or the speed at which the target avatar moves toward the player avatar is controlled according to the target speed.
In a possible embodiment, the virtual character movement module is further configured to determine a sliding distance of the sliding operation; the distance that the player avatar moves toward the target avatar is controlled according to the sliding distance, or the distance that the target avatar moves toward the player avatar is controlled according to the sliding distance.
In a possible embodiment, the above-mentioned first operation or second operation is performed based on a sliding direction of the sliding operation, including: the first operation or the second operation is performed based on a sliding direction of the sliding operation so that a distance between the player avatar controlled by the terminal device and the target avatar reaches a target distance.
In one possible embodiment, the target distances are each less than the attack distance of the player avatar.
In one possible embodiment, as shown in fig. 10, the above-described apparatus includes: the view angle adjustment module 95 is used for adjusting the view angle of the graphical user interface based on the sliding operation during the duration of the sliding operation.
The virtual character control device provided by the embodiment of the invention has the same technical characteristics as the virtual character control method provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the invention also provides electronic equipment, which is used for running the control method of the virtual roles; referring to the schematic structural diagram of an electronic device shown in fig. 11, the electronic device includes a memory 100 and a processor 101, wherein the memory 100 is configured to store one or more computer instructions, and the one or more computer instructions are executed by the processor 101 to perform the following steps:
responding to a sight shift operation aiming at the terminal equipment, and aiming the sight at a target virtual character; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character.
In an alternative embodiment of the present invention, after the step of enabling the sight to lock the target virtual character, the method further includes: a lock feedback may be generated; wherein the lock feedback comprises at least one of: sound feedback, vibration feedback, animation feedback.
In an alternative embodiment of the present invention, the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes: performing a first operation if a sliding direction of the sliding operation is a first direction; if the sliding direction of the sliding operation is the second direction, performing the second operation; wherein the first direction is upward and the second direction is downward.
In an alternative embodiment of the present invention, the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes: determining a sliding distance of a sliding operation; if the sliding distance of the sliding operation is greater than a preset first distance threshold, the first operation or the second operation is performed based on the sliding direction of the sliding operation.
In an alternative embodiment of the present invention, the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes: determining the distance between the player virtual character controlled by the terminal equipment and the target virtual character; and if the distance is less than or equal to a preset second distance threshold, performing the first operation or the second operation based on the sliding direction of the sliding operation.
In an alternative embodiment of the present invention, the method further includes: determining a sliding distance of the sliding operation, and determining a target speed based on the sliding distance; the speed at which the player avatar moves toward the target avatar is controlled according to the target speed, or the speed at which the target avatar moves toward the player avatar is controlled according to the target speed.
In an alternative embodiment of the present invention, the method further includes: determining a sliding distance of a sliding operation; the distance that the player avatar moves toward the target avatar is controlled according to the sliding distance, or the distance that the target avatar moves toward the player avatar is controlled according to the sliding distance.
In an alternative embodiment of the present invention, the performing the first operation or the second operation based on the sliding direction of the sliding operation includes: the first operation or the second operation is performed based on a sliding direction of the sliding operation so that a distance between the player avatar controlled by the terminal device and the target avatar reaches a target distance.
In an alternative embodiment of the present invention, the target distances are all smaller than the attack distance of the player avatar.
In an alternative embodiment of the present invention, the method further includes: the perspective of the graphical user interface is adjusted based on the sliding operation for the duration of the sliding operation.
In this embodiment, the sight line may be aligned to the target virtual character in response to the sight line movement operation for the terminal device; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character. In the mode, the movement of the player virtual character and the dragging of the target virtual character are realized through one virtual control, so that the operation complexity can be reduced, the playability and the interestingness of the game are enhanced, the experience of the player is improved, the virtual controls with different functions can be integrated, and the screen information bearing pressure of the terminal equipment is reduced.
Further, the electronic device shown in fig. 11 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 103 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 102 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 11, but not only one bus or type of bus.
The processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 101 or instructions in the form of software. The processor 101 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 100 and the processor 101 reads information in the memory 100 and in combination with its hardware performs the steps of the method of the previous embodiments.
The embodiment of the invention also provides a computer readable storage medium, which stores computer executable instructions that when being called and executed by a processor, cause the processor to implement the control method of the virtual character, and the method can execute the following steps:
responding to a sight shift operation aiming at the terminal equipment, and aiming the sight at a target virtual character; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character.
In an alternative embodiment of the present invention, after the step of enabling the sight to lock the target virtual character, the method further includes: a lock feedback may be generated; wherein the lock feedback comprises at least one of: sound feedback, vibration feedback, animation feedback.
In an alternative embodiment of the present invention, the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes: performing a first operation if a sliding direction of the sliding operation is a first direction; if the sliding direction of the sliding operation is the second direction, performing the second operation; wherein the first direction is upward and the second direction is downward.
In an alternative embodiment of the present invention, the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes: determining a sliding distance of a sliding operation; if the sliding distance of the sliding operation is greater than a preset first distance threshold, the first operation or the second operation is performed based on the sliding direction of the sliding operation.
In an alternative embodiment of the present invention, the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes: determining the distance between the player virtual character controlled by the terminal equipment and the target virtual character; and if the distance is less than or equal to a preset second distance threshold, performing the first operation or the second operation based on the sliding direction of the sliding operation.
In an alternative embodiment of the present invention, the method further includes: determining a sliding distance of the sliding operation, and determining a target speed based on the sliding distance; the speed at which the player avatar moves toward the target avatar is controlled according to the target speed, or the speed at which the target avatar moves toward the player avatar is controlled according to the target speed.
In an alternative embodiment of the present invention, the method further includes: determining a sliding distance of a sliding operation; the distance that the player avatar moves toward the target avatar is controlled according to the sliding distance, or the distance that the target avatar moves toward the player avatar is controlled according to the sliding distance.
In an alternative embodiment of the present invention, the performing the first operation or the second operation based on the sliding direction of the sliding operation includes: the first operation or the second operation is performed based on a sliding direction of the sliding operation so that a distance between the player avatar controlled by the terminal device and the target avatar reaches a target distance.
In an alternative embodiment of the present invention, the target distances are all smaller than the attack distance of the player avatar.
In an alternative embodiment of the present invention, the method further includes: the perspective of the graphical user interface is adjusted based on the sliding operation for the duration of the sliding operation.
In this embodiment, the sight line may be aligned to the target virtual character in response to the sight line movement operation for the terminal device; responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character; responding to the sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; the first operation representation control terminal equipment controls the player virtual character to move towards the target virtual character, and the second operation representation control terminal equipment controls the target virtual character to move towards the player virtual character. In the mode, the movement of the player virtual character and the dragging of the target virtual character are realized through one virtual control, so that the operation complexity can be reduced, the playability and the interestingness of the game are enhanced, the experience of the player is improved, the virtual controls with different functions can be integrated, and the screen information bearing pressure of the terminal equipment is reduced.
The method, the device, the electronic device and the computer program product of the readable storage medium for controlling the virtual character provided by the embodiments of the present invention include a computer readable storage medium storing program codes, and instructions included in the program codes may be used to execute the method in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be repeated herein.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and/or apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In addition, in the description of embodiments of the present invention, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention for illustrating the technical solution of the present invention, but not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the foregoing examples, it will be understood by those skilled in the art that the present invention is not limited thereto: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (13)

1. A control method of virtual characters is characterized in that a graphical user interface is provided through terminal equipment, and the graphical user interface displays a sight, a virtual control and at least one virtual character; the method comprises the following steps:
responding to a sight shift operation aiming at the terminal equipment, and aiming the sight at a target virtual character;
Responding to the pressing operation for the virtual control, and enabling the sight to lock the target virtual character;
responding to a sliding operation for the virtual control, and executing a first operation or a second operation based on the sliding direction of the sliding operation; wherein the first operational characteristic controls movement of the player avatar controlled by the terminal device toward the target avatar, and the second operational characteristic controls movement of the target avatar toward the player avatar.
2. The method of claim 1, wherein after the step of causing the sight to lock the target virtual character, the method further comprises:
generating a lock feedback; wherein the lock feedback includes at least one of: sound feedback, vibration feedback, animation feedback.
3. The method according to claim 1, wherein the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes:
performing a first operation if a sliding direction of the sliding operation is a first direction;
if the sliding direction of the sliding operation is the second direction, executing the second operation;
wherein the first direction is upward and the second direction is downward.
4. The method according to claim 1, wherein the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes:
determining a sliding distance of the sliding operation;
and if the sliding distance of the sliding operation is greater than a preset first distance threshold value, executing a first operation or a second operation based on the sliding direction of the sliding operation.
5. The method according to claim 1, wherein the step of performing the first operation or the second operation based on the sliding direction of the sliding operation includes:
determining the distance between the player virtual character controlled by the terminal equipment and the target virtual character;
and if the distance is smaller than or equal to a preset second distance threshold value, executing a first operation or a second operation based on the sliding direction of the sliding operation.
6. The method according to claim 1, wherein the method further comprises:
determining a sliding distance of the sliding operation, and determining a target speed based on the sliding distance;
and controlling the moving speed of the player virtual character towards the target virtual character according to the target speed, or controlling the moving speed of the target virtual character towards the player virtual character according to the target speed.
7. The method of claim 6, wherein the method further comprises:
determining a sliding distance of the sliding operation;
and controlling the moving distance of the player virtual character towards the target virtual character according to the sliding distance, or controlling the moving distance of the target virtual character towards the player virtual character according to the sliding distance.
8. The method of claim 1, wherein the performing the first operation or the second operation based on the sliding direction of the sliding operation comprises:
and executing a first operation or a second operation based on the sliding direction of the sliding operation, so that the distance between the player virtual character controlled by the terminal equipment and the target virtual character reaches a target distance.
9. The method of claim 8, wherein the target distance is less than an attack distance of the player avatar.
10. The method according to claim 1, wherein the method further comprises:
during the duration of the sliding operation, adjusting a perspective of the graphical user interface based on the sliding operation.
11. A control device for virtual characters, characterized in that a graphical user interface is provided by a terminal device, wherein the graphical user interface displays a sight, a virtual control and at least one virtual character; the device comprises:
A target virtual character alignment module, configured to respond to a sight shift operation for the terminal device, and align the sight with a target virtual character;
the target virtual role locking module is used for responding to the pressing operation aiming at the virtual control, so that the sight is locked in the target virtual role;
the virtual character moving module is used for responding to the sliding operation of the virtual control and executing a first operation or a second operation based on the sliding direction of the sliding operation; wherein the first operational characteristic controls movement of the player avatar controlled by the terminal device toward the target avatar, and the second operational characteristic controls movement of the target avatar toward the player avatar.
12. An electronic device comprising a processor and a memory, the memory storing computer executable instructions executable by the processor, the processor executing the computer executable instructions to implement the steps of the method of controlling a virtual character as claimed in any one of claims 1 to 10.
13. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the steps of the method of controlling a virtual character according to any one of claims 1 to 10.
CN202310883352.5A 2023-07-18 2023-07-18 Virtual character control method, device, electronic equipment and readable storage medium Pending CN116764193A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310883352.5A CN116764193A (en) 2023-07-18 2023-07-18 Virtual character control method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310883352.5A CN116764193A (en) 2023-07-18 2023-07-18 Virtual character control method, device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN116764193A true CN116764193A (en) 2023-09-19

Family

ID=88008148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310883352.5A Pending CN116764193A (en) 2023-07-18 2023-07-18 Virtual character control method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN116764193A (en)

Similar Documents

Publication Publication Date Title
US10525337B2 (en) Terminal device
US10850196B2 (en) Terminal device
US9149720B2 (en) Computer-readable storage medium having information processing program stored therein, information processing apparatus, information processing system, and information processing method
JP7386360B2 (en) Information processing method, apparatus and terminal device
CN107213636B (en) Lens moving method, device, storage medium and processor
CN112843679B (en) Skill release method, device, equipment and medium for virtual object
WO2018103633A1 (en) Image processing method and device
CN113082697B (en) Game interaction method and device and electronic equipment
CN111760285B (en) Virtual scene display method, device, equipment and medium
JP2023524368A (en) ADAPTIVE DISPLAY METHOD AND DEVICE FOR VIRTUAL SCENE, ELECTRONIC DEVICE, AND COMPUTER PROGRAM
JP2019136358A (en) Game system and program
EP4192593A1 (en) Improved targeting of a long-range object in a multiplayer game
US20210117070A1 (en) Computer-readable recording medium, computer apparatus, and method of controlling
JP2019166218A (en) Program and game device
CN112245908A (en) Method and device for controlling game virtual character, storage medium and electronic equipment
WO2023071808A1 (en) Virtual scene-based graphic display method and apparatus, device, and medium
CN115708956A (en) Game picture updating method and device, computer equipment and medium
CN116764193A (en) Virtual character control method, device, electronic equipment and readable storage medium
CN116764192A (en) Virtual character control method, device, electronic equipment and readable storage medium
CN113891138A (en) Interactive operation prompting method and device, storage medium and electronic equipment
CN113599810A (en) Display control method, device, equipment and medium based on virtual object
CN116474362A (en) Method and device for controlling virtual character in game and electronic equipment
CN117797465A (en) Game skill control method, game skill control device, electronic equipment and readable storage medium
CN117797475A (en) Point location marking method and device in game and electronic equipment
CN115779412A (en) Game special effect setting method and device 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