Method, device, storage medium and electronic equipment for controlling virtual character
By responding to touch operations of cover and turning controls in the game interface, the virtual character can instantly teleport from one cover to an adjacent cover, solving the problem of cumbersome operation in the existing technology and improving the speed of cover hiding and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-11-17
- Publication Date
- 2026-07-21
Smart Images

Figure CN115738266B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game technology, and in particular to a method, apparatus, storage medium, and electronic device for controlling virtual characters. Background Technology
[0002] In the design of games and applications, some cover is usually set up in the game scene. Players can control the game character to move to the cover area to avoid the enemy player's line of sight, thereby achieving the purpose of cover defense.
[0003] Currently, the way to control game characters to move to covered areas is generally through a virtual joystick. Players drag the virtual joystick on the game interface to control the game character to walk or run to the covered area. However, this operation method is relatively cumbersome, and the game character is slow to take cover. Summary of the Invention
[0004] This invention provides a method, device, storage medium, and electronic device for controlling virtual characters, enabling game characters to quickly turn around cover and hide behind cover.
[0005] This application provides a method for controlling a virtual character, which provides a graphical user interface through an electronic device. The content displayed by the graphical user interface at least partially includes a game scene, cover controls, and a target virtual character and a target virtual cover located in the game scene. The target virtual cover includes multiple occlusion surfaces. The virtual character control method includes:
[0006] In response to a first touch operation on the cover control, the target virtual character is controlled to move behind the first occlusion surface of the target virtual cover;
[0007] In response to a second touch operation on the cover control, a turning control is displayed in the associated area of the cover control;
[0008] In response to a third touch operation on the turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second occlusion surface; wherein the third touch operation and the second touch operation are consecutive operations, and the second occlusion surface is the occlusion surface in the target virtual cover that is adjacent to the first occlusion surface.
[0009] This application also provides a virtual character control device applied in an electronic device. The electronic device provides a graphical user interface (GUI), the content of which at least partially includes a game scene, cover controls, and a target virtual character and a target virtual cover located within the game scene. The target virtual cover includes multiple occlusion surfaces. The virtual character control device includes:
[0010] The first control module is used to respond to a first touch operation on the cover control and control the target virtual character to enter behind the first occlusion surface of the target virtual cover;
[0011] A first display module is configured to respond to a second touch operation on the cover control and display a turning control in the associated area of the cover control;
[0012] The second control module is used to respond to a third touch operation on the turning control and control the target virtual character to move from behind the first occlusion surface to behind the second occlusion surface; wherein the third touch operation and the second touch operation are consecutive operations, and the second occlusion surface is the occlusion surface in the target virtual cover that is adjacent to the first occlusion surface.
[0013] In some embodiments, the first occlusion surface includes a main body area and at least one boundary area; the device further includes a prompting module for:
[0014] In response to the target virtual character reaching the rear of the boundary area of the first occlusion surface, a first prompt message is displayed through the graphical user interface. The first prompt message is used to prompt the second touch operation to be performed on the turning control.
[0015] In some embodiments, the graphical user interface further includes motion controls, and the device further includes a second display module for:
[0016] In response to a sliding operation on the movement control, the target virtual character is controlled to move within the game scene;
[0017] When the positions of the target virtual character and the target virtual cover satisfy a preset relationship, the cover control is displayed in the associated area of the target virtual cover.
[0018] In some embodiments, the first occlusion surface includes a main body area and at least one boundary area; the first display module is specifically used for:
[0019] In response to a second touch operation on the cover control, at least one turning control is displayed in the associated area of the cover control, wherein each turning control corresponds to one of the boundary areas.
[0020] In some embodiments, the boundary region includes a first boundary region and a second boundary region; the first display module is specifically used for:
[0021] In response to a second touch operation on the cover control, a first turning control and a second turning control are displayed in the associated area of the cover control. The turning control includes the first turning control and the second turning control. The first turning control corresponds to the first boundary area, and the second turning control corresponds to the second boundary area.
[0022] The second control module is specifically used for:
[0023] In response to a third touch operation on the first turning control, the target virtual character is controlled to move from behind the first occluding surface to behind the first target occluding surface, where the first target occluding surface is an occluding surface adjacent to the first occluding surface near the first boundary region; or,
[0024] In response to a third touch operation on the second turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second target occlusion surface, where the second target occlusion surface is an occlusion surface adjacent to the first occlusion surface and close to the second boundary region.
[0025] The second occlusion surface includes the first target occlusion surface and the second target occlusion surface.
[0026] In some implementations, the prompting module is further used for:
[0027] The graphical user interface displays a second prompt message, which prompts the user to perform the third touch operation on the turning control.
[0028] In some implementations, the third touch operation is a swipe operation from the cover control to the corner control.
[0029] In some embodiments, the first occlusion surface includes a main area and at least one boundary area; the prompting module is further configured to:
[0030] In response to the target virtual character reaching the boundary area of the first occlusion surface, a turning prompt message is displayed in the associated area of the boundary area reached by the target virtual character.
[0031] This application also provides a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute any of the above-described methods for controlling virtual characters.
[0032] This application also provides an electronic device, including a coupled memory and a processor, wherein the memory stores a computer program, and the processor is used to run the computer program in the memory to perform any of the above-described methods for controlling virtual characters.
[0033] The virtual character control method, apparatus, storage medium, and electronic device provided in this application control a target virtual character to move behind a first shielding surface of a target virtual cover in response to a first touch operation on a cover control. Then, in response to a second touch operation on the cover control, a turning control is displayed in the associated area of the cover control. Next, in response to a third touch operation on the turning control, the target virtual character moves from behind the first shielding surface to behind a second shielding surface. The third touch operation and the second touch operation are consecutive. The second shielding surface is the shielding surface adjacent to the first shielding surface in the target virtual cover. This allows the game character to quickly turn after entering cover, eliminating the need to control the game character to move step by step using movement controls. The operation is simple, enriches the cover-hiding methods, and improves the user experience. Attached Figure Description
[0034] The technical solution and other beneficial effects of this application will become apparent from the following detailed description of specific embodiments in conjunction with the accompanying drawings.
[0035] Figure 1 This is a schematic diagram illustrating an application scenario of the virtual character control method provided in this application embodiment.
[0036] Figure 2 This is a flowchart illustrating the method for controlling virtual characters provided in an embodiment of this application.
[0037] Figure 3 This is a schematic diagram illustrating the operation scenario of displaying a cover control in a graphical user interface provided in this application embodiment.
[0038] Figure 4 Another flowchart illustrating the method for controlling virtual characters provided in this application embodiment.
[0039] Figure 5 This is a schematic diagram illustrating the operation scenario of displaying the turning control in the graphical user interface provided in this application embodiment.
[0040] Figure 6 This is a schematic diagram illustrating the first prompt information and the turning prompt information in the graphical user interface provided in the embodiments of this application.
[0041] Figure 7 This is a schematic diagram of an operational scenario for triggering a turning skill as provided in an embodiment of this application.
[0042] Figure 8 This is a schematic diagram of the structure of the virtual character control device provided in the embodiments of this application.
[0043] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0044] Figure 10 Another structural schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation
[0045] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0046] It should be noted that the terms "first," "second," etc., used in this document are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Furthermore, the terms "comprising" and / or "including" as used herein specify the presence of the stated features, integers, steps, operations, units, and / or components, without excluding the presence or addition of one or more other features, integers, steps, operations, units, components, and / or combinations thereof.
[0047] This application provides a method, apparatus, storage medium, and electronic device for controlling virtual characters.
[0048] This method of controlling virtual characters can be applied to, for example... Figure 1 The hardware environment shown consists of electronic devices such as terminal 101 and server 102. Figure 1 In this configuration, server 102 connects to terminal 101 via a network and can be used to provide services (e.g., cloud gaming) to the terminal or clients installed on the terminal (e.g., cloud gaming clients). A database can be set up on server 102 or on other devices independent of server 102 to provide data storage services to server 102.
[0049] In one optional implementation, cloud gaming refers to a gaming method based on cloud computing. In cloud gaming, the game program and the game screen presentation are separate. The storage and execution of virtual character control methods are completed on the cloud gaming server. The cloud gaming client is used for data reception, transmission, and game screen presentation. For example, the cloud gaming client can be installed on a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, or PDA; however, the cloud gaming server in the cloud performs the game data processing. During gameplay, the player uses the cloud gaming client to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses game screen data, returns it to the cloud gaming client via the network, and finally, the cloud gaming client decodes and outputs the game screen.
[0050] In an optional implementation, the terminal is a local terminal device that stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., by conventionally downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the local terminal device's display screen or providing it to the player via holographic projection. For example, the local terminal device may include a display screen for displaying the GUI, which includes the game screen, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0051] Please see Figure 2 , Figure 2 This is a flowchart illustrating a method for controlling a virtual character provided in an embodiment of this application. The method is applied to electronic devices such as servers or terminals, and provides a graphical user interface through the electronic device. The content displayed by the graphical user interface includes at least a game scene, cover controls, and a target virtual character and a target virtual cover located in the game scene. The target virtual cover includes multiple occlusion surfaces.
[0052] The graphical user interface (GUI) can include multiple virtual characters. The target virtual character typically refers to the virtual character controlled by the player account currently logged into the electronic device; this can include human characters, animal characters, or other game characters. The GUI can also include multiple virtual cover objects. The target virtual cover can be a virtual cover whose distance from the target virtual character meets certain conditions. Virtual cover refers to an object that provides cover and defensive capabilities to the virtual character; its shape and size can be designed according to actual needs. For example, please refer to [reference needed]. Figure 3 , Figure 3 This is a schematic diagram of the operation scenario for displaying the cover control in the graphical user interface provided in this application embodiment. The graphical user interface includes a target virtual character R and two virtual covers S1 and S2. Virtual cover S2 is presented in the form of a container, and virtual cover S1 is presented in the form of a small mound, etc. Each virtual cover generally includes at least two occlusion surfaces, such as three or four. An occlusion surface refers to the outer surface of the virtual cover that provides occlusion to the virtual character; its area is usually not small and can completely or at least largely obscure the virtual character. The cover control is mainly used to trigger the cover hiding skill, which causes the character to teleport behind the occlusion surface of the virtual cover for hiding.
[0053] Specifically, the process of this virtual character control method may include the following steps S101-S103, wherein:
[0054] S101. In response to a first touch operation on the cover control, control the target virtual character to move behind the first occlusion surface of the target virtual cover.
[0055] The first touch operation can include touch operations such as clicking, and the first occlusion surface can be the occlusion surface closest to the target virtual character in the target virtual cover, which is usually the occlusion surface directly in front of the target virtual character's view. When the player performs the first touch operation on the cover control, it can trigger the target virtual character to teleport to behind the first occlusion surface directly in front of its line of sight.
[0056] In some implementations, the graphical user interface also includes motion controls; see [link to relevant documentation]. Figure 4 Prior to step S101 above, the method further includes:
[0057] S1041. In response to a sliding operation on the movement control, control the target virtual character to move within the game scene;
[0058] S1042. In response to the fact that the positions of the target virtual character and the target virtual cover satisfy a preset relationship, the cover control is displayed in the associated area of the target virtual cover.
[0059] The movement control can be a virtual joystick, which allows the target virtual character to move by dragging it. The preset relationship can be that the distance between the target virtual character and the target virtual cover reaches a distance threshold. This distance threshold is mainly used to define whether the distance between the target virtual character and the target virtual cover is far or near. That is, when the distance between the target virtual character and the target virtual cover is relatively close, a cover control can be displayed.
[0060] The associated region of the target virtual cover can be related to the occlusion surface that the target virtual character is currently facing. It can be any area on that occlusion surface, such as the center area, or an area near that surface, such as an area above it. For example, in... Figure 3 In the game, when the player drags the virtual joystick S to move, the target virtual character R will move accordingly. Once the distance L between the target virtual character R and the target virtual cover S2 reaches the distance threshold, a cover control Q can be displayed at the center of the target virtual cover.
[0061] S102. In response to a second touch operation on the cover control, display a turning control in the associated area of the cover control.
[0062] The second touch operation can be a long press. The associated area of the cover control can be determined based on the current display position of the cover control, such as the left or right side of the current display position. The turning control is mainly used to trigger turning skills, which cause the character to teleport from behind the current cover to behind another adjacent cover.
[0063] In some embodiments, the first shading surface includes a main area and at least one boundary area; step S102 may specifically include:
[0064] In response to a second touch operation on the cover control, at least one turning control is displayed in the associated area of the cover control, wherein each turning control corresponds to one of the boundary areas.
[0065] Each occlusion surface can include a main area and at least one boundary area surrounding the main area, with the main area typically being the central area of the occlusion surface. Normally, when a player performs the first touch operation (such as a click) on the cover control, they will move to the back of the main area by default.
[0066] Specifically, when a player performs a second touch operation on the cover control, one or more turning controls can be displayed. Different turning controls can trigger turning skills in different directions, such as turning left or turning right. Different turning controls are usually displayed in different positions and correspond to different boundary areas. For example, the turning control for turning left can be displayed in the left area of the cover control and corresponds to the left boundary area of the main area, while the turning control for turning right can be displayed in the right area of the cover control and corresponds to the right boundary area of the main area.
[0067] In some implementations, the boundary region may include a first boundary region and a second boundary region; please refer to [link to relevant documentation]. Figure 4 The above step S102 may further include:
[0068] In response to a second touch operation on the cover control, a first turning control and a second turning control are displayed in the associated area of the cover control. The turning control includes the first turning control and the second turning control, the first turning control corresponds to the first boundary area, and the second turning control corresponds to the second boundary area.
[0069] The first boundary region can be the boundary region located to the left of the main body region, and the second boundary region can be the boundary region located to the right of the main body region. For example, please refer to [link to relevant documentation]. Figure 5 , Figure 5This is a schematic diagram of an operation scenario illustrating the display process of a cornering control in a graphical user interface provided in this application embodiment. The first obscuring surface S21 includes a main area S211, a first boundary area S212 located to the left of the main area S211, and a second boundary area S213 located to the right of the main area and S211. When the player performs a second touch operation (such as a long press) on the cover control Q, two cornering controls P1 and P2 can be displayed. Cornering control P1 corresponds to the first boundary area S212 and is located to the left of the cover control Q, while cornering control P2 corresponds to the second boundary area S213 and is located to the right of the cover control Q.
[0070] In some implementations, when the character is behind the first occlusion surface, before displaying the turning control, the user can be further prompted in the graphical user interface how to trigger the display of the turning control based on the character's movement position. That is, when the first occlusion surface includes a main area and at least one boundary area, the method for controlling the virtual character may further include:
[0071] In response to the target virtual character reaching the rear of the boundary area of the first occlusion surface, a first prompt message is displayed through the graphical user interface. The first prompt message is used to prompt the second touch operation to be performed on the turning control.
[0072] The first prompt message can be displayed to the user in icon and / or text form. When it includes both icons and text, the text can describe the specific touch operation (i.e., the second touch operation mentioned above), such as "long press," while the icon can indicate the specific object being operated on. The first prompt message can be displayed in the associated area of the cover control, such as the area above the cover control. The first prompt message can be displayed in the graphical user interface whenever the target virtual character is located in any boundary area.
[0073] For example, please see Figure 6 , Figure 6 This is a schematic diagram illustrating the first prompt information and the turning prompt information in the graphical user interface provided in this application embodiment. When the player manipulates the movement control (virtual joystick S) to move the target virtual character R from the main area S211 to the left boundary area S212, the first prompt information K1, including the text "long press" and an arrow, can be displayed in the area above the cover control Q. The "long press" is used to indicate the specific touch operation, and the arrow is used to indicate the object of the "long press" operation.
[0074] In some implementations, when the character is behind the first occlusion surface, before displaying the turning control, the user can be further prompted in the graphical user interface to trigger the turning skill based on the character's movement position. That is, the method for controlling the virtual character may also include:
[0075] In response to the target virtual character reaching the rear of the boundary area of the first occlusion surface, a turning prompt message is displayed in the associated area of the boundary area reached by the target virtual character.
[0076] The turning prompt information can be displayed to the user in icon and / or text form. When it includes an icon, the icon can include an arrow indicating the direction of the turn. The associated region of the boundary area can include the local area where the edge of the boundary area is located. For example, if the boundary area is on the left, its associated region can include the local area where the left edge of the boundary area is located; if the boundary area is on the right, its associated region can include the local area where the right edge of the boundary area is located.
[0077] For example, in the above Figure 6 In the game, when the player controls the movement control (virtual joystick S) to move the target virtual character R from the main area S211 to the left boundary area S212, a turning prompt information K2 can be displayed in the local area where the left edge of the boundary area S212 is located. The turning prompt information K2 can include an arrow indicating the left turn direction and a character in a crouching posture.
[0078] It is easy to understand that the aforementioned turning prompts and the first prompt can be displayed simultaneously or sequentially, or only one of them can be displayed.
[0079] S103. In response to a third touch operation on the turning control, control the target virtual character to move from behind the first occlusion surface to behind the second occlusion surface; wherein the third touch operation and the second touch operation are consecutive operations, and the second occlusion surface is the occlusion surface in the target virtual cover that is adjacent to the first occlusion surface.
[0080] The phrase "the third touch operation and the second touch operation are consecutive operations" means that the interval between the third touch operation and the second touch operation is relatively short, such as less than a certain threshold. The third touch operation can be a manually set swipe operation, double-tap operation, or other touch operation. When the third touch operation is performed on the turning control, the turning skill can be triggered, that is, to instantly teleport from the current occluded surface to another adjacent occluded surface.
[0081] In some implementations, the third touch operation can be a sliding operation from the cover control to the corner control, that is, a sliding operation with the cover control as the starting point and the corner control as the ending point. For example, please refer to... Figure 7 , Figure 7This is a schematic diagram of the operation scenario for triggering the turning skill provided in this application embodiment. Wherein, if the turning control corresponds to the left boundary region S212 of the main body region S211, the sliding operation can be a sliding motion from the cover control Q to the left-side turning control P1; if the turning control corresponds to the right boundary region S213 of the main body region S211, the sliding operation can be a sliding motion from the cover control Q to the right-side turning control P2.
[0082] In some implementations, the method for controlling the virtual character may further include:
[0083] The graphical user interface displays a second prompt message, which prompts the user to perform the third touch operation on the turning control.
[0084] The second prompt message can be displayed to the user in icon and / or text form. For example, when displayed as text, it could be "Drag the button left / right to the specified area to complete the turn." When displayed as an icon, the second prompt message could be a dashed arrow from the cover control to the turn control, such as "Please continue to see..." Figure 7 The second prompt information K3 may include a dashed arrow pointing from the cover control Q to the left-hand turning control P1, and a dashed arrow pointing from the cover control Q to the right-hand turning control P2.
[0085] In some implementations, when the boundary region includes the first boundary region and the second boundary region, and the turning control includes the first turning control and the second turning control, please refer to [link to relevant documentation]. Figure 4 The above step S103 may specifically include:
[0086] In response to a third touch operation on the first turning control, the target virtual character is controlled to move from behind the first occluding surface to behind the first target occluding surface, where the first target occluding surface is an occluding surface adjacent to the first occluding surface near the first boundary region; or,
[0087] In response to a third touch operation on the second turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second target occlusion surface, where the second target occlusion surface is an occlusion surface adjacent to the first occlusion surface and close to the second boundary region.
[0088] The second occlusion surface includes the first target occlusion surface and the second target occlusion surface.
[0089] Wherein, if the first boundary region is the left boundary region and the second boundary region is the right boundary region, then the first target occlusion surface is the adjacent occlusion surface located to the left of the first occlusion surface, and the second target occlusion surface is the adjacent occlusion surface located to the right of the second occlusion surface.
[0090] For example, in the above Figure 7 In the process, when the third touch operation is performed, if the third touch operation is to slide from the cover control Q to the first turning control P1, the target virtual character R can be controlled to move from the first occlusion surface S21 to behind the first target occlusion surface S22 on the left. If the third touch operation is to slide from the cover control Q to the second turning control P2, the target virtual character R can be controlled to move from the first occlusion surface S21 to behind the second target occlusion surface S23 on the right.
[0091] As described above, the virtual character control method provided in this embodiment controls the target virtual character to enter behind the first obscuring surface of the target virtual cover by responding to a first touch operation on the cover control. Then, responding to a second touch operation on the cover control, a turning control is displayed in the associated area of the cover control. Next, responding to a third touch operation on the turning control, the target virtual character is controlled to move from behind the first obscuring surface to behind the second obscuring surface. The third touch operation and the second touch operation are consecutive operations. The second obscuring surface is the obscuring surface in the target virtual cover that is adjacent to the first obscuring surface. This allows the game character to quickly turn after entering the cover to hide, without having to control the game character to move step by step through the movement control to achieve the turn. The operation method is simple, enriches the cover hiding methods, and improves the user experience.
[0092] Based on the methods described in the above embodiments, this embodiment will further describe the virtual character control device from the perspective of the virtual character control device. The virtual character control device can be implemented as an independent entity and can be applied to electronic devices such as servers or terminals. The terminal can include mobile phones, tablets, personal PCs, etc., and the server can be a server that can provide game services.
[0093] Please see Figure 8 , Figure 8 This application provides a specific description of a virtual character control device. This device is applied in an electronic device and provides a graphical user interface (GUI). The GUI displays at least partially a game scene, cover controls, and a target virtual character and a target virtual cover located within the game scene. The target virtual cover includes multiple occlusion surfaces. The virtual character control device may include: a first control module 10, a first display module 20, and a second control module 30, wherein:
[0094] (1) First control module 10
[0095] The first control module 10 is used to respond to a first touch operation on the cover control and control the target virtual character to enter behind the first occlusion surface of the target virtual cover.
[0096] In some embodiments, the graphical user interface further includes motion controls, and the device further includes a second display module for:
[0097] In response to a sliding operation on the movement control, the target virtual character is controlled to move within the game scene;
[0098] When the positions of the target virtual character and the target virtual cover satisfy a preset relationship, the cover control is displayed in the associated area of the target virtual cover.
[0099] (2) First display module 20
[0100] The first display module 20 is configured to respond to a second touch operation on the cover control and display a turning control in the associated area of the cover control.
[0101] In some embodiments, the first occlusion surface includes a main body area and at least one boundary area; the device further includes a prompting module for:
[0102] In response to the target virtual character reaching the rear of the boundary area of the first occlusion surface, a first prompt message is displayed through the graphical user interface. The first prompt message is used to prompt the second touch operation to be performed on the turning control.
[0103] (3) Second control module 30
[0104] The second control module 30 is used to respond to a third touch operation on the turning control and control the target virtual character to move from behind the first occlusion surface to behind the second occlusion surface; wherein the third touch operation and the second touch operation are consecutive operations, and the second occlusion surface is the occlusion surface in the target virtual cover that is adjacent to the first occlusion surface.
[0105] In some embodiments, the boundary region includes a first boundary region and a second boundary region; the first display module 20 is specifically used for:
[0106] In response to a second touch operation on the cover control, a first turning control and a second turning control are displayed in the associated area of the cover control. The turning control includes the first turning control and the second turning control. The first turning control corresponds to the first boundary area, and the second turning control corresponds to the second boundary area.
[0107] The second control module 30 is specifically used for:
[0108] In response to a third touch operation on the first turning control, the target virtual character is controlled to move from behind the first occluding surface to behind the first target occluding surface, where the first target occluding surface is an occluding surface adjacent to the first occluding surface near the first boundary region; or,
[0109] In response to a third touch operation on the second turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second target occlusion surface, where the second target occlusion surface is an occlusion surface adjacent to the first occlusion surface and close to the second boundary region.
[0110] The second occlusion surface includes the first target occlusion surface and the second target occlusion surface.
[0111] In some implementations, the prompting module is further used for:
[0112] The graphical user interface displays a second prompt message, which prompts the user to perform the third touch operation on the turning control.
[0113] In some implementations, the third touch operation is a swipe operation from the cover control to the corner control.
[0114] In some embodiments, the first occlusion surface includes a main area and at least one boundary area; the prompting module is further configured to:
[0115] In response to the target virtual character reaching the boundary area of the first occlusion surface, a turning prompt message is displayed in the associated area of the boundary area reached by the target virtual character.
[0116] In practice, the above modules can be implemented as independent entities or combined in any way to be implemented as the same or several entities. For the specific implementation of the above modules, please refer to the previous method implementation examples, which will not be repeated here.
[0117] In addition, this application also provides an electronic device, which may be a smartphone, tablet computer, or other similar device. Figure 9 As shown, the electronic device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are electrically connected.
[0118] The processor 201 is the control center of the electronic device 200. It connects various parts of the electronic device through various interfaces and lines. By running or loading the application program stored in the memory 202 and calling the data stored in the memory 202, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole.
[0119] In this embodiment, the processor 201 in the electronic device 200 loads the instructions corresponding to the processes of one or more applications into the memory 202 according to the following steps, and the processor 201 runs the applications stored in the memory 202 to realize various functions.
[0120] Figure 10 A detailed structural block diagram of an electronic device provided in an embodiment of this application is shown. This electronic device can be used to implement the virtual character control method provided in the above embodiments. The electronic device may include a smartphone or a server.
[0121] The electronic device may include a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a radio frequency (RF) circuit 303, a power supply 304, an input unit 305, and a display unit 306, etc. Those skilled in the art will understand that the electronic device structure shown in the figures does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0122] The processor 301 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 302, and by calling data stored in the memory 302, thereby providing overall monitoring of the electronic device. Optionally, the processor may include one or more processing cores; preferably, the processor may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may also not be integrated into the processor.
[0123] The memory 302 can be used to store software programs (computer programs) and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
[0124] RF circuit 303 can be used for signal reception and transmission during information transmission and reception. Specifically, it receives downlink information from the base station and hands it over to one or more processors 301 for processing; additionally, it transmits uplink data to the base station. Typically, RF circuit 303 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a low-noise amplifier (LNA), a duplexer, etc. Furthermore, RF circuit 303 can also communicate wirelessly with networks and other devices. This wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System for Mobile Communications), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, and SMS (Short Messaging Service).
[0125] The electronic device also includes a power supply 304 (such as a battery) that supplies power to various components. Preferably, the power supply 304 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. The power supply 304 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0126] The electronic device may also include an input unit 305, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, in one embodiment, the input unit 305 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display or touchpad, can collect user touch operations on or near it (e.g., user operations using fingers, styluses, or any suitable object or accessory on or near the touch-sensitive surface) and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 301, and can receive and execute commands from the processor 301. Furthermore, various types of touch-sensitive surfaces, such as resistive, capacitive, infrared, and surface acoustic wave, can be used to implement the touch-sensitive surface. In addition to the touch-sensitive surface, the input unit 305 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of the following: a physical keyboard, function keys (such as volume control buttons, power buttons, etc.), a trackball, a mouse, and a joystick.
[0127] The electronic device may further include a display unit 306, which can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. The display unit 306 includes multiple hardware display processing units, a video frame processing module, a display screen, etc. The multiple hardware display processing units and the video frame processing module can be integrated into a processing chip. The display screen may include a display panel, optionally configured as a liquid crystal display (LCD), an organic light-emitting diode (OLED), or similar form. Furthermore, a touch-sensitive surface may cover the display panel. When the touch-sensitive surface detects a touch operation on or near it, it transmits the information to the processor 301 to determine the type of touch event. Subsequently, the processor 301 provides corresponding visual output on the display panel according to the type of touch event. Although in the figures, the touch-sensitive surface and the display panel are implemented as two separate components to achieve input and output functions, in some embodiments, the touch-sensitive surface and the display panel can be integrated to achieve input and output functions.
[0128] Although not shown, the electronic device may also include a camera, Bluetooth module, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302 to realize various functions, as follows:
[0129] In response to a first touch operation on the cover control, the target virtual character is controlled to move behind the first occlusion surface of the target virtual cover;
[0130] In response to a second touch operation on the cover control, a turning control is displayed in the associated area of the cover control;
[0131] In response to a third touch operation on the turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second occlusion surface; wherein the third touch operation and the second touch operation are consecutive operations, and the second occlusion surface is the occlusion surface in the target virtual cover that is adjacent to the first occlusion surface.
[0132] In some embodiments, the first occlusion surface includes a main area and at least one boundary area; the method further includes:
[0133] In response to the target virtual character reaching the rear of the boundary area of the first occlusion surface, a first prompt message is displayed through the graphical user interface. The first prompt message is used to prompt the second touch operation to be performed on the turning control.
[0134] In some embodiments, the graphical user interface further includes motion controls, and the method further includes:
[0135] In response to a sliding operation on the movement control, the target virtual character is controlled to move within the game scene;
[0136] When the positions of the target virtual character and the target virtual cover satisfy a preset relationship, the cover control is displayed in the associated area of the target virtual cover.
[0137] In some embodiments, the first occlusion surface includes a main area and at least one boundary area; the response to a second touch operation on the cover control, displaying a turning control in the associated area of the cover control, includes:
[0138] In response to a second touch operation on the cover control, at least one turning control is displayed in the associated area of the cover control, wherein each turning control corresponds to one of the boundary areas.
[0139] In some implementations, the boundary region includes a first boundary region and a second boundary region;
[0140] The response to a second touch operation on the cover control displays at least one turning control in the associated area of the cover control, including:
[0141] In response to a second touch operation on the cover control, a first turning control and a second turning control are displayed in the associated area of the cover control. The turning control includes the first turning control and the second turning control. The first turning control corresponds to the first boundary area, and the second turning control corresponds to the second boundary area.
[0142] The response to the third touch operation of the turning control, controlling the target virtual character to move from behind the first occlusion surface to behind the second occlusion surface, includes:
[0143] In response to a third touch operation on the first turning control, the target virtual character is controlled to move from behind the first occluding surface to behind the first target occluding surface, where the first target occluding surface is an occluding surface adjacent to the first occluding surface near the first boundary region; or,
[0144] In response to a third touch operation on the second turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second target occlusion surface, where the second target occlusion surface is an occlusion surface adjacent to the first occlusion surface and close to the second boundary region.
[0145] The second occlusion surface includes the first target occlusion surface and the second target occlusion surface.
[0146] In some embodiments, the method further includes:
[0147] The graphical user interface displays a second prompt message, which prompts the user to perform the third touch operation on the turning control.
[0148] In some implementations, the third touch operation is a swipe operation from the cover control to the corner control.
[0149] In some embodiments, the first occlusion surface includes a main area and at least one boundary area; the method further includes:
[0150] In response to the target virtual character reaching the boundary area of the first occlusion surface, a turning prompt message is displayed in the associated area of the boundary area reached by the target virtual character.
[0151] The electronic device can implement the steps of any embodiment of the virtual character control method provided in this application. Therefore, it can achieve the beneficial effects that any virtual character control method provided in this application can achieve. For details, please refer to the previous embodiments, which will not be repeated here.
[0152] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions (computer programs) or by instructions (computer programs) controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0153] Therefore, embodiments of this application provide a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps of any embodiment of the virtual character control method provided in this application. For example, the computer program can execute the following steps:
[0154] In response to a first touch operation on the cover control, the target virtual character is controlled to move behind the first occlusion surface of the target virtual cover;
[0155] In response to a second touch operation on the cover control, a turning control is displayed in the associated area of the cover control;
[0156] In response to a third touch operation on the turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second occlusion surface; wherein the third touch operation and the second touch operation are consecutive operations, and the second occlusion surface is the occlusion surface in the target virtual cover that is adjacent to the first occlusion surface.
[0157] In some embodiments, the first occlusion surface includes a main area and at least one boundary area; the method further includes:
[0158] In response to the target virtual character reaching the rear of the boundary area of the first occlusion surface, a first prompt message is displayed through the graphical user interface. The first prompt message is used to prompt the second touch operation to be performed on the turning control.
[0159] In some embodiments, the graphical user interface further includes motion controls, and the method further includes:
[0160] In response to a sliding operation on the movement control, the target virtual character is controlled to move within the game scene;
[0161] When the positions of the target virtual character and the target virtual cover satisfy a preset relationship, the cover control is displayed in the associated area of the target virtual cover.
[0162] In some embodiments, the first occlusion surface includes a main area and at least one boundary area; the response to a second touch operation on the cover control, displaying a turning control in the associated area of the cover control, includes:
[0163] In response to a second touch operation on the cover control, at least one turning control is displayed in the associated area of the cover control, wherein each turning control corresponds to one of the boundary areas.
[0164] In some implementations, the boundary region includes a first boundary region and a second boundary region;
[0165] The response to a second touch operation on the cover control displays at least one turning control in the associated area of the cover control, including:
[0166] In response to a second touch operation on the cover control, a first turning control and a second turning control are displayed in the associated area of the cover control. The turning control includes the first turning control and the second turning control. The first turning control corresponds to the first boundary area, and the second turning control corresponds to the second boundary area.
[0167] The response to the third touch operation of the turning control, controlling the target virtual character to move from behind the first occlusion surface to behind the second occlusion surface, includes:
[0168] In response to a third touch operation on the first turning control, the target virtual character is controlled to move from behind the first occluding surface to behind the first target occluding surface, where the first target occluding surface is an occluding surface adjacent to the first occluding surface near the first boundary region; or,
[0169] In response to a third touch operation on the second turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second target occlusion surface, where the second target occlusion surface is an occlusion surface adjacent to the first occlusion surface and close to the second boundary region.
[0170] The second occlusion surface includes the first target occlusion surface and the second target occlusion surface.
[0171] In some embodiments, the method further includes:
[0172] The graphical user interface displays a second prompt message, which prompts the user to perform the third touch operation on the turning control.
[0173] In some implementations, the third touch operation is a swipe operation from the cover control to the corner control.
[0174] In some embodiments, the first occlusion surface includes a main area and at least one boundary area; the method further includes:
[0175] In response to the target virtual character reaching the boundary area of the first occlusion surface, a turning prompt message is displayed in the associated area of the boundary area reached by the target virtual character.
[0176] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0177] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0178] Since the computer program stored in the storage medium can execute the steps in any of the virtual character control method embodiments provided in this application, the beneficial effects that any of the virtual character control methods provided in this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0179] The above provides a detailed description of a method, apparatus, electronic device, and storage medium for controlling a virtual character according to embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for controlling a virtual character, characterized in that, A graphical user interface is provided via an electronic device, the content displayed by the graphical user interface at least partially including a game scene, cover controls, and a target virtual character and a target virtual cover located in the game scene, the target virtual cover including multiple occlusion surfaces, and the method for controlling the virtual character including: In response to a first touch operation on the cover control, the target virtual character is controlled to move behind a first occlusion surface of the target virtual cover; the first occlusion surface includes a main body area and at least one boundary area; In response to a second touch operation on the cover control, at least one turning control is displayed in the associated area of the cover control; wherein each turning control corresponds to one of the boundary areas. In response to a third touch operation on the turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second occlusion surface; wherein the third touch operation and the second touch operation are consecutive operations, the third touch operation is a sliding operation from the cover control to the turning control, and the second occlusion surface is the occlusion surface of the target virtual cover that is adjacent to the first occlusion surface.
2. The method according to claim 1, characterized in that, The method further includes: In response to the target virtual character reaching the rear of the boundary area of the first occlusion surface, a first prompt message is displayed through the graphical user interface. The first prompt message is used to prompt the second touch operation to be performed on the cover control.
3. The method according to claim 1, characterized in that, The graphical user interface also includes motion controls, and the method further includes: In response to a sliding operation on the movement control, the target virtual character is controlled to move within the game scene; When the positions of the target virtual character and the target virtual cover satisfy a preset relationship, the cover control is displayed in the associated area of the target virtual cover.
4. The method according to claim 1, characterized in that, The boundary region includes a first boundary region and a second boundary region; The response to a second touch operation on the cover control displays at least one turning control in the associated area of the cover control, including: In response to a second touch operation on the cover control, a first turning control and a second turning control are displayed in the associated area of the cover control. The turning control includes the first turning control and the second turning control. The first turning control corresponds to the first boundary area, and the second turning control corresponds to the second boundary area. The response to the third touch operation of the turning control, controlling the target virtual character to move from behind the first occlusion surface to behind the second occlusion surface, includes: In response to a third touch operation on the first turning control, the target virtual character is controlled to move from behind the first occluding surface to behind the first target occluding surface, where the first target occluding surface is an occluding surface adjacent to the first occluding surface near the first boundary region; or, In response to a third touch operation on the second turning control, the target virtual character is controlled to move from behind the first occlusion surface to behind the second target occlusion surface, where the second target occlusion surface is an occlusion surface adjacent to the first occlusion surface and close to the second boundary region. The second occlusion surface includes the first target occlusion surface and the second target occlusion surface.
5. The method according to claim 1, characterized in that, The method further includes: The graphical user interface displays a second prompt message, which prompts the user to perform the third touch operation on the turning control.
6. The method according to claim 1, characterized in that, The method further includes: In response to the target virtual character reaching the rear of the boundary area of the first occlusion surface, a turning prompt message is displayed in the associated area of the boundary area reached by the target virtual character.
7. A device for controlling a virtual character, characterized in that, Applied in electronic devices, the graphical user interface (GUI) provides content that at least partially includes a game scene, cover controls, and a target virtual character and a target virtual cover located within the game scene. The target virtual cover includes multiple occlusion surfaces, and the device controlling the virtual character includes: A first control module is configured to respond to a first touch operation on the cover control and control the target virtual character to enter behind a first occlusion surface of the target virtual cover; the first occlusion surface includes a main body area and at least one boundary area; A first display module is configured to respond to a second touch operation on the cover control and display at least one turning control in the associated area of the cover control; wherein each turning control corresponds to one of the boundary areas. The second control module is used to respond to a third touch operation on the turning control and control the target virtual character to move from behind the first occlusion surface to behind the second occlusion surface; wherein the third touch operation and the second touch operation are consecutive operations, the third touch operation is a sliding operation from the cover control to the turning control, and the second occlusion surface is the occlusion surface of the target virtual cover that is adjacent to the first occlusion surface.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the method of virtual character control as described in any one of claims 1 to 6.
9. An electronic device, characterized in that, The device includes a coupled memory and a processor, the memory storing a computer program, and the processor running the computer program in the memory to perform the method for controlling a virtual character as described in any one of claims 1 to 6.