Virtual character selection method and device, electronic device and storage medium

By utilizing the graphical user interface of a terminal device in action role-playing games, and responding to the operation of the selection control, the system selects the first target character and switches to a candidate character if the target character does not meet expectations. This solves the problem of users selecting virtual characters incorrectly and improves selection efficiency and game efficiency.

CN116370960BActive Publication Date: 2026-01-02NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310376538.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2026-01-02
Estimated Expiration
2043-04-10

AI Technical Summary

Technical Problem

In action role-playing games, when a user's virtual character is fighting against multiple enemy virtual characters, it is easy to select the wrong enemy virtual character, which requires frequent reselection and affects game efficiency.

Method used

A graphical user interface is provided through the terminal device. In response to the first operation of the selected control, a first target character is selected. If it does not meet the user's expectations, a second target character is selected from the candidate characters through a second operation. The candidate characters are virtual characters other than the first target character. The target character is determined by calculating the field of view and distance.

Benefits of technology

It reduces the number of times virtual characters need to be selected, improves selection efficiency, avoids frequently reselecting the wrong target character, and enhances the user's ability to fight against multiple hostile virtual characters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116370960B_ABST
    Figure CN116370960B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a virtual character selection method and device, electronic equipment and a storage medium. Embodiments of the present application can provide a graphical user interface through a terminal device, the graphical user interface including a game scene, the game scene at least partially containing other virtual characters, including: in response to a first operation on a selection control, selecting a first target character from the other virtual characters; and in response to a second operation on the selection control, selecting a second target character from candidate characters, wherein the candidate characters are virtual characters other than the first target character among the other virtual characters. In the embodiments of the present application, the first target character can be avoided from being reselected, thereby reducing the number of selections, and thus improving the selection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the computer field, and in particular to a virtual character selection method and device, electronic equipment and a storage medium. BACKGROUND

[0002] In an action role playing game (ARPG) or an action game (Action Game), when a user virtual character selects an enemy virtual character, the user virtual character will automatically turn to the enemy virtual character after releasing a game skill to avoid the game skill being wasted, wherein the user virtual character is a virtual character controlled by a user, and the enemy virtual character has an enemy relationship with the user virtual character. ( Action Game) or an action game (Action Game), when a user virtual character selects an enemy virtual character, the user virtual character will automatically turn to the enemy virtual character after releasing a game skill to avoid the game skill being wasted, wherein the user virtual character is a virtual character controlled by a user, and the enemy virtual character has an enemy relationship with the user virtual character.

[0003] However, when the user virtual character is against multiple enemy virtual characters, if the multiple enemy virtual characters gather together, the user virtual character is easy to select a wrong enemy virtual character, so that the user needs to control the user virtual character to select the enemy virtual character again, but when the user virtual character is controlled to select the enemy virtual character again, the original wrong enemy virtual character is easy to be selected again, which is not conducive to the selection of the enemy virtual character by the user virtual character. SUMMARY

[0004] The embodiments of the present application provide a virtual character selection method, device, electronic equipment and storage medium, which can reduce the selection times and improve the selection efficiency.

[0005] The embodiments of the present application provide a virtual character selection method, which provides a graphical user interface through a terminal device, the graphical user interface includes a game scene, and the game scene at least partially contains other virtual characters, including:

[0006] In response to a first operation on the selection control, a first target character is selected from the other virtual characters;

[0007] In response to a second operation on the selection control, a second target character is selected from the candidate characters, wherein the candidate characters are virtual characters in the other virtual characters except the first target character.

[0008] The embodiments of the present application also provide a virtual character selection device, which provides a graphical user interface through a terminal device, the graphical user interface includes a game scene, and the game scene at least partially contains other virtual characters, including:

[0009] The first selection unit is configured to select a first target character from the other virtual characters in response to a first operation on the selection control;

[0010] The second selected unit is configured to select a second target role from the candidate roles in response to a second operation on the selected control, wherein the candidate roles are virtual roles other than the first target role among the other virtual roles.

[0011] The electronic device provided in the embodiments of the present application includes a memory storing a plurality of instructions, and a processor loading the instructions from the memory to perform the steps in any of the virtual role selection methods provided in the embodiments of the present application.

[0012] The computer readable storage medium provided in the embodiments of the present application stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to perform the steps in any of the virtual role selection methods provided in the embodiments of the present application.

[0013] The embodiments of the present application can provide a graphical user interface by a terminal device, and the graphical user interface includes a game scene, and the game scene at least partially contains other virtual roles, and the embodiments include: selecting a first target role from the other virtual roles in response to a first operation on a selected control; and selecting a second target role from candidate roles in response to a second operation on the selected control, wherein the candidate roles are virtual roles other than the first target role among the other virtual roles.

[0014] In the present application, if the first target role is not expected by a user, the second target role can be selected from the candidate roles by the second operation, and the candidate roles are the other virtual roles other than the first target role, so that the first target role can be avoided to be re-selected, thereby reducing the selection times and improving the selection efficiency. BRIEF DESCRIPTION OF DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort.

[0016] Figure 1a is a scene schematic diagram of the virtual role selection method provided in the embodiments of the present application;

[0017] Figure 1b is a flow schematic diagram of the virtual role selection method provided in the embodiments of the present application;

[0018] Figure 2a is a schematic diagram of the first target role in the graphical user interface provided in the embodiments of the present application;

[0019] Figure 2b is a schematic diagram of the selected progress prompt information in the graphical user interface provided in the embodiments of the present application;

[0020] Figure 3 is a structural schematic diagram of a virtual character selection device provided by an embodiment of the present application;

[0021] Figure 4 is a structural schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0022] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person skilled in the art without creative work fall within the scope of protection of the present application.

[0023] The embodiments of the present application provide a virtual character selection method and device, an electronic device and a storage medium.

[0024] The virtual character selection device can be integrated in an electronic device, which can be a terminal, a server or the like. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer or a personal computer (PC) or the like. The server can be a single server or a server cluster composed of multiple servers.

[0025] In some embodiments, the virtual character selection device can also be integrated in multiple electronic devices, for example, the virtual character selection device can be integrated in multiple servers, and the multiple servers can implement the virtual character selection method of the present application.

[0026] In some embodiments, the server can also be implemented in the form of a terminal.

[0027] At present, in an action role-playing game or an action game, the field of view direction of a user virtual character and the distance between the user virtual character and an enemy virtual character are comprehensively considered to determine an enemy virtual character selected by the user virtual character from multiple enemy virtual characters. This method is prone to cause selection of an incorrect enemy virtual character, so that the user is prone to incorrectly releasing a skill due to selection of the incorrect enemy virtual character. In order to select a correct enemy virtual character, the user needs to control the field of view direction of the user virtual character in a game scene to recalculate the enemy virtual character selected by the user virtual character. Thus, in order to select the correct enemy virtual character, the user virtual character may select different enemy virtual characters multiple times in a short period of time, which increases the burden of game running and is not conducive to the user virtual character to fight against multiple enemy virtual characters.

[0028] Since the above-mentioned way can cause more selection times, which is not conducive to the user virtual character to fight against multiple enemy virtual characters, therefore, with reference to Figure 1a The embodiment of the present application provides a virtual character selection method, the electronic device is a terminal device, the terminal device can run an electronic game, a screen of the terminal device displays a graphical user interface, the graphical user interface comprises a game scene, and the game scene at least partially contains other virtual characters, and the method comprises the following steps: in response to a first operation on a selection control, selecting a first target character from the other virtual characters; and in response to a second operation on the selection control, selecting a second target character from candidate characters, wherein the candidate characters are virtual characters other than the first target character in the other virtual characters.

[0029] If the first target character is not expected by the user, the second target character can be selected from the candidate characters through the second operation, and the candidate characters are virtual characters other than the first target character, so that the first target character is not reselected, thereby reducing the selection times and improving the selection efficiency.

[0030] In one of the embodiments of the present disclosure, the virtual character selection method can run on a terminal device or a server. When the virtual character selection method runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises a server and a client device.

[0031] In an optional embodiment, various cloud applications can run under the cloud interaction system, for example, cloud games. Taking the cloud games as an example, the cloud games refer to a game mode based on cloud computing. In the running mode of the cloud games, the running subject of the game program and the presentation subject of the game picture are separated, and the storage and running of the virtual character selection method are completed on the cloud game server. The client device is used for receiving and sending data and presenting the game picture. For example, the client device can be a display device close to the user side and having a data transmission function, such as a terminal, a television, a computer, a palm computer and the like. However, the terminal device for performing the virtual character selection method is the cloud game server in the cloud. When playing the game, the user operates the client device to send operation instructions, such as touch operation instructions, to the cloud game server, the cloud game server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.

[0032] In an optional embodiment, taking a game as an example, the local terminal device stores a game program and is configured to present a game picture. The local terminal device is configured to interact with a player through a graphical user interface, i.e., a conventional game program is downloaded and installed through an electronic device and is run. The local terminal device can provide the graphical user interface to the user in various ways, for example, the graphical user interface can be rendered and displayed on a display screen of the terminal, or the graphical user interface can be provided to the user through holographic projection. For example, the local terminal device can include a display screen configured to present a graphical user interface including a game picture, and a processor configured to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.

[0033] A game scene (or referred to as a virtual scene) is a virtual scene displayed (or provided) by an application when the application is running on a terminal or a server. Optionally, the virtual scene is a simulated environment of a real world, or a virtual environment that is half simulated and half fictional, or a purely fictional virtual environment. The virtual scene is any one of a two-dimensional virtual scene and a three-dimensional virtual scene, and the virtual environment can be a sky, a land, a sea, etc., wherein the land includes environmental elements such as a desert and a city. The virtual scene is a scene in which a player controls a virtual object to complete game logic.

[0034] A game interface refers to an interface corresponding to an application provided or displayed through a graphical user interface. The interface includes a graphical user interface for user interaction and a game picture, which is a picture of a game scene.

[0035] In an optional embodiment, the graphical user interface (UI interface) can include game controls (such as controls for controlling virtual characters, function controls, etc.), indication marks (such as direction indication marks, character indication marks, etc.), information display areas (such as game scores, game times, etc.), or game setting controls (such as system settings, stores, gold coins, etc.).

[0036] For example, in some embodiments, the graphical user interface can include prompt information as any control.

[0037] In an optional embodiment, the game picture is a display picture corresponding to a game scene displayed by a terminal device. The game picture can include virtual objects such as game objects, non-player characters (NPCs), and artificial intelligence (AI) characters performing game logic in the game scene.

[0038] For example, in some embodiments, the content displayed in the graphical user interface at least partially contains a game scene, wherein the game scene contains at least one game object.

[0039] In some embodiments, the game object in the game scene includes a virtual character controlled by the player through the terminal device.

[0040] The game object refers to a virtual object in a virtual scene, including a game character, which is a controllable dynamic object, i.e., a dynamic virtual object. Optionally, the dynamic object can be a virtual person, a virtual animal, an animation character, etc. The virtual object is a character controlled by the user through an input device, or an AI character set in a virtual environment for battle, or an NPC set in a virtual scene for battle.

[0041] Optionally, the virtual object is a virtual person competing in a virtual scene. Optionally, the number of virtual objects in the virtual scene battle is pre-set, or is dynamically determined according to the number of clients joining the battle, which is not limited in the embodiments of the present application.

[0042] In a possible implementation manner, the game application can enable the user to control the virtual character in the virtual scene through the terminal device to perform a game behavior, which can include moving, casting skills, using props, and chatting, etc. For example, the virtual object can be controlled to run, jump, crawl, etc., and the game application can also control the virtual object to use skills, virtual props, etc. to fight with other virtual objects.

[0043] In an optional implementation, the embodiment of the present application provides a virtual character selection method, which provides a graphical user interface through a terminal device. The touch terminal can be the aforementioned local terminal device, or the aforementioned client device in the cloud interaction system.

[0044] The following will be described in detail. It should be noted that the serial numbers of the following embodiments do not limit the preferred order of the embodiments.

[0045] In this embodiment, a virtual character selection method is provided, which provides a graphical user interface through a terminal device. The graphical user interface includes a game scene, which at least partially contains other virtual characters, such as Figure 1b As shown in the figure, the specific process of the virtual character selection method can be as follows:

[0046] 110、In response to the first operation on the selection control, a first target character is selected from the other virtual characters.

[0047] Among them, the other virtual characters cannot be controlled by the terminal device. For example, the other virtual characters can be controlled by other terminal devices except the terminal device, or can be virtual characters (NPCs) pre-set in the game, etc.

[0048] The selection control is used to establish a selected relationship with other virtual characters. For example, the selection control can be a physical button or a virtual control, and the physical button can be a button (shortcut key, mouse middle button, etc.) of a terminal device, and the virtual control can be a control displayed by a graphical user interface.

[0049] The first operation is used to select at least one other virtual character when there is no selected other virtual character in the game scene. For example, the first operation can be an operation of triggering the selection control according to a first preset rule, or issuing a first voice command, and triggering the selection control according to the first preset rule can be “single-click”, “double-click”, “long-press” the selection control, etc., and the specific operation mode of the first operation is not limited herein. The first voice command can be “select the other virtual character for the first time”, and the voice content of the first voice command is not limited herein.

[0050] The first target character is the other virtual character selected by the user through the terminal device.

[0051] For example, if the other virtual character has an enemy relationship with the virtual character controlled by the terminal device, the first target character is the selected virtual character to be attacked. If the other virtual character has a team relationship with the virtual character controlled by the terminal device, the first target character is the selected virtual character to be rescued. If the other virtual character has a neutral relationship with the virtual character controlled by the terminal device, the first target character can be a virtual character to be attacked, a virtual character to be rescued, a virtual character to be dialogued, etc.

[0052] In some embodiments, in order to enable the virtual character controlled by the terminal device to release a skill to the first target character, the game scene includes a first virtual character controlled by the terminal device, and after the first target character is selected from the other virtual characters in response to the first operation on the selection control, the method further includes:

[0053] In response to the touch operation on the skill control, the position of the first target character in the game scene is obtained.

[0054] If the position is not in the current field of view direction, the field of view direction of the first virtual character is turned to the position, so that the first virtual character releases a skill corresponding to the skill control to the position. The current field of view direction is the field of view direction of the first virtual character in the game scene.

[0055] The first virtual character is a virtual character controlled by the user through the terminal device.

[0056] The skill control is a control for controlling the first virtual character to release a skill in the game scene.

[0057] The touch operation is used to control the first virtual character to release a skill in the game scene.

[0058] The position is a coordinate of the first target role in the game scene.

[0059] For example, if there is an enemy relationship between the first virtual role and the other virtual role, the skill corresponding to the skill control is used to attack the other virtual role to reduce the attribute value of the other virtual role. If there is a teammate relationship between the first virtual role and the other virtual role, the skill corresponding to the skill control is used to increase the attribute value of the other virtual role. If there is a neutral relationship between the first virtual role and the other virtual role, the skill corresponding to the skill control can be used to reduce or increase the attribute value of the other virtual role.

[0060] In some embodiments, in order to select the first target role from the plurality of other virtual roles, the game scene includes the first virtual role controlled by the terminal device, and the first target role is selected from the other virtual roles in response to the first operation on the selection control, comprising:

[0061] In response to the first operation on the selection control, the first focus role is determined from the other virtual roles according to the visual direction of the first virtual role in the game scene, and the first focus role is the other virtual role located in the visual direction.

[0062] The distance between the first focus role and the first virtual role is calculated.

[0063] The first target role is selected from all the first focus roles according to the distance between each first focus role and the first virtual role.

[0064] The first focus role is the other virtual role in the visual direction of the first virtual role.

[0065] For example, if there are a plurality of other virtual roles overlapping in the game scene in the visual direction of the first virtual role, there are a plurality of first focus roles, or there is one other virtual role in the visual direction of the first virtual role, there is one first focus role.

[0066] The distance between the first focus role and the first virtual role is the distance between the coordinate of the first focus role in the game scene and the coordinate of the first virtual role in the game scene.

[0067] For example, if there is one first focus role, the first target role is the first focus role.

[0068] For example, if there are multiple first key roles, the first target role can be the first key role closest to the first virtual role, the first key role farthest from the first virtual role, any first key role between the first key role closest to the first virtual role and the first key role farthest from the first virtual role, and the like.

[0069] In some embodiments, to obtain the visual field direction of the first virtual role, in response to the first operation on the selected control, the first key role is determined from the other virtual roles according to the visual field direction of the first virtual role in the game scene, including:

[0070] In response to the first operation on the selected control, a direction control joystick is displayed on the graphical user interface, and the direction control joystick is used to control the direction of movement of the first virtual role;

[0071] According to the direction of the direction control joystick on the graphical user interface, the visual field direction of the first virtual role in the game scene is determined;

[0072] According to the visual field direction of the first virtual role in the game scene, the first key role is determined from the other virtual roles.

[0073] In some embodiments, to obtain the visual field direction of the first virtual role, in response to the first operation on the selected control, the first key role is determined from the other virtual roles according to the visual field direction of the first virtual role in the game scene, including:

[0074] In response to the first operation on the selected control, the moving direction of the first virtual role in the game scene is obtained;

[0075] According to the moving direction, the visual field direction of the first virtual role in the game scene is determined;

[0076] According to the visual field direction of the first virtual role in the game scene, the first key role is determined from the other virtual roles.

[0077] In some embodiments, considering that if there is an antagonistic relationship between the other virtual roles and the first virtual role, the first target role can be selected from all the first key roles according to the distance between each first key role and the first virtual role, so that the first virtual role can select the other virtual role with strong attack force, so that the first virtual role can fight against the other virtual role, or if the other virtual roles and the first virtual role are in the same team, the first target role can be selected from all the first key roles according to the distance between each first key role and the first virtual role, so that the first virtual role can select the other virtual role with low life value, so that the first virtual role can rescue the other virtual role, and the like.

[0078] determine a first candidate target role from all the first key roles according to a distance between each first key role and the first virtual role, the distance between the first candidate target role and the first virtual role being within a preset range;

[0079] obtain a role attribute of the first candidate target role;

[0080] determine a first target role from all the first candidate target roles according to the role attribute of each first candidate target role.

[0081] The first candidate target role is a first key role within the preset range from the first virtual role.

[0082] The preset range is a range preset from the first virtual role. For example, the preset range can be any range, or the attack range of the first virtual role, etc.

[0083] The role attribute of the first candidate target role is used to reflect the attack ability of the first candidate target role. For example, the role attribute of the first candidate target role can be the health value or attack force of the first candidate target role, etc.

[0084] For example, if there is a team relationship between the other virtual roles and the first virtual role, the first target role can be the first candidate target role with the lowest health value, so that the first virtual role can rescue the first target role. If there is an enemy relationship between the other virtual roles and the first virtual role, the first target role can be the first candidate target role with the strongest attack force, so that the first virtual role can fight against the first target role.

[0085] 120, in response to a second operation on the selected control, a second target role is selected from the candidate roles, wherein the candidate roles are virtual roles other than the first target role among the other virtual roles.

[0086] The second operation is different from the first operation, and is used to re-select the other virtual roles other than the first target role when the selected other virtual roles exist in the game scene. For example, the second operation can be an operation of triggering the selected control according to a second preset rule, or issuing a second voice command, etc. The specific operation mode of the second operation and the voice content of the second voice command are not limited herein.

[0087] For example, if the selected control is a virtual control, the first operation can be “single-clicking” the virtual control, and the second operation can be “double-clicking” or “long-pressing” the virtual control. If the selected control is a mouse, the first operation can be “single-clicking” the middle key of the mouse, and the second operation can be “long-pressing” the middle key of the mouse, etc. If the selected control is a microphone, the second voice command can be “re-selecting the other virtual roles”.

[0088] The candidate role is another virtual role that is not selected by the terminal device, and the first target role is not included in the candidate role. For example, the other virtual roles include role A, role B, role C, and role D, and if the first target role is role A, the candidate role is role B, role C, and role D.

[0089] The second target role is another virtual role that is re-selected by the user through the terminal device after the first target role is selected.

[0090] In some embodiments, in order to select the second target role from the plurality of candidate roles, the game scene includes a first virtual role, the first virtual role has a selected relationship with the first target role, and in response to the second operation on the selection control, the second target role is selected from the candidate roles, including:

[0091] In response to the second operation on the selection control, the second focus role is determined from the candidate roles according to the visual direction of the first virtual role in the game scene, the second focus role being a virtual role in the candidate roles located in the visual direction;

[0092] The distance between the second focus role and the first virtual role is calculated.

[0093] The second target role is determined from all the second focus roles according to the distance between each second focus role and the first virtual role.

[0094] The selected relationship between the first virtual role and the first target role is released, and the first virtual role is controlled to select the second target role to establish a selected relationship between the first virtual role and the second target role.

[0095] The second focus role is a candidate role in the visual direction of the first virtual role.

[0096] For example, if there are multiple candidate roles overlapping in the game scene in the visual direction of the first virtual role, there are multiple second focus roles, or there is one candidate role in the visual direction of the first virtual role, there is one second focus role.

[0097] The distance between the second focus role and the first virtual role is the distance between the coordinates of the second focus role in the game scene and the coordinates of the first virtual role in the game scene.

[0098] For example, if there is one second focus role, the second target role is the second focus role.

[0099] For example, if there are multiple second key roles, the second target role can be the second key role closest to the first virtual role, the second key role farthest from the first virtual role, any second key role between the second key role closest to the first virtual role and the second key role farthest from the first virtual role, and the like.

[0100] In some embodiments, in order to provide the user with the progress of the first virtual role selecting the second target role, the user can make a reflection operation within the progress, so as to determine whether the first virtual role selects the second target role through the reflection operation, thereby reducing the number of selections and enabling the first virtual role to quickly select the second target role. The game scene includes the first virtual role, and the first virtual role has a selection relationship with the first target role. In response to a second operation on the selection control, the second target role is selected from the candidate roles, comprising:

[0101] In response to a second operation on the selection control, the second target role is determined from the candidate roles;

[0102] The graphical user interface displays selection progress prompt information, which reflects the progress of the first virtual role establishing a selection relationship with the second target role.

[0103] In response to a reflection operation representing pushing the selection progress prompt information, the first virtual role and the first target role are released from the selection relationship, and the first virtual role is controlled to select the second target role.

[0104] The selection progress prompt information reflects the progress of the first virtual role establishing a selection relationship with the second target role. For example, the selection progress prompt information can be a progress bar, a text reflecting the progress, and the like.

[0105] For example, if the second target role is role B, the text reflecting the progress can be "the progress of the first virtual role establishing a selection relationship with role B is 10%", "the progress of the first virtual role establishing a selection relationship with role B is 20%", and the like, until "the progress of the first virtual role establishing a selection relationship with role B is 100%", and the selection progress prompt information is stopped from being displayed.

[0106] The reflection operation is an operation made by the user on the selection progress prompt information. For example, the reflection operation can be an operation of triggering the selection control according to a preset rule, or issuing a voice command, and the like.

[0107] For example, if the selected control is long-pressed, a second target role can be determined from the candidate roles, and a selected progress prompt information is displayed on the graphical user interface. If the selected control is long-pressed again, the selected relationship between the first virtual role and the first target role is removed, and the first virtual role is controlled to select the second target role.

[0108] In some embodiments, in consideration of the fact that the user can determine the first virtual role to select the second target role according to the selected progress prompt information, in response to a reflection operation representing pushing the selected progress prompt information, the selected relationship between the first virtual role and the first target role is removed, and the first virtual role is controlled to select the second target role, which includes:

[0109] In response to the reflection operation representing pushing the selected progress prompt information, the selected progress prompt information displayed on the graphical user interface is updated.

[0110] If the updated selected progress prompt information reflects that the progress is completed, the selected relationship between the first virtual role and the first target role is removed, and the first virtual role is controlled to select the second target role.

[0111] The reflection operation representing pushing the selected progress prompt information is an operation of the user pushing the first virtual role to select the second target role.

[0112] The updated selected progress prompt information reflects the selected progress of the second target role and the first virtual role.

[0113] For example, after the reflection operation representing pushing the selected progress prompt information is obtained, the progress of pushing the first virtual role to establish the selected relationship with the second target role is used to update the selected progress prompt information of the graphical user interface.

[0114] In some embodiments, in consideration of the fact that the user does not expect the first virtual role to select the second target role, the number of selections is reduced, and the second target role can be updated so that the updated second target role can be a candidate role expected by the user, the method further includes:

[0115] Before the selected progress prompt information reflects that the progress is completed, in response to a reflection operation representing stopping pushing the selected progress prompt information, the first virtual role is controlled to stop selecting the second target role.

[0116] The visual field direction of the first virtual role is adjusted.

[0117] According to the adjusted visual field direction, the second target role is updated.

[0118] The reflection operation that represents the operation of stopping pushing the selected progress prompt information is an operation of preventing the first virtual character from selecting the second target character by the user. For example, the reflection operation that represents the operation of pushing the selected progress prompt information can be long pressing the selected control, and the reflection operation that represents the operation of stopping pushing the selected progress prompt information can be stopping touching the selected control, and the like.

[0119] The adjusted field of view direction is a direction corresponding to the field of view of the first virtual character after the first virtual character turns in the game scene.

[0120] In some embodiments, the field of view direction of the first virtual character is adjusted by controlling the first virtual character to turn in the game scene.

[0121] In some embodiments, in order to remind the user of the progress of establishing the selected relationship between the first virtual character and the second target character, the selected progress prompt information is displayed on the graphical user interface, including:

[0122] The progress bar of establishing the selected relationship between the first virtual character and the second target character is obtained, and the character identifier of the second target character is obtained.

[0123] The progress bar carrying the character identifier is displayed on the graphical user interface.

[0124] The progress bar can reflect the progress of establishing the selected relationship between the first virtual character and the second target character.

[0125] The character identifier is used to indicate the second target character that establishes the selected relationship with the first virtual character. For example, the character identifier can be the name, icon, or the like of the second target character.

[0126] In some embodiments, in order to facilitate the user to control the first virtual character to select other virtual characters, the first operation and the second operation are different operations.

[0127] In some embodiments, considering that the other virtual characters are distributed relatively scattered in the game scene, in order to facilitate the user to control the first virtual character to select one of the other virtual characters, after the first target character is selected from the other virtual characters in response to the first operation on the selected control, the method further includes:

[0128] The third target character is determined from the other virtual characters in response to the first operation on the selected control.

[0129] The third target character is the other virtual character in the game scene in the field of view direction of the first virtual character.

[0130] In some embodiments, in order to facilitate the user to control the first virtual character to attack the other virtual characters, the other virtual characters belong to different camps from the first virtual character.

[0131] In some embodiments, in order to enable a virtual character controlled by a terminal device to selectively release skills to a second target character, the game scene includes a first virtual character, which is controlled by the terminal device. After selecting the second target character from candidate characters in response to a second operation on a selected control, the method further includes:

[0132] In response to touch input to the skill controls, obtain the position of the second target character in the game scene;

[0133] If the location is not in the current field of view, control the field of view of the first virtual character to turn to the location, so that the first virtual character releases the skill corresponding to the skill control to the location. The current field of view is the field of view of the first virtual character in the game scene.

[0134] As can be seen from the above, the embodiments of this application can provide a graphical user interface through a terminal device. The graphical user interface includes a game scene, and the game scene at least partially includes other virtual characters, including: in response to a first operation on the selected control, selecting a first target character from other virtual characters; in response to a second operation on the selected control, selecting a second target character from candidate characters, wherein the candidate characters are virtual characters other than the first target character among the other virtual characters.

[0135] In this application, if the first target role is not desired by the user, a second target role can be selected from the candidate roles through a second operation. The candidate roles are other virtual roles besides the first target role. In this way, the first target role can be avoided, thereby reducing the number of selections and improving selection efficiency.

[0136] The method described in the above embodiments will be further described in detail below.

[0137] In this embodiment, the method of this application embodiment will be described in detail, taking the example of a first virtual character having an adversarial relationship with other virtual characters and the user controlling the first virtual character to switch the selected first target character.

[0138] (i) When the user taps the selected control (taking the middle mouse button as an example), the first virtual character selects the first target character based on the first virtual character's field of view in the game scene and the distance between the first virtual character and other virtual characters.

[0139] For example, such as Figure 2a As shown, the first target character (character 2) is determined from character 1, character 2 and character 3.

[0140] When the first target character selected by the first virtual character does not match any other virtual character the user actually wants to lock:

[0141] (ii) The user long-presses the selection control (the middle mouse button), and according to the field of view direction of the first virtual character in the game scene, a second target character is determined from the candidate characters, the candidate characters are other virtual characters except the first target character, and a progress bar appears on the graphical user interface along with the character identifier of the second target character and the release of the existing selection relationship between the first virtual character and the first target character.

[0142] For example, as shown in FIG. 1, the above-mentioned character 1 is a candidate character 1, the character 2 is a first target character, and the character 3 is a candidate character 2. By long-pressing the selection control (the middle mouse button), a second target character (the candidate character 2) is determined from the candidate character 1 and the candidate character 2, a progress bar showing the establishment of the selection relationship between the first virtual character and the second target character is displayed, the progress bar carries the character identifier 2 of the second target character (the candidate character 2), and the existing selection relationship between the first virtual character and the first target character is released. Figure 2b

[0143] (iii) If the second target character is the target that the user wants to attack, when the long-pressing of the selection control exceeds a certain time (about 0.5 seconds) and the progress bar is full, the second target character is determined to select the first virtual character; if the second target character is not what the user expects, the user can release the selection control before the progress bar is full, and the establishment of the selection relationship between the first virtual character and the second target character is considered to be cancelled.

[0144] (iv) The field of view direction of the first virtual character in the game scene is adjusted, and according to the adjusted field of view direction and the distance between the first virtual character and the candidate characters, the second target character is updated.

[0145] As can be seen from the above, when the first target character is not what the user expects when the user controls the first virtual character to select other virtual characters, the first virtual character can be switched to select other virtual characters through a simple operation.

[0146] In order to better implement the above method, the embodiment of the present application also provides a virtual character selection device. The virtual character selection device can be integrated in an electronic device, which can be a terminal, a server, etc. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, a personal computer, etc. The server can be a single server or a server cluster composed of multiple servers.

[0147] For example, in this embodiment, the virtual character selection device is integrated in a mobile terminal, and the method of the embodiment of the present application is described in detail.

[0148] For example, as shown in FIG. 1, the above-mentioned character 1 is a candidate character 1, the character 2 is a first target character, and the character 3 is a candidate character 2. By long-pressing the selection control (the middle mouse button), a second target character (the candidate character 2) is determined from the candidate character 1 and the candidate character 2, a progress bar showing the establishment of the selection relationship between the first virtual character and the second target character is displayed, the progress bar carries the character identifier 2 of the second target character (the candidate character 2), and the existing selection relationship between the first virtual character and the first target character is released. Figure 3 ​As shown, the virtual character selection device provides a graphical user interface through the terminal device, the graphical user interface includes a game scene, the game scene at least partially contains other virtual characters, the virtual character selection device can include a first selection unit 310 and a second selection unit 320, as follows:

[0149] (1) The first selection unit 310.

[0150] The first selection unit 310 is configured to select a first target character from the other virtual characters in response to a first operation on the selection control.

[0151] In some embodiments, the game scene includes a first virtual character controlled by the terminal device, and after the first target character is selected from the other virtual characters in response to the first operation on the selection control, the method further includes:

[0152] In response to the touch operation on the skill control, a position of the first target character in the game scene is obtained;

[0153] If the position is not in the current field of view direction, the field of view direction of the first virtual character is controlled to turn to the position, so that the first virtual character releases a skill corresponding to the skill control to the position, and the current field of view direction is the field of view direction of the first virtual character in the game scene.

[0154] In some embodiments, the game scene includes a first virtual character controlled by the terminal device, and the first target character is selected from the other virtual characters in response to the first operation on the selection control, including:

[0155] In response to the first operation on the selection control, a first focus character is determined from the other virtual characters according to a field of view direction of the first virtual character in the game scene, the first focus character being a virtual character located in the field of view direction;

[0156] The distance between the first focus character and the first virtual character is calculated;

[0157] The first target character is selected from all the first focus characters according to the distance between each first focus character and the first virtual character.

[0158] In some embodiments, the first target character is selected from all the first focus characters according to the distance between each first focus character and the first virtual character, including:

[0159] A first candidate target character is determined from all the first focus characters according to the distance between each first focus character and the first virtual character, the distance between the first candidate target character and the first virtual character being within a preset range;

[0160] The character attribute of the first candidate target character is obtained;

[0161] determining the first target role from all the first candidate target roles according to the role attribute of each first candidate target role.

[0162] The second selection unit 320 is configured to select a second target role from the candidate roles in response to a second operation on the selection control, wherein the candidate roles are virtual roles in the other virtual roles except the first target role.

[0163] The second selection unit 320 is configured to select a second target role from the candidate roles in response to a second operation on the selection control, wherein the candidate roles are virtual roles in the other virtual roles except the first target role.

[0164] In some embodiments, the game scene includes the first virtual role, and the first virtual role has a selection relationship with the first target role. In response to the second operation on the selection control, the second target role is selected from the candidate roles, and the method comprises the following steps:

[0165] In response to the second operation on the selection control, the second focus role is determined from the candidate roles according to a visual direction of the first virtual role in the game scene, the second focus role being a virtual role in the candidate roles located in the visual direction;

[0166] The distance between the second focus role and the first virtual role is calculated.

[0167] The second target role is determined from all the second focus roles according to the distance between each second focus role and the first virtual role.

[0168] The selection relationship between the first virtual role and the first target role is released, and the first virtual role is controlled to select the second target role to establish a selection relationship between the first virtual role and the second target role.

[0169] In some embodiments, the game scene includes the first virtual role, and the first virtual role has a selection relationship with the first target role. In response to the second operation on the selection control, the second target role is selected from the candidate roles, and the method comprises the following steps:

[0170] In response to the second operation on the selection control, the second target role is determined from the candidate roles.

[0171] The selection progress prompt information is displayed on the graphical user interface, and the selection progress prompt information is used to reflect the progress of the first virtual role and the second target role in establishing the selection relationship.

[0172] In response to a reflection operation representing a push on the selection progress prompt information, the selection relationship between the first virtual role and the first target role is released, and the first virtual role is controlled to select the second target role.

[0173] In some embodiments, in response to the reflection operation representing pushing the selected progress prompt information, the selected relationship between the first virtual character and the first target character is released, and the first virtual character is controlled to select the second target character, including:

[0174] In response to the reflection operation representing pushing the selected progress prompt information, the selected progress prompt information displayed by the graphical user interface is updated;

[0175] If the updated selected progress prompt information reflects that the progress is completed, the selected relationship between the first virtual character and the first target character is released, and the first virtual character is controlled to select the second target character.

[0176] In some embodiments, the method further includes:

[0177] Before the selected progress prompt information reflects that the progress is completed, in response to the reflection operation representing stopping pushing the selected progress prompt information, the first virtual character is controlled to stop selecting the second target character;

[0178] Adjusting the visual field direction of the first virtual character;

[0179] According to the adjusted visual field direction, the second target character is updated.

[0180] In some embodiments, the selected progress prompt information is displayed by the graphical user interface, including:

[0181] Obtaining a progress bar of the first virtual character and the second target character establishing a selected relationship, and a character identifier of the second target character;

[0182] Displaying the progress bar carrying the character identifier in the graphical user interface.

[0183] In some embodiments, the first operation and the second operation are different operations.

[0184] In some embodiments, after the first target character is selected from other virtual characters in response to the first operation on the selected control, the method further includes:

[0185] In response to the first operation on the selected control, a third target character is determined from the other virtual characters.

[0186] In some embodiments, the other virtual characters and the first virtual character belong to different camps.

[0187] In implementation, each of the above units can be implemented as an independent entity, or can be combined as the same or several entities, and the specific implementation of each of the above units can refer to the method embodiments described above, which will not be described here.

[0188] As can be seen from the above, the virtual character selection device of this embodiment provides a graphical user interface through a terminal device. The graphical user interface includes a game scene, and the game scene at least partially includes other virtual characters. The device includes: in response to a first operation on the selected control, selecting a first target character from other virtual characters; in response to a second operation on the selected control, selecting a second target character from candidate characters, wherein the candidate characters are virtual characters other than the first target character among the other virtual characters.

[0189] Therefore, the embodiments of this application can reduce the number of selections and improve selection efficiency.

[0190] Accordingly, this application also provides an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer, personal digital assistant (PDA) and other terminal devices.

[0191] like Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 400 includes a processor 410 with one or more processing cores, a memory 420 with one or more computer-readable storage media, and a computer program stored in the memory 420 and executable on the processor. The processor 410 is electrically connected to the memory 420. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0192] The processor 410 is the control center of the electronic device 400. It connects various parts of the electronic device 400 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 420, and calling data stored in the memory 420, it performs various functions of the electronic device 400 and processes data, thereby monitoring the electronic device 400 as a whole.

[0193] In this embodiment, the processor 410 in the electronic device 400 loads the instructions corresponding to the processes of one or more applications into the memory 420 according to the following steps, and the processor 410 runs the applications stored in the memory 420 to realize various functions:

[0194] A method for selecting virtual characters, providing a graphical user interface via a terminal device, the graphical user interface including a game scene, the game scene at least partially containing other virtual characters, including:

[0195] In response to a first operation on the selection control, a first target role is selected from the other virtual roles;

[0196] In response to a second operation on the selection control, a second target role is selected from the candidate roles, wherein the candidate roles are virtual roles other than the first target role among the other virtual roles.

[0197] In some embodiments, the game scene includes a first virtual role controlled by the terminal device, and after the first target role is selected from the other virtual roles in response to the first operation on the selection control, the method further includes:

[0198] In response to a touch operation on the skill control, a position of the first target role in the game scene is obtained;

[0199] If the position is not in the current field of view direction, the field of view direction of the first virtual role is turned to the position, so that the first virtual role releases a skill corresponding to the skill control to the position, and the current field of view direction is the field of view direction of the first virtual role in the game scene.

[0200] In some embodiments, the game scene includes a first virtual role controlled by the terminal device, and the first target role is selected from the other virtual roles in response to the first operation on the selection control, including:

[0201] In response to the first operation on the selection control, the first focus role is determined from the other virtual roles according to the field of view direction of the first virtual role in the game scene, and the first focus role is a virtual role located in the field of view direction;

[0202] The distance between the first focus role and the first virtual role is calculated;

[0203] The first target role is selected from all the first focus roles according to the distance between each first focus role and the first virtual role.

[0204] In some embodiments, the first target role is selected from all the first focus roles according to the distance between each first focus role and the first virtual role, including:

[0205] The first candidate target role is determined from all the first focus roles according to the distance between each first focus role and the first virtual role, and the distance between the first candidate target role and the first virtual role is within a preset range;

[0206] The role attribute of the first candidate target role is obtained;

[0207] The first target role is determined from all the first candidate target roles according to the role attribute of each first candidate target role.

[0208] In some embodiments, the game scene includes a first virtual character, and a selected relationship exists between the first virtual character and a first target character, and in response to a second operation on a selection control, a second target character is selected from candidate characters, including:

[0209] In response to the second operation on the selection control, a second focus character is determined from the candidate characters according to a field of view direction of the first virtual character in the game scene, the second focus character being a virtual character in the candidate characters located in the field of view direction;

[0210] A distance between the second focus character and the first virtual character is calculated;

[0211] A second target character is determined from all second focus characters according to the distance between each second focus character and the first virtual character;

[0212] The selected relationship between the first virtual character and the first target character is removed, and the first virtual character is controlled to select the second target character to establish a selected relationship between the first virtual character and the second target character.

[0213] In some embodiments, the game scene includes a first virtual character, and a selected relationship exists between the first virtual character and a first target character, and in response to a second operation on a selection control, a second target character is selected from candidate characters, including:

[0214] In response to the second operation on the selection control, a second target character is determined from the candidate characters;

[0215] In the graphical user interface, selection progress prompt information is displayed, the selection progress prompt information being used to reflect a progress of the first virtual character establishing a selected relationship with the second target character;

[0216] In response to a reflection operation representing a push on the selection progress prompt information, the selected relationship between the first virtual character and the first target character is removed, and the first virtual character is controlled to select the second target character.

[0217] In some embodiments, in response to a reflection operation representing a push on the selection progress prompt information, the selected relationship between the first virtual character and the first target character is removed, and the first virtual character is controlled to select the second target character, including:

[0218] In response to the reflection operation representing the push on the selection progress prompt information, the selection progress prompt information displayed in the graphical user interface is updated;

[0219] If the updated selection progress prompt information reflects that the progress is complete, the selected relationship between the first virtual character and the first target character is removed, and the first virtual character is controlled to select the second target character.

[0220] In some embodiments, the method further includes:

[0221] In response to an operation of stopping pushing the selected progress prompt information, canceling the first virtual character selecting the second target character before the selected progress prompt information reflects the completion of the progress;

[0222] Adjusting the visual field direction of the first virtual character;

[0223] Updating the second target character according to the adjusted visual field direction.

[0224] In some embodiments, the method further includes:

[0225] Obtaining a progress bar of the first virtual character establishing a selected relationship with the second target character, and a character identifier of the second target character;

[0226] Displaying the progress bar carrying the character identifier in the graphical user interface.

[0227] In some embodiments, the first operation and the second operation are different operations.

[0228] In some embodiments, after selecting the first target character from other virtual characters in response to the first operation on the selected control, the method further includes:

[0229] In response to the first operation on the selected control, determining a third target character from other virtual characters.

[0230] In some embodiments, the other virtual characters and the first virtual character belong to different camps.

[0231] The specific implementation of each operation above can refer to the previous embodiments, which will not be repeated here.

[0232] Optionally, as shown in Figure 4 , the electronic device 400 further includes a touch display screen 430, a radio frequency circuit 440, an audio circuit 450, an input unit 460, and a power supply 470. The processor 410 is electrically connected with the touch display screen 430, the radio frequency circuit 440, the audio circuit 450, the input unit 460, and the power supply 470, respectively. Those skilled in the art can understand that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.

[0233] The touch display screen 430 can be used to display a graphical user interface and receive operation instructions generated by user acting on the graphical user interface. The touch display screen 430 can include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, which can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect touch operations (such as user operations on or near the touch panel using a finger, a stylus or any suitable object or accessory) of the user thereon or therearound, and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into touch coordinates, and then sends it to the processor 410, and can receive commands from the processor 410 and execute them. The touch panel can cover the display panel, and when the touch panel detects a touch operation thereon or therearound, it transmits to the processor 410 to determine the type of touch event, and then the processor 410 provides corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 430 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can realize the input and output functions as two independent components. That is, the touch display screen 430 can also realize the input function as part of the input unit 460.

[0234] In the embodiments of the present application, the processor 410 executes the game application to generate a graphical user interface on the touch display screen 430, and the virtual scene on the graphical user interface includes at least one skill control area, and the skill control area includes at least one skill control. The touch display screen 430 is used to present the graphical user interface and receive operation instructions generated by user acting on the graphical user interface.

[0235] The radio frequency circuit 440 can be used to transceive radio frequency signals to establish wireless communication with network devices or other electronic devices, and transceive signals between network devices or other electronic devices.

[0236] The audio circuit 450 can be used to provide an audio interface between a user and the electronic device through a speaker and a microphone. The audio circuit 450 can convert received audio data into an electrical signal and transmit the electrical signal to the speaker for conversion into a sound signal and output by the speaker. On the other hand, the microphone can collect a sound signal and convert the sound signal into an electrical signal, which is received by the audio circuit 450 and converted into audio data. The audio data is output to the processor 410 for processing, transmitted to another electronic device through the radio frequency circuit 440, or output to the memory 420 for further processing. The audio circuit 450 can also include a jack for a headset to provide communication between the headset and the electronic device.

[0237] The input unit 460 can be used to receive inputted numbers, character information, or user feature information (e.g., fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.

[0238] The power supply 470 is used to supply power to various components of the electronic device 400. Optionally, the power supply 470 can be logically connected to the processor 410 through a power management system, so that the power management system can manage charging, discharging, and power consumption management, etc. The power supply 470 can also include one or more direct current or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, etc.

[0239] Although Figure 4 The electronic device 400 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which are not shown in the embodiments.

[0240] In the above embodiments, the description of each embodiment focuses on different aspects, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.

[0241] As can be seen from the above, the electronic device provided in the embodiments can reduce the number of selections and improve the selection efficiency.

[0242] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by means of instructions, or by means of instructions controlling relevant hardware, which can be stored in a computer readable storage medium and loaded and executed by a processor.

[0243] To this end, the embodiments of the present application provide a computer readable storage medium, which stores a plurality of computer programs. The computer programs can be loaded by a processor to execute the steps in any of the virtual character selection methods provided by the embodiments of the present application. For example, the computer programs can execute the following steps:

[0244] A virtual character selection method, a graphical user interface is provided by a terminal device, the graphical user interface includes a game scene, the game scene at least partially contains other virtual characters, comprising:

[0245] In response to a first operation on the selection control, a first target character is selected from the other virtual characters;

[0246] In response to a second operation on the selection control, a second target character is selected from the candidate characters, wherein the candidate characters are virtual characters other than the first target character in the other virtual characters.

[0247] In some embodiments, the game scene includes a first virtual character controlled by the terminal device, after the first target character is selected from the other virtual characters in response to the first operation on the selection control, the method further comprises:

[0248] In response to a touch operation on the skill control, a position of the first target character in the game scene is obtained;

[0249] If the position is not in the current field of view direction, the field of view direction of the first virtual character is turned to the position, so that the first virtual character releases a skill corresponding to the skill control to the position, and the current field of view direction is the field of view direction of the first virtual character in the game scene.

[0250] In some embodiments, the game scene includes a first virtual character controlled by the terminal device, in response to the first operation on the selection control, the first target character is selected from the other virtual characters, comprising:

[0251] In response to the first operation on the selection control, the first focus character is determined from the other virtual characters according to the field of view direction of the first virtual character in the game scene, and the first focus character is the other virtual character located in the field of view direction;

[0252] The distance between the first focus character and the first virtual character is calculated;

[0253] The first target character is selected from all the first focus characters according to the distance between each first focus character and the first virtual character.

[0254] In some embodiments, the first target character is selected from all the first focus characters according to the distance between each first focus character and the first virtual character, comprising:

[0255] The first candidate target character is determined from all the first focus characters according to the distance between each first focus character and the first virtual character, and the distance between the first candidate target character and the first virtual character is within a preset range;

[0256] The character attribute of the first candidate target character is obtained;

[0257] determining the first target role from all the first candidate target roles according to the role attribute of each first candidate target role.

[0258] In some embodiments, the game scene includes the first virtual role, and the first virtual role has a selected relationship with the first target role. In response to a second operation on the selection control, the second target role is selected from the candidate roles, including:

[0259] In response to the second operation on the selection control, the second focus role is determined from the candidate roles according to a visual field direction of the first virtual role in the game scene, the second focus role being a virtual role in the candidate roles located in the visual field direction;

[0260] The distance between the second focus role and the first virtual role is calculated.

[0261] The second target role is determined from all the second focus roles according to the distance between each second focus role and the first virtual role.

[0262] The selected relationship between the first virtual role and the first target role is released, and the first virtual role is controlled to select the second target role to establish a selected relationship between the first virtual role and the second target role.

[0263] In some embodiments, the game scene includes the first virtual role, and the first virtual role has a selected relationship with the first target role. In response to a second operation on the selection control, the second target role is selected from the candidate roles, including:

[0264] In response to the second operation on the selection control, the second target role is determined from the candidate roles.

[0265] The selection progress prompt information is displayed on the graphical user interface, and the selection progress prompt information is used to reflect the progress of the first virtual role establishing a selected relationship with the second target role.

[0266] In response to a reflection operation representing pushing the selection progress prompt information, the selected relationship between the first virtual role and the first target role is released, and the first virtual role is controlled to select the second target role.

[0267] In some embodiments, in response to the reflection operation representing pushing the selection progress prompt information, the selected relationship between the first virtual role and the first target role is released, and the first virtual role is controlled to select the second target role, including:

[0268] In response to the reflection operation representing pushing the selection progress prompt information, the selection progress prompt information displayed on the graphical user interface is updated.

[0269] If the updated selected progress prompt information reflects that the progress is completed, the selected relationship between the first virtual character and the first target character is released, and the first virtual character is controlled to select the second target character.

[0270] In some embodiments, the method further includes:

[0271] Before the selected progress prompt information reflects that the progress is completed, in response to a reflection operation representing stopping pushing the selected progress prompt information, the first virtual character is controlled to deselect the second target character.

[0272] Adjusting the visual field direction of the first virtual character.

[0273] According to the adjusted visual field direction, the second target character is updated.

[0274] In some embodiments, the selected progress prompt information is displayed on the graphical user interface, including:

[0275] A progress bar of the first virtual character and the second target character establishing the selected relationship, and a character identifier of the second target character are obtained.

[0276] The progress bar carrying the character identifier is displayed on the graphical user interface.

[0277] In some embodiments, the first operation and the second operation are different operations.

[0278] In some embodiments, after the first target character is selected from other virtual characters in response to the first operation on the selected control, the method further includes:

[0279] In response to the first operation on the selected control, a third target character is determined from other virtual characters.

[0280] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here.

[0281] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0282] Due to the computer program stored in the storage medium, the steps of any virtual character selection method provided in the embodiments of the present application can be executed, and thus the beneficial effects of any virtual character selection method provided in the embodiments of the present application can be achieved. Details are described in the foregoing embodiments, which will not be described here.

[0283] The virtual character selection method and device provided by the embodiments of the present application, the electronic device, and the storage medium are described in detail above, and the principles and implementation manners of the present application are described by applying specific examples. The above description of the embodiments is only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges will be changed, and the above description should not be understood as a limitation of the present application.

Claims

1. A virtual character selection method, characterized by, The method comprises the following steps: providing, by a terminal device, a graphical user interface, the graphical user interface comprising a game scene, the game scene at least partially containing other virtual characters and a first virtual character, the first virtual character being controlled by the terminal device, the other virtual characters being unable to be controlled by the terminal device, and the method comprising: selecting, in response to a first operation on a selection control, a first target character from the other virtual characters; selecting, in response to a second operation on the selection control, a second target character from candidate characters, wherein the candidate characters are virtual characters other than the first target character among the other virtual characters, and the first operation and the second operation are different operations; releasing a skill to the second target character in response to a touch operation on a skill control; wherein, after the step of selecting, in response to a first operation on a selection control, a first target character from the other virtual characters, the method further comprises: acquiring a position of the first target character in the game scene in response to a touch operation on the skill control; 2. The virtual character selection method of claim 1, wherein, if the position is not in a current field of view direction of the first virtual character, controlling a field of view direction of the first virtual character to turn to the position, so that the first virtual character releases a skill corresponding to the skill control to the position, the current field of view direction being a field of view direction of the first virtual character in the game scene. The step of selecting, in response to a first operation on a selection control, a first target character from the other virtual characters, comprises: determining, in response to a first operation on a selection control, a first focus character from the other virtual characters according to a field of view direction of the first virtual character in the game scene, the first focus character being a virtual character in the other virtual characters located in the field of view direction; calculating a distance between the first focus character and the first virtual character; 3. The virtual character selection method of claim 2, wherein, selecting, from all the first focus characters, a first target character according to the distance between each first focus character and the first virtual character. The step of selecting, from all the first focus characters, a first target character according to the distance between each first focus character and the first virtual character, comprises: determining, from all the first focus characters, a first candidate target character according to the distance between each first focus character and the first virtual character, the distance between the first candidate target character and the first virtual character being within a preset range; acquiring a character attribute of the first candidate target character; 4. The virtual character selection method of claim 1, wherein, determining, from all the first candidate target characters, a first target character according to the character attribute of each first candidate target character. The game scene comprises a first virtual character, and there is a selection relationship between the first virtual character and the first target character, and the step of selecting, in response to a second operation on the selection control, a second target character from candidate characters, comprises: determining, in response to a second operation on the selection control, a second focus character from the candidate characters according to a field of view direction of the first virtual character in the game scene, the second focus character being a virtual character in the candidate characters located in the field of view direction; calculate a distance between the second focus role and the first virtual role; determine a second target role from all the second focus roles according to the distance between each of the second focus roles and the first virtual role; cancel the selected relationship between the first virtual role and the first target role, and control the first virtual role to select the second target role to establish a selected relationship between the first virtual role and the second target role.

5. The virtual character selection method of claim 1, wherein, The game scene includes a first virtual role, and a selected relationship exists between the first virtual role and the first target role, and the second target role is selected from the candidate role in response to the second operation on the selection control, including: determine a second target role from the candidate role in response to the second operation on the selection control; display a selection progress prompt information in the graphical user interface, and the selection progress prompt information is used to reflect the progress of the first virtual role and the second target role in establishing a selected relationship; cancel the selected relationship between the first virtual role and the first target role in response to a reflection operation representing pushing the selection progress prompt information, and control the first virtual role to select the second target role.

6. The virtual character selection method of claim 5, wherein, The response to the reflection operation representing pushing the selection progress prompt information to cancel the selected relationship between the first virtual role and the first target role, and control the first virtual role to select the second target role, including: update the selection progress prompt information displayed by the graphical user interface in response to the reflection operation representing pushing the selection progress prompt information; if the updated selection progress prompt information reflects that the progress is completed, cancel the selected relationship between the first virtual role and the first target role, and control the first virtual role to select the second target role.

7. The virtual character selection method of claim 5, wherein, The method further includes: before the selection progress prompt information reflects that the progress is completed, cancel the selection of the second target role by the first virtual role in response to a reflection operation representing stopping pushing the selection progress prompt information; adjust the visual field direction of the first virtual role; update the second target role according to the adjusted visual field direction.

8. The virtual character selection method of claim 5, wherein, The display of the selection progress prompt information in the graphical user interface includes: obtain a progress bar of the first virtual role and the second target role in establishing a selected relationship, and a role identifier of the second target role; display the progress bar carrying the role identifier in the display graphical user interface.

9. The virtual character selection method of claim 1, wherein, After the first target role is selected from the other virtual roles in response to the first operation on the selection control, the method further includes: determine a third target role from the other virtual roles in response to the first operation on the selection control.

10. The virtual character selection method of claim 1, wherein, The other virtual roles and the first virtual role belong to different camps.

11. A virtual character selection apparatus, comprising: a virtual character selection module configured to: receive a request for a virtual character; and select a virtual character based on the request. The terminal device provides a graphical user interface, the graphical user interface including a game scene, the game scene at least partially containing other virtual characters and a first virtual character, the first virtual character being controlled by the terminal device, the other virtual characters being unable to be controlled by the terminal device, comprising: A first selection unit, configured to select a first target character from the other virtual characters in response to a first operation on a selection control; A second selection unit, configured to select a second target character from candidate characters in response to a second operation on the selection control, wherein the candidate characters are virtual characters other than the first target character among the other virtual characters, and the first operation and the second operation are different operations; The virtual character selection apparatus is further configured to: Release a skill to the second target character in response to a touch operation on a skill control; Obtain a position of the first target character in the game scene in response to the touch operation on the skill control; If the position is not in a current field of view direction, control a field of view direction of the first virtual character to turn to the position, so that the first virtual character releases a skill corresponding to the skill control to the position, the current field of view direction being a field of view direction of the first virtual character in the game scene.

12. An electronic device, comprising: The terminal device includes a processor and a memory, the memory storing a plurality of instructions; the processor loads the instructions from the memory to execute the virtual character selection method according to any one of claims 1-10.

13. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to execute the virtual character selection method according to any one of claims 1-10.

Citation Information

Patent Citations

  • Virtual character control method, device and equipment and medium

    CN111589131A