CN111701244A - Control method and device of virtual prop, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN111701244A
CN111701244A CN202010561861.2A CN202010561861A CN111701244A CN 111701244 A CN111701244 A CN 111701244A CN 202010561861 A CN202010561861 A CN 202010561861A CN 111701244 A CN111701244 A CN 111701244A
Authority
CN
China
Prior art keywords
virtual
target
virtual item
game application
prop
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
CN202010561861.2A
Other languages
Chinese (zh)
Other versions
CN111701244B (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 CN202010561861.2A priority Critical patent/CN111701244B/en
Publication of CN111701244A publication Critical patent/CN111701244A/en
Application granted granted Critical
Publication of CN111701244B publication Critical patent/CN111701244B/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/573Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using trajectories of game objects, e.g. of a golf ball according to the point of impact
    • 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/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/214Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/64Methods for processing data by generating or executing the game program for computing dynamical parameters of game objects, e.g. motion determination or computation of frictional forces for a virtual car

Abstract

The invention discloses a control method and device of a virtual prop, a storage medium and electronic equipment. Wherein, the method comprises the following steps: acquiring a first touch operation in a target game application, wherein the first touch operation is used for indicating a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used for defending a target type virtual item in the target game application; in response to the first touch operation, placing a first virtual item at a first position in a game picture displayed by the target game application; and under the condition that a second virtual prop appears in a preset range of the first virtual prop located at the first position, controlling the first virtual prop to defend the second virtual prop, wherein the second virtual prop is a target type virtual prop. The invention solves the technical problem that the user is easy to lose due to poor user experience in the related technology.

Description

Control method and device of virtual prop, storage medium and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a method and a device for controlling a virtual prop, a storage medium and electronic equipment.
Background
In current gaming applications, there are a large number of different kinds of virtual props, where for some types of props, for example, a throwing-type prop can gain the ability to span terrain by virtue of the throwing operation, while other users are difficult to defend. The increase of abundant virtual stage property has improved the play method taste degree that the game was used, nevertheless make all the other users stand by the threat in the game on a certain level, and then influence the equilibrium nature of game, reduced other users 'use experience, for example, the user has never known behind the virtual wall body whether the above-mentioned stage property that can stride across the topography and attack is hidden behind the wall body, can't learn whether have the aerial attack virtual stage property of opposition formation on the virtual sky, consequently, there is the user experience relatively poor in the present correlation technique, lead to the technical problem that the user runs off easily.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for controlling a virtual item, a storage medium and electronic equipment, which are used for at least solving the technical problem that a user is easy to lose due to poor user experience in the related technology.
According to an aspect of an embodiment of the present invention, a method for controlling a virtual item is provided, including: acquiring a first touch operation in a target game application, wherein the first touch operation is used for indicating a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used for defending a target type virtual item in the target game application; in response to the first touch operation, placing the first virtual item at a first position in a game picture displayed by the target game application; and under the condition that a second virtual prop appears in a preset range of the first virtual prop located at the first position, controlling the first virtual prop to defend the second virtual prop, wherein the second virtual prop is the target type virtual prop.
Optionally, after placing the first virtual item at a first position in a game screen displayed by the target game application in response to the first touch operation, the method further includes: arranging a first collision detection area of the first virtual prop around the first position, wherein the first position is located in the first collision detection area, and the predetermined range is the first collision detection area; and under the condition that the second virtual prop collides with the first collision detection area, determining that the second virtual prop appears in the preset range of the first position.
Optionally, the controlling the first virtual item to defend the second virtual item includes at least one of: destroying the second virtual prop to cancel the attack operation of the second virtual prop on the target virtual operation object; changing the flight track of the second virtual prop to reduce or avoid the attack injury of the second virtual prop to the target virtual operation object; reducing the attack damage range of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object; and reducing the attack injury of the second virtual prop so as to reduce or avoid the attack injury of the second virtual prop to the target virtual operation object.
Optionally, after placing the first virtual item at a first position in a game screen displayed by the target game application, the method further comprises at least one of: if the first virtual item is attacked, so that the virtual life value of the first virtual item becomes 0, destroying the first virtual item in the target game application, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item; when the accumulated time of the first virtual item placed on the first position reaches a preset time length, destroying the first virtual item in the target game application, so that the target virtual operation object cannot use the first virtual item to defend the target type of virtual item; and under the condition that the number of the first virtual item defending the target type of virtual item reaches a preset number, destroying the first virtual item in the target game application, so that the target virtual operation object cannot defend the target type of virtual item by using the first virtual item.
Optionally, after placing the first virtual item at a first position in a game screen displayed by the target game application, the method further includes: starting timing of the survival time of the first virtual item, wherein the first virtual item is destroyed in the target game application when the survival time reaches a preset time length, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item.
Optionally, after placing the first virtual item at a first position in a game screen displayed by the target game application, the method further includes: acquiring a second touch operation in the target game application, wherein the second touch operation is used for instructing the target virtual operation object to pick up the first virtual item placed on the first position; and responding to the second touch operation, controlling the target virtual operation object to pick up the first virtual item placed on the first position in the target game application, and resetting the survival time of the first virtual item.
Optionally, after placing the first virtual item at a first position in a game screen displayed by the target game application, the method further includes: acquiring a third touch operation in the target game application; responding to the third touch operation, placing the first virtual prop at a second position in a game picture displayed by the target game application, and starting the timing of the survival time of the first virtual prop
Optionally, before the obtaining of the first touch operation in the target game application, the method further includes: obtaining a fourth touch operation in the target game application, wherein the fourth touch operation is used for selecting a predicted placement position of the first virtual item; in response to the fourth touch operation, displaying a predicted placement position of the first virtual item in the target game application; in the case that the expected placement position is a placement-allowed position, displaying a first position identifier on the expected placement position, wherein the first position identifier is used for indicating that the expected placement position is a placement-allowed position; and displaying a second position identification on the expected placement position in the case that the expected placement position is a position where placement is not allowed, wherein the second position identification is used for indicating that the expected placement position is a position where placement is not allowed.
According to another aspect of the embodiments of the present invention, there is also provided a control device of a virtual item, including: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a first touch operation in a target game application, the first touch operation is used for indicating a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used for defending a target type virtual item in the target game application;
the placement module is used for responding to the first touch operation and placing the first virtual prop at a first position in a game picture displayed by the target game application;
and the control module is used for controlling the first virtual prop to defend the second virtual prop when the second virtual prop appears in a preset range of the first virtual prop at the first position, wherein the second virtual prop is the target type virtual prop.
Optionally, the apparatus further comprises:
a setting module, configured to set a first collision detection area of the first virtual item around a first position after placing the first virtual item at the first position in a game screen displayed by the target game application in response to the first touch operation, where the first position is located in the first collision detection area, and the predetermined range is the first collision detection area;
and the determining module is used for determining that the second virtual prop appears in the preset range of the first position under the condition that the second virtual prop collides with the first collision detection area.
Optionally, the control module comprises at least one of:
the first processing unit is used for destroying the second virtual item so as to cancel the attack operation executed by the second virtual item on the target virtual operation object;
the second processing unit is used for changing the flight track of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object;
the third processing unit is used for reducing the attack damage range of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object;
and the fourth processing unit is used for reducing the attack damage of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object.
Optionally, the first processing unit comprises at least one of:
a first destruction subunit, configured to, after the first virtual item is placed at a first position in a game screen displayed by the target game application, destroy the first virtual item in the target game application when the first virtual item is attacked so that a virtual life value of the first virtual item becomes 0, so that the target virtual operation object cannot defend the target type of virtual item using the first virtual item;
a second destruction subunit, configured to, after the first virtual item is placed at a first position in a game screen displayed by the target game application, destroy the first virtual item in the target game application when a cumulative time for the first virtual item to be placed at the first position reaches a preset time length, so that the target virtual operation object cannot defend the virtual item of the target type using the first virtual item;
a third destroying subunit, configured to destroy, after the first virtual item is placed at a first position in a game screen displayed by the target game application, the first virtual item in the target game application when the number of times the first virtual item defends the virtual item of the target type reaches a preset number of times, so that the target virtual operation object cannot use the first virtual item to defend the virtual item of the target type.
Optionally, the apparatus is further configured to:
after the first virtual item is placed at a first position in a game picture displayed by the target game application, timing of the survival time of the first virtual item is started, wherein the first virtual item is destroyed in the target game application under the condition that the survival time reaches a preset time length, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item.
Optionally, the apparatus is further configured to:
after the first virtual item is placed at a first position in a game picture displayed by the target game application, acquiring a second touch operation in the target game application, wherein the second touch operation is used for indicating the target virtual operation object to pick up the first virtual item placed at the first position; and responding to the second touch operation, controlling the target virtual operation object to pick up the first virtual item placed on the first position in the target game application, and resetting the survival time of the first virtual item.
Optionally, the apparatus is further configured to:
after the first virtual item is placed at a first position in a game picture displayed by the target game application, acquiring a third touch operation in the target game application; and responding to the third touch operation, placing the first virtual prop at a second position in a game picture displayed by the target game application, and starting the timing of the survival time of the first virtual prop.
Optionally, the apparatus is further configured to: before obtaining a first touch operation in a target game application, obtaining a fourth touch operation in the target game application, wherein the fourth touch operation is used for selecting an expected placement position of the first virtual item; in response to the fourth touch operation, displaying a predicted placement position of the first virtual item in the target game application; in the case that the expected placement position is a placement-allowed position, displaying a first position identifier on the expected placement position, wherein the first position identifier is used for indicating that the expected placement position is a placement-allowed position; and displaying a second position identification on the expected placement position in the case that the expected placement position is a position where placement is not allowed, wherein the second position identification is used for indicating that the expected placement position is a position where placement is not allowed.
According to another aspect of the embodiment of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the control method of the virtual prop when running.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the control method of the virtual prop through the computer program.
In the embodiment of the invention, a first touch operation for indicating a target virtual operation object in a target game application to place a first virtual prop is obtained in the target game application, the first virtual prop is placed at a first position in a game picture displayed by the target game application in response to the first touch operation, the first virtual prop is controlled to defend the second virtual prop under the condition that the second virtual prop appears in a preset range of the first virtual prop at the first position, the defense of the target type virtual prop is realized by placing the first virtual prop capable of defending the target type virtual prop, the mode that only a virtual body armor or a bulletproof helmet can be used for defense in the related technology is improved, and the technical problems that the user experience is poor, the defense of part of the target type virtual prop is difficult and the user is easy to lose in the related technology are solved, the technical effects of optimizing the use experience of the user, improving the balance degree of the game application and enriching the playing method of the game application are achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of an application environment of an optional control method for a virtual item according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for controlling an optional virtual item according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a method for controlling a virtual prop according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another method for controlling a virtual prop, according to an embodiment of the invention;
FIG. 5 is a schematic diagram of a control method for a virtual prop according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a control method for a virtual prop according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating another alternative method for controlling a virtual prop according to an embodiment of the present invention;
FIG. 8 is a flowchart illustrating a method for controlling a further alternative virtual item, according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a control device of an alternative virtual prop according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial nouns or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
shooting game: including, but not limited to, first person shooter games, third person shooter games, and the like, all games that use hot arms to conduct remote attacks.
First-person shooter games (FPSs) belong to a branch of Action games (ACTs), and as the name suggests, First-person perspective shooter games are shooting games played from a subjective perspective of a player.
The Third person named shooting game (TPS), which is also a kind of shooting game, is different from the first person in that a player is visible in a game screen.
A defense device: a tactical prop in a gaming application, for use with a device to assist a player in defending against a flight prop automatically.
Flight props: the props with flight characteristics in game application comprise virtual grenades, virtual smog bombs, virtual burning bombs, virtual flashing bombs, virtual shocking bombs, virtual rocket bombs and the like.
Tactical props: the game player can select and configure the tactical props in the game application
The invention is illustrated below with reference to examples:
according to an aspect of the embodiment of the present invention, a method for controlling a virtual item is provided, and optionally, in this embodiment, the method for controlling a virtual item may be applied to a hardware environment formed by a server 101 and a user terminal 103 as shown in fig. 1. As shown in fig. 1, a server 101 is connected to a terminal 103 through a network, and may be configured to provide a service to a user terminal or a client installed on the user terminal, where the target client may be a video client, an instant messaging client, a browser client, an education client, or the like. The database 105 may be provided on or separate from the server for providing data storage services for the server 101, and the network may include, but is not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other wireless communication enabled networks, the user terminal 103 may be a target client configured terminal, and may include but is not limited to at least one of the following: the server may be a single server, or a server cluster composed of a plurality of servers, or a cloud server, where an application 107 for executing the control method of the virtual item is displayed through a user terminal 103, and the control service of the virtual item may be used through an entry of the application 107 configured on the terminal, which is merely an example, and this is not limited in this embodiment.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for controlling the virtual item includes:
s202, acquiring a first touch operation in the target game application, wherein the first touch operation is used for indicating a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used for defending a target type virtual item in the target game application;
s204, in response to the first touch operation, placing a first virtual prop at a first position in a game picture displayed by the target game application;
s206, under the condition that a second virtual prop appears in the preset range of the first virtual prop located at the first position, the first virtual prop is controlled to defend the second virtual prop, wherein the second virtual prop is a target type virtual prop.
In most current game applications, equipment or props for protection are few, the types of the equipment or props are relatively single, many equipment are designed in the directions of increasing attacking force, increasing speed and the like, and few props are designed on the defense side. When a user performs game operation, the virtual game role can be protected only by obtaining body armor or body armor helmets of different forms, and when the user performs defense by the method, the numerical value of injury is calculated by using the armor value of the body armor or the body armor helmet, that is, the defense by the method can not perform good defense on virtual props with flight characteristics, such as flight virtual props, throwing virtual props and the like. In addition, the defense of the game character by the above-described method can only be performed against the game character wearing the defense equipment, and it is difficult to effectively protect the user who does not acquire the defense equipment.
Optionally, in this embodiment, the first virtual item may include, but is not limited to, a virtual defense shield, a virtual defense wall, and a virtual item capable of defending a target area under certain conditions, the first touch operation may be performed through touch operation on a virtual use key, for example, the first touch operation may include, but is not limited to, a virtual use key preset in a game, and a virtual use key manually set in a game interface according to a user requirement for using the first virtual item, fig. 3 is a schematic diagram of a control method of the virtual item according to an embodiment of the present invention, as shown in fig. 3, the target game application may include, but is not limited to, a first person shooting game, a third person shooting game, a shooting game capable of switching between the first person and the third person, and the like, in other words, the game display interface may be divided into a first person display interface 301 and a third person display interface 303, and switching between the first person name and the third person name can be performed by, but not limited to, using the viewing angle switching key.
Optionally, in this embodiment, the target virtual operation object may include, but is not limited to, a virtual operation object controlled after logging in the target game application through an account corresponding to the target game application, and the target type virtual item may include, but is not limited to, a throwing type virtual item, a flying type virtual item, a virtual bullet, and the like. The above is only an example, and the embodiment is not limited in any way to the type of the virtual prop.
Optionally, in this embodiment, the first virtual item may be configured, but is not limited to be configured for a target virtual operation object correspondingly by an out-of-office configuration manner, for example, fig. 4 is a schematic diagram of another virtual item control method according to an embodiment of the present invention, and as shown in fig. 4, the first virtual item is configured or detached by a configuration button 402 at an equipment bar preset for configuring the first virtual item.
Through the embodiment, a first touch operation for indicating a target virtual operation object in a target game application to place a first virtual prop is obtained in the target game application, the first virtual prop is placed at a first position in a game picture displayed by the target game application in response to the first touch operation, the first virtual prop is controlled to defend the second virtual prop under the condition that the second virtual prop appears in a preset range of the first virtual prop at the first position, the defense for the target type virtual prop is realized by placing the first virtual prop capable of defending the target type virtual prop, the mode that only a virtual body armor or a bulletproof helmet can be used for defense in the related technology is improved, and the technical problems that user experience is poor, a part of the target type virtual prop is difficult to defend and the user is easy to lose in the related technology are solved, the technical effects of optimizing the use experience of the user, improving the balance degree of the game application and enriching the playing method of the game application are achieved.
In an optional embodiment, after placing the first virtual item at the first position in the game screen displayed by the target game application in response to the first touch operation, the method further includes: arranging a first collision detection area of a first virtual prop around a first position, wherein the first position is located in the first collision detection area, and the predetermined range is the first collision detection area; and under the condition that the second virtual prop collides with the first collision detection area, determining that the second virtual prop appears in the preset range of the first position.
Optionally, in this embodiment, the first collision detection area may be, but is not limited to, configured to be associated with the first virtual item, and may also be, but is not limited to, configured to be associated with the target virtual operation object, in other words, the size of the first collision detection area may be, but is not limited to, being bound based on the first virtual prop, and may also be, but is not limited to, being bound based on the target virtual operation object, for example, the name of a first virtual track is called as a slave 'primary explosion-proof device', the name of a second virtual track is called as a slave 'advanced explosion-proof device', the use experience of a user is further improved and the playing method of game application is enriched by setting a larger first collision detection area for the high-grade explosion-proof device and setting a smaller first collision detection area for the primary explosion-proof device.
Optionally, in this embodiment, after the user places the first virtual item, a first collision detection area corresponding to the first virtual item is generated at the first position, and the first virtual item periodically determines whether the second virtual item is detected in the first collision detection area. For example, the distance between each target type of virtual item and the first virtual item may be calculated by, but is not limited to, obtaining all target types of virtual items in a scene of the game application, where if the distance value is greater than the first collision detection area, the first virtual item cannot detect the target type of virtual item, and if the distance value is less than the first collision detection area, the target type of virtual item may be detected and determined as the second virtual item.
Optionally, in this embodiment, the first collision detection area may include, but is not limited to, as shown in fig. 5, fig. 5 is a schematic diagram of another control method of a virtual item according to an embodiment of the present invention, where the first collision detection area 502 is set as a virtual spherical collision box, when a target type of virtual item enters the first collision detection area 502, that is, when a collision occurs with an edge 504 of the virtual spherical collision box, a corresponding interception logic is triggered, which may include, but is not limited to, causing the second virtual item 506 to explode immediately at the edge 504 without affecting the first virtual item 508, and as long as the first virtual item is not within an explosion range of the second virtual item, detection and interception can be continued.
The above detection manner is an example, and the specific manner in which the second virtual item can be detected is not particularly limited.
Through this embodiment, the mode that utilizes the setting collision detection zone can effectually acquire the virtual stage property of target type that is in first collision detection zone territory, and then can accomplish the second virtual stage property that the confirmation needs to defend to accomplish subsequent defense operation, increased the equilibrium of recreation application, optimized user's use and experienced, richened the technological effect of the play method of recreation.
In an alternative embodiment, controlling the defense of the first virtual item against the second virtual item includes at least one of: destroying the second virtual prop to cancel the attack operation of the second virtual prop on the target virtual operation object; changing the flight track of the second virtual prop to reduce or avoid the attack injury of the second virtual prop to the target virtual operation object; reducing the attack injury range of the second virtual prop so as to reduce or avoid the attack injury of the second virtual prop to the target virtual operation object; and reducing the attack injury of the second virtual prop so as to reduce or avoid the attack injury of the second virtual prop to the target virtual operation object.
Optionally, in this embodiment, the destroying includes, but is not limited to, canceling the display of the second virtual item, or changing a preset model of the second virtual item, and updating the model of the second virtual item to a virtual model used for representing that the second virtual item has been destroyed, and while destroying, may also include, but is not limited to, playing a target animation effect used for representing that the second virtual item has been destroyed, where the animation effect is preset by a system.
Optionally, in this embodiment, the changing the flight trajectory of the second virtual prop may include, but is not limited to, updating the flight direction of the second virtual prop from an original direction to a direction away from a location where the second virtual prop is located.
Optionally, in this embodiment, the reducing the attack damage range of the second virtual item may include, but is not limited to, reducing the attack range of the second virtual item from large to small, and reducing the effective range of the second virtual item, so that the second virtual item is more easily avoided by the target virtual operation object.
Optionally, in this embodiment, the reducing the attack damage of the second virtual item may include, but is not limited to, reducing the attack damage of the second virtual item from large to small, and reducing an effect caused after the second virtual item takes effect, so that the second virtual item is more easily borne by the target virtual operation object.
Through this embodiment, the effect of the second virtual item after defense may be set to different effects, which may include but not limited to one or more combinations of the above and other effects that can disable the second virtual item, and this is not specifically limited in the present invention.
In an alternative embodiment, after placing the first virtual item at a first location in a game screen displayed by the target game application, the method further comprises at least one of: when the first virtual item is attacked so that the virtual life value of the first virtual item becomes 0, destroying the first virtual item in the target game application, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item; when the accumulated time of the first virtual item placed on the first position reaches a preset time length, destroying the first virtual item in the target game application, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item; and under the condition that the number of the virtual props of the first virtual prop defense target type reaches the preset number, destroying the first virtual prop in the target game application, so that the target virtual operation object cannot use the first virtual prop to defend the virtual prop of the target type.
Optionally, in this embodiment, the virtual life value of the first virtual item may be preset by a system, or different virtual life values may be configured based on different first virtual items, a first virtual item with a larger first collision detection range may be configured with a higher virtual life value, and a first virtual item with a smaller first collision detection area may be configured with a lower virtual life value, so as to further distinguish different first virtual items.
Optionally, in this embodiment, the accumulated time of the first virtual item placed at the first position may start to be accumulated after the placement is completed, or may include but is not limited to setting a virtual switch for the first virtual item, and starting to accumulate the time length in an open state, where the preset time length may be set according to corresponding binding of different types of first virtual items, for example, configuring a first virtual item with a smaller first collision detection area for a shorter preset time, so as to further distinguish the different first virtual items.
Optionally, in this embodiment, the number of virtual items of the first virtual item defense target type reaching the preset number may include, but is not limited to, calculating a total defense number, or setting different defense numbers for different types of second virtual items.
Through this embodiment, to the first virtual stage property or the second virtual stage property of different grade type, or different gaming mode, can both provide the same or different mode of cancelling first virtual stage property, and then can reach the play method that richens the game application, optimize the technological effect that user's use was experienced.
In an optional embodiment, after placing the first virtual item at a first location in a game screen displayed by the target game application, the method further comprises: and starting the timing of the survival time of the first virtual item, wherein the first virtual item is destroyed in the target game application under the condition that the survival time reaches the preset time length, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item.
Optionally, in this embodiment, the lifetime of the first virtual item is used to represent a cumulative time that the first virtual item is placed at a location (e.g., a first location, or a second location).
In an optional embodiment, after placing the first virtual item at a first location in a game screen displayed by the target game application, the method further comprises: acquiring a second touch operation in the target game application, wherein the second touch operation is used for indicating a target virtual operation object to pick up a first virtual item placed on a first position; and responding to the second touch operation, controlling the target virtual operation object to pick up the first virtual item placed on the first position in the target game application, and resetting the survival time of the first virtual item.
Optionally, in this embodiment, the controlling the target virtual operation object to pick up the first virtual item placed at the first position may include, but is not limited to, picking up the first virtual item through a preset second touch operation, or may also include, but is not limited to, picking up the placed first virtual item when a virtual collision box of the target virtual operation object collides with a virtual collision box of the first virtual item, and the resetting of the lifetime of the first virtual item may include, but is not limited to, restoring the preset lifetime for the first virtual item, or may also include, but is not limited to, configuring a new lifetime for the first virtual item, where the new lifetime may be shorter than an original time, and a technical effect of making a game application more balanced may be achieved.
In an optional embodiment, after placing the first virtual item at a first location in a game screen displayed by the target game application, the method further comprises: acquiring a third touch operation in the target game application; and responding to the third touch operation, placing the first virtual prop at a second position in the game picture displayed by the target game application, and starting the timing of the survival time of the first virtual prop.
Optionally, in this embodiment, the third touch operation may be the same as or different from the first touch operation, and the second position may be the same as or different from the first position, and the third touch operation may further include, but is not limited to, setting the second position to be matched with the first position, and repositioning the first virtual item, so that the lifetime of the first virtual item is reset, and the first virtual item is reused.
Through this embodiment, can make above-mentioned first virtual stage property by used repeatedly, strengthen the object game and used the object for appreciation nature, optimize user's use and experienced, be convenient for according to actual conditions repetitious usage above-mentioned first virtual stage property.
In an optional embodiment, before acquiring the first touch operation in the target game application, the method further includes: acquiring a fourth touch operation in the target game application, wherein the fourth touch operation is used for selecting an expected placement position of the first virtual item; in response to the fourth touch operation, displaying a predicted placement position of the first virtual item in the target game application; in the case that the expected placement position is a placement-allowed position, displaying a first position identifier on the expected placement position, wherein the first position identifier is used for indicating that the expected placement position is a placement-allowed position; and in the case that the expected placement position is a position where the placement is not allowed, displaying a second position identification on the expected placement position, wherein the second position identification is used for indicating that the expected placement position is the position where the placement is not allowed.
Alternatively, in this embodiment, the touch operations performed by the user may include, but are not limited to, clicking, double-clicking, long-pressing, releasing, and the like, and the first touch operation and the fourth touch operation may be the same or different, for example, the first touch operation and the fourth touch operation may be set as a clicking manner, that is, when the user clicks the virtual key for the first time, the first location identifier is displayed at the expected placement location, and when the user clicks the virtual key again, the first virtual item is placed at the first location identifier, and the first location identifier or the second location identifier may be displayed by setting the first touch operation as releasing the virtual button, and the fourth touch operation as clicking the virtual button or clicking the virtual button and rotating the virtual button, that is, when the user presses the virtual key for the long time to display the first location identifier, releases the virtual key, the first virtual prop is placed in the area corresponding to the first position identification, specific and relevant operations can be easily performed by a user through flexibly setting the first touch operation and the fourth touch operation, different using requirements of different users are met, the using frequency of the first virtual prop can be improved, and relevant operation experience of the user is optimized.
Optionally, in this embodiment, fig. 6 is a schematic diagram of another method for controlling a virtual item according to an embodiment of the present invention, as shown in fig. 6, the first location identifier 602 and the second location identifier 604 in the target game application may be, but are not limited to, identified by colors, for example, when placement is allowed, a model color of the first virtual item is set to blue as the first location identifier, when placement is not allowed, a model of the first virtual item is set to red as the second location identifier, and a user determines whether placement can be performed in a placement area by observing a color of a virtual model corresponding to the first virtual item, where the specific identifier color is only an optional embodiment and is not limited to the specific set color.
When the first location identifier and the second location identifier are displayed in the target game application, for example, a prompt message may be set for identification, and specific identification manners include, but are not limited to, text prompt, voice prompt, and the like, and may further include one or a combination of a plurality of the above different identification manners.
Whether the virtual props can be controlled or not is informed to the operator through different prompting modes, so that the operator can use the virtual props more intuitively and effectively.
The present invention is further described below with reference to specific embodiments, and fig. 7 is a schematic flow chart of another method for controlling a virtual item according to an embodiment of the present invention, as shown in fig. 7, the steps of the flow chart are as follows:
s701, releasing the defense device (corresponding to the placement of the first virtual prop);
s702, whether a preventable flying device (corresponding to the second virtual item of the target type) exists in the collision detection area or not is judged, and if the second virtual item exists, the step S703 is skipped, otherwise, the step S705 is skipped;
s703, playing a defense special effect at the position of the flight device;
s704, destroying the flight device and canceling the display of the flight device;
s705, detecting the placing time length of the defense device, jumping to the step S706 under the condition that the placing time length exceeds the preset time length, otherwise, returning to the step S702,
s706, playing special explosion effect (corresponding to the damage of the first virtual prop)
And S707, destroying the first virtual prop and canceling the display of the first virtual prop.
In this embodiment, the explosion proof device will be created at the drop point location after placement of the explosion proof device. The explosion-proof device periodically judges whether an enemy flying device exists in a collision detection area of the explosion-proof device. The detection method comprises the steps of firstly obtaining all flying devices in a scene, and obtaining a distance value after calculating the positions of the flying devices and the explosion-proof device. If the distance value is greater than the collision detection area of the explosion protection device, the latter cannot interfere with this flying device. If the distance value is smaller than the collision detection area of the explosion-proof device, the explosion-proof device is destroyed.
And calculating the survival time of the explosion-proof device in each calculation period, and if the maximum survival time of the explosion-proof device is exceeded, destroying the explosion-proof device. If the player picks up the explosion protection device, the cumulative time to live will be zeroed and the calculation restarted.
Fig. 8 is a schematic flow chart of a further method for controlling a virtual item according to an embodiment of the present invention, and as shown in fig. 8, the steps of the flow chart are as follows:
s801, selecting a defense device in a game interface of a game application (corresponding to the configuration of the first virtual item on the preset interface);
s802, press the firing button (corresponding to the fourth touch operation)
S803, predetermining a defensive device placing position (corresponding to the aforementioned first position or second position);
s804, determining whether the placement position is an available position (corresponding to the first position), if yes, jumping to step S805, and if no, jumping to step S806;
s805, displaying a blue pre-release special effect (corresponding to the first location identifier); .
S806, the red pre-release special effect (corresponding to the aforementioned second position indication) is displayed.
The pre-release drop point is determined by forming an initial velocity vector V according to the throwing speed and the current aiming direction of the target virtual operation object, which are configured in advance by the system. Another vector g is formed with the vertical downward gravitational acceleration. The vector addition of V and g is the pre-targeting direction of the release point. Ray detection may be performed by including but not limited to singlelinerocknoalloc (), and the intersection of the first detected virtual collision volume in the game application scene is set as the pre-release drop point.
The above-mentioned determining whether the drop point is available may include the following:
1. and detecting whether the distance between the drop point and the player exceeds the maximum distance configured by the system, and if so, determining that the drop point is an invalid drop point.
2. It is determined whether the attribute of the first collision volume belongs to the WorldStatic tag. The label mainly comprises static objects which are configured in advance by the system in scenes such as a virtual ground, a virtual wall and the like.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the invention, a control device of the virtual prop is further provided, wherein the control device is used for implementing the control method of the virtual prop. As shown in fig. 9, the apparatus includes:
an obtaining module 902, configured to obtain a first touch operation in a target game application, where the first touch operation is used to instruct a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used to defend a target type virtual item in the target game application;
a placing module 904, configured to place a first virtual item at a first position in a game screen displayed by a target game application in response to a first touch operation;
the control module 906 is configured to control the first virtual item to defend the second virtual item when the second virtual item appears in the predetermined range of the first virtual item located at the first position, where the second virtual item is a target type of virtual item.
Optionally, the apparatus further comprises:
the device comprises a setting module, a detection module and a display module, wherein the setting module is used for setting a first collision detection area of a first virtual item around a first position after the first virtual item is placed at the first position in a game picture displayed by a target game application in response to a first touch operation, the first position is located in the first collision detection area, and a preset range is the first collision detection area;
and the determining module is used for determining that the second virtual prop appears in the preset range of the first position under the condition that the second virtual prop collides with the first collision detection area.
Optionally, the control module comprises at least one of:
the first processing unit is used for destroying the second virtual item so as to cancel the attack operation executed by the second virtual item on the target virtual operation object;
the second processing unit is used for changing the flight track of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object;
the third processing unit is used for reducing the attack damage range of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object;
and the fourth processing unit is used for reducing the attack damage of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object.
Optionally, the first processing unit further comprises at least one of:
the first destroying subunit is configured to destroy, in the target game application, the first virtual item after the first virtual item is placed at a first position in a game picture displayed by the target game application, when the first virtual item is attacked and a virtual life value of the first virtual item becomes 0, so that the target virtual operation object cannot defend the target-type virtual item using the first virtual item;
the second destroying subunit is configured to destroy, after the first virtual item is placed at the first position in the game picture displayed by the target game application, the first virtual item in the target game application when the accumulated time for the first virtual item to be placed at the first position reaches a preset time length, so that the target virtual operation object cannot defend the virtual item of the target type using the first virtual item;
and the third destroying subunit is configured to destroy the first virtual item in the target game application when the number of the virtual items of the target type defended by the first virtual item reaches a preset number of times after the first virtual item is placed at the first position in the game picture displayed by the target game application, so that the target virtual operation object cannot defend the virtual item of the target type by using the first virtual item.
Optionally, the apparatus is further configured to:
after the first virtual item is placed at the first position in the game picture displayed by the target game application, the timing of the survival time of the first virtual item is started, wherein the first virtual item is destroyed in the target game application under the condition that the survival time reaches the preset time length, so that the target virtual operation object cannot defend the virtual item of the target type by using the first virtual item.
Optionally, the apparatus is further configured to:
after a first virtual item is placed at a first position in a game picture displayed by a target game application, a second touch operation is obtained in the target game application, wherein the second touch operation is used for indicating a target virtual operation object to pick up the first virtual item placed at the first position; and responding to the second touch operation, controlling the target virtual operation object to pick up the first virtual item placed on the first position in the target game application, and resetting the survival time of the first virtual item.
Optionally, the apparatus is further configured to:
after a first virtual item is placed at a first position in a game picture displayed by a target game application, a third touch operation is obtained in the target game application; and responding to the third touch operation, placing the first virtual prop at a second position in the game picture displayed by the target game application, and starting the timing of the survival time of the first virtual prop.
Optionally, the apparatus is further configured to: before the first touch operation is obtained in the target game application, a fourth touch operation is obtained in the target game application, wherein the fourth touch operation is used for selecting an expected placement position of the first virtual item; in response to the fourth touch operation, displaying a predicted placement position of the first virtual item in the target game application; in the case that the expected placement position is a placement-allowed position, displaying a first position identifier on the expected placement position, wherein the first position identifier is used for indicating that the expected placement position is a placement-allowed position; and in the case that the expected placement position is a position where the placement is not allowed, displaying a second position identification on the expected placement position, wherein the second position identification is used for indicating that the expected placement position is the position where the placement is not allowed.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the control method of the virtual item, where the electronic device may be a terminal device or a server shown in fig. 1. The present embodiment takes the electronic device as an example for explanation. As shown in fig. 10, the electronic device comprises a memory 1002 and a processor 1004, the memory 1002 having stored therein a computer program, the processor 1004 being arranged to execute the steps of any of the method embodiments described above by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a first touch operation in the target game application, wherein the first touch operation is used for indicating a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used for defending a target type virtual item in the target game application;
s2, in response to the first touch operation, placing a first virtual item at a first position in a game picture displayed by the target game application;
s3, when a second virtual item appears in the preset range of the first virtual item at the first position, the first virtual item is controlled to defend the second virtual item, wherein the second virtual item is a target type virtual item.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 10 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 10 is a diagram illustrating a structure of the electronic device. For example, the electronics may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
The memory 1002 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for controlling a virtual item in the embodiment of the present invention, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, implements the method for controlling a virtual item described above. The memory 1002 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 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1002 may specifically include, but is not limited to, information such as a model for the virtual item, a type of the virtual item, and a model of the virtual operation object. As an example, as shown in fig. 10, the memory 1002 may include, but is not limited to, an obtaining module 902, a placing module 904, and a control module 906 in the control device that includes the virtual prop. In addition, the system may further include, but is not limited to, other module units in the control device of the virtual item, which is not described in detail in this example.
Optionally, the above-mentioned transmission device 1006 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 1006 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 1006 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: display 1008 to display a first virtual prop; and a connection bus 1010 for connecting the respective module parts in the above-described electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to a further aspect of an embodiment of the invention, there is provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations of controlling the virtual props described above.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a first touch operation in the target game application, wherein the first touch operation is used for indicating a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used for defending a target type virtual item in the target game application;
s2, in response to the first touch operation, placing a first virtual item at a first position in a game picture displayed by the target game application;
s3, when a second virtual item appears in the preset range of the first virtual item at the first position, the first virtual item is controlled to defend the second virtual item, wherein the second virtual item is a target type virtual item.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A control method of a virtual prop is characterized by comprising the following steps:
acquiring a first touch operation in a target game application, wherein the first touch operation is used for indicating a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used for defending a target type virtual item in the target game application;
in response to the first touch operation, placing the first virtual item at a first position in a game picture displayed by the target game application;
and under the condition that a second virtual prop appears in a preset range of the first virtual prop located at the first position, controlling the first virtual prop to defend the second virtual prop, wherein the second virtual prop is the target type virtual prop.
2. The method of claim 1, wherein after placing the first virtual item at a first location in a game screen displayed by the target game application in response to the first touch operation, the method further comprises:
arranging a first collision detection area of the first virtual prop around the first position, wherein the first position is located in the first collision detection area, and the predetermined range is the first collision detection area;
and under the condition that the second virtual prop collides with the first collision detection area, determining that the second virtual prop appears in the preset range of the first position.
3. The method of claim 1, wherein said controlling the first virtual prop to defend the second virtual prop comprises at least one of:
destroying the second virtual prop to cancel the attack operation of the second virtual prop on the target virtual operation object;
changing the flight track of the second virtual prop to reduce or avoid the attack injury of the second virtual prop to the target virtual operation object;
reducing the attack damage range of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object;
and reducing the attack injury of the second virtual prop so as to reduce or avoid the attack injury of the second virtual prop to the target virtual operation object.
4. The method of claim 1, wherein after placing the first virtual item at a first location in a game screen displayed by the target game application, the method further comprises at least one of:
if the first virtual item is attacked, so that the virtual life value of the first virtual item becomes 0, destroying the first virtual item in the target game application, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item;
when the accumulated time of the first virtual item placed on the first position reaches a preset time length, destroying the first virtual item in the target game application, so that the target virtual operation object cannot use the first virtual item to defend the target type of virtual item;
and under the condition that the number of the first virtual item defending the target type of virtual item reaches a preset number, destroying the first virtual item in the target game application, so that the target virtual operation object cannot defend the target type of virtual item by using the first virtual item.
5. The method of claim 1, wherein after placing the first virtual item at a first location in a game screen displayed by the target game application, the method further comprises:
starting timing of the survival time of the first virtual item, wherein the first virtual item is destroyed in the target game application when the survival time reaches a preset time length, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item.
6. The method of claim 5, wherein after placing the first virtual item at a first location in a game screen displayed by the target game application, the method further comprises:
acquiring a second touch operation in the target game application, wherein the second touch operation is used for instructing the target virtual operation object to pick up the first virtual item placed on the first position;
and responding to the second touch operation, controlling the target virtual operation object to pick up the first virtual item placed on the first position in the target game application, and resetting the survival time of the first virtual item.
7. The method of claim 6, wherein after placing the first virtual item at a first location in a game screen displayed by the target game application, the method further comprises:
acquiring a third touch operation in the target game application;
and responding to the third touch operation, placing the first virtual prop at a second position in a game picture displayed by the target game application, and starting the timing of the survival time of the first virtual prop.
8. The method of any one of claims 1-7, wherein prior to obtaining the first touch operation in the target game application, the method further comprises:
obtaining a fourth touch operation in the target game application, wherein the fourth touch operation is used for selecting a predicted placement position of the first virtual item;
in response to the fourth touch operation, displaying a predicted placement position of the first virtual item in the target game application;
in the case that the expected placement position is a placement-allowed position, displaying a first position identifier on the expected placement position, wherein the first position identifier is used for indicating that the expected placement position is a placement-allowed position;
and displaying a second position identification on the expected placement position in the case that the expected placement position is a position where placement is not allowed, wherein the second position identification is used for indicating that the expected placement position is a position where placement is not allowed.
9. A control device of a virtual prop, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a first touch operation in a target game application, the first touch operation is used for indicating a target virtual operation object in the target game application to place a first virtual item, and the first virtual item is used for defending a target type virtual item in the target game application;
the placement module is used for responding to the first touch operation and placing the first virtual prop at a first position in a game picture displayed by the target game application;
and the control module is used for controlling the first virtual prop to defend the second virtual prop when the second virtual prop appears in a preset range of the first virtual prop at the first position, wherein the second virtual prop is the target type virtual prop.
10. The apparatus of claim 9, wherein after placing the first virtual item at a first location in a game screen displayed by the target game application in response to the first touch operation, the method further comprises: the device further comprises:
a setting module, configured to set a first collision detection area of the first virtual item around the first location, where the first location is located in the first collision detection area, and the predetermined range is the first collision detection area;
and the determining module is used for determining that the second virtual prop appears in the preset range of the first position under the condition that the second virtual prop collides with the first collision detection area.
11. The apparatus of claim 9, wherein the control module comprises at least one of:
the first processing unit is used for destroying the second virtual item so as to cancel the attack operation executed by the second virtual item on the target virtual operation object;
the second processing unit is used for changing the flight track of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object;
the third processing unit is used for reducing the attack damage range of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object;
and the fourth processing unit is used for reducing the attack damage of the second virtual prop so as to reduce or avoid the attack damage of the second virtual prop to the target virtual operation object.
12. The apparatus of claim 9, wherein the first processing unit comprises at least one of:
a first destruction subunit, configured to, after the first virtual item is placed at a first position in a game screen displayed by the target game application, destroy the first virtual item in the target game application when the first virtual item is attacked so that a virtual life value of the first virtual item becomes 0, so that the target virtual operation object cannot defend the target type of virtual item using the first virtual item;
a second destruction subunit, configured to, after the first virtual item is placed at a first position in a game screen displayed by the target game application, destroy the first virtual item in the target game application when a cumulative time for the first virtual item to be placed at the first position reaches a preset time length, so that the target virtual operation object cannot defend the virtual item of the target type using the first virtual item;
a third destroying subunit, configured to destroy, after the first virtual item is placed at a first position in a game screen displayed by the target game application, the first virtual item in the target game application when the number of times the first virtual item defends the virtual item of the target type reaches a preset number of times, so that the target virtual operation object cannot use the first virtual item to defend the virtual item of the target type.
13. The apparatus of claim 9, wherein the apparatus is further configured to:
after the first virtual item is placed at a first position in a game picture displayed by the target game application, timing of the survival time of the first virtual item is started, wherein the first virtual item is destroyed in the target game application under the condition that the survival time reaches a preset time length, so that the target virtual operation object cannot defend the target type virtual item by using the first virtual item.
14. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 8.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 8 by means of the computer program.
CN202010561861.2A 2020-06-18 2020-06-18 Control method and device of virtual prop, storage medium and electronic equipment Active CN111701244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010561861.2A CN111701244B (en) 2020-06-18 2020-06-18 Control method and device of virtual prop, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010561861.2A CN111701244B (en) 2020-06-18 2020-06-18 Control method and device of virtual prop, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111701244A true CN111701244A (en) 2020-09-25
CN111701244B CN111701244B (en) 2021-06-08

Family

ID=72541706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010561861.2A Active CN111701244B (en) 2020-06-18 2020-06-18 Control method and device of virtual prop, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111701244B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112156470A (en) * 2020-10-21 2021-01-01 腾讯科技(深圳)有限公司 Resource processing method and device based on virtual scene and computer equipment
CN112402966A (en) * 2020-11-20 2021-02-26 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium
CN112843723A (en) * 2021-02-03 2021-05-28 北京字跳网络技术有限公司 Interaction method, interaction device, electronic equipment and storage medium
CN113476846A (en) * 2021-07-05 2021-10-08 网易(杭州)网络有限公司 Game display control method, electronic device, and storage medium
CN113559518A (en) * 2021-07-30 2021-10-29 网易(杭州)网络有限公司 Interaction detection method and device of virtual model, electronic equipment and storage medium
CN113680067A (en) * 2021-08-19 2021-11-23 网易(杭州)网络有限公司 Method, device, equipment and storage medium for controlling virtual props in game

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019031928A1 (en) * 2017-08-11 2019-02-14 주식회사 라타타스튜디오 Game provision method and device
CN110694273A (en) * 2019-10-18 2020-01-17 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for controlling virtual object to use prop
CN110812837A (en) * 2019-11-12 2020-02-21 腾讯科技(深圳)有限公司 Virtual item placing method and device, storage medium and electronic device
CN111111194A (en) * 2019-11-28 2020-05-08 腾讯科技(深圳)有限公司 Virtual object control method, device, storage medium and electronic device
CN111135568A (en) * 2019-12-17 2020-05-12 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic device
CN111265857A (en) * 2020-01-20 2020-06-12 腾讯科技(深圳)有限公司 Trajectory control method, device, equipment and storage medium in virtual scene

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019031928A1 (en) * 2017-08-11 2019-02-14 주식회사 라타타스튜디오 Game provision method and device
CN110694273A (en) * 2019-10-18 2020-01-17 腾讯科技(深圳)有限公司 Method, device, terminal and storage medium for controlling virtual object to use prop
CN110812837A (en) * 2019-11-12 2020-02-21 腾讯科技(深圳)有限公司 Virtual item placing method and device, storage medium and electronic device
CN111111194A (en) * 2019-11-28 2020-05-08 腾讯科技(深圳)有限公司 Virtual object control method, device, storage medium and electronic device
CN111135568A (en) * 2019-12-17 2020-05-12 腾讯科技(深圳)有限公司 Control method and device of virtual prop, storage medium and electronic device
CN111265857A (en) * 2020-01-20 2020-06-12 腾讯科技(深圳)有限公司 Trajectory control method, device, equipment and storage medium in virtual scene

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112156470A (en) * 2020-10-21 2021-01-01 腾讯科技(深圳)有限公司 Resource processing method and device based on virtual scene and computer equipment
CN112402966A (en) * 2020-11-20 2021-02-26 腾讯科技(深圳)有限公司 Virtual object control method, device, terminal and storage medium
CN112843723A (en) * 2021-02-03 2021-05-28 北京字跳网络技术有限公司 Interaction method, interaction device, electronic equipment and storage medium
CN112843723B (en) * 2021-02-03 2024-01-16 北京字跳网络技术有限公司 Interaction method, interaction device, electronic equipment and storage medium
CN113476846A (en) * 2021-07-05 2021-10-08 网易(杭州)网络有限公司 Game display control method, electronic device, and storage medium
CN113559518A (en) * 2021-07-30 2021-10-29 网易(杭州)网络有限公司 Interaction detection method and device of virtual model, electronic equipment and storage medium
CN113680067A (en) * 2021-08-19 2021-11-23 网易(杭州)网络有限公司 Method, device, equipment and storage medium for controlling virtual props in game

Also Published As

Publication number Publication date
CN111701244B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN111701244B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN110812837B (en) Virtual item placing method and device, storage medium and electronic device
CN111443857B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN108310765B (en) Image display method and device, storage medium and electronic device
CN111111194B (en) Virtual object control method, device, storage medium and electronic device
CN110841290A (en) Processing method and device of virtual prop, storage medium and electronic device
CN111035923B (en) Operation method and device of virtual prop, storage medium and electronic device
CN111659118B (en) Prop control method and device, storage medium and electronic equipment
CN111202982A (en) Control method and device of virtual prop, storage medium and electronic device
CN111111191B (en) Virtual skill activation method and device, storage medium and electronic device
CN111111217A (en) Control method and device of virtual prop, storage medium and electronic device
CN111589152B (en) Control method and device of virtual attack prop, storage medium and electronic equipment
CN110975283A (en) Processing method and device of virtual shooting prop, storage medium and electronic device
CN111672123A (en) Control method and device of virtual operation object, storage medium and electronic equipment
CN112107860A (en) Control method and device of virtual prop, storage medium and electronic equipment
CN112221136B (en) Feedback information display method and device, storage medium and electronic equipment
CN112370785B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN111068330B (en) Processing method and device of virtual attack prop, storage medium and electronic device
CN111359207B (en) Operation method and device of virtual prop, storage medium and electronic device
CN111258489B (en) Operation method and device of virtual prop and storage medium
CN111443838B (en) Control method and device of virtual operation object, storage medium and electronic device
CN112107859A (en) Prop control method and device, storage medium and electronic equipment
CN111111165A (en) Control method and device of virtual prop, storage medium and electronic device
CN113599822B (en) Virtual prop control method and device, storage medium and electronic equipment
CN111318018A (en) Control method and device of virtual prop, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40028961

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant