CN113713384A - Control method and device of virtual role, storage medium and electronic equipment - Google Patents

Control method and device of virtual role, storage medium and electronic equipment Download PDF

Info

Publication number
CN113713384A
CN113713384A CN202111075653.2A CN202111075653A CN113713384A CN 113713384 A CN113713384 A CN 113713384A CN 202111075653 A CN202111075653 A CN 202111075653A CN 113713384 A CN113713384 A CN 113713384A
Authority
CN
China
Prior art keywords
target
virtual
virtual character
character
target virtual
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.)
Granted
Application number
CN202111075653.2A
Other languages
Chinese (zh)
Other versions
CN113713384B (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 CN202111075653.2A priority Critical patent/CN113713384B/en
Publication of CN113713384A publication Critical patent/CN113713384A/en
Application granted granted Critical
Publication of CN113713384B publication Critical patent/CN113713384B/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/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/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5372Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for tagging characters, objects or locations in the game scene, e.g. displaying a circle under the character controlled by the player
    • 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/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
    • 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)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a control method and device of a virtual role, 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 and an identification of a target virtual skill which the target virtual character has, wherein the target virtual skill is used for allowing the target virtual character to revive at a set revival position, setting a target position in the virtual game scene as the revival position of the target virtual character in response to a first operation executed on the identification of the target virtual skill, and reviving the target virtual character at the set target position when a revival condition corresponding to the target virtual skill is met. The invention solves the technical problem of low participation efficiency of the virtual character in one game in the related technology.

Description

Control method and device of virtual role, storage medium and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a method and a device for controlling a virtual character, a storage medium and electronic equipment.
Background
In the existing game application, during the course of battle of the player-controlled virtual character, due to misoperation or insufficient proficiency, the player-controlled virtual character is killed very quickly, while the player-controlled virtual character generally only allows the game to be completed through one virtual life in one game, after the player-controlled virtual character is killed, only the player can watch the opponent or quit the game, and for the killed player, the participation degree of the current game is greatly reduced.
In the partial mode, the virtual character controlled by the player wants to revive, but can only revive from the revival point configured by plan, and cannot rapidly participate in the current game.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a control method and device of a virtual character, a storage medium and electronic equipment, which are used for at least solving the technical problem of low participation efficiency of the virtual character in a game in the related art.
According to an aspect of an 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 and an identification of target virtual skills of the target virtual character, wherein the target virtual skills are used for allowing the target virtual character to revive at a set revival position; in response to a first operation performed on the identification of the target virtual skill, setting a target position in the virtual game scene as a revived position of the target virtual character, wherein the target position is a position determined in the virtual game scene using the target virtual skill; and when a revival condition corresponding to the target virtual skill is met, reviving the target virtual character at the set target position.
According to another aspect of the embodiments of the present invention, there is also provided a control apparatus for a virtual character, including: the system comprises a display module, a judging module and a display module, wherein the display module is used for displaying a virtual game scene where a target virtual character is located and an identification of a target virtual skill which the target virtual character has, and the target virtual skill is used for allowing the target virtual character to revive at a set revival position; a setting module, configured to set a target position in the virtual game scene as a revival position of the target virtual character in response to a first operation performed on the identification of the target virtual skill, where the target position is a position determined in the virtual game scene using the target virtual skill; and the processing module is used for reviving the target virtual character on the set target position when the reviving condition corresponding to the target virtual skill is met.
Optionally, the setting module includes: and the display unit is used for responding to a first operation executed on the target virtual skill identification, and displaying a target identification on the target position of the virtual game scene, wherein the target identification is used for representing that the target position is set as a revival position of the target virtual character, and the distance between the target position and the target virtual character is smaller than or equal to a preset distance threshold value.
Optionally, the apparatus is configured to display a target identity on the target position of the virtual game scene in response to a first operation performed on the identity of the target virtual skill by: in response to the first operation performed on the identification of the target virtual skill, detecting whether a direction of a gaze of the target virtual character intersects a virtual surface in the virtual game scene on which the target virtual character is permitted to stand; and under the condition that the center aligning direction is detected to intersect with the virtual surface, and the distance between the intersection position of the center aligning direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the center aligning direction and the virtual surface as the reviving position, and displaying the target identification on the intersection position of the center aligning direction and the virtual surface.
Optionally, the apparatus is further configured to: displaying a first prohibition identifier on the intersection position of the centroid direction and the virtual surface when the distance between the intersection position of the centroid direction and the virtual surface and the target virtual character is larger than the preset distance threshold, wherein the first prohibition identifier is used for indicating that the intersection position of the centroid direction and the virtual surface is not allowed to be set as the revival position and/or prompting that the usage range of the target virtual skill is exceeded; and/or in the case that the quasi-center direction does not intersect with the virtual surface and the quasi-center direction intersects with a virtual obstacle, displaying a second prohibition identifier on the intersection position of the quasi-center direction and the virtual obstacle, wherein the second prohibition identifier is used for indicating that the intersection position of the quasi-center direction and the virtual obstacle is not allowed to be set as the revival position.
Optionally, the apparatus is further configured to: in the case that the distance between the intersection position of the direction of the center of sight and the virtual surface and the target virtual character is larger than the preset distance threshold, responding to a first direction adjustment operation, and adjusting the direction of the center of sight to a first target direction; when the first target direction intersects the virtual surface and the distance between the intersection position of the first target direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the first target direction and the virtual surface as the revival position, and displaying the target identification on the intersection position of the first target direction and the virtual surface; or, when the distance between the intersection position of the centroid direction and the virtual surface and the target virtual character is greater than the preset distance threshold, the centroid direction is adjusted to a second target direction in response to the movement operation of the target virtual character; and when the second target direction intersects with the virtual surface and the distance between the intersection position of the second target direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the second target direction and the virtual surface as the revival position, and displaying the target identification on the intersection position of the second target direction and the virtual surface.
Optionally, the apparatus is further configured to: in response to a second direction adjustment operation, adjusting the isocenter direction to a third target direction in the event that it is detected that the isocenter direction does not intersect the virtual surface and the isocenter direction intersects a virtual obstacle; when the third target direction intersects the virtual surface and the distance between the intersection position of the third target direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the third target direction and the virtual surface as the revival position, and displaying the target identification on the intersection position of the third target direction and the virtual surface; or, in the case that the direction of the center of gravity is detected not to intersect with the virtual surface and the direction of the center of gravity intersects with a virtual obstacle, the direction of the center of gravity is adjusted to a fourth target direction in response to the moving operation of the target virtual character; and when the fourth target direction intersects with the virtual surface and the distance between the intersection position of the fourth target direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the fourth target direction and the virtual surface as the revival position, and displaying the target identification on the intersection position of the fourth target direction and the virtual surface.
Optionally, the apparatus is configured to detect whether the direction of the target virtual character's gaze intersects a virtual surface in the virtual game scene on which the target virtual character is allowed to stand, in response to the first operation performed on the identification of the target virtual skill by: in response to the first operation performed on the identification of the target virtual skill, detecting whether a direction of a gaze of the target virtual character intersects a virtual ground in the virtual game scene; alternatively, in response to the first operation performed on the identification of the target virtual skill, detecting whether a direction of a gaze of the target virtual character intersects a surface of a virtual obstacle in the virtual game scene.
Optionally, the apparatus is configured to revive the target virtual character at the set target position when the revival condition corresponding to the target virtual skill is met by: under the condition that the target virtual character is killed, reviving the target virtual character on the set target position; or reviving the target virtual character at the set target position when the state of the target virtual character is in the controlled state; or reviving the target virtual character at the set target position when the target time length counted by the target timer is reached, wherein the target timer is a timer started when the target position in the virtual game scene is set as the revival position of the target virtual character, and the target time length represents the effective time length for setting the target position as the revival position.
Optionally, the apparatus is further configured to: starting a target timer when a target position in the virtual game scene is set as a revival position of the target virtual character, wherein a target time length timed by the target timer represents an effective time length for setting the target position as the revival position; and under the condition that the reviving condition is not met in the target time length, when the target time length is reached, the target position is not set as the reviving position.
Optionally, the apparatus is configured to revive the target virtual character at the set target position when a revival condition corresponding to the target virtual skill is met by: reviving the target virtual character on the set target position under the condition that the target virtual character is killed within the target time length; or under the condition that the target virtual character is killed in the target time length, reviving the target virtual character on the set target position when the target virtual character reaches the target time length.
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 yet another aspect of embodiments herein, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the control method of the virtual character as above.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the control method of the virtual character through the computer program.
In the embodiment of the invention, a virtual game scene where a target virtual character is located and a target virtual skill identifier of the target virtual character are displayed, a first operation executed on the target virtual skill identifier is responded, the target position in the virtual game scene is set as a revival position of the target virtual character, when a revival condition corresponding to the target virtual skill is met, the target virtual character is revived at the set target position, the target virtual skill which is allowed to revive is configured for the target virtual character, and the first operation is executed to set the revival position, so that the aim of allowing the virtual character to revive at the position expected by a player is achieved, the participation efficiency of the virtual character participating in a game in one game is improved, and the technical effect of the game experience of the player is improved, and the technical problem that the participation efficiency of the virtual character in one game is low in the related technology is solved.
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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram 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 illustrating an alternative method for controlling a virtual character according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative method for controlling a virtual character according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an alternative virtual character control method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative virtual character control method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an alternative method for controlling a virtual character according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating an alternative method for controlling a virtual character according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an alternative method for controlling a virtual character according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating an alternative method for controlling a virtual character according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an alternative method for controlling a virtual character according to an embodiment of the present invention;
FIG. 11 is a schematic structural diagram of an alternative control device for a virtual character according to an embodiment of the present invention;
FIG. 12 is a block diagram of an alternative computer product in accordance with embodiments of the present invention;
fig. 13 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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 nouns or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
shooting application: including, but not limited to, first person shooter applications, third person shooter applications, etc., all games that use hot arms for remote attacks.
A First-person shooting application (FPS) belongs to a branch of an Action Game (ACT), and as the name suggests, the First-person perspective shooting application is a shooting application that shoots at the subjective perspective of an operator.
A Third person shooter application (TPS), also a type of shooter application, differs from the first person shooter application in that the operator-controlled virtual control object is visible in the application display interface.
The invention is illustrated below with reference to examples:
according to an aspect of the embodiment of the present invention, a method for controlling a virtual character is provided, and optionally, in this embodiment, the method for controlling a virtual character may be applied to a hardware environment formed by 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 via a network, and may be used to provide services for the terminal or applications installed on the terminal, such as video applications, instant messaging applications, browser applications, educational applications, game applications, and 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, and the network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other wireless communication enabled networks, terminal device 103 may be an application configured terminal, and may include, but is not limited to, at least one of: a Mobile phone (e.g., an Android Mobile phone, an iOS Mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, an MID (Mobile Internet Devices), a PAD, a desktop computer, an intelligent television, etc., where the server may be a single server, or a server cluster consisting of a plurality of servers, or a cloud server, and the application 107 using the control method for the virtual role is displayed through the terminal device 103.
As shown in fig. 1, the method for controlling the virtual character can be implemented in the terminal device 103 by the following steps:
s1, displaying a virtual game scene where the target virtual character is located and an identification of target virtual skills of the target virtual character, wherein the target virtual skills are used for allowing the target virtual character to revive at a set revival position;
s2, responding to the first operation executed on the identification of the target virtual skill, and setting the target position in the virtual game scene as the revival position of the target virtual character;
and S3, if the revival condition corresponding to the target virtual skill is satisfied, reviving the target virtual character at the set target position.
Optionally, in this embodiment, the control method of the virtual role may also be implemented by a server, for example, implemented 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 the target virtual character is located and an identification of a target virtual skill of the target virtual character, wherein the target virtual skill is used for allowing the target virtual character to revive at a set revival position;
s204, in response to a first operation executed on the identification of the target virtual skill, setting a target position in the virtual game scene as a revival position of the target virtual character, wherein the target position is a position determined in the virtual game scene by using the target virtual skill;
and S206, reviving the target virtual character at the set target position when the revival condition corresponding to the target virtual skill is met.
Alternatively, in this embodiment, the control method of the virtual object may be applied to a shooting game application installed on a computer device such as a Mobile phone (e.g., an Android Mobile phone, an iOS Mobile phone, etc.), a notebook computer, a tablet computer, a palm computer, an MID (Mobile Internet Devices), a PAD, a desktop computer, a smart television, etc., and the target shooting game application includes a first-person shooting game application, a third-person shooting game application, a shooting game application capable of switching between a first person and a third person, etc., where fig. 3 is a schematic diagram of a control method of a virtual character according to an embodiment of the present invention, as shown in fig. 3, the application display interfaces may be divided into a first-person display interface 301 and a third-person display interface 303, and include but are not limited to a display interface for switching between a first person and a third person by using a viewing angle switching key, a first virtual prop controlled by a first virtual operation object may be displayed in a target game application utilizing an environment as shown in fig. 3.
Optionally, in this embodiment, the type of the game application may include, but is not limited to, at least one of the following: two-dimensional (2D) game applications, Three-dimensional (3D) game applications, Virtual Reality (VR) game applications, Augmented Reality (AR) game applications, Mixed Reality (MR) game applications.
Optionally, in this embodiment, the game screen of the currently running one game may include, but is not limited to, being rendered by the terminal according to the shooting game application data issued by the server, and may also include, but is not limited to, being rendered by the terminal according to the stored data of the shooting game application.
Optionally, in this embodiment, the target virtual character includes, but is not limited to, a virtual operation object controlled by the user through a participation account in the shooting game application, and may also include, but is not limited to, a virtual object that is preset by a system generated by a server and is in the same battle as the virtual character controlled by the participation account.
The above is merely an example, and the present embodiment is not limited in any way.
Optionally, in this embodiment, the application scenario of the control method for the virtual character may include, but is not limited to, target game applications in various application scenarios such as medical treatment, finance, credit investigation, banking, government affairs, energy, education, security, building, game, traffic, internet of things, industry, and the like.
Optionally, in this embodiment, the target virtual skill may include, but is not limited to, a virtual skill pre-assigned by the server, or a virtual skill set by the operator in a setting interface pre-configured by the server. The target virtual skill may be configured on the virtual attack prop in a preset manner, and may include, but is not limited to, configuring a virtual skill that is allowed to be used only when the target virtual character accumulates a preset number of virtual resources, or a virtual skill that is allowed to be used only when a duration of the target virtual character participating in a game reaches a preset threshold, so as to implement triggering of the target virtual skill, which may be triggered by, but is not limited to, a preset interactive button in a game interface.
For example, fig. 4 is a schematic diagram of another virtual character control method according to an embodiment of the present invention, and as shown in fig. 4, the configuration manner of the target virtual skills may include, but is not limited to, the following steps:
s1, performing interactive operation on the interactive object 404 in the configuration interface 402 to select revival skills;
s2, after the revival skill is selected, the interactive object 406 is interactively operated to configure the revival skill to the target virtual character, so that the target virtual character allows the target virtual skill (revival skill) to be used during the process of participating in a game.
The above is merely an example, and the present embodiment is not limited in any way.
Optionally, in this embodiment, the first interaction operation may include, but is not limited to, clicking, sliding, long-pressing, releasing, and the like, and may further include, but is not limited to, one or a combination of more of voice recognition, motion capture, and the like, and the second interaction operation may include, but is not limited to, being configured in the same manner or a different manner as the first interaction operation.
Optionally, in this embodiment, the first operation may be set to be a click, a long press, a double click, or the like, and may further include, but is not limited to, a combination of various interaction operation manners, such as a click and a release, the target virtual skill is released by clicking to trigger the target virtual skill, and the target position in the virtual game scene is set to be the revival position of the target virtual character by releasing after the identifier of the target virtual skill is displayed in the target game application screen.
For example, fig. 5 is a schematic diagram of a control method for a virtual character according to another embodiment of the present invention, and as shown in fig. 5, the control method for a virtual character may include, but is not limited to, the following steps:
s1, displaying the virtual game scene and the mark of the target virtual skill in the target virtual character in the target game application;
s2, responding to the first operation executed on the identification of the target virtual skill, and setting the target position in the virtual game scene as the revival position of the target virtual character;
s3, when the virtual life value of the target virtual skill becomes 0, the target virtual character is revived to the set target position.
The above is merely an example, and the present embodiment is not limited in any way.
By the embodiment, a virtual game scene where a target virtual character is located and a target virtual skill identifier of the target virtual character are displayed, a first operation executed on the target virtual skill identifier is responded, a target position in the virtual game scene is set as a reviving position of the target virtual character, when a reviving condition corresponding to the target virtual skill is met, the target virtual character is revived at the set target position, the target virtual skill which is allowed to revive is configured for the target virtual character, and the first operation is executed to set the reviving position, so that the aim of allowing the virtual character to revive at a position expected by a player is fulfilled, the participation efficiency of the virtual character in participating in a game is improved, and the technical effect of game experience of the player is improved, and the technical problem that the participation efficiency of the virtual character in one game is low in the related technology is solved.
As an alternative, in response to a first operation performed on the identification of the target virtual skill, setting a target position in the virtual game scene as a revival position of the target virtual character includes:
and in response to a first operation performed on the identification of the target virtual skill, displaying a target identification on a target position of the virtual game scene, wherein the target identification is used for representing that the target position is set to be a revival position of the target virtual character, and the distance between the target position and the target virtual character is less than or equal to a preset distance threshold value.
Optionally, in this embodiment, the target identifier may include, but is not limited to, an identifier associated with the target virtual skill, and may include, but is not limited to, an identifier for marking a position in a virtual game scene, for example, a light pillar, a virtual object, and the like.
Optionally, in this embodiment, the preset distance threshold is flexibly configured by a plan or a worker, and may also be configured to be related to the target virtual skill, for example, in a case that the target virtual skill is a virtual skill which is allowed to be used only when a preset number of virtual resources need to be accumulated, the preset distance threshold may be matched with the number of virtual resources, and when the number of virtual resources accumulated by the target virtual character is more, the preset distance threshold is larger.
For example, fig. 6 is a schematic diagram of another virtual character control method according to an embodiment of the present invention, as shown in fig. 6, a point 604 represents a position of a target virtual character, and a point 606 represents a target position, where a distance between the point 604 and the point 606 is a distance between the target position and the target virtual character, a circular detection frame with a preset distance threshold as a radius is configured in advance with the target virtual character as a center, and when the point 606 is located inside the circular detection frame, it is determined that the distance between the target position and the target virtual character is smaller than or equal to the preset distance threshold.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment, the target identification is displayed on the target position of the virtual game scene under the condition that the distance between the target position and the target virtual character is smaller than or equal to the preset distance threshold, the range can be released for the target virtual skill, so that the virtual character is allowed to revive when the distance between the virtual character controlled by the player and the reviving position is within the preset distance threshold, the balance of game application is improved, and the game experience of the player is improved.
As an alternative, in response to a first operation performed on the identification of the target virtual skill, displaying a target identification on a target location of the virtual game scene, includes:
detecting, in response to a first operation performed on the identification of the target virtual skill, whether a direction of a centroid of the target virtual character intersects a virtual surface in the virtual game scene on which the target virtual character is permitted to stand;
and under the condition that the center aligning direction is detected to intersect with the virtual surface, and the distance between the intersection position of the center aligning direction and the virtual surface and the target virtual character is smaller than or equal to a preset distance threshold value, setting the intersection position of the center aligning direction and the virtual surface as a revival position, and displaying a target identifier on the intersection position of the center aligning direction and the virtual surface.
Optionally, in this embodiment, the virtual surface allowing the target virtual character to stand may include, but is not limited to, a virtual ground, a virtual obstacle, a virtual building, a virtual sea surface, and the like.
Optionally, in this embodiment, the centroid direction is an orientation of a virtual centroid controlled by the target virtual character, and the intersecting position of the centroid direction and the virtual surface may include, but is not limited to, a position where a centroid ray contacts the virtual surface after being emitted.
For example, fig. 7 is a schematic diagram of another virtual character control method according to an embodiment of the present invention, as shown in fig. 7, taking an example in which a virtual surface is a surface of a virtual obstacle, a centroid emits a centroid ray to the virtual obstacle, an intersection position with the virtual obstacle is a position 702, when a distance between the position 702 and a position where a target virtual character is located is less than or equal to a preset distance threshold, the intersection position of the centroid direction and the virtual surface is set as a revival position, and a target identifier 704 is displayed at the intersection position of the centroid direction and the virtual surface.
As an optional solution, the method further comprises:
under the condition that the distance between the intersection position of the centroid direction and the virtual surface and the target virtual character is larger than a preset distance threshold, displaying a first prohibition identifier on the intersection position of the centroid direction and the virtual surface, wherein the first prohibition identifier is used for indicating that the intersection position of the centroid direction and the virtual surface is not allowed to be set as a revival position and/or prompting that the use range of the target virtual skill is exceeded; and/or
And in the case that the quasi-center direction is detected not to intersect with the virtual surface and the quasi-center direction intersects with the virtual obstacle, displaying a second forbidding identification on the intersection position of the quasi-center direction and the virtual obstacle, wherein the second forbidding identification is used for indicating that the intersection position of the quasi-center direction and the virtual obstacle is not allowed to be set as a revival position.
Optionally, in this embodiment, the first prohibition identifier may include, but is not limited to, a text identifier, an image identifier, an animation identifier, and the like, and may further include, but is not limited to, a voice identifier and the like that are not displayed on the game screen, but that prompt the player that the intersection position of the direction of the center of gravity and the virtual surface is not allowed to be set as the revival position, and/or prompt information that exceeds the use range of the target virtual skill.
Optionally, in this embodiment, the second prohibition indication may include, but is not limited to, a text indication, an image indication, and an animation indication, and may be the same as or different from the first prohibition indication, and specifically, may include, but is not limited to, configuring the first prohibition indication as an image indication, for example, a prohibition symbol, and configuring the second prohibition indication as a text indication, for example, a text description, to inform the player of a specific reason why the intersecting position is not allowed to be set as the revival position.
As an optional solution, the method further comprises:
under the condition that the distance between the intersection position of the direction of the center of alignment and the virtual surface and the target virtual character is larger than a preset distance threshold value, responding to the first direction adjustment operation, and adjusting the direction of the center of alignment to a first target direction; under the condition that the first target direction intersects with the virtual surface and the distance between the intersection position of the first target direction and the virtual surface and the target virtual character is smaller than or equal to a preset distance threshold value, setting the intersection position of the first target direction and the virtual surface as a revival position, and displaying a target mark on the intersection position of the first target direction and the virtual surface; alternatively, the first and second electrodes may be,
under the condition that the distance between the intersection position of the collimation direction and the virtual surface and the target virtual character is larger than a preset distance threshold value, responding to the movement operation of the target virtual character, and adjusting the collimation direction to a second target direction; and under the condition that the second target direction intersects with the virtual surface and the distance between the intersection position of the second target direction and the virtual surface and the target virtual character is less than or equal to a preset distance threshold value, setting the intersection position of the second target direction and the virtual surface as a revival position, and displaying a target mark on the intersection position of the second target direction and the virtual surface.
Optionally, in this embodiment, the first direction adjustment operation may include, but is not limited to, being implemented by performing an interactive operation on a joystick controlling the center of alignment, for example, the joystick may be controlled to move downward to adjust the center of alignment direction downward, so that a distance between an intersection position of the first target direction and the virtual surface and the target virtual character is smaller than a distance between an intersection position of the unadjusted center of alignment direction and the virtual surface and the target virtual character.
Optionally, in this embodiment, the moving operation may include, but is not limited to, performing an interactive operation on a joystick controlling the center of alignment, for example, the joystick may be controlled to move forward to control the target virtual character to adjust downward close to the virtual surface center of alignment direction, so that a distance between an intersection position of the second target direction and the virtual surface and the target virtual character is smaller than a distance between an intersection position of the unadjusted front center of alignment direction and the virtual surface and the target virtual character.
The above is merely an example, and the present embodiment is not limited in any way.
As an optional solution, the method further comprises:
under the condition that the collimation direction is not intersected with the virtual surface and the collimation direction is intersected with the virtual obstacle, responding to a second direction adjusting operation, and adjusting the collimation direction to a third target direction; under the condition that the third target direction intersects with the virtual surface and the distance between the intersection position of the third target direction and the virtual surface and the target virtual character is smaller than or equal to a preset distance threshold value, setting the intersection position of the third target direction and the virtual surface as a revival position, and displaying a target mark on the intersection position of the third target direction and the virtual surface; alternatively, the first and second electrodes may be,
under the condition that the direction of the collimation center is not intersected with the virtual surface and the direction of the collimation center is intersected with a virtual obstacle, responding to the movement operation of a target virtual character, and adjusting the direction of the collimation center to a fourth target direction; and under the condition that the fourth target direction intersects with the virtual surface and the distance between the intersection position of the fourth target direction and the virtual surface and the target virtual character is less than or equal to a preset distance threshold value, setting the intersection position of the fourth target direction and the virtual surface as a revival position, and displaying a target mark on the intersection position of the fourth target direction and the virtual surface.
Optionally, in this embodiment, the virtual obstacle is configured as a virtual surface on which the target virtual character is not allowed to stand, and therefore, it is necessary to adjust the intersection position of the centroid direction and the virtual surface by adjusting the centroid direction or moving the target virtual character, thereby adjusting the distance between the intersection position and the target virtual character.
Optionally, in this embodiment, the second direction adjustment operation may include, but is not limited to, being implemented by performing an interactive operation on a rocker controlling the center of alignment, for example, the rocker may be controlled to move upward to adjust the center of alignment direction, so that the intersection position of the third target direction and the virtual surface avoids the virtual obstacle, and the distance between the target virtual character and the intersection position of the third target direction and the virtual surface is smaller than the distance between the target virtual character and the intersection position of the center of alignment direction and the virtual surface before the adjustment and the target virtual character.
Optionally, in this embodiment, the moving operation may include, but is not limited to, performing an interactive operation on a joystick controlling the center of alignment, for example, the joystick may be controlled to move leftward to control the target virtual character to move leftward, so that the intersection position of the fourth target direction and the virtual surface avoids the virtual obstacle, and the distance from the target virtual character is smaller than the distance between the intersection position of the unadjusted center of alignment direction and the virtual surface and the target virtual character.
The above is merely an example, and the present embodiment is not limited in any way.
As an alternative, detecting whether the direction of the target virtual character's centroid intersects a virtual surface in the virtual game scene on which the target virtual character is permitted to stand, in response to a first operation performed on the identification of the target virtual skill, includes:
detecting, in response to a first operation performed on the identification of the target virtual skill, whether a direction of the gaze of the target virtual character intersects a virtual ground in the virtual game scene; alternatively, the first and second electrodes may be,
in response to a first operation performed on the identification of the target virtual skill, it is detected whether a direction of the gaze of the target virtual character intersects a surface of a virtual obstacle in the virtual game scene.
Optionally, in this embodiment, the detecting whether the direction of the centroid of the target virtual character intersects with the virtual ground in the virtual game scene or the detecting whether the direction of the centroid of the target virtual character intersects with the surface of the virtual obstacle in the virtual game scene may include, but is not limited to, determining by a normal vector angle between a centroid ray and the surface of the virtual ground or the virtual obstacle.
For example, fig. 8 is a schematic diagram of another virtual character control method according to an embodiment of the present invention, as shown in fig. 8, when the target virtual character releases the target virtual skill and enters a mark state, a ray is emitted from the direction of the collimation at this time, the ray detects all objects in the map, when an object is detected, the ray returns to the collision point and the information of the collision object, the distance can be calculated according to the collision point, the distance is larger than the effective range, the distance is cancelled, the normal vector can be calculated according to the intersection position of the collision, and then the intersection angle is obtained by comparing with the reference line, wherein the reference vector is a variable that is perpendicular to the virtual ground or the surface of the virtual obstacle, therefore, when the intersection angle between the normal vector and the reference vector is smaller, the intersection position is closer to the ground, a threshold value can be preconfigured for the above-mentioned intersection angle, when the intersection angle is smaller than the preset threshold value, it is determined whether the direction of the aim virtual character's aim intersects a virtual ground in the virtual game scene or whether the direction of the aim virtual character's aim direction intersects a surface of a virtual obstacle in the virtual game scene.
As an optional scheme, when a revival condition corresponding to the target virtual skill is met, reviving the target virtual character at the set target position includes:
under the condition that the target virtual character is killed, reviving the target virtual character on the set target position; or
Reviving the target virtual character at the set target position when the state of the target virtual character is in the controlled state; or
And under the condition that the target time length counted by the target timer is reached, reviving the target virtual character at the set target position, wherein the target timer is a timer started when the target position in the virtual game scene is set as the reviving position of the target virtual character, and the target time length represents the effective time length for setting the target position as the reviving position.
Optionally, in this embodiment, the killing of the target virtual character may include, but is not limited to, the virtual life value of the target virtual character being reduced to 0, or the target virtual character being in a game state in which the target virtual character cannot continue to participate in a game.
Alternatively, in the present embodiment, the state in which the state of the target virtual character is controlled may include, but is not limited to, the state in which the target virtual character is controlled such as being incapable of performing a shooting operation, being incapable of moving, and the like.
Optionally, in this embodiment, the target duration counted by the target timer may include, but is not limited to, a time indicating that the target avatar is allowed to revive, and after the target avatar sets the valid duration after the revival position, the target avatar revives directly at the revival position.
The above is merely an example, and specifically, the revival condition corresponding to the target virtual skill may also be configured to include a combination of one or more of the above.
For example, fig. 9 is a schematic diagram of a control method for a virtual character according to another embodiment of the present invention, and as shown in fig. 9, the method may include, but is not limited to, the following steps:
s902, starting;
s904, configuring revival skills in advance so that the revival skills allow activation to be in a usable state;
s906, determining whether the skill key is pressed (corresponding to the first operation described above), and if the determination result is no, returning to step S904;
s908, displaying a mark when the judgment result is yes;
s910, judging whether obstacles exist or not or exceed the skill range;
s912, displaying an unmarked and reselecting a position under the condition that the judgment result is yes;
s914, under the condition that the judgment result is negative, determining that the current position can be marked;
s916, judging whether the skill key is loosened, and continuously displaying the markable current position under the condition that the skill key is not loosened;
s918, releasing the skill and marking a revival position under the condition of loosening;
s920, judging whether the target virtual role is killed or counting down is finished, and continuously displaying the revival position of the mark under the condition that the judgment result is negative;
s922, under the condition that the target virtual character is killed or the countdown is finished, controlling the target virtual character to revive at the mark point, and reducing the virtual life value (blood volume) by half;
and S924, ending.
The above is merely an example, and the present embodiment is not limited in any way.
As an optional solution, the method further comprises:
starting a target timer when a target position in a virtual game scene is set as a revival position of a target virtual character, wherein a target time length timed by the target timer represents an effective time length for setting the target position as the revival position;
and under the condition that the revival condition is not met in the target time length, canceling the setting of the target position as the revival position when the target time length is reached.
Alternatively, in the present embodiment, the above setting may be cancelled in the process of having set the target position in the virtual game scene as the revival position of the target virtual character.
For example, after the target virtual character has finished setting the target position in the virtual game scene as the reviving position of the target virtual character, the target virtual character desires to change the reviving position that has been set, and at this time, it is necessary to cancel the reviving position that has been set before and then reselect a new target position as a new reviving position.
As an optional scheme, when a revival condition corresponding to the target virtual skill is met, reviving the target virtual character at the set target position includes:
reviving the target virtual character at the set target position under the condition that the target virtual character is killed within the target time length; alternatively, the first and second electrodes may be,
and under the condition that the target virtual character is killed in the target time length, reviving the target virtual character at the set target position when the target time length is reached.
Optionally, in this embodiment, in the case that the target virtual character is killed within the target duration, reviving the target virtual character at the set target location may be understood as reviving the target virtual character at a reviving location immediately after the target virtual character is killed.
Optionally, in this embodiment, in the case that the target avatar is killed within the target time duration, if it is understood that the target avatar is revived at the set target position for the target time duration, it is necessary to revive the target avatar at the set target position after waiting for the timer to reach the target time duration.
For example, fig. 10 is a schematic diagram of still another control method for a virtual character according to an embodiment of the present invention, as shown in fig. 10, in a case where a target virtual character is killed within a target time duration (corresponding to the virtual game scenario 1002 in fig. 10) after setting a target position in a virtual game scenario to a revival position of the target virtual character, the target virtual character is revived at the set target position (corresponding to the virtual game scenario 1006 in fig. 10), or in a case where the target virtual character is killed within the target time duration (corresponding to the virtual game scenario 1004 in fig. 10) after setting a target position in a virtual game scenario to a revival position of the target virtual character, the target virtual character is revived at the set target position (corresponding to the virtual game scenario 1006 in fig. 10).
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments of the present invention, there is also provided a control apparatus for a virtual character, which is used for implementing the control method for a virtual character. As shown in fig. 11, the apparatus includes:
a display module 1102, configured to display a virtual game scene where a target virtual character is located and an identifier of a target virtual skill that the target virtual character has, where the target virtual skill is used to allow the target virtual character to revive at a set revival position;
a setting module 1104, configured to set, in response to a first operation performed on the identifier of the target virtual skill, a target position in the virtual game scene as a revival position of the target virtual character, where the target position is a position determined in the virtual game scene using the target virtual skill;
and a processing module 1106, configured to revive the target virtual character at the set target position when a revival condition corresponding to the target virtual skill is met.
As an optional solution, the setting module 1104 includes:
and the display unit is used for responding to a first operation executed on the target virtual skill identification, and displaying a target identification on a target position of the virtual game scene, wherein the target identification is used for representing that the target position is set to be a revival position of the target virtual character, and the distance between the target position and the target virtual character is smaller than or equal to a preset distance threshold value.
As an alternative, the apparatus is configured to display the target identity on the target position of the virtual game scene in response to a first operation performed on the identity of the target virtual skill by:
detecting, in response to a first operation performed on the identification of the target virtual skill, whether a direction of a centroid of the target virtual character intersects a virtual surface in the virtual game scene on which the target virtual character is permitted to stand;
and under the condition that the center aligning direction is detected to intersect with the virtual surface, and the distance between the intersection position of the center aligning direction and the virtual surface and the target virtual character is smaller than or equal to a preset distance threshold value, setting the intersection position of the center aligning direction and the virtual surface as a revival position, and displaying a target identifier on the intersection position of the center aligning direction and the virtual surface.
As an optional solution, the apparatus is further configured to:
under the condition that the distance between the intersection position of the centroid direction and the virtual surface and the target virtual character is larger than a preset distance threshold, displaying a first prohibition identifier on the intersection position of the centroid direction and the virtual surface, wherein the first prohibition identifier is used for indicating that the intersection position of the centroid direction and the virtual surface is not allowed to be set as a revival position and/or prompting that the use range of the target virtual skill is exceeded; and/or
And in the case that the quasi-center direction is detected not to intersect with the virtual surface and the quasi-center direction intersects with the virtual obstacle, displaying a second forbidding identification on the intersection position of the quasi-center direction and the virtual obstacle, wherein the second forbidding identification is used for indicating that the intersection position of the quasi-center direction and the virtual obstacle is not allowed to be set as a revival position.
As an optional solution, the apparatus is further configured to:
under the condition that the distance between the intersection position of the direction of the center of alignment and the virtual surface and the target virtual character is larger than a preset distance threshold value, responding to the first direction adjustment operation, and adjusting the direction of the center of alignment to a first target direction; under the condition that the first target direction intersects with the virtual surface and the distance between the intersection position of the first target direction and the virtual surface and the target virtual character is smaller than or equal to a preset distance threshold value, setting the intersection position of the first target direction and the virtual surface as a revival position, and displaying a target mark on the intersection position of the first target direction and the virtual surface; alternatively, the first and second electrodes may be,
under the condition that the distance between the intersection position of the collimation direction and the virtual surface and the target virtual character is larger than a preset distance threshold value, responding to the movement operation of the target virtual character, and adjusting the collimation direction to a second target direction; and under the condition that the second target direction intersects with the virtual surface and the distance between the intersection position of the second target direction and the virtual surface and the target virtual character is less than or equal to a preset distance threshold value, setting the intersection position of the second target direction and the virtual surface as a revival position, and displaying a target mark on the intersection position of the second target direction and the virtual surface.
As an optional solution, the apparatus is further configured to:
under the condition that the collimation direction is not intersected with the virtual surface and the collimation direction is intersected with the virtual obstacle, responding to a second direction adjusting operation, and adjusting the collimation direction to a third target direction; under the condition that the third target direction intersects with the virtual surface and the distance between the intersection position of the third target direction and the virtual surface and the target virtual character is smaller than or equal to a preset distance threshold value, setting the intersection position of the third target direction and the virtual surface as a revival position, and displaying a target mark on the intersection position of the third target direction and the virtual surface; alternatively, the first and second electrodes may be,
under the condition that the direction of the collimation center is not intersected with the virtual surface and the direction of the collimation center is intersected with a virtual obstacle, responding to the movement operation of a target virtual character, and adjusting the direction of the collimation center to a fourth target direction; and under the condition that the fourth target direction intersects with the virtual surface and the distance between the intersection position of the fourth target direction and the virtual surface and the target virtual character is less than or equal to a preset distance threshold value, setting the intersection position of the fourth target direction and the virtual surface as a revival position, and displaying a target mark on the intersection position of the fourth target direction and the virtual surface.
As an alternative, the apparatus is configured to detect whether the direction of the target virtual character's gaze intersects a virtual surface in the virtual game scene on which the target virtual character is permitted to stand, in response to a first operation performed on the identification of the target virtual skill, by:
detecting, in response to a first operation performed on the identification of the target virtual skill, whether a direction of the gaze of the target virtual character intersects a virtual ground in the virtual game scene; alternatively, the first and second electrodes may be,
in response to a first operation performed on the identification of the target virtual skill, it is detected whether a direction of the gaze of the target virtual character intersects a surface of a virtual obstacle in the virtual game scene.
As an alternative, the apparatus is configured to revive the target virtual character at the set target position when the revival condition corresponding to the target virtual skill is satisfied, by:
under the condition that the target virtual character is killed, reviving the target virtual character on the set target position; or
Reviving the target virtual character at the set target position when the state of the target virtual character is in the controlled state; or
And under the condition that the target time length counted by the target timer is reached, reviving the target virtual character at the set target position, wherein the target timer is a timer started when the target position in the virtual game scene is set as the reviving position of the target virtual character, and the target time length represents the effective time length for setting the target position as the reviving position.
As an optional solution, the apparatus is further configured to:
starting a target timer when a target position in a virtual game scene is set as a revival position of a target virtual character, wherein a target time length timed by the target timer represents an effective time length for setting the target position as the revival position;
and under the condition that the revival condition is not met in the target time length, canceling the setting of the target position as the revival position when the target time length is reached.
As an alternative, the apparatus is configured to revive the target virtual character at the set target position when the revival condition corresponding to the target virtual skill is satisfied, by:
reviving the target virtual character at the set target position under the condition that the target virtual character is killed within the target time length; alternatively, the first and second electrodes may be,
and under the condition that the target virtual character is killed in the target time length, reviving the target virtual character at the set target position when the target time length is reached.
According to an aspect of the application, there is provided a computer program product comprising a computer program/instructions containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1209, and/or installed from the removable medium 1211. When executed by the central processing unit 1201, the computer program performs various functions provided by the embodiments of the present application.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Fig. 12 schematically shows a block diagram of a computer system of an electronic device for implementing an embodiment of the present application.
It should be noted that the computer system 1200 of the electronic device shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 12, the computer system 1200 includes a Central Processing Unit 1201 (CPU), which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory 1202 (ROM) or a program loaded from a storage section 1208 into a Random Access Memory 1203 (RAM). In the random access memory 1203, various programs and data necessary for system operation are also stored. The cpu 1201, the rom 1202, and the ram 1203 are connected to each other by a bus 1204. An Input/Output interface 1205(Input/Output interface, i.e., I/O interface) is also connected to the bus 1204.
The following components are connected to the input/output interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output section 1207 including a Display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1208 including a hard disk and the like; and a communication section 1209 including a network interface card such as a local area network card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. The driver 1120 is also connected to the input/output interface 1205 as necessary. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 1120 as necessary, so that a computer program read out therefrom is mounted into the storage section 1208 as necessary.
In particular, according to embodiments of the present application, the processes described in the various method flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1209, and/or installed from the removable medium 1211. The computer program, when executed by the central processing unit 1201, performs various functions defined in the system of the present application.
According to 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, where the electronic device may be the terminal device or the server shown in fig. 1. The present embodiment takes the electronic device as a terminal device as an example for explanation. As shown in fig. 13, the electronic device comprises a memory 1302 and a processor 1304, wherein the memory 1302 stores a computer program, and the processor 1304 is configured to perform the steps of any of the above method embodiments by the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, displaying a virtual game scene where the target virtual character is located and an identification of target virtual skills of the target virtual character, wherein the target virtual skills are used for allowing the target virtual character to revive at a set revival position;
s2, responding to the first operation executed on the identification of the target virtual skill, and setting a target position in the virtual game scene as a revival position of the target virtual character, wherein the target position is a position determined in the virtual game scene by using the target virtual skill;
and S3, if the revival condition corresponding to the target virtual skill is satisfied, reviving the target virtual character at the set target position.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 13 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 13 is a diagram illustrating a structure of the electronic device. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 13, or have a different configuration than shown in FIG. 13.
The memory 1302 may be used to store software programs and modules, such as program instructions/modules corresponding to the virtual character control method and apparatus in the embodiments of the present invention, and the processor 1304 executes various functional applications and data processing by running the software programs and modules stored in the memory 1302, that is, the virtual character control method is implemented. The memory 1302 may include high speed random access memory and 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 1302 may further include memory located remotely from the processor 1304, which may be connected to the terminal over 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 1302 may be, but not limited to, specifically configured to store information such as a virtual game account number. As an example, as shown in fig. 13, the memory 1302 may include, but is not limited to, a display module 1102, a setting module 1104, and a processing module 1106 in the control device of the virtual character. In addition, the control device may further include, but is not limited to, other module units in the control device of the virtual character, which is not described in detail in this example.
Optionally, the transmitting device 1306 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1306 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmitting device 1306 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1308 for displaying the virtual game scene; and a connection bus 1310 for connecting the respective module parts in the above-described electronic apparatus.
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 a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to an aspect of the present application, there is provided a computer-readable storage medium from which a processor of a computer device reads computer instructions, the processor executing the computer instructions, causing the computer device to execute a control method of a virtual character provided in various optional implementations of the control aspect of the virtual character described above.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a virtual game scene where the target virtual character is located and an identification of target virtual skills of the target virtual character, wherein the target virtual skills are used for allowing the target virtual character to revive at a set revival position;
s2, responding to the first operation executed on the identification of the target virtual skill, and setting a target position in the virtual game scene as a revival position of the target virtual character, wherein the target position is a position determined in the virtual game scene by using the target virtual skill;
and S3, if the revival condition corresponding to the target virtual skill is satisfied, reviving the target virtual character at the set target position.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the 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 illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A control method of virtual characters, which is applied to a target game application, is characterized by comprising the following steps:
displaying a virtual game scene where a target virtual character is located and an identification of target virtual skills of the target virtual character, wherein the target virtual skills are used for allowing the target virtual character to revive at a set revival position;
setting a target position in the virtual game scene as the revival position in response to a first operation performed on the identification of the target virtual skill, wherein the target position is a position determined in the virtual game scene using the target virtual skill;
and when a revival condition corresponding to the target virtual skill is met, reviving the target virtual character on the target position.
2. The method of claim 1, wherein the setting a target position in the virtual game scene to a revival position of the target virtual character in response to the first operation performed on the identification of the target virtual skill comprises:
displaying a target identifier on the target position of the virtual game scene in response to a first operation performed on the target virtual skill identifier, wherein the target identifier is used for indicating that the target position is set as a revival position of the target virtual character, and the distance between the target position and the target virtual character is smaller than or equal to a preset distance threshold value.
3. The method of claim 2, wherein the displaying a target identification on the target location of the virtual game scene in response to a first operation performed on the identification of the target virtual skill comprises:
in response to the first operation performed on the identification of the target virtual skill, detecting whether a direction of a gaze of the target virtual character intersects a virtual surface in the virtual game scene on which the target virtual character is permitted to stand;
and under the condition that the center aligning direction is detected to intersect with the virtual surface, and the distance between the intersection position of the center aligning direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the center aligning direction and the virtual surface as the reviving position, and displaying the target identification on the intersection position of the center aligning direction and the virtual surface.
4. The method of claim 3, further comprising:
displaying a first prohibition identifier on the intersection position of the centroid direction and the virtual surface when the distance between the intersection position of the centroid direction and the virtual surface and the target virtual character is larger than the preset distance threshold, wherein the first prohibition identifier is used for indicating that the intersection position of the centroid direction and the virtual surface is not allowed to be set as the revival position and/or prompting that the usage range of the target virtual skill is exceeded; and/or
And in the case that the collimation direction is detected not to intersect with the virtual surface and the collimation direction intersects with a virtual obstacle, displaying a second forbidding identification on the intersection position of the collimation direction and the virtual obstacle, wherein the second forbidding identification is used for indicating that the intersection position of the collimation direction and the virtual obstacle is not allowed to be set as the revival position.
5. The method of claim 3, further comprising:
in the case that the distance between the intersection position of the direction of the center of sight and the virtual surface and the target virtual character is larger than the preset distance threshold, responding to a first direction adjustment operation, and adjusting the direction of the center of sight to a first target direction; when the first target direction intersects the virtual surface and the distance between the intersection position of the first target direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the first target direction and the virtual surface as the revival position, and displaying the target identification on the intersection position of the first target direction and the virtual surface; alternatively, the first and second electrodes may be,
under the condition that the distance between the intersection position of the collimation direction and the virtual surface and the target virtual character is larger than the preset distance threshold value, responding to the movement operation of the target virtual character, and adjusting the collimation direction to a second target direction; and when the second target direction intersects with the virtual surface and the distance between the intersection position of the second target direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the second target direction and the virtual surface as the revival position, and displaying the target identification on the intersection position of the second target direction and the virtual surface.
6. The method of claim 3, further comprising:
in response to a second direction adjustment operation, adjusting the isocenter direction to a third target direction in the event that it is detected that the isocenter direction does not intersect the virtual surface and the isocenter direction intersects a virtual obstacle; when the third target direction intersects the virtual surface and the distance between the intersection position of the third target direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the third target direction and the virtual surface as the revival position, and displaying the target identification on the intersection position of the third target direction and the virtual surface; alternatively, the first and second electrodes may be,
in the case that the direction of the center of gravity is detected not to intersect with the virtual surface and the direction of the center of gravity intersects with a virtual obstacle, adjusting the direction of the center of gravity to a fourth target direction in response to a moving operation of the target virtual character; and when the fourth target direction intersects with the virtual surface and the distance between the intersection position of the fourth target direction and the virtual surface and the target virtual character is smaller than or equal to the preset distance threshold, setting the intersection position of the fourth target direction and the virtual surface as the revival position, and displaying the target identification on the intersection position of the fourth target direction and the virtual surface.
7. The method of claim 3, wherein the detecting whether the direction of the target virtual character's gaze intersects a virtual surface in the virtual game scene that allows the target virtual character to stand in response to the first operation performed on the identification of the target virtual skill comprises:
in response to the first operation performed on the identification of the target virtual skill, detecting whether a direction of a gaze of the target virtual character intersects a virtual ground in the virtual game scene; alternatively, the first and second electrodes may be,
detecting whether a direction of a gaze of the target virtual character intersects a surface of a virtual obstacle in the virtual game scene in response to the first operation performed on the identification of the target virtual skill.
8. The method according to claim 1, wherein reviving the target virtual character at the set target position when the reviving condition corresponding to the target virtual skill is satisfied comprises:
under the condition that the target virtual character is killed, reviving the target virtual character on the set target position; or
Reviving the target virtual character at the set target position when the state of the target virtual character is in the controlled state; or
And in the case that the target time length counted by the target timer is reached, reviving the target virtual character at the set target position, wherein the target timer is a timer started when the target position in the virtual game scene is set as the reviving position of the target virtual character, and the target time length represents the effective time length for setting the target position as the reviving position.
9. The method of claim 1, further comprising:
starting a target timer when a target position in the virtual game scene is set as a revival position of the target virtual character, wherein a target time length timed by the target timer represents an effective time length for setting the target position as the revival position;
and under the condition that the reviving condition is not met in the target time length, when the target time length is reached, the target position is not set as the reviving position.
10. The method according to claim 8, wherein the reviving the target virtual character at the set target position when a reviving condition corresponding to the target virtual skill is satisfied comprises:
reviving the target virtual character on the set target position under the condition that the target virtual character is killed within the target time length; alternatively, the first and second electrodes may be,
and under the condition that the target virtual character is killed in the target time length, reviving the target virtual character on the set target position when the target virtual character reaches the target time length.
11. A control device for a virtual character, applied to a target game application, comprising:
the system comprises a display module, a judging module and a display module, wherein the display module is used for displaying a virtual game scene where a target virtual character is located and an identification of a target virtual skill which the target virtual character has, and the target virtual skill is used for allowing the target virtual character to revive at a set revival position;
a setting module, configured to set a target position in the virtual game scene as a revival position of the target virtual character in response to a first operation performed on the identification of the target virtual skill, where the target position is a position determined in the virtual game scene using the target virtual skill;
and the processing module is used for reviving the target virtual character on the set target position when the reviving condition corresponding to the target virtual skill is met.
12. The apparatus of claim 11, wherein the setup module comprises:
and the display unit is used for responding to a first operation executed on the target virtual skill identification, and displaying a target identification on the target position of the virtual game scene, wherein the target identification is used for representing that the target position is set as a revival position of the target virtual character, and the distance between the target position and the target virtual character is smaller than or equal to a preset distance threshold value.
13. A computer-readable storage medium, characterized in that it 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.
14. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps of the method as claimed in 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 of any of claims 1 to 10 by means of the computer program.
CN202111075653.2A 2021-09-14 2021-09-14 Virtual character control method and device, storage medium and electronic equipment Active CN113713384B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111075653.2A CN113713384B (en) 2021-09-14 2021-09-14 Virtual character control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111075653.2A CN113713384B (en) 2021-09-14 2021-09-14 Virtual character control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113713384A true CN113713384A (en) 2021-11-30
CN113713384B CN113713384B (en) 2023-07-14

Family

ID=78683597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111075653.2A Active CN113713384B (en) 2021-09-14 2021-09-14 Virtual character control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113713384B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090280908A1 (en) * 2008-05-12 2009-11-12 Microsoft Corporation Reward for resurrecting teammate in a multiplayer game
US20120108344A1 (en) * 2010-10-28 2012-05-03 KABUSHIKI KAISHA SQUARE ENIX (also trading as "SQUARE ENIX CO., LTD.") Game system, program for game system and information recording medium
CN102651742A (en) * 2011-02-23 2012-08-29 株式会社都比克 Massively mutliplayer online first person shooting game service system and method
CN107913521A (en) * 2017-11-09 2018-04-17 腾讯科技(深圳)有限公司 The display methods and device of virtual environment picture
CN110302537A (en) * 2019-07-10 2019-10-08 深圳市腾讯网域计算机网络有限公司 Virtual object control method, device, storage medium and computer equipment
CN110841290A (en) * 2019-11-08 2020-02-28 腾讯科技(深圳)有限公司 Processing method and device of virtual prop, storage medium and electronic device
CN110841289A (en) * 2019-10-30 2020-02-28 腾讯科技(深圳)有限公司 Control method and device of virtual operation object, storage medium and electronic device
CN111359222A (en) * 2020-03-09 2020-07-03 腾讯科技(深圳)有限公司 Virtual prop obtaining method and device, storage medium and electronic device
CN111672110A (en) * 2020-05-28 2020-09-18 腾讯科技(深圳)有限公司 Control method, device, storage medium and equipment for virtual role in virtual world
CN111773696A (en) * 2020-07-13 2020-10-16 腾讯科技(深圳)有限公司 Virtual object display method, related device and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090280908A1 (en) * 2008-05-12 2009-11-12 Microsoft Corporation Reward for resurrecting teammate in a multiplayer game
US20120108344A1 (en) * 2010-10-28 2012-05-03 KABUSHIKI KAISHA SQUARE ENIX (also trading as "SQUARE ENIX CO., LTD.") Game system, program for game system and information recording medium
CN102651742A (en) * 2011-02-23 2012-08-29 株式会社都比克 Massively mutliplayer online first person shooting game service system and method
CN107913521A (en) * 2017-11-09 2018-04-17 腾讯科技(深圳)有限公司 The display methods and device of virtual environment picture
CN110302537A (en) * 2019-07-10 2019-10-08 深圳市腾讯网域计算机网络有限公司 Virtual object control method, device, storage medium and computer equipment
CN110841289A (en) * 2019-10-30 2020-02-28 腾讯科技(深圳)有限公司 Control method and device of virtual operation object, storage medium and electronic device
CN110841290A (en) * 2019-11-08 2020-02-28 腾讯科技(深圳)有限公司 Processing method and device of virtual prop, storage medium and electronic device
CN111359222A (en) * 2020-03-09 2020-07-03 腾讯科技(深圳)有限公司 Virtual prop obtaining method and device, storage medium and electronic device
CN111672110A (en) * 2020-05-28 2020-09-18 腾讯科技(深圳)有限公司 Control method, device, storage medium and equipment for virtual role in virtual world
CN111773696A (en) * 2020-07-13 2020-10-16 腾讯科技(深圳)有限公司 Virtual object display method, related device and storage medium

Also Published As

Publication number Publication date
CN113713384B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN108211358B (en) Information display method and device, storage medium and electronic device
CN111298430A (en) Virtual item control method and device, storage medium and electronic device
CN111443848B (en) Information display method and device, storage medium and electronic device
CN112107861B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN113069767B (en) Virtual interaction method, device, terminal and storage medium
CN112107857B (en) Control method and device of virtual prop, storage medium and electronic equipment
US11020663B2 (en) Video game with automated screen shots
KR20220133279A (en) Voting result display method and apparatus, device, storage medium and program product
CN110917621B (en) Position display method and device, storage medium and electronic device
CN112426718A (en) Information sending method and device and electronic equipment
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
CN113304478A (en) Skill indicator control method and device, storage medium and electronic equipment
CN111258489B (en) Operation method and device of virtual prop and storage medium
CN111111219B (en) Control method and device of virtual prop, storage medium and electronic device
CN113813599B (en) Virtual character control method and device, storage medium and electronic equipment
CN113244615B (en) Chat panel display control method and device, storage medium and electronic equipment
CN113713384A (en) Control method and device of virtual role, storage medium and electronic equipment
CN114011071A (en) Control method and device of virtual role, storage medium and electronic equipment
CN113730910A (en) Method and device for processing virtual equipment in game and electronic equipment
CN113730908A (en) Screen display method and device, storage medium, computer program, and electronic apparatus
CN113893543A (en) Control method and device of virtual role, storage medium and electronic equipment
CN113713379B (en) Object matching method and device, storage medium and electronic equipment
CN114840285B (en) Processing method and device in game, terminal equipment and storage medium
CN116617665A (en) Virtual character control method, device, electronic equipment and storage medium

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