Virtual character control method, device, storage medium and terminal device

Through crouching controls and mobile joystick operations on the graphical user interface, virtual characters can flexibly control the surface of the virtual bunker, solving the problem of inflexible evasion operations in the existing technology and improving the evasion success rate.

CN115999153BActive Publication Date: 2025-09-05NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211097766.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-08
Publication Date
2025-09-05
Estimated Expiration
2042-09-08

AI Technical Summary

Technical Problem

The existing virtual role control method is not flexible enough to meet the diverse needs of users.

Method used

Through crouching controls and mobile rocker operations on the graphical user interface, the virtual character is controlled to crouch and move between the surface of the virtual bunker, including responding to touch operations to realize the corner between the surface of the virtual character, and using the third touch operation of the mobile rocker to control the virtual character to switch from one bunker surface to the rear crouching of the adjacent surface.

Benefits of technology

It realizes flexible control of virtual characters between the surface of the virtual bunker, simplifies the operation process, eliminates the need for new controls, and improves the success rate of avoidance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115999153B_ABST
    Figure CN115999153B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, storage medium, and terminal device for controlling a virtual character. The method includes: responding to a first touch operation on a crouching control to control the virtual character to crouch behind a first surface of a virtual shelter; responding to a second touch operation on a moving joystick in a target direction to control the virtual character to move in the target direction from behind the first surface; and when the virtual character moves in the target direction to a boundary position of the first surface, responding to a third touch operation on the moving joystick to control the virtual character to switch from the first surface of the virtual shelter to crouch behind a second surface of the virtual shelter, wherein the first surface and the second surface are adjacent. In this way, the virtual character can be controlled to turn between surfaces of the virtual shelter while in a crouching state by the third touch operation on the moving joystick, without adding other controls, and achieving more flexible control of the virtual character, which is simple and easy to operate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method and apparatus for controlling a virtual character, a computer-readable storage medium, and a terminal device. Background Art

[0002] In recent years, with the development and popularization of terminal device technology, more and more applications with three-dimensional virtual environments have emerged, such as virtual reality applications, three-dimensional map programs, military simulation programs, first-person shooting games (FPS), role-playing games (RPG), etc.

[0003] In the prior art, for example, in FPS games, users need to control the movement of a virtual character, thereby controlling the virtual character to hide behind a virtual cover. However, in existing cover-based shooting games, the control of the virtual character is not flexible enough and cannot meet the diverse needs of users. Summary of the Invention

[0004] The embodiments of the present application provide a method and device for controlling a virtual character, which can improve the success rate of the virtual character in avoiding virtual cover.

[0005] To solve the above technical problems, the embodiments of the present application provide the following technical solutions:

[0006] A method for controlling a virtual character, comprising providing a graphical user interface (GUI) via a terminal device, the GUI including at least a portion of a virtual scene, a movement joystick and a crouching control, and a virtual character and a virtual cover within the virtual scene, the method comprising:

[0007] In response to a first touch operation on the crouch control, controlling the virtual character to crouch behind a first surface of the virtual cover;

[0008] In response to a second touch operation on the moving joystick toward a target direction, controlling the virtual character to move behind the first surface toward the target direction;

[0009] When the virtual character moves toward the target direction to the boundary position of the first surface, in response to a third touch operation on the moving joystick, the virtual character is controlled to switch from the first surface of the virtual cover to crouch behind the second surface of the virtual cover, wherein the first surface is adjacent to the second surface.

[0010] A device for controlling a virtual character, characterized in that a graphical user interface is provided through a terminal device, wherein the graphical user interface includes at least a portion of a virtual scene, a movement joystick and a crouching control, and a virtual character and a virtual cover located in the virtual scene, comprising:

[0011] a first control module, configured to control the virtual character to crouch behind the first surface of the virtual cover in response to a first touch operation on the crouch control;

[0012] a second control module, configured to control the virtual character to move behind the first surface toward the target direction in response to a second touch operation of moving the joystick toward the target direction;

[0013] a third control module, configured to control the virtual character to switch from the first surface of the virtual cover to crouch behind the second surface of the virtual cover in response to a third touch operation on the moving joystick when the virtual character moves toward the target direction to the boundary position of the first surface, wherein the first surface is adjacent to the second surface.

[0014] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the steps in the above-mentioned virtual character control method.

[0015] A terminal device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned virtual character control method when executing the program.

[0016] In an embodiment of the present application, in response to a first touch operation on the crouching control, the virtual character is controlled to crouch behind the first surface of the virtual shelter; in response to a second touch operation on the moving joystick in a target direction, the virtual character is controlled to move behind the first surface in the target direction; when the virtual character moves toward the target direction to the boundary position of the first surface, in response to a third touch operation on the moving joystick, the virtual character is controlled to switch from the first surface of the virtual shelter to crouch behind the second surface of the virtual shelter, wherein the first surface is adjacent to the second surface. In this way, the virtual character can be controlled to turn between the surfaces of the virtual shelter while in a crouching state by the third touch operation on the moving joystick, without adding other controls, and achieving more flexible control of the virtual character, which is simple and easy to operate. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0018] Figure 1a A system diagram of a method for controlling a virtual character provided in an embodiment of the present application.

[0019] Figure 1b A flowchart of a method for controlling a virtual character provided in an embodiment of the present application.

[0020] Figure 1c A schematic diagram of a graphical user interface provided in an embodiment of the present application.

[0021] Figure 1d Another schematic diagram of the graphical user interface schematic diagram provided in an embodiment of the present application.

[0022] Figure 1e Another schematic diagram of the graphical user interface schematic diagram provided in an embodiment of the present application.

[0023] Figure 1f Another schematic diagram of the graphical user interface schematic diagram provided in an embodiment of the present application.

[0024] Figure 1g Another schematic diagram of the graphical user interface schematic diagram provided in an embodiment of the present application.

[0025] Figure 2 A schematic diagram of the structure of a control device for a virtual character provided in an embodiment of the present application;

[0026] Figure 3 A schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0028] The embodiments of the present application provide a method, device, storage medium and terminal device for controlling a virtual character. Specifically, the method for controlling a virtual character in the embodiments of the present application can be executed by a terminal device, wherein the terminal device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. The terminal device can also include a client, which can be a game application client, a browser client with a game program, or an instant messaging client, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0029] For example, when the control method of the virtual character is run on a terminal, the terminal device stores a game application and presents part of the game scene in the game through a display component. The terminal device is used to interact with the user through a graphical user interface, for example, by downloading and installing a game application and running it through the terminal device. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch screen and a processor, the touch screen being used to present the graphical user interface and receive operation instructions generated by the user acting on the graphical user interface, the graphical user interface including a game screen, and the processor being used to run the game, generate the graphical user interface, respond to operation instructions, and control the display of the graphical user interface on the touch screen.

[0030] For example, when the virtual character control method runs on a server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In cloud gaming, the game application runtime and the game screen presentation are separate. The virtual character control method is stored and executed on the cloud gaming server. Game screen presentation is performed on the cloud gaming client. The cloud gaming client is primarily responsible for receiving and sending game data and presenting the game screen. For example, a cloud gaming client can be a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, PDA, or personal digital assistant. However, the terminal device controlling the virtual character is the cloud gaming server in the cloud. When playing a game, the user operates the cloud gaming client to send operational instructions to the cloud gaming server. The cloud gaming server runs the game according to the operational instructions, encodes and compresses the game screen and other data, and returns it to the cloud gaming client via the network. Finally, the cloud gaming client decodes and outputs the game screen.

[0031] See also Figure 1a , Figure 1a A system diagram of a control method for a virtual character provided in an embodiment of the present application. The system may include at least one terminal device 1000, at least one server 2000, at least one database 3000, and a network 4000. The terminal 1000 held by the user can be connected to the servers of different games through the network 4000. The terminal device 1000 is any device with computing hardware that can support and execute software products corresponding to the game. In addition, the terminal device 1000 has one or more multi-touch screens for sensing and obtaining user input through touch or sliding operations performed at multiple points on one or more touch-sensitive displays. In addition, when the system includes multiple terminal devices 1000, multiple servers 2000, and multiple networks 4000, different terminals 1000 can be connected to each other through different networks 4000 and different servers 2000. The network 4000 can be a wireless network or a wired network, such as a wireless network such as a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminal devices 1000 can also use their own Bluetooth network or hotspot network to connect to other terminals or to servers, etc. For example, multiple users can be online through different terminal devices 1000 and connected and synchronized with each other through appropriate networks to support multi-user games. In addition, the system can include multiple databases 3000, which are coupled to different servers 2000, and information related to the game environment can be continuously stored in the databases 3000 when different users are online playing multi-user games.

[0032] An embodiment of the present application provides a method for controlling a virtual character, which can be executed by a terminal or a server. This embodiment of the present application illustrates the method for controlling a virtual character executed by a terminal. The terminal includes a display component and a processor. The display component is configured to present a graphical user interface (GUI) and receive user-generated operational instructions generated by the display component. When a user operates the GUI via the display component, the GUI can control local content on the terminal or content on a peer server in response to the received operational instructions. For example, the operational instructions generated by the user operating the GUI include instructions for launching a game application. The processor is configured to launch the game application upon receiving the user-generated instruction to launch the game application. Furthermore, the processor is configured to render and draw a GUI associated with a game on a touchscreen display. The touchscreen display is a multi-touch-sensitive screen capable of sensing touches or slides performed simultaneously at multiple points on the screen. A user can perform touch operations on the GUI with a finger. Upon detecting the touch operations, the GUI controls different avatars in the game GUI to perform actions corresponding to the touch operations. For example, the game can be any of a casual game, an action game, a role-playing game, a strategy game, a sports game, a puzzle game, a first-person shooter (FPS), and the like. The game may include a virtual game scene depicted on a graphical user interface. Furthermore, the game's virtual scene may include one or more virtual characters, such as avatars, controlled by a user (or users). Furthermore, the game's virtual scene may also include one or more obstacles, such as railings, ravines, and walls, to restrict the movement of the avatars, for example, restricting the movement of one or more objects to a specific area within the virtual scene. Optionally, the game's virtual scene also includes one or more elements, such as skills, scores, character health, and energy, to provide assistance to the user, offer virtual services, increase scores related to user performance, and so on. Furthermore, the graphical user interface may also present one or more indicators to provide information to the user. For example, a game may include a user-controlled avatar and one or more other virtual characters (such as enemy characters). In one embodiment, one or more other virtual characters are controlled by other users of the game. For example, one or more other virtual characters may be controlled by a computer, such as a robot using an artificial intelligence (AI) algorithm, to implement a human-computer game mode. For example, a virtual character may possess various skills or abilities that a game user can use to achieve goals. For example, a virtual character may possess one or more weapons, props, tools, etc. that can be used to eliminate other objects in the game. Such skills or abilities can be activated by the game user using one of a plurality of preset touch operations on the touch screen of the terminal.The processor may be configured to present a corresponding game screen in response to an operation instruction generated by a user's touch operation.

[0033] It should be noted that Figure 1a The system diagram of the control system of the virtual character shown is only an example. The control system and scenario of the virtual character described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. A person of ordinary skill in the art can know that with the evolution of the control system of the virtual character and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0034] In this embodiment, the description will be made from the perspective of a control device for a virtual character. Specifically, the control device for the virtual character may be integrated into a terminal device having a storage unit and a microprocessor installed therein so as to have computing capabilities.

[0035] See also Figure 1b , Figure 1b This is a first flow chart of a method for controlling a virtual character provided in an embodiment of the present application. The method for controlling a virtual character includes:

[0036] In step 101 , in response to a first touch operation on a crouching control, the virtual character is controlled to crouch behind a first surface of a virtual cover.

[0037] The terminal device is provided with a graphical user interface (GUI), which can be activated by the user through the control of the game application installed on the terminal. The GUI displays a three-dimensional virtual scene within the game scene. The three-dimensional virtual scene is the virtual scene provided by the application when it is running on the terminal. It can be a simulation of the real world, a semi-simulation and semi-fictional scene, or a purely fictional scene. The scene displayed on the GUI is the scene image presented when the virtual character observes the three-dimensional virtual scene. The user controls the virtual character in the game scene through the terminal. The virtual character's observation of the three-dimensional virtual scene is achieved through a camera model. For example, in an FPS game, when the camera model is located at the head or neck of the target virtual character in the first-person perspective, only the virtual character's arms are displayed in the GUI. When the camera model is located behind the target virtual character in the third-person perspective, only the virtual character's upper body is displayed in the GUI. The GUI is the scene image presented when the camera model is used to observe the three-dimensional virtual scene from a specific perspective.

[0038] For details, please refer to Figure 1c , Figure 1cThis is a first schematic diagram of a graphical user interface provided in an embodiment of the present application. This graphical user interface is presented on the screen of a terminal device 1000 and includes a virtual bunker 10 comprised of multiple bunker surfaces, a virtual character 20 crouching behind a first surface 11 of the virtual bunker 10, movement controls 30, and a crouching control 40. The user can control the virtual character 20 by first touching the crouching control 40 to move from a standing posture, a shooting posture, a running posture, or other postures, thereby controlling the virtual character 20 to crouch behind the surface of the virtual bunker 10 closest to the virtual bunker 10, thereby achieving a crouching posture. The first touch operation can be a click operation. For FPS games, the virtual character 20 can also be equipped with a virtual firearm, which can be used to fire. Therefore, the graphical user interface also includes an attack control 50 for controlling the firing of the virtual firearm. The graphical user interface also includes a cursor control 60 that indicates the current direction of the virtual character 20, and a map control 70 that indicates the location of the virtual character 20 within the three-dimensional virtual environment. Furthermore, an indicator control 61 is provided within the cursor control 60 to indicate the direction of the virtual character 20 within the cursor control 60. It is understood that the graphical user interface may include not only the aforementioned icons and controls, but also other functional controls or icons, depending on the specific game content and not limited herein.

[0039] Specifically, for FPS games, virtual cover is a very important component. Virtual characters can avoid attacks from other virtual characters by hiding behind the cover, or suddenly attack other virtual characters by hiding behind the cover.

[0040] In some embodiments, the method further comprises:

[0041] When the virtual character is in a crouching posture, in response to a touch operation on the crouching control, the virtual character is controlled to switch from the crouching posture to a standing posture.

[0042] When the virtual character is in a crouching posture and receives a touch operation on the crouching control from the user again, the posture of the virtual character can be controlled to switch from the original crouching posture to a standing posture.

[0043] In some embodiments, the method further comprises:

[0044] When the virtual character is in a standing posture, responding to a sliding operation on the moving joystick, controlling the virtual character to move in the virtual scene;

[0045] When the positions of the virtual character and the virtual cover meet a preset position relationship, the crouching control is displayed.

[0046] When the virtual character is in a standing position, the user can control the virtual character to move in the virtual scene by sliding the joystick.

[0047] Specifically, the preset positional relationship may be that the distance between the virtual character and the virtual cover is a preset distance value. When the user controls the virtual character to move in the virtual scene by sliding the joystick, if the distance between the virtual character and the virtual cover exceeds the preset distance value, the crouching control 40 may be hidden. When the distance between the virtual character and the virtual cover meets the preset distance value, the crouching control 40 may be displayed again.

[0048] In step 102 , in response to a second touch operation of moving the joystick toward a target direction, the virtual character is controlled to move toward the target direction behind the first surface.

[0049] Among them, such as Figure 1d As shown, Figure 1d This is a second schematic diagram of a graphical user interface provided by an embodiment of the present application. When a virtual character 20 is crouching on a surface of a virtual bunker 10, if a second touch control operation is received by the user directed at moving the joystick, the virtual character 20 is determined to be able to move only along a preset route L of the virtual bunker 10. Since the virtual character 20 can only move along the preset route L, the second touch control operation directed at moving the joystick can only be directed in two opposite target directions along the preset route. For example, a rightward swipe on the movement control 30 will cause the virtual character 20 to move rightward behind the first surface 11.

[0050] In some embodiments, the target direction is a direction parallel to the first surface.

[0051] Since the target directions are two opposite target directions toward the preset route, and the preset route L is parallel to the first surface 11 , the target directions are parallel to the first surface.

[0052] In step 103, when the virtual character moves toward the target direction to the boundary position of the first surface, in response to the third touch operation on the moving joystick, the virtual character is controlled to switch from the first surface of the virtual cover to the back of the second surface of the virtual cover to crouch, wherein the first surface is adjacent to the second surface.

[0053] Among them, such as Figure 1e As shown, Figure 1eThis is a third schematic diagram of a graphical user interface provided in an embodiment of the present application. When the virtual character 20 moves toward a target direction to a boundary position 1 of the first surface 11, if the user performs a third touch operation on the movement control 30, the virtual character 20 can be controlled to move from the first surface 11 of the virtual cover 10 to crouch behind the second surface 12 of the virtual cover, where the first surface 11 and the second surface 12 are adjacent to each other.

[0054] In some embodiments, the method further comprises:

[0055] When the virtual character moves toward the target direction to the boundary position of the first surface, in response to a third touch operation on the moving joystick, a corner progress indicator is displayed on the graphical user interface during the duration of the third touch operation, wherein the corner progress indicator is used to represent the preset time and the elapsed time that the virtual character needs to wait after switching from the first surface to the second surface.

[0056] Among them, such as Figure 1f As shown, Figure 1f This is a fourth schematic diagram of a graphical user interface provided in an embodiment of the present application. The third touch operation can be a continuous operation. Therefore, during the duration of the third touch operation, the graphical user interface will also display the virtual character 20's cornering movement between different cover surfaces of the virtual cover 10. During the cornering process, the graphical user interface will display a cornering progress indicator 90, which indicates the preset waiting time and the elapsed waiting time for the virtual character to switch from the first surface to the second surface.

[0057] In some embodiments, before controlling the virtual character to switch from the first surface of the virtual cover to crouch behind the second surface of the virtual cover, the method further includes:

[0058] It is determined that the duration of the third touch operation reaches a preset duration.

[0059] The prerequisite for triggering the first virtual character to switch to the corner of the second surface of the virtual cover to crouch can also be that the duration of the user's third touch operation on the mobile control meets a preset duration, such as 3 seconds.

[0060] In some embodiments, the method further comprises:

[0061] When it is determined that the duration of the third touch operation reaches a preset duration, the corner progress indicator is shown as being full.

[0062] Among them, see Figure 1fThe corner progress mark 90 can be an arrow-shaped mark, and a progress indication in a filling style can be displayed in the arrow-shaped mark. When the corner progress mark 90 is filled, the corner progress mark 90 is in a full state, and the full state means that the duration of the third touch operation reaches the preset duration, which can trigger the virtual character to switch the corner between different cover surfaces of the virtual cover.

[0063] In some embodiments, the corner progress indicator is a curved line with an arrow, and the curved line with an arrow is used to indicate the movement trajectory of the virtual character from the first surface of the virtual cover to the rear of the second surface of the virtual cover.

[0064] Among them, see Figure 1f The corner progress indicator 90 is a curved line with an arrow, which is used to indicate the movement trajectory of the virtual character from the first surface of the virtual cover to the rear of the second surface of the virtual cover, and the arrow is used to indicate the movement direction of the virtual character when moving along the movement trajectory.

[0065] Specifically, such as Figure 1g As shown, Figure 1g This is a fifth schematic diagram of the graphical user interface provided in an embodiment of the present application. When the virtual character 20 has completed turning, the virtual character 20 is at the rear of the second surface 12 and in a crouching position.

[0066] In some embodiments, the method further comprises:

[0067] Before the duration of the third touch operation reaches the preset duration, in response to the end of the third touch operation, the corner progress indicator is hidden.

[0068] Among them, if the user ends the third touch operation on the mobile control before the duration of the third touch operation reaches the preset duration, it proves that the user currently wants to prohibit the virtual character from turning the corner, and the corner progress indicator is hidden to inform the user that the corner determination has been made.

[0069] In some embodiments, the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation and the second touch operation are continuous operations.

[0070] The second touch operation for controlling the movement of the virtual character behind the first surface in the target direction is an operation on the mobile control. Controlling the movement of the virtual character using the mobile control is generally a sliding operation on the mobile control, so the second touch operation can be a sliding operation. Furthermore, the third touch operation is also an operation on the mobile control. Therefore, to improve the consistency and simplicity of user operations, the second and third touch operations can be set as continuous operations. That is, the user performs the second touch operation by sliding on the mobile control, and performs the third touch operation by long-pressing. For example, a user slides their finger on the mobile control to control the movement of the virtual character behind a virtual cover surface. During the sliding process, if the virtual character reaches the boundary of a certain cover surface, the sliding is stopped. However, if the finger does not leave the mobile control, the long-press of the third touch operation is performed, thereby triggering the virtual character to switch from one surface of the virtual cover to crouch behind another surface.

[0071] In some embodiments, the second touch operation and the third touch operation are both sliding operations.

[0072] Among them, the third touch operation can also be a sliding operation that is the same as the second touch operation, that is, when the virtual character moves to the boundary position of a certain cover surface, continue to slide, thereby realizing the third touch operation, controlling the virtual character to switch from one surface of the virtual cover to the back of another surface to crouch.

[0073] In some embodiments, controlling the virtual character to switch from the first surface of the virtual cover to crouch behind the second surface of the virtual cover includes:

[0074] The virtual character is controlled to switch from behind the first surface of the virtual cover to behind the second surface of the virtual cover in a crouching posture.

[0075] In the process of turning a corner by switching from the first surface of the virtual cover to crouching behind the second surface of the virtual cover, the virtual character may turn the corner in a crouching posture. Alternatively, the virtual character may first change from a crouching posture behind the first surface of the virtual cover to a standing posture, turn the corner in the standing posture, and then change from the standing posture to a crouching posture when turning behind the second surface. The specific posture of the virtual character during the turning process is not limited here.

[0076] As can be seen from the above, in the embodiment of the present application, by responding to a first touch operation on the crouching control, the virtual character is controlled to crouch behind the first surface of the virtual shelter; in response to a second touch operation on the moving joystick in a target direction, the virtual character is controlled to move in the target direction from behind the first surface; when the virtual character moves in the target direction to the boundary of the first surface, in response to a third touch operation on the moving joystick, the virtual character is controlled to switch from the first surface of the virtual shelter to crouch behind the second surface of the virtual shelter, where the first surface and the second surface are adjacent. In this way, the virtual character can be controlled to turn between the surfaces of the virtual shelter while in a crouching state by the third touch operation on the moving joystick, without the need for additional controls, and achieving more flexible control of the virtual character, which is simple and easy to operate.

[0077] To facilitate better implementation of the virtual character control method provided in the embodiments of the present application, the embodiments of the present application also provide a device based on the virtual character control method. The meanings of the terms herein are the same as those in the virtual character control method described above, and the specific implementation details can be referred to the description in the method embodiment.

[0078] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of a virtual character control device provided in an embodiment of the present application, wherein the virtual character control device may include a first control module 301, a second control module 302, and a third control module 303, etc.

[0079] A first control module 301 is configured to control the virtual character to crouch behind the first surface of the virtual cover in response to a first touch operation on the crouch control;

[0080] A second control module 302 is configured to control the virtual character to move behind the first surface toward the target direction in response to a second touch operation of moving the joystick toward the target direction;

[0081] The third control module 303 is used to control the virtual character to switch from the first surface of the virtual cover to the back of the second surface of the virtual cover to crouch when the virtual character moves toward the target direction to the boundary position of the first surface, in response to the third touch operation on the moving joystick, wherein the first surface is adjacent to the second surface.

[0082] In some embodiments, the apparatus further comprises:

[0083] The first display module is used to respond to a third touch operation on the moving joystick when the virtual character moves toward the target direction to the boundary position of the first surface, and display a corner progress indicator on the graphical user interface during the third touch operation, wherein the corner progress indicator is used to represent the preset time and the elapsed time that the virtual character needs to wait after switching from the first surface to the second surface.

[0084] In some embodiments, the apparatus further comprises:

[0085] The determining module is configured to determine whether the duration of the third touch operation reaches a preset duration.

[0086] In some embodiments, the apparatus further comprises:

[0087] The second display module is configured to display the corner progress indicator as being full when it is determined that the duration of the third touch operation reaches a preset duration.

[0088] In some embodiments, the corner progress indicator is a curved line with an arrow, and the curved line with an arrow is used to indicate the movement trajectory of the virtual character from the first surface of the virtual cover to the rear of the second surface of the virtual cover.

[0089] In some embodiments, the apparatus further comprises:

[0090] The hiding module is configured to hide the corner progress indicator in response to the end of the third touch operation before the duration of the third touch operation reaches the preset duration.

[0091] In some embodiments, the target direction is a direction parallel to the first surface.

[0092] In some embodiments, the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation and the second touch operation are continuous operations.

[0093] In some embodiments, the second touch operation and the third touch operation are both sliding operations.

[0094] In some embodiments, the third control module 303 includes:

[0095] The control submodule is configured to control the virtual character to switch from the rear side of the first surface of the virtual cover to the rear side of the second surface of the virtual cover in a crouching posture.

[0096] In some embodiments, the apparatus further comprises:

[0097] The fourth control module is configured to, when the virtual character is in a crouching posture, respond to a touch operation on the crouching control to control the virtual character to switch from the crouching posture to a standing posture.

[0098] In some embodiments, the apparatus further comprises:

[0099] a fifth control module, configured to control the virtual character to move in the virtual scene in response to a sliding operation on the moving joystick when the virtual character is in a standing posture;

[0100] The third display module is configured to display the crouching control when the positions of the virtual character and the virtual cover satisfy a preset position relationship.

[0101] As can be seen from the above, in the embodiment of the present application, the first control module 301 responds to a first touch operation on the crouching control to control the virtual character to crouch behind the first surface of the virtual shelter; the second control module 302 responds to a second touch operation on the moving joystick in a target direction to control the virtual character to move behind the first surface in the target direction; and the third control module 303 responds to a third touch operation on the moving joystick when the virtual character moves toward the target direction to the boundary position of the first surface to control the virtual character to switch from the first surface of the virtual shelter to the rear of the second surface of the virtual shelter to crouch, wherein the first surface is adjacent to the second surface. In this way, the virtual character can be controlled to turn between the surfaces of the virtual shelter while in a crouching state by the third touch operation on the moving joystick, without adding other controls, and achieving more flexible control of the virtual character, which is simple and easy to operate.

[0102] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0103] Accordingly, the embodiment of the present application also provides a terminal device, which can be a terminal or a server, and the terminal can be a smart phone, tablet computer, laptop computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA) and other terminal devices. Figure 3 As shown, Figure 3This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. The terminal device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the terminal device structure shown in the figure does not limit the terminal device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0104] The processor 401 is the control center of the terminal device 400. It uses various interfaces and lines to connect the various parts of the entire terminal device 400. By running or loading software programs and / or modules stored in the memory 402 and calling data stored in the memory 402, it executes various functions of the terminal device 400 and processes data, thereby monitoring the terminal device 400 as a whole.

[0105] In the embodiment of the present application, the processor 401 in the terminal device 400 loads instructions corresponding to one or more application processes into the memory 402 according to the following steps, and the processor 401 runs the application stored in the memory 402 to implement various functions:

[0106] In response to a first touch operation on the crouching control, the virtual character is controlled to crouch behind the first surface of the virtual cover; in response to a second touch operation on the moving joystick toward the target direction, the virtual character is controlled to move behind the first surface toward the target direction; when the virtual character moves toward the target direction to the boundary position of the first surface, in response to a third touch operation on the moving joystick, the virtual character is controlled to switch from the first surface of the virtual cover to crouch behind the second surface of the virtual cover, wherein the first surface is adjacent to the second surface.

[0107] In some embodiments, the processor is further configured to: when the virtual character moves toward the target direction to the boundary position of the first surface, in response to a third touch operation on the moving joystick, display a corner progress indicator on the graphical user interface during the duration of the third touch operation, wherein the corner progress indicator is used to represent the preset time and the elapsed time that the virtual character needs to wait after switching from the first surface to the second surface.

[0108] In some embodiments, the processor is further configured to execute: determining that a duration of the third touch operation reaches a preset duration.

[0109] In some embodiments, the processor is further configured to execute: when it is determined that the duration of the third touch operation reaches a preset duration, the corner progress indicator is displayed as a full state.

[0110] In some embodiments, the processor is further configured to execute: the corner progress indicator is a curved bar with an arrow, and the curved bar with an arrow is used to indicate the movement trajectory of the virtual character from the first surface of the virtual cover to the rear of the second surface of the virtual cover.

[0111] In some embodiments, the processor is further configured to: hide the corner progress indicator in response to the end of the third touch operation before the duration of the third touch operation reaches the preset duration.

[0112] In some embodiments, the processor is further configured to execute: the target direction is a direction parallel to the first surface.

[0113] In some embodiments, the processor is further configured to execute: the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation and the second touch operation are continuous operations.

[0114] In some implementations, the processor is further configured to execute: both the second touch operation and the third touch operation are sliding operations.

[0115] In some embodiments, the processor is further configured to control the virtual character to switch from behind the first surface of the virtual cover to behind the second surface of the virtual cover in a crouching posture.

[0116] In some embodiments, the processor is further configured to: when the virtual character is in a standing posture, in response to a sliding operation on the moving joystick, control the virtual character to move in the virtual scene;

[0117] When the positions of the virtual character and the virtual cover meet a preset position relationship, the crouching control is displayed.

[0118] In some embodiments, the processor is further configured to: when the virtual character is in a crouching posture, in response to a touch operation on the crouching control, control the virtual character to switch from the crouching posture to a standing posture.

[0119] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0120] Optional, such as Figure 3As shown, the terminal device 400 further includes: a touch screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. Among them, the processor 401 is electrically connected to the touch screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407 respectively. Those skilled in the art will understand that Figure 3 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0121] The touch display screen 403 can be used for displaying a graphical user interface and receiving an operation instruction generated by the user acting on the graphical user interface. The touch display screen 403 can include a display panel and a touch panel. Among them, the display panel can be used for displaying information input by the user or information provided to the user and various graphical user interfaces of the terminal device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, a liquid crystal display (LCD), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like can be used to configure the display panel. The touch panel can be used for collecting the user's touch operation on or near it (such as the user uses any suitable object or accessory such as a finger, a stylus on the touch panel or near the touch panel) and generates corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 401, and can receive the command sent by the processor 401 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 401 to determine the type of touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 403 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 403 can also be used as part of the input unit 406 to realize the input function.

[0122] In this embodiment of the present application, processor 401 executes a game application to generate a graphical user interface (GUI) on touchscreen display 403. The virtual scene on the GUI includes at least one skill control area, which includes at least one skill control. Touchscreen display 403 is used to present the GUI and receive user commands generated by operating the GUI.

[0123] The radio frequency circuit 404 may be used to transmit and receive radio frequency signals, so as to establish wireless communication with a network device or other terminal devices through wireless communication, and to transmit and receive signals with the network device or other terminal devices.

[0124] Audio circuit 405 can be used to provide an audio interface between the user and the terminal device through a speaker and microphone. Audio circuit 405 can convert received audio data into electrical signals and transmit them to the speaker, which then converts them into sound signals for output. The microphone, on the other hand, converts collected sound signals into electrical signals, which are received by audio circuit 405 and converted into audio data. The audio data is then output to processor 401 for processing, and then transmitted via RF circuit 404 to, for example, another terminal device. Alternatively, the audio data can be output to memory 402 for further processing. Audio circuit 405 may also include an earphone jack to provide communication between external headphones and the terminal device.

[0125] The input unit 406 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0126] Power supply 407 is used to supply power to various components of terminal device 400. Optionally, power supply 407 can be logically connected to processor 401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 407 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0127] although Figure 3 Not shown in the figure, the terminal device 400 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0128] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0129] As can be seen from the above, the terminal device provided in this embodiment controls the virtual character to crouch behind the first surface of the virtual shelter by responding to a first touch operation on the crouch control; controls the virtual character to move behind the first surface toward the target direction in response to a second touch operation on the moving joystick; and when the virtual character moves toward the target direction and reaches the boundary of the first surface, controls the virtual character to switch from the first surface of the virtual shelter to crouch behind the second surface of the virtual shelter in response to a third touch operation on the moving joystick, where the first and second surfaces are adjacent. In this way, the virtual character can be controlled to turn between surfaces of the virtual shelter while crouching by the third touch operation on the moving joystick, without adding additional controls. This allows for more flexible control of the virtual character, making it simple and easy to operate.

[0130] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0131] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of computer programs, which can be loaded by a processor to execute the steps of any skill control method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0132] In response to a first touch operation on the crouching control, the virtual character is controlled to crouch behind the first surface of the virtual cover; in response to a second touch operation on the moving joystick toward the target direction, the virtual character is controlled to move behind the first surface toward the target direction; when the virtual character moves toward the target direction to the boundary position of the first surface, in response to a third touch operation on the moving joystick, the virtual character is controlled to switch from the first surface of the virtual cover to crouch behind the second surface of the virtual cover, wherein the first surface is adjacent to the second surface.

[0133] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

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

[0135] Since the computer program stored in the storage medium can execute the steps in any virtual character control method provided in the embodiments of the present application, the beneficial effects that can be achieved by any virtual character control method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0136] The above is a detailed introduction to a virtual character control method, device, storage medium and terminal device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for controlling a virtual character, characterized in that: A graphical user interface is provided through a terminal device, wherein the graphical user interface includes at least a portion of a virtual scene, a movement joystick and a crouching control, and a virtual character and a virtual cover located in the virtual scene. The method includes: In response to a first touch operation on the crouch control, controlling the virtual character to crouch behind a first surface of the virtual cover; In response to a second touch operation on the moving joystick toward a target direction, controlling the virtual character to move behind the first surface toward the target direction; When the virtual character moves toward the target direction to a boundary position of the first surface, in response to a third touch operation on the mobile joystick, the virtual character is controlled to switch from the first surface of the virtual cover to the back of the second surface of the virtual cover to crouch, wherein the first surface is adjacent to the second surface, the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation and the second touch operation are continuous operations; The method further comprises: When the virtual character moves toward the target direction to the boundary position of the first surface, in response to the third touch operation on the moving joystick, a corner progress indicator is displayed on the graphical user interface during the duration of the third touch operation, wherein the corner progress indicator is used to represent the preset time and the elapsed time that the virtual character needs to wait after switching from the first surface to the rear of the second surface. The corner progress indicator is a curved bar with an arrow, and the curved bar with an arrow is used to indicate the movement trajectory of the virtual character from the first surface of the virtual cover to the rear of the second surface of the virtual cover.

2. The control method according to claim 1, characterized in that: Before controlling the virtual character to switch from the first surface of the virtual cover to the back of the second surface of the virtual cover to crouch, the method further includes: It is determined that the duration of the third touch operation reaches a preset duration.

3. The control method according to claim 2, characterized in that: The method further comprises: When it is determined that the duration of the third touch operation reaches a preset duration, the corner progress indicator is shown as being full.

4. The control method according to claim 1, wherein: The method further comprises: Before the duration of the third touch operation reaches the preset duration, in response to the end of the third touch operation, the corner progress indicator is hidden.

5. The control method according to claim 1, characterized in that: The target direction is a direction parallel to the first surface.

6. The control method according to claim 1, characterized in that: The controlling the virtual character to switch from the first surface of the virtual cover to crouch behind the second surface of the virtual cover includes: The virtual character is controlled to switch from behind the first surface of the virtual cover to behind the second surface of the virtual cover in a crouching posture.

7. The control method according to claim 1, characterized in that: The method further comprises: When the virtual character is in a crouching posture, in response to a touch operation on the crouching control, the virtual character is controlled to switch from the crouching posture to a standing posture.

8. The control method according to claim 1, characterized in that: The method further comprises: When the virtual character is in a standing posture, responding to a sliding operation on the moving joystick, controlling the virtual character to move in the virtual scene; When the positions of the virtual character and the virtual cover meet a preset position relationship, the crouching control is displayed.

9. A control device for a virtual character, characterized in that: Providing a graphical user interface through a terminal device, the graphical user interface including at least a portion of a virtual scene, a movement joystick and a crouching control, and a virtual character and a virtual cover located in the virtual scene, including: a first control module, configured to control the virtual character to crouch behind the first surface of the virtual cover in response to a first touch operation on the crouch control; a second control module, configured to control the virtual character to move behind the first surface toward the target direction in response to a second touch operation of moving the joystick toward the target direction; a third control module, configured to, in response to a third touch operation on the mobile joystick when the virtual character moves toward the target direction to a boundary position of the first surface, control the virtual character to switch from the first surface of the virtual cover to a crouching position behind a second surface of the virtual cover, wherein the first surface is adjacent to the second surface, the second touch operation is a sliding operation, the third touch operation is a long press operation, and the third touch operation and the second touch operation are continuous operations; The first display module is used to respond to a third touch operation on the moving joystick when the virtual character moves toward the target direction to the boundary position of the first surface, and display a corner progress indicator on the graphical user interface during the duration of the third touch operation, wherein the corner progress indicator is used to represent the preset time and the elapsed time that the virtual character needs to wait after switching from the first surface to the rear of the second surface. The corner progress indicator is a curved bar with an arrow, and the curved bar with an arrow is used to indicate the movement trajectory of the virtual character from the first surface of the virtual cover to the rear of the second surface of the virtual cover.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the virtual character control method according to any one of claims 1 to 8.

11. A terminal device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the virtual character control method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Player character control method and device, electronic equipment and storage medium

    CN114404986A