Virtual object control method, device, electronic device and storage medium
By using grouping algorithms and grouping controls on the graphical user interface in real-time strategy games, the problem of inefficient selection of players when controlling multiple virtual objects is solved, achieving more efficient and accurate virtual object control, improving user experience.
Patent Information
- Application Number
- CN202111397170.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2041-11-23
AI Technical Summary
In existing real-time strategy games, when players select and control multiple virtual objects, they are limited by the game display interface, resulting in inefficient selection.
The graphical user interface is displayed through the terminal device, and in response to the control operation, multiple virtual objects are grouped according to the preset grouping algorithm, and the grouping controls corresponding to the grouped virtual team are displayed in the graphical user interface to quickly select the target virtual team.
It improves the selection efficiency and accuracy of virtual objects, and improves the user's interactive experience.
Smart Images

Figure CN113941152B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of game technologies, and particularly to a method, apparatus, electronic device, and storage medium for controlling virtual objects. Background Art
[0002] With the rapid development of the network, various online games have emerged, such as action games, strategy games, fighting games, shooting games, role-playing games, racing games, card games, etc. Among them, the Real-Time Strategy Game (RTS), as a type of strategy game, is characterized in that the game is played in real time.
[0003] In existing real-time strategy games, players need to control multiple troops, and generally select multiple troops for unified control by clicking in the game scene.
[0004] However, due to the influence of the game display interface, there are often problems of low selection efficiency during the selection process. Summary of the Invention
[0005] The purpose of this application is to provide a method, apparatus, electronic device, and storage medium for controlling virtual objects to improve the control efficiency of virtual objects in view of the above deficiencies in the existing technologies.
[0006] To achieve the above purpose, the technical solutions adopted in the embodiments of this application are as follows:
[0007] In a first aspect, the present invention provides a method for controlling virtual objects. A graphical user interface is displayed through a terminal device, and the graphical user interface displays a game screen. The game screen includes at least a plurality of virtual objects controlled by a player. The method includes:
[0008] In response to a first control operation, the plurality of virtual objects are grouped according to a preset grouping algorithm, and grouping controls corresponding to each virtual team after grouping are displayed in the graphical user interface. Each virtual team includes at least one of the virtual objects;
[0009] In response to a second control operation on at least one target grouping control among the grouping controls, the virtual team corresponding to the target grouping control is determined as the target virtual team.
[0010] In an optional implementation, the step of "in response to a first control operation, the plurality of virtual objects are grouped according to a preset grouping algorithm, and grouping controls corresponding to each virtual team after grouping are displayed in the graphical user interface" includes:
[0011] In response to a first control operation, multiple virtual objects are grouped according to the distances between the virtual objects and a preset distance threshold, and grouping controls corresponding to the grouped virtual teams are displayed in the graphical user interface.
[0012] In an alternative embodiment, the first control operation includes: a triggering operation on a preset control in the graphical user interface, and / or a triggering operation on at least two of the multiple virtual objects.
[0013] In an alternative embodiment, the displaying grouping controls corresponding to the grouped virtual teams in the graphical user interface includes: displaying grouping controls corresponding to the grouped virtual teams at a preset position in the graphical user interface, and / or in or around the mini - map window.
[0014] In an alternative embodiment, the grouping of multiple virtual objects according to the distances between the virtual objects and a preset distance threshold, and the displaying of grouping controls corresponding to the grouped virtual teams in the graphical user interface includes:
[0015] Multiple virtual objects are initially grouped according to the distances between the virtual objects and a preset distance threshold, and grouping controls corresponding to the initially grouped virtual teams are displayed in the graphical user interface;
[0016] In response to an update operation on the preset distance threshold, the updated preset distance threshold is displayed in the graphical user interface;
[0017] According to the updated preset distance threshold, the initially grouped virtual teams are regrouped, and grouping controls corresponding to the regrouped virtual teams are displayed in the graphical user interface.
[0018] In an alternative embodiment, before grouping multiple virtual objects according to the distances between the virtual objects and a preset distance threshold, and displaying grouping controls corresponding to the grouped virtual teams in the graphical user interface, it further includes:
[0019] In response to a first control operation, a preset editing interface is displayed in the graphical user interface;
[0020] In response to an editing operation on the initial distance threshold in the preset editing interface, the preset distance threshold is displayed in the preset editing interface.
[0021] In an alternative embodiment, the distance between each of the virtual objects is the distance between the distribution boundaries or centers of the virtual objects.
[0022] In an alternative embodiment, the method further includes:
[0023] In response to a third control operation on at least one target grouping control among the grouping controls, regroup the target virtual teams corresponding to at least one of the target grouping controls, and display the grouping controls corresponding to the regrouped virtual teams in the graphical user interface.
[0024] In an alternative embodiment, each of the grouping controls includes a grouping editing control corresponding to each virtual object in the corresponding virtual team, and the method further includes:
[0025] In response to an editing operation on at least one target grouping editing control among the grouping editing controls, regroup the target virtual object corresponding to the editing operation, and display the grouping controls corresponding to the regrouped virtual teams in the graphical user interface.
[0026] In an alternative embodiment, the method further includes:
[0027] In response to a fourth control operation on at least one target grouping control among the grouping controls, control the target virtual team corresponding to at least one of the target grouping controls to perform a preset action.
[0028] In an alternative embodiment, the step of, in response to a fourth control operation on at least one target grouping control among the grouping controls, controlling the target virtual team corresponding to at least one of the target grouping controls to perform a preset action includes:
[0029] In response to a fourth control operation on at least one target grouping control among the grouping controls, control the target virtual team to move from the current game scene position to the game scene position indicated by the fourth control operation.
[0030] In an alternative embodiment, each of the grouping controls includes a grouping editing control corresponding to each virtual object in the corresponding virtual team, the arrangement order of the grouping controls corresponding to each virtual team is determined according to the position information of each virtual team in the mini-map window, and / or the arrangement order of the grouping editing controls corresponding to each virtual object is determined according to the position information of each virtual object in the mini-map window.
[0031] In an alternative embodiment, different display methods are used to identify each of the virtual teams and / or grouping controls.
[0032] In a second aspect, the present invention provides a virtual object control device that displays a graphical user interface through a terminal device, the graphical user interface displays a game screen, the game screen includes at least a plurality of virtual objects controlled by a player, and the device includes:
[0033] A grouping module, configured to, in response to a first control operation, group a plurality of the virtual objects according to a preset grouping algorithm, and display grouping controls corresponding to each virtual team after grouping in the graphical user interface, where each virtual team includes at least one of the virtual objects;
[0034] A response module, configured to, in response to a second control operation on at least one target grouping control in the grouping controls, determine the virtual team corresponding to the target grouping control as a target virtual team.
[0035] In an alternative embodiment, the grouping module is specifically configured to, in response to a first control operation, group a plurality of the virtual objects according to the distance between each of the virtual objects and a preset distance threshold, and display grouping controls corresponding to each virtual team after grouping in the graphical user interface.
[0036] In an alternative embodiment, the first control operation includes: a triggering operation on a preset control in the graphical user interface, and / or, a triggering operation on at least two of the plurality of virtual objects.
[0037] In an alternative embodiment, the displaying grouping controls corresponding to each virtual team after grouping in the graphical user interface includes: displaying grouping controls corresponding to each virtual team after grouping at a preset position in the graphical user interface, and / or, in or around a mini-map window.
[0038] In an alternative embodiment, the grouping module is specifically configured to initially group a plurality of the virtual objects according to the distance between each of the virtual objects and a preset distance threshold, and display grouping controls corresponding to each virtual team after initial grouping in the graphical user interface;
[0039] In response to an update operation on the preset distance threshold, display the updated preset distance threshold in the graphical user interface;
[0040] Re-group each virtual team after initial grouping according to the updated preset distance threshold, and display grouping controls corresponding to each virtual team after re-grouping in the graphical user interface.
[0041] In an alternative embodiment, the grouping module is further configured to, in response to a first control operation, display a preset editing interface in the graphical user interface;
[0042] In response to an editing operation on an initial distance threshold in the preset editing interface, display the preset distance threshold in the preset editing interface.
[0043] In an alternative embodiment, the distance between each of the virtual objects is the distance between the distribution boundaries or centers of each of the virtual objects.
[0044] In an alternative embodiment, the response module is further configured to, in response to a third control operation on at least one target grouping control in the grouping controls, regroup the target virtual teams corresponding to the at least one target grouping control, and display the grouping controls corresponding to the regrouped virtual teams in the graphical user interface.
[0045] In an alternative embodiment, each of the grouping controls includes a grouping editing control corresponding to each virtual object in the corresponding virtual team. The response module is further configured to, in response to an editing operation on at least one target grouping editing control in the grouping editing controls, regroup the target virtual object corresponding to the editing operation, and display the grouping controls corresponding to the regrouped virtual teams in the graphical user interface.
[0046] In an alternative embodiment, the response module is further configured to, in response to a fourth control operation on at least one target grouping control in the grouping controls, control the target virtual teams corresponding to the at least one target grouping control to perform a preset action.
[0047] In an alternative embodiment, the response module is specifically configured to, in response to a fourth control operation on at least one target grouping control in the grouping controls, control the target virtual team to move from the current game scene position to the game scene position indicated by the fourth control operation.
[0048] In an alternative embodiment, each of the grouping controls includes a grouping editing control corresponding to each virtual object in the corresponding virtual team. The arrangement order of the grouping controls corresponding to each virtual team is determined according to the position information of each virtual team in the mini-map window, and / or the arrangement order of the grouping editing controls corresponding to each virtual object is determined according to the position information of each virtual object in the mini-map window.
[0049] In an alternative embodiment, different display methods are used to identify each of the virtual teams and / or grouping controls.
[0050] In a third aspect, the present invention provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus. The processor executes the machine-readable instructions to perform the steps of the virtual object control method according to any one of the foregoing embodiments.
[0051] Fourthly, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the steps of the virtual object control method as described in any one of the foregoing embodiments.
[0052] The beneficial effects of the present application are as follows:
[0053] In a virtual object control method, device, electronic device, and storage medium provided by an embodiment of the present application, the method can display a graphical user interface through a terminal device. The graphical user interface displays a game screen, and the game screen includes at least a plurality of virtual objects controlled by a player. The method may include: in response to a first control operation, grouping the plurality of virtual objects according to a preset grouping algorithm, and displaying grouping controls corresponding to each virtual team after grouping in the graphical user interface, where each virtual team includes at least one of the virtual objects; in response to a second control operation on at least one target grouping control in the grouping controls, determining the virtual team corresponding to the target grouping control as a target virtual team, achieving the ability to quickly select a plurality of virtual objects corresponding to the target virtual team, improving the selection efficiency of virtual objects, and enhancing the user interaction experience. Description of the Drawings
[0054] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.
[0055] Figure 1 It is an architecture diagram of a cloud interaction system provided by an embodiment of the present application;
[0056] Figure 2 It is a flowchart of a virtual object control method provided by an embodiment of the present application;
[0057] Figure 3 It is a schematic diagram of a game interface provided by an embodiment of the present application;
[0058] Figure 4 It is a flowchart of another virtual object control method provided by an embodiment of the present application;
[0059] Figure 5 It is a flowchart of yet another virtual object control method provided by an embodiment of the present application;
[0060] Figure 6 It is a flowchart of another virtual object control method provided by an embodiment of the present application;
[0061] Figure 7 Another schematic diagram of a game interface provided by an embodiment of the present application;
[0062] Figure 8 Another schematic diagram of a game interface provided by an embodiment of the present application;
[0063] Figure 9 A flowchart of another virtual object control method provided by an embodiment of the present application;
[0064] Figure 10 Another schematic diagram of a game interface provided by an embodiment of the present application;
[0065] Figure 11 Another schematic diagram of a game interface provided by an embodiment of the present application;
[0066] Figure 12 A flowchart of another virtual object control method provided by an embodiment of the present application;
[0067] Figure 13 A schematic diagram of functional modules of a virtual object control device provided by an embodiment of the present application;
[0068] Figure 14 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners
[0069] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are some but not all of the embodiments of the present application. Usually, the components of the embodiments of the present application described and illustrated in the accompanying drawings herein can be arranged and designed in various different configurations.
[0070] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but merely represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the scope of protection of the present application.
[0071] It should be noted that like reference numerals and letters denote like items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings.
[0072] In existing Real-Time Strategy Games (RTS), players need to control multiple troops. Generally, when performing control, players often click on the scene one by one or select several troops with adjacent positions by box selection for unified control. It can be seen that the existing control method for virtual objects is relatively simple. Therefore, players often face situations that affect point selection, such as position overlap. Therefore, the existing virtual object control method has the problem of low control efficiency. In addition to RTS games, other types of games with the functional requirement of controlling multiple virtual objects for game operations also have similar problems.
[0073] In view of this, an embodiment of the present application provides a virtual object control method. Applying this method can improve the selection efficiency and accuracy of virtual objects, and improve the interaction experience of players.
[0074] The virtual object control method in one embodiment of the present application can run on a terminal device or a server. Among them, the terminal device can be a local terminal device. When the virtual object control method runs on the server, the virtual object control method can be implemented and executed based on a cloud interaction system, where the cloud interaction system can include a server and a client device.
[0075] Figure 1 This is an architecture diagram of a cloud interaction system provided by an embodiment of the present application. Refer to Figure 1 As shown, the system can include: a client device 10 and a server 20. Among them, the client device 10 can be connected to the server 20 through a network 30.
[0076] In an optional implementation manner, various cloud applications can run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the running entity of the game program and the presenting entity of the game screen are separated. The storage and running of the game character transfer method are completed on the cloud game server. The role of the client device 10 is to receive, send data, and present the game screen. For example, the client device 10 can be a display device with data transmission function close to the user side, such as a mobile terminal, a television, a computer, a personal digital assistant, etc.; however, the terminal device for information processing is the cloud game server in the cloud. When playing a game, the player operates the client device 10 to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game screen, returns it to the client device 10 through the network, and finally, decodes and outputs the game screen through the client device 10.
[0077] In an optional embodiment, the terminal device may be a local terminal device. Taking a game as an example, the local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally, the game program is downloaded and installed on an electronic device and run. The manner in which the local terminal device provides the graphical user interface to the player may include various methods. For example, it may be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor. The display screen is used to present the graphical user interface, and the graphical user interface includes a game screen. The processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0078] Figure 2 FIG. is a schematic flowchart of a virtual object control method provided by an embodiment of the present application. The method can display a graphical user interface through a terminal device. The graphical user interface may display a game screen, and the game screen at least includes a plurality of virtual objects controlled by the player. The method may include:
[0079] S101. In response to a first control operation, group a plurality of virtual objects according to a preset grouping algorithm, and display grouping controls corresponding to each virtual team after grouping in the graphical user interface. Each virtual team includes at least one virtual object.
[0080] Among them, the player can generate a first control operation by acting on a preset area of the graphical user interface or a preset control in the graphical user interface based on a touch screen through touch methods such as clicking, long pressing, hard pressing, swiping, dragging, etc. In response to the first control operation, a plurality of virtual objects controlled by the player can be grouped according to a preset grouping algorithm. After grouping, grouping controls corresponding to each virtual team after grouping can be displayed in the graphical user interface, that is, the number of displayed grouping controls can be the same as the number of virtual teams.
[0081] Optionally, according to the setting of the preset grouping algorithm, each virtual team may include one or more virtual objects, which is not limited herein.
[0082] It should be noted that when grouping multiple virtual objects according to the preset grouping algorithm, it is possible to group only the multiple virtual objects displayed in the current game screen, that is, to implement local grouping. Or, it is possible to group all the virtual objects controlled by the player, that is, to implement global grouping. This application does not limit the specific grouping method here, and it can be flexibly set according to the actual application scenario. Optionally, the virtual objects controlled by the player may include, but are not limited to: virtual characters, virtual troops, virtual vehicles (such as virtual tanks, virtual airships, virtual airplanes, etc.), virtual props (such as playing cards, virtual ammunition, etc.), etc. This application does not make any limitations here, and it may vary according to the actual application scenario.
[0083] S102. In response to a second control operation on at least one target grouping control in the grouping controls, determine the virtual team corresponding to the target grouping control as the target virtual team.
[0084] Among them, in order to facilitate the player to quickly select each virtual team, optionally, each grouping control can be configured to determine the virtual team corresponding to the second control operation as the target virtual team in response to the second control operation. That is, the player can quickly select the target virtual team through each grouping control, improving the player's selection efficiency. Optionally, the second control operation can be generated by acting on at least one target grouping control in the grouping controls through touch control methods such as clicking, long pressing, pressing hard, sliding, dragging, etc. on the touch screen. This application does not limit the generation method of the second control operation here. In summary, it can be seen that compared with the existing method of selecting multiple virtual objects by frame selection and multiple clicks, applying the method of this embodiment of the application can quickly select the virtual objects corresponding to the target virtual team as the target virtual objects, improving the control efficiency and control accuracy of the virtual objects.
[0085] In summary, the embodiment of this application provides a virtual object control method. A graphical user interface can be displayed through a terminal device. The graphical user interface displays a game screen, and the game screen includes at least multiple virtual objects controlled by the player. The method may include: in response to a first control operation, grouping the multiple virtual objects according to a preset grouping algorithm, and displaying grouping controls corresponding to each virtual team after grouping in the graphical user interface, where each virtual team includes at least one of the virtual objects; in response to a second control operation on at least one target grouping control in the grouping controls, determining the virtual team corresponding to the target grouping control as the target virtual team, which realizes that the virtual objects corresponding to the target virtual team can be quickly selected as the target virtual objects, improving the selection efficiency and selection accuracy of the virtual objects, and improving the user interaction experience.
[0086] Optionally, the above first control operation may include: a triggering operation on a preset control in the graphical user interface, and / or, a triggering operation on at least two of the multiple virtual objects.
[0087] In some embodiments, based on the above description, the preset control in the graphical user interface may be a dedicated teaming control, or may be a control with other functions (such as a mini-map control, touching this control can bring up the mini-map and can also be regarded as the first control operation at the same time). Optionally, the preset control may float on the graphical user interface; or, it may be set in a preset area of the graphical user interface, so as not to block the player's game view, for example, in areas such as the upper left corner and the lower right corner; or, it may be hidden. During the game interaction process, the player can perform a preset touch operation (such as long pressing, pressing hard, multi-tapping) on a preset area of the graphical user interface (such as the upper right corner, the lower left corner, the center position) to trigger the teaming control to be displayed in the graphical user interface for the player to operate. The present application does not limit the setting method of the teaming control here. Optionally, based on the teaming control in the graphical user interface, the player can generate the above first control operation by performing touch operations such as clicking, long pressing, pressing hard, swiping, and dragging on the touch screen.
[0088] In some embodiments, the player can also generate the above first control operation by performing touch operations such as continuously clicking, drawing a circle, and selecting a box on at least two virtual objects based on the touch screen. It may vary according to the actual application scenario, and the present application does not limit the specific manifestation of the first control operation here.
[0089] Optionally, displaying the grouping controls corresponding to each virtual team after grouping in the graphical user interface includes: displaying the grouping controls corresponding to each virtual team after grouping at a preset position in the graphical user interface, and / or, in or around the mini-map window.
[0090] In some embodiments, the grouping controls displayed in the graphical user interface may be set at a preset position in the graphical user interface, for example, floating on the left edge position or the right edge position of the graphical user interface, etc., which is not limited here and can be flexibly set according to the actual application scenario and the user's usage habits; or, each grouping control may be displayed in the mini-map window. Optionally, for example, it may be displayed at the inner edge position or the outer edge position of the mini-map window. Specifically, it may be the left inner edge position or the right outer edge position in the mini-map window, etc., which is not limited here and can be flexibly set according to the actual application scenario.
[0091] Figure 3A schematic diagram of a game interface provided by an embodiment of the present application. Optionally, in response to a first control operation, grouping a plurality of virtual objects according to a preset grouping algorithm, and displaying grouping controls corresponding to each virtual team after grouping in a graphical user interface, including:
[0092] In response to a first control operation, grouping a plurality of virtual objects according to the distance between each virtual object and a preset distance threshold, and displaying grouping controls corresponding to each virtual team after grouping in a graphical user interface.
[0093] In some embodiments, in response to a first control operation, a plurality of virtual objects can be grouped according to the distance between each virtual object and a preset distance threshold. Optionally, for each virtual team after grouping, the distance between each virtual object belonging to the same virtual team should be less than the preset distance threshold. Optionally, the preset distance threshold can be denoted as n. It can be seen from applying the embodiments of the present application that intelligent grouping of each virtual object can be realized, which is convenient for players to quickly select all virtual objects of a certain virtual team.
[0094] Exemplarily, referring to Figure 3 As shown, the player's nickname is 123A, and virtual characters with the same label belong to the same virtual force. In order to make the virtual object control method provided by the present application applicable to the control of virtual forces, where one virtual force corresponds to one virtual object, from Figure 3 it can be seen that the game screen includes a plurality of virtual objects controlled by the player, that is, a plurality of virtual forces controlled by the player. Among them, the first virtual force S1 includes a virtual character labeled 1, the second virtual force S2 includes a virtual character labeled 2, the third virtual force S3 includes a virtual character labeled 3, and the fourth virtual force S4 includes a virtual character labeled 4. Referring to the above virtual character control method, optionally, the player can generate a first control operation by acting on the teaming control 103 of the graphical user interface through touch methods such as clicking, long pressing, hard pressing, sliding, and dragging on the touch screen. In response to this first control operation, a plurality of virtual objects can be grouped according to the distance between each virtual object (that is, each virtual force) and a preset distance threshold. Referring to Figure 3 As shown, the above four virtual forces can be divided into two groups. Among them, the first virtual force, the second virtual force, and the fourth virtual force belong to the first group of virtual teams, and the third virtual force belongs to the second group of virtual teams. And for any two virtual forces (S1 and S2, S2 and S4, S1 and S4) in the first group of virtual teams, the distance should be less than the preset distance threshold. For the second group of virtual teams, from Figure 3As can be seen, the distance between the third virtual force S3 in the second group of virtual teams and any other virtual force is relatively far, that is, the distance between the third virtual force S3 and any other virtual force is greater than the preset distance threshold. Therefore, the third virtual force S3 is taken as a separate virtual team. Continue to refer to Figure 3 As shown, after grouping, the first grouping control 101 corresponding to the first group of virtual teams and the second grouping control 102 corresponding to the second group of virtual teams after grouping can be displayed in the upper right corner of the graphical user interface. Applying the embodiments of the present application can facilitate players to quickly select multiple adjacent virtual forces for combat and improve the combat rhythm.
[0095] Of course, it should be noted that the specific display method is not limited thereto and may vary according to the actual application scenario.
[0096] Figure 4 It is a schematic flowchart of another virtual object control method provided by the embodiments of the present application. Optionally, refer to Figure 4 As shown, the above method of grouping multiple virtual objects according to the distance between each virtual object and the preset distance threshold and displaying the grouping controls corresponding to each virtual team after grouping in the graphical user interface includes:
[0097] S201. Group multiple virtual objects initially according to the distance between each virtual object and the preset distance threshold, and display the grouping controls corresponding to each virtual team after the initial grouping in the graphical user interface.
[0098] S202. In response to an update operation on the preset distance threshold, display the updated preset distance threshold in the graphical user interface.
[0099] Optionally, the preset distance threshold may be a default distance threshold. When grouping multiple virtual objects, multiple virtual objects can be initially grouped according to the distance between each virtual object and the preset distance threshold. After grouping, the grouping controls corresponding to each virtual team after the initial grouping can be displayed in the graphical user interface.
[0100] It can be understood that since the number of virtual teams after initial grouping may far deviate from the expected number of teams of players. For example, the number of virtual teams after initial grouping is much larger than, or much smaller than, the expected number of teams of players. In this case, for the convenience of players to adjust each virtual team, optionally, a touch display screen can be used to act on a preset area of the graphical user interface (such as the upper left corner area, the center area, the lower right corner area), or any virtual team, through touch operations such as clicking, long pressing, pressing hard, swiping, dragging, etc. In response to this touch operation, a preset editing interface can be displayed. The preset editing interface can include a preset distance threshold. In some embodiments, the preset distance threshold can be updated based on the touch screen through operations such as clicking, long pressing, pressing hard, swiping, dragging, etc. In response to the update operation of the preset distance threshold, for the convenience of players to intuitively know the updated preset distance threshold, optionally, the updated preset distance threshold can be displayed in the graphical user interface; wherein, the updated preset distance threshold can be greater than or less than the preset distance threshold before the update, which is not limited herein.
[0101] S203. Re-group each virtual team after initial grouping according to the updated preset distance threshold, and display the grouping controls corresponding to each re-grouped virtual team in the graphical user interface.
[0102] Furthermore, according to the updated preset distance threshold, each virtual team after initial grouping can be re-grouped, and the grouping controls corresponding to each re-grouped virtual team can be displayed in the graphical user interface. It can be understood that since the preset distance threshold is updated, the number of virtual teams after re-grouping will be greater than or less than the number of virtual teams after initial grouping, and the number of virtual teams after re-grouping will be more in line with the expected number of teams of players, which can improve the applicability of the control method of this application.
[0103] Figure 5 It is a flowchart of another virtual object control method provided by an embodiment of this application. Optionally, referring to Figure 5 as shown, before the above-mentioned grouping of multiple virtual objects according to the distance between each virtual object and the preset distance threshold, and displaying the grouping controls corresponding to each grouped virtual team in the graphical user interface, it further includes:
[0104] S301. In response to a first control operation, display a preset editing interface in the graphical user interface.
[0105] S302. In response to the editing operation on the initial distance threshold in the preset editing interface, display the preset distance threshold in the preset editing interface.
[0106] In some embodiments, in response to a first control operation, a preset editing interface may be displayed in the graphical user interface, and in this preset editing interface, the initial distance threshold may be edited based on the touch screen. In response to this editing operation, the preset distance threshold may be displayed in the preset editing interface. It can be understood that at this time, the user can know the set preset distance threshold in the preset editing interface. Optionally, the set preset distance threshold may also be marked in the graphical user interface in a floating manner for the user to know in real time.
[0107] Optionally, the value of the initial distance threshold may be 0, or it may be another default value, and its unit may be determined according to the distance measurement unit in the game screen, which is not limited here.
[0108] Optionally, the distance between the above virtual objects is the distance between the distribution boundaries or centers of the virtual objects.
[0109] In some scenarios, each virtual object may also correspond to a virtual force. It can be understood that in this case, a virtual force may include multiple virtual characters, multiple virtual equipment, etc. Then at this time, the distribution boundaries or centers of the virtual objects can be obtained, and the distances between the virtual objects can be calculated according to the distances between the distribution boundaries or centers of the virtual objects, realizing the grouping of multiple virtual forces. Referring to the foregoing description, it can be understood that after grouping multiple virtual forces, the grouping controls corresponding to the grouped virtual teams can be displayed in the graphical user interface. Each virtual team may include one or more virtual forces. Then at this time, the target virtual team can be selected through each grouping control, improving the selection efficiency of virtual objects.
[0110] Figure 6 This is a schematic flowchart of another virtual object control method provided by the embodiments of the present application. Optionally, referring to Figure 6 as shown, the above method further includes:
[0111] S401. In response to a third control operation on at least one target grouping control in the grouping controls, regroup the target virtual teams corresponding to the at least one target grouping control, and display the grouping controls corresponding to the regrouped virtual teams in the graphical user interface.
[0112] In some embodiments, to facilitate the user to regroup the grouped virtual teams, optionally, the user can act on at least one target grouping control in the grouping controls through touch methods such as clicking, long pressing, pressing hard, sliding, dragging, etc. based on the touch screen to generate a third control operation. In response to this third control operation, the target virtual teams corresponding to the at least one target grouping control can be regrouped, so that the regrouped virtual teams can better conform to the user's control habits and improve the user's interaction experience.
[0113] Optionally, if there is one target grouping control, after regrouping, the virtual objects corresponding to the target grouping control can be re-divided into multiple groups; if there are multiple target grouping controls, after regrouping, the virtual objects corresponding to the multiple target grouping controls can be integrated. For example, they can be integrated into one group, or alternatively, the virtual objects corresponding to the multiple target grouping controls can be regrouped according to the first grouping algorithm. Optionally, the first grouping algorithm can be configured to divide according to the type of virtual weapon held by the virtual object. For example, according to the first grouping algorithm, the virtual objects holding the same type among the virtual objects corresponding to the multiple target grouping controls can be divided into one group. Of course, the specific division method is not limited to this and can be flexibly set according to the actual application scenario.
[0114] Optionally, the third control operation can be a continuous touch operation following the second control operation. For example, the second control operation can be a click operation, and the third control operation can be a swipe operation following the click operation, or alternatively, the second control operation can be a long press operation, and the third control operation can be a drag operation following the long press operation, etc. This application does not make a limitation here and can be flexibly configured according to the actual application scenario and user usage habits.
[0115] Figure 7 This is another schematic diagram of the game interface provided by the embodiment of the present application. Figure 8 This is yet another schematic diagram of the game interface provided by the embodiment of the present application. Based on the above embodiments and with reference to Figure 7 For further illustration, the first grouping control 101 corresponding to the first group of virtual teams and the second grouping control 102 corresponding to the second group of virtual teams can be displayed on the outer edge below the mini-map window SA. Of course, the specific display method is not limited to this.
[0116] Based on the above embodiments and with reference to Figure 8 For further illustration, optionally, if the player believes that Figure 7 the grouping result shown does not meet the requirements, optionally, the player can generate a third control operation for the second grouping control 102 through touch operations such as clicking, long pressing, pressing hard, swiping, dragging, etc. on the touch screen (for example, it can be generated through a drag operation). In response to this third control operation, the target virtual team corresponding to the second grouping control 102 can be regrouped. Optionally, referring to what is shown in 8, after regrouping, the virtual teams corresponding to the first grouping control 101 and the virtual teams corresponding to the second grouping control 102 can be integrated together to generate the virtual team corresponding to the third grouping control 104. Of course, the specific control method is not limited to this.
[0117] Figure 9Schematic flowchart of another virtual object control method provided by an embodiment of this application. Optionally, each grouping control includes a grouping editing control corresponding to each virtual object in the corresponding virtual team. Refer to Figure 9 As shown, the above method further includes:
[0118] S501. In response to an editing operation on at least one target grouping editing control in the grouping editing control, regroup the target virtual object corresponding to the editing operation, and display the grouping controls corresponding to each virtual team after regrouping in the graphical user interface.
[0119] In some embodiments, if the number of virtual objects controlled by the player is small, for example, less than a preset threshold, in this case, to facilitate the player to regroup each virtual team after grouping so that each virtual team after regrouping meets the player's grouping expectations, optionally, each grouping control may include a grouping editing control corresponding to each virtual object in the corresponding virtual team. Then, at this time, each virtual team after grouping can be regrouped according to the grouping editing control corresponding to each virtual object. Among them, when regrouping, an editing operation on at least one target grouping editing control in the grouping editing control can be generated by means of sliding, dragging, etc. on the touch screen, and in response to this editing operation, the target virtual object corresponding to this editing operation can be regrouped. Optionally, the target virtual object can be deleted from the virtual team to which it belongs through this editing operation, or alternatively, the target virtual object can be assigned to another virtual team through this editing operation. This application does not make a limitation here, and it may vary according to the specific type of the editing operation.
[0120] Figure 10 Another game interface schematic diagram provided by an embodiment of this application Figure 11 Another game interface schematic diagram provided by an embodiment of this application. Based on the above embodiment and referring to Figure 10 For further illustration, the first grouping control 101 may include a first grouping editing control 111 corresponding to the first virtual army, a second grouping editing control 121 corresponding to the second virtual army, and a fourth grouping editing control 141 corresponding to the fourth virtual army. The second grouping control 102 may include a third grouping editing control 132 corresponding to the third virtual army.
[0121] Optionally, if the player believes that the above Figure 7The shown grouping result does not meet the requirements. Optionally, the player can perform editing operations such as clicking, long - pressing, hard - pressing, swiping, dragging, etc. (for example, dragging the second grouping edit control 121 to the position where the third grouping edit control 132 is located) on the second grouping edit control 121 among multiple grouping edit controls based on the touch screen. In response to this editing operation, the virtual objects corresponding to this editing operation can be regrouped. Optionally, after regrouping, referring to Figure 11 as shown, the second virtual force corresponding to the second grouping edit control 121 and the third virtual force corresponding to the third grouping edit control 132 can be integrated to obtain a fourth grouping control 105 and a fifth grouping control 106. Of course, the specific editing process is not limited to this.
[0122] Figure 12 is a schematic flowchart of another virtual object control method provided by an embodiment of the present application. Optionally, referring to Figure 12 as shown, the above - mentioned method further includes:
[0123] S601, in response to a fourth control operation on at least one target grouping control in the grouping controls, control the target virtual team corresponding to the at least one target grouping control to perform a preset action.
[0124] Based on the above description, it can be understood that after determining the target virtual team, the player may need to uniformly control the target virtual team. In this case, the player can perform touch operations such as clicking, long - pressing, hard - pressing, swiping, dragging, etc. on at least one target grouping control in the grouping controls based on the touch screen. In response to this fourth control operation, the target virtual team corresponding to one target grouping control can be controlled to perform a preset action. It can be seen that by applying the embodiment of the present application, the unified control of the target virtual team can be realized, improving the user's control experience.
[0125] Optionally, the preset action may include but is not limited to: attacking, retreating, assembling, etc., which is not limited herein and may vary according to the actual game scenario. Optionally, the fourth control operation can also be a continuous touch operation following the second control operation. For example, the second control operation can be a single - click operation, and the fourth control operation can be a swipe operation following the single - click operation. Or, the second control operation can be a long - press operation, and the fourth control operation can be a double - click operation following the long - press operation, etc. The present application is not limited herein and can be flexibly configured according to the actual application scenario and user usage habits.
[0126] Optionally, the above - mentioned in response to a fourth control operation on at least one target grouping control in the grouping controls, control the target virtual team corresponding to the at least one target grouping control to perform a preset action includes:
[0127] In response to a fourth control operation on at least one target grouping control in the grouping control, control the target virtual team to move from the current game scene position to the game scene position indicated by the fourth control operation.
[0128] In some embodiments, if grouping controls corresponding to each virtual team after grouping are displayed in or around the mini-map window, optionally, at least one target grouping control can be dragged to a target position in the mini-map in a dragging manner based on the touch screen to generate a fourth control operation for the at least one target grouping control. In response to the fourth control operation, the target virtual team can be controlled to move from the current game scene position to the game scene position indicated by the fourth control operation, that is, the game scene position corresponding to the target position in the mini-map in the game scene, for example, any position point in the game scene.
[0129] Of course, it should be noted that according to the actual application scenario, the fourth control operation can also be other touch methods, which are not limited in this application. For example, at least one target grouping control can be dragged to a target position in the game scene in a dragging manner based on the touch screen to generate a fourth control operation for the at least one target grouping control.
[0130] Optionally, the arrangement order of the grouping controls corresponding to each virtual team is determined according to the position information of each virtual team in the mini-map window, and / or the arrangement order of the grouping editing controls corresponding to each virtual object is determined according to the position information of each virtual object in the mini-map window.
[0131] Among them, when displaying the grouping controls corresponding to each virtual team after grouping, the arrangement order of each grouping control on the graphical user interface can be determined according to the position information of each virtual team in the mini-map window. Optionally, the arrangement order of each grouping control on the graphical user interface can be determined according to the position information of each virtual team from top to bottom and from left to right in the mini-map window. Optionally, when each virtual team includes multiple virtual objects, the position information of each virtual team in the mini-map window can be determined according to the central position where the multiple virtual objects are located. The position information of a virtual object in the mini-map window is actually the position information of the virtual object in the game scene.
[0132] Refer to the appendix Figure 10, the first grouping control 101 includes a first grouping editing control 111 corresponding to the first virtual force, a second grouping editing control 121 corresponding to the second virtual force, and a fourth grouping editing control 141 corresponding to the fourth virtual force. The second grouping control 102 includes a third grouping editing control 132 corresponding to the third virtual force. The arrangement order of the first grouping control 101 corresponds to the position of the first virtual team (composed of the first virtual force, the second virtual force, and the fourth virtual force) in the mini-map window SA, that is, it is arranged as the first one on the left. Among them, the arrangement of the first grouping editing control 111, the second grouping editing control 121, and the fourth grouping editing control 141 also corresponds to the positions of the first virtual force, the second virtual force, and the fourth virtual force in the mini-map window SA, that is, they are arranged in sequence from left to right. Similarly, the arrangement order of the second grouping control 102 corresponds to the position of the second virtual team (only the third virtual force) in the mini-map window SA, that is, the second one from the left (or the first one from the right). The above arrangement order is arranged according to the horizontal coordinates of the virtual objects in the mini-map. Of course, it can also be arranged according to the vertical coordinates of the virtual objects in the mini-map.
[0133] In some embodiments, to facilitate players to quickly determine the virtual teams to which each virtual object belongs, optionally, each grouping control may include an identifier corresponding to each virtual object. The identifiers corresponding to each virtual object may include, but are not limited to, icons, numbers, nicknames, etc., as long as each virtual object can be distinguished. Among them, when each grouping control includes an identifier corresponding to each virtual object, the arrangement order of the identifiers corresponding to each virtual object in the grouping control may be determined according to the position information of each virtual object in the mini-map window.
[0134] Exemplarily, referring to the above Figure 11 shown, the fourth grouping control 105 and the fifth grouping control 106 correspond to different virtual teams respectively. Then, different display methods can be used to identify the virtual objects in each virtual team. In addition, taking the fifth grouping control 106 as an example for illustration, the display style of the fifth grouping control 106 may be different from that of the fourth grouping control 105. In addition, it can also be seen that in the game screen, the outfits of the virtual objects belonging to the virtual team corresponding to the fifth grouping control 106 are consistent, and the fifth grouping control 106 may include an identifier corresponding to each virtual object. Among them, the identifier corresponding to the second virtual force is number 2, and the identifier corresponding to the third virtual force is number 3. And the arrangement order of the identifiers corresponding to each virtual force in the grouping control is determined according to the position information of each virtual force in the mini-map window SA.
[0135] In some embodiments, each grouping control includes a grouping editing control corresponding to each virtual object in the corresponding virtual team. Optionally, when displaying the grouping editing controls corresponding to each virtual object, the arrangement order of the grouping editing controls can be determined according to the position information of each virtual object in the mini - map window. The specific determination method can refer to the determination method of the grouping control corresponding to each virtual team, which will not be elaborated herein in this application.
[0136] Optionally, if each virtual object corresponds to a virtual army, then the arrangement order of the grouping editing controls corresponding to each virtual object can be determined according to the position information of the centers of the virtual armies in the mini - map window.
[0137] Optionally, different display methods are used to identify each virtual team and / or the grouping control.
[0138] In some embodiments, to facilitate players to quickly determine the grouping controls corresponding to each virtual team, different display methods can be used to identify each virtual team. For example, different virtual teams and / or grouping controls can be distinguished and displayed by means of colors, texts, icons, etc., so that players can quickly distinguish them.
[0139] Figure 13 This is a schematic diagram of the functional modules of a virtual object control device provided by an embodiment of this application. The virtual object control device can display a graphical user interface through a terminal device. The graphical user interface displays a game screen, and the game screen includes at least a plurality of virtual objects controlled by the player. The basic principle and the technical effects generated by this device are the same as those of the corresponding method embodiment described above. For the sake of brief description, for the parts not mentioned in this embodiment, reference can be made to the corresponding content in the method embodiment. As Figure 13 shown, the virtual object control device includes:
[0140] A grouping module 110, configured to, in response to a first control operation, group a plurality of the virtual objects according to a preset grouping algorithm, and display grouping controls corresponding to each virtual team after grouping in the graphical user interface, where each virtual team includes at least one of the virtual objects;
[0141] A response module 120, configured to, in response to a second control operation on at least one target grouping control in the grouping controls, determine the virtual team corresponding to the target grouping control as a target virtual team.
[0142] In an alternative embodiment, the grouping module 110 is specifically configured to, in response to a first control operation, group a plurality of the virtual objects according to the distances between the virtual objects and a preset distance threshold, and display grouping controls corresponding to each virtual team after grouping in the graphical user interface.
[0143] In an alternative embodiment, the first control operation includes: a triggering operation on a preset control in the graphical user interface, and / or, a triggering operation on at least two of the plurality of virtual objects.
[0144] In an alternative embodiment, the displaying of the grouping controls corresponding to the grouped virtual teams in the graphical user interface includes: displaying the grouping controls corresponding to the grouped virtual teams at a preset position in the graphical user interface, and / or, in or around the mini-map window.
[0145] In an alternative embodiment, the grouping module 110 is specifically configured to perform an initial grouping on the plurality of virtual objects according to the distances between the virtual objects and a preset distance threshold, and display the grouping controls corresponding to the initially grouped virtual teams in the graphical user interface;
[0146] In response to an update operation on the preset distance threshold, display the updated preset distance threshold in the graphical user interface;
[0147] According to the updated preset distance threshold, re-group the initially grouped virtual teams, and display the grouping controls corresponding to the re-grouped virtual teams in the graphical user interface.
[0148] In an alternative embodiment, the grouping module 110 is further configured to, in response to a first control operation, display a preset editing interface in the graphical user interface;
[0149] In response to an editing operation on the initial distance threshold in the preset editing interface, display the preset distance threshold in the preset editing interface.
[0150] In an alternative embodiment, the distance between each of the virtual objects is the distance between the distribution boundaries or centers of the virtual objects.
[0151] In an alternative embodiment, the response module 120 is further configured to, in response to a third control operation on at least one target grouping control among the grouping controls, re-group the target virtual team corresponding to the at least one target grouping control, and display the grouping controls corresponding to the re-grouped virtual teams in the graphical user interface.
[0152] In an alternative embodiment, each of the grouping controls includes a grouping editing control corresponding to each virtual object in the corresponding virtual team. The response module 120 is further configured to, in response to an editing operation on at least one target grouping editing control among the grouping editing controls, re-group the target virtual object corresponding to the editing operation, and display the grouping controls corresponding to the re-grouped virtual teams in the graphical user interface.
[0153] In an alternative embodiment, the response module 120 is further configured to control a target virtual team corresponding to at least one target grouping control to perform a preset action in response to a fourth control operation on at least one target grouping control in the grouping controls.
[0154] In an alternative embodiment, the response module 120 is specifically configured to control the target virtual team to move from the current game scene position to the game scene position indicated by the fourth control operation in response to a fourth control operation on at least one target grouping control in the grouping controls.
[0155] In an alternative embodiment, each of the grouping controls includes a grouping editing control corresponding to each virtual object in the corresponding virtual team, and the arrangement order of the grouping controls corresponding to each virtual team is determined according to the position information of each virtual team in the mini-map window, and / or, the arrangement order of the grouping editing controls corresponding to each virtual object is determined according to the position information of each virtual object in the mini-map window.
[0156] In an alternative embodiment, different display methods are used to identify each of the virtual teams and / or grouping controls.
[0157] The above device is used to execute the method provided in the foregoing embodiment, and its implementation principle and technical effects are similar, and will not be elaborated herein.
[0158] The above modules may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASICs), or, one or more microprocessors, or, one or more field programmable gate arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element dispatching program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. Again, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0159] Figure 14 It is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Refer to Figure 14As shown in the figure, the electronic device may include: a processor 210, a storage medium 220, and a bus 230. The storage medium 220 stores machine-readable instructions executable by the processor 210. When the electronic device runs, the processor 210 communicates with the storage medium 220 via the bus 230. The processor 210 executes the machine-readable instructions to perform the steps of the above method embodiments. The specific implementation manners and technical effects are similar and will not be elaborated here.
[0160] Optionally, the present application further provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, it performs the steps of the above method embodiments. The specific implementation manners and technical effects are similar and will not be elaborated here.
[0161] In several embodiments provided by the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.
[0162] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] In addition, in each embodiment of the present application, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware, or in the form of a combination of hardware and software functional units.
[0164] The integrated unit implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium and include several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods of various embodiments of the present application. The foregoing storage medium includes: various media that can store program codes such as USB flash drives, mobile hard disks, read-only memories (English: Read-Only Memory, abbreviated as ROM), random access memories (English: Random Access Memory, abbreviated as RAM), magnetic disks, or optical discs.
[0165] It should be noted that in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the existence of additional identical elements in the process, method, article or device comprising the element.
[0166] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application. It should be noted that similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.
Claims
1. A method for controlling virtual objects, characterized in that, a graphical user interface is displayed through a terminal device, the graphical user interface displays a game screen, and the game screen includes at least a plurality of virtual objects controlled by a player. The method includes: In response to a first control operation, group the plurality of virtual objects according to a preset grouping algorithm, and display grouping controls corresponding to each virtual team after grouping in the graphical user interface. Each virtual team includes at least one of the virtual objects; In response to a second control operation on at least one target grouping control in the grouping controls, determine the virtual team corresponding to the target grouping control as the target virtual team; The step of, in response to a first control operation, grouping the plurality of virtual objects according to a preset grouping algorithm, and displaying grouping controls corresponding to each virtual team after grouping in the graphical user interface, includes: In response to a first control operation, perform an initial grouping on the plurality of virtual objects according to the distance between each virtual object and a preset distance threshold, and display grouping controls corresponding to each virtual team after the initial grouping in the graphical user interface; In response to an update operation on the preset distance threshold, display the updated preset distance threshold in the graphical user interface; According to the updated preset distance threshold, re-group each virtual team after the initial grouping, and display grouping controls corresponding to each virtual team after re-grouping in the graphical user interface.
2. The method according to claim 1, characterized in that, the first control operation includes: a triggering operation on a preset control in the graphical user interface, and / or, a triggering operation on at least two of the plurality of virtual objects.
3. The method according to claim 1, characterized in that, the step of displaying grouping controls corresponding to each virtual team after grouping in the graphical user interface includes: displaying grouping controls corresponding to each virtual team after grouping at a preset position in the graphical user interface, and / or, in or around a mini-map window.
4. The method according to claim 1, characterized in that, before grouping the plurality of virtual objects according to the distance between each virtual object and a preset distance threshold, and displaying grouping controls corresponding to each virtual team after grouping in the graphical user interface, further includes: In response to a first control operation, display a preset editing interface in the graphical user interface; In response to an editing operation on an initial distance threshold in the preset editing interface, display the preset distance threshold in the preset editing interface.
5. The method according to claim 1, characterized in that, the distance between each virtual object is the distance between the distribution boundaries or centers of each virtual object.
6. The method according to claim 1, characterized in that, the method further includes: In response to a third control operation on at least one target grouping control in the grouping controls, re-group at least one target virtual team corresponding to the target grouping control, and display grouping controls corresponding to each virtual team after re-grouping in the graphical user interface.
7. The method according to claim 1, wherein, each of the grouping controls includes a grouping editing control corresponding to each virtual object in the corresponding virtual team, and the method further includes: responding to an editing operation on at least one target grouping editing control in the grouping editing controls, regrouping the target virtual object corresponding to the editing operation, and displaying the grouping controls corresponding to each virtual team after regrouping in the graphical user interface.
8. The method according to claim 1, wherein, the method further includes: responding to a fourth control operation on at least one target grouping control in the grouping controls, and controlling at least one target virtual team corresponding to the target grouping control to execute a preset action.
9. The method according to claim 8, wherein, the responding to a fourth control operation on at least one target grouping control in the grouping controls and controlling at least one target virtual team corresponding to the target grouping control to execute a preset action includes: responding to a fourth control operation on at least one target grouping control in the grouping controls, and controlling the target virtual team to move from the current game scene position to the game scene position indicated by the fourth control operation.
10. The method according to claim 1, wherein, each of the grouping controls includes a grouping editing control corresponding to each virtual object in the corresponding virtual team, and the arrangement order of the grouping controls corresponding to each virtual team is determined according to the position information of each virtual team in the mini-map window, and / or, the arrangement order of the grouping editing controls corresponding to each virtual object is determined according to the position information of each virtual object in the mini-map window.
11. The method according to any one of claims 1-10, wherein, different display methods are adopted to identify each virtual team and / or grouping control.
12. A virtual object control device, wherein, a graphical user interface is displayed through a terminal device, the graphical user interface displays a game screen, and the game screen at least includes a plurality of virtual objects controlled by a player, and the device includes: a grouping module, configured to respond to a first control operation, group the plurality of virtual objects according to a preset grouping algorithm, and display the grouping controls corresponding to each virtual team after grouping in the graphical user interface, and each virtual team includes at least one of the virtual objects; a response module, configured to respond to a second control operation on at least one target grouping control in the grouping controls, and determine the virtual team corresponding to the target grouping control as a target virtual team; the grouping module is specifically configured to respond to a first control operation, initially group the plurality of virtual objects according to the distance between the virtual objects and a preset distance threshold, and display the grouping controls corresponding to each virtual team after initial grouping in the graphical user interface; responding to an update operation on the preset distance threshold, and displaying the updated preset distance threshold in the graphical user interface. According to the updated preset distance threshold, regroup the virtual teams after the initial grouping, and display the grouping controls corresponding to the regrouped virtual teams in the graphical user interface.
13. An electronic device, characterized in that, it includes: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus. The processor executes the machine-readable instructions to perform the steps of the virtual object control method according to any one of claims 1-11.
14. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, it performs the steps of the virtual object control method according to any one of claims 1-11.
Citation Information
Patent Citations
Method for formulation control and intelligent control over game units
CN109876449A
Formation control method and device, computer equipment and storage medium
CN110404257A