Virtual Character Control Method, Device, Equipment, Storage Medium and Product
By providing station control controls in virtual scenes, users are allowed to adjust the position of virtual characters based on custom methods, solving the problem of insufficient flexibility in stance adjustment of virtual characters in the prior art, and collective stance adjustment of multiple virtual characters is realized.
Patent Information
- Application Number
- CN202111372101.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-18
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2041-11-18
AI Technical Summary
In the prior art, the stance adjustment of virtual characters in virtual scenes is poor, and it is impossible to achieve rapid layout switching of multiple virtual characters.
A virtual character control method is provided, by superimposing the display of the stance control control on the scene screen of the virtual scene, responding to the user's trigger operation, and adjusting the position of the virtual character based on a customized target adjustment method.
It realizes flexible adjustment of the positions of virtual objects in virtual scenes, and can collectively adjust the positions of multiple virtual characters, while ensuring the flexibility of position adjustment.
Smart Images

Figure CN114082189B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of virtual scenarios, and particularly to a virtual character control method, device, equipment, storage medium and product. Background Art
[0002] In an application with a virtual scenario of a self-chess type, to improve the flexibility of virtual games, the positions of virtual characters in the virtual scenario are usually adjustable.
[0003] In the related art, to quickly change the positions of multiple virtual characters, a layout switching button is usually set. Through this layout switching button, the user can achieve "one-key position swapping" of virtual objects in the virtual scenario.
[0004] However, the types of layouts that can be switched in the above method of achieving "one-key position swapping" by setting a layout switching button are fixed, resulting in poor flexibility in adjusting the positions of virtual objects in the virtual scenario. Summary of the Invention
[0005] The embodiments of the present application provide a virtual character control method, device, equipment, storage medium and product, which can improve the flexibility of adjusting the positions of virtual objects in the virtual scenario. The technical solution is as follows:
[0006] On the one hand, a virtual character control method is provided. The method includes:
[0007] Display the scene picture of the virtual scenario, where the target area of the virtual scenario contains at least one virtual character;
[0008] Overlay and display a position control control on the upper layer of the scene picture;
[0009] In response to receiving a trigger operation on the position control control, adjust the position of the target virtual character based on the target adjustment method; at least one of the target adjustment method and the target virtual character is determined based on the user's custom operation; the target virtual character belongs to the at least one virtual character.
[0010] On the other hand, a virtual character control device is provided. The device includes:
[0011] A picture display module for displaying the scene picture of the virtual scenario, where the target area of the virtual scenario contains at least one virtual character;
[0012] A control control display module for overlaying and displaying a position control control on the upper layer of the scene picture;
[0013] A standing position adjustment module, configured to, in response to receiving a triggering operation on the standing position control control, adjust the standing position of a target virtual character based on a target adjustment method; at least one of the target adjustment method and the target virtual character is determined based on a user's custom operation; the target virtual character belongs to the at least one virtual character.
[0014] In a possible implementation, the standing position control control includes at least two sub-controls;
[0015] The standing position adjustment module is configured to, in response to receiving a triggering operation on a target sub-control, adjust the standing position of the target virtual character based on the adjustment method corresponding to the target sub-control, where the target sub-control is any one of the at least two sub-controls.
[0016] In a possible implementation, the standing position adjustment module includes:
[0017] A state adjustment sub-module, configured to, in response to receiving a triggering operation on a first sub-control among at least two of the sub-controls, adjust the selection state of the at least one virtual character to an optional state;
[0018] A character acquisition sub-module, configured to, in response to receiving a character selection operation, acquire the virtual character selected based on the character selection operation as the target virtual character;
[0019] A position switching sub-module, configured to, in response to the end of the character selection operation, switch the standing position of the target virtual character from a first position to a second position; the standing positions of the target virtual character before and after the position switching are symmetric along a target axis.
[0020] In a possible implementation, the character selection operation includes at least one of: a continuous sliding operation based on the scene screen, a range selection operation based on the scene screen, or a click operation on a virtual character.
[0021] In a possible implementation, in response to the character selection operation being a continuous sliding operation based on the scene screen, the target virtual character is the virtual character selected based on the continuous sliding operation among the at least one virtual character;
[0022] In response to the character selection operation being a range selection operation based on the scene screen, the target virtual character is the virtual character within the range determined based on the range selection operation among the at least one virtual character;
[0023] In response to the character selection operation being a click operation on a virtual character, the target virtual character is the virtual character selected based on the click operation among the at least one virtual character.
[0024] In a possible implementation, in response to the character selection operation being a continuous sliding operation based on the scene screen, the position switching sub-module is configured to switch the standing position of the target virtual character from a first position to a second position in response to the interruption of the continuous sliding operation based on the scene screen.
[0025] In a possible implementation, the apparatus further includes:
[0026] A determination control display module, configured to display a determination control in response to receiving a trigger operation on the first sub-control;
[0027] The position switching sub-module is configured to switch the standing position of the target virtual character from a first position to a second position in response to receiving a trigger operation based on the determination control.
[0028] In a possible implementation, the target axis includes any one of the central axis of the scene screen, or the central axis relative to the target virtual character, or any axis determined based on the user's drawing operation.
[0029] In a possible implementation, the standing position adjustment module includes:
[0030] A region display sub-module, configured to display a layout display region in response to receiving a trigger operation on a second sub-control among at least two sub-controls, where at least one standing position layout is displayed in the layout display region; the standing position layout is the standing position layout determined based on the user's layout setting;
[0031] A standing position adjustment sub-module, configured to adjust the standing positions of the at least one virtual character based on the target standing position layout in response to receiving a selection operation on the target standing position layout; the target standing position layout is one of at least one of the standing position layouts.
[0032] In a possible implementation, the standing position adjustment sub-module includes:
[0033] An attack range acquisition unit, configured to acquire the attack ranges of the at least one virtual character;
[0034] The standing position adjustment unit is configured to adjust the standing positions of the at least one virtual character based on the attack ranges of the at least one virtual character and the target standing position layout.
[0035] In a possible implementation, the station position adjustment sub-module is configured to, in response to the number of stations corresponding to the target station layout being greater than the number of at least one virtual character, adjust the station positions of the at least one virtual character to the stations in the target station layout according to the target station order.
[0036] In a possible implementation, the apparatus further includes:
[0037] A planning interface display module, configured to display a layout planning interface;
[0038] A layout generation module, configured to generate the station layout based on the stations determined in the layout planning interface;
[0039] A layout addition module, configured to add the station layout to the layout display area.
[0040] In a possible implementation, the layout display area includes a layout addition control, and the planning interface display module is configured to, in response to receiving a trigger operation on the layout addition control, display the layout planning interface.
[0041] In a possible implementation, the control control display module is configured to, in response to receiving an activation operation, superimpose and display the station position control control on the upper layer of the scene picture;
[0042] Wherein, the activation operation includes at least one of: a target operation performed on the target area in the scene picture, and a trigger operation on an activation control.
[0043] In a possible implementation, the target operation includes a long press operation on the target area.
[0044] In a possible implementation, the station position adjustment module is configured to, in response to receiving a trigger operation on a third sub-control among at least two of the sub-controls, switch the station position of the at least one virtual character from a first position to a second position; the station positions of the at least one virtual character before and after the position switch are symmetric along a target axis.
[0045] On the other hand, a computer device is provided, the computer device includes a processor and a memory, the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the above virtual character control method.
[0046] On the other hand, a computer-readable storage medium is provided, the computer-readable storage medium stores at least one computer program, and the computer program is loaded and executed by a processor to implement the above virtual character control method.
[0047] On the other hand, a computer program product or a computer program is provided. The computer program product includes at least one computer program, which is loaded and executed by a processor to implement the virtual character control method provided in the above various optional implementation manners.
[0048] The technical solution provided by this application may include the following beneficial effects:
[0049] By providing a standing position control control, when the computer device receives a trigger operation based on the standing position control control, it can uniformly adjust the standing position of a custom-selected virtual object, or can uniformly adjust the standing position of the target object through a custom adjustment method, or can uniformly adjust the standing position of a custom-selected virtual object through a custom adjustment method. Thus, when adjusting the standing position of virtual characters in a virtual scene, a collective adjustment of the standing positions of multiple virtual characters can be realized based on the standing position control control, while ensuring the flexibility of adjusting the standing positions of virtual characters in the virtual scene.
[0050] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit this application. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application.
[0052] Figure 1 It is a schematic diagram of a chess game battle screen provided by an exemplary embodiment of this application;
[0053] Figure 2 It shows a block diagram of a computer system provided by an exemplary embodiment of this application;
[0054] Figure 3 It shows a schematic diagram of a state synchronization technology shown in an exemplary embodiment of this application;
[0055] Figure 4 It shows a schematic diagram of a frame synchronization technology shown in an exemplary embodiment of this application;
[0056] Figure 5 It shows a flowchart of a virtual character control method shown in an exemplary embodiment of this application;
[0057] Figure 6 It shows a schematic diagram of a scene screen shown in an exemplary embodiment of this application;
[0058] Figure 7 It shows a flowchart of a virtual character control method shown in an exemplary embodiment of this application;
[0059] Figure 8 Shows a schematic diagram of a scene picture shown in an exemplary embodiment of the present application;
[0060] Figure 9 Shows a schematic diagram of the scene pictures before and after mirroring a virtual character shown in an exemplary embodiment of the present application;
[0061] Figure 10 Shows a schematic diagram of determining a target virtual character based on a continuous sliding operation shown in an exemplary embodiment of the present application;
[0062] Figure 11 Shows a schematic diagram of determining a target virtual character through a range selection operation shown in an exemplary embodiment of the present application;
[0063] Figure 12 Shows a schematic diagram of a scene picture shown in an exemplary embodiment of the present application;
[0064] Figure 13 Shows a schematic diagram of the scene pictures before and after mirroring a virtual character shown in an exemplary embodiment of the present application;
[0065] Figure 14 Shows a schematic diagram of the added standing position layout shown in an exemplary embodiment of the present application;
[0066] Figure 15 Shows a schematic diagram of a layout display area shown in an exemplary embodiment of the present application;
[0067] Figure 16 Shows a flowchart of a virtual character control method shown in an exemplary embodiment of the present application;
[0068] Figure 17 Shows a block diagram of a virtual character control device shown in an exemplary embodiment of the present application;
[0069] Figure 18 Is a structural block diagram of a computer device shown according to an exemplary embodiment;
[0070] Figure 19 Is a structural block diagram of a computer device shown according to an exemplary embodiment. Detailed implementation
[0071] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0072] The present application provides a virtual character control method, which can improve the efficiency of adjusting the standing position of a virtual character. For ease of understanding, several terms related to the present application are explained below.
[0073] 1) Virtual scene: refers to the virtual scene displayed (or provided) when the application runs on the terminal. The virtual scene can be a simulation environment scene of the real world, a semi-simulated and semi-fictional three-dimensional environment scene, or a purely fictional three-dimensional environment scene. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5D virtual scene, and a three-dimensional virtual scene. In the following embodiments, the virtual scene is exemplified as a three-dimensional virtual scene, but it is not limited thereto.
[0074] 2) Auto chess: refers to a board game in which the "pieces" are pre-arranged before the game battle, and during the battle, the "pieces" can automatically battle according to the pre-arrangement. The "pieces" are usually represented by virtual characters, and during the battle, the virtual characters automatically release various skills to battle. The battle is usually in a turn-based system. When all the "pieces" of one side in the battle are killed (i.e., the health value of the virtual character is reduced to zero), that side is the losing side of the battle. In some embodiments, in addition to the "piece-type virtual characters" for the game, each side of the battle is also provided with a virtual character representing the user participating in the battle. This virtual character cannot be moved as a "piece" to the battle area or the preparation area. This virtual character is also provided with a health value (or blood volume), and the health value of this virtual character is correspondingly reduced (losing the battle) or remains unchanged (winning the battle) according to the result of each game. When the health value of this virtual character is reduced to zero, the user corresponding to this virtual character exits the battle, and the remaining users continue the battle.
[0075] Chessboard: refers to the area in the auto chess game battle interface for preparing for and conducting the battle. The chessboard can be any one of a two-dimensional virtual chessboard, a 2.5D virtual chessboard, and a three-dimensional virtual chessboard. The present application is not limited thereto.
[0076] The chessboard is divided into a battle area and a preparation area. Among them, the battle area includes several battle squares of the same size, which are used to place the battle pieces during the battle; the preparation area includes several preparation squares, which are used to place the preparation pieces. The preparation pieces do not participate in the battle during the battle and can be dragged and placed in the battle area during the preparation stage. In the embodiments of the present application, the battle piece roles include the piece roles located in the battle area and the piece roles located in the preparation area as an example for illustration.
[0077] Regarding the setting method of the squares in the battle area, in some embodiments, the battle area includes n (rows) × m (columns) battle squares. Schematically, n is an integer multiple of 2, and the squares in adjacent rows are aligned, or the squares in adjacent rows are staggered. In addition, the battle area is evenly divided into two parts by rows, namely the own battle area and the enemy battle area. The users participating in the battle are located on the upper and lower sides of the battle interface respectively. And during the preparation stage, the user can only place pieces in the own battle area. In other embodiments, the battle area is evenly divided into two parts by columns, namely the own battle area and the enemy battle area. The users participating in the battle are located on the left and right sides of the battle interface respectively. The shape of the square can be any one of a square, a rectangle, a circle, and a hexagon. The embodiments of the present application do not limit the shape of the square.
[0078] In some embodiments, the battle squares are always displayed on the chessboard. In other embodiments, the battle squares are displayed when the user arranges the battle pieces. When the battle pieces are placed in the squares, the battle squares are cancelled from display.
[0079] Schematically, Figure 1 is a schematic diagram of the chess game screen provided by an exemplary embodiment of the present application. As Figure 1 shown, the chessboard 11 in the battle interface includes a battle area 111 and a preparation area 112. Among them, the battle area 111 includes 3×7 battle squares. The shape of the squares is a hexagon, and the squares in adjacent rows are staggered. The preparation area 112 includes 9 preparation squares.
[0080] 3) Virtual characters in the auto-chess game: refer to the pieces placed on the chessboard in the auto-chess game, including the battle piece roles and the candidate piece roles in the candidate piece role list (that is, the candidate piece roles in the virtual store). Among them, the battle piece roles include the piece roles located in the battle area and the piece roles located in the preparation area. The virtual characters can be virtual pieces, virtual characters, virtual animals, anime characters, etc., and the virtual characters can be displayed using three-dimensional models. The candidate piece roles can trigger a buff battle effect after being combined with the user's existing battle piece roles, and can also participate in the chess game as a piece role alone.
[0081] Optionally, the position of the battle chess piece on the chessboard can be changed. In the preparation stage, the user can adjust the position of the chess piece in the battle area, adjust the position of the chess piece in the standby area, move the chess piece in the battle area to the standby area (when there is an idle standby chess grid in the standby area), or move the chess piece in the standby area to the battle area. It should be noted that in the battle stage, the position of the chess piece in the standby area can also be adjusted.
[0082] Optionally, in the battle stage, the position of the chess piece in the battle area is different from that in the preparation stage. For example, in the battle stage, the chess piece can automatically move from its own battle area to the enemy's battle area and attack the enemy's chess piece; or the chess piece can automatically move from position A in its own battle area to position B in its own battle area.
[0083] In addition, in the preparation stage, the chess piece can only be set in its own battle area, and the chess piece set by the enemy is invisible on the chessboard.
[0084] Regarding the acquisition method of the battle chess piece, in some embodiments, during the game, the user can purchase the chess piece with virtual currency in the preparation stage.
[0085] It should be noted that in some embodiments, a virtual character is used to represent the user participating in the battle. This virtual character can be a virtual person, a virtual animal, an anime character, etc. In the following embodiments, this type of virtual character is named the player virtual character or the user virtual character.
[0086] Schematically, as Figure 1 shown, in the battle area 111, the first battle chess piece 111a, the second battle chess piece 111b, and the third battle chess piece 111c are shown, and on the standby area 112, the first standby chess piece 112a, the second standby chess piece 112b, and the third standby chess piece 112c are set. A player virtual character 113 is shown beside the battle area and the standby area.
[0087] Attributes: Each chess piece in the auto-chess game has its own attributes, which include at least two of the following attributes: the camp to which the chess piece belongs (such as Alliance A, Alliance B, neutral faction, etc.), the occupation of the chess piece (such as warrior, shooter, mage, assassin, guard, swordsman, gunner, fighter, etc.), the attack type of the chess piece (such as magic, physical, etc.), the identity of the chess piece (such as noble, demon, elf, etc.), etc. The embodiments of the present application do not limit the specific types of attributes.
[0088] Optionally, each chess piece has at least two dimensions of attributes, and the equipment carried by the chess piece can enhance the attributes of the chess piece.
[0089] Optionally, in the battle area, when different chess piece characters have associated attributes (including different chess pieces having the same attribute, or different chess pieces having complementary types of attributes), and the quantity reaches a quantity threshold (or called a bond), the chess piece characters with this attribute or all the chess piece characters in the battle area can obtain the bonus effect corresponding to this attribute. For example, when there are 2 chess piece characters with the attribute of warrior in the battle area at the same time, all the battle chess piece characters obtain a 10% defense bonus; when there are 4 battle chess piece characters with the attribute of warrior in the battle area at the same time, all the battle chess piece characters obtain a 20% defense bonus; when there are 3 chess piece characters with the attribute of elf in the battle area at the same time, all the battle chess piece characters obtain a 20% dodge probability bonus.
[0090] It should be noted that the virtual character control method shown in this application can be applied to scenarios with the need for virtual character position control, such as the above-mentioned auto chess game scenario, card game scenario, etc. This application takes the auto chess game scenario as an example to illustrate the virtual character control method provided in this application.
[0091] Figure 2 The block diagram of a computer system provided by an exemplary embodiment of this application is shown. The computer system includes: a first terminal 120, a server 140, and a second terminal 160.
[0092] The first terminal 120 installs and runs an auto chess game application. The first terminal 120 is the terminal used by the first user. In the preparation stage of the game, the first user uses the first terminal 120 to arrange the chess piece characters in the battle area of the chessboard, and the first terminal 120 automatically controls the chess piece characters to fight according to the attributes, skills, and layout of the chess piece characters in the battle area during the battle stage.
[0093] The first terminal 120 is connected to the server 140 through a wireless network or a wired network.
[0094] Server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Schematically, server 140 includes a processor 144 and a memory 142. The memory 142 includes a receiving module 1421, a control module 1422, and a sending module 1423. Server 140 is used to provide background services for auto chess game applications, such as providing screen rendering services for auto chess games. Schematically, the receiving module 1421 is used to receive the layout information of the piece characters sent by the client; the control module 1422 is used to control the piece characters to automatically conduct battles according to the layout information of the piece characters; the sending module 1423 is used to send the battle results to the client. Optionally, server 140 undertakes the main computing work, and the first terminal 120 and the second terminal 160 undertake the secondary computing work; or, server 140 undertakes the secondary computing work, and the first terminal 120 and the second terminal 160 undertake the main computing work; or, a distributed computing architecture is adopted among server 140, the first terminal 120, and the second terminal 160 for collaborative computing.
[0095] Server 140 can adopt synchronization technology to make the screen performances among multiple clients consistent. Exemplarily, the synchronization technology adopted by server 140 includes: state synchronization technology or frame synchronization technology.
[0096] State synchronization technology: In an alternative embodiment based on Figure 2 , server 140 adopts state synchronization technology to synchronize with multiple clients. Figure 3 FIG. shows a schematic diagram of the state synchronization technology shown in an exemplary embodiment of the present application. In the state synchronization technology, as Figure 3 shown, the battle logic runs in server 140. When the state of a certain piece character on the battle chessboard changes, server 140 sends the state synchronization result to all clients, such as clients 1 to 10.
[0097] In an exemplary example, client 1 sends a request to server 140. The request carries the piece characters participating in the chess game battle and the layout of the piece characters. Then server 140 is used to generate the state of the piece characters during the battle according to the piece characters and the piece layout. Server 140 sends the state of the piece characters during the battle to client 1. Then, server 140 sends the data of virtual items sent to client 1 to all clients, and all clients update the local data and the interface performance according to this data.
[0098] Frame synchronization technology: In an alternative embodiment based on Figure 2 , server 140 adopts frame synchronization technology to synchronize with multiple clients. Figure 4 FIG. shows a schematic diagram of the frame synchronization technology shown in an exemplary embodiment of the present application. In the frame synchronization technology, asFigure 4 As shown, the combat logic runs on each client. Each client sends a frame synchronization request to the server, and the frame synchronization request carries local data changes of the client. After receiving a certain frame synchronization request, the server 140 forwards the frame synchronization request to all clients. After each client receives the frame synchronization request, it processes the frame synchronization request according to the local combat logic to update the local data and interface performance.
[0099] The second terminal 160 is connected to the server 140 through a wireless network or a wired network.
[0100] The second terminal 160 installs and runs a self-chess game application. The second terminal 160 is the terminal used by the second user. During the preparation stage of the game, the second user uses the second terminal 160 to arrange chess piece characters in the battle area of the chessboard. During the battle stage, the second terminal 160 automatically controls the chess piece characters to fight according to the attributes, skills, and arrangements of the chess piece characters in the battle area.
[0101] Optionally, the chess piece characters arranged by the first user through the first terminal 120 and the second user through the second terminal 160 are located in different areas on the same chessboard, that is, the first user and the second user are in the same game.
[0102] Optionally, the application programs installed on the first terminal 120 and the second terminal 160 are the same, or the application programs installed on the two terminals are the same type of application programs on different control system platforms. The first terminal 120 can generally refer to one of multiple terminals, and the second terminal 160 can generally refer to one of multiple terminals. This embodiment only takes the first terminal 120 and the second terminal 160 as examples for illustration. The device types of the first terminal 120 and the second terminal 160 are the same or different, and the device types include at least one of a smart phone, a tablet computer, an e-book reader, a digital player, a laptop computer, and a desktop computer.
[0103] Those skilled in the art can know that the number of the above terminals can be more or less. For example, the above terminal can be only one (that is, the user plays against the artificial intelligence), or the number of the above terminals is 8 (1v1v1v1v1v1v1v1, and 8 users conduct a round-robin game and elimination, and finally determine the winner), or a larger number. The embodiments of the present application do not limit the number and device type of the terminals.
[0104] Figure 5 The flowchart of the virtual character control method shown in an exemplary embodiment of the present application is shown. This method can be executed by a computer device, and the computer device can be implemented as a terminal or a server, such as Figure 5 As shown, the virtual character control method may include the following steps:
[0105] Step 510: Display the scene image of the virtual scene, where the target area of the virtual scene includes at least one virtual character.
[0106] In a possible implementation, the virtual scene may include a battle area and a preparation area. The target area may be the battle area in the virtual scene, and the at least one virtual character is the virtual character in the battle area. The at least one virtual character is the virtual character controlled by the current user.
[0107] Step 520: Superimpose and display a stance control control on the upper layer of the scene image.
[0108] In the embodiments of the present application, at least one virtual character in the target area may be in the game stage and the preparation stage in the virtual scene. Among them, in the preparation stage, the user can adjust the stance of at least one virtual character in the virtual scene for battle situation deployment. Therefore, in a possible implementation, a stance control control can be superimposed on the upper layer of the scene image, so that the user can quickly customize the deployment of the stance of the virtual character in the virtual scene through the stance control control. Figure 6 The figure shows a schematic diagram of the scene image shown in an exemplary embodiment of the present application, as Figure 6 shown, a stance control control 610 is superimposed and displayed on the upper layer of the scene image. The stance control control may be a single control, or may also be a set of multiple sub-controls with stance control functions. Figure 6 The shown stance control control includes at least one sub-control, and each sub-control is respectively used to trigger different custom stance controls. Optionally, when the stance control control is a single control, the custom stance control corresponding to the stance control control can be changed based on the user's operation method. Schematically, different custom stance controls can be determined based on the number of consecutive clicks of the user on the stance control control. For example, when the user clicks on the stance control control once, the custom stance adjustment method is determined as the first adjustment method; when the user double-clicks on the stance control control, the custom stance adjustment method is determined as the second adjustment method, and so on. Or, different custom stance controls can also be determined based on the duration of the user's long press on the stance control control. For example, when the duration of the long press is less than the first duration threshold, the custom stance adjustment method is determined as the first adjustment method; when the duration of the long press is greater than the first duration threshold but less than the second duration threshold, the custom stance adjustment method is determined as the second adjustment method, and so on.
[0109] Step 530: In response to receiving a trigger operation on the stance control control, adjust the stance of the target virtual character based on the target adjustment method; at least one of the target adjustment method and the target virtual character is determined based on the user's custom operation; the target virtual character belongs to at least one virtual character.
[0110] The target virtual character can be all or part of the virtual characters in the target area of the virtual scene determined based on the user's custom operations. Or, the target virtual character is the default number of virtual objects corresponding to the target adjustment method determined based on the user's custom operations. For example, the target adjustment method defaults to adjusting the positions of all virtual objects in the target area.
[0111] In the embodiments of the present application, the user can customize the target virtual character, including the position and quantity of the target virtual character, and the target adjustment method is the default adjustment method. Or, the user can customize the target adjustment method of the target virtual character, and the target virtual object is the default virtual object. Or, the user can customize the target adjustment method of the target virtual character on the basis of customizing the target virtual character. That is to say, the custom operation can include at least one of a character selection operation and a layout setting operation.
[0112] In summary, the virtual character control method provided by the embodiments of the present application enables the computer device to uniformly adjust the positions of the custom-selected virtual objects when receiving a trigger operation based on the position control control, or to uniformly adjust the positions of the target objects through a self-defined adjustment method, or to uniformly adjust the positions of the custom-selected virtual objects through a custom-defined adjustment method by providing a position control control. Therefore, when adjusting the positions of the virtual characters in the virtual scene, a collective adjustment of the positions of multiple virtual characters can be realized based on the position control control, while ensuring the flexibility of adjusting the positions of the virtual characters in the virtual scene.
[0113] Figure 7 The flowchart of the virtual character control method shown in an exemplary embodiment of the present application is shown. This method can be executed by a computer device, and the computer device can be implemented as a terminal or a server, such as Figure 7 As shown, the virtual character control method can include the following steps:
[0114] Step 710, display the scene picture of the virtual scene, where at least one virtual character is included in the target area of the virtual scene.
[0115] The virtual scene can be a scene where virtual characters controlled by two operating users play against each other. The operating users can each have their own battle areas and preparation areas. When the first user controls the virtual characters in the virtual scene, the virtual characters corresponding to the first user can be controlled. Or, at least one virtual character included in the target area of the virtual scene can be virtual characters belonging to the same camp. The target area can be the battle area in the current camp.
[0116] Step 720, superimpose and display a position control control on the upper layer of the scene screen.
[0117] In a possible implementation, the position control control can be superimposed and displayed on the scene screen when the scene screen is displayed; or, in another possible implementation, the position control control is not superimposed and displayed on the upper layer of the scene screen when the scene screen is displayed, but is superimposed and displayed only after receiving a specified operation. Schematically, in response to receiving an activation operation, the position control control is superimposed and displayed on the upper layer of the scene screen;
[0118] Among them, the activation operation includes at least one of a target operation performed on a target area in the scene screen and a trigger operation on an activation control.
[0119] The target operation may include a long press operation on the target area; optionally, the target operation may further include a double click operation on the target area, or a triple click operation on the target area, or a swipe operation on the target area, etc. The activation control can be a control set at any position on the upper layer of the scene screen to bring out the position control control when a trigger operation is received.
[0120] Taking the position control control in the embodiment of the present application as an example, which is a collection of multiple sub-controls with position control functions, the position control control includes at least two sub-controls; Figure 8 The figure shows a schematic diagram of the scene screen shown in an exemplary embodiment of the present application. Taking the target operation as a long press operation on the target area as an example, as Figure 8 shown, when a long press operation performed by the user on the target area 810 is received, the position control control 820 is superimposed and displayed on the upper layer of the scene screen.
[0121] Step 730, in response to receiving a trigger operation on the target sub-control, adjust the position of the target virtual character based on the adjustment method corresponding to the target sub-control, where the target sub-control is any one of at least two sub-controls.
[0122] Optionally, different sub-controls trigger different custom functions. Schematically, the first sub-control can trigger a character selection operation to perform custom settings on the virtual character whose position is to be adjusted to obtain the target virtual character, and then adjust the position of the target virtual character in the default position adjustment method.
[0123] In an exemplary solution, the default stance adjustment method may refer to mirror-switching the stance of the target virtual character. This mirror-switching means taking the target axis as the mirror line and symmetrically adjusting the stance of the target virtual object based on this mirror line; the second sub-control can trigger a layout setting operation to customize the stance adjustment method of the virtual character whose stance needs to be adjusted. Among them, the virtual character whose stance needs to be adjusted can be the virtual character set by default, such as all virtual characters in the target area. The fourth sub-control can trigger a layout setting operation after triggering a character selection operation to change the stance of the customized virtual character to the customized layout method, which improves the user's autonomy in overall adjustment of the stance of virtual characters, and further improves the flexibility of stance change for virtual characters.
[0124] In a possible implementation manner, the process of implementing the stance adjustment of virtual characters based on the first sub-control can be implemented as the following process:
[0125] In response to receiving a trigger operation on the first sub-control among at least two sub-controls, adjust the selection state of at least one virtual character to an optional state;
[0126] In response to receiving a character selection operation, obtain the virtual character selected based on the character selection operation as the target virtual character;
[0127] In response to the end of the character selection operation, switch the stance of the target virtual character from the first position to the second position; the stances of the target virtual character before and after the position switch are symmetric along the target axis.
[0128] Among them, the operation of switching the stance of the target virtual character from the first position to the second position, and the stances of the target virtual character before and after the position switch being symmetric along the target axis, can be called mirror-switching. That is to say, the first sub-control is used to control the stance mirror-switching of the virtual character determined based on the character selection operation among at least one virtual character in the target area. The first position is used to indicate the position of the virtual character before mirror-switching, and the second position is used to indicate the position after mirror-switching; the target virtual character can be all or part of at least one virtual character.
[0129] Schematically, the target axis can be the central axis of the scene picture, or the target axis can be the central axis relative to the target virtual character, or the target axis can also be any one of any axes determined based on the user's drawing operation. Optionally, the target axis can be set by the developer, or can also be preset or drawn by the user in advance. Or, in a possible implementation manner, in response to the end of the character selection operation, a mirror line setting interface is displayed. The mirror line setting interface includes at least two mirror line selection controls, corresponding to different mirror line setting methods respectively. Based on the user's selection operation, the target axis corresponding to one of the mirror line selection controls is determined as the mirror line; wherein, the target axes corresponding to at least two mirror line selection controls include the central axis of the scene picture, or the central axis relative to the target virtual character, or at least two of any axes determined based on the user's drawing operation. Schematically, when the user selects the mirror line as any axis determined based on the user's drawing operation, the mirror line drawing interface is entered, and the axis drawn by the user in the mirror line drawing interface is determined as the mirror line; the mirror line drawing interface can be the scene picture that enters the drawable state. Figure 9 FIG. shows a schematic diagram of the scene picture before and after mirroring of a virtual character shown in an exemplary embodiment of the present application. Taking the mirror line as the target axis determined based on the user's drawing operation as an example, as Figure 9 shown, the mirror line 910 is the axis drawn by the user based on actual needs. Taking the target axis as the mirror line, the standing positions of the target virtual characters in the target area are mirror-switched. Taking the target virtual character determined based on the character selection operation as all the virtual characters in the target area as an example, the virtual character 921 is mirror-switched from the current standing position to the standing position 931; the virtual character 922 is mirror-switched from the current standing position to the standing position 932, and the virtual character 923 is mirror-switched from the current standing position to the standing position 933.
[0130] In a possible implementation manner, if the standing position of the virtual character after mirroring based on the mirror line exceeds the target area, the standing position of the virtual character is not adjusted, and the standing positions of the virtual characters that do not exceed the target area after mirroring are adjusted.
[0131] In a possible implementation manner, in response to the fact that a second virtual character already exists at the second position after mirroring the first virtual character in the target virtual character, the standing position adjustment of the first virtual character can be achieved by any one of the following methods:
[0132] Do not adjust the standing position of the first virtual character;
[0133] Interchange the standing positions of the first virtual character and the second virtual character;
[0134] Move the second virtual character to an empty standing position adjacent to the second position, and move the first virtual character to the second position;
[0135] Keep the position of the second virtual character unchanged, and move the first virtual character to an empty standing position adjacent to the second position.
[0136] In a possible implementation, the character selection operation includes at least one of: a continuous sliding operation based on the scene screen, or a range selection operation based on the scene screen, or a point selection operation on the virtual character.
[0137] Among them, in response to the character selection operation being a continuous sliding operation based on the scene screen, the target virtual character is the virtual character selected based on the continuous sliding operation among at least one virtual character; schematically, the sliding operation refers to a one-time movement operation on the terminal screen when the user's finger does not bounce, or a one-time movement operation on the control device when the user does not release the target entity key (such as the left mouse button). Figure 10 The figure shows a schematic diagram of determining the target virtual character based on a continuous sliding operation shown in an exemplary embodiment of the present application, as Figure 10 shown, after receiving the trigger operation of the user on the first sub-control 1010, adjust the selection state of at least one virtual character in the target area to an optional state. The user can use any virtual character in the target area as the operation starting point, and without interruption of the operation (such as the finger not bouncing, or the target entity key not being released), complete the continuous sliding operation, and obtain the virtual character passed by the continuous sliding operation as the target virtual character 1020.
[0138] In response to the character selection operation being a range selection operation based on the scene screen, the target virtual character is the virtual character within the range determined based on the range selection operation among at least one virtual character; schematically, the range selection operation based on the scene screen can be a box selection operation based on the scene screen, and the box selection range corresponding to the range selection operation can be larger than the standing position range of the target virtual character in the target area. Schematically, Figure 11 The figure shows a schematic diagram of determining the target virtual character through a range selection operation shown in an exemplary embodiment of the present application, as Figure 11 shown, the user determines a larger box selection range 1110 through the range selection operation on the scene screen. The computer device can obtain the virtual characters within the box selection range 1110 as the target virtual characters 1120. The shape of the box selection range can be any one of a square, a rectangle, an ellipse, a circle, etc. The present application does not limit this.
[0139] In response to a character selection operation being a click operation on a virtual character, the target virtual character is the virtual character selected based on the click operation among at least one virtual character. In this case, the user can achieve decentralized selection of virtual characters without considering the selection order.
[0140] Schematically, the above three ways of determining the target virtual character can be used separately, or two of them can be combined, or all three ways can be combined. This application does not limit this.
[0141] The operation end nodes corresponding to different character selection operations can be the same or different. Schematically, if the character selection operation is a continuous sliding operation based on the scene screen, in response to the interruption of the continuous sliding operation based on the scene screen, the standing position of the target virtual character is switched from the first position to the second position.
[0142] That is to say, when the continuous sliding operation is interrupted, that is, it is determined that the continuous sliding operation ends, the computer device automatically mirrors the standing position of the target virtual character with the target axis as the mirror line; for example, when the user performs a continuous sliding operation with a finger, the finger is lifted, or when the user performs a continuous sliding operation with a physical device, the target physical button is released, then it is determined that the character selection operation ends.
[0143] In another possible implementation, in response to receiving a trigger operation on the first sub-control, a confirmation control is displayed. In this case, in response to receiving a trigger operation based on the confirmation control, the standing position of the target virtual character is switched from the first position to the second position.
[0144] That is to say, when it is determined that the target virtual character is selected through the character selection operation based on the first sub-control, a confirmation control can be superimposed and displayed on the upper layer of the scene screen. Figure 12 Shows a schematic diagram of the scene screen shown in an exemplary embodiment of the present application. Taking the determination of the target virtual character based on the box selection operation on the scene screen as an example, as Figure 12 shown, after receiving the trigger operation of the user on the first sub-control, the confirmation control 1210 is superimposed and displayed on the upper layer of the scene screen. After the user determines the target virtual character by at least one of the above three ways of determining the target virtual character, when receiving a selection operation on the confirmation control 1210, it is determined that the character selection operation ends, and the standing position of the determined target virtual character is mirrored and switched based on the target axis; the confirmation control is used to trigger the mirror operation based on the target axis, and the target axis is a pre-set or default mirror line; or, the confirmation control is used to trigger entering the mirror line setting interface to perform a mirror operation on the target virtual character based on the mirror line set in the mirror line setting interface. As Figure 12As shown, taking the example of mirror-switching the standing position of the target virtual character along the central axis of the scene screen, the standing position 1220 of the target virtual character is switched to the standing position 1230.
[0145] In a possible implementation, the at least one sub-control further includes a third sub-control for mirror-switching the standing positions of all virtual objects in the target area. Schematically, the process of adjusting the standing position of the virtual character based on the third sub-control can be implemented as the following process:
[0146] In response to receiving a trigger operation on the third sub-control among the at least two sub-controls, switch the standing position of at least one virtual character from the first position to the second position; the standing positions of the at least one virtual character before and after the position switch are symmetric along the target axis.
[0147] That is to say, when receiving the trigger operation on the third sub-control, by default, all virtual characters in the target area are obtained as the target virtual characters; Figure 13 shows a schematic diagram of the scene screen before and after mirroring of the virtual character shown in an exemplary embodiment of the present application. As Figure 13 shown, when the user selects the third sub-control 1310 in the standing position operation control, by default, all virtual characters in the target area are determined as the target virtual characters 1320; in the case where the mirror line 1330 is the central axis of the scene screen, based on this mirror line 1330, mirror-switch the standing position of the target virtual character to obtain the target virtual character 1340 after the standing position is changed.
[0148] Optionally, after determining the target virtual character based on the trigger operation on the third sub-control, it is determined that the character selection operation ends, and the mirror line setting interface can be entered to set the mirror line based on the user's selection operation and mirror-switch the standing position of the target virtual character based on the mirror line.
[0149] In a possible implementation, the process of adjusting the standing position of the virtual character based on the second sub-control can be implemented as the following process:
[0150] In response to receiving a trigger operation on the second sub-control among the at least two sub-controls, display a layout display area, and at least one standing position layout is displayed in the layout display area; the standing position layout is a standing position layout determined based on the user's layout setting.
[0151] In response to receiving a selection operation on the target standing position layout, based on the target standing position layout, adjust the standing position of at least one virtual character; the target standing position layout is one of the at least one standing position layout.
[0152] At least one standing layout included in the layout display area may be preset by the user before controlling the virtual character to enter the virtual scene. Alternatively, the at least one standing layout may also be added by the user after controlling the virtual character to enter the virtual scene. Or, the at least one standing layout includes both the one preset by the user before controlling the virtual character to enter the virtual scene and the one added by the user after controlling the virtual character.
[0153] Schematically, the process of adding a standing layout by the user after controlling the virtual character to enter the virtual scene can be implemented as follows:
[0154] Display a layout planning interface;
[0155] Generate a standing layout based on the standing positions determined in the layout planning interface;
[0156] Add the standing layout to the layout display area.
[0157] Optionally, the layout planning interface may be directly displayed after receiving a trigger operation on the second sub-control. Figure 14 The figure shows a schematic diagram of the added standing layout shown in an exemplary embodiment of the present application. As Figure 14 shown, after the user triggers the second sub-control 1410 in the standing position control control, the layout planning interface 1420 is displayed. All the standing positions in the target area are included in the layout planning interface 1420, such as a 3×7 battle chess grid. The user can select the standing positions in the layout planning interface to form a new standing layout. After receiving a selection operation on the layout generation control 1430 displayed in the layout planning interface, it is determined to generate a new standing layout 1440, and the standing layout is added to the layout display area 1450.
[0158] Optionally, a layout addition control may be displayed in the layout display area, so that the user can re-enter the layout planning interface to add a standing layout again after completing one addition of a standing layout.
[0159] Among them, the maximum number of positions that can be planned in the layout planning interface is equal to the maximum number of virtual characters that can be added in the target area of the virtual scene, or is equal to the maximum number of virtual characters that can currently be added in the target area of the virtual scene. For example, the number of virtual characters that can be added in the target area of the virtual scene increases with the increase of the user level. When the user level is the highest, the maximum number of virtual characters that can be added in the target area of the virtual scene is 9, and the maximum number of virtual characters that can be added based on the user's current level is 5. Then, the maximum number of plans in the layout planning interface can be set to 9 to plan a final version of the position layout, or the maximum number of plans in the layout planning interface can also be set to 5 to plan the position layout applicable to the current game.
[0160] Or, in another possible implementation manner, the layout planning interface is displayed after receiving a touch operation of the user on the layout addition control displayed in the layout display area, that is, in response to receiving a trigger operation on the second sub-control, the layout display area is displayed; a layout addition control is displayed in the layout display area;
[0161] In response to receiving a trigger operation on the layout addition control, the layout planning interface is displayed.
[0162] In this case, the layout display area may not include a position layout, or may include a position layout; Figure 15 The figure shows a schematic diagram of the layout display area shown in an exemplary embodiment of the present application. As Figure 15 shown, after the user clicks the second sub-control 1510 in the position control control, the layout display area 1520 is displayed. A layout addition control 1530 is included in the layout display area 1520. When the user performs a trigger operation on the layout addition control, the layout planning interface 1420 as shown in Figure 14 can be called up to generate a new position layout based on the layout planning interface and add it to the layout display area 1520.
[0163] Among them, the above two ways of opening the layout planning interface can be implemented through different sub-controls in at least one sub-control. For example, the fifth sub-control is used to directly open the layout planning interface when receiving a trigger operation, and the sixth sub-control is used to first open the layout display area including the layout addition control.
[0164] In a possible implementation, the position layout displayed in the layout display area may also include a historical position layout saved based on a user's save operation; the historical position layout may be a position layout in a target area corresponding to the user, or may be a position layout in a target area corresponding to other users that the user is watching when the user is in spectator mode. Schematically, a position layout saving control may be provided in the scene screen, which is used to record the position layout composed of the positions of at least one virtual character contained in the current target area when a selection operation is received, and save it in the layout display area for the user to select and use in the next game.
[0165] In a possible implementation, when changing the position of a virtual character based on the target position layout, the attack range of each virtual character may be used as a basis for the change. That is, based on the target position layout, the process of changing the position of at least one virtual character may include:
[0166] Obtaining the attack range of at least one virtual character;
[0167] Based on the attack range of the at least one virtual character and the target position layout, the position of the at least one virtual character is changed.
[0168] Schematically, a virtual character with a small attack range is located near the enemy's combat area in the target position layout, and a virtual character with a large attack range is located far from the enemy's combat area in the target position layout.
[0169] Alternatively, in another possible implementation, the position of at least one virtual character can be changed according to the character attributes of the virtual character, wherein the character attributes include occupational attributes, life value attributes, virtual character levels, etc.; for example, a virtual character whose occupational attribute is a warrior is set at a position adjacent to the enemy battle area in the target station layout, and a virtual character whose occupational attribute is a shooter is set at a position away from the enemy battle area in the target station layout; or, a virtual character with a higher life value upper limit is set at a position adjacent to the enemy battle area in the target station layout, and a virtual character with a lower life value upper limit is set at a position away from the enemy battle area in the target station layout; or, a virtual character with a higher virtual character level is set at a position adjacent to the enemy battle area in the target station layout, and a virtual character with a lower virtual character level is set at a position away from the enemy battle area in the target station layout. The basis for setting the position of the virtual character provided in the embodiment of the present application is only illustrative, and relevant personnel can also randomly set the position of at least one virtual character, or the basis for setting the position can also be user-defined, and the present application does not limit the basis for setting the position of the virtual character.
[0170] When the number of positions in the target position layout set or stored by the user is greater than the number of virtual characters in the current target area, in a possible implementation, during the process of changing the position layout of at least one virtual character based on the target position layout, in response to the number of positions corresponding to the target position layout being greater than the number of at least one virtual character, the positions of the at least one virtual character are adjusted to the positions in the target position layout according to the target position order.
[0171] Schematically, the target position order may refer to the order from left to right, or from the middle to both sides, or from front to back, etc. based on the positions in the target position layout. The present application does not limit the setting method of the target position order.
[0172] After the role selection operation is triggered based on the fourth sub-control, the process of mirror switching the target virtual character determined by the role selection operation through the layout setting operation may be a combination of the role selection process corresponding to the first sub-control and the layout setting process corresponding to the second sub-control. Schematically, in response to receiving the trigger operation on the fourth sub-control, the selection state of at least one virtual character is adjusted to the selectable state; in response to receiving the role selection operation, the virtual character selected based on the role selection operation is obtained as the target virtual character; the layout display area is displayed, and at least one position layout is displayed in the layout display area; the position layout is the position layout determined based on the user's layout setting; in response to receiving the selection operation on the target position layout, the position of the target virtual character is adjusted based on the target position layout. Among them, the implementation method of the above process can refer to the relevant content in the role selection process corresponding to the first sub-control and the layout setting process corresponding to the second sub-control, which will not be elaborated here.
[0173] In summary, the virtual character control method provided by the embodiments of the present application enables the computer device to uniformly adjust the positions of the custom-selected virtual objects, or to uniformly adjust the positions of the target objects through the self-defined adjustment method, or to uniformly adjust the positions of the custom-selected virtual objects through the custom-defined adjustment method when receiving the trigger operation based on the position control control. As a result, when adjusting the positions of the virtual characters in the virtual scene, the collective adjustment of the positions of multiple virtual characters can be achieved based on the position control control, while ensuring the flexibility of adjusting the positions of the virtual characters in the virtual scene.
[0174] Taking the auto chess scene as an example, Figure 16 The flowchart of the virtual character control method shown in an exemplary embodiment of the present application is shown. This method can be executed by a computer device, and the computer device can be implemented as a terminal or a server, such as Figure 16As shown, the virtual character control method includes:
[0175] S1601, receiving a touch operation on the chessboard area.
[0176] The chessboard area is the game area corresponding to the virtual character controlled by oneself in the auto-chess scenario.
[0177] S1602, determining whether the touch operation is a long-press operation. If so, execute S1603; otherwise, end.
[0178] S1603, activating the standing position control control.
[0179] The standing position control control includes a first sub-control, a second sub-control, and a third sub-control.
[0180] S1604, receiving a trigger operation on the first sub-control, and setting the chess pieces in the chessboard area to an optional state.
[0181] The first sub-control is one of the controls in the standing position control control.
[0182] S1605, receiving a marquee operation on the chess pieces.
[0183] S1606, receiving a trigger operation on the confirmation control, and mirroring the standing positions of the chess pieces obtained by marquee selection based on the target axis.
[0184] S1607, receiving a trigger operation on the second sub-control.
[0185] The second sub-control is used to call out a preset standing position layout.
[0186] S1608, popping up a layout display area, which includes at least one standing position layout.
[0187] S1609, receiving a selection operation on the target standing position layout.
[0188] The target standing position layout is one of the at least one standing position layouts.
[0189] S1610, adjusting the standing positions of the chess pieces in the target area based on the target standing position layout.
[0190] S1611, receiving a trigger operation on the third sub-control.
[0191] The third sub-control is one of the controls in the standing position control control.
[0192] S1612, mirroring all the standing positions of the chess pieces in the chessboard area based on the target axis.
[0193] In summary, the virtual character control method provided by the embodiments of the present application enables a computer device to uniformly adjust the positions of custom-selected virtual objects when receiving a trigger operation based on a position control control, or to uniformly adjust the positions of target objects through a custom adjustment method, or to uniformly adjust the positions of custom-selected virtual objects through a custom adjustment method. Therefore, when adjusting the positions of virtual characters in a virtual scene, a collective adjustment of the positions of multiple virtual characters can be achieved based on the position control control, while ensuring the flexibility of adjusting the positions of virtual characters in the virtual scene.
[0194] Figure 17 FIG. shows a block diagram of a virtual character control device according to an exemplary embodiment of the present application, as Figure 17 shown, the virtual character control device includes:
[0195] A screen display module 1710, configured to display a scene screen of a virtual scene, where at least one virtual character is included in a target area of the virtual scene;
[0196] A control control display module 1720, configured to superimpose and display a position control control on an upper layer of the scene screen;
[0197] A position adjustment module 1730, configured to, in response to receiving a trigger operation on the position control control, adjust the position of a target virtual character based on a target adjustment method; at least one of the target adjustment method and the target virtual character is determined based on a custom operation of a user; the target virtual character belongs to the at least one virtual character.
[0198] In a possible implementation manner, the position control control includes at least two sub-controls;
[0199] The position adjustment module is configured to, in response to receiving a trigger operation on a target sub-control, adjust the position of the target virtual character based on an adjustment method corresponding to the target sub-control, and the target sub-control is any one of the at least two sub-controls.
[0200] In a possible implementation manner, the position adjustment module 1730 includes:
[0201] A state adjustment sub-module, configured to, in response to receiving a trigger operation on a first sub-control among at least two of the sub-controls, adjust the selection state of the at least one virtual character to an optional state;
[0202] A role acquisition sub-module, configured to adjust the selection state of the at least one virtual role to an optional state in response to a trigger operation received for a first sub-control among at least two of the sub-controls;
[0203] A mirror image switching sub-module, configured to switch the standing position of the target virtual role from a first position to a second position in response to the end of the role selection operation; the standing positions of the target virtual role before and after the position switch are symmetric along a target axis.
[0204] In a possible implementation manner, the role selection operation includes at least one of: a continuous sliding operation based on the scene screen, or a range selection operation based on the scene screen, or a point selection operation on a virtual role.
[0205] In a possible implementation manner, in response to the role selection operation being a continuous sliding operation based on the scene screen, the target virtual role is the virtual role selected based on the continuous sliding operation among the at least one virtual role;
[0206] In response to the role selection operation being a range selection operation based on the scene screen, the target virtual role is the virtual role within the range determined based on the range selection operation among the at least one virtual role;
[0207] In response to the role selection operation being a point selection operation on a virtual role, the target virtual role is the virtual role selected based on the point selection operation among the at least one virtual role.
[0208] In a possible implementation manner, in response to the role selection operation being a continuous sliding operation based on the scene screen, the position switching sub-module is configured to switch the standing position of the target virtual role from a first position to a second position in response to the interruption of the continuous sliding operation based on the scene screen.
[0209] In a possible implementation manner, the apparatus further includes:
[0210] A determination control display module, configured to display a determination control in response to a trigger operation received for the first sub-control;
[0211] The position switching sub-module is configured to switch the standing position of the target virtual role from a first position to a second position in response to a trigger operation received based on the determination control.
[0212] In a possible implementation manner, the target axis includes any one of the central axis of the scene screen, or the central axis relative to the target virtual role, or any axis determined based on a user's drawing operation.
[0213] In a possible implementation, the stance adjustment module 1730 includes:
[0214] A region display sub-module, configured to display a layout display region in response to receiving a trigger operation on a second sub-control among at least two of the sub-controls, where at least one stance layout is displayed in the layout display region; the stance layout is the stance layout determined based on the layout setting of the user.
[0215] A stance adjustment sub-module, configured to adjust the stances of the at least one virtual character based on the target stance layout in response to receiving a selection operation on the target stance layout; the target stance layout is one of at least one of the stance layouts.
[0216] In a possible implementation, the stance adjustment sub-module includes:
[0217] An attack range acquisition unit, configured to acquire the attack ranges of the at least one virtual character.
[0218] The stance adjustment unit is configured to adjust the stances of the at least one virtual character based on the attack ranges of the at least one virtual character and the target stance layout.
[0219] In a possible implementation, the stance adjustment sub-module is configured to, in response to the number of stances corresponding to the target stance layout being greater than the number of the at least one virtual character, adjust the stances of the at least one virtual character to the stances in the target stance layout according to the target stance order.
[0220] In a possible implementation, the device further includes:
[0221] A planning interface display module, configured to display a layout planning interface.
[0222] A layout generation module, configured to generate the stance layout based on the stances determined in the layout planning interface.
[0223] A layout addition module, configured to add the stance layout to the layout display region.
[0224] In a possible implementation, the layout display region includes a layout addition control, and the planning interface display module is configured to display the layout planning interface in response to receiving a trigger operation on the layout addition control.
[0225] In a possible implementation, the control control display module 1720 is configured to superimpose and display the stance control control on the upper layer of the scene screen in response to receiving an activation operation.
[0226] Wherein, the activation operation includes at least one of: a target operation performed on the target area in the scene picture, and a triggering operation on the activation control.
[0227] In a possible implementation, the target operation includes a long-press operation on the target area.
[0228] In a possible implementation, the stance adjustment module 1730 is configured to, in response to receiving a triggering operation on a third sub-control among at least two of the sub-controls, switch the stance of the at least one virtual character from a first position to a second position; the stances of the at least one virtual character before and after the position switch are symmetric along a target axis.
[0229] In summary, the virtual character control device provided in the embodiments of the present application, by providing a stance control control, enables the computer device to uniformly adjust the stance of a custom-selected virtual object when receiving a triggering operation based on the stance control control, or to uniformly adjust the stance of a target object through a custom adjustment method, or to uniformly adjust the stance of a custom-selected virtual object through a custom adjustment method, so that when adjusting the stance of virtual characters in a virtual scene, a collective adjustment of the stances of multiple virtual characters can be realized based on the stance control control, while ensuring the flexibility of adjusting the stances of virtual characters in the virtual scene.
[0230] Figure 18 FIG. shows a block diagram of a computer device 1800 shown in an exemplary embodiment of the present application. The computer device may be implemented as the server in the above solution of the present application. The computer device 1800 includes a central processing unit (CPU) 1801, a system memory 1804 including a random access memory (RAM) 1802 and a read-only memory (ROM) 1803, and a system bus 1805 connecting the system memory 1804 and the central processing unit 1801. The computer device 1800 further includes a mass storage device 1806 for storing an operating system 1809, an application program 1810, and other program modules 1811.
[0231] The large-capacity storage device 1806 is connected to the central processing unit 1801 through a large-capacity storage controller (not shown) connected to the system bus 1805. The large-capacity storage device 1806 and its associated computer-readable medium provide non-volatile storage for the computer device 1800. That is, the large-capacity storage device 1806 may include a computer-readable medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0232] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media includes volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes RAM, ROM, erasable programmable read-only registers (EPROM), electrically-erasable programmable read-only memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, digital versatile disc (DVD), or other optical storage, magnetic tape cartridges, tapes, disk storage, or other magnetic storage devices. Of course, those skilled in the art will know that the computer storage media is not limited to the above several types. The above-mentioned system memory 1804 and large-capacity storage device 1806 may be collectively referred to as memory.
[0233] According to various embodiments of the present disclosure, the computer device 1800 may also run by connecting to a remote computer on the network through a network such as the Internet. That is, the computer device 1800 may be connected to the network 1808 through a network interface unit 1807 connected to the system bus 1805, or in other words, the network interface unit 1807 may also be used to connect to other types of networks or remote computer systems (not shown).
[0234] The memory further includes at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, at least one program, code set, or instruction set is stored in the memory. The central processing unit 1801 implements all or part of the steps in the virtual character control method shown in the above various embodiments by executing the at least one instruction, at least one program, code set, or instruction set.
[0235] Figure 19The structure block diagram of a computer device 1900 provided by an exemplary embodiment of the present application is shown. The computer device 1900 may be implemented as the above-mentioned terminal, such as: a smart phone, a tablet computer, a notebook computer or a desktop computer. The computer device 1900 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
[0236] Generally, the computer device 1900 includes: a processor 1901 and a memory 1902.
[0237] The processor 1901 may include one or more processing cores, such as a 4-core processor, a 19-core processor, etc. The processor 1901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), PLA (Programmable Logic Array). The processor 1901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1901 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1901 may also include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.
[0238] The memory 1902 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1902 may also include high-speed random access memory, as well as non-volatile memory, such as one or more disk storage devices, flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1902 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1901 to implement all or part of the steps in the virtual character control method provided in the method embodiments of the present application.
[0239] In some embodiments, computer device 1900 may further optionally include: a peripheral device interface 1903 and at least one peripheral device. The processor 1901, the memory 1902, and the peripheral device interface 1903 may be connected via a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1903 via a bus, signal lines, or a circuit board. Specifically, the peripheral devices include at least one of: a radio frequency circuit 1904, a display screen 1905, a camera assembly 1906, an audio circuit 1907, and a power supply 1909.
[0240] In some embodiments, computer device 1900 further includes one or more sensors 1910. The one or more sensors 1910 include, but are not limited to: an acceleration sensor 1911, a gyroscope sensor 1912, a pressure sensor 1913, an optical sensor 1915, and a proximity sensor 1916.
[0241] Those skilled in the art can understand that Figure 19 the structure shown in does not constitute a limitation on computer device 1900, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0242] In an exemplary embodiment, there is also provided a computer-readable storage medium for storing at least one instruction, at least one segment of program, a code set, or an instruction set, which is loaded and executed by a processor to implement all or part of the steps in the above virtual character control method. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0243] In an exemplary embodiment, there is also provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes all or part of the steps of the method shown in any of the above Figure 5 、 Figure 7 or Figure 16 any one of the embodiments.
[0244] Other embodiments of the present application will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only illustrative, and the true scope and spirit of the present application are pointed out by the following claims.
[0245] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.
Claims
1. A method for controlling virtual characters, characterized in that, the method includes: displaying a scene picture of a virtual scene, where at least one virtual character is included in the target area of the virtual scene; superimposing and displaying a standing position control control on the upper layer of the scene picture; in response to receiving a trigger operation on a first sub-control in the standing position control control, adjusting the selection state of the at least one virtual character to an optional state; in response to receiving a character selection operation, obtaining the virtual character selected based on the character selection operation as the target virtual character; the character selection operation includes at least one of the following: a continuous sliding operation based on the scene picture, a range selection operation based on the scene picture, and a point selection operation on the virtual character; in response to the end of the character selection operation, displaying a mirror line setting interface including at least two mirror line selection controls respectively corresponding to different mirror line setting methods; according to the user's selection operation on the target mirror line selection control, taking the target axis drawn in the mirror line drawing interface as the mirror line; switching the standing position of the target virtual character so that the standing positions of the target virtual character before and after the position switch are symmetric along the target axis; adjusting the standing positions of the virtual characters that do not exceed the target area after being mirrored based on the mirror line. If the standing position of the third virtual character after being mirrored exceeds the target area, the standing position of the third virtual character is not adjusted; in response to the fact that there is already a second virtual character at the second position after mirroring the first virtual character in the target virtual character, adjusting the standing position of the first virtual character in any of the following ways: not adjusting the standing position of the first virtual character; swapping the standing positions of the first virtual character and the second virtual character; moving the second virtual character to an empty standing position adjacent to the second position and moving the first virtual character to the second position; keeping the position of the second virtual character unchanged and moving the first virtual character to an empty standing position adjacent to the second position.
2. The method according to claim 1, characterized in that, the standing position control control includes at least two sub-controls; the method further includes: in response to receiving a trigger operation on a target sub-control, adjusting the standing position of the target virtual character based on the adjustment method corresponding to the target sub-control, where the target sub-control is any one of the at least two sub-controls.
3. The method according to claim 1, characterized in that, in response to the character selection operation being a continuous sliding operation based on the scene picture, the target virtual character is the virtual character selected based on the continuous sliding operation among the at least one virtual character; in response to the character selection operation being a range selection operation based on the scene picture, the target virtual character is the virtual character within the range determined based on the range selection operation among the at least one virtual character; in response to the character selection operation being a point selection operation on the virtual character, the target virtual character is the virtual character selected based on the point selection operation among the at least one virtual character.
4. The method according to claim 3, characterized in that, In response to the continuous sliding operation on the scene screen for the character selection operation, the method further includes: In response to the interruption of the continuous sliding operation on the scene screen, switch the standing position of the target virtual character from the first position to the second position.
5. The method according to claim 3, wherein, the method further includes: In response to receiving a trigger operation on the first sub-control, display a confirmation control; the method further includes: In response to receiving a trigger operation based on the confirmation control, switch the standing position of the target virtual character from the first position to the second position.
6. The method according to claim 2, wherein, the adjusting the standing position of the target virtual character based on the adjustment method corresponding to the target sub-control in response to receiving a trigger operation on the target sub-control includes: In response to receiving a trigger operation on the second sub-control among at least two sub-controls, display a layout display area in which at least one standing position layout is displayed; the standing position layout is the standing position layout determined based on the user's layout settings; In response to receiving a selection operation on a target standing position layout, adjust the standing positions of the at least one virtual character based on the target standing position layout; the target standing position layout is one of at least one standing position layout.
7. The method according to claim 6, wherein, the adjusting the standing positions of the at least one virtual character based on the target standing position layout in response to receiving a selection operation on the target standing position layout includes: Obtain the attack ranges of the at least one virtual character; Based on the attack ranges of the at least one virtual character and the target standing position layout, adjust the standing positions of the at least one virtual character.
8. The method according to claim 6, wherein, the adjusting the standing positions of the at least one virtual character based on the target standing position layout in response to receiving a selection operation on the target standing position layout includes: In response to the number of standing positions corresponding to the target standing position layout being greater than the number of the at least one virtual character, adjust the standing positions of the at least one virtual character to the standing positions in the target standing position layout in accordance with the target standing position order.
9. The method according to claim 6, wherein, the method further includes: Display a layout planning interface; Generate the standing position layout based on the standing positions determined in the layout planning interface; Add the standing position layout to the layout display area.
10. The method according to claim 9, wherein, the layout display area includes a layout addition control, and the displaying the layout planning interface includes: In response to receiving a trigger operation on the layout addition control, display the layout planning interface.
11. The method according to any one of claims 1 to 10, wherein, the superimposing and displaying the standing position control control on the upper layer of the scene screen includes: In response to receiving an activation operation, superimpose and display the standing position control control on the upper layer of the scene screen; Among them, the activation operation includes at least one of: a target operation performed on the target area in the scene picture, and a triggering operation on the activation control.
12. The method according to claim 11, wherein, the target operation includes a long press operation on the target area.
13. The method according to claim 2, wherein, the adjusting the standing position of the target virtual character based on the adjustment method corresponding to the target sub-control in response to receiving a triggering operation on the target sub-control includes: in response to receiving a triggering operation on a third sub-control among at least two sub-controls, switching the standing position of the at least one virtual character from a first position to a second position; the standing positions of the at least one virtual character before and after the position switch are symmetrical along a target axis.
14. A virtual character control device, wherein, the device includes: a screen display module for displaying a scene picture of a virtual scene, where at least one virtual character is included in the target area of the virtual scene; a control control display module for superimposing and displaying a standing position control control on the upper layer of the scene picture; the standing position adjustment module includes a state adjustment sub-module, a character acquisition sub-module, and a position switching sub-module. The state adjustment sub-module is configured to adjust the selection state of the at least one virtual character to an optional state in response to receiving a triggering operation on a first sub-control in the standing position control control; the character acquisition sub-module is configured to acquire the virtual character selected based on the character selection operation as the target virtual character in response to receiving a character selection operation; the character selection operation includes at least one of the following: a continuous sliding operation based on the scene picture, a range selection operation based on the scene picture, and a click operation on the virtual character; a module for performing the following steps: in response to the end of the character selection operation, displaying a mirror line setting interface including at least two mirror line selection controls respectively corresponding to different mirror line setting methods; and taking the target axis drawn in the mirror line drawing interface as the mirror line according to the selection operation of the user on the target mirror line selection control; the position switching sub-module is configured to switch the standing position of the target virtual character so that the standing positions of the target virtual character before and after the position switch are symmetrical along the target axis; a module for performing the following steps: adjusting the standing positions of the virtual characters that do not exceed the target area after being mirrored based on the mirror line, and if the standing position of the third virtual character after being mirrored exceeds the target area, not adjusting the standing position of the third virtual character; a module for performing the following steps: in response to the fact that a second virtual character already exists at the second position after mirroring the first virtual character in the target virtual character, adjusting the standing position of the first virtual character by any one of the following methods: not adjusting the standing position of the first virtual character; exchanging the standing positions of the first virtual character and the second virtual character; moving the second virtual character to an empty standing position adjacent to the second position, and moving the first virtual character to the second position; Keep the position of the second virtual character stationary and move the first virtual character to an empty standing position adjacent to the second position.
15. The device according to claim 14, wherein, the standing position control control includes at least two sub-controls; the standing position adjustment module is used for: In response to receiving a trigger operation on a target sub-control, based on the adjustment method corresponding to the target sub-control, adjust the standing position of the target virtual character, and the target sub-control is any one of the at least two sub-controls.
16. The device according to claim 14, wherein, In response to the character selection operation being a continuous sliding operation based on the scene screen, the target virtual character is the virtual character selected based on the continuous sliding operation among the at least one virtual character; In response to the character selection operation being a range selection operation based on the scene screen, the target virtual character is the virtual character within the range determined based on the range selection operation among the at least one virtual character; In response to the character selection operation being a click operation on a virtual character, the target virtual character is the virtual character selected based on the click operation among the at least one virtual character.
17. The device according to claim 16, wherein, In response to the character selection operation being a continuous sliding operation based on the scene screen, the position switching sub-module is used to respond to the interruption of the continuous sliding operation based on the scene screen and switch the standing position of the target virtual character from the first position to the second position.
18. The device according to claim 16, wherein, The device further includes: A determination control display module, used to display a determination control in response to receiving a trigger operation on the first sub-control; The position switching sub-module is used to respond to receiving a trigger operation based on the determination control and switch the standing position of the target virtual character from the first position to the second position.
19. The device according to claim 15, wherein, The standing position adjustment module further includes: An area display sub-module, used to display a layout display area in response to receiving a trigger operation on the second sub-control among at least two sub-controls, and at least one standing position layout is displayed in the layout display area; the standing position layout is the standing position layout determined based on the user's layout settings; A standing position adjustment sub-module, used to respond to receiving a selection operation on a target standing position layout and adjust the standing positions of the at least one virtual character based on the target standing position layout; the target standing position layout is one of at least one standing position layout.
20. The device according to claim 19, wherein, The standing position adjustment sub-module includes: An attack range acquisition unit, used to acquire the attack ranges of the at least one virtual character; A standing position adjustment unit, used to adjust the standing positions of the at least one virtual character based on the attack ranges of the at least one virtual character and the target standing position layout.
21. The device according to claim 19, wherein, The station position adjustment sub-module is configured to, in response to the number of station positions corresponding to the target station position layout being greater than the number of at least one virtual character, adjust the station positions of the at least one virtual character to the station positions in the target station position layout according to the target station position sequence.
22. The apparatus according to claim 19, wherein, the apparatus further comprises: a planning interface display module, configured to display a layout planning interface; a layout generation module, configured to generate the station position layout based on the station positions determined in the layout planning interface; a layout addition module, configured to add the station position layout to the layout display area.
23. The apparatus according to claim 22, wherein, the layout display area includes a layout addition control, and the planning interface display module is configured to, in response to receiving a trigger operation on the layout addition control, display the layout planning interface.
24. The apparatus according to any one of claims 14 to 23, wherein, the control control display module is configured to, in response to receiving an activation operation, superimpose and display the station position control control on the upper layer of the scene picture; wherein, the activation operation includes at least one of: a target operation performed on the target area in the scene picture, and a trigger operation on an activation control.
25. The apparatus according to claim 24, wherein, the target operation includes a long press operation on the target area.
26. The apparatus according to claim 15, wherein, the station position adjustment module is configured to, in response to receiving a trigger operation on a third sub-control among at least two sub-controls, switch the station positions of the at least one virtual character from a first position to a second position; the station positions of the at least one virtual character before and after the position switch are symmetric along a target axis.
27. A computer device, wherein, the computer device includes a processor and a memory, the memory stores at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the virtual character control method according to any one of claims 1 to 13.
28. A computer-readable storage medium, wherein, the computer-readable storage medium stores at least one computer program, and the computer program is loaded and executed by a processor to implement the virtual character control method according to any one of claims 1 to 13.
29. A computer program product, wherein, the computer program product includes at least one computer program, and the computer program is loaded and executed by a processor to implement the virtual character control method according to any one of claims 1 to 13.