CN113521737B - Virtual character locking method, device, computer equipment and storage medium - Google Patents
Virtual character locking method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN113521737B CN113521737B CN202110844750.7A CN202110844750A CN113521737B CN 113521737 B CN113521737 B CN 113521737B CN 202110844750 A CN202110844750 A CN 202110844750A CN 113521737 B CN113521737 B CN 113521737B
- Authority
- CN
- China
- Prior art keywords
- role
- virtual
- locking
- terminal
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 92
- 230000004044 response Effects 0.000 claims description 135
- 238000012790 confirmation Methods 0.000 claims description 41
- 238000010586 diagram Methods 0.000 description 21
- 238000004590 computer program Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 8
- 230000009471 action Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 239000011159 matrix material Substances 0.000 description 3
- 230000000386 athletic effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007123 defense Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 238000012905 input function Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000003340 mental effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/20—Input arrangements for video game devices
- A63F13/21—Input arrangements for video game devices characterised by their sensors, purposes or types
- A63F13/214—Input arrangements for video game devices characterised by their sensors, purposes or types for locating contacts on a surface, e.g. floor mats or touch pads
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the application discloses a method, a device, computer equipment and a storage medium for locking a virtual character, which are used for displaying a game interface; then, when a role selection instruction is detected, determining a target virtual role according to the role selection instruction; then, a role locking request is sent to a server, so that a role locking instruction is sent to a second terminal through the server, wherein the role locking instruction is used for indicating the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal of a game account corresponding to the same-camp virtual role, and the same-camp virtual role is as follows: and the virtual role is the virtual role of the same camping as the master virtual role. The embodiment of the application can ensure that the virtual roles in the same camp and the master control virtual roles can quickly determine the same target virtual role, can simplify the operation steps of locking the same target virtual role by the virtual roles in the same camp, improves the operation efficiency and ensures that the game playing method is richer.
Description
Technical Field
The present application relates to the field of game technologies, and in particular, to a method and apparatus for locking a virtual character, a computer device, and a storage medium.
Background
With the continuous development of computer communication technology, in order to meet the pursuit of people for mental life, entertainment games capable of being operated on terminals have been developed, for example, multi-person online action games developed based on client or server architecture. In the action athletic game, a player can operate the virtual characters in the screen to play the game, and can execute relevant operations such as attack and the like in a game scene based on a third view angle of the characters operated by the player, so that the player can experience visual impact brought by the game in an immersive manner, and the initiative and the sense of reality of the game are greatly enhanced.
Currently, in the action athletic game fight, a player can fight with other matched players as teammates, and the player can control the virtual character to attack the hostile virtual character controlled by other players so as to obtain the final win. However, in the current game, when a player informs a player of designating an enemy who wants to catch fire together, the player needs to spend time to find the enemy to lock, the operation steps are complicated, and the operation efficiency of the player in the game for the battle is low.
Disclosure of Invention
The embodiment of the application provides a method, a device, computer equipment and a storage medium for locking virtual roles, which can enable virtual roles in the same camp and a master control virtual role to quickly determine the same target virtual role, can simplify the operation steps of locking the same target virtual role by the virtual roles in the same camp, improve the operation efficiency, and enable the game playing method to be richer, thereby improving the interest of a game.
The embodiment of the application provides a virtual character locking method, which is applied to a first terminal and comprises the following steps:
Displaying a game interface, wherein the game interface is used for displaying a virtual scene and a plurality of virtual characters positioned in the virtual scene, and the game interface is a game interface for controlling the virtual characters;
when a role selection instruction is detected, determining a target virtual role according to the role selection instruction, wherein the target virtual role is as follows: the virtual role is a virtual role of hostile camping with the master virtual role;
Sending a role locking request to a server so as to send a role locking instruction to a second terminal through the server, wherein the role locking instruction is used for indicating the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the same matrix is: and the virtual role is the virtual role of the same camping as the master virtual role.
Optionally, after sending the role locking request to the server, the method further includes:
When first response information is received, a locking identifier is displayed on the target virtual character on the game interface in a superposition mode according to the first response information, wherein the first response information is that: and the server returns response information to the first terminal based on the role locking request.
Optionally, when the role selection instruction is detected, determining the target virtual role according to the role selection instruction includes:
responding to a first touch operation of a user on the game interface, and displaying an aiming mark on the game interface;
And responding to a second touch operation of the user on the game interface, so that the aiming mark is displayed in the display range of the virtual role in the virtual scene, generating a role selection instruction, and determining the virtual role as the target virtual role according to the role selection instruction.
Optionally, when the role selection instruction is detected, determining the target virtual role according to the role selection instruction includes:
When the main control virtual character is detected to be in a defeated state, determining candidate virtual characters defeating the main control virtual character, and generating a character selection instruction;
and determining a target virtual role from the candidate virtual roles in response to the role selection instruction.
Optionally, the determining, in response to the role selection instruction, a target virtual role from the candidate virtual roles includes:
if the number of the candidate virtual roles is a plurality of, determining an attack value of each candidate virtual role in the plurality of candidate virtual roles, wherein the attack value is: the candidate virtual roles enable the master virtual role to correspond to the reduced value of the life value;
and determining the target virtual role from the plurality of candidate virtual roles according to the attack values of the candidate virtual roles.
Optionally, the determining, in response to the role selection instruction, a target virtual role from the candidate virtual roles includes:
and if the number of the candidate virtual roles is a plurality of, determining a target virtual role from the plurality of candidate virtual roles based on the role category of the master virtual role and the role category of the candidate virtual role.
Optionally, before sending the role locking request to the server, the method further includes:
determining the display position of the master virtual character on the game interface;
Generating a target area based on the display position and a preset range rule;
And determining a virtual role to be processed, and taking a terminal of a game account corresponding to the virtual role to be processed as the second terminal, wherein the virtual role to be processed is a virtual role which is positioned in the target area and has the same camp as the master control virtual role.
The embodiment of the application provides another virtual character locking method which is applied to a second terminal and comprises the following steps:
Receiving a role locking instruction sent by a server, wherein the role locking instruction is generated based on target role information carried in a role locking request sent by a first terminal to the server, and the first terminal is a terminal for controlling a game account corresponding to a virtual role;
based on the role locking instruction, displaying locking request information in a preset information display area of a game interface, wherein the locking request information is used for indicating: confirming whether the target virtual role corresponding to the target role information is locked or not;
When a lock acknowledge operation responding to the lock request information is detected, a role lock acknowledge request is sent to the server;
And when second response information generated by the server based on the target character information carried in the character locking confirmation request is received, displaying a locking identifier in a superposition manner on the target virtual character on the game interface according to the second response information.
The embodiment of the application provides a locking method of a virtual character, which is applied to a server and comprises the following steps:
Receiving a role locking request sent by a first terminal, wherein the first terminal is a terminal for controlling a game account corresponding to a virtual role;
Generating first response information and a role locking instruction respectively based on the target role information carried in the role locking request, wherein the role locking instruction is used for indicating a second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with the same virtual role, and the same virtual role is: the virtual role is the same as the master virtual role in camping;
Returning the first response information to the first terminal and sending the role locking instruction to a second terminal;
when a role locking confirmation request sent by the second terminal is received, generating second response information based on the target role information carried in the role locking confirmation request;
And returning the second response information to the second terminal.
Optionally, generating a role locking instruction based on the target role information carried in the role locking request includes:
Acquiring role information of the master virtual role;
And generating a role locking instruction based on the role information of the master virtual role and the target role information.
Correspondingly, the embodiment of the application also provides a locking device of the virtual character, which is applied to the first terminal and comprises the following components:
The first display unit is used for displaying a game interface, wherein the game interface is used for displaying a virtual scene and a plurality of virtual roles in the virtual scene, and the game interface is a game interface for controlling the virtual roles;
the first determining unit is used for determining a target virtual role according to the role selection instruction when the role selection instruction is detected, wherein the target virtual role is as follows: the virtual role is a virtual role of hostile camping with the master virtual role;
The first sending unit is configured to send a role locking request to a server, so that a role locking instruction is sent to a second terminal through the server, where the role locking instruction is used to instruct the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with a camping virtual role, and the camping virtual role is: and the virtual role is the virtual role of the same camping as the master virtual role.
In some embodiments, the apparatus further comprises:
The second display unit is used for displaying a locking identifier in a superposition manner on the target virtual character on the game interface according to the first response information when the first response information is received, wherein the first response information is that: and the server returns response information to the first terminal based on the role locking request.
In some embodiments, the apparatus further comprises:
The first response unit is used for responding to a first touch operation of a user on the game interface and displaying an aiming mark on the game interface;
And the second response unit is used for responding to a second touch operation of the user on the game interface so as to enable the aiming mark to be displayed in the display range of the virtual role in the virtual scene, generating a role selection instruction, and determining the virtual role as the target virtual role according to the role selection instruction.
In some embodiments, the apparatus further comprises:
the second determining unit is used for determining candidate virtual roles for defeating the master virtual role when the master virtual role is detected to be in a defeated state, and generating a role selection instruction;
and the third response unit is used for determining a target virtual role from the candidate virtual roles in response to the role selection instruction.
In some embodiments, the apparatus further comprises:
A third determining unit, configured to determine an attack value of each candidate virtual character in the plurality of candidate virtual characters if the number of candidate virtual characters is plural, where the attack value is: the candidate virtual roles enable the master virtual role to correspond to the reduced value of the life value;
And a fourth determining unit configured to determine a target virtual character from among the plurality of candidate virtual characters according to the attack values of the candidate virtual characters.
In some embodiments, the apparatus further comprises:
And a fifth determining unit configured to determine, if the number of candidate virtual roles is plural, a target virtual role from among the plural candidate virtual roles based on the role class of the master virtual role and the role class of the candidate virtual role.
In some embodiments, the apparatus further comprises:
a sixth determining unit, configured to determine a display position of the master virtual character on the game interface;
The processing unit is used for generating a target area based on the display position and a preset range rule;
A seventh determining unit, configured to determine a virtual role to be processed, and take a terminal of a game account corresponding to the virtual role to be processed as the second terminal, where the virtual role to be processed is a virtual role that is located in the target area and is in the same camp as the master virtual role.
Correspondingly, the embodiment of the application also provides another locking device of the virtual character, which is applied to the second terminal and comprises the following steps:
The first receiving unit is used for receiving a role locking instruction sent by a server, wherein the role locking instruction is generated based on target role information carried in a role locking request sent by a first terminal to the server, and the first terminal is a terminal for controlling a game account corresponding to a virtual role;
A third display unit, configured to display, based on the character locking instruction, locking request information in a preset information display area of a game interface, where the locking request information is used to indicate: confirming whether the target virtual role corresponding to the target role information is locked or not;
a second transmitting unit configured to transmit a character lock confirmation request to the server when a lock confirmation operation in response to the lock request information is detected;
And the fourth display unit is used for displaying a locking identifier in a superposition manner on the target virtual character on the game interface according to the second response information when the second response information generated by the server based on the target character information carried in the character locking confirmation request is received.
Correspondingly, the embodiment of the application also provides a locking device of the virtual character, which is applied to the server and comprises the following components:
The second receiving unit is used for receiving a role locking request sent by a first terminal, wherein the first terminal is a terminal for controlling a game account corresponding to the virtual role;
The first generating unit is configured to generate first response information and a role locking instruction respectively based on the target role information carried in the role locking request, where the role locking instruction is used to instruct a second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with a camping virtual role, and the camping virtual role is: the virtual role is the same as the master virtual role in camping;
A third sending unit, configured to return the first response information to the first terminal, and send the role locking instruction to a second terminal;
A third receiving unit, configured to generate second response information based on the target role information carried in the role locking acknowledgement request when receiving the role locking acknowledgement request sent by the second terminal;
And the fourth sending unit is used for returning the second response information to the second terminal.
In some embodiments, the apparatus further comprises:
the second acquisition unit is used for acquiring the role information of the master control virtual role;
And the second generation unit is used for generating a role locking instruction based on the role information of the master virtual role and the target role information.
Correspondingly, the embodiment of the application also provides computer equipment, which comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the computer program realizes any step of a virtual character locking method when being executed by the processor.
Correspondingly, the embodiment of the application also provides a storage medium, and the storage medium stores a computer program, and the computer program realizes any step of the locking method of the virtual character when being executed by a processor.
The embodiment of the application provides a locking method, a device, computer equipment and a storage medium of a virtual character, which are particularly used for displaying a game interface, wherein the game interface is used for displaying a virtual scene and a plurality of virtual characters positioned in the virtual scene, and is used for controlling the virtual character; when a role selection instruction is detected, determining a target virtual role according to the role selection instruction, wherein the target virtual role is as follows: the virtual role is a virtual role of hostile camping with the master virtual role; then, acquiring target role information of the target virtual role; then, a role locking request is sent to a server based on the target role information, so that the server returns first response information to the first terminal based on the role locking request, and a role locking instruction is sent to a second terminal through the server, wherein the role locking instruction is generated based on the target role information, the role locking instruction is used for indicating the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal of a game account corresponding to a co-camping virtual role, and the co-camping virtual role is: and the virtual role is the virtual role of the same camping as the master virtual role. According to the embodiment of the application, the locking operation of the master control virtual role on the target virtual role is sent to other virtual roles in the same camp, so that the virtual roles in the same camp and the master control virtual role can be used for quickly determining the same target virtual role; when the enemy of fire collecting attack is realized in the game, the operation steps of locking the same target virtual character with the virtual character in the same array can be simplified, the operation efficiency is improved, the game playing method is richer, and the game interestingness is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a virtual character locking system according to an embodiment of the present application.
Fig. 2 is a flow chart of a method for locking a virtual character according to an embodiment of the present application.
Fig. 3 is an application scenario schematic diagram of a virtual character locking method according to an embodiment of the present application.
Fig. 4 is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 5 is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 6 is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 7 is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 8 is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 9 is another flow chart of a method for locking a virtual character according to an embodiment of the present application.
Fig. 10 is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 11a is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 11b is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 12a is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 12b is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 13 is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 14 is another flow chart of a method for locking a virtual character according to an embodiment of the present application.
Fig. 15 is another flow chart of a method for locking a virtual character according to an embodiment of the present application.
Fig. 16a is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 16b is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 16c is a schematic diagram of another application scenario of the virtual character locking method according to the embodiment of the present application.
Fig. 17 is a schematic structural view of a locking device for virtual characters according to an embodiment of the present application.
Fig. 18 is a schematic diagram of another structure of a locking device for a virtual character according to an embodiment of the present application.
Fig. 19 is a schematic view of another structure of a locking device for a virtual character according to an embodiment of the present application.
Fig. 20 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a method and a device for locking a virtual character, computer equipment and a storage medium. Specifically, the method for locking the virtual character according to the embodiment of the present application may be executed by a computer device, where the computer device may be a device such as a terminal or a server. The terminal may be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a Personal computer (PC, personal Computer), a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), and the like, and the terminal may further include a client, which may be a game application client, a browser client carrying a game program, or an instant messaging client, and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
For example, when the locking method of the virtual character is run on the terminal, the terminal device stores a game application and is used to present a virtual scene in a game screen. The terminal device is used for interacting with a user through a graphical user interface, for example, the terminal device downloads and installs a game application program and runs the game application program. The way in which the terminal device presents the graphical user interface to the user may include a variety of ways, for example, the graphical user interface may be rendered for display on a display screen of the terminal device, or presented by holographic projection. For example, the terminal device may include a touch display screen for presenting a graphical user interface including game screens and receiving operation instructions generated by a user acting on the graphical user interface, and a processor for running the game, generating the graphical user interface, responding to the operation instructions, and controlling the display of the graphical user interface on the touch display screen.
For example, when the locking method of the virtual character is run on a server, it may be a cloud game. Cloud gaming refers to a game style based on cloud computing. In the running mode of the cloud game, a running main body of the game application program and a game picture presentation main body are separated, and the storage and the running of the sound processing method are completed on a cloud game server. The game image presentation is completed at a cloud game client, which is mainly used for receiving and sending game data and presenting game images, for example, the cloud game client may be a display device with a data transmission function, such as a mobile terminal, a television, a computer, a palm computer, a personal digital assistant, etc., near a user side, but the terminal device for processing game data is a cloud game server in the cloud. When playing the game, the user operates the cloud game client to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, codes and compresses data such as game pictures and the like, returns the data to the cloud game client through a network, and finally decodes the data through the cloud game client and outputs the game pictures.
Referring to fig. 1, fig. 1 is a schematic view of a virtual character locking system according to an embodiment of the present application. The system may include at least one terminal, at least one server, at least one database, and a network. The terminal held by the user can be connected to the server of different games through the network. A terminal is any device having computing hardware capable of supporting and executing a software product corresponding to a game. In addition, the terminal has one or more multi-touch-sensitive screens for sensing and obtaining inputs of a user through touch or slide operations performed at a plurality of points of the one or more touch-sensitive display screens. In addition, when the system includes a plurality of terminals, a plurality of servers, and a plurality of networks, different terminals may be connected to each other through different networks, through different servers. The network may be a wireless network or a wired network, such as a Wireless Local Area Network (WLAN), a Local Area Network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, the different terminals may be connected to other terminals or to a server or the like using their own bluetooth network or hotspot network. For example, multiple users may be online through different terminals to connect and synchronize with each other through an appropriate network to support multiplayer games. In addition, the system may include multiple databases coupled to different servers and information related to the gaming environment may be continuously stored in the databases as different users play multiplayer games online.
The embodiment of the application provides a method for locking a virtual character, which can be executed by a terminal or a server. The embodiment of the application is described by taking the locking method of the virtual character as an example executed by the terminal. The terminal comprises a touch display screen and a processor, wherein the touch display screen is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface. When a user operates the graphical user interface through the touch display screen, the graphical user interface can control the local content of the terminal by responding to the received operation instruction, and can also control the content of the opposite-end server by responding to the received operation instruction. For example, the user-generated operational instructions for the graphical user interface include instructions for launching the gaming application, and the processor is configured to launch the gaming application after receiving the user-provided instructions for launching the gaming application. Further, the processor is configured to render and draw a graphical user interface associated with the game on the touch-sensitive display screen. A touch display screen is a multi-touch-sensitive screen capable of sensing touch or slide operations performed simultaneously by a plurality of points on the screen. The user performs touch operation on the graphical user interface by using a finger, and when the graphical user interface detects the touch operation, the graphical user interface controls different virtual objects in the graphical user interface of the game to perform actions corresponding to the touch operation. For example, the game may be any one of a leisure game, an action game, a role playing game, a strategy game, a sports game, a educational game, and the like. Wherein the game may comprise a virtual scene of the game drawn on a graphical user interface. Further, one or more virtual objects, such as virtual characters, controlled by a user (or player) may be included in the virtual scene of the game. In addition, one or more obstacles, such as rails, ravines, walls, etc., may also be included in the virtual scene of the game to limit movement of the virtual object, e.g., to limit movement of the one or more objects to a particular area within the virtual scene. Optionally, the virtual scene of the game also includes one or more elements, such as skills, scores, character health status, energy, etc., to provide assistance to the player, provide virtual services, increase scores related to the player's performance, etc. In addition, the graphical user interface may also present one or more indicators to provide indication information to the player. For example, a game may include a player controlled virtual object and one or more other virtual objects (such as enemy characters). In one embodiment, one or more other virtual objects are controlled by other players of the game. For example, one or more other virtual objects may be computer controlled, such as a robot using an Artificial Intelligence (AI) algorithm, implementing a human-machine engagement mode. For example, virtual objects possess various skills or capabilities that a game player uses to achieve a goal. For example, the virtual object may possess one or more weapons, props, tools, etc. that may be used to eliminate other objects from the game. Such skills or capabilities may be activated by the player of the game using one of a plurality of preset touch operations with the touch display screen of the terminal. The processor may be configured to present a corresponding game screen in response to an operation instruction generated by a touch operation of the user.
It should be noted that, the schematic view of the scenario of the virtual character locking system shown in fig. 1 is only an example, and the virtual character locking system and scenario described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application, and those skilled in the art can know that the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
Based on the above-mentioned problems, the embodiments of the present application provide a method, an apparatus, a computer device and a storage medium for locking a virtual character, which are described in detail below. The following description of the embodiments is not intended to limit the preferred embodiments.
The embodiment of the application provides a method for locking a virtual character, which can be executed by a terminal or a server.
Referring to fig. 2, fig. 2 is a flow chart of a method for locking a virtual character, which is provided in an embodiment of the present application, and the method for locking a virtual character is applied to a first terminal, where the first terminal is a terminal that hosts a game account corresponding to the virtual character, and the specific flow may be as follows steps 101 to 103:
101. And displaying a game interface, wherein the game interface is used for displaying a virtual scene and a plurality of virtual roles in the virtual scene, and the game interface is a game interface for controlling the virtual roles.
In the embodiment of the application, the game interface is displayed with a virtual scene, and the virtual scene is a virtual environment displayed (or provided) when an application program runs on the terminal. The virtual environment can be a simulation environment for the real world, a semi-simulation and semi-fictional three-dimensional environment, or a pure fictional three-dimensional environment. The virtual environment is used for virtual environment combat between at least two virtual characters, and virtual resources available for the at least two virtual characters are provided in the virtual environment. The method comprises the steps that a virtual scene is displayed in a game interface, one or more virtual characters are displayed in the virtual scene, and the virtual characters can be a master virtual character, can be a same-camp virtual character which camps with the master virtual character, and can also be an hostile-camp virtual character which hostile with the master virtual character, wherein the same-camp virtual character is a virtual character which camps the same as the master virtual character; the hostile virtual character is a virtual character that is not co-operating with the master virtual character. Master virtual characters, co-camping virtual characters, and hostile camping virtual characters may coexist in a virtual scene, which is illustrated herein and not by way of limitation.
For example, referring to fig. 3, a virtual scene is displayed in the game interface, in which a plurality of virtual characters are displayed, the virtual characters may include a master virtual character, a co-camp virtual character, and a hostile virtual character, in which the master virtual character, the co-camp virtual character, and the hostile virtual character coexist.
A virtual character (or hero) refers to a movable object in a virtual environment. A virtual character refers to a virtual object in a game that a user or player controls through a terminal. In the embodiment of the application, the main control virtual character refers to a virtual object in a game controlled by a current user through a terminal, namely, a virtual character controlled by a local end user. The virtual character that camps with the master virtual character or the hostile virtual character that hostile with the master virtual character refers to: other users control virtual objects in the game through terminals, namely virtual roles controlled by other end users.
102. When a role selection instruction is detected, determining a target virtual role according to the role selection instruction, wherein the target virtual role is as follows: the virtual role is a virtual role of hostile camping with the master virtual role.
Specifically, the first terminal may respond to a touch operation for a virtual character in the virtual scene, generate a character selection instruction based on the touch operation, and then determine, according to the character selection instruction, that the virtual character for which the touch operation is directed is a target virtual character.
It should be noted that, the touch operation in the embodiment of the present application may be an operation performed by a user on the game interface through the touch display screen, for example, a touch operation generated by the user clicking or touching the game interface with a finger. The user may also click on the game interface to generate a touch operation by controlling a mouse button, for example, the user clicks on the game interface by pressing a right mouse button to generate a touch operation.
In a specific embodiment, the step of determining the target virtual character according to the character selection instruction when the character selection instruction is detected, the method includes:
Responding to a first touch operation of a user on a game interface, and displaying an aiming mark on the game interface;
And responding to a second touch operation of the user on the game interface, so that the aiming mark is displayed in the display range of the virtual character in the virtual scene, generating a character selection instruction, and determining the virtual character as a target virtual character according to the character selection instruction.
For example, referring to fig. 4, when the user clicks any position in the game interface through the middle mouse button, that is, the clicking operation of the middle mouse button is the first touch operation, the first terminal responds to the first touch operation of the user on the game interface, and displays an aiming mark on the game interface. At this time, the user can drive the aiming mark to move on the game interface at will by controlling the movement of the mouse, when the user controls the aiming mark to stay in the display range of the virtual character in the virtual scene for displaying, and the virtual character is clicked by the right button of the mouse, namely the clicking operation of the right button of the mouse is the second touch operation, the first terminal responds to the second touch operation of the user on the game interface to generate a character selection instruction, and then the virtual character is determined to be a target virtual character according to the character selection instruction.
In another specific embodiment, the step of determining the target virtual character according to the character selection instruction when the character selection instruction is detected, the method includes:
when the main control virtual character is detected to be in a defeated state, determining candidate virtual characters defeating the main control virtual character, and generating a character selection instruction;
And determining a target virtual role from the candidate virtual roles in response to the role selection instruction.
For example, referring to fig. 5, when the first terminal detects that the master virtual character is knocked down by the hostile virtual character, that is, the master virtual character is in a knocked down state, at this time, the hostile virtual character that knocks down the master virtual character is determined to be a candidate virtual character, and a character selection instruction is generated. And the first terminal responds to the role selection instruction, and when the number of candidate virtual roles for defeating the main control virtual role is determined to be one, the candidate virtual role is determined to be a target virtual role, an aiming mark is displayed on the game interface, and the aiming mark is displayed on the target virtual role in a superposition manner.
Specifically, the step of determining a target virtual character from candidate virtual characters in response to a character selection instruction includes:
If the number of the candidate virtual roles is a plurality of, determining an attack value of each candidate virtual role in the plurality of candidate virtual roles, wherein the attack value is: the candidate virtual roles enable the master virtual role to correspond to the reduced value of the life value;
and determining the target virtual character from the plurality of candidate virtual characters according to the attack values of the candidate virtual characters.
For example, referring to fig. 6, when the first terminal detects that the master virtual character is knocked down by the hostile virtual character, that is, the master virtual character is in a knocked down state, at this time, the hostile virtual character that knocks down the master virtual character is determined to be a candidate virtual character, and a character selection instruction is generated. And the first terminal responds to the role selection instruction, and acquires the attack value of each candidate virtual role in the candidate virtual roles when the number of the candidate virtual roles for defeating the main control virtual role is determined to be a plurality of. The first terminal may determine, from among the plurality of candidate virtual characters, a candidate virtual character having a highest attack value on the master virtual character, specifically, a life value of the master virtual character is 100, when the master virtual character is knocked out, an attack value of the hostile virtual character a on the master virtual character is 80, and an attack value of the hostile virtual character B on the master virtual character is 20, determine that the candidate virtual character having the highest attack value on the master virtual character is hostile virtual character a, then determine the candidate virtual character (hostile virtual character a) having the highest attack value as a target virtual character, display an aiming identifier on the game interface, and superimposedly display the aiming identifier on the hostile virtual character a.
Optionally, the step of determining the target virtual character from the candidate virtual characters in response to the character selection instruction, the method includes:
If the number of candidate virtual characters is a plurality of, determining a target virtual character from the plurality of candidate virtual characters based on the character class of the master virtual character and the character class of the candidate virtual character.
For example, when the first terminal detects that the master virtual character is defeated by the hostile virtual character, that is, the master virtual character is in a defeated state, at this time, the hostile virtual character defeating the master virtual character is determined to be a candidate virtual character, and a character selection instruction is generated. And the first terminal responds to the role selection instruction, and acquires the role category of the master virtual role and the role category of each candidate virtual role in the plurality of candidate virtual roles when the number of candidate virtual roles for defeating the master virtual role is determined to be a plurality of. The first terminal may determine a candidate virtual character identical to the character class of the master virtual character from among the plurality of candidate virtual characters, and then determine the candidate virtual character identical to the character class of the master virtual character as the target virtual character.
The character class is a class obtained by classifying the virtual character based on its own attribute. For example, character classes can be classified into attack classes and defense classes, the terminals are provided with a life threshold and an attack force threshold, and the common characteristics of the virtual characters in the attack classes are that: all are virtual roles whose life values are below the life threshold and whose offensiveness is above the Yu Gongji force threshold. Whereas the common features of the virtual roles in the defensive category are: all are virtual roles whose life values are above a life threshold and whose offensiveness is below an offensiveness threshold. Or the character categories can be divided into a main attack category and an auxiliary category, and the common characteristics of the virtual characters in the main attack category are as follows: all game skills of the virtual character are attack type skills. And the common feature of the avatars in the auxiliary category is: all skills of the virtual character are of a treatment or defending type, wherein the treatment type of skills can be game skills of recovering a life value of the same or the virtual character, and the defending type of skills can be game skills of resisting attack of the same or the virtual character against the enemy of the virtual character. For illustration only, there are more types of character class classifications, which are not described in detail herein.
In a specific embodiment, after the step of determining the target virtual character according to the character selection instruction, the method may include:
And acquiring target role information of the target virtual role.
Specifically, after determining the target virtual character, the first terminal acquires character information of the target virtual character as target character information. The role information of the virtual role can be a role name corresponding to the virtual role, a role head or a game account nickname associated with the virtual role. Specifically, the name of the character corresponding to the virtual character may be the name of the hero of the game, the avatar corresponding to the virtual character may be an image representing the hero of the game, and the nickname of the game account is a custom name of the user creating the game account in the application program of the game.
103. Sending a role locking request to a server so as to send a role locking instruction to a second terminal through the server, wherein the role locking instruction is used for indicating the second terminal to confirm whether to lock a target virtual role, and the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the role is: and the virtual role is the virtual role of the same camping as the master virtual role.
The method comprises the steps that a first terminal sends a role locking request to a server based on target role information, so that the server returns first response information to the first terminal based on the role locking request, and sends a role locking instruction to a second terminal through the server, wherein the role locking instruction is generated based on the target role information and is used for indicating the second terminal to confirm whether to lock a target virtual role, the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the same role is: and the virtual role is the virtual role of the same camping as the master virtual role.
Specifically, the first terminal may send a first role locking request to the server, so that the server generates first response information based on the target role information carried in the first role locking request, and returns the first response information to the first terminal, and sends a role locking instruction to the second terminal through the server.
In order to improve the accuracy of synchronous locking of the same-camp virtual roles, before the step of sending the role locking request to the server, the method further comprises:
determining the display position of a master virtual character on a game interface;
Generating a target area based on the display position and a preset range rule;
and determining the virtual role to be processed, and taking a terminal of the game account corresponding to the virtual role to be processed as a second terminal, wherein the virtual role to be processed is a virtual role which is positioned in the target area and has the same camping as the master virtual role.
In order to make the user explicitly whether to perform the locking operation on the target virtual character, specifically, after the step of "sending a character locking request to the server", the method may include:
When first response information is received, a locking identifier is displayed on the target virtual character on the game interface in a superposition mode according to the first response information, wherein the first response information is that: and the server returns response information to the first terminal based on the role locking request.
Specifically, when the first terminal receives the first response information, the first terminal generates a locking identifier according to the first response information, and the locking identifier is displayed in a superimposed manner on the target virtual character on the game interface.
For example, referring to fig. 7, when the user clicks any position in the game interface through the middle mouse button, that is, the clicking operation of the middle mouse button is the first touch operation, the first terminal responds to the first touch operation of the user on the game interface, and displays an aiming mark on the game interface. At this time, the user can drive the aiming mark to move on the game interface at will by controlling the movement of the mouse, when the user controls the aiming mark to stay in the display range of the virtual character in the virtual scene for displaying, and the virtual character is clicked by the right button of the mouse, namely the clicking operation of the right button of the mouse is the second touch operation, the first terminal responds to the second touch operation of the user on the game interface to generate a character selection instruction, and then the virtual character is determined to be a target virtual character according to the character selection instruction. When the first terminal receives the first response information, the first terminal generates a locking identifier according to the first response information and displays the locking identifier in a superimposed manner on the target virtual character on the game interface.
For example, referring to fig. 8, when the first terminal detects that the master virtual character is knocked down by the hostile virtual character, that is, the master virtual character is in a knocked down state, at this time, the hostile virtual character that knocks down the master virtual character is determined to be a candidate virtual character, and a character selection instruction is generated. And the first terminal responds to the role selection instruction, and acquires the attack value of each candidate virtual role in the candidate virtual roles when the number of the candidate virtual roles for defeating the main control virtual role is determined to be a plurality of. The first terminal may determine, from among the plurality of candidate virtual characters, a candidate virtual character having a highest attack value on the master virtual character, specifically, a life value of the master virtual character is 100, when the master virtual character is knocked out, an attack value of the hostile virtual character a on the master virtual character is 80, and an attack value of the hostile virtual character B on the master virtual character is 20, determine that the candidate virtual character having the highest attack value on the master virtual character is hostile virtual character a, then determine the candidate virtual character (hostile virtual character a) having the highest attack value as a target virtual character, display an aiming identifier on the game interface, and superimposedly display the aiming identifier on the hostile virtual character a. When the first terminal receives the first response information, the first terminal generates a locking identifier according to the first response information and displays the locking identifier in a superposition manner on the hostile virtual character A on the game interface.
Referring to fig. 9, fig. 9 is a flowchart of another method for locking a virtual character according to an embodiment of the present application, where the method for locking a virtual character is applied to a second terminal, and the second terminal is a terminal corresponding to a game account with a virtual character, and the specific process may be as follows:
201. and receiving a role locking instruction sent by the server, wherein the role locking instruction is generated based on target role information carried in a role locking request sent by the first terminal to the server, and the first terminal is a terminal for controlling a game account corresponding to the virtual role.
Specifically, the second terminal may receive a role locking instruction generated by the server based on the target role information carried in the role locking request, where the role locking instruction is used to query whether the second terminal locks a target virtual role of the master control virtual role, where the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the same camp is: and the virtual role is the virtual role of the same camping as the master virtual role.
202. Based on the role locking instruction, locking request information is displayed in a preset information display area of the game interface, wherein the locking request information is used for indicating: and confirming whether the target virtual role corresponding to the target role information is locked or not.
In this embodiment, when the second terminal receives the role locking instruction sent by the server, the second terminal may display locking request information in a preset information display area of the game interface of the second terminal based on the role locking instruction, so as to inquire whether a user who controls the second terminal locks a target virtual role corresponding to the target role information.
For example, referring to fig. 10, when the second terminal receives a character lock instruction transmitted from the server, the second terminal may display lock request information, which may be "apply for locking enemy, agree" in a preset information presentation area of a game interface of the second terminal, based on the character lock instruction.
For example, referring to fig. 11a, when the second terminal receives a character locking instruction sent by the server, the second terminal may display locking request information in a preset information display area of a game interface of the second terminal, where the locking request information may be "apply for locking enemies, whether to agree" and two controls are generated below the locking request information, one is "yes" and one is "no".
Optionally, the role locking instruction received by the second terminal may be generated by the first terminal by acquiring role information of the master virtual role, and then based on the role information of the master virtual role and the target role information. When the second terminal receives the role locking instruction sent by the server, the second terminal can display locking request information in a preset information display area of a game interface of the second terminal based on the role information of the master virtual role and the target role information. For example, referring to fig. 11B, when the second terminal receives a character locking instruction sent by the server, the second terminal may display locking request information in a preset information display area of a game interface of the second terminal based on character information (teammate a) of a master virtual character and target character information (enemy B), where the locking request information may be "teammate a applies for locking enemy B, whether to agree" to query whether a user who handles the second terminal locks a target virtual character corresponding to the target character information; and two controls are generated below the lock request message, one being "yes" and one being "no".
203. When a lock confirm operation in response to the lock request information is detected, a character lock confirm request is transmitted to the server.
It should be noted that, the lock confirmation operation in the embodiment of the present application may be a touch operation, specifically, the user may operate the game interface through a touch display screen, for example, the user uses a finger to click or touch the game interface to generate a touch operation. The user may also click on the game interface to generate a touch operation by controlling a mouse button, for example, the user clicks on the game interface by pressing a right mouse button to generate a touch operation.
For example, when the second terminal receives the character locking instruction sent by the server, the second terminal may display locking request information in a preset information display area of the game interface of the second terminal based on the character locking instruction, where the locking request information may be "apply for locking enemies, whether to agree or not". When the user clicks on the game interface by pressing the right button of the mouse to generate touch operation, namely the touch operation is a locking confirmation operation, the second terminal sends a role locking confirmation request to the server.
For example, when the second terminal receives the character locking instruction sent by the server, the second terminal may display, based on the character locking instruction, locking request information in a preset information display area of a game interface of the second terminal, where the locking request information may be "apply for locking enemies, whether to agree" and two controls are generated below the locking request information, one is "yes" and one is "no". When the user clicks yes on the game interface by pressing the left mouse button, namely the touch operation is a locking confirmation operation, the second terminal sends a role locking confirmation request to the server. When the user clicks no on the game interface by pressing the left mouse button, that is, the touch operation is a lock cancel operation, the second terminal no longer transmits a character lock confirm request to the server.
In addition, the lock confirmation operation in the embodiment of the present application may be a default operation. For example, it may specifically be: the lock request message may be "apply for lock enemy, agree or not," and two controls are generated below the lock request message, one is "yes" and one is "no". The locking request information has a preset display time (for example, in 5 seconds), the preset display time is displayed near the locking request information, and if the locking request information is in the display process of the preset information display area of the game interface of the second terminal, the user does not have any touch operation on the game interface, the second terminal defaults to determine to receive locking, so that a role locking confirmation request is sent to the server.
204. And when second response information generated by the server based on the target character information carried in the character locking confirmation request is received, the locking identification is displayed on the target virtual character on the game interface in a superposition mode according to the second response information.
In order to make the user clearly determine whether to perform locking operation on the target virtual character, when the second terminal receives second response information generated by the server based on the target character information carried in the character locking confirmation request, the second terminal generates a locking identifier according to the second response information, and the locking identifier is displayed in a superimposed manner on the target virtual character on the game interface of the second terminal.
For example, when the second terminal receives the character locking instruction sent by the server, the second terminal may display, based on the character locking instruction, locking request information in a preset information display area of a game interface of the second terminal, where the locking request information may be "apply for locking enemies, whether to agree" and two controls are generated below the locking request information, one is "yes" and one is "no". Referring to fig. 12a, when the user clicks "yes" on the game interface by pressing the left mouse button, that is, the touch operation is a lock confirm operation, the second terminal sends a character lock confirm request to the server, and the display of the lock request information is canceled on the game interface. When the second terminal receives second response information generated by the server based on the target role information carried in the role locking confirmation request, the second terminal generates a locking identifier according to the second response information, and the locking identifier is displayed in a superimposed mode on the target virtual role on the game interface of the second terminal. Referring to fig. 12b, when the user clicks "no" on the game interface by pressing the left mouse button, that is, the touch operation is a lock cancel operation, the second terminal no longer transmits a character lock confirm request to the server, and the display of the lock request information is canceled on the game interface.
Still alternatively, referring to fig. 13, the lock request message may be "apply for locking enemy, agree or not", and two controls are generated under the lock request message, one is "yes" and one is "no", the lock request message has a preset display time (for example, in 5 seconds), and a countdown of the preset display time is displayed near the lock request message. If the locking request information is displayed in a preset information display area of a game interface of the second terminal, the user does not have any touch operation on the game interface, the second terminal defaults to confirm receiving locking, so that a role locking confirmation request is sent to the server, and the display of the locking request information is canceled on the game interface. When the second terminal receives second response information generated by the server based on the target role information carried in the role locking confirmation request, the second terminal generates a locking identifier according to the second response information, and the locking identifier is displayed in a superimposed mode on the target virtual role on the game interface of the second terminal.
The embodiment of the application provides another virtual character locking method which can be executed by a terminal or a server, and the embodiment of the application is described by taking the virtual character locking method executed by the server as an example.
Referring to fig. 14, fig. 14 is a flowchart of another method for locking a virtual character according to an embodiment of the present application, where the method for locking a virtual character is applied to a server, and the specific flow may be as follows:
301. and receiving a role locking request sent by a first terminal, wherein the first terminal is a terminal for controlling a game account corresponding to the virtual role.
302. Generating first response information and a role locking instruction respectively based on target role information carried in a role locking request, wherein the role locking instruction is used for indicating a second terminal to confirm whether to lock a target virtual role, the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the role is: and the virtual role is the virtual role of the same camping as the master virtual role.
In order for a user to determine the source of a role locking request, the step of generating a role locking instruction based on target role information carried in the role locking request includes:
acquiring role information of a master virtual role;
And generating a role locking instruction based on the role information of the master virtual role and the target role information.
For example, the role locking request carries target role information and role information of a master virtual role, and when the server receives the role locking request, the target role information carried in the role locking request and the role information of the master virtual role are obtained; then, a character lock instruction is generated based on the character information of the master virtual character and the target character information.
303. And returning the first response information to the first terminal and sending a role locking instruction to the second terminal.
304. And when a role locking confirmation request sent by the second terminal is received, generating second response information based on the target role information carried in the role locking confirmation request.
305. And returning second response information to the second terminal.
Wherein the second response information indicates: and the second terminal generates a locking identifier according to the second response information, and displays the locking identifier in a superimposed manner on the target virtual character on the game interface of the second terminal.
In accordance with the above description, the method of locking the virtual character of the present application will be further described by way of example. Referring to fig. 15, fig. 15 is a flow chart of another virtual character locking method according to an embodiment of the present application, and taking interaction between a server and a terminal as an example, a specific flow may be as follows:
401. And displaying a game interface.
The game interface is used for displaying a virtual scene and a plurality of virtual characters in the virtual scene, and is a game interface for controlling the virtual characters.
402. And when the role selection instruction is detected, determining a target virtual role according to the role selection instruction.
Specifically, the target virtual character is a virtual character that is hostile to the master virtual character. The first terminal can respond to the touch operation for the virtual characters in the virtual scene, generate a character selection instruction based on the touch operation, and then determine the virtual characters aimed by the touch operation as target virtual characters according to the character selection instruction.
It should be noted that, the touch operation in the embodiment of the present application may be an operation performed by a user on the game interface through the touch display screen, for example, a touch operation generated by the user clicking or touching the game interface with a finger. The user may also click on the game interface to generate a touch operation by controlling a mouse button, for example, the user clicks on the game interface by pressing a right mouse button to generate a touch operation. Specific embodiments are exemplified in the embodiment of the first terminal, and are not described herein.
403. And acquiring target role information of the target virtual role.
Specifically, after determining the target virtual character, the first terminal acquires character information of the target virtual character as target character information. The role information of the virtual role can be a role name corresponding to the virtual role, a role head or a game account nickname associated with the virtual role. Specifically, the name of the character corresponding to the virtual character may be the name of the hero of the game, the avatar corresponding to the virtual character may be an image representing the hero of the game, and the nickname of the game account is a custom name of the user creating the game account in the application program of the game.
404. And sending a role locking request to the server based on the target role information.
Specifically, the first terminal may send a first role locking request to the server, so that the server generates first response information based on the target role information carried in the first role locking request, and returns the first response information to the first terminal, and sends a role locking instruction to the second terminal through the server.
405. And receiving a role locking request sent by the first terminal.
406. And generating first response information and a role locking instruction respectively based on the target role information carried in the role locking request.
Specifically, the server generates first response information and a role locking instruction based on target role information carried in the role locking request, wherein the first terminal is a terminal for controlling a game account corresponding to the virtual role, the role locking instruction is used for indicating a second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to the game account with the virtual role, and the virtual role with the role is: and the virtual role is the virtual role of the same camping as the master virtual role.
After generating the first response information and the role locking instruction, the server executes steps 407A and 407A, respectively, where the specific flow is as follows:
The first flow is as follows:
407A, returning the first response information to the first terminal.
407B, when the first response information is received, displaying the locking identification in a superposition manner on the target virtual character on the game interface according to the first response information.
In order to make the user clearly determine whether to lock the target virtual character, when the first terminal receives the first response information, the first terminal generates a locking identifier according to the first response information, and displays the locking identifier in a superimposed manner on the target virtual character on the game interface.
The second flow is as follows:
407a, sending a role locking instruction to the second terminal.
407B, receiving the role locking instruction sent by the server.
Specifically, the second terminal may receive a role locking instruction generated by the server based on the target role information carried in the role locking request, where the role locking instruction is used to query whether the second terminal locks a target virtual role of the master control virtual role, where the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the same camp is: and the virtual role is the virtual role of the same camping as the master virtual role.
407C, displaying the locking request information in a preset information display area of the game interface based on the role locking instruction.
In this embodiment, when the second terminal receives the role locking instruction sent by the server, the second terminal may display locking request information in a preset information display area of the game interface of the second terminal based on the role locking instruction, so as to inquire whether a user who controls the second terminal locks a target virtual role corresponding to the target role information.
For example, referring to fig. 10, when the second terminal receives a character lock instruction transmitted from the server, the second terminal may display lock request information, which may be "apply for locking enemy, agree" in a preset information presentation area of a game interface of the second terminal, based on the character lock instruction.
For example, referring to fig. 11a, when the second terminal receives a character locking instruction sent by the server, the second terminal may display locking request information in a preset information display area of a game interface of the second terminal, where the locking request information may be "apply for locking enemies, whether to agree" and two controls are generated below the locking request information, one is "yes" and one is "no".
407D, transmitting a character lock confirm request to the server when a lock confirm operation in response to the lock request information is detected.
It should be noted that, the lock confirmation operation in the embodiment of the present application may be a touch operation, specifically, the user may operate the game interface through a touch display screen, for example, the user uses a finger to click or touch the game interface to generate a touch operation. The user may also click on the game interface to generate a touch operation by controlling a mouse button, for example, the user clicks on the game interface by pressing a right mouse button to generate a touch operation.
407E, when a role locking confirmation request sent by the second terminal is received, generating second response information based on the target role information carried in the role locking confirmation request.
407F, returning second response information to the second terminal.
Wherein the second response information indicates: and the second terminal generates a locking identifier according to the second response information, and displays the locking identifier in a superimposed manner on the target virtual character on the game interface of the second terminal.
407G, when second response information generated by the server based on the target character information carried in the character locking confirmation request is received, displaying the locking identification in a superposition manner on the target virtual character on the game interface according to the second response information.
In order to make the user clearly determine whether to perform locking operation on the target virtual character, when the second terminal receives second response information generated by the server based on the target character information carried in the character locking confirmation request, the second terminal generates a locking identifier according to the second response information, and the locking identifier is displayed in a superimposed manner on the target virtual character on the game interface of the second terminal.
In summary, the embodiment of the application provides a method for locking a virtual character, which comprises displaying a game interface; when a role selection instruction is detected, determining a target virtual role according to the role selection instruction; acquiring target role information of a target virtual role; then, a role locking request is sent to a server based on the target role information, so that the server returns first response information to the first terminal based on the role locking request, and a role locking instruction is sent to the second terminal through the server; and when the first response information is received, the locking identification is displayed on the target virtual character on the game interface in a superposition mode according to the first response information. According to the embodiment of the application, the locking operation of the master control virtual role on the target virtual role is sent to other virtual roles in the same camp, so that the virtual roles in the same camp and the master control virtual role can be used for quickly determining the same target virtual role; when the enemy of fire collecting attack is realized in the game, the operation steps of locking the same target virtual character with the virtual character in the same array can be simplified, the operation efficiency is improved, the game playing method is richer, and the game interestingness is improved.
In accordance with the above description, the method of locking the virtual character of the present application will be further described by way of example. Specific examples of this scenario are as follows:
(1) When a user logs in a game at a first terminal (computer end), the computer equipment can enter a game play by controlling a master control virtual character, the game play also comprises a plurality of virtual characters except the master control virtual character, the plurality of virtual characters are divided into different camps in the game, and one camping can be composed of three virtual characters. Wherein, two virtual roles and a master virtual role are same-lineup virtual roles, and other virtual roles and master virtual roles are hostile lineup virtual roles. As shown in fig. 16a, at this time, a virtual scene is displayed in the current game interface, and a master virtual character, a co-camping virtual character co-camping with the master virtual character, and a hostile virtual character a and a hostile virtual character B may be displayed in the virtual scene.
(2) Referring to fig. 16b, when the first terminal detects that a user clicks at any position of the game interface by pressing a key in the mouse, the computer device may generate a lock initiation instruction based on the mouse click operation triggered by the user, and display the aiming identifier on the game interface in response to the lock initiation instruction. The user can control the movement of the mouse, so that the aiming mark moves in the game interface correspondingly to the control of the movement of the mouse, and the aiming mark responds to the movement of the mouse. At this time, the user moves the aiming mark to the hostile virtual character to be locked, for example, aims at the hostile virtual character a, and the user overlaps the aiming mark with the selected hostile virtual character a, and then the user can click the right button of the mouse to perform a click operation. When the first terminal detects that a user presses a right button of a mouse to perform clicking operation, the hostile virtual character overlapped with the aiming mark is taken as a target virtual character, and target character information of the hostile virtual character A is obtained.
(3) After the first terminal obtains the target role information, the first terminal can send a role locking request to the server, the server receives the role locking request, the server can respectively generate first response information and a role locking instruction based on the target role information carried in the role locking request, the server returns the first response information to the first terminal, and the server sends the role locking instruction to the second terminal.
(4) When the first terminal which is used for controlling the virtual roles receives the role locking instruction, the locking identification can be displayed on the hostile virtual role A in a superposition mode in response to the role locking instruction. Meanwhile, referring to fig. 16c, the second terminal receives the role locking command sent by the server, and the second terminal may display, in a preset information display area of the game interface, locking request information based on the role locking command, where the locking request information may be "apply for locking the hostile virtual role a, and agree or not". When a response to a lock confirmation operation for the lock request information is detected, for example, when a user using the second terminal performs a click operation by pressing a left mouse button by manipulating a mouse, a character lock confirmation request is sent to the server, and when the server receives the character lock confirmation request sent by the second terminal, second response information is generated based on target character information carried in the character lock confirmation request and the second response information is returned to the second terminal. And when the second terminal receives second response information generated by the server based on the target role information carried in the role locking confirmation request, the locking identification is displayed on the hostile virtual role A in a superposition mode.
In order to facilitate better implementation of the method for locking the virtual roles provided by the embodiment of the application, the embodiment of the application also provides a device for locking the virtual roles based on the method. Where the meaning of nouns is the same as in the above-described method of locking virtual characters, specific implementation details may be referred to the description in the method embodiments.
Referring to fig. 17, fig. 17 is a block diagram of a locking device for a virtual character according to an embodiment of the present application, where the locking device for a virtual character is applied to a first terminal, and the device includes:
A first display unit 501, configured to display a game interface, where the game interface is configured to display a virtual scene and a plurality of virtual characters located in the virtual scene, and the game interface is a game interface for hosting the virtual characters;
A first determining unit 502, configured to determine, when a role selection instruction is detected, a target virtual role according to the role selection instruction, where the target virtual role is: the virtual role is a virtual role of hostile camping with the master virtual role;
A first sending unit 503, configured to send a role locking request to a server, so that a role locking instruction is sent to a second terminal through the server, where the role locking instruction is used to instruct the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with a camping virtual role, and the camping virtual role is: and the virtual role is the virtual role of the same camping as the master virtual role.
In some embodiments, the apparatus further comprises:
The second display unit is used for displaying a locking identifier in a superposition manner on the target virtual character on the game interface according to the first response information when the first response information is received, wherein the first response information is that: and the server returns response information to the first terminal based on the role locking request.
In some embodiments, the apparatus further comprises:
a first acquisition unit configured to acquire target character information of the target virtual character;
In some embodiments, the apparatus further comprises:
The first response unit is used for responding to a first touch operation of a user on the game interface and displaying an aiming mark on the game interface;
And the second response unit is used for responding to a second touch operation of the user on the game interface so as to enable the aiming mark to be displayed in the display range of the virtual role in the virtual scene, generating a role selection instruction, and determining the virtual role as the target virtual role according to the role selection instruction.
In some embodiments, the apparatus further comprises:
the second determining unit is used for determining candidate virtual roles for defeating the master virtual role when the master virtual role is detected to be in a defeated state, and generating a role selection instruction;
and the third response unit is used for determining a target virtual role from the candidate virtual roles in response to the role selection instruction.
In some embodiments, the apparatus further comprises:
A third determining unit, configured to determine an attack value of each candidate virtual character in the plurality of candidate virtual characters if the number of candidate virtual characters is plural, where the attack value is: the candidate virtual roles enable the master virtual role to correspond to the reduced value of the life value;
And a fourth determining unit configured to determine a target virtual character from among the plurality of candidate virtual characters according to the attack values of the candidate virtual characters.
In some embodiments, the apparatus further comprises:
And a fifth determining unit configured to determine, if the number of candidate virtual roles is plural, a target virtual role from among the plural candidate virtual roles based on the role class of the master virtual role and the role class of the candidate virtual role.
In some embodiments, the apparatus further comprises:
a sixth determining unit, configured to determine a display position of the master virtual character on the game interface;
The processing unit is used for generating a target area based on the display position and a preset range rule;
A seventh determining unit, configured to determine a virtual role to be processed, and take a terminal of a game account corresponding to the virtual role to be processed as the second terminal, where the virtual role to be processed is a virtual role that is located in the target area and is in the same camp as the master virtual role.
Referring to fig. 18, fig. 18 is a block diagram of a locking device for a virtual character according to an embodiment of the present application, where the locking device for a virtual character is applied to a second terminal, and the device includes:
A first receiving unit 601, configured to receive a role locking instruction sent by a server, where the role locking instruction is generated based on target role information carried in a role locking request sent by a first terminal to the server, and the first terminal is a terminal that hosts a game account corresponding to a virtual role;
A third display unit 602, configured to display, based on the character locking instruction, locking request information in a preset information display area of a game interface, where the locking request information is used to indicate: confirming whether the target virtual role corresponding to the target role information is locked or not;
a second transmitting unit 603 configured to transmit a character lock confirmation request to the server when a lock confirmation operation in response to the lock request information is detected;
And a fourth display unit 604, configured to, when receiving second response information generated by the server based on the target character information carried in the character lock confirmation request, superimpose and display a lock identifier on the target virtual character on the game interface according to the second response information.
Referring to fig. 19, fig. 19 is a block diagram of a locking device for a virtual character according to an embodiment of the present application, where the locking device for a virtual character is applied to a server, and the device includes:
a second receiving unit 701, configured to receive a role locking request sent by a first terminal, where the first terminal is a terminal that hosts a game account corresponding to a virtual role;
a first generating unit 702, configured to generate first response information and a role locking instruction, respectively, based on the target role information carried in the role locking request, where the role locking instruction is used to instruct a second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with a camping virtual role, and the camping virtual role is: the virtual role is the same as the master virtual role in camping;
A third sending unit 703, configured to return the first response information to the first terminal, and send the role locking instruction to a second terminal;
A third receiving unit 704, configured to generate, when receiving a role locking acknowledgement request sent by the second terminal, second response information based on the target role information carried in the role locking acknowledgement request;
and a fourth sending unit 705, configured to return the second response information to the second terminal.
In some embodiments, the apparatus further comprises:
the second acquisition unit is used for acquiring the role information of the master control virtual role;
And the second generation unit is used for generating a role locking instruction based on the role information of the master virtual role and the target role information.
The embodiment of the application provides a locking device of a virtual character, which is used for displaying a game interface through a first display unit 501, wherein the game interface is used for displaying a virtual scene and a plurality of virtual characters positioned in the virtual scene, and the game interface is a game interface for controlling the virtual characters; when a role selection instruction is detected, the first determining unit 502 determines a target virtual role according to the role selection instruction, where the target virtual role is: the virtual role is a virtual role of hostile camping with the master virtual role; the first sending unit 503 sends a role locking request to a server, so as to send a role locking instruction to a second terminal through the server, where the role locking instruction is used to instruct the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with a camping virtual role, and the camping virtual role is: and the virtual role is the virtual role of the same camping as the master virtual role. According to the embodiment of the application, the locking operation of the master control virtual role on the target virtual role is sent to other virtual roles in the same camp, so that the virtual roles in the same camp and the master control virtual role can be used for quickly determining the same target virtual role; when the enemy of fire collecting attack is realized in the game, the operation steps of locking the same target virtual character with the virtual character in the same array can be simplified, the operation efficiency is improved, the game playing method is richer, and the game interestingness is improved.
Correspondingly, the embodiment of the application also provides a computer device which can be a terminal or a server, wherein the terminal can be a terminal device such as a smart phone, a tablet Personal computer, a notebook computer, a touch screen, a game console, a Personal computer (PC, personal Computer), a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA) and the like. As shown in fig. 20, fig. 20 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 800 includes a processor 801 having one or more processing cores, a memory 802 having one or more computer readable storage media, and a computer program stored on the memory 802 and executable on the processor. The processor 801 is electrically connected to the memory 802. It will be appreciated by those skilled in the art that the computer device structure shown in the figures is not limiting of the computer device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The processor 801 is a control center of the computer device 800, connects various parts of the entire computer device 800 using various interfaces and lines, and performs various functions of the computer device 800 and processes data by running or loading software programs and/or modules stored in the memory 802, and calling data stored in the memory 802, thereby performing overall monitoring of the computer device 800.
In an embodiment of the present application, the processor 801 in the computer device 800 loads instructions corresponding to the processes of one or more application programs into the memory 802 according to the following steps, and the processor 801 executes the application programs stored in the memory 802, thereby implementing various functions:
Displaying a game interface, wherein the game interface is used for displaying a virtual scene and a plurality of virtual characters positioned in the virtual scene, and the game interface is a game interface for controlling the virtual characters;
when a role selection instruction is detected, determining a target virtual role according to the role selection instruction, wherein the target virtual role is as follows: the virtual role is a virtual role of hostile camping with the master virtual role;
Sending a role locking request to a server so as to send a role locking instruction to a second terminal through the server, wherein the role locking instruction is used for indicating the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the same matrix is: and the virtual role is the virtual role of the same camping as the master virtual role.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 20, the computer device 800 further includes: a touch display 803, a radio frequency circuit 804, an audio circuit 805, an input unit 806, and a power supply 807. The processor 801 is electrically connected to the touch display 803, the radio frequency circuit 804, the audio circuit 805, the input unit 806, and the power supply 807, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG. 20 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components.
The touch display 803 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display 803 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 801, and can receive and execute commands sent from the processor 801. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is passed to the processor 801 to determine the type of touch event, and the processor 801 then provides a corresponding visual output on the display panel based on the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display 803 to realize the input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch-sensitive display 803 may also implement an input function as part of the input unit 806.
In an embodiment of the present application, a graphical user interface is generated on touch display 803 by processor 801 executing a gaming application. The touch display 803 is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface.
The radio frequency circuit 804 may be used to transceive radio frequency signals to establish wireless communication with a network device or other computer device via wireless communication.
Audio circuitry 805 may be used to provide an audio interface between a user and a computer device through speakers, microphones, and so on. The audio circuit 805 may transmit the received electrical signal converted from audio data to a speaker, and convert the electrical signal into a sound signal for output by the speaker; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 805 and converted into audio data, which are processed by the audio data output processor 801 for transmission to, for example, another computer device via the radio frequency circuit 804, or which are output to the memory 802 for further processing. The audio circuitry 805 may also include an ear bud jack to provide communication of the peripheral headphones with the computer device.
The input unit 806 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
A power supply 807 is used to power the various components of the computer device 800. Alternatively, the power supply 807 may be logically connected to the processor 801 through a power management system, so that functions of managing charging, discharging, and power consumption management are implemented through the power management system. The power supply 807 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 20, the computer device 800 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which will not be described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the computer device provided in this embodiment displays a game interface, where the game interface is used for displaying a virtual scene and a plurality of virtual characters located in the virtual scene, and the game interface is a game interface for hosting the virtual characters; when a role selection instruction is detected, determining a target virtual role according to the role selection instruction, wherein the target virtual role is as follows: a virtual character which is hostile to the master virtual character; then, acquiring target role information of a target virtual role; then, a role locking request is sent to a server based on target role information, so that the server returns first response information to the first terminal based on the role locking request, and a role locking instruction is sent to a second terminal through the server, wherein the role locking instruction is generated based on the target role information and is used for indicating the second terminal to confirm whether to lock a target virtual role, the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the same role is: and the virtual role is the virtual role of the same camping as the master virtual role. According to the embodiment of the application, the locking operation of the master control virtual role on the target virtual role is sent to other virtual roles in the same camp, so that the virtual roles in the same camp and the master control virtual role can be used for quickly determining the same target virtual role; when the enemy of fire collecting attack is realized in the game, the operation steps of locking the same target virtual character with the virtual character in the same array can be simplified, the operation efficiency is improved, the game playing method is richer, and the game interestingness is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium in which a plurality of computer programs are stored, the computer programs being capable of being loaded by a processor to perform steps in any of the virtual character locking methods provided by the embodiment of the present application. For example, the computer program may perform the steps of:
Displaying a game interface, wherein the game interface is used for displaying a virtual scene and a plurality of virtual characters positioned in the virtual scene, and the game interface is a game interface for controlling the virtual characters;
when a role selection instruction is detected, determining a target virtual role according to the role selection instruction, wherein the target virtual role is as follows: the virtual role is a virtual role of hostile camping with the master virtual role;
Sending a role locking request to a server so as to send a role locking instruction to a second terminal through the server, wherein the role locking instruction is used for indicating the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal corresponding to a game account with the virtual role, and the virtual role with the same matrix is: and the virtual role is the virtual role of the same camping as the master virtual role.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any kind of virtual character locking method provided by the embodiment of the present application can be executed by the computer program stored in the storage medium, so that the beneficial effects that any kind of virtual character locking method provided by the embodiment of the present application can be achieved, and detailed descriptions of the previous embodiments are omitted herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
The above describes in detail a virtual character locking method, device, computer equipment and storage medium provided by the embodiments of the present application, and specific examples are applied to describe the principles and embodiments of the present application, where the description of the above embodiments is only for helping to understand the technical solution and core ideas of the present application; those of ordinary skill in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Claims (15)
1. A locking method of a virtual character, applied to a first terminal, comprising:
Displaying a game interface, wherein the game interface is used for displaying a virtual scene and a plurality of virtual characters positioned in the virtual scene, and the game interface is a game interface for controlling the virtual characters;
when a role selection instruction is detected, determining a target virtual role according to the role selection instruction, wherein the target virtual role is as follows: the virtual role is a virtual role of hostile camping with the master virtual role;
Sending a role locking request to a server, and sending a role locking instruction to a second terminal through the server, so that when the second terminal receives second response information generated by the server based on target role information carried in a role locking confirmation request, the second terminal generates a locking identifier according to the second response information, and the locking identifier is displayed in a superimposed manner on a target virtual role on a game interface of the second terminal;
The role locking instruction is used for indicating the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal of a game account corresponding to the same virtual role, and the same virtual role is: and the virtual role is the virtual role of the same camping as the master virtual role.
2. The method of claim 1, further comprising, after sending the character lock request to the server:
When first response information is received, a locking identifier is displayed on the target virtual character on the game interface in a superposition mode according to the first response information, wherein the first response information is that: and the server returns response information to the first terminal based on the role locking request.
3. The method of claim 2, wherein when a character selection instruction is detected, determining a target virtual character according to the character selection instruction comprises:
responding to a first touch operation of a user on the game interface, and displaying an aiming mark on the game interface;
Responding to a second touch operation of the user on the game interface, so that the aiming mark is displayed in the display range of the virtual role in the virtual scene, generating a role selection instruction, and determining the virtual role as the target virtual role according to the role selection instruction;
And when the first response information is received, displaying a locking identifier in a superposition manner on the target virtual character on the game interface according to the first response information, wherein the method comprises the following steps:
when the first response information is received, a locking identifier is generated according to the first response information;
Updating the aiming identification into a locking identification, and displaying the locking identification in a superposition manner on the target virtual character on the game interface.
4. The method of claim 1, wherein when a role selection instruction is detected, determining a target virtual role according to the role selection instruction comprises:
When the main control virtual character is detected to be in a defeated state, determining candidate virtual characters defeating the main control virtual character, and generating a character selection instruction;
and determining a target virtual role from the candidate virtual roles in response to the role selection instruction.
5. The method of claim 4, wherein determining a target virtual character from the candidate virtual characters in response to the character selection instruction comprises:
if the number of the candidate virtual roles is a plurality of, determining an attack value of each candidate virtual role in the plurality of candidate virtual roles, wherein the attack value is: the candidate virtual roles enable the master virtual role to correspond to the reduced value of the life value;
and determining the target virtual role from the plurality of candidate virtual roles according to the attack values of the candidate virtual roles.
6. The method of claim 4, wherein determining a target virtual character from the candidate virtual characters in response to the character selection instruction comprises:
and if the number of the candidate virtual roles is a plurality of, determining a target virtual role from the plurality of candidate virtual roles based on the role category of the master virtual role and the role category of the candidate virtual role.
7. The method of claim 1, further comprising, prior to sending the character lock request to the server:
determining the display position of the master virtual character on the game interface;
Generating a target area based on the display position and a preset range rule;
And determining a virtual role to be processed, and taking a terminal of a game account corresponding to the virtual role to be processed as the second terminal, wherein the virtual role to be processed is a virtual role which is positioned in the target area and has the same camp as the master control virtual role.
8. A locking method of a virtual character applied to a second terminal, comprising:
Receiving a role locking instruction sent by a server, wherein the role locking instruction is generated based on target role information carried in a role locking request sent by a first terminal to the server, and the first terminal is a terminal for controlling a game account corresponding to a virtual role;
based on the role locking instruction, displaying locking request information in a preset information display area of a game interface, wherein the locking request information is used for indicating: confirming whether the target virtual role corresponding to the target role information is locked or not;
When a lock acknowledge operation responding to the lock request information is detected, a role lock acknowledge request is sent to the server;
And when second response information generated by the server based on the target role information carried in the role locking confirmation request is received, displaying a locking identifier on the target virtual role on the game interface in a superposition mode according to the second response information, and locking the target virtual role.
9. A locking method of a virtual character, applied to a server, comprising:
Receiving a role locking request sent by a first terminal, wherein the first terminal is a terminal for controlling a game account corresponding to a virtual role;
Generating first response information and a role locking instruction respectively based on target role information carried in the role locking request, wherein the role locking instruction is used for indicating a second terminal to confirm whether to lock a target virtual role, the second terminal is a terminal corresponding to a game account with a virtual role, and the virtual role with the same role is: the virtual role is the same as the master virtual role in camping;
Returning the first response information to the first terminal, and sending the role locking instruction to the second terminal so as to display a locking identifier in a superposition manner on a target virtual role on a game interface of the first terminal;
when a role locking confirmation request sent by the second terminal is received, generating second response information based on the target role information carried in the role locking confirmation request;
And returning the second response information to the second terminal so as to display the locking identification in a superposition manner on the target virtual character on the game interface of the second terminal.
10. The method of claim 9, wherein generating a role lock instruction based on the target role information carried in the role lock request comprises:
Acquiring role information of the master virtual role;
And generating a role locking instruction based on the role information of the master virtual role and the target role information.
11. A locking device of a virtual character, applied to a first terminal, comprising:
The first display unit is used for displaying a game interface, wherein the game interface is used for displaying a virtual scene and a plurality of virtual roles in the virtual scene, and the game interface is a game interface for controlling the virtual roles;
the first determining unit is used for determining a target virtual role according to the role selection instruction when the role selection instruction is detected, wherein the target virtual role is as follows: the virtual role is a virtual role of hostile camping with the master virtual role;
A first sending unit, configured to send a role locking request to a server, so that a role locking instruction is sent to a second terminal through the server, so that when the second terminal receives second response information generated by the server based on target role information carried in a role locking confirmation request, the second terminal generates a locking identifier according to the second response information, and the locking identifier is displayed in a superimposed manner on a target virtual role on a game interface of the second terminal; the role locking instruction is used for indicating the second terminal to confirm whether to lock the target virtual role, the second terminal is a terminal of a game account corresponding to the same virtual role, and the same virtual role is: and the virtual role is the virtual role of the same camping as the master virtual role.
12. A locking device of a virtual character applied to a second terminal, comprising:
The first receiving unit is used for receiving a role locking instruction sent by a server, wherein the role locking instruction is generated based on target role information carried in a role locking request sent by a first terminal to the server, and the first terminal is a terminal for controlling a game account corresponding to a virtual role;
A third display unit, configured to display, based on the character locking instruction, locking request information in a preset information display area of a game interface, where the locking request information is used to indicate: confirming whether the target virtual role corresponding to the target role information is locked or not;
a second transmitting unit configured to transmit a character lock confirmation request to the server when a lock confirmation operation in response to the lock request information is detected;
And the fourth display unit is used for superposing and displaying a locking identifier on the target virtual character on the game interface according to the second response information when receiving the second response information generated by the server based on the target character information carried in the character locking confirmation request, and locking the target virtual character.
13. A locking device of a virtual character, applied to a server, comprising:
The second receiving unit is used for receiving a role locking request sent by a first terminal, wherein the first terminal is a terminal for controlling a game account corresponding to the virtual role;
The first generating unit is configured to generate first response information and a role locking instruction respectively based on target role information carried in the role locking request, where the role locking instruction is configured to instruct a second terminal to confirm whether to lock a target virtual role, the second terminal is a terminal corresponding to a game account with a camping virtual role, and the camping virtual role is: the virtual role is the same as the master virtual role in camping;
A third sending unit, configured to return the first response information to the first terminal, and send the role locking instruction to the second terminal, so that a locking identifier is displayed in a superimposed manner on a target virtual role on a game interface of the first terminal;
A third receiving unit, configured to generate second response information based on the target role information carried in the role locking acknowledgement request when receiving the role locking acknowledgement request sent by the second terminal;
And the fourth sending unit is used for returning the second response information to the second terminal so as to display the locking identification in a superposition manner on the target virtual character on the game interface of the second terminal.
14. A computer device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps in the method of locking a virtual character as claimed in any one of claims 1 to 10.
15. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the method of locking a virtual character according to any one of claims 1 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110844750.7A CN113521737B (en) | 2021-07-26 | 2021-07-26 | Virtual character locking method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110844750.7A CN113521737B (en) | 2021-07-26 | 2021-07-26 | Virtual character locking method, device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113521737A CN113521737A (en) | 2021-10-22 |
CN113521737B true CN113521737B (en) | 2024-07-09 |
Family
ID=78088981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110844750.7A Active CN113521737B (en) | 2021-07-26 | 2021-07-26 | Virtual character locking method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113521737B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112402977A (en) * | 2020-11-24 | 2021-02-26 | 网易(杭州)网络有限公司 | Target virtual role locking method and device, processor and electronic device |
CN112691370A (en) * | 2021-01-13 | 2021-04-23 | 腾讯科技(深圳)有限公司 | Method, device, equipment and storage medium for displaying voting result in virtual game |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8152645B2 (en) * | 2008-05-20 | 2012-04-10 | Igt | Remote gaming environment |
CN111672119B (en) * | 2020-06-05 | 2023-03-10 | 腾讯科技(深圳)有限公司 | Method, apparatus, device and medium for aiming virtual object |
CN111888754A (en) * | 2020-08-12 | 2020-11-06 | 淮南市九方皋科技咨询有限公司 | Wolf killing game auxiliary tool |
CN112791406B (en) * | 2021-01-25 | 2024-01-23 | 网易(杭州)网络有限公司 | Target locking method, device and terminal equipment |
-
2021
- 2021-07-26 CN CN202110844750.7A patent/CN113521737B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112402977A (en) * | 2020-11-24 | 2021-02-26 | 网易(杭州)网络有限公司 | Target virtual role locking method and device, processor and electronic device |
CN112691370A (en) * | 2021-01-13 | 2021-04-23 | 腾讯科技(深圳)有限公司 | Method, device, equipment and storage medium for displaying voting result in virtual game |
Also Published As
Publication number | Publication date |
---|---|
CN113521737A (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113101652A (en) | Information display method and device, computer equipment and storage medium | |
CN113398590B (en) | Sound processing method, device, computer equipment and storage medium | |
CN113082688B (en) | Method and device for controlling virtual character in game, storage medium and equipment | |
CN113426124A (en) | Display control method and device in game, storage medium and computer equipment | |
CN113786620A (en) | Game information recommendation method and device, computer equipment and storage medium | |
CN113398566A (en) | Game display control method and device, storage medium and computer equipment | |
CN115970284A (en) | Attack method and device of virtual weapon, storage medium and computer equipment | |
CN113332721B (en) | Game control method, game control device, computer equipment and storage medium | |
CN114159789A (en) | Game interaction method and device, computer equipment and storage medium | |
CN113413600B (en) | Information processing method, information processing device, computer equipment and storage medium | |
CN113521737B (en) | Virtual character locking method, device, computer equipment and storage medium | |
CN114225412A (en) | Information processing method, information processing device, computer equipment and storage medium | |
CN115645912A (en) | Game element display method and device, computer equipment and storage medium | |
CN116139483A (en) | Game function control method, game function control device, storage medium and computer equipment | |
CN113398564B (en) | Virtual character control method, device, storage medium and computer equipment | |
CN116099199A (en) | Game skill processing method, game skill processing device, computer equipment and storage medium | |
CN116943200A (en) | Virtual character control method, device, computer equipment and storage medium | |
CN116999847A (en) | Virtual character control method, device, computer equipment and storage medium | |
CN116139484A (en) | Game function control method, game function control device, storage medium and computer equipment | |
CN118161853A (en) | Game interaction method, game interaction device, computer equipment and computer readable storage medium | |
CN117258290A (en) | Game prompt identification processing method and device, computer equipment and storage medium | |
CN116328301A (en) | Information prompting method, device, computer equipment and storage medium | |
CN117482523A (en) | Game interaction method, game interaction device, computer equipment and computer readable storage medium | |
CN116785723A (en) | Game continuous call processing method, device, computer equipment and storage medium | |
CN117160031A (en) | Game skill processing method, game skill processing device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |