CN112107861B - 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
CN112107861B
CN112107861B CN202010990158.3A CN202010990158A CN112107861B CN 112107861 B CN112107861 B CN 112107861B CN 202010990158 A CN202010990158 A CN 202010990158A CN 112107861 B CN112107861 B CN 112107861B
Authority
CN
China
Prior art keywords
virtual
smoke
character object
virtual character
avatar
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010990158.3A
Other languages
Chinese (zh)
Other versions
CN112107861A (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 CN202010990158.3A priority Critical patent/CN112107861B/en
Publication of CN112107861A publication Critical patent/CN112107861A/en
Application granted granted Critical
Publication of CN112107861B publication Critical patent/CN112107861B/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
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/837Shooting of targets
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/8076Shooting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

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: the method comprises the steps of obtaining a first interactive operation in a target game application, responding to the first interactive operation, controlling a first virtual character object to release a target virtual prop, displaying virtual smoke triggered by the target virtual prop in the target game application, obtaining a second interactive operation in the target game application, responding to the second interactive operation, controlling the first virtual character object to move, controlling the virtual smoke to move along with the first virtual character object, and configuring the virtual smoke to be capable of moving along with the virtual character object. The invention solves the technical problem that the control operation has limitation in the control process of the virtual prop for releasing the interfering substances provided by 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 the related art, after a virtual smoke bomb is used in a target game application, a certain range of smoke is generated in an explosion area to block the view of a game player. The generated smoke is maintained for a certain time and dissipated after a preset time. Once the smoke prop is thrown to the set position, the smoke prop emits smoke in the area where the set position is located so as to shield the view of players in the area. That is, in the related art, for the virtual prop releasing the interfering substance class, the interfering substance can be released only in a fixed area after the determined position is determined, and once the virtual object in the area moves out of the area, the virtual object is not affected by the interfering substance. That is, in the control process of the virtual prop for releasing the interfering substance provided by the related art, there is a technical problem that the control operation has a certain limitation.
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 the control operation is limited in the control process of the virtual item which is provided by the related technology and releases an interfering substance.
According to an aspect of an embodiment of the present invention, a method for controlling a virtual item is provided, including: acquiring a first interactive operation in a target game application, wherein the first interactive operation is used for controlling a first virtual character object to release a target virtual item; in response to the first interaction, controlling the first avatar object to release the target virtual item, and displaying a virtual smoke triggered by the target virtual item in the target game application, wherein the first avatar object is located in the virtual smoke, the virtual smoke is configured to allow movement following the first avatar object, and the first avatar object is invisible to avatar objects in a second object group when the first avatar object is located in the virtual smoke, the first avatar object is an avatar object in the first object group, and the first object group and the second object group are different object groups; acquiring a second interactive operation in the target game application, wherein the second interactive operation is used for controlling the first virtual character object to move; and responding to the second interactive operation, controlling the first virtual character object to move, and controlling the virtual smoke to move along with the first virtual character object.
According to another aspect of the embodiments of the present invention, there is also provided a control device of a virtual item, including: the first obtaining module is used for obtaining a first interactive operation in the target game application, wherein the first interactive operation is used for controlling a first virtual character object to release the target virtual prop; a first control module, configured to, in response to the first interaction, control the first avatar object to release the target virtual item, and display a virtual smoke triggered by the target virtual item in the target game application, where the first avatar object is located in the virtual smoke, the virtual smoke is set to allow movement along with the first avatar object, and when the first avatar object is located in the virtual smoke, the first avatar object is invisible to avatar objects in a second object group, the first avatar object is an avatar object in the first object group, and the first object group and the second object group are different object groups; a second obtaining module, configured to obtain a second interactive operation in the target game application, where the second interactive operation is used to control movement of the first virtual character object;
and the second control module is used for responding to the second interactive operation, controlling the first virtual character object to move and controlling the virtual smoke to move along with the first virtual character object.
According to another aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, and a computer program is stored in the computer-readable storage medium, where the computer program is configured to execute the control method for 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 present invention, a first interactive operation is obtained in a target game application, a first virtual character object is controlled to release a target virtual item in response to the first interactive operation, a virtual smoke triggered by the target virtual item is displayed in the target game application, a second interactive operation is obtained in the target game application, the first virtual character object is controlled to move in response to the second interactive operation, and the virtual smoke moves along with the first virtual character object.
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 an alternative control method for a virtual prop, according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another alternative method for controlling a virtual prop, according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative method for controlling a virtual prop, according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative method for controlling a virtual prop, according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another alternative control method for a virtual prop, according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of another alternative control method for a virtual prop, according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of another alternative control method for a virtual prop, according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of another alternative method for controlling a virtual prop, according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of another alternative control method for a virtual prop, according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of a method for controlling a further alternative virtual prop, according to an embodiment of the present invention;
FIG. 13 is a flowchart illustrating a method for controlling a further alternative virtual item, according to an embodiment of the present invention;
FIG. 14 is a schematic diagram of an alternative method for controlling a virtual prop, according to an embodiment of the present invention;
FIG. 15 is a schematic diagram of another alternative method for controlling a virtual prop, according to an embodiment of the present invention;
FIG. 16 is a schematic diagram of an alternative method for controlling a virtual prop, according to an embodiment of the present invention;
fig. 17 is a schematic structural diagram of a control device of an optional virtual prop according to an embodiment of the present invention;
fig. 18 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 is a shooter game (TPS), which is also a kind of shooter game, and is different from the first person in that a player is visible in a game screen.
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, a network 102, and a user terminal 103 as shown in fig. 1. As shown in fig. 1, a server 101 is connected to a user terminal 103 through a network, where the server may be, but is not limited to, used to provide services for the user terminal or a client installed on the user terminal, the client may include a video client, an instant messaging client, a browser client, a game client, and the like, and a target game application may run any one of the clients described above, or other clients capable of running the target game application described above. The server 101 may be, but not limited to, provided with a database 105 for providing a data storage service for the server 101. Further, the above networks may include, but are 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 terminal configured with a client of the target gaming application, and may include, but is not limited to, at least one of: the server 101 may be a single server, or a server cluster consisting of a plurality of servers, or a cloud server, the application 107 providing the control service of the virtual item may be, but is not limited to, displayed through a user terminal 103, and may use the control service of the virtual item through an entry of the application 107 configured on the terminal, for example, the application 107 may use the control method of the virtual item based on the control method of the virtual item, and information such as the virtual item and an interface for controlling the virtual item may be displayed through a display interface of the application 107, where the above is merely an example, and this is not limited in this embodiment.
With reference to fig. 1, the control method of the virtual item may be implemented by the following steps:
s102, the user terminal 103 displays a display interface of the target game application in a picture display area and acquires the first interactive operation in the display interface;
s104, the user terminal 103 responds to the first interactive operation, controls the first virtual character object to release the target virtual prop, and displays virtual smoke in a display interface of the user terminal 103;
s106, the user terminal 103 sends the game data corresponding to the first interactive operation to the server 101 through the network 102;
s108, the user terminal 103 displays the display interface of the target game application in the picture display area and obtains the second interactive operation in the display interface;
s110, the user terminal 103 responds to the second interactive operation and controls the first virtual character object to move;
s112, when it is acquired from the server 101 that the virtual smoke is set to allow movement following the first virtual character object, the user terminal 103 controls the virtual smoke to move following the first virtual character object.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for controlling the virtual item includes:
s202, acquiring a first interactive operation in a target game application, wherein the first interactive operation is used for controlling a first virtual character object to release a target virtual item;
s204, responding to the first interactive operation, controlling a first virtual character object to release the target virtual prop, and displaying virtual smoke triggered by the target virtual prop in the target game application, wherein the first virtual character object is located in the virtual smoke, the virtual smoke is set to be allowed to move along with the first virtual character object, when the first virtual character object is located in the virtual smoke, the first virtual character object is invisible for virtual character objects in a second object group, the first virtual character object is a virtual character object in a first object group, and the first object group and the second object group are different object groups;
s206, acquiring a second interactive operation in the target game application, wherein the second interactive operation is used for controlling the first virtual character object to move;
and S208, responding to the second interactive operation, controlling the first virtual character object to move, and controlling the virtual smoke to move along with the first virtual character object.
Optionally, in this embodiment, the control method of the virtual item may be applied to various Game applications, where the Game application may be a Multiplayer Online tactical sports Game (MOBA) or a Single Player Game (SPG). Without being limited in detail, the target game application may include, but is not limited to, a shooting application, a role playing application, an instant strategy application, and the like, the shooting application may include, but is not limited to, a first person shooting application, a third person shooting application, and a shooting application capable of switching between a first person and a third person, where fig. 3 is a schematic diagram of a control method of a virtual prop according to an embodiment of the present invention, and as shown in fig. 3, the application display interfaces may be distinguished as a first person display interface 301 and a third person display interface 303, and include, but is not limited to, a display interface for switching between a first person and a third person by using a viewing angle switching interactive button.
It should be noted that the game application may further include, but is not limited to, at least one of the following: two-dimensional (2D) game applications, three-dimensional (3D) game applications, virtual Reality (VR) game applications, augmented Reality (AR) game applications, mixed Reality (MR) game applications. The above is merely an example, and the present embodiment is not limited to this.
Optionally, in this embodiment, the above-mentioned different object groups may include, but are not limited to, groups preset before entering the current game, and groups performed by means of a preset grouping operation during the course of playing the current game. The grouping is used for indicating the marketing affiliated by a plurality of virtual objects participating in the same game task, and the virtual objects in different marketing are in opposite relation with each other.
Optionally, in this embodiment, the first virtual character object may include, but is not limited to, a virtual character object controlled by logging in a current game application through a preset account, such as a character object controlled by different players, where the preset account may be a registered account or a temporarily used guest account. Further, non-Player Character objects (Non-Player Character, NPC for short) may also be included, but not limited thereto.
For example, fig. 4 is a schematic view of another control method for a virtual item according to an embodiment of the present invention, and as shown in fig. 4, a target virtual item is set as a currently used virtual item in a configuration interface preset outside a station, and the content of the target virtual item is briefly described through the content shown in fig. 4:
s402, performing interactive operation on the interactive object 404 in the configuration interface 402 to select the target virtual prop;
s404, after selecting the target virtual item, performing an interactive operation on the interactive object 406 in the configuration interface 402 to configure the target virtual item as a currently used virtual item.
Optionally, in this embodiment, the target virtual item may include, but is not limited to, a virtual item pre-allocated by the server, or a virtual item set by an operator in a setting interface pre-configured by the server. The target virtual item can be configured on the virtual attack item in a preset manner, and can also include but is not limited to configuration as a virtual skill, so that triggering of the target virtual item can be realized, and triggering can be performed through but is not limited to interaction buttons preset in a game interface.
Optionally, in this embodiment, the first interaction operation may include, but is not limited to, clicking, sliding, long-pressing, releasing, and the like, and may further include, but is not limited to, one or a combination of multiple types of voice recognition, motion capture, and the like, and the second interaction operation may include, but is not limited to, being configured in the same manner or in a different manner as the first interaction operation.
For example, the first interactive operation may be set as a click, the second interactive operation may be set as a long press, and the control of the first virtual character object to release virtual smoke is implemented by clicking an interactive button for triggering the target virtual item, and after the virtual smoke is displayed in the target game application screen, the first virtual character object is controlled to move by long pressing the interactive button for controlling the virtual character object to move, and the virtual smoke is controlled to move along a movement track of the first virtual character object.
Optionally, in this embodiment, the invisible of the first avatar object to the avatar objects in the second object group may include, but is not limited to, masking an area where the first avatar object is located with virtual smoke, or replacing the area with virtual smoke. The above is merely an example, and the present embodiment is not limited in any way.
It should be noted that, the masking the area where the first virtual character object is located by using the virtual smoke may include, but is not limited to, overlaying a special effect of the virtual smoke on the model of the first virtual character object so that the area displayed in the user terminal is the virtual smoke, but interactive operations performed by other virtual character objects for the area may still be responded, and for example, interactive operations such as shooting, pulling and the like may be performed. The model for replacing the second virtual character object by using the virtual smoke may include, but is not limited to, replacing the model of the second virtual character object by a movable virtual smoke model, wherein the shape of the replaced virtual smoke model is the same as that of other surrounding virtual smoke models, but other interactive operations may be performed by controlling the corresponding first virtual character object, and other interactive operations performed by other virtual character objects on the replaced virtual smoke model may not be responded. The above is merely an example, and the present embodiment is not limited in any way.
Optionally, in this embodiment, the controlling the virtual smoke to move along with the first virtual character object may include, but is not limited to, setting to move along with the virtual character object in real time, setting to move along with the virtual character object after a preset time interval, and setting different movement ways to move along according to different sizes of the virtual smoke.
For example, fig. 5 is a schematic diagram of another optional control method of the virtual item according to an embodiment of the present invention, as shown in fig. 5, in a case that the size of the virtual smoke is a first value, the virtual smoke 502 is controlled to follow the first virtual character object 504 in real time to move from the position 506 to the position 508, the first virtual character object position is obtained by each frame, and the first virtual character object position is set as the position of the virtual smoke, and the first virtual character object position may also be obtained by, but not limited to, 0.5 seconds apart, and the first virtual character object position is set as the position of the virtual smoke 0.5 seconds apart, so as to control the virtual smoke to follow the first virtual character object in real time, or control the virtual smoke to follow the first virtual character object at preset time intervals, in a case that the size of the virtual smoke is a second value, the virtual smoke 502 is controlled to obtain the position of the first virtual character object by each frame, and determine whether the distance between the first virtual character object and the virtual smoke exceeds the radius of the center point of the virtual smoke, in a case that the size of the virtual smoke is determined as a second value, the smoke does not exceed, the case that the smoke is determined to move, the virtual smoke does not exceed the first virtual smoke, and the virtual smoke is set as a different virtual smoke, and the case that the virtual smoke is implemented by a different virtual smoke is not set, and the virtual smoke is determined by the virtual smoke.
It should be noted that, the controlling the virtual smoke to move along with the first virtual character object may include, but is not limited to, configuring a special effect of the virtual smoke in advance, obtaining location information of the first virtual character object at each frame or every preset time period, and configuring the location information as a display location of the special effect of the virtual smoke, so as to control the virtual smoke to move along with the first virtual character object, and may also include, but is not limited to, attaching the special effect of the virtual smoke to a model of the first virtual character object, so as to control the virtual smoke to move along with the first virtual character object.
Optionally, in this embodiment, after controlling the virtual smoke to move along with the first avatar object, the special effect of the virtual smoke retained at the previous time may be deleted or not deleted.
For example, fig. 6 is a schematic diagram of another optional method for controlling a virtual item according to an embodiment of the present invention, as shown in fig. 6, when the radius of virtual smoke is set to 1 meter, and the special effect of the virtual smoke is set to exceed the radius and is deleted, the virtual smoke is controlled to move along with a first virtual character object, and the special effect of the virtual smoke that exceeds the radius after moving is deleted, the virtual smoke 602 is controlled to move from a position 606 to a position 608 in real time along with a first virtual character object 604, a first virtual character object position is obtained through each frame, and the first virtual character object position is set to be the position of the virtual smoke, so that the virtual smoke is controlled to move along with the first virtual character object.
And under the condition that the special effect of the virtual smog is set to exceed the radius and is not deleted, controlling the virtual smog to move along with the first virtual character object, and keeping the special effect of the virtual smog which exceeds the radius after moving, so that the range of the virtual smog can be enlarged according to the moving track of the first virtual character object, and further the using effect of the virtual smog is further increased. The virtual smoke 602 is controlled to obtain the position of a first virtual character object through each frame, the position of the first virtual character object is set as the position of virtual smoke, the smoke special effect of the previous n frames is reserved, n is preset by a system, or is matched with a target virtual prop to display virtual smoke residue 610 for representing the moving track of the virtual smoke, and different following moving modes are set according to different sizes of the virtual smoke under the condition that the second value is different from the first value.
The above is merely an example, and the present embodiment is not limited in any way.
According to the embodiment of the application, a first interactive operation is obtained in a target game application, the first virtual character object is controlled to release the target virtual prop in response to the first interactive operation, virtual smoke triggered by the target virtual prop is displayed in the target game application, a second interactive operation is obtained in the target game application, the first virtual character object is controlled to move in response to the second interactive operation, the virtual smoke moves along with the first virtual character object, the virtual smoke is configured to move along with the virtual character object, the technical scheme that the virtual smoke can only be displayed in a fixed area in the related technology is replaced, the purpose that the virtual smoke and the virtual character object are controlled to move in a matched mode is achieved, the use mode of the virtual prop is enriched, the technical effect of use experience of the virtual prop is optimized, and the technical problem that control operation is limited in the control process of the virtual prop releasing interfering substances provided by the related technology is solved.
In an optional embodiment, the method further comprises: and in the process of controlling the virtual smoke to move along with the first virtual character object, controlling the relative position of the first virtual character object and the virtual smoke to be unchanged.
Optionally, in this embodiment, the relative position of the first avatar object and the virtual smoke may include, but is not limited to, pre-configuration by a server, or corresponding configuration according to different target virtual items.
It should be noted that the above relative position can be determined by the following methods including but not limited to:
the process may include, but is not limited to, the following steps:
s702, determining the current position of the first virtual character object and the current position of the virtual smoke;
s704, calculating the distance and the orientation between the first virtual character object and the virtual smoke according to the current position of the first virtual character object and the current position of the virtual smoke;
s706, in the case of controlling the first virtual character object to move, the distance and the orientation between the virtual smoke and the first virtual character object are controlled to be unchanged, that is, the relative position between the first virtual character object and the virtual smoke is controlled to be unchanged.
Fig. 7 is a schematic diagram of another optional virtual item control method according to an embodiment of the present invention, and as shown in fig. 7, a center 702 of a virtual smoke and a center 704 of a first virtual character object are determined, a vector 706 used for representing a relative position is generated, the center 704 of the first virtual character object is used as an origin of coordinates, and in a process of controlling the first virtual character object to move, the vector between the center 702 of the virtual smoke and the center 704 of the first virtual character object is kept unchanged as the vector 706, so as to implement that the relative position of the first virtual character object and the virtual smoke is controlled to be unchanged.
Through the embodiment, the relative position between the first virtual character object and the virtual smoke can be controlled to be unchanged, and then the virtual smoke is controlled to keep moving along with the first virtual character object in the game process, so that the technical effects of improving the utilization efficiency of the virtual smoke and increasing the playing method of the target game application are achieved.
In an optional embodiment, said controlling the relative position of said first avatar object and said virtual smoke to be unchanged during the controlling of said virtual smoke to follow said first avatar object comprises: and in the process of controlling the virtual smoke to move along with the first virtual character object, controlling the first virtual character object to be always positioned at the central position in the virtual smoke.
Optionally, in this embodiment, the above-mentioned controlling that the first avatar object is always located at the central position in the virtual smoke in the process of controlling the virtual smoke to move along with the first avatar object may include, but is not limited to, the following steps as shown in fig. 8:
s802, determining the central position of the first virtual role object and the central position of the virtual smoke;
s804, under the condition that the first virtual character object is controlled to move, controlling the central position of the virtual smoke to always coincide with the central position of the first virtual character object, that is, controlling the first virtual character object to always be located at the central position of the virtual smoke.
Fig. 9 is a schematic diagram of another optional virtual item control method according to an embodiment of the present invention, as shown in fig. 9, in response to the first interaction operation, a target virtual item is released at a center position of the first virtual character object, at this time, a center position of virtual smoke generated by the target virtual item is a center position 902 of the first virtual character object of the current frame, after the next frame obtains the second interaction operation, the center position 902 of the first virtual character object is controlled to move to a center position 904, and the center position of the virtual smoke is determined as the center position 904, so as to control the first virtual character object to be always located at the center position in the virtual smoke.
Through the embodiment, the central position of the virtual smoke can be always controlled to coincide with the central position of the first virtual character object, so that the virtual smoke can move along with the first virtual character object more effectively, the utilization efficiency of the virtual smoke is improved, and the technical effects of increasing the playing method of the target game application are achieved.
In an optional embodiment, the method further comprises: detecting whether a second avatar object is located within a second smoke range of the virtual smoke while the virtual smoke moves from a first position to a second position following the first avatar object, wherein the second smoke range is a smoke range of the virtual smoke at the second position, the second avatar object is located outside a first smoke range of the virtual smoke while the virtual smoke is at the first position, the first smoke range is a smoke range of the virtual smoke at the first position, and the second avatar object is an avatar object in the second object group; displaying the virtual smoke in a game screen of the second virtual character object when the second virtual character object is within the second smoke range of the virtual smoke, wherein the first virtual character object is invisible to the second virtual character object.
Optionally, in this embodiment, the second virtual character object is an operation object belonging to a different object group from the first virtual character object, and when the second virtual character object is located outside the smoke range of the virtual smoke, the displaying of the simple animated special effect for displaying the virtual smoke in the game screen of the second virtual character object may include, but is not limited to, displaying the simple animated special effect for displaying the virtual smoke in the game screen of the second virtual character object, or when the second virtual character object is located within the smoke range of the virtual smoke, the displaying of the complex animated special effect for completely shielding the view of the second virtual character object in the game screen of the second virtual character object may include, but is not limited to, displaying the different animated special effects when the second virtual character object is located within the smoke range of the virtual smoke and located outside the smoke range of the virtual smoke.
The above is merely an example, and the present embodiment is not limited in any way.
For example, fig. 10 is a schematic diagram of a further alternative method for controlling a virtual item according to an embodiment of the present invention, as shown in fig. 10, a first smoke range 1002 does not include a second virtual character object 1004, a second smoke range 1006 includes the second virtual character object 1004, and after determining that the second virtual character object 1004 is located in the second smoke range 1006, an animated special effect of the virtual smoke is displayed in a game screen of the second virtual character object, and the first virtual character object is not displayed.
According to the embodiment, when the second virtual character object is located in the smoke range of the virtual smoke, the animation special effect for representing the virtual smoke can be displayed in the game picture of the second virtual character object, and further, under the condition that the generated virtual smoke cannot influence the second virtual character object due to the fact that the target virtual prop is released for the first time, the view of the second virtual character object is influenced by controlling the first virtual character object to move and controlling the smoke range of the virtual smoke to move, the virtual smoke is displayed in the game picture of the second virtual character object, the playing method of the target game application is enriched, and the using efficiency of the target virtual prop is improved.
In an optional embodiment, the method further comprises: detecting whether a third avatar object is always located in the virtual smoke while controlling the virtual smoke to follow the first avatar object from a first position, wherein the third avatar object is located in the virtual smoke while the virtual smoke is in the first position, and the third avatar object is an avatar object in the second object group; and in the case that the third virtual character object is detected to be always positioned in the virtual smoke, the virtual smoke is kept displayed in the game picture of the second virtual character object in the process of controlling the virtual smoke to follow the first virtual character object to move from the first position.
Optionally, in this embodiment, the keeping of displaying the virtual smoke in the game screen of the second virtual character object may include, but is not limited to, keeping of displaying the virtual smoke in a preset time period, and may further add a corresponding status identifier to the second virtual character object, where the virtual smoke animation special effect needs to be displayed, and when the status identifier is detected, keeping of displaying the virtual smoke in the game screen of the second virtual character object is performed.
Optionally, in this embodiment, the method may further include, but is not limited to, canceling the display of the virtual smoke in the game screen of the second virtual character object after the second virtual character object leaves the smoke range of the virtual smoke.
For example, when a second virtual character object is located in the second smoke area 1004, the virtual smoke is displayed on the game screen of the second virtual character object, and when the second virtual character object leaves the second smoke area 1004, the display of the virtual smoke on the game screen of the second virtual character object is canceled.
Optionally, in this embodiment, the method may include, but is not limited to, determining a distance between the second virtual character object and a center of a smoke range of the virtual smoke, comparing the distance with one or more preset thresholds, and configuring different smoke shielding effects for different preset distance thresholds, so as to display the virtual smoke using virtual smoke special effects of different rendering degrees while keeping the virtual smoke displayed in the game screen of the second virtual character object.
Through the embodiment, when the second virtual character object is located in the smoke range of the virtual smoke, the virtual smoke can be kept displayed in the game picture of the second virtual character object, so that the technical effect of efficiently utilizing the target virtual prop to continuously influence the second virtual character object located in the smoke range is achieved.
In an optional embodiment, the method further comprises: and under the condition that a fourth virtual character object is positioned in the virtual smoke and the fourth virtual character object is positioned in the visual field range of the first virtual character object, setting the fourth virtual character object to be visible to the first virtual character object, wherein the fourth virtual character object is the virtual character object in the second object group.
Optionally, in this embodiment, in a case that the fourth avatar object is located in the virtual smoke and the fourth avatar object is located within the visual field of the first avatar object, the setting of the fourth avatar object to be visible to the first avatar object may be preset in a server or adjusted according to a function of a target virtual item, including but not limited to.
For example, the method may include, but is not limited to, setting the target virtual item in a two-stage trigger form, releasing the virtual smoke when the target virtual item is triggered for the first time, and displaying a fourth virtual character object grouped into objects different from the first virtual character object within the smoke range of the virtual smoke when the target virtual item is triggered for the second time.
Optionally, in this embodiment, the configuration may be further performed according to different virtual character object types, and when a game application includes a plurality of different types of virtual character objects, a virtual character object of a first object group located in a smoke range is determined as the fourth virtual character object, and a virtual character object of a second object group located in a smoke range is determined as the fourth virtual character object, for example, when the second object group includes a common virtual character object and a virtual character object with a shielding function, when it is detected that the virtual character object located in the smoke region is the common virtual character object, the common virtual character object is configured as the fourth virtual character object, the common virtual character object is set to be visible to the first virtual character object, and when it is detected that the virtual character object located in the smoke region is the virtual character object with the shielding function, the virtual character object with the shielding function is configured not to belong to the fourth virtual character object, and the virtual character object with the shielding function is set to be invisible to the first virtual character object.
Optionally, in this embodiment, the configuration may be further performed according to different object groups, where the avatar object of the second object group is configured as the visible fourth avatar object, and the avatar object of the third object group is configured as the invisible avatar object.
Optionally, in this embodiment, it is determined that the fourth avatar object is located within the visual field of the first avatar object, and fig. 11 is a schematic flowchart of a method for controlling a further optional virtual item according to an embodiment of the present invention, where the process includes the following steps:
s1102, determining a field of view 1104 of the first avatar object 1102;
s1104, determining whether or not a fourth virtual character object 1106 exists in the visual field 1104;
in an optional embodiment, the setting the fourth avatar object to be visible to the first avatar object includes: displaying a position or orientation of the fourth virtual character object on a game screen of the first virtual character object; or the fourth virtual character object in a perspective state is displayed on the game screen of the first virtual character object.
Optionally, in this embodiment, the displaying the position or the orientation of the fourth virtual character object in the game screen of the first virtual character object may include, but is not limited to, displaying in an identification manner, for example, as shown in fig. 12, setting an identification 1202 in a main display interface 1204 of the target game application, and indicating the direction by including, but not limited to, a direction. The distance is identified numerically and the position or orientation of the fourth avatar object may also be identified in the form of a point 1208, including but not limited to, in the sub-display interface 1206. The position or orientation of the fourth virtual character object may be indicated in the form of a voice prompt, for example, the voice broadcast "enemy is directly in front", "enemy is 30 ° in front of left, and five meters" is just an example, and the embodiment is not limited in any way.
Optionally, in this embodiment, the fourth avatar object in the perspective state may be, as shown by a virtual outline 1210 in fig. 12, after the fourth avatar object is detected, the virtual outline is displayed in the main display interface 1204 to indicate the fourth avatar object, and the virtual outline may include, but is not limited to, a plurality of colors, and may be set according to different object groups or types of the fourth avatar object, for example, the avatar object in the second object group is set to red, the NPC of the system configuration is set to green, and the like.
With the present embodiment, the position or orientation of the fourth virtual character object can be displayed in the game screen of the first virtual character object; or the fourth virtual character object in a perspective state is displayed in the game picture of the first virtual character object, and further the fourth virtual character object can be displayed in the display interface of the first virtual character object in the smoke range of the virtual smoke, so that more visual field and information are provided for the first virtual character object, and the first virtual character object is helped to realize more effective follow-up operation.
In an optional embodiment, the method further comprises: and under the condition that a fifth virtual character object is positioned in the virtual smog and the fifth virtual character object is positioned in the visual field range of the first virtual character object, setting the fifth virtual character object to be visible for the first virtual character object, wherein the fifth virtual character object is the virtual character object in the first object group, and the fourth virtual character object and the fifth virtual character object have different display states in the virtual smog.
Optionally, in this embodiment, the displaying states having different display states may include, but are not limited to, setting a virtual outline of the fourth virtual character object in the virtual smoke to be red, and setting a virtual outline of the fifth virtual character object in the virtual smoke to be green, so that the first virtual character object can effectively distinguish object grouping states of different virtual character objects in the virtual smoke, avoid accidentally injuring virtual character objects in the same object group, and can also cooperate with other virtual character objects in the same object group to complete the current game.
Optionally, in this embodiment, the displaying states different from each other may further include, but are not limited to, setting the virtual model of the fourth virtual character object in the virtual smoke to be in a perspective state, and setting the virtual model of the fifth virtual character object in the virtual smoke to be in a non-perspective state, so that the first virtual character object can effectively distinguish object grouping states of different virtual character objects in the virtual smoke, thereby avoiding accidental injury to virtual character objects in the same object group, and can cooperate with other virtual character objects in the same object group to complete the current game.
Through this embodiment, the virtual character objects grouped by different objects are distinguished by using different display states, so that enemies grouped by different objects can be determined by the first virtual character object in virtual smoke more quickly and effectively, and subsequent game operations are completed, so that the use experience of users is improved, and the use effect of the target virtual prop is optimized.
In an optional embodiment, the setting the fourth avatar object to be visible to the first avatar object includes: displaying the fourth virtual character object in a perspective state in a first color in a game screen of the first virtual character object; said setting said fifth virtual character object to be visible to said first virtual character object comprises: displaying the fifth virtual character object in a perspective state in a second color in a game screen of the first virtual character object, wherein the first color is different from the second color.
Optionally, in this embodiment, the first color may be set to red, and the second color is set to green, so that the first virtual character object can effectively distinguish object grouping states of different virtual character objects in the virtual smoke, thereby avoiding accidental injury to the virtual character objects in the same object group, and can also cooperate with other virtual character objects in the same object group to complete the current game.
Through the embodiment, the operator of the first virtual character object can distinguish the virtual character objects in the virtual smoke according to different colors, corresponding follow-up operation is executed, and the technical effects of avoiding misoperation, optimizing user use experience and improving the practicability of the target virtual prop can be achieved.
In an optional embodiment, the method further comprises: and under the condition that the first virtual character object is controlled to release the target virtual prop and the first virtual character object currently uses the virtual shooting prop, switching the virtual prop used by the first virtual character object in the virtual smoke from the virtual shooting prop to a virtual near-war prop.
Optionally, in this embodiment, the virtual shooting prop may include, but is not limited to, a virtual prop for attacking by launching a virtual bullet, and may include, but is not limited to, a virtual shooting prop pre-configured by a server or an operator, and the virtual close-up prop may include, but is not limited to, a virtual cold weapon, for example, a knife, a stick, a brick, a dagger, or other virtual props that require close-up combat.
Optionally, in this embodiment, in a case that the first virtual character object is controlled to release the target virtual item, and the first virtual character object currently uses the virtual shooting item, the switching of the virtual item used by the first virtual character object in the virtual smoke from the virtual shooting item to the virtual near-combat item may include, but is not limited to, being implemented by preset interactive operation.
For example, fig. 13 is a schematic diagram of another optional control method for virtual props according to an embodiment of the present invention, and as shown in fig. 13, a preset interaction object 1304 is configured in a display interface 1302 of a first virtual character object, after obtaining that a corresponding interaction operation is performed on the interaction object 1304, a virtual shooting prop 1306 displayed in the display interface 1302 is replaced with the virtual near-battle prop 1308, and an interaction object matching the virtual prop in use in the display interface is replaced at the same time.
Optionally, in this embodiment, the switching to the virtual near-combat prop and the release of the target virtual prop may be further performed by binding, after the first interactive operation for releasing the target virtual prop is obtained, the virtual prop used by the first virtual character object in the virtual smoke is simultaneously switched from the virtual shooting prop to the virtual near-combat prop, the switching may be further performed separately, and after the first interactive operation for releasing the target virtual prop is obtained, a new third interactive operation is obtained, so that the virtual prop used by the first virtual character object in the virtual smoke is switched from the virtual shooting prop to the virtual near-combat prop.
Optionally, in this embodiment, the first interactive operation and the third interactive operation may be configured as interactive objects that can perform interactive operations under preset conditions.
For example, as shown in fig. 14, a virtual resource reserve area 1404 for indicating that a virtual item can be released or a virtual shooting item can be switched to a virtual near-war item is displayed in the display interface 1402 of the first virtual character object, where the virtual resource may include, but is not limited to, virtual gold, virtual energy, number of strikes, injury value, etc., and in the case where the virtual resource stored in the virtual resource reserve area reaches a preset threshold, the interactive object 1406 is updated to a new interactive object 1408 for indicating that the first virtual character object can release the virtual item or can switch the virtual shooting item to the virtual near-war item.
Through the embodiment, under the condition that the first virtual character object is controlled to release the target virtual prop and the first virtual character object uses the virtual shooting prop currently, the virtual prop used by the first virtual character object in the virtual smoke is switched from the virtual shooting prop to the virtual close-combat prop, so that the follow-up close-combat attack operation can be conveniently realized in the virtual smoke, the playing method of the target game application is increased, and the combination can be carried out according to the characteristics of the virtual smoke, and more diversified game experience is brought to a user.
In an optional embodiment, the method further comprises: displaying a virtual smoke in a game screen of a fifth virtual character object in the virtual smoke, wherein the first virtual character object is invisible to the fifth virtual character object, and the fifth virtual character object is a virtual character object in the first object group.
Optionally, in this embodiment, the invisible of the first virtual character object to the fifth virtual character object may include, but is not limited to, displaying an area where the first virtual character object is located by using virtual smoke to block the first virtual character object, and may also include, but is not limited to, displaying virtual smoke in a main display area of a game screen, and displaying the fifth virtual character object in a small map of the game screen.
In an optional embodiment, the method further comprises: determining a distance between the first avatar object and a sixth avatar object in the presence of the sixth avatar object in the virtual smoke, wherein the sixth avatar object is an avatar object in a different object group than the first avatar object; when the distance between the first virtual character object and the sixth virtual character is smaller than or equal to a first preset distance threshold value, controlling the first virtual character object to instantaneously move to a fourth position from a third position, wherein the third position is the position where the first virtual character object is located before the first virtual character object instantaneously moves, the fourth position is the position where the distance from the sixth virtual character to the fourth virtual character is smaller than a second preset distance threshold value, and the second preset distance threshold value is smaller than the first preset distance threshold value; after the first virtual character object is moved to the fourth position instantly, the first virtual character object is controlled to attack the sixth virtual character object by using a virtual close combat weapon.
Optionally, in this embodiment, determining the distance between the first avatar object and the sixth avatar object may include, but is not limited to, acquiring a current position of the first avatar object and a current position of the sixth avatar object, and determining the distance based on the positions.
Optionally, in this embodiment, when the distance between the first virtual character object and the sixth virtual character is less than or equal to the first preset distance threshold, the controlling the first virtual character object to instantaneously move from the third position to the fourth position may include, but is not limited to, canceling the display of the first virtual character object at the third position and displaying the first virtual character object at the fourth position, or adjusting the view range from the view range of the third position to the view range of the fourth position, which may be configured in advance or adjusted in a game based on the view angle of the target game application.
Optionally, in this embodiment, the first preset distance threshold may include, but is not limited to, preset by a system, and the second preset distance threshold is set according to different target virtual properties or different virtual close-range weapons, so that when the first virtual character object is within a second preset distance from the sixth virtual character object, the sixth virtual character object can be attacked by the virtual close-range weapons.
The process may include the following:
s1502, determining a distance between the first avatar object and the sixth avatar object when the first avatar object and the sixth avatar object are both located within the smoke range of the virtual smoke;
s1504, comparing whether the distance between the first avatar object and the sixth avatar object is less than or equal to a first preset distance threshold, and instantly moving the first avatar object from the third position to a fourth position under the condition of being less than or equal to the first preset distance threshold, wherein the fourth position is less than or equal to the second preset distance threshold, and the second preset distance threshold may be correspondingly matched with the virtual short-range weapon according to the requirements including but not limited to the virtual short-range weapon.
The second preset distance threshold value is set to 0.5 m when the virtual near combat weapon is a virtual dagger, and is set to 1.5 m when the virtual near combat weapon is a virtual long sword.
Fig. 15 is a schematic diagram of another optional virtual item control method according to an embodiment of the present invention, as shown in fig. 15, where a distance 1506 between a first virtual character object 1502 and a sixth virtual character object 1504 is obtained, and when the distance is smaller than or equal to the first preset distance threshold, the first virtual character object is controlled to move from a third position 1508 to a fourth position 1510, and a distance between the fourth position 1510 and the sixth virtual character object is smaller than or equal to a second preset distance threshold.
The present application is further illustrated below with reference to specific examples:
fig. 16, as shown in fig. 16, the process includes the following steps:
s1602, starting;
s1604, equipping the fog skill weapon (corresponding to the target virtual prop);
s1606, determining whether the fog-breaking skill weapon is activated, if the determination result is activated, executing step S1608, otherwise, executing step S1604;
s1608, highlighting the skill icon;
s1610, determining whether to click (corresponding to the aforementioned first interactive operation), if the determination result is clicked, executing step S1612, otherwise returning to step S1608;
s1612, releasing the fog and switching to a near-body weapon (the fog corresponds to the virtual fog, the near-body weapon corresponds to the virtual near-body weapon);
s1614, determining whether the first avatar object moves (corresponding to the aforementioned second interactive operation), and if it is determined that the first avatar object has moved, performing step S1616, otherwise returning to step S1612;
s1616, controlling the fog to follow the first virtual character object;
s1618, determining whether an enemy (corresponding to the avatar object not belonging to the first object group) is in the fog, and if the determination result is yes, performing step S1620, otherwise, returning to step S1616;
s1620, the enemy displays a red perspective effect (corresponding to the fourth virtual character object in the aforementioned perspective state);
s1622, determining whether to attack the fourth virtual character object, executing the step S1624 under the condition that the fourth virtual character object is determined to be attacked, otherwise, returning to the step S1620;
s1624, controlling the first virtual character object to instantly move to the fourth virtual character object in a close range, and finishing attack operation;
s1626, determining whether the fog is over, if yes, executing step S1628, otherwise, returning to step S1624;
s1628, switching back to the original weapon;
and S1630, ending.
The specific implementation process of this embodiment may include the following examples:
1. weapon activation principle:
there may be a time threshold pre-configured by the target game application before weapon activation, for example, 1 minute for each hit, which is reduced by 1 second, and thus, the more enemies that hit, the more quickly the great skill weapon can be used.
2. Smoke following principle:
the virtual smoke is generated into an animation special effect, the animation special effect is not required to be attached to a model of the virtual character object, calculation logic can be added to the target virtual prop through the steps of adding the calculation logic, obtaining the current position of the virtual character object through each frame, and assigning the position of the virtual character object to the smoke position.
3. The perspective functional principle is as follows:
since the smoke follows the virtual character object and the virtual character object is taken as a central point, the virtual character object is always in the smoke, and then whether the distance between the first virtual character object and the enemy is smaller than the radius of the smoke or not is calculated, so that whether the enemy is in the smoke used by the virtual character object or not can be judged.
When it is determined that there is a virtual character object in the virtual smoke, it is determined whether an enemy is in the visual screen of the virtual character object, and no perspective effect is generated due to the fact that the virtual character object behind or invisible is in the smoke, and the determination may include, but is not limited to, determining whether the enemy is in the visual angle of the first virtual character object.
4. The principle of instantaneous movement:
and acquiring the position of the sixth virtual character object, judging whether the position of the sixth virtual character object allows the instantaneous movement of the first virtual character object, issuing and configuring the configuration data by a system configuration or a server, controlling the first virtual character object to instantaneously move to a preset position of the sixth virtual character object if the instantaneous movement position of the first virtual character object is determined, and then using a configured virtual close-range weapon to attack.
The above is merely an example, and the present embodiment is not limited in any way.
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. 17, the apparatus includes:
a first obtaining module 1702, configured to obtain a first interactive operation in a target game application, where the first interactive operation is used to control a first virtual character object to release a target virtual item;
a first control module 1704, configured to, in response to the first interaction operation, control the first avatar object to release the target virtual item, and display a virtual smoke triggered by the target virtual item in the target game application, where the first avatar object is located in the virtual smoke, the virtual smoke is set to allow movement along with the first avatar object, and the first avatar object is invisible to avatar objects in a second object group when the first avatar object is located in the virtual smoke, the first avatar object is an avatar object in the first object group, and the first object group and the second object group are different object groups;
a second obtaining module 1706, configured to obtain a second interactive operation in the target game application, where the second interactive operation is used to control the first virtual character object to move;
a second control module 1708, configured to control the first virtual character object to move and control the virtual smoke to follow the first virtual character object to move in response to the second interaction operation.
In an optional embodiment, the apparatus is further configured to: and in the process of controlling the virtual smoke to move along with the first virtual character object, controlling the relative position of the first virtual character object and the virtual smoke to be unchanged.
In an optional embodiment, the apparatus is further configured to control the relative position of the first avatar object and the virtual smoke to be unchanged during the process of controlling the virtual smoke to follow the first avatar object by: and in the process of controlling the virtual smoke to move along with the first virtual character object, controlling the first virtual character object to be always positioned at the central position in the virtual smoke.
In an optional embodiment, the apparatus is further configured to: detecting whether a second avatar object is located within a second smoke range of the virtual smoke while the virtual smoke moves from a first position to a second position following the first avatar object, wherein the second smoke range is a smoke range of the virtual smoke at the second position, the second avatar object is located outside a first smoke range of the virtual smoke while the virtual smoke is at the first position, the first smoke range is a smoke range of the virtual smoke at the first position, and the second avatar object is an avatar object in the second object group; displaying the virtual smoke in a game screen of the second virtual character object when the second virtual character object is within the second smoke range of the virtual smoke, wherein the first virtual character object is invisible to the second virtual character object.
In an optional embodiment, the apparatus is further configured to: detecting whether a third avatar object is always located in the virtual smoke while controlling the virtual smoke to follow the first avatar object from a first position, wherein the third avatar object is located in the virtual smoke while the virtual smoke is in the first position, and the third avatar object is an avatar object in the second object group; and in the case that the third virtual character object is detected to be always positioned in the virtual smoke, the virtual smoke is kept displayed in the game picture of the second virtual character object in the process of controlling the virtual smoke to follow the first virtual character object to move from the first position.
In an optional embodiment, the apparatus is further configured to: and under the condition that a fourth virtual character object is positioned in the virtual smoke and is positioned in the visual field range of the first virtual character object, setting the fourth virtual character object to be visible for the first virtual character object, wherein the fourth virtual character object is the virtual character object in the second object group.
In an alternative embodiment, the apparatus is further configured to set the fourth avatar object to be visible to the first avatar object by: displaying a position or orientation of the fourth virtual character object on a game screen of the first virtual character object; or the fourth virtual character object in a perspective state is displayed on the game screen of the first virtual character object.
In an optional embodiment, the apparatus is further configured to: and under the condition that a fifth virtual character object is positioned in the virtual smoke and the fifth virtual character object is positioned in the visual field range of the first virtual character object, setting the fifth virtual character object to be visible to the first virtual character object, wherein the fifth virtual character object is a virtual character object in the first object group, and the fourth virtual character object and the fifth virtual character object have different display states in the virtual smoke.
In an alternative embodiment, the apparatus is further configured to set the fourth avatar object to be visible to the first avatar object by: displaying the fourth virtual character object in a perspective state in a first color on the game screen of the first virtual character object; said setting said fifth virtual character object to be visible to said first virtual character object comprises: displaying the fifth virtual character object in a perspective state in a second color in a game screen of the first virtual character object, wherein the first color is different from the second color.
In an optional embodiment, the apparatus is further configured to: and under the condition that the first virtual character object is controlled to release the target virtual prop and the first virtual character object currently uses the virtual shooting prop, switching the virtual prop used by the first virtual character object in the virtual smoke from the virtual shooting prop to a virtual near-war prop.
In an optional embodiment, the apparatus is further configured to: displaying a virtual smoke in a game screen of a fifth virtual character object in the virtual smoke, wherein the first virtual character object is invisible to the fifth virtual character object, and the fifth virtual character object is a virtual character object in the first object group.
In an optional embodiment, the apparatus is further configured to: determining a distance between the first avatar object and a sixth avatar object in the presence of the sixth avatar object in the virtual smoke, wherein the sixth avatar object is an avatar object in a different object group than the first avatar object; when the distance between the first virtual character object and the sixth virtual character is smaller than or equal to a first preset distance threshold value, controlling the first virtual character object to instantaneously move to a fourth position from a third position, wherein the third position is the position where the first virtual character object is located before the first virtual character object instantaneously moves, the fourth position is the position where the distance from the sixth virtual character to the fourth virtual character is smaller than a second preset distance threshold value, and the second preset distance threshold value is smaller than the first preset distance threshold value; after the first virtual character object is moved to the fourth position instantly, the first virtual character object is controlled to attack the sixth virtual character object by using a virtual close combat weapon.
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. 18, the electronic device comprises a memory 1802 and a processor 1804, the memory 1802 having stored therein a computer program, the processor 1804 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, obtaining a first interactive operation in a target game application, wherein the first interactive operation is used for controlling a first virtual character object to release a target virtual item;
s2, responding to the first interactive operation, controlling a first virtual character object to release the target virtual prop, and displaying virtual smoke triggered by the target virtual prop in the target game application, wherein the first virtual character object is located in the virtual smoke, the virtual smoke is set to be allowed to move along with the first virtual character object, when the first virtual character object is located in the virtual smoke, the first virtual character object is invisible for virtual character objects in a second object group, the first virtual character object is a virtual character object in the first object group, and the first object group and the second object group are different object groups;
s3, acquiring a second interactive operation in the target game application, wherein the second interactive operation is used for controlling the first virtual character object to move;
and S4, responding to the second interactive operation, controlling the first virtual character object to move, and controlling the virtual smoke to move along with the first virtual character object.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 18 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. 18 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. 18, or have a different configuration than shown in FIG. 18.
The memory 1802 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for controlling virtual items in the embodiments of the present invention, and the processor 1804 executes various functional applications and data processing by running the software programs and modules stored in the memory 1802, that is, implementing the above-described method for controlling virtual items. The memory 1802 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 1802 can further include memory located remotely from the processor 1804, which can be connected to the terminals 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 1802 may be specifically, but not limited to, used for storing information such as a special effect of virtual smoke or a model of a virtual character object. As an example, as shown in fig. 18, the memory 1802 may include, but is not limited to, a first obtaining module 1702, a first control module 1704, a second obtaining module 1706 and a second control module 1708 of a control device including 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 transmitting device 1806 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1806 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 1806 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 1808 for displaying the virtual smoke and the virtual character object; and a connection bus 1810 for connecting the respective module components 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. The nodes may form a Peer-To-Peer (P2P) network, and any type of computing device, such as a server, a terminal, and other electronic devices, may become a node in the blockchain system by joining the Peer-To-Peer network.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. A 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 execute the method for controlling the virtual item provided in the various optional implementations of the aspect of displaying the virtual item or the aspect of controlling the virtual item, wherein the computer program is configured to execute the steps in any of the method embodiments described above when running.
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, obtaining a first interactive operation in a target game application, wherein the first interactive operation is used for controlling a first virtual character object to release a target virtual item;
s2, responding to the first interactive operation, controlling a first virtual character object to release the target virtual prop, and displaying virtual smoke triggered by the target virtual prop in the target game application, wherein the first virtual character object is located in the virtual smoke, the virtual smoke is set to be allowed to move along with the first virtual character object, when the first virtual character object is located in the virtual smoke, the first virtual character object is invisible for virtual character objects in a second object group, the first virtual character object is a virtual character object in the first object group, and the first object group and the second object group are different object groups;
s3, acquiring a second interactive operation in the target game application, wherein the second interactive operation is used for controlling the first virtual character object to move;
and S4, responding to the second interactive operation, controlling the first virtual character object to move, and controlling the virtual smoke to move along with the first virtual character object.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the various methods in the foregoing embodiments may be implemented by a program instructing hardware related to 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 description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described in detail in a certain embodiment.
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 amendments can be made without departing from the principle of the present invention, and these modifications and amendments should also be considered 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 interactive operation in a target game application, wherein the first interactive operation is used for controlling a first virtual character object to release a target virtual item;
responding to the first interactive operation, controlling the first virtual character object to release the target virtual prop and displaying virtual smoke triggered by the target virtual prop in the target game application;
wherein the first avatar object is located in the virtual smoke, the virtual smoke is set to allow movement following the first avatar object, the first avatar object is invisible to avatar objects in a second object group when the first avatar object is located in the virtual smoke, the virtual smoke is displayed and the first avatar object is not displayed in a game screen corresponding to a second avatar object when the second avatar object is located in a smoke range of the virtual smoke, the virtual smoke is not displayed in a game screen of the second avatar object when the second avatar object is not located in the smoke range, the first avatar object is a avatar object in a first object group, and the first object group and the second object group are different object groups;
acquiring a second interactive operation in the target game application, wherein the second interactive operation is used for controlling the first virtual character object to move; controlling the first avatar object to move in response to the second interaction;
under the condition that the size of the virtual smog is a first value, controlling the virtual smog to move along with the first virtual character object in real time;
determining whether a distance between the first avatar object and a center point of the virtual smoke exceeds a radius of the virtual smoke in the case where the size of the virtual smoke is a second value, controlling the virtual smoke not to temporarily move following the first avatar object in the case where it is determined that the distance does not exceed the radius, and setting the position of the virtual smoke to the position of the first avatar object in the case where it is determined that the distance has exceeded the distance, the second value being different from the first value;
and reserving the special effect of the virtual smog exceeding the radius after the virtual smog moves, so that the range of the virtual smog is enlarged according to the moving track of the first virtual character object.
2. The method of claim 1, further comprising:
and in the process of controlling the virtual smoke to move along with the first virtual character object, controlling the relative position of the first virtual character object and the virtual smoke to be unchanged.
3. The method of claim 2, wherein said controlling the relative position of the first avatar object and the virtual smoke to be unchanged during the controlling of the virtual smoke to follow the movement of the first avatar object comprises:
and in the process of controlling the virtual smoke to move along with the first virtual character object, controlling the first virtual character object to be always positioned at the central position in the virtual smoke.
4. The method of claim 1, further comprising:
detecting whether the second avatar object is located within a second smoke range of the virtual smoke while the virtual smoke moves from a first position to a second position following the first avatar object, wherein the second smoke range is a smoke range of the virtual smoke at the second position, the second avatar object is located outside a first smoke range of the virtual smoke while the virtual smoke is at the first position, the first smoke range is a smoke range of the virtual smoke at the first position, and the second avatar object is an avatar object in the second group of objects;
displaying the virtual smoke in a game screen of the second virtual character object when the second virtual character object is within the second smoke range of the virtual smoke, wherein the first virtual character object is invisible to the second virtual character object.
5. The method of claim 1, further comprising:
detecting whether a third avatar object is always located in the virtual smoke while controlling the virtual smoke to follow the first avatar object from a first position, wherein the third avatar object is located in the virtual smoke while the virtual smoke is in the first position, and the third avatar object is an avatar object in the second object group;
and in the case that the third virtual character object is detected to be always positioned in the virtual smoke, the virtual smoke is kept displayed in the game picture of the second virtual character object in the process of controlling the virtual smoke to follow the first virtual character object to move from the first position.
6. The method of claim 1, further comprising:
and under the condition that a fourth virtual character object is positioned in the virtual smoke and the fourth virtual character object is positioned in the visual field range of the first virtual character object, setting the fourth virtual character object to be visible to the first virtual character object, wherein the fourth virtual character object is the virtual character object in the second object group.
7. The method of claim 6, wherein setting the fourth avatar object to be visible to the first avatar object comprises:
displaying a position or orientation of the fourth virtual character object on a game screen of the first virtual character object; or
The fourth virtual character object in a perspective state is displayed on the game screen of the first virtual character object.
8. The method of claim 6, further comprising:
and under the condition that a fifth virtual character object is positioned in the virtual smoke and the fifth virtual character object is positioned in the visual field range of the first virtual character object, setting the fifth virtual character object to be visible to the first virtual character object, wherein the fifth virtual character object is a virtual character object in the first object group, and the fourth virtual character object and the fifth virtual character object have different display states in the virtual smoke.
9. The method of claim 8,
the setting the fourth avatar object to be visible to the first avatar object includes: displaying the fourth virtual character object in a perspective state in a first color on the game screen of the first virtual character object;
said setting said fifth virtual character object to be visible to said first virtual character object comprises: displaying the fifth virtual character object in a perspective state in a second color in a game screen of the first virtual character object, wherein the first color is different from the second color.
10. The method according to any one of claims 1 to 9, further comprising:
and under the condition that the first virtual character object is controlled to release the target virtual prop and the first virtual character object currently uses the virtual shooting prop, switching the virtual prop used by the first virtual character object in the virtual smoke from the virtual shooting prop to a virtual near-war prop.
11. The method according to any one of claims 1 to 9, further comprising:
displaying a fifth virtual character object in a game screen of the fifth virtual character object in a case where the fifth virtual character object is in the virtual fog, wherein the first virtual character object is invisible to the fifth virtual character object, and the fifth virtual character object is a virtual character object in the first object group.
12. The method according to any one of claims 1 to 9, further comprising:
determining a distance between the first avatar object and a sixth avatar object in the presence of the sixth avatar object in the virtual smoke, wherein the sixth avatar object is an avatar object in a different object group than the first avatar object;
when the distance between the first virtual character object and the sixth virtual character is smaller than or equal to a first preset distance threshold, controlling the first virtual character object to instantaneously move from a third position to a fourth position, wherein the third position is the position where the first virtual character object is located before instantaneous movement, the fourth position is the position where the distance from the sixth virtual character to the sixth virtual character is smaller than a second preset distance threshold, and the second preset distance threshold is smaller than the first preset distance threshold;
after the first virtual character object is moved to the fourth position instantly, the first virtual character object is controlled to attack the sixth virtual character object by using a virtual close combat weapon.
13. A control device of a virtual prop, comprising:
the first obtaining module is used for obtaining a first interactive operation in the target game application, wherein the first interactive operation is used for controlling a first virtual character object to release the target virtual prop;
the first control module is used for responding to the first interactive operation, controlling the first virtual character object to release the target virtual prop and displaying virtual smoke triggered by the target virtual prop in the target game application;
wherein the first avatar object is located in the virtual smoke, the virtual smoke is set to allow movement following the first avatar object, the first avatar object is invisible to avatar objects in a second object group when the first avatar object is located in the virtual smoke, the virtual smoke is displayed and the first avatar object is not displayed in a game screen corresponding to a second avatar object when the second avatar object is located in a smoke range of the virtual smoke, the virtual smoke is not displayed in a game screen of the second avatar object when the second avatar object is not located in the smoke range, the first avatar object is a avatar object in a first object group, and the first object group and the second object group are different object groups;
a second obtaining module, configured to obtain a second interactive operation in the target game application, where the second interactive operation is used to control the first virtual character object to move;
the second control module is used for controlling the virtual smog to move along with the first virtual character object in real time under the condition that the size of the virtual smog is a first value;
the second control module is further configured to determine whether a distance between the first avatar object and a center point of the virtual smoke exceeds a radius of the virtual smoke if the size of the virtual smoke is a second value, control the virtual smoke not to temporarily move along with the first avatar object if the distance does not exceed the radius, and set the position of the virtual smoke to the position of the first avatar object if the distance exceeds the radius, wherein the second value is different from the first value;
means for performing the steps of: and reserving the special effect of the virtual smog exceeding the radius after the virtual smog moves, so that the range of the virtual smog is enlarged according to the moving track of the first virtual character object.
14. A computer-readable storage medium, characterized in that it comprises a stored program, wherein the program is executable by a terminal device or a computer to perform the method of any one of claims 1 to 12.
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 12 by means of the computer program.
CN202010990158.3A 2020-09-18 2020-09-18 Control method and device of virtual prop, storage medium and electronic equipment Active CN112107861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010990158.3A CN112107861B (en) 2020-09-18 2020-09-18 Control method and device of virtual prop, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010990158.3A CN112107861B (en) 2020-09-18 2020-09-18 Control method and device of virtual prop, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112107861A CN112107861A (en) 2020-12-22
CN112107861B true CN112107861B (en) 2023-03-24

Family

ID=73800274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010990158.3A Active CN112107861B (en) 2020-09-18 2020-09-18 Control method and device of virtual prop, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112107861B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113058267B (en) * 2021-04-06 2024-02-02 网易(杭州)网络有限公司 Virtual object control method and device and electronic equipment
CN113599822B (en) * 2021-08-06 2023-10-24 腾讯科技(深圳)有限公司 Virtual prop control method and device, storage medium and electronic equipment
CN113633982B (en) * 2021-08-13 2023-09-22 腾讯科技(深圳)有限公司 Virtual prop display method, device, terminal and storage medium
CN113680061B (en) * 2021-09-03 2023-07-25 腾讯科技(深圳)有限公司 Virtual prop control method, device, terminal and storage medium
CN114155605B (en) * 2021-12-03 2023-09-15 北京字跳网络技术有限公司 Control method, device and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103017226A (en) * 2012-01-15 2013-04-03 廖伟高 Smoke exhaust ventilator integrated with smoke channel
CA2915020A1 (en) * 2015-12-11 2017-06-11 Igt Canada Solutions Ulc Enhanced electronic gaming machine with electronic maze and eye gaze display
CN111659116A (en) * 2020-07-02 2020-09-15 腾讯科技(深圳)有限公司 Virtual vehicle control method, device, equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150072790A1 (en) * 2009-05-19 2015-03-12 David Kotkin Gaming accessory
CN107837529B (en) * 2017-11-15 2019-08-27 腾讯科技(上海)有限公司 A kind of object selection method, device, terminal and storage medium
CN110413171B (en) * 2019-08-08 2021-02-09 腾讯科技(深圳)有限公司 Method, device, equipment and medium for controlling virtual object to perform shortcut operation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103017226A (en) * 2012-01-15 2013-04-03 廖伟高 Smoke exhaust ventilator integrated with smoke channel
CA2915020A1 (en) * 2015-12-11 2017-06-11 Igt Canada Solutions Ulc Enhanced electronic gaming machine with electronic maze and eye gaze display
CN111659116A (en) * 2020-07-02 2020-09-15 腾讯科技(深圳)有限公司 Virtual vehicle control method, device, equipment and medium

Also Published As

Publication number Publication date
CN112107861A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN112107861B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN108211358B (en) Information display method and device, storage medium and electronic device
CN111111194B (en) Virtual object control method, device, storage medium and electronic device
CN111111191B (en) Virtual skill activation method and device, storage medium and electronic device
CN112107857B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN111701244B (en) Control method and device of virtual prop, storage medium and electronic equipment
CN111111217A (en) Control method and device of virtual prop, storage medium and electronic device
CN111330268A (en) Control method and device of virtual prop, storage medium and electronic device
CN110917621B (en) Position display method and device, storage medium and electronic device
CN111672123A (en) Control method and device of virtual operation object, storage medium and electronic equipment
CN110917620B (en) Virtual footprint display method and device, storage medium and electronic device
CN111265861A (en) Display method and device of virtual prop, storage medium and electronic device
CN111167124A (en) Virtual prop obtaining method and device, storage medium and electronic device
CN111054065A (en) Control method and device of virtual prop, storage medium and electronic device
CN111228805A (en) Control method and device of virtual operation object, storage medium and electronic device
CN112138379B (en) Interaction method and device among different application modes and storage medium
CN111258489B (en) Operation method and device of virtual prop and storage medium
WO2021147413A1 (en) Image display method and apparatus, storage medium, and electronic device
CN111135566A (en) Control method and device of virtual prop, storage medium and electronic device
CN111111165A (en) Control method and device of virtual prop, storage medium and electronic device
CN112370782B (en) Auxiliary resource display method and device, storage medium and electronic equipment
CN113813599B (en) Virtual character control method and device, storage medium and electronic equipment
CN111228806B (en) Control method and device of virtual operation object, storage medium and electronic device
CN113730908A (en) Screen display method and device, storage medium, computer program, and electronic apparatus
CN111359214B (en) Virtual item control method and device, 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
GR01 Patent grant
GR01 Patent grant