CN111589124A - Virtual object control method, device, terminal and storage medium - Google Patents

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

Info

Publication number
CN111589124A
CN111589124A CN202010578555.XA CN202010578555A CN111589124A CN 111589124 A CN111589124 A CN 111589124A CN 202010578555 A CN202010578555 A CN 202010578555A CN 111589124 A CN111589124 A CN 111589124A
Authority
CN
China
Prior art keywords
virtual
virtual object
prop
environment
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010578555.XA
Other languages
Chinese (zh)
Other versions
CN111589124B (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 CN202010578555.XA priority Critical patent/CN111589124B/en
Publication of CN111589124A publication Critical patent/CN111589124A/en
Application granted granted Critical
Publication of CN111589124B publication Critical patent/CN111589124B/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/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • 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/822Strategy games; Role-playing games
    • 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/807Role playing or strategy games
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a control method, a control device, a control terminal and a storage medium of a virtual object, and relates to the field of computers. The method comprises the following steps: displaying a virtual environment interface; in response to receiving a first control operation on a first virtual object, controlling the first virtual object to obtain a first virtual prop, wherein the first virtual prop is a virtual prop generated when a second virtual object is defeated; responding to the first virtual object to acquire the first virtual prop and receiving a second control operation on the first virtual object, and controlling the first virtual object to move to a second position in the virtual environment; and updating the marketing data of the marketing to which the first virtual object belongs in response to the first virtual object moving to the second position. The method can prompt the user to control the virtual object to acquire the first virtual prop and move the first virtual prop, and avoids the user from adopting a strategy of avoiding delay and killing remotely, so that the game-playing duration is effectively controlled, and the burden of the server for processing a single game is reduced.

Description

Virtual object control method, device, terminal and storage medium
Technical Field
The present application relates to the field of computers, and in particular, to a method, an apparatus, a terminal, and a storage medium for controlling a virtual object.
Background
The battle game is a game in which a plurality of user accounts compete in the same scene, a player can control a virtual object in a virtual environment to perform actions such as walking, running, climbing, shooting and the like, and a plurality of players can form a team on line to cooperatively complete a certain task in the same virtual environment. In one possible implementation, the player wins the game by controlling the virtual object to beat other banked virtual objects.
During the game, the player can control the virtual object to attack the target object by using the virtual item (such as a gun), so that the target object is hurt. And when the life value of the target object is lower than the threshold value, determining that the target object is killed by the virtual object controlled by the player, and updating the marketing data of the marketing to which the virtual object belongs. At the end of the game, the player with the highest play data wins.
However, in the related art, when the virtual object kills the target object, the camping data of the camping affiliated by the virtual object is immediately increased, and part of players can control the virtual object to avoid being killed by adopting an evasive and remote attack mode, or other players in the same camping control the virtual object to kill the target object, so as to obtain data, and this mode can cause the delay of the time length for the game, so as to increase the burden of the server for processing the single game.
Disclosure of Invention
The embodiment of the application provides a control method, a control device, a control terminal and a storage medium of a virtual object, which can effectively control the game-playing duration and reduce the burden of a server on processing a single game. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a method for controlling a virtual object, where the method includes:
displaying a virtual environment interface, wherein the virtual environment interface comprises a virtual environment picture, the virtual environment comprises a first virtual object and at least one second virtual object, and the first virtual object and the second virtual object belong to different campuses;
in response to receiving a first control operation on the first virtual object, controlling the first virtual object to obtain a first virtual prop, wherein the first virtual prop is located at a first position in the virtual environment and is a virtual prop generated when the second virtual object is defeated;
in response to the first virtual object acquiring the first virtual prop and receiving a second control operation on the first virtual object, controlling the first virtual object to move to a second position in the virtual environment, wherein the second position is different from the first position;
updating the marketing data of the marketing to which the first virtual object belongs in response to the first virtual object moving to the second position.
In another aspect, an embodiment of the present application provides an apparatus for controlling a virtual object, where the apparatus includes:
the system comprises a first display module, a second display module and a display module, wherein the first display module is used for displaying a virtual environment interface, the virtual environment interface comprises a virtual environment picture, the virtual environment comprises a first virtual object and at least one second virtual object, and the first virtual object and the second virtual object belong to different campuses;
a first control module, configured to control, in response to receiving a first control operation on the first virtual object, the first virtual object to obtain a first virtual item, where the first virtual item is located at a first position in the virtual environment, and the first virtual item is a virtual item generated when the second virtual object is defeated;
a second control module, configured to, in response to the first virtual object obtaining the first virtual prop and receiving a second control operation on the first virtual object, control the first virtual object to move to a second location in the virtual environment, where the second location is different from the first location;
and the updating module is used for responding to the movement of the first virtual object to the second position and updating the marketing data of the marketing to which the first virtual object belongs.
On the other hand, an embodiment of the present application provides a terminal, where the terminal includes: a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the method of controlling a virtual object as described in the above aspect.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the method of controlling a virtual object according to the above aspect.
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. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the control method of the virtual object provided in the above aspect or the various alternative implementations of the above aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
in the embodiment of the application, the first virtual prop is generated when the second virtual object is defeated, the first virtual prop is obtained by controlling the first virtual object through the first control operation, the marketing data of the marketing to which the first virtual object belongs can be updated after the first virtual object is controlled to move to the second position through the second control operation, the user is prompted to control the virtual object to obtain the first virtual prop and move the first virtual prop, the user is prevented from adopting strategies of avoiding delay and killing remotely, the duration of the local alignment is effectively controlled, and the burden of the server for processing single-game games is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of a session mode selection interface provided in accordance with an exemplary embodiment of the present application;
FIG. 2 is a schematic illustration of an implementation environment provided in accordance with an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a method for controlling a virtual object provided in accordance with an exemplary embodiment of the present application;
FIG. 4 is a schematic illustration of a virtual environment interface provided in accordance with an exemplary embodiment of the present application showing a first virtual prop;
FIG. 5 is a schematic view of a first crash detection cartridge and a second crash detection cartridge provided in accordance with an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of a process for acquiring a first virtual prop and moving to a second location, according to an exemplary embodiment of the present application;
FIG. 7 is a flowchart of a method of controlling a virtual object provided in accordance with another exemplary embodiment of the present application;
FIG. 8 is a schematic illustration of determining a second location based on a third location in a candidate region provided in accordance with another exemplary embodiment of the present application;
FIG. 9 is a diagram of a session ending interface denomination provided in accordance with an exemplary embodiment of the present application;
FIG. 10 is a flowchart of a method of controlling a virtual object provided in accordance with another exemplary embodiment of the present application;
FIG. 11 is a schematic illustration of a virtual environment interface provided in accordance with another exemplary embodiment of the present application showing a first virtual prop;
FIG. 12 is a flowchart of a method of controlling a virtual object provided in accordance with another exemplary embodiment of the present application;
FIG. 13 is a block diagram illustrating an exemplary embodiment of a control apparatus for a virtual object;
fig. 14 is a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application are described:
virtual environment: is a virtual environment that is displayed (or provided) when an application is run on the terminal. The virtual environment may be a simulation environment of a real world, a semi-simulation semi-fictional environment, or a pure fictional environment. The virtual environment may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, which is not limited in this application. The following embodiments are illustrated with the virtual environment being a three-dimensional virtual environment.
Virtual object: refers to a movable object in a virtual environment. The movable object can be a virtual character, a virtual animal, an animation character, etc., such as: characters, animals, plants, oil drums, walls, stones, etc. displayed in a three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional volumetric model created based on animated skeletal techniques. Each virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a portion of the space in the three-dimensional virtual environment.
First person shooter game: the shooting game is a shooting game that a user can play from a first-person perspective, and a screen of a virtual environment in the game is a screen that observes the virtual environment from a perspective of a first virtual object. In the game, at least two virtual objects carry out a single-game fighting mode in a virtual environment, the virtual objects achieve the purpose of survival in the virtual environment by avoiding the injury initiated by other virtual objects and the danger (such as poison circle, marshland and the like) existing in the virtual environment, when the life value of the virtual objects in the virtual environment is zero, the life of the virtual objects in the virtual environment is ended, and finally the virtual objects which survive in the virtual environment are winners. Optionally, each client may control one or more virtual objects in the virtual environment, with the time when the first client joins the battle as a starting time and the time when the last client exits the battle as an ending time. Optionally, the competitive mode of the battle may include a single battle mode, a double group battle mode or a multi-person group battle mode, and the battle mode is not limited in the embodiment of the present application.
Virtual props: the props can be used by the virtual objects in the virtual environment, and include virtual weapons such as pistols, rifles, sniper guns, daggers, knives, swords, axes and ropes which can hurt other virtual objects, supply props such as bullets, defense props such as shields, armors and armored cars, virtual props such as virtual beams and virtual shock waves which are displayed through hands when the virtual objects release skills, and partial body trunks such as hands and legs of the virtual objects. Optionally, the virtual item in this embodiment of the application refers to an item of a default device of the virtual object.
User Interface (UI) controls: refers to any visual control or element that is visible on the user interface of the application, such as controls for pictures, input boxes, text boxes, buttons, tabs, etc., some of which are responsive to user actions.
The method provided in the present application may be applied to a virtual reality application program, a three-dimensional map program, a military simulation program, a first person shooter game, a Multiplayer Online Battle arena games (MOBA), and the like, and the following embodiments are exemplified by applications in games.
The game based on the virtual environment is often composed of one or more maps of game world, the virtual environment in the game simulates the scene of the real world, the user can control the virtual object in the game to walk, run, jump, shoot, fight, drive, switch to use the virtual prop, use the virtual prop to hurt other virtual objects and other actions in the virtual environment, the interactivity is strong, and a plurality of users can form a team on line to play a competitive game. Under the normal condition, a user controls a first virtual object to use a virtual prop to injure a second virtual object, when the second virtual object is defeated, corresponding marketing data are immediately obtained by marketing to which the first virtual object belongs, when the number of the virtual objects which are not defeated is less than or equal to a number threshold value, or the marketing data of any party reaches a data threshold value, the strategy is ended, and the virtual object which is not defeated or the marketing with the highest marketing data is victory.
In the above-mentioned match mode, some users can adopt the mode of controlling first virtual object to avoid and squat and guard and attack remotely, avoid first virtual object to be attacked by the virtual object of other formations to obtain the match victory, however, this mode can drag slow match progress, lead to the long time of being prolonged, thus aggravate the burden that the server processes the single match.
In one possible embodiment, the game includes a plurality of game play modes, as shown in FIG. 1, the user enters the corresponding game play mode by activating the mode selection control. When the user triggers the mode selection control 101 of the killing confirmation mode and triggers the determination control 102, the terminal enters the killing confirmation match mode. In the killing confirmation local-alignment mode, after the user controls the first virtual object to kill the second virtual object, the user can not immediately obtain marketing data even if the marketing to which the first virtual object belongs needs to obtain the first virtual prop of the second virtual object, and controls the first virtual object to carry the first virtual prop to move to a specified position, and then the marketing data can be obtained. The first virtual object acquires the first virtual prop and completes corresponding operation, and the other virtual objects prevent the first virtual object from acquiring data, so that the users participating in game matching can be prompted to control the virtual object to move, the contact probability of the first virtual object and the second virtual object is effectively increased, the game matching progress is accelerated, the game matching duration is controlled, and the burden of a server for processing a single game is reduced.
Referring to fig. 2, a schematic diagram of an implementation environment provided by an embodiment of the application is shown. The implementation environment may include: a first terminal 110, a server 120, and a second terminal 130.
The first terminal 110 is installed and operated with an application 111 supporting a virtual environment, and the application 111 may be a multiplayer online battle program. When the first terminal runs the application 111, a user interface of the application 111 is displayed on the screen of the first terminal 110. The application 111 may be any one of a military Simulation program, an MOBA Game, a large-fleeing and killing shooting Game, and a Simulation strategy Game (SLG). In the present embodiment, the application 111 is an FPS game for example. The first terminal 110 is a terminal used by the first user 112, and the first user 112 uses the first terminal 110 to control a first virtual object located in the virtual environment for activity, where the first virtual object may be referred to as a master virtual object of the first user 112. The activities of the first virtual object include, but are not limited to: adjusting at least one of body posture, crawling, walking, running, riding, flying, jumping, driving, picking, shooting, attacking, throwing, releasing skills. Illustratively, the first virtual object is a first virtual character, such as a simulated character or an animation character.
The second terminal 130 is installed and operated with an application 131 supporting a virtual environment, and the application 131 may be a multiplayer online battle program. When the second terminal 130 runs the application 131, a user interface of the application 131 is displayed on the screen of the second terminal 130. The client may be any one of a military simulation program, an MOBA game, a large fleeing and killing shooting game, and an SLG game, and in this embodiment, the application 131 is an FPS game as an example. The second terminal 130 is a terminal used by the second user 132, and the second user 132 uses the second terminal 130 to control a second virtual object located in the virtual environment to perform an activity, where the second virtual object may be referred to as a master virtual character of the second user 132. Illustratively, the second virtual object is a second virtual character, such as a simulated character or an animation character.
Optionally, the first virtual object and the second virtual object are in the same virtual world. Optionally, the first virtual object and the second virtual object may belong to the same camp, the same team, the same organization, a friend relationship, or a temporary communication right. Alternatively, the first virtual object and the second virtual object may belong to different camps, different teams, different organizations, or have a hostile relationship.
Optionally, the applications installed on the first terminal 110 and the second terminal 130 are the same, or the applications installed on the two terminals are the same type of application on different operating system platforms (android or IOS). The first terminal 110 may generally refer to one of a plurality of terminals, and the second terminal 130 may generally refer to another of the plurality of terminals, and this embodiment is only illustrated by the first terminal 110 and the second terminal 130. The device types of the first terminal 110 and the second terminal 130 are the same or different, and include: at least one of a smartphone, a tablet, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and a desktop computer.
Only two terminals are shown in fig. 2, but there are a plurality of other terminals that may access the server 120 in different embodiments. Optionally, one or more terminals are terminals corresponding to the developer, a development and editing platform for supporting the application program in the virtual environment is installed on the terminal, the developer can edit and update the application program on the terminal and transmit the updated application program installation package to the server 120 through a wired or wireless network, and the first terminal 110 and the second terminal 130 can download the application program installation package from the server 120 to update the application program.
The first terminal 110, the second terminal 130, and other terminals are connected to the server 120 through a wireless network or a wired network.
The server 120 includes at least one of a server, a server cluster composed of a plurality of servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services for applications that support a three-dimensional virtual environment. Optionally, the server 120 undertakes primary computational work and the terminals undertake secondary computational work; alternatively, the server 120 undertakes the secondary computing work and the terminal undertakes the primary computing work; alternatively, the server 120 and the terminal perform cooperative computing by using a distributed computing architecture.
In one illustrative example, the server 120 includes a memory 121, a processor 122, a user account database 123, a combat services module 124, and a user-oriented Input/Output Interface (I/O Interface) 125. The processor 122 is configured to load an instruction stored in the server 120, and process data in the user account database 123 and the combat service module 124; the user account database 123 is configured to store data of a user account used by the first terminal 110, the second terminal 130, and other terminals, such as a head portrait of the user account, a nickname of the user account, a fighting capacity index of the user account, and a service area where the user account is located; the fight service module 124 is used for providing a plurality of fight rooms for the users to fight, such as 1V1 fight, 3V3 fight, 5V5 fight and the like; the user-facing I/O interface 125 is used to establish communication with the first terminal 110 and/or the second terminal 130 through a wireless network or a wired network to exchange data.
Referring to fig. 3, a flowchart of a method for controlling a virtual object according to an exemplary embodiment of the present application is shown. The embodiment is described by taking as an example that the method is applied to the first terminal 110 or the second terminal 130 in the implementation environment shown in fig. 2 or other terminals in the implementation environment, and the method includes the following steps:
step 301, displaying a virtual environment interface, where the virtual environment interface includes a virtual environment picture, and the virtual environment includes a first virtual object and at least one second virtual object, and the first virtual object and the second virtual object belong to different camps.
Optionally, the virtual environment picture is a picture for observing the virtual environment from the perspective of the virtual object. The perspective refers to an observation angle when observing in the virtual environment at a first person perspective or a third person perspective of the virtual object. Optionally, in an embodiment of the present application, the viewing angle is an angle when a virtual object is observed by a camera model in a virtual environment.
Optionally, the camera model automatically follows the virtual object in the virtual environment, that is, when the position of the virtual object in the virtual environment changes, the camera model changes while following the position of the virtual object in the virtual environment, and the camera model is always within the preset distance range of the virtual object in the virtual environment. Optionally, the relative positions of the camera model and the virtual object do not change during the automatic following process.
The camera model refers to a three-dimensional model located around a virtual object in a virtual environment, and when a first-person perspective is adopted, the camera model is located near or at the head of the virtual object; when the third person perspective is adopted, the camera model may be located behind and bound to the virtual object, or may be located at any position away from the virtual object by a preset distance, and the virtual object located in the virtual environment may be observed from different angles by the camera model. Optionally, the viewing angle includes other viewing angles, such as a top viewing angle, in addition to the first person viewing angle and the third person viewing angle; the camera model may be located overhead of the virtual object head when a top view is employed, which is a view of viewing the virtual environment from an overhead top view. Optionally, the camera model is not actually displayed in the virtual environment, i.e. the camera model is not displayed in the virtual environment displayed by the user interface.
To illustrate the case where the camera model is located at an arbitrary position away from the virtual object by a preset distance, optionally, one virtual object corresponds to one camera model, and the camera model can rotate around the virtual object as a rotation center, for example: the camera model is rotated with any point of the virtual object as a rotation center, the camera model not only rotates in angle but also shifts in displacement during the rotation, and the distance between the camera model and the rotation center is kept constant during the rotation, that is, the camera model is rotated on the surface of a sphere with the rotation center as a sphere center, wherein any point of the virtual object may be a head, a trunk or any point around the virtual object, which is not limited in the embodiment of the present application. Optionally, when the camera model observes the virtual object, the center of the view angle of the camera model points in a direction in which a point of the spherical surface on which the camera model is located points at the center of the sphere.
Optionally, the camera model may also observe the virtual object at a preset angle in different directions of the virtual object.
Optionally, the first virtual object is a virtual object controlled by a user through a terminal, the second virtual object includes at least one of a virtual object controlled by another user and a virtual object controlled by a background server, and the first virtual object and the second virtual object belong to different camps.
Optionally, the virtual environment screen is a screen for observing the virtual environment from the perspective of the first virtual object.
Schematically, as shown in fig. 4, the virtual environment screen in the user interface is a screen when the virtual object is viewed from the first-person perspective, and the screen includes, in addition to the virtual environment, a virtual remote item 401 that the virtual object is currently equipped with (i.e., held by).
Optionally, the virtual environment displayed by the virtual environment screen includes: at least one element selected from the group consisting of mountains, flat ground, rivers, lakes, oceans, deserts, sky, plants, buildings, and vehicles.
Optionally, in addition to the virtual environment screen, UI controls such as an input box, a text box, and a button are included in the virtual environment interface.
Step 302, in response to receiving a first control operation on a first virtual object, controlling the first virtual object to obtain a first virtual item, where the first virtual item is located at a first position in a virtual environment, and the first virtual item is a virtual item generated when a second virtual object is defeated.
Optionally, the first virtual item is generated when the second virtual object is defeated, and when the second virtual object is reactivated, if the first virtual item is not acquired, it is determined that the first virtual item is disabled, and the display of the first virtual item is cancelled.
In a possible implementation manner, the first virtual prop is generated when the second virtual object is defeated, and the user acquires the first virtual prop by controlling the first virtual object and controls the first virtual object to carry the first virtual prop to move to the designated position, so as to acquire the marketing data.
Optionally, the first virtual prop only sets the first virtual object for killing the second virtual object to be in an acquirable state, and sets other virtual objects to be in an unobtainable state; or the first virtual prop kills a first virtual object of a second virtual object and the virtual object belonging to the same formation with the first virtual object is in an acquirable state; or the first virtual prop is in an acquirable state for all virtual objects in the game, which is not limited in the embodiment of the present application.
Optionally, it is determined that the second virtual object is defeated when the second virtual object is attacked by the first virtual object or other virtual objects collocated with the first virtual object to a life value below the threshold, or the second virtual object is harmed by a virtual object (e.g., poison gas) in the virtual environment that can cause damage to the virtual object to a life value below the threshold.
Illustratively, as shown in fig. 4, the second virtual object 402 is defeated, a first virtual item 403 corresponding to the second virtual object 402 is displayed in the virtual environment screen, and a user performs a first control operation on the first virtual object by dragging the directional control 404, so that the first virtual object is close to the first virtual item 403. When the user controls the first virtual object to reach the first position of the first virtual prop 403, the first virtual prop 403 is obtained by dragging the direction control 404 or other action controls (e.g., a pick-up action control, a squat control, etc.).
Optionally, when the terminal detects that the first virtual object reaches the first position, the terminal automatically controls the first virtual object to obtain the first virtual prop.
In a possible implementation manner, a first collision detection box is correspondingly arranged on the model of the first virtual object, and similarly, a second collision detection box is correspondingly arranged on the model of the first virtual prop, and the collision detection boxes are used for detecting whether other virtual objects in the virtual environment are in contact with the virtual object to which the collision detection boxes belong. The terminal acquires the coordinate range of each collision detection box in the virtual environment in real time, and in response to the collision of the first collision detection box and the second collision detection box (namely, the coordinate range of the first collision detection box and the coordinate range of the second collision detection box have an intersection point), the terminal determines that the first virtual object reaches the first position.
Alternatively, the crash box is not displayed in the virtual environment screen.
Referring to fig. 5, a first crash box and a second crash box are schematically shown. As shown in fig. 5, a first collision detection box 502 is disposed around the model of the first virtual object 501 (the dotted area in the figure is the range of the first collision detection box), the model is in the shape of an ellipsoid, and the central point of the first collision detection box is the same as the central point of the first virtual object; a second collision detection box 504 is arranged around the model of the first virtual prop 503, the model is in the shape of a sphere, and the central point of the second collision detection box is the same as the central point of the first virtual prop. Optionally, the shape of the collision detection box may be the same as the shape of the virtual object or the virtual prop, or may be another preset shape, which is not limited in this embodiment of the application.
Optionally, when the terminal determines that the first virtual object obtains the first virtual item, displaying, in the virtual environment screen, a prompt message that the first virtual item is successfully obtained, and canceling the display of the first virtual item.
Step 303, in response to the first virtual object acquiring the first virtual item and receiving a second control operation on the first virtual object, controlling the first virtual object to move to a second position in the virtual environment.
Wherein the second position is different from the first position.
In a possible implementation manner, when the first virtual object acquires the first virtual item, the terminal determines a second position, and displays the second position in the map display control.
Optionally, the second location is a point in the virtual environment, or an area within a preset range in the virtual environment. The terminal randomly determines the second position, or determines the second position according to a preset distance and a preset direction of the first position in the first position, which is not limited in the embodiment of the present application.
Fig. 6 is a schematic diagram of a virtual environment interface when the first virtual object obtains the first virtual item. When the first virtual object acquires the first virtual item, the terminal displays an identifier 602 of the second position in the map display control 603.
Step 304, in response to the first virtual object moving to the second position, updating the marketing data of the marketing to which the first virtual object belongs.
In a possible implementation manner, when the first virtual object moves to the second position, the terminal determines that the marketing to which the first virtual object belongs obtains corresponding marketing data, and displays the updated marketing data in the virtual environment interface.
Different from the prior art that the marketing data is obtained immediately when the second virtual object is defeated, in the embodiment of the application, a failure confirmation mechanism is added, a user controls the first virtual object to defeat the second virtual object and cannot obtain corresponding marketing data immediately, but needs to control the first virtual object or control the virtual object which is collocated with the marketing to obtain the first virtual prop, and after the first virtual prop is moved to the second position, the user can confirm that the second virtual object is successfully defeated and obtain the corresponding marketing data, the failure confirmation mechanism can prompt the user to control the first virtual object to move, the contact probability between the first virtual object and the second virtual object is increased, the routing progress can be promoted, and the routing duration is controlled.
Optionally, the marketing data includes at least one of a number of defeated virtual objects and a marketing score.
Optionally, in response to the first virtual object moving to the second position, the terminal displays a prompt message such as "killing is successful" in the virtual environment interface.
Optionally, when the second virtual object that generates the first virtual item is reactivated, if the first virtual item is not sent to the second location, it is determined that the first virtual item is invalid, and the display of the first virtual item and the second location is cancelled.
To sum up, in the embodiment of the present application, a first virtual item is generated when a second virtual object is defeated, the first virtual item is controlled through a first control operation to obtain the first virtual item, and the camping data of the camping to which the first virtual object belongs is updated only after the first virtual object is controlled through the second control operation to move to a second position, so that a user is prompted to control the virtual object to obtain the first virtual item and move, the user is prevented from adopting a strategy of avoiding delay and killing remotely, thereby effectively controlling the local time length, and reducing the burden of the server on processing a single game.
Referring to fig. 7, a flowchart of a control method for a virtual object according to another exemplary embodiment of the present application is shown. The embodiment is described by taking as an example that the method is applied to the first terminal 110 or the second terminal 130 in the implementation environment shown in fig. 2 or other terminals in the implementation environment, and the method includes the following steps:
step 701, displaying a virtual environment interface, where the virtual environment interface includes a virtual environment picture, and the virtual environment includes a first virtual object and at least one second virtual object, and the first virtual object and the second virtual object belong to different camps.
Step 702, in response to receiving a first control operation on a first virtual object, controlling the first virtual object to obtain a first virtual item, where the first virtual item is located at a first position in a virtual environment, and the first virtual item is a virtual item generated when a second virtual object is defeated.
The implementation of steps 701 and 702 refers to steps 301 and 302, and the description of the embodiments of the present application is omitted here.
Step 703, in response to the first virtual object acquiring the first virtual item, determining a region in a first position predetermined range in the virtual environment as a candidate region.
In one possible embodiment, in order to avoid the situation that the second position is far away from the first virtual object and the user cannot control the first virtual object to arrive in a short time when the terminal randomly determines the second position, the terminal determines the second position within a predetermined range around the first position.
Optionally, the terminal takes a circular area with the first position as a center and a preset length as a radius as a candidate area; or, an area currently displayed by the map display control is used as a candidate area, and the like, which is not limited in the embodiment of the present application.
Illustratively, in response to the first virtual object acquiring the first virtual item, the terminal takes a circular area with the first position as a center and a radius of 50 meters in the virtual environment as a candidate area. As shown in fig. 8, the terminal determines the first position of first virtual item 801, and determines an area of a predetermined range on the periphery of the first position as candidate area 802.
Step 704, a second location is determined from the candidate region.
In a possible embodiment, the terminal determines the second location randomly from the candidate area or in a predetermined manner. Optionally, in order to avoid that the process of the first virtual object acquiring the first virtual item and moving to the second position is not easily known by the second virtual object, the terminal determines the second position according to the third position of the second virtual object in the candidate area, so as to reduce the concealment of the first virtual object, step 704 includes the following first and second steps:
step one, responding to the existence of at least one second virtual object in the candidate area, and acquiring a third position where the at least one second virtual object is located.
In a possible implementation manner, the terminal searches for the second virtual object according to the coordinate range of the candidate area, and obtains a third position where at least one second virtual object is located.
Optionally, the terminal acquires third positions of all the second virtual objects in the candidate region, or acquires a third position of a second virtual object closest to the first virtual object in the candidate region, or acquires a third position of a second virtual object farthest from the first virtual object in the candidate region, which is not limited in this embodiment of the present application.
And step two, determining the position in the candidate area, the distance between which and the third position is less than the distance threshold value, as the second position.
In one possible embodiment, in order to increase the probability that the first virtual object will come into contact with the second virtual object, the terminal determines as the second location a location that is at a distance from the third location that is less than a distance threshold. Optionally, the terminal randomly selects a third position in the candidate area, and determines a certain position with a distance from the third position smaller than a distance threshold as a second position; or selecting a third position closest to the first position in the candidate area, and determining a certain position with a distance smaller than a distance threshold value from the third position as a second position; or determining all positions in the candidate area, of which the peripheral sides of the third positions are smaller than the distance threshold, as the second positions, which is not limited in the embodiment of the present application.
Illustratively, as shown in fig. 8, a second virtual object 803a, a second virtual object 803b, and a second virtual object 803c exist in the candidate area 802, and the terminal acquires third positions of three second virtual objects, randomly selects the third position of the second virtual object 803c, and determines the second position according to the third position of the second virtual object 803 c. As shown, a position having a distance less than a distance threshold from the third position of the second virtual object 803c is located within the circular area 804, and the terminal determines the position in the circular area 804 to be the second position.
Alternatively, if only one second virtual object exists in the candidate area, the terminal directly determines the third position of the second virtual object as the second position.
Optionally, if the second virtual object does not exist in the candidate area, the terminal determines a second position at an edge of the candidate area, or randomly determines a position in the candidate area as the second position.
Step 705, displaying the location identifier of the second location in a map display control, where the map display control is a UI control for displaying a global map of the virtual environment.
In a possible implementation manner, in order to facilitate the user to control the first virtual object to find the second position, the terminal displays the position identifier of the second position in the map display control, and sets different colors or highlighting marks and the like for the position identifier of the second position, so as to remind the user to control the first virtual character to go to the position.
Illustratively, as shown in fig. 6, after the user controls the first virtual object to obtain the first virtual item of the second virtual object 601, the first virtual item is no longer displayed in the virtual environment picture, and the location identifier 603 of the second location is displayed in the map display control 602.
And step 706, in response to that the relative position of the second position and the first virtual object is located in the range of the sight line direction of the first virtual object, displaying a position identifier of the second position at a position corresponding to the relative position in the virtual environment picture.
In a possible implementation manner, the second position may not currently belong to the visible range of the first virtual object (i.e., the virtual environment screen displayed by the terminal), in order to facilitate the user to control the first virtual object to move to the second position quickly, the terminal displays a position identifier of the second position at a position corresponding to the relative position in the virtual environment screen, and the position identifier is not blocked by a virtual object such as a building.
Optionally, a position identifier of the second position is displayed in the virtual environment picture, and an arrow pointing to the second position from the position of the first virtual object, a distance between the position of the first virtual object and the second position, a text prompt of "please go to the second position", and the like are also displayed in real time, which is not limited in the embodiment of the present application.
And step 707, displaying a position identifier of a second position in the virtual environment, wherein the position identifier of the second position is visible to the virtual object which acquires the first virtual prop and is invisible to the virtual object which does not acquire the first virtual prop.
In one possible embodiment, the location identification of the second location is displayed in the virtual environment when the second location is within the visible range of the first virtual object in the virtual environment.
Optionally, in order to avoid that the second virtual object knows the second position by other users, a squat manner is adopted to easily attack the first virtual object, and in order to avoid that the second positions corresponding to other first virtual objects exist, and when the second positions of the plurality of first virtual objects are closer, the second positions corresponding to other first virtual objects are mistaken for the second position that needs to be reached, the position identifier of the second position is invisible to the virtual object that does not obtain the first virtual item.
Illustratively, as shown in fig. 6, below is a schematic view of a virtual environment interface where the first virtual object reaches the vicinity of the second location, and the terminal displays a location identifier 605 of the second location in the virtual environment.
Step 708, in response to the first virtual object acquiring the first virtual item and receiving a second control operation on the first virtual object, controlling the first virtual object to move to a second position in the virtual environment.
In a possible implementation manner, when the terminal detects that the first virtual object acquires the first virtual prop and receives a second control operation on the first virtual object, the first virtual object is automatically controlled to move to a second position in the virtual environment. For example, after the user controls the first virtual object to acquire the first virtual prop, the direction control is pointed to the direction of the second position, and the first virtual object automatically moves to the second position. And if the terminal detects the touch operation on the direction control in the process that the first virtual object automatically moves to the second position, stopping controlling the first virtual object to automatically move to the second position, and controlling the moving direction of the first virtual object according to the touch operation.
Alternatively, when the second position is a certain area, if the terminal detects that the first collision detecting box of the first virtual object contacts the edge of the second position, it is determined that the first virtual object reaches the second position. Optionally, the second position is a region, and the area of the region is variable, that is, the terminal reduces the second position to a corresponding area size at predetermined time intervals.
Step 709, in response to the first virtual object acquiring the first virtual item, setting a timer for the first virtual item.
In a possible implementation manner, in order to avoid the situation that a user avoids a second virtual object after controlling a first virtual object to obtain a first virtual prop, the first virtual object is not controlled to move to a second position for a long time, and the first virtual prop is sent to the second position in a set after a plurality of first virtual props are obtained, in response to the fact that the first virtual object obtains the first virtual prop, a timer is set for the first virtual prop by the terminal, and timing is started immediately.
Optionally, the terminal sets a timer for the first virtual prop according to a preset time length; or setting a timer according to the distance between the first position and the second position in the virtual environment, for example, the time length of the timer has a positive correlation with the distance, and the like.
Step 710, in response to the first virtual object not moving to the second location within the timer duration of the timer, clearing the first virtual item and the second location.
In a possible implementation manner, when the duration of the timer is reached, if the first virtual object is not moved to the second position, it is determined that the first virtual item is invalid, the camp affiliated by the first virtual object cannot obtain camp data, and the terminal clears the first virtual item and the second position.
Optionally, when the timer duration reaches the duration threshold (for example, 90% of the timer duration is reached, or the remaining duration is 30 seconds), the terminal prompts the user through the virtual environment screen to control the first virtual object to go to the second location as soon as possible, for example, changing the color of the virtual environment screen, generating a prompt message, and the like.
Step 711, updating the marketing data of the marketing to which the first virtual object belongs in response to the first virtual object moving to the second position within the time length of the timer.
In a possible implementation manner, when the first virtual object moves to the second position within the time length of the timer, the terminal determines that the marketing to which the first virtual object belongs obtains corresponding marketing data, and displays the updated marketing data in the virtual environment interface.
Illustratively, as shown in fig. 6, the marketing data 604 of the current match is displayed at the upper left corner of the virtual environment interface, the marketing data of the marketing to which the first virtual object belongs is 1 before the first virtual object reaches the second position, and after the first virtual object reaches the second position, the terminal determines that the marketing to which the first virtual object belongs obtains corresponding marketing data, and displays the updated marketing data 604 in the virtual environment interface, that is, 2 shown by the lower marketing data 604 in fig. 6.
In a possible implementation manner, since the server undertakes part of the calculation work, the terminal needs to send the first virtual object to the server to acquire the first virtual item, so that the server determines information such as marketing data according to the data sent by the terminal. The control method of the virtual object provided by the embodiment of the application further comprises the following steps of:
step one, responding to a first virtual object to obtain a first virtual item, and sending a first updating instruction to a server, wherein the first updating instruction is used for indicating to increase the number of the first virtual item owned by the first virtual object.
In a possible implementation manner, when a first virtual object acquires a first virtual item, a terminal immediately sends a first update instruction to a server, the server adds one to the number of the first virtual item owned by the first virtual object, and sends the updated number of the first virtual item owned by the first virtual object to other terminals in the current session.
Optionally, the terminal obtains, from the server, the number of first virtual items owned by the first virtual object in the current bureau, and displays, in the virtual environment picture, the number of first virtual items owned by each first virtual object (for example, the number of first virtual items owned is displayed around the model of the first virtual object), so that the user corresponding to the second virtual object can select an attack target according to the display information, for example, preferentially attack the first virtual object with a larger number of first virtual items owned, so as to prevent the first virtual object from camping to obtain marketing data.
And step two, responding to the movement of the first virtual object to the second position, and sending a second updating instruction to the server, wherein the second updating instruction is used for indicating the reduction of the number of the first virtual props owned by the first virtual object.
In a possible implementation manner, when the first virtual object moves to the second position, the terminal determines that the number of the first virtual props owned by the first virtual object is zero, and correspondingly updates the marketing data of the marketing to which the first virtual object belongs; or different first virtual props correspond to different second positions, when the first virtual object moves to a certain second position, the terminal determines that the first virtual object submits the corresponding first virtual prop, and the number of the first virtual props owned by the first virtual object is reduced by one. And after the terminal updates the number of the first virtual items owned by the first virtual object, sending a second updating instruction to the server. And after receiving a second updating instruction sent by the terminal, the server determines the number of the first virtual props owned by the first virtual object, and forwards the number to other terminals corresponding to the local office.
And step three, responding to the situation that the first virtual prop is cleared, and sending a third updating instruction to the server, wherein the third updating instruction is used for indicating that the number of the first virtual props owned by the first virtual object is reduced.
In a possible implementation manner, when the first virtual object does not reach the second location within the time duration of the timer, or is defeated before reaching the second location, the terminal determines that the first virtual item is cleared, and sends the updated number of the first virtual items owned by the first virtual object to the server through the third update instruction.
And step 712, responding to the situation that the data of any one of the camps reaches the data threshold, or the duration of the game reaches the duration threshold, and displaying a game ending interface.
In a possible implementation mode, in order to further control the duration of the game, the terminal determines whether the game is finished according to the marketing data and the duration of the game. For example, the application program sets a data threshold and a duration threshold in advance, when the duration of the match reaches the duration threshold, the match is determined to be ended, the camp with the highest camp data is determined as the winner, when the duration of the match does not reach the duration threshold, but the camp data of one camp reaches the data threshold, the match is determined to be ended, and the camp reaching the data threshold is determined as the winner.
Optionally, the terminal determines whether the office is finished or not only according to whether the marketing data reaches a data threshold or not; or whether the game is ended is determined only according to whether the game duration reaches the duration threshold.
Referring to fig. 9, a schematic diagram of a session ending interface is shown. As shown in fig. 9, the alignment end interface displays an alignment result 901, the marketing data 902 of the marketing to which the first virtual object belongs, and the marketing data 903 of the marketing to which the second virtual object belongs.
In the embodiment of the application, the second position is determined from the candidate area around the first position, so that the situation that the second position is far away from the first position when the terminal randomly determines the second position and the first virtual object cannot be controlled by a user to arrive in a short time is avoided, and meanwhile, the second position is determined according to the third position of the second virtual object in the candidate area, so that the situation that the process that the first virtual object obtains the first virtual prop and moves to the second position is not easily known by the second virtual object can be avoided; displaying a position identifier of a second position at the map display control and a position corresponding to the relative position, so that a user can conveniently control the first virtual object to find the second position; the timer is set for the first virtual prop, so that the time for the first virtual object to move to the second position to obtain the marketing data is limited, the situation that the user accumulates the first virtual prop to avoid the attack of the second virtual object can be avoided, and the progress of the game is accelerated; whether the game is finished or not is determined according to whether the marketing data reaches the data threshold or not and whether the game-play duration reaches the duration threshold or not, the game-play duration is further controlled, the situation that the game is delayed is avoided, and the burden of a server for processing a single game is reduced.
In the above embodiment, the user acquires the first virtual item through the first virtual object, and sends the first virtual item to the second location, thereby acquiring the marketing data. In order to promote users participating in the game of chance to actively obtain the virtual prop, so as to accelerate the game of chance progress, in a possible implementation manner, the users obtain the virtual prop generated when the virtual object in the same game is defeated by controlling the first virtual object, and submit the virtual prop to a specified position, so that the second virtual object can be prevented from obtaining the play data of the prop.
Referring to fig. 10, a flowchart of a control method for a virtual object according to another exemplary embodiment of the present application is shown. The embodiment is described by taking as an example that the method is used for the first terminal 110 or the second terminal 130 in the implementation environment shown in fig. 1 or other terminals in the implementation environment, and the method includes the following steps:
step 1001, displaying a first prop identifier of the first virtual prop and a second prop identifier of the second virtual prop in the map display control.
The second virtual item is a virtual item generated when the virtual object belonging to the same marketing as the first virtual object is defeated. And the first prop identification is different from the second prop identification.
Optionally, when the virtual object belonging to the same camp as the first virtual object is defeated, a second virtual item is generated, and when the virtual object is reactivated, if the second virtual item is not acquired, it is determined that the second virtual item is invalid, and display of the second virtual item is cancelled.
In a possible implementation manner, a first item identifier of a first virtual item and a second item identifier of a second virtual item existing in a range shown by a control are displayed in a map display control.
Optionally, to distinguish the first item identification from the second item identification, the first item identification is different from the second item identification in at least one of shape, color, size, and pattern.
Step 1002, in response to that the relative position of the first virtual item and the first virtual object is located within the range of the viewing direction of the first virtual object, displaying the first item identifier and the relative distance at a position corresponding to the relative position in the virtual environment picture.
In a possible implementation manner, if the first position of the first virtual item does not belong to the virtual environment range displayed by the current virtual environment picture, when the terminal is located in the visual field range of the first virtual object at the relative position of the first virtual item and the first virtual object, the first item identifier and the relative distance are displayed through the virtual environment picture, and the first item identifier and the relative distance are not shielded by the virtual object in the virtual environment.
Optionally, for a first virtual item with a first position outside the range of the virtual environment displayed by the map display control, the terminal does not display the first item identifier and the relative distance thereof.
Referring to fig. 11, a schematic diagram of a virtual environment interface is shown. The relative position of the first virtual prop and the first virtual object is located in the range of the visual line direction of the first virtual object, the terminal displays a first road sign 1101 and a relative distance 1102 of the first virtual prop at a position corresponding to the relative position, the first road sign 1101 and the relative distance 1102 are not blocked by a front virtual building, and meanwhile, a first road sign 1104 is also displayed in the map display control 1103.
And 1003, in response to that the relative position of the second virtual prop and the first virtual object is located in the range of the sight direction of the first virtual object, displaying a second prop identifier and a relative distance at a position corresponding to the relative position in the virtual environment picture.
The display mode of the second virtual item is the same as that of the first virtual item, and a second item identifier and a relative distance are displayed at a position corresponding to the relative position of the second virtual item and the first virtual object in the virtual environment picture.
Step 1004, in response to receiving a third control operation on the first virtual object, controlling the first virtual object to obtain a second virtual item, where the second virtual item is located at a fourth position in the virtual environment.
In a possible implementation manner, a second virtual prop is generated when a virtual object in the same battle as the first virtual object is defeated, and a user controls the first virtual object to obtain the second virtual prop through triggering operation of a UI control in a virtual environment interface.
Optionally, in order to distinguish the first virtual item from the second virtual item, the models of the first virtual item and the second virtual item are different, for example, at least one of the elements of shape, color, size, and pattern is different.
Optionally, in response to the first crash detection box colliding with a third crash detection box (i.e. there is an intersection point between the coordinate range of the first crash detection box and the coordinate range of the third crash detection box), the terminal determines that the first virtual object reaches the fourth position, where the third crash detection box is a crash detection box corresponding to the model of the second virtual prop.
Step 1005, in response to the first virtual object acquiring the second virtual item and receiving a fourth control operation on the first virtual object, controlling the first virtual object to move to a fifth position in the virtual environment.
Wherein the fifth position is different from the fourth position.
In a possible implementation manner, when the first virtual object acquires the second virtual item, the terminal determines a fifth position, and displays a position identifier of the fifth position in the map display control.
Optionally, the fifth position is determined in the same manner as the second position.
Step 1006, in response to the first virtual object moving to the fifth position, clearing the second virtual item.
The second virtual item is in an unavailable state after being cleared, and if the first virtual object is defeated in the process of moving to the fifth position, the second virtual item is in an available state.
In one possible implementation, in response to the first virtual object moving to the fifth location, the terminal determines that the second virtual item is invalid and clears the second virtual item and the fifth location.
Optionally, the fifth location is visible to virtual objects owning the second virtual item and invisible to other virtual objects.
Optionally, if the first virtual object is defeated in the process of moving to the fifth position, the second virtual item is in an acquirable state with respect to the second virtual object, and the second virtual object acquires the second virtual item and moves to the fifth position, then corresponding marketing data is acquired for a marketing to which the second virtual object belongs.
Optionally, when the terminal determines that the first virtual object or the second virtual object obtains the second virtual prop, a timer is set for the second virtual prop, if the first virtual object moves to a fifth position within the time length of the timer, the second virtual prop is cleared, and if the second virtual object moves to the fifth position within the time length of the timer, the marketing data of the marketing to which the second virtual object belongs is updated, and the second virtual prop is cleared.
Optionally, when the virtual object that generates the second virtual item is reactivated, if the second virtual item is not sent to the fifth location, it is determined that the second virtual item is invalid, and the display of the second virtual item and the fifth location is cancelled.
Step 1007, responding to the first virtual object to obtain the second virtual item, sending a fourth updating instruction to the server, where the fourth updating instruction is used to instruct to increase the number of the second virtual items owned by the first virtual object.
In a possible implementation manner, when the first virtual object acquires the second virtual item, the terminal immediately sends a fourth update instruction to the server, and the server adds one to the number of the second virtual items owned by the first virtual object and sends the updated number of the second virtual items owned by the first virtual object to other terminals in the current session.
Optionally, the number of the first virtual items and the number of the second virtual items currently owned by each virtual object are displayed at the model peripheral side designated position of the virtual object in the virtual environment picture.
Step 1008, in response to the first virtual object moving to the fifth position, sending a fifth update instruction to the server, where the fifth update instruction is used to instruct to reduce the number of the second virtual items owned by the first virtual object.
In a possible implementation manner, when the first virtual object moves to the fifth position, the terminal determines that the number of the second virtual props owned by the first virtual object is zero; or different second virtual props correspond to different fifth positions, when the first virtual object moves to a certain fifth position, the terminal determines that the first virtual object submits the corresponding second virtual prop, and the number of the second virtual props owned by the first virtual object is reduced by one. And after the terminal updates the number of the second virtual items owned by the first virtual object, sending a fifth updating instruction to the server. And after receiving a fifth updating instruction sent by the terminal, the server determines the number of second virtual props owned by the first virtual object, and forwards the number to other terminals corresponding to the local office.
In the embodiment of the application, the user obtains the second virtual prop generated when the virtual object in the same battle is defeated by controlling the first virtual object and moves to the fifth position, so that the second virtual object can be prevented from obtaining the second virtual prop to obtain the battle data, the user is prompted to actively control the first virtual object to search the second virtual prop and move, the probability that the first virtual object meets the second virtual object is improved, the game-alignment progress is accelerated, the time length of a single game is further controlled, and the burden of the server for processing the single game is reduced.
In connection with the above embodiments, in an illustrative example, a flow of a user controlling a virtual object is shown in fig. 12.
Step 1201, selecting a killing confirmation mode and entering a game.
Step 1202, determine whether to defeat the second virtual object. If yes, go to step 1203.
Step 1203, generating a first virtual item.
Step 1204, detecting whether the first virtual object obtains the first virtual item. If yes, go to step 1205; if not, go to step 1206.
And step 1205, determining that no marketing data is obtained.
In step 1206, it is detected whether the first virtual object reaches the second position. If yes, go to step 1207; if not, go to step 1205.
Step 1207, determining to obtain marketing data.
And step 1208, judging whether the marketing data of marketing reaches a data threshold value. If yes, determining that the office is ended; if not, go to step 1209.
Step 1209, continue the game.
Step 1210, determine whether the duration of the session reaches the threshold of duration. If yes, determining that the office is ended; if not, go to step 1209.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 13, a block diagram of a control apparatus for a virtual object according to an embodiment of the present application is shown. The apparatus 1300 may include: a first display module 1301, a first control module 1302, a second control module 1303, and an update module 1304.
A first display module 1301, configured to display a virtual environment interface, where the virtual environment interface includes a virtual environment picture, and the virtual environment includes a first virtual object and at least one second virtual object, and the first virtual object and the second virtual object belong to different camps;
a first control module 1302, configured to, in response to receiving a first control operation on the first virtual object, control the first virtual object to obtain a first virtual item, where the first virtual item is located at a first position in the virtual environment, and the first virtual item is a virtual item generated when the second virtual object is defeated;
a second control module 1303, configured to, in response to the first virtual object obtaining the first virtual item and receiving a second control operation on the first virtual object, control the first virtual object to move to a second position in the virtual environment, where the second position is different from the first position;
an updating module 1304, configured to update the marketing data of the marketing to which the first virtual object belongs in response to the first virtual object moving to the second position.
Optionally, the apparatus further comprises:
a first determining module, configured to determine, in response to the first virtual object obtaining the first virtual item, a region in the virtual environment at the first position in a predetermined range as a candidate region;
a second determining module to determine the second location from the candidate region.
Optionally, the second determining module includes:
the obtaining unit is used for responding to the existence of at least one second virtual object in the candidate area and obtaining a third position where the at least one second virtual object is located;
a determining unit, configured to determine, as the second location, a location in the candidate region whose distance from the third location is smaller than a distance threshold.
Optionally, the apparatus further comprises:
the second display module is used for displaying the position identifier of the second position in a map display control, and the map display control is a UI control used for displaying a global map of the virtual environment;
a third display module, configured to, in response to that the relative position between the second location and the first virtual object is within the range of the viewing direction of the first virtual object, display a location identifier of the second location at a location in the virtual environment screen corresponding to the relative position;
and a fourth display module, configured to display the location identifier of the second location in the virtual environment, where the location identifier of the second location is visible to the virtual object that obtained the first virtual item and is invisible to the virtual object that does not obtain the first virtual item.
Optionally, the apparatus further comprises:
the timing module is used for responding to the first virtual object to obtain the first virtual prop and setting a timer for the first virtual prop;
a first clearing module to clear the first virtual item and the second location in response to the first virtual object not moving to the second location within a timer duration of the timer;
the update module 1304 includes:
and the updating unit is used for updating the marketing data of the marketing to which the first virtual object belongs in response to the first virtual object moving to the second position in the timer duration.
Optionally, the apparatus further comprises:
a first sending module, configured to send a first update instruction to a server in response to a first virtual object obtaining the first virtual item, where the first update instruction is used to indicate that the number of the first virtual items owned by the first virtual object is increased;
a second sending module, configured to send, in response to the first virtual object moving to the second location, a second update instruction to the server, where the second update instruction is used to instruct to reduce the number of the first virtual items owned by the first virtual object;
a third sending module, configured to send, in response to that the first virtual item is cleared, a third update instruction to the server, where the third update instruction is used to instruct to reduce the number of the first virtual items owned by the first virtual object.
Optionally, the apparatus further comprises:
a third control module, configured to control, in response to receiving a third control operation on the first virtual object, the first virtual object to obtain a second virtual prop, where the second virtual prop is located at a fourth position in the virtual environment, and the second virtual prop is a virtual prop generated when a virtual object that belongs to the same camp as the first virtual object is defeated;
a fourth control module, configured to, in response to the first virtual object obtaining the second virtual item and receiving a fourth control operation on the first virtual object, control the first virtual object to move to a fifth position in the virtual environment, where the fifth position is different from the fourth position;
and a second clearing module, configured to clear the second virtual item in response to the first virtual object moving to the fifth position, where the second virtual item is in an unacquirable state after being cleared, and if the first virtual object is defeated in the process of moving to the fifth position, the second virtual item is in an acquirable state.
Optionally, the apparatus further comprises:
a fourth sending module, configured to send a fourth update instruction to the server in response to the first virtual object obtaining the second virtual item, where the fourth update instruction is used to instruct to increase the number of the second virtual items owned by the first virtual object;
a fifth sending module, configured to send a fifth update instruction to the server in response to the first virtual object moving to the fifth position, where the fifth update instruction is used to instruct to reduce the number of the second virtual items owned by the first virtual object.
Optionally, the first display module 1301 includes:
the first display unit is used for displaying a first prop identifier of the first virtual prop and a second prop identifier of the second virtual prop in a map display control, and the map display control is a UI control used for displaying a global map of the virtual environment;
a second display unit, configured to, in response to that a relative position of the first virtual item and the first virtual object is within a range of a viewing direction of the first virtual object, display the first item identifier and the relative distance at a position in the virtual environment screen corresponding to the relative position;
a third display unit, configured to, in response to that a relative position of the second virtual item and the first virtual object is within a range of a viewing direction of the first virtual object, display the second item identifier and the relative distance at a position in the virtual environment screen corresponding to the relative position;
wherein the first prop identification is different from the second prop identification.
Optionally, the apparatus further comprises:
and the fifth display module is used for responding to the situation that the data of any one of the camps reaches the data threshold value or the local alignment time reaches the time threshold value, and displaying a local alignment ending interface.
To sum up, in the embodiment of the present application, a first virtual item is generated when a second virtual object is defeated, the first virtual item is controlled through a first control operation to obtain the first virtual item, and the camping data of the camping to which the first virtual object belongs is updated only after the first virtual object is controlled through the second control operation to move to a second position, so that a user is prompted to control the virtual object to obtain the first virtual item and move, the user is prevented from adopting a strategy of avoiding delay and killing remotely, thereby effectively controlling the local time length, and reducing the burden of the server on processing a single game.
In the embodiment of the application, the second position is determined from the candidate area around the first position, so that the situation that the second position is far away from the first position when the terminal randomly determines the second position and the first virtual object cannot be controlled by a user to arrive in a short time is avoided, and meanwhile, the second position is determined according to the third position of the second virtual object in the candidate area, so that the situation that the process that the first virtual object obtains the first virtual prop and moves to the second position is not easily known by the second virtual object can be avoided; displaying a position identifier of a second position at the map display control and a position corresponding to the relative position, so that a user can conveniently control the first virtual object to find the second position; the timer is set for the first virtual prop, so that the time for the first virtual object to move to the second position to obtain the marketing data is limited, the situation that the user accumulates the first virtual prop to avoid the attack of the second virtual object can be avoided, and the progress of the game is accelerated; whether the game is finished or not is determined according to whether the marketing data reaches the data threshold or not and whether the game-play duration reaches the duration threshold or not, the game-play duration is further controlled, the situation that the game is delayed is avoided, and the burden of a server for processing a single game is reduced.
In the embodiment of the application, the user obtains the second virtual prop generated when the virtual object in the same battle is defeated by controlling the first virtual object and moves to the fifth position, so that the second virtual object can be prevented from obtaining the second virtual prop to obtain the battle data, the user is prompted to actively control the first virtual object to search the second virtual prop and move, the probability that the first virtual object meets the second virtual object is improved, the game-alignment progress is accelerated, the time length of a single game is further controlled, and the burden of the server for processing the single game is reduced.
Referring to fig. 14, a block diagram of a terminal 1400 according to an exemplary embodiment of the present application is shown. The terminal 1400 may be a portable mobile terminal such as: the mobile phone comprises a smart phone, a tablet computer, a motion Picture Experts Group Audio Layer 3 (MP 3) player and a motion Picture Experts Group Audio Layer 4 (MP 4) player. Terminal 1400 can also be referred to by other names such as user equipment, portable terminal, and the like.
In general, terminal 1400 includes: a processor 1401, and a memory 1402.
Processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so forth. The processor 1401 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Processor 1401 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, processor 1401 may also include an Artificial Intelligence (AI) processor for processing computing operations related to machine learning.
Memory 1402 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 1402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1402 is used to store at least one instruction for execution by processor 1401 to implement a method provided by embodiments of the present application.
In some embodiments, terminal 1400 may further optionally include: a peripheral device interface 1403 and at least one peripheral device. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1404, a touch display 1405, a camera 1406, audio circuitry 1407, a positioning component 1408, and a power supply 1409.
The peripheral device interface 1403 may be used to connect at least one Input/Output (I/O) related peripheral device to the processor 1401 and the memory 1402. In some embodiments, the processor 1401, memory 1402, and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 1401, the memory 1402, and the peripheral device interface 1403 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1404 is used for receiving and transmitting Radio Frequency (RF) signals, also called electromagnetic signals. The radio frequency circuitry 1404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 1404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or Wireless Fidelity (WiFi) networks. In some embodiments, the rf circuitry 1404 may also include Near Field Communication (NFC) related circuitry, which is not limited in this application.
The touch display 1405 is used to display a UI. The UI may include graphics, text, icons, video, and any combination thereof. The touch display 1405 also has the ability to capture touch signals at or above the surface of the touch display 1405. The touch signal may be input to the processor 1401 for processing as a control signal. The touch display 1405 is used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the touch display 1405 may be one, providing the front panel of the terminal 1400; in other embodiments, the touch display 1405 can be at least two, respectively disposed on different surfaces of the terminal 1400 or in a folded design; in still other embodiments, touch display 1405 can be a flexible display disposed on a curved surface or on a folded surface of terminal 1400. Even the touch display 1405 can be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The touch Display 1405 can be made of Liquid Crystal Display (LCD), Organic Light-Emitting Diode (OLED), or the like.
The camera assembly 1406 is used to capture images or video. Optionally, camera assembly 1406 includes a front camera and a rear camera. Generally, a front camera is used for realizing video call or self-shooting, and a rear camera is used for realizing shooting of pictures or videos. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera and a wide-angle camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting function and a Virtual Reality (VR) shooting function. In some embodiments, camera assembly 1406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
Audio circuit 1407 is operative to provide an audio interface between the user and terminal 1400. The audio circuit 1407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1401 for processing or inputting the electric signals to the radio frequency circuit 1404 to realize voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is then used to convert electrical signals from the processor 1401 or the radio frequency circuit 1404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1407 may also include a headphone jack.
The positioning component 1408 serves to locate the current geographic position of the terminal 1400 for navigation or Location Based Service (LBS). The positioning component 1408 may be a positioning component based on the Global Positioning System (GPS) of the united states, the beidou System of china, or the galileo System of russia.
Power supply 1409 is used to power the various components of terminal 1400. The power source 1409 may be alternating current, direct current, disposable or rechargeable. When the power source 1409 comprises a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1400 also includes one or more sensors 1410. The one or more sensors 1410 include, but are not limited to: acceleration sensor 1411, gyroscope sensor 1412, pressure sensor 1413, fingerprint sensor 1414, optical sensor 1415, and proximity sensor 1416.
The acceleration sensor 1411 may detect the magnitude of acceleration on three coordinate axes of a coordinate system established with the terminal 1400. For example, the acceleration sensor 1411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1401 can control the touch display 1405 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1411. The acceleration sensor 1411 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1412 may detect a body direction and a rotation angle of the terminal 1400, and the gyro sensor 1412 and the acceleration sensor 1411 may cooperate to collect a 3D motion of the user on the terminal 1400. The processor 1401 can realize the following functions according to the data collected by the gyro sensor 1412: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 1413 may be disposed on the side bezel of terminal 1400 and/or underlying touch display 1405. When the pressure sensor 1413 is disposed at the side frame of the terminal 1400, a user's holding signal of the terminal 1400 can be detected, and left-right hand recognition or shortcut operation can be performed according to the holding signal. When the pressure sensor 1413 is disposed at the lower layer of the touch display screen 1405, it is possible to control an operability control on the UI interface according to a pressure operation of the user on the touch display screen 1405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1414 is used for collecting a fingerprint of a user to identify the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 1401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for, and changing settings, etc. Fingerprint sensor 1414 may be disposed on the front, back, or side of terminal 1400. When a physical key or vendor Logo (Logo) is provided on the terminal 1400, the fingerprint sensor 1414 may be integrated with the physical key or vendor Logo.
The optical sensor 1415 is used to collect ambient light intensity. In one embodiment, processor 1401 can control the display brightness of touch display 1405 based on the ambient light intensity collected by optical sensor 1415. Specifically, when the ambient light intensity is high, the display luminance of the touch display 1405 is increased; when the ambient light intensity is low, the display brightness of the touch display 1405 is turned down. In another embodiment, the processor 1401 can also dynamically adjust the shooting parameters of the camera assembly 1406 according to the intensity of the ambient light collected by the optical sensor 1415.
Proximity sensors 1416, also known as distance sensors, are typically disposed on the front face of terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front surface of the terminal 1400. In one embodiment, when proximity sensor 1416 detects that the distance between the user and the front face of terminal 1400 is gradually decreased, processor 1401 controls touch display 1405 to switch from a bright screen state to a dark screen state; when proximity sensor 1416 detects that the distance between the user and the front face of terminal 1400 is gradually increasing, processor 1401 controls touch display 1405 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 14 is not intended to be limiting with respect to terminal 1400 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
The present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the control method for a virtual object according to any of the foregoing embodiments.
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. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the control method of the virtual object provided in the above aspect or the various alternative implementations of the above aspect.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (13)

1. A method for controlling a virtual object, the method comprising:
displaying a virtual environment interface, wherein the virtual environment interface comprises a virtual environment picture, the virtual environment comprises a first virtual object and at least one second virtual object, and the first virtual object and the second virtual object belong to different campuses;
in response to receiving a first control operation on the first virtual object, controlling the first virtual object to obtain a first virtual prop, wherein the first virtual prop is located at a first position in the virtual environment and is a virtual prop generated when the second virtual object is defeated;
in response to the first virtual object acquiring the first virtual prop and receiving a second control operation on the first virtual object, controlling the first virtual object to move to a second position in the virtual environment, wherein the second position is different from the first position;
updating the marketing data of the marketing to which the first virtual object belongs in response to the first virtual object moving to the second position.
2. The method according to claim 1, wherein after controlling the first virtual object to acquire the first virtual prop, the method comprises:
determining a region of the first position preset range in the virtual environment as a candidate region in response to the first virtual object acquiring the first virtual prop;
determining the second location from the candidate region.
3. The method of claim 2, wherein the determining the second location from the candidate region comprises:
responding to the existence of at least one second virtual object in the candidate area, and acquiring a third position where the at least one second virtual object is located;
determining a location of the candidate region having a distance from the third location that is less than a distance threshold as the second location.
4. The method of claim 2, wherein after determining the second location from the candidate region, the method further comprises:
displaying the position identification of the second position in a map display control, wherein the map display control is a User Interface (UI) control for displaying a global map of the virtual environment;
in response to that the relative position of the second position and the first virtual object is located in the range of the sight line direction of the first virtual object, displaying a position identifier of the second position at a position corresponding to the relative position in the virtual environment picture;
displaying a location identifier of the second location in the virtual environment, wherein the location identifier of the second location is visible to a virtual object that acquired the first virtual item and is not visible to a virtual object that did not acquire the first virtual item.
5. The method of claim 1, wherein after controlling the first virtual object to acquire the first virtual prop, the method further comprises:
setting a timer for the first virtual prop in response to the first virtual object acquiring the first virtual prop;
responsive to the first virtual object not moving to the second location within a timer duration of the timer, clearing the first virtual prop and the second location;
the updating the marketing data of the marketing to which the first virtual object belongs in response to the first virtual object moving to the second position comprises:
updating marketing data of a marketing to which the first virtual object belongs in response to the first virtual object moving to the second position within the timer duration.
6. The method of any of claims 1 to 5, further comprising:
responding to the first virtual object to acquire the first virtual prop, and sending a first updating instruction to a server, wherein the first updating instruction is used for indicating to increase the number of the first virtual props owned by the first virtual object;
in response to the first virtual object moving to the second position, sending a second update instruction to the server, the second update instruction being for instructing to reduce the number of the first virtual items owned by the first virtual object;
in response to the first virtual item being cleared, sending a third update instruction to the server, the third update instruction being for instructing to reduce the number of the first virtual items owned by the first virtual object.
7. The method of any of claims 1 to 4, wherein after displaying the virtual environment interface, the method further comprises:
in response to receiving a third control operation on the first virtual object, controlling the first virtual object to obtain a second virtual prop, wherein the second virtual prop is located at a fourth position in the virtual environment and is generated when the virtual object belonging to the same marketing as the first virtual object is defeated;
in response to the first virtual object acquiring the second virtual prop and receiving a fourth control operation on the first virtual object, controlling the first virtual object to move to a fifth position in the virtual environment, wherein the fifth position is different from the fourth position;
and clearing the second virtual prop in response to the first virtual object moving to the fifth position, wherein the second virtual prop is in a non-acquirable state after being cleared, and if the first virtual object is defeated in the process of moving to the fifth position, the second virtual prop is in an acquirable state.
8. The method of claim 7, further comprising:
responding to the first virtual object to acquire the second virtual item, and sending a fourth updating instruction to a server, wherein the fourth updating instruction is used for indicating to increase the number of the second virtual items owned by the first virtual object;
in response to the first virtual object moving to the fifth position, sending a fifth update instruction to the server, the fifth update instruction being for instructing to reduce the number of the second virtual items owned by the first virtual object.
9. The method of claim 7, wherein displaying the virtual environment interface comprises:
displaying a first prop identifier of the first virtual prop and a second prop identifier of the second virtual prop in a map display control, wherein the map display control is a UI control for displaying a global map of the virtual environment;
in response to that the relative position of the first virtual prop and the first virtual object is located within the range of the sight direction of the first virtual object, displaying the first prop identifier and the relative distance at a position in the virtual environment picture corresponding to the relative position;
responding to that the relative position of the second virtual prop and the first virtual object is located in the range of the sight direction of the first virtual object, and displaying the second prop identification and the relative distance at a position corresponding to the relative position in the virtual environment picture;
wherein the first prop identification is different from the second prop identification.
10. The method according to any one of claims 1 to 5, wherein after updating the marketing data of the marketing to which the first virtual object belongs, the method further comprises:
and responding to the situation that the data of any one of the camps reaches a data threshold, or the duration of the game reaches a duration threshold, and displaying a game ending interface.
11. An apparatus for controlling a virtual object, the apparatus comprising:
the system comprises a first display module, a second display module and a display module, wherein the first display module is used for displaying a virtual environment interface, the virtual environment interface comprises a virtual environment picture, the virtual environment comprises a first virtual object and at least one second virtual object, and the first virtual object and the second virtual object belong to different campuses;
a first control module, configured to control, in response to receiving a first control operation on the first virtual object, the first virtual object to obtain a first virtual item, where the first virtual item is located at a first position in the virtual environment, and the first virtual item is a virtual item generated when the second virtual object is defeated;
a second control module, configured to, in response to the first virtual object obtaining the first virtual prop and receiving a second control operation on the first virtual object, control the first virtual object to move to a second location in the virtual environment, where the second location is different from the first location;
and the updating module is used for responding to the movement of the first virtual object to the second position and updating the marketing data of the marketing to which the first virtual object belongs.
12. A terminal, characterized in that the terminal comprises: a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the method of controlling a virtual object according to any one of claims 1 to 10.
13. A computer readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of controlling a virtual object according to any one of claims 1 to 10.
CN202010578555.XA 2020-06-23 2020-06-23 Virtual object control method, device, terminal and storage medium Active CN111589124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010578555.XA CN111589124B (en) 2020-06-23 2020-06-23 Virtual object control method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010578555.XA CN111589124B (en) 2020-06-23 2020-06-23 Virtual object control method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111589124A true CN111589124A (en) 2020-08-28
CN111589124B CN111589124B (en) 2023-05-26

Family

ID=72182836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010578555.XA Active CN111589124B (en) 2020-06-23 2020-06-23 Virtual object control method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111589124B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112121426A (en) * 2020-09-17 2020-12-25 腾讯科技(深圳)有限公司 Prop obtaining method and device, storage medium and electronic equipment
CN112316421A (en) * 2020-11-27 2021-02-05 腾讯科技(深圳)有限公司 Equipment method, device, terminal and storage medium of virtual prop
CN112891942A (en) * 2021-03-26 2021-06-04 腾讯科技(深圳)有限公司 Method, device, equipment and medium for acquiring virtual prop
CN113434004A (en) * 2021-06-17 2021-09-24 胡成余 Power supply remote control system
CN113769394A (en) * 2021-09-28 2021-12-10 腾讯科技(深圳)有限公司 Prop control method, device, equipment and storage medium in virtual scene
CN114042309A (en) * 2021-09-29 2022-02-15 腾讯科技(深圳)有限公司 Using method, device, terminal and storage medium of virtual prop
WO2022083449A1 (en) * 2020-10-23 2022-04-28 腾讯科技(深圳)有限公司 Virtual throwing prop using method and device, terminal, and storage medium
WO2022227915A1 (en) * 2021-04-30 2022-11-03 腾讯科技(深圳)有限公司 Method and apparatus for displaying position marks, and device and storage medium
WO2022233125A1 (en) * 2021-05-07 2022-11-10 网易(杭州)网络有限公司 Information processing method and apparatus in game, electronic device, and storage medium
CN115518381A (en) * 2022-10-08 2022-12-27 广州三七极耀网络科技有限公司 Method, system, device and medium for refreshing virtual object and environment object in game

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
暴雪: "《17173魔兽世界专区》", 25 August 2012 *

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112121426A (en) * 2020-09-17 2020-12-25 腾讯科技(深圳)有限公司 Prop obtaining method and device, storage medium and electronic equipment
WO2022083449A1 (en) * 2020-10-23 2022-04-28 腾讯科技(深圳)有限公司 Virtual throwing prop using method and device, terminal, and storage medium
CN112316421A (en) * 2020-11-27 2021-02-05 腾讯科技(深圳)有限公司 Equipment method, device, terminal and storage medium of virtual prop
CN112891942A (en) * 2021-03-26 2021-06-04 腾讯科技(深圳)有限公司 Method, device, equipment and medium for acquiring virtual prop
WO2022227915A1 (en) * 2021-04-30 2022-11-03 腾讯科技(深圳)有限公司 Method and apparatus for displaying position marks, and device and storage medium
WO2022233125A1 (en) * 2021-05-07 2022-11-10 网易(杭州)网络有限公司 Information processing method and apparatus in game, electronic device, and storage medium
CN113434004A (en) * 2021-06-17 2021-09-24 胡成余 Power supply remote control system
CN113769394A (en) * 2021-09-28 2021-12-10 腾讯科技(深圳)有限公司 Prop control method, device, equipment and storage medium in virtual scene
WO2023051168A1 (en) * 2021-09-28 2023-04-06 腾讯科技(深圳)有限公司 Method, apparatus, and device for controlling item in virtual scene, and storage medium
CN113769394B (en) * 2021-09-28 2023-06-16 腾讯科技(深圳)有限公司 Prop control method, device, equipment and storage medium in virtual scene
CN114042309A (en) * 2021-09-29 2022-02-15 腾讯科技(深圳)有限公司 Using method, device, terminal and storage medium of virtual prop
CN114042309B (en) * 2021-09-29 2023-07-18 腾讯科技(深圳)有限公司 Virtual prop using method, device, terminal and storage medium
CN115518381A (en) * 2022-10-08 2022-12-27 广州三七极耀网络科技有限公司 Method, system, device and medium for refreshing virtual object and environment object in game
CN115518381B (en) * 2022-10-08 2023-09-05 广州三七极耀网络科技有限公司 Method, system, device and medium for refreshing virtual object and environment object in game

Also Published As

Publication number Publication date
CN111589124B (en) 2023-05-26

Similar Documents

Publication Publication Date Title
CN110694261B (en) Method, terminal and storage medium for controlling virtual object to attack
CN111589131B (en) Control method, device, equipment and medium of virtual role
CN111589124B (en) Virtual object control method, device, terminal and storage medium
CN110448891B (en) Method, device and storage medium for controlling virtual object to operate remote virtual prop
CN112717421B (en) Team matching method, team matching device, team matching terminal, team matching server and storage medium
CN110917619B (en) Interactive property control method, device, terminal and storage medium
CN110613938B (en) Method, terminal and storage medium for controlling virtual object to use virtual prop
CN112076467B (en) Method, device, terminal and medium for controlling virtual object to use virtual prop
CN111714893A (en) Method, device, terminal and storage medium for controlling virtual object to recover attribute value
CN110755841A (en) Method, device and equipment for switching props in virtual environment and readable storage medium
CN111659119B (en) Virtual object control method, device, equipment and storage medium
CN110917623B (en) Interactive information display method, device, terminal and storage medium
CN112076469A (en) Virtual object control method and device, storage medium and computer equipment
CN110801628B (en) Method, device, equipment and medium for controlling virtual object to restore life value
CN111389005B (en) Virtual object control method, device, equipment and storage medium
CN111744184A (en) Control display method in virtual scene, computer equipment and storage medium
CN111744186A (en) Virtual object control method, device, equipment and storage medium
CN112138384A (en) Using method, device, terminal and storage medium of virtual throwing prop
KR20210150478A (en) Method and apparatus, device and storage medium for skill aiming in a three-dimensional virtual environment
CN113289331A (en) Display method and device of virtual prop, electronic equipment and storage medium
CN112870715A (en) Virtual item putting method, device, terminal and storage medium
CN112691370A (en) Method, device, equipment and storage medium for displaying voting result in virtual game
CN111589144B (en) Virtual character control method, device, equipment and medium
CN111672102A (en) Virtual object control method, device, equipment and storage medium in virtual scene
CN111672104A (en) Virtual scene display method, device, terminal and storage medium

Legal Events

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

Ref country code: HK

Ref legal event code: DE

Ref document number: 40027320

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant