[go: up one dir, main page]

CN111111194A - Virtual object control method, device, storage medium and electronic device - Google Patents

Virtual object control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN111111194A
CN111111194A CN201911193061.3A CN201911193061A CN111111194A CN 111111194 A CN111111194 A CN 111111194A CN 201911193061 A CN201911193061 A CN 201911193061A CN 111111194 A CN111111194 A CN 111111194A
Authority
CN
China
Prior art keywords
human
virtual object
virtual
computer interaction
role
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
CN201911193061.3A
Other languages
Chinese (zh)
Other versions
CN111111194B (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 CN201911193061.3A priority Critical patent/CN111111194B/en
Publication of CN111111194A publication Critical patent/CN111111194A/en
Application granted granted Critical
Publication of CN111111194B publication Critical patent/CN111111194B/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/55Controlling game characters or game objects based on the game progress
    • A63F13/57Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
    • A63F13/577Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using determination of contact between game characters or objects, e.g. to avoid collision between virtual racing cars
    • 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
    • A63F13/56Computing the motion of game characters with respect to other game characters, game objects or elements of the game scene, e.g. for simulating the behaviour of a group of virtual soldiers or for path finding

Landscapes

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

Abstract

The invention discloses a virtual object control method, a virtual object control device, a storage medium and an electronic device, wherein the virtual object control method comprises the following steps: detecting a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client, wherein the first human-computer interaction client is used for controlling a first virtual role, and the first instruction is used for indicating to place a virtual object; responding to the first instruction, and controlling to place the virtual object at the target position; acquiring role information of a second virtual role of which the distance to the target position is smaller than the target distance value, wherein the first virtual role and the second virtual role belong to different marketing; and sending notification information to a second human-computer interaction client for controlling the second virtual role according to the role information of the second virtual role, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface. The invention solves the problem of poor defense performance.

Description

Virtual object control method, device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a virtual object control method, a virtual object control device, a storage medium and an electronic device.
Background
At present, in a game scene, players are often required to fight, and a fighting mode commonly used when the players fight is attack and defense. For defense, special defense props (such as a shield) are usually adopted, and the defense props are placed in a game scene by releasing corresponding skills, so that a player can avoid attack when the player avoids behind the defense props.
In practice, the defensive prop is found to be large in size, and if the defensive prop needs to be placed in a game scene, the defensive prop needs to be placed at a corresponding position in the current game scene, so that the defensive prop can only be applied to a place where the game scene is relatively spacious. However, the defense prop is placed in a place where a game scene is relatively spacious, and an enemy can bypass the defense prop to attack from behind the player, so that the defense performance of the defense prop cannot meet the requirements of the player easily. It can be seen that the current defense method has the problem of low defense performance.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a virtual object control method, a virtual object control device, a storage medium and an electronic device, and at least solves the technical problem of poor defense performance.
According to an aspect of an embodiment of the present invention, there is provided a virtual object control method, including: detecting a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client, wherein the first human-computer interaction client is used for controlling a first virtual role, the first instruction is used for indicating to place a virtual object, and the virtual object is used for defending against attack on the first virtual role; responding to the first instruction, and controlling to place the virtual object at a target position; acquiring role information of a second virtual role of which the distance between the first virtual role and the target position is smaller than a target distance value, wherein the first virtual role and the second virtual role belong to different marketing; and sending notification information to a second human-computer interaction client for controlling the second virtual character according to the character information of the second virtual character, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface.
According to another aspect of the embodiments of the present invention, there is also provided a virtual object control method, including: receiving notification information sent by a first human-computer interaction client, wherein the notification information is information sent by a first virtual character controlled by the first human-computer interaction client after a virtual object is controlled to be placed at a target position, the virtual object is used for defending against attacks on the first virtual character, and the notification information is used for indicating that first interference information corresponding to the virtual object is displayed on a second human-computer interaction client of a second virtual character of which the distance between the control client and the target position is smaller than a target distance value; responding the notification information, and displaying first interference information corresponding to the virtual object on the second human-computer interaction interface displayed by the second human-computer interaction client, wherein the second human-computer interaction client is used for controlling a second virtual character, and the first virtual character and the second virtual character belong to different camps.
According to another aspect of the embodiments of the present invention, there is also provided a virtual object control apparatus, including: the system comprises a detection unit, a first virtual role setting unit and a second virtual role setting unit, wherein the detection unit is used for detecting a first instruction triggered by touch operation executed on a first human-machine interaction interface displayed by a first human-machine interaction client, the first human-machine interaction client is used for controlling a first virtual role, the first instruction is used for indicating to place a virtual object, and the virtual object is used for defending against attack on the first virtual role; a control unit, configured to control, in response to the first instruction, to place the virtual object at a target position; an obtaining unit, configured to obtain role information of a second virtual role having a distance to the target position smaller than a target distance value, where the first virtual role and the second virtual role belong to different camps; and a sending unit, configured to send notification information to a second human-computer interaction client for controlling the second virtual character according to the character information of the second virtual character, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface.
According to another aspect of the embodiments of the present invention, there is also provided a virtual object control apparatus, including: a receiving unit, configured to receive notification information sent by a first human-machine interaction client, where the notification information is information sent by a first virtual character controlled by the first human-machine interaction client after controlling a virtual object to be placed at a target location, the virtual object is used to defend against an attack received by the first virtual character, and the notification information is used to instruct a second human-machine interaction client of a second virtual character whose distance from the control client to the target location is smaller than a target distance value to display first interference information corresponding to the virtual object; and a display unit, configured to respond to the notification information and display interference information corresponding to the virtual object on the second human-computer interaction interface displayed by the second human-computer interaction client, where the second human-computer interaction client is configured to control a second virtual character, and the first virtual character and the second virtual character belong to different avatars.
According to still another aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to execute the above virtual object control method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the virtual object control method through the computer program.
In the embodiment of the invention, a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client is detected, the first human-computer interaction client is used for controlling a first virtual role, and the first instruction is used for indicating to place a virtual object; responding to the first instruction, and controlling to place the virtual object at the target position; acquiring role information of a second virtual role of which the distance to the target position is smaller than the target distance value, wherein the first virtual role and the second virtual role belong to different marketing; and sending notification information to a second human-computer interaction client for controlling the second virtual role according to the role information of the second virtual role, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface. In the process, when the virtual object is placed at the target position, first interference information can be displayed on the second human-computer interaction interface and is used for interfering the auxiliary defense of a second virtual character (enemy player), so that the second virtual character is difficult to bypass the virtual object (defense prop) to attack from the back even in a place with a relatively vacant game scene, the defense effect is improved, and the technical problem of poor defense performance 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 a network environment for an alternative virtual object control method according to an embodiment of the invention;
FIG. 2 is a flow chart of an alternative virtual object control method according to an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative virtual object control method according to an embodiment of the present invention;
FIG. 4 is a flow chart of an alternative virtual object control method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an alternative display of a pre-positioned position of a virtual object in a first display mode in a first human-machine interface according to an embodiment of the invention;
FIG. 6 is a diagram illustrating an alternative display of a pre-positioned position of a virtual object in a second display manner in a first human-machine interface according to an embodiment of the invention;
FIG. 7 is a schematic diagram of an alternative placement of virtual objects according to an embodiment of the present invention;
FIG. 8 is a schematic illustration of an alternative placement of virtual objects to produce white light in accordance with embodiments of the present invention;
FIG. 9 is a schematic diagram of an alternative display of interference information on a second human-machine-interaction interface that matches hostile player information, in accordance with embodiments of the present invention;
FIG. 10 is a schematic diagram of an alternative player using virtual objects to defend against attacks in accordance with embodiments of the present invention;
FIG. 11 is a schematic diagram of an alternative virtual object control method according to an embodiment of the invention;
FIG. 12 is a schematic structural diagram of an alternative virtual object control apparatus according to an embodiment of the present invention;
FIG. 13 is a schematic structural diagram of an alternative virtual object control apparatus according to an embodiment of the present invention;
FIG. 14 is a schematic diagram of an alternative electronic device according to an embodiment of the invention;
fig. 15 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.
According to an aspect of the embodiments of the present invention, a virtual object control method is provided, and optionally, as an optional implementation manner, the virtual object control method may be but is not limited to be applied to a virtual object control system in a network environment as shown in fig. 1, where the virtual object control system includes a first user equipment 102, a network 110, and a second user equipment 112. Assume that a client of a game application (such as a shooting-type game application client shown in fig. 1) is installed in the first user equipment 102, wherein the first user equipment 102 includes a human-computer interaction screen 104, a processor 106 and a memory 108. The human-computer interaction screen 104 is used for detecting human-computer interaction operations (such as touch operations) through a human-computer interaction interface corresponding to the client; the processor 106 is configured to generate and respond to a corresponding operation instruction (e.g., a first instruction) according to the touch operation. The memory 108 is used for storing the above-mentioned operation instructions.
S101, detecting a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client by first user equipment 102; the first human-computer interaction client is used for controlling a first virtual role, the first instruction is used for indicating to place a virtual object, and the virtual object is used for defending against attacks on the first virtual role;
s102, the first user equipment 102 responds to a first instruction and controls to place the virtual object at a target position;
s103, the first user equipment 102 acquires role information of a second virtual role of which the distance between the first user equipment and the target position is smaller than the target distance value, wherein the first virtual role and the second virtual role belong to different marketing;
s104, the first user equipment 102 sends notification information to the network 110 according to the role information of the second virtual role;
s105, the network 110 sends the notification information to the second user equipment 112 controlling the second virtual role;
s106, the second user equipment 112 receives the notification information;
s107, the second user equipment 112 responds to the notification information, and displays first interference information corresponding to the virtual object on a second human-computer interaction interface displayed by the second human-computer interaction client.
In this embodiment of the present invention, please refer to steps S101 to S107 described above, where the game application client installed in the first user equipment 102 may be a shooting game application client, the shooting game application client may be a first human-computer interaction client, an interface displayed by the first human-computer interaction client may be a first human-computer interaction interface, and a first instruction triggered by a touch operation of a player on the first human-computer interaction interface is received through the human-computer interaction screen 104, specifically, the player may trigger the first instruction by long-pressing the human-computer interaction screen, or may trigger the first instruction by clicking a specified key on the first human-computer interaction interface, which is not limited in this embodiment of the present invention. Upon receipt of the first instruction by the user device 102, notification information may be sent to the second user device 112.
Further, the processor 106 sends the notification information to the second user equipment 112 through the network 110. The second user equipment 112 includes a human-computer interaction screen 114, a processor 116 and a memory 118. The game application client installed in the second user equipment can also be a shooting game application client, and the shooting game application client can be a second human-computer interaction interface. The processor 116 may receive the notification information and display, in response to the notification information, the first interference information corresponding to the virtual object on the second human-machine interaction interface displayed by the second human-machine interaction client. The memory 108 may be used to store the notification information described above.
Optionally, the virtual object control system in the network environment shown in fig. 1 may further include a server, and the server may include a database and a processor engine. The database can be used for storing various game maps in a game scene, and a place in each game map, wherein the place corresponds to an identifier for identifying whether a virtual object (such as a defense prop) can be placed or not. The processor engine is used for acquiring an identifier for whether a virtual object can be placed in a place in each game map stored in the database according to the received first instruction, judging whether the virtual object can be placed in the place corresponding to the position where the current virtual object is located according to the identifier, responding to the first instruction if the identifier indicates that the virtual object can be placed in the place corresponding to the position where the current virtual object is located, controlling the virtual object to be placed in a target position, and when the virtual object is a defense prop, setting the target position to be a position near the position of a player using the defense prop; in addition, the processor engine can also acquire the character information of a second virtual character of which the distance from the target position is smaller than the target distance value, and control a second human-computer interaction interface matched with the character information of the second virtual character to display the first interference information, so that an enemy player generates visual interference when the player places the defense prop, and the defense effect is good. That is, the first user equipment 102 and the second user equipment 112 may directly perform information transmission through the network 110, or the information transmission between the first user equipment 102 and the second user equipment 112 may be implemented through a server, which is not limited in the embodiment of the present invention.
In this embodiment of the present invention, the game screen displayed by the first user equipment 102 may be a screen seen by the first virtual character B, at this time, the second virtual character a is attacking the first virtual character B, at this time, the player controlling the first virtual character B may trigger a first instruction by performing a touch operation on the human-computer interaction screen 104 of the first user equipment 102, so as to control to place a virtual object at a target position near the first virtual character B, so as to defend against the attack on the first virtual character B, and may also obtain character information of the second virtual character a whose distance from the target position is smaller than a target distance value, send the notification information to the second user equipment 112 controlling the second virtual character through the network 110, so that the second user equipment 112 responds to the notification information, and display the first interference information on the second human-computer interaction interface, thereby affecting the attack operation of the enemy player controlling the second virtual character A, and having better defense performance for the player controlling the first virtual character B.
Optionally, in this embodiment, the user equipment may be, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a PC, and other computer equipment that supports running an application client. The server and the user equipment may implement data interaction through a network, which may include but is not limited to a wireless network or a wired network. Wherein, this wireless network includes: bluetooth, WIFI, and other networks that enable wireless communication. Such wired networks may include, but are not limited to: wide area networks, metropolitan area networks, and local area networks. The above is merely an example, and this is not limited in this embodiment.
Optionally, as an optional implementation manner, as shown in fig. 2, the virtual object control method includes:
s201, detecting a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client, wherein the first human-computer interaction client is used for controlling a first virtual role, the first instruction is used for indicating to place a virtual object, and the virtual object is used for defending against attack on the first virtual role;
s202, responding to the first instruction, and controlling to place the virtual object at the target position;
s203, acquiring role information of a second virtual role of which the distance to the target position is smaller than the target distance value, wherein the first virtual role and the second virtual role belong to different marketing;
s204, sending notification information to a second human-computer interaction client for controlling the second virtual role according to the role information of the second virtual role, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface.
Optionally, in this embodiment, the virtual object control method may be applied, but not limited, to a game application, such as a shooting game application. When a first virtual character controlled by a player shoots and fights with a second virtual character controlled by an opponent player, touch operations sent by the player can be received on a first human-computer interaction interface of the player, wherein the touch operations can include but are not limited to firing operations, skill releasing operations and the like. The method comprises the steps that under the condition that a first instruction is triggered by a touch operation of a player on a first human-computer interaction interface, a virtual object can be controlled to be placed at a target position, wherein the first instruction is used for indicating the placement of the virtual object, and the virtual object can be a defense prop (such as a defense shield) which is used for preventing the player from being attacked by an enemy player when the player hides behind the defense prop. At this time, the first instruction may be an instruction for using the defense prop, when the defense prop is used, the defense prop is placed near the current position of the player, the specific target position determining process may be obtained by performing coordinate transformation according to the obtained current position coordinate of the player, and a transformation formula on which the coordinate transformation depends may be preconfigured and stored. The defense prop is placed near the current position of the player, so that the player can avoid the attack behind the defense prop, and at the moment, the role information of an enemy player matched with a second virtual role near the target position can be acquired while the defense prop is placed, wherein the role information can include but is not limited to name information, network address information and the like of the enemy player controlling the second virtual role. The interference information can be displayed on the second human-computer interaction interface matched with the role information to interfere the attack visual field of the enemy player, so that the probability that the player using the defense prop is attacked is further reduced, and the defense performance is improved.
In the embodiment of the present invention, the first human-machine interface may be a battle interface in a game battle scene, and the touch operation on the first human-machine interface may include, but is not limited to, pressing a display screen of the first human-machine interface for a long time. Further, when the touch operation on the first human-computer interaction interface is long-pressing the display screen, the position of the virtual object in the first human-computer interaction interface when the player releases his hand after long-pressing the display screen can be determined as the target position. Further, the role information of the second virtual role whose distance value from the target position is smaller than the target distance value may be regarded as a circle drawn with the target position as a center and the target distance value as a radius, and the role information of the second virtual role falling in the position within the circle may be acquired. Further, the first interference information can be displayed on a corresponding second human-computer interaction interface according to the role information of the second virtual role. The first interference information may include, but is not limited to, displaying a white screen on the second human-computer interaction interface, displaying an occlusion icon on the second human-computer interaction interface, and the like, which is not limited in the embodiment of the present invention.
By implementing the embodiment of the invention, a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client is detected, the first human-computer interaction client is used for controlling a first virtual role, and the first instruction is used for indicating to place a virtual object; responding to the first instruction, and controlling to place the virtual object at the target position; acquiring role information of a second virtual role of which the distance to the target position is smaller than the target distance value, wherein the first virtual role and the second virtual role belong to different marketing; and sending notification information to a second human-computer interaction client for controlling the second virtual role according to the role information of the second virtual role, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface. In the process, when the virtual object is placed at the target position, first interference information can be displayed on the second human-computer interaction interface and is used for interfering the auxiliary defense of a second virtual character (enemy player), so that the second virtual character is difficult to bypass the virtual object (defense prop) to attack from the back even in a place with a relatively vacant game scene, the defense effect is improved, and the technical problem of poor defense performance is solved.
As an optional implementation manner, as shown in fig. 3, fig. 3 is another optional virtual object control method disclosed in the embodiment of the present invention, and the optional virtual object control method shown in fig. 3 may be executed before detecting a first instruction triggered by a touch operation performed on a first human-machine interaction interface displayed by a first human-machine interaction client, which is specifically as follows:
s301, detecting a second instruction triggered by touch operation executed on a first human-machine interaction interface displayed by a first human-machine interaction client, wherein the second instruction is used for indicating state information of previewing a virtual object in the first human-machine interaction interface, the state information at least comprises first state information or second state information, the first state information is state information used for identifying that the virtual object can be placed, and the second state information is state information used for identifying that the virtual object cannot be placed;
s302, responding to a second instruction, and displaying the state information of the virtual object in advance in the first human-computer interaction interface;
and S303, under the condition that the state information is the second state information, the executed detection is carried out on a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by the first human-computer interaction client.
In the embodiment of the present invention, the second instruction may be a long press on the first human-machine interaction interface, and in a case that the second instruction is a long press on the first human-machine interaction interface, the first instruction may be an instruction triggered by releasing the hand after the long press on the first human-machine interaction interface. The second instruction is used for indicating that state information of a virtual object which is placed in advance is previewed in the first human-computer interaction interface, the state information of the defense prop can be displayed in the first human-computer interaction interface under the condition that the virtual object is the defense prop, specifically, the defense prop can be displayed at a position corresponding to the first human-computer interaction interface in a display mode matched with the state information, if a current player is in a moving state, the position corresponding to the defense prop displayed in the first human-computer interaction interface can also move along with the movement of the player, optionally, the distance between the defense prop and the player is a preset target distance, and the embodiment of the invention is not limited. Further, in a case that the state information of the virtual object being placed in advance is the second state information, it is indicated that the virtual object can be placed at the position where the virtual object is placed in advance, at this time, the first instruction triggered by detecting the touch operation on the first human-computer interaction interface may be executed, that is, in this case, if the player releases the operation of pressing the screen for a long time, it is determined that the first instruction triggered by the touch operation on the first human-computer interaction interface by the player is detected. In this case, if the state information of the virtual object being placed in advance is the first state information, it indicates that the virtual object cannot be placed at the position where the virtual object is placed in advance, the first instruction triggered by the detection of the touch operation on the first human-computer interaction interface is not executed, that is, in this case, if the player releases the operation of pressing the screen for a long time, the player does not determine that the operation is the first instruction.
By implementing the embodiment of the invention, the second instruction triggered by the touch operation on the first human-computer interaction interface can be responded, and the pre-placed state information of the virtual object is displayed in the first human-computer interaction interface, so that the preview function is added before the virtual object is placed, the situation that the virtual object cannot be placed at the current position when the virtual object is directly placed is reduced, a player can directly see whether the virtual object can be placed at the current position through the pre-placed state information of the virtual object, the player is assisted in placing the virtual object, and the placing success rate of the virtual object is improved.
As an optional implementation, displaying the state information of the virtual object pre-placement in the first human-machine interaction interface may include:
s1, displaying the virtual object at the corresponding position in the first human-computer interaction interface in a first display mode matched with the first state information under the condition that the state information of the virtual object which is placed in advance is the first state information;
and S2, displaying the virtual object at the corresponding position in the first human-computer interaction interface in a second display mode matched with the second state information under the condition that the state information of the virtual object in the preset mode is the first state information.
In the embodiment of the invention, the first display mode and the second display mode are different display modes. Specifically, when the state information of the virtual object pre-placement is the first state information, because each position of the game map where the virtual object can be placed is stored in advance, the virtual object can be placed at the position where the virtual object is pre-placed, and at this time, the position where the virtual object is pre-placed is displayed in a first display mode; and under the condition that the state information of the virtual object pre-placement is the second state information, the virtual object pre-placement position cannot be put down, and the virtual object pre-placement position is displayed in a second display mode at the moment. Specifically, the difference between the first display mode and the second display mode may include, but is not limited to, display colors, for example, displaying the virtual object in the first display mode may be to fill the virtual object with blue and display the virtual object at a position where the virtual object is pre-positioned, and displaying the virtual object in the second display mode may be to fill the virtual object with red and display the virtual object at a position where the virtual object is pre-positioned, where blue and red are used as examples only, and in an actual application, only the first display mode and the second display mode need to be differentiated by using different color fills, and the embodiment of the present invention does not limit specific colors. Optionally, the difference between the first display manner and the second display manner may be a difference in transparency, for example, the transparency of the virtual object at the position where the virtual object is pre-placed may be adjusted to be lower than the first transparency by displaying the pre-placed position of the virtual object in the first display manner, and the transparency of the virtual object at the position where the virtual object is pre-placed may be adjusted to be higher than the second transparency by displaying the pre-placed position of the virtual object in the second display manner, where the second transparency is higher than the first transparency, in this process, the image where the virtual object corresponding to the virtual object may be placed at the pre-placed position may be displayed more opaque, and the image where the virtual object corresponding to the virtual object may not be placed at the pre-placed position may be displayed more transparent.
By implementing the embodiment of the invention, the virtual object pre-placing position can be displayed in different display modes according to the condition whether the virtual object can be placed at the virtual object pre-placing position or not, so that a player can intuitively distinguish whether the virtual object can be placed at the virtual object pre-placing position or not, and the placing success rate of placing the virtual object is improved.
As another optional implementation, after controlling the virtual object to be placed at the target position, the following steps may be further performed:
and after the preset time, controlling the virtual object to be hidden.
By implementing the optional implementation mode, the virtual object can be controlled to be hidden after the preset time, when the virtual object is the defense prop, the period of using the defense prop is considered to be up, the use of the prop is finished at this time, otherwise, the player continuously uses the defense prop to cause the game to be unfair, and the fairness of the game is improved.
As another optional implementation, after controlling to place the virtual object at the target position, the following steps may be further performed:
and displaying second interference information corresponding to the virtual object on the first human-computer interaction interface, wherein the first interference information and the second interference information are correlated.
In this embodiment of the present invention, the second interference information may include, but is not limited to, a white light emitting effect, an explosion displaying effect, and the like. And the first interference information and the second interference information are correlated, under the condition that the first interference information is used for displaying a white screen and the second interference information is used for emitting a white light effect, the first virtual character can be regarded as releasing the white light effect in the current game scene, and at the moment, the second human-computer interaction interface of the second virtual character within the coverage range of the white light effect is displayed as the white screen and is correlated with the white light effect, so that the game scene is more real.
By implementing the optional implementation mode, the second interference information corresponding to the virtual object can be displayed on the first human-computer interaction interface, and the second interference information corresponds to the first interference information, so that the reality degree of the game scene is increased.
Optionally, as an optional implementation manner, as shown in fig. 4, the virtual object control method may further include:
s401, receiving notification information sent by a first human-computer interaction client, wherein the notification information is information sent by a first virtual character controlled by the first human-computer interaction client after the virtual object is placed at a target position under control, the virtual object is used for defending against attack on the first virtual character, and the notification information is used for indicating that first interference information corresponding to the virtual object is displayed on a second human-computer interaction client of a second virtual character of which the distance between the control client and the target position is smaller than a target distance value;
s402, responding to the notification information, and displaying first interference information corresponding to the virtual object on a second human-computer interaction interface displayed by a second human-computer interaction client, wherein the second human-computer interaction client is used for controlling a second virtual role, and the first virtual role and the second virtual role belong to different camps.
By implementing the optional implementation mode, when the virtual object is placed at the target position, the first interference information can be displayed on the second human-computer interaction interface to interfere the auxiliary defense of the second virtual character (enemy player), so that the second virtual character is difficult to bypass the virtual object (defense prop) to attack from the back even in a place with a relatively spacious game scene, the defense effect is improved, and the technical problem of poor defense performance is solved.
As an optional implementation manner, displaying, on a second human-machine interaction interface displayed by a second human-machine interaction client, first interference information corresponding to a virtual object may include:
s1, adding a white screen interface layer in an interface layer corresponding to a second human-computer interaction interface displayed by a second human-computer interaction client, wherein the white screen interface layer is used as first interference information;
and S2, displaying the interface layer corresponding to the second human-computer interaction interface after the white screen interface layer is added.
In the embodiment of the invention, the display mode of the second human-computer interaction interface matched with the character information of the second virtual character controlled by the opponent player is to display the interface layer corresponding to the second human-computer interaction interface, and the second human-computer interaction interface corresponds to a plurality of interface layers. It should be noted that there may be one or more enemy players included in the enemy player information, and embodiments of the present invention are not limited thereto. When the number of the enemy players included in the enemy player information is multiple, the number of the second human-computer interaction interfaces matched with the enemy player information can also be multiple.
By implementing the optional implementation mode, the white screen interface layer is added to the interface layer corresponding to the second man-machine interaction interface matched with the information of the enemy player to serve as interference, the battle view of the enemy player is influenced, the defense performance of the virtual object is improved, and the defense performance is improved.
As an optional implementation manner, after the first interference information corresponding to the virtual object is displayed on the second human-computer interaction interface displayed by the second human-computer interaction client, the following steps may be further performed:
and under the condition that the first interference information corresponding to the virtual object is displayed on a second human-computer interaction interface displayed by the second human-computer interaction client, limiting the attack behavior of a second virtual character controlled by the second human-computer interaction client.
By implementing the optional implementation mode, under the condition that the interference information is displayed on the second human-computer interaction interface, the attack behavior of the enemy player corresponding to the information of the enemy player can be limited, so that the attack behavior of the enemy player is further interfered, the defense performance of the virtual object is improved, and the defense performance is improved.
As an alternative embodiment, limiting the attack behavior of the second virtual character controlled by the second human-computer interaction client may include:
s1, when the attack behavior of the second virtual character controlled by the second human-computer interaction client is a firing attack behavior, limiting the shooting mode of the second virtual character to a specified shooting mode;
and S2, when the attack behavior of the second virtual character controlled by the second human-computer interaction client is a mobile attack behavior, limiting the moving speed of the second virtual character.
In the embodiment of the invention, when the attack behavior of the opponent player corresponding to the opponent player information is the firing attack behavior, the opponent player often opens the mirror first in order to improve the attack accuracy, and then the sighting telescope is used for aiming at the player to be attacked and carrying out firing operation, and the shooting rate in the process is higher, so that the shooting authority of the opponent player can be limited, the opponent player is not allowed to open the mirror to assist the firing operation, that is, the shooting mode of the second virtual character is limited to not allow shooting with the mirror, and only the shooting with the waist is allowed, so that the shooting rate of the opponent player is reduced to a certain extent, and the defense of the player is facilitated. When the attack behavior of the enemy player corresponding to the information of the enemy player is a mobile attack behavior, the enemy player moves towards the player to attack the player in a short distance, and the moving speed of the enemy player can be limited so that the enemy player can slowly move towards the player, thereby reducing the damage ratio of the enemy player to a certain extent and being beneficial to the defense of the player.
By implementing the alternative embodiment, the shooting mode of the enemy player can be limited when the enemy player fires for attack, the moving speed of the enemy player can be limited when the enemy player moves, the injury rate of the enemy player can be reduced through the limitation of the behavior of the enemy player, and the defense of the player is facilitated.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating state information of virtual objects 501 pre-placed in a first display manner in a first human-computer interaction interface, as shown in fig. 5, a player shown in fig. 5 is located at the middle lower part of the figure, and performs an attack operation using a gun, an opponent player is not shown in the figure, at this time, the player shown in the figure and the opponent player are in a battle state, specifically, the player shown in fig. 5 can aim and attack the opponent player using the gun, the opponent player can also aim and attack the player shown in fig. 5 using the gun, at this time, the player shown in fig. 5 triggers a second instruction by pressing the screen too long, the game application client responds to the second instruction and displays virtual objects 501 (such as defense props) in the current game scene, the virtual objects 501 shown in fig. 5 are defense props, so that the player shown in fig. 5 can avoid the attack of the opponent player, the defensive prop is positioned between the front of the player and the cuboid-shaped barrier shown in the figure 5, the shape of the defensive prop is set to be lower in the middle position and higher in the two sides, so that the player can carry out shooting operation on the enemy player through the lower ground direction in the middle position and can hide behind the two sides with higher positions or hide in the lower middle position in a squatting position. Further, the position of the defensive prop moves with the movement of the player shown in FIG. 5. In the game scene shown in fig. 5, the place near the defense prop is relatively spacious, the defense prop can be placed at the current position, at this time, the virtual object 501 is displayed in a first display mode, the first display mode is to render the defense prop in blue for display, the color map is not shown, the color map is indicated by oblique lines, and in practical application, the oblique line part in the color map can be set to be blue. Optionally, the first display mode may also be configured to adjust the transparency of the defensive prop to be smaller than the first transparency, so that the visualization degree of the defensive prop is relatively high. The first display mode may be other modes, and the specific display mode is not limited in the embodiment of the present invention.
Referring to fig. 6, fig. 6 is a schematic diagram showing a pre-positioned position of a virtual object 601 in a second display manner in a first human-computer interaction interface, as shown in fig. 6, a player shown in fig. 6 is positioned below the drawing, and an enemy player is not shown in the drawing, at this time, the player shown in the drawing and the enemy player are in a war state, specifically, the player shown in fig. 6 can aim and attack the enemy player by using a gun, the enemy player can also aim and attack the player shown in fig. 6 by using a gun, at this time, the player shown in fig. 6 triggers a second instruction by pressing the screen too long, the game application client responds to the second instruction and displays the virtual object 601 (such as a defensive prop) in the current game scene, the virtual object 601 shown in fig. 6 is a defensive prop for the player shown in fig. 6 to avoid the attack of the enemy player, wherein the defensive prop is positioned in front of the player, and two cuboid-shaped obstacles shown in fig. 6, which are shaped such that the middle position is lower and the two sides are higher, so that the player can perform shooting operation on the player through the ground direction with the middle position lower, and can hide behind the two sides with the higher position or hide in a squatting position at the lower middle position. Further, the position of the defensive prop moves with the movement of the player shown in FIG. 6. In the game scene shown in fig. 6, the place near the defense prop is narrow, the defense prop cannot be placed at the current position, at this time, the virtual object 601 is displayed in a second display mode, the second display mode is to render the defense prop in red for display, the color diagram is not shown, the diagram is indicated by oblique lines, and in practical application, the oblique line part in the diagram can be set to be red. Optionally, the first display mode may also be to adjust the transparency of the defense prop to be greater than the second transparency, so that the visualization degree of the defense prop is relatively low, and the transparency degree is relatively high, so as to distinguish from the first display mode.
Referring to fig. 7, fig. 7 is a schematic diagram of placing a virtual object, as shown in fig. 7, the virtual object shown in fig. 7 is a defensive prop, and at this time, the environment around the defensive prop is relatively spacious, and the defensive prop can be placed, that is, the scene shown in fig. 5 when the position of the defensive prop is previewed, after the position of the defensive prop is previewed by long pressing the screen to trigger the first instruction by releasing the screen, so as to place the defensive prop. Specifically, when the player releases the screen, the position of the defense prop to be previewed at the moment is determined, and the position is determined as the position where the defense prop is placed. After the defensive prop is placed, it no longer moves with the movement of the player.
Referring to fig. 8, fig. 8 is a schematic view of white light generated when a virtual object is placed, as shown in fig. 8, the virtual object shown in fig. 8 is a defense prop, and after the defense prop is placed, white light is generated in front of the defense prop, that is, when the defense prop is used for defense, an attack effect of a flash bomb is generated, as shown in fig. 8, the effect of the flash bomb can be white light diffused outward from the center of a circle, and is used for generating visual field interference on enemy players within the range of the flash bomb.
Referring to fig. 9, fig. 9 is a schematic diagram illustrating interference information displayed on a second human-computer interaction interface where information of enemy players is matched, fig. 9 is a diagram illustrating an effect displayed on the second human-computer interaction interface where information of enemy players located in a white light coverage area is matched in the case where white light is generated as illustrated in fig. 8, and the interference information illustrated in fig. 9 may be white screen information, that is, a white screen is displayed on a display screen to interfere with the view of enemy players. In practical application, the transparency of the white screen interface can be improved, so that an enemy player can still see the current game scene through the white screen interface to play a certain interference role, and the embodiment of the invention is not limited. Fig. 9 illustrates the white screen effect by oblique lines, and under the white screen display effect, a certain interference effect is exerted on the game scene seen by the player.
Referring to fig. 10, fig. 10 is a schematic diagram of a player using a virtual object to defend against an attack, an enemy player holding a gun shooting a player behind the virtual object using the gun, the point at which the gun is aimed at being on the virtual object, i.e., shooting the gun, a bullet hitting a defending prop, and not shooting the player behind the defending prop.
Referring to fig. 11, fig. 11 is a flowchart illustrating an alternative virtual object control method, as shown in fig. 11, the flowchart includes the following steps:
s1101, equipping a protection shield;
s1102, judging whether the player uses the skill, if so, executing the step S1103, and if not, ending the process;
s1103, judging whether the current position can place a protective shield, if so, executing step S1105 and step S1107, and if not, executing step S1104 and step S1106;
s1104, displaying a protective shield of the red model;
s1105, displaying the shield of the blue model;
s1106, judging whether the player moves, if so, executing the step S1103, and if not, ending the process.
S1107, judge whether the player looses his hands, if yes, execute step S1108 to step S1109, if no, end the process;
s1108, generating a protection shield;
s1109, judging whether the enemy is in the flash range, if so, executing the step S1111 to the step S1112, and if not, executing the step S1110;
s1110, not affected by the flash;
s1111, the enemy is subjected to the flash effect and the operation is limited;
s1112, judging whether the bullet hits on the protective shield, if so, executing step S1114, and if not, executing step S1113;
s1113, judging whether the using time of the protection shield is finished, if so, executing S1115 after the using time is insufficient;
s1114, the player is not hurt;
s1115, the shield disappears.
In the embodiment of the present invention, the protection shield is the above-mentioned defense device, that is, the above-mentioned virtual object, and in the process of playing a game by a player, the protection shield may be equipped first, then it is determined whether the player uses skills, that is, the second instruction triggered by the touch operation performed on the first human-computer interaction interface described in the above-mentioned embodiment, specifically, the player may preview the position of the virtual object in the first human-computer interaction interface by long-pressing the screen, at this time, it is determined that the player uses skills, and step S1103 is executed to determine whether the protection shield can be placed at the current position, that is, the step described in the above-mentioned embodiment is performed to determine whether the position of the current virtual object matches with the target position, that is the position where the virtual object can be placed, if yes, it is determined that the protection shield can be placed at the current position, at this time, the protection shield of, and if the player moves, the shield moves along with the player, and at the moment, whether the shield can be placed at the current position is continuously judged. Under the condition that the protection shield can be placed in the current position, whether the player is loose can be judged, if the player is loose, it triggers first instruction to determine the player, the protection shield is produced and placed at this moment, and flash of light is sent out when the protection shield is placed in the production, the operation of enemy in the flash of light within range is restricted, attack can be resisted through the protection shield, the operation of enemy in the flash of light within range can be restricted again to strengthen the resisting ability, the defense effect is better, the defense accuracy is higher. After the protective shield is placed, whether the bullet hits the protective shield can be judged, and if the bullet hits the protective shield, a player cannot be injured. Further, at the end of the shield's life time, the shield disappears.
According to another aspect of the embodiment of the present invention, there is also provided a virtual object control apparatus for implementing the above virtual object control method. As shown in fig. 12, the apparatus includes:
the detection unit 1201 is configured to detect a first instruction triggered by a touch operation performed on a first human-machine interaction interface displayed by a first human-machine interaction client, where the first human-machine interaction client is configured to control a first virtual character, the first instruction is used to instruct to place a virtual object, and the virtual object is used to defend against an attack received by the first virtual character;
a control unit 1202, configured to control, in response to the first instruction, to place the virtual object at the target position;
an obtaining unit 1203, configured to obtain role information of a second virtual role whose distance from the target location is smaller than a target distance value, where the first virtual role and the second virtual role belong to different camps;
a sending unit 1204, configured to send notification information to a second human-computer interaction client for controlling a second virtual character according to the character information of the second virtual character, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface.
By implementing the embodiment of the invention, the first interference information can be displayed on the second human-computer interaction interface when the virtual object is placed at the target position so as to interfere the auxiliary defense of the second virtual character (enemy player), so that the second virtual character is difficult to bypass the virtual object (defense prop) to attack from the back even in the spacious place of the game scene, the defense effect is improved, and the technical problem of poor defense performance is solved.
As an optional implementation, the virtual object control apparatus may further include:
the second detection unit is used for detecting a second instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client before detecting a first instruction triggered by touch operation executed on the first human-computer interaction interface displayed by the first human-computer interaction client, wherein the second instruction is used for indicating state information of previewing virtual objects in the first human-computer interaction interface, the state information at least comprises first state information or second state information, the first state information is state information used for identifying that the virtual objects can be placed, and the second state information is state information used for identifying that the virtual objects cannot be placed;
the display unit is used for responding to the second instruction and displaying the state information of the virtual object in the first human-computer interaction interface; and under the condition that the state information is first state information, triggering a first detection unit to execute a first instruction triggered by the touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client.
By implementing the optional implementation mode, the preset state information of the virtual object can be displayed in the first human-computer interaction interface in response to the second instruction triggered by the touch operation on the first human-computer interaction interface, the process enables the preview function to be added before the virtual object is placed, the situation that the virtual object cannot be placed at the current position when the virtual object is directly placed is reduced, a player can directly see whether the virtual object can be placed at the current position through the preset state information of the virtual object, the player is assisted in placing the virtual object, and the placing success rate of the virtual object is improved.
As an optional implementation manner, the manner of displaying, by the display unit, the state information of the virtual object being pre-placed in the first human-computer interaction interface may specifically be:
the display unit is used for displaying the virtual object at a corresponding position in the first human-computer interaction interface in a first display mode matched with the first state information under the condition that the state information of the virtual object which is placed in advance is the first state information; and under the condition that the preset state information of the virtual object is the second state information, displaying the virtual object at a corresponding position in the first human-computer interaction interface in a second display mode matched with the second state information.
By implementing the optional implementation mode, the virtual object pre-placing position can be displayed in different display modes according to the condition that whether the virtual object can be placed at the virtual object pre-placing position, so that a player can intuitively distinguish whether the virtual object can be placed at the virtual object pre-placing position, and the placing success rate of placing the virtual object is improved.
As an alternative embodiment, after controlling the virtual object to be placed at the target position, the following steps may be further performed:
and after the preset time, controlling the virtual object to be hidden.
By implementing the optional implementation mode, the virtual object can be controlled to be hidden after the preset time, when the virtual object is the defense prop, the period of using the defense prop is considered to be up, the use of the prop is finished at this time, otherwise, the player continuously uses the defense prop to cause the game to be unfair, and the fairness of the game is improved.
As an alternative embodiment, after controlling the virtual object to be placed at the target position, the following steps may be further performed:
and displaying second interference information corresponding to the virtual object on the first human-computer interaction interface, wherein the first interference information and the second interference information are correlated.
By implementing the optional implementation mode, the second interference information corresponding to the virtual object can be displayed on the first human-computer interaction interface, and the second interference information corresponds to the first interference information, so that the reality degree of the game scene is increased.
According to another aspect of the embodiment of the present invention, there is also provided a virtual object control apparatus for implementing the above virtual object control method. As shown in fig. 13, the apparatus includes:
the receiving unit 1301 is configured to receive notification information sent by a first human-computer interaction client, where the notification information is information sent by a first virtual character controlled by the first human-computer interaction client after the virtual object is controlled to be placed at a target position, the virtual object is used to defend against an attack on the first virtual character, and the notification information is used to indicate that first interference information corresponding to the virtual object is displayed on a second human-computer interaction client of a second virtual character whose distance between the control client and the target position is smaller than a target distance value;
and a display unit 1302, configured to respond to the notification information and display interference information corresponding to the virtual object on a second human-machine interaction interface displayed by a second human-machine interaction client, where the second human-machine interaction client is used to control a second virtual character, and the first virtual character and the second virtual character belong to different avatars.
By implementing the optional implementation mode, when the virtual object is placed at the target position, the first interference information can be displayed on the second human-computer interaction interface to interfere the auxiliary defense of the second virtual character (enemy player), so that the second virtual character is difficult to bypass the virtual object (defense prop) to attack from the back even in a place with a relatively spacious game scene, the defense effect is improved, and the technical problem of poor defense performance is solved.
As an optional implementation manner, a manner that the display unit is configured to display the first interference information corresponding to the virtual object on the second human-computer interaction interface displayed by the second human-computer interaction client specifically is as follows:
the display unit is used for adding a white screen interface layer in an interface layer corresponding to a second human-computer interaction interface displayed by a second human-computer interaction client, and the white screen interface layer is used as first interference information; and displaying the interface layer corresponding to the second human-computer interaction interface after the white screen interface layer is added.
By implementing the optional implementation mode, the white screen interface layer is added to the interface layer corresponding to the second man-machine interaction interface matched with the information of the enemy player to serve as interference, the battle view of the enemy player is influenced, the defense performance of the virtual object is improved, and the defense performance is improved.
As an optional implementation, the method may further include:
and the limiting unit is used for limiting the attack behavior of the second virtual character controlled by the second human-computer interaction client under the condition that the first interference information corresponding to the virtual object is displayed on the second human-computer interaction interface displayed by the second human-computer interaction client after the first interference information corresponding to the virtual object is displayed on the second human-computer interaction interface displayed by the second human-computer interaction client.
By implementing the optional implementation mode, under the condition that the interference information is displayed on the second human-computer interaction interface, the attack behavior of the enemy player corresponding to the information of the enemy player can be limited, so that the attack behavior of the enemy player is further interfered, the defense performance of the virtual object is improved, and the defense performance is improved.
As an alternative embodiment, the restriction unit may include:
the first limiting module is used for limiting the shooting mode of the second virtual role to be an appointed shooting mode when the attack behavior of the second virtual role controlled by the second human-computer interaction client side is a firing attack behavior;
and the second limiting module is used for limiting the moving speed of the second virtual role when the attack behavior of the second virtual role controlled by the second human-computer interaction client is a moving attack behavior.
By implementing the alternative embodiment, the shooting mode of the enemy player can be limited when the enemy player fires for attack, the moving speed of the enemy player can be limited when the enemy player moves, the injury rate of the enemy player can be reduced through the limitation of the behavior of the enemy player, and the defense of the player is facilitated.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic apparatus for implementing the virtual object control method, as shown in fig. 14, the electronic apparatus includes a memory 1402 and a processor 1404, the memory 1402 stores therein a computer program, and the processor 1404 is configured to execute the steps in any one of the method embodiments by the computer program.
S1, detecting a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client, wherein the first human-computer interaction client is used for controlling a first virtual role, the first instruction is used for indicating to place a virtual object, and the virtual object is used for defending against attack on the first virtual role;
s2, responding to the first instruction, controlling the virtual object to be placed at the target position;
s3, acquiring role information of a second virtual role of which the distance to the target position is smaller than the target distance value, wherein the first virtual role and the second virtual role belong to different marketing;
and S4, sending notification information to a second human-computer interaction client for controlling the second virtual character according to the character information of the second virtual character, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 14 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 palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 14 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
The memory 1402 may be configured to store software programs and modules, such as program instructions/modules corresponding to the virtual object control method and apparatus in the embodiments of the present invention, and the processor 1404 executes various functional applications and data processing by running the software programs and modules stored in the memory 1402, so as to implement the virtual object control method. Memory 1402 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 1402 may further include memory located remotely from the processor 1404, which may be connected to a 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. As an example, as shown in fig. 14, the memory 1402 may include, but is not limited to, a detection unit 1201, a control unit 1202, an acquisition unit 1203, and a transmission unit 1204 in the virtual object control apparatus. In addition, the virtual object control apparatus may further include, but is not limited to, other module units in the virtual object control apparatus, which is not described in detail in this example.
Optionally, the transmitting device 1406 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 1406 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 1406 is a Radio Frequency (RF) module, which is used to communicate with the internet by wireless means.
In addition, the electronic device further includes: a display 1408 for displaying the first target action, the second target action and the corresponding keys; and a connection bus 1414 for connecting the various modular components of the electronic device.
According to yet another aspect of the embodiments of the present invention, there is also provided an electronic apparatus for implementing the virtual object control method, as shown in fig. 15, the electronic apparatus includes a memory 1502 and a processor 1504, the memory 1502 stores therein a computer program, and the processor 1504 is configured to execute the steps in any one of the method embodiments by the computer program.
S1, receiving notification information sent by a first human-computer interaction client, wherein the notification information is information sent by a first virtual character controlled by the first human-computer interaction client after the virtual object is placed at a target position under control, the virtual object is used for defending against attack on the first virtual character, and the notification information is used for indicating that first interference information corresponding to the virtual object is displayed on a second human-computer interaction client of a second virtual character of which the distance between the control client and the target position is smaller than a target distance value;
and S2, responding to the notification information, and displaying first interference information corresponding to the virtual object on a second human-computer interaction interface displayed by a second human-computer interaction client, wherein the second human-computer interaction client is used for controlling a second virtual character, and the first virtual character and the second virtual character belong to different avatars.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 15 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 palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 15 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 15, or have a different configuration than shown in FIG. 15.
The memory 1502 may be used for storing software programs and modules, such as program instructions/modules corresponding to the virtual object control method and apparatus in the embodiments of the present invention, and the processor 1504 executes various functional applications and data processing by running the software programs and modules stored in the memory 1502, that is, implements the virtual object control method described above. The memory 1502 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 instances, the memory 1502 can further include memory located remotely from the processor 1504, which can be coupled 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. As an example, as shown in fig. 15, the memory 1502 may include, but is not limited to, a receiving unit 1301 and a display unit 1302 in the virtual object control apparatus. In addition, the virtual object control apparatus may further include, but is not limited to, other module units in the virtual object control apparatus, which is not described in detail in this example.
Optionally, the transmission device 1506 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1506 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 transmission device 1506 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1508, for displaying the first target action, the second target action and the corresponding keys; and a connection bus 1515 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, detecting a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client, wherein the first human-computer interaction client is used for controlling a first virtual role, the first instruction is used for indicating to place a virtual object, and the virtual object is used for defending against attack on the first virtual role;
s2, responding to the first instruction, controlling the virtual object to be placed at the target position;
s3, acquiring role information of a second virtual role of which the distance to the target position is smaller than the target distance value, wherein the first virtual role and the second virtual role belong to different marketing;
and S4, sending notification information to a second human-computer interaction client for controlling the second virtual character according to the character information of the second virtual character, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving notification information sent by a first human-computer interaction client, wherein the notification information is information sent by a first virtual character controlled by the first human-computer interaction client after the virtual object is placed at a target position under control, the virtual object is used for defending against attack on the first virtual character, and the notification information is used for indicating that first interference information corresponding to the virtual object is displayed on a second human-computer interaction client of a second virtual character of which the distance between the control client and the target position is smaller than a target distance value;
and S2, responding to the notification information, and displaying first interference information corresponding to the virtual object on a second human-computer interaction interface displayed by a second human-computer interaction client, wherein the second human-computer interaction client is used for controlling a second virtual character, and the first virtual character and the second virtual character belong to different avatars.
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 (13)

1. A virtual object control method, comprising:
detecting a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client, wherein the first human-computer interaction client is used for controlling a first virtual role, the first instruction is used for indicating to place a virtual object, and the virtual object is used for defending against attack on the first virtual role;
controlling the virtual object to be placed at a target position in response to the first instruction;
acquiring role information of a second virtual role of which the distance between the first virtual role and the target position is smaller than a target distance value, wherein the first virtual role and the second virtual role belong to different marketing;
and sending notification information to a second human-computer interaction client for controlling the second virtual role according to the role information of the second virtual role, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface.
2. The method of claim 1, wherein prior to the detecting the first instruction triggered by the touch operation performed on the first human-machine interaction interface displayed by the first human-machine interaction client, the method further comprises:
detecting a second instruction triggered by touch operation executed on a first human-machine interaction interface displayed by a first human-machine interaction client, wherein the second instruction is used for indicating that state information of the virtual object which is placed in advance is previewed in the first human-machine interaction interface, the state information at least comprises first state information or second state information, the first state information is state information used for identifying that the virtual object can be placed, and the second state information is state information used for identifying that the virtual object cannot be placed;
responding to the second instruction, and displaying the state information of the virtual object pre-placement in the first human-computer interaction interface;
and under the condition that the state information is the first state information, executing the first instruction triggered by the touch operation executed on the first human-computer interaction interface displayed by the first human-computer interaction client.
3. The method of claim 2, wherein displaying the pre-positioned state information of the virtual object in the first human-machine interface comprises:
under the condition that the preset state information of the virtual object is the first state information, displaying the virtual object at a corresponding position in the first human-computer interaction interface in a first display mode matched with the first state information;
and under the condition that the preset state information of the virtual object is the second state information, displaying the virtual object at a corresponding position in the first human-computer interaction interface in a second display mode matched with the second state information.
4. The method of claim 1, wherein after the controlling places the virtual object at a target location, the method further comprises:
and after a preset time, controlling the virtual object to be hidden.
5. The method of any of claims 1 to 4, wherein after said controlling placing said virtual object at a target location, said method further comprises:
displaying second interference information corresponding to the virtual object on the first human-computer interaction interface, wherein the first interference information is associated with the second interference information.
6. A virtual object control method, comprising:
receiving notification information sent by a first human-computer interaction client, wherein the notification information is information sent by a first virtual character controlled by the first human-computer interaction client after a virtual object is placed at a target position under control, the virtual object is used for defending against attacks on the first virtual character, and the notification information is used for indicating that first interference information corresponding to the virtual object is displayed on a second human-computer interaction client of a second virtual character of which the distance between the control client and the target position is smaller than a target distance value;
responding the notification information, and displaying first interference information corresponding to the virtual object on the second human-computer interaction interface displayed by the second human-computer interaction client, wherein the second human-computer interaction client is used for controlling a second virtual role, and the first virtual role and the second virtual role belong to different camps.
7. The method of claim 6, wherein displaying the first interference information corresponding to the virtual object on the second human-machine interaction interface displayed by the second human-machine interaction client comprises:
adding a white screen interface layer in an interface layer corresponding to a second human-computer interaction interface displayed by the second human-computer interaction client, wherein the white screen interface layer is used as first interference information;
and displaying the interface layer corresponding to the second human-computer interaction interface after the white screen interface layer is added.
8. The method of claim 6, wherein after displaying the first interference information corresponding to the virtual object on the second human-machine interaction interface displayed by the second human-machine interaction client, the method further comprises:
and under the condition that first interference information corresponding to the virtual object is displayed on the second human-computer interaction interface displayed by the second human-computer interaction client, limiting the attack behavior of the second virtual character controlled by the second human-computer interaction client.
9. The method of claim 8, wherein limiting the attack behavior of the second avatar controlled by the second human-computer interaction client comprises:
when the attack behavior of the second virtual character controlled by the second human-computer interaction client is a firing attack behavior, limiting the shooting mode of the second virtual character to be a specified shooting mode;
and when the attack behavior of the second virtual character controlled by the second human-computer interaction client is a mobile attack behavior, limiting the moving speed of the second virtual character.
10. A virtual object control apparatus, comprising:
the detection unit is used for detecting a first instruction triggered by touch operation executed on a first human-computer interaction interface displayed by a first human-computer interaction client, wherein the first human-computer interaction client is used for controlling a first virtual character, the first instruction is used for indicating to place a virtual object, and the virtual object is used for defending against attack on the first virtual character;
the control unit is used for responding to the first instruction and controlling the virtual object to be placed at a target position;
the acquiring unit is used for acquiring role information of a second virtual role of which the distance between the second virtual role and the target position is smaller than a target distance value, wherein the first virtual role and the second virtual role belong to different marketing;
and the sending unit is used for sending notification information to a second human-computer interaction client used for controlling the second virtual role according to the role information of the second virtual role, so that the second human-computer interaction client displays first interference information corresponding to the virtual object on a second human-computer interaction interface.
11. A virtual object control apparatus, comprising:
a receiving unit, configured to receive notification information sent by a first human-machine interaction client, where the notification information is information sent by a first virtual character controlled by the first human-machine interaction client after controlling to place a virtual object at a target position, the virtual object is used to defend against an attack on the first virtual character, and the notification information is used to indicate that first interference information corresponding to the virtual object is displayed on a second human-machine interaction client of a second virtual character whose distance from the control to the target position is smaller than a target distance value;
and the display unit is used for responding to the notification information and displaying the interference information corresponding to the virtual object on the second human-computer interaction interface displayed by the second human-computer interaction client, the second human-computer interaction client is used for controlling a second virtual role, and the first virtual role and the second virtual role belong to different camps.
12. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 5 or the method of any of claims 6 to 9.
13. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program and the processor is arranged to execute the method of any of claims 1 to 5 or the method of any of claims 6 to 9 by means of the computer program.
CN201911193061.3A 2019-11-28 2019-11-28 Virtual object control method, device, storage medium and electronic device Active CN111111194B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911193061.3A CN111111194B (en) 2019-11-28 2019-11-28 Virtual object control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911193061.3A CN111111194B (en) 2019-11-28 2019-11-28 Virtual object control method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111111194A true CN111111194A (en) 2020-05-08
CN111111194B CN111111194B (en) 2021-06-25

Family

ID=70496991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911193061.3A Active CN111111194B (en) 2019-11-28 2019-11-28 Virtual object control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111111194B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111701244A (en) * 2020-06-18 2020-09-25 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic equipment
CN111901518A (en) * 2020-06-23 2020-11-06 维沃移动通信有限公司 Display method and device and electronic equipment
CN112121432A (en) * 2020-09-30 2020-12-25 腾讯科技(深圳)有限公司 Control method, device and equipment of virtual prop and computer readable storage medium
CN112370785A (en) * 2020-09-22 2021-02-19 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic equipment
CN112619145A (en) * 2020-12-30 2021-04-09 完美世界(重庆)互动科技有限公司 Control method and device of virtual role, storage medium and electronic device
CN113144608A (en) * 2021-04-22 2021-07-23 网易(杭州)网络有限公司 Message sending method, device, equipment and storage medium
CN113827970A (en) * 2021-09-28 2021-12-24 网易(杭州)网络有限公司 Information display method and device, computer readable storage medium and electronic equipment
CN115970276A (en) * 2022-12-07 2023-04-18 迷你创想科技(深圳)有限公司 Virtual resource interactive display method, device, terminal and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070218965A1 (en) * 2006-03-15 2007-09-20 Tilston Christopher I Player deception in a video game
CN109758764A (en) * 2018-12-11 2019-05-17 网易(杭州)网络有限公司 A kind of method and device of game skill control, electronic equipment, storage medium
CN109908592A (en) * 2019-01-11 2019-06-21 广州要玩娱乐网络技术股份有限公司 Virtual shield compensation process, device, storage medium and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070218965A1 (en) * 2006-03-15 2007-09-20 Tilston Christopher I Player deception in a video game
CN109758764A (en) * 2018-12-11 2019-05-17 网易(杭州)网络有限公司 A kind of method and device of game skill control, electronic equipment, storage medium
CN109908592A (en) * 2019-01-11 2019-06-21 广州要玩娱乐网络技术股份有限公司 Virtual shield compensation process, device, storage medium and terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
YK: "绝地求生全军出击防爆盾怎么使用?防爆盾道具在哪刷新[多图]", 《HTTPS://WWW.YOUXIHEZI.NET/NEWS/GONGLUE/2030.HTML》 *
乔伊奥斯托雷: "【干货】闪光盾新萌教学/教你次次三杀/白银也能杀钻石/P12微冲详细实战教学", 《HTTPS://WWW.BILIBILI.COM/VIDEO/BV1IT411Z7HL/?SPM_ID_FROM=333.788.VIDEOCARD.0》 *
吃鸡游戏酱: "绝地求生全军出击防爆盾怎么用", 《HTTPS://JINGYAN.BAIDU.COM/ALBUM/AA6A2C14B4F9DC0D4C19C435.HTML》 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111701244B (en) * 2020-06-18 2021-06-08 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic equipment
CN111701244A (en) * 2020-06-18 2020-09-25 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic equipment
CN111901518A (en) * 2020-06-23 2020-11-06 维沃移动通信有限公司 Display method and device and electronic equipment
CN112370785B (en) * 2020-09-22 2022-05-20 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic equipment
CN112370785A (en) * 2020-09-22 2021-02-19 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic equipment
CN112121432A (en) * 2020-09-30 2020-12-25 腾讯科技(深圳)有限公司 Control method, device and equipment of virtual prop and computer readable storage medium
CN112619145A (en) * 2020-12-30 2021-04-09 完美世界(重庆)互动科技有限公司 Control method and device of virtual role, storage medium and electronic device
CN112619145B (en) * 2020-12-30 2024-08-30 完美世界(重庆)互动科技有限公司 Virtual character control method and device, storage medium and electronic device
CN113144608A (en) * 2021-04-22 2021-07-23 网易(杭州)网络有限公司 Message sending method, device, equipment and storage medium
CN113144608B (en) * 2021-04-22 2024-02-02 网易(杭州)网络有限公司 Message sending method, device, equipment and storage medium
US12440761B2 (en) 2021-04-22 2025-10-14 Netease (Hangzhou) Network Co., Ltd. Method and device for triggering teleporting operation
CN113827970A (en) * 2021-09-28 2021-12-24 网易(杭州)网络有限公司 Information display method and device, computer readable storage medium and electronic equipment
CN115970276A (en) * 2022-12-07 2023-04-18 迷你创想科技(深圳)有限公司 Virtual resource interactive display method, device, terminal and medium

Also Published As

Publication number Publication date
CN111111194B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN111111194B (en) Virtual object control method, device, storage medium and electronic device
CN107913521B (en) The display methods and device of virtual environment picture
CN111084986B (en) Display control method, display control device, storage medium, and electronic device
CN111265858B (en) Operation control method, operation control device, storage medium, and electronic device
CN110917621B (en) Position display method and device, storage medium and electronic device
CN111135568B (en) Control method and device of virtual prop, storage medium and electronic device
CN112107861B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN111589152B (en) Control method and device of virtual attack prop, storage medium and electronic equipment
CN111167124A (en) Virtual prop obtaining method and device, storage medium and electronic device
CN113730908B (en) Picture display method and device, storage medium and electronic equipment
CN111298430A (en) Virtual item control method and device, storage medium and electronic device
CN110975283A (en) Processing method and device of virtual shooting prop, storage medium and electronic device
CN112221136B (en) Feedback information display method and device, storage medium and electronic equipment
CN111111217A (en) Control method and device of virtual prop, storage medium and electronic device
CN111298437A (en) Control method and device for virtual attack prop
CN111068330B (en) Processing method and device of virtual attack prop, storage medium and electronic device
CN111265856A (en) Control method and device of virtual operation object, storage medium and electronic device
CN111701244A (en) Control method and device of virtual prop, storage medium and electronic equipment
CN111111218A (en) Control method and device of virtual unmanned aerial vehicle, storage medium and electronic device
CN110917620B (en) Virtual footprint display method and device, storage medium and electronic device
CN111111165A (en) Control method and device of virtual prop, storage medium and electronic device
CN111589119A (en) Object placement method and device in virtual scene, storage medium and electronic device
CN111258489B (en) Operation method and device of virtual prop and storage medium
CN111265868A (en) Display control method, display control device, storage medium, and electronic device
CN111773694A (en) Control method and device of virtual operation object 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