Virtual Character Control Method, Device, Storage Medium and Computer Equipment

By providing target controls and long press operations on the game interface, the virtual character charging stage is determined based on the pressing time, which solves the problem of operation failure of players with low proficiency when climbing or climbing over obstacles, and improves the virtual character control efficiency and gaming experience.

CN115193049BActive Publication Date: 2025-07-08NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210822651.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-12
Publication Date
2025-07-08
Estimated Expiration
2042-07-12

AI Technical Summary

Technical Problem

Players with low proficiency are not proficient in controlling virtual characters to climb or climb over obstacles, and their operation is not proficient and complicated, resulting in failure in operation, and the game experience is not good.

Method used

By providing target controls in the graphical user interface, players can control the virtual character to perform preparation actions to climb over obstacles by long pressing, determine the charging stage of the virtual character based on the pressing time, and control the virtual character to climb over obstacles when the first time threshold is reached.

Benefits of technology

It simplifies the player's control process of virtual characters, improves the player's control efficiency and tactical choices, and reduces the operational error rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115193049B_ABST
    Figure CN115193049B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, storage medium and computer device for controlling a virtual character. The method includes: providing a graphical user interface through a computer device, the graphical user interface includes at least part of a game scene, the game scene includes a virtual character and a virtual obstacle, and then the computer device provides a target control through the graphical user interface, the target control is used to control the virtual character to climb over the virtual obstacle; the computer device responds to a long press operation on the target control, controls the virtual character to perform a preparatory action to climb over the virtual obstacle, and controls the virtual character to climb over the virtual obstacle when the pressing duration of the long press operation reaches a first time threshold. This enriches the player's tactical options, and by performing a long press operation on the target control, the virtual character can be controlled to perform different actions on the virtual obstacle, thereby improving the player's control efficiency over the virtual character.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game technology, and in particular to a virtual character control method, device, storage medium and computer equipment. Background Art

[0002] In some games, players need to control virtual characters to climb and flip over in order to overcome obstacles or occupy commanding heights. For more skilled game players, they have more skilled virtual character control skills and can complete actions such as flipping over and climbing.

[0003] However, for some less skilled players, due to unfamiliarity with the operation and complicated operation steps, players may easily encounter operation failures when controlling the characters in the game to climb, climb over and perform other actions, resulting in a poor gaming experience. Summary of the invention

[0004] The embodiments of the present application provide a virtual character control method, device, storage medium and computer equipment. The virtual character control method can improve the efficiency of a player's control over a virtual character.

[0005] In a first aspect, an embodiment of the present application provides a method for controlling a virtual character, wherein a graphical user interface is provided by a computer device, wherein the graphical user interface includes at least part of a game scene, wherein the game scene includes a virtual character and a virtual obstacle, and the method includes:

[0006] Providing a target control through a graphical user interface, the target control is used to control the virtual character to climb over a virtual obstacle;

[0007] In response to a long press operation on a target control, the virtual character is controlled to perform a preparatory action for climbing over a virtual obstacle, and when a pressing duration of the long press operation reaches a first time threshold, the virtual character is controlled to climb over the virtual obstacle.

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

[0009] In response to a click operation on a target control, the virtual character is controlled to climb over a virtual obstacle.

[0010] In some implementations, before controlling the virtual character to climb over the virtual obstacle, the method further includes:

[0011] It is determined that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

[0012] In some implementations, in response to a long press operation on a target control, controlling the virtual character to perform a preparatory action for climbing over a virtual obstacle includes:

[0013] In response to a long - press operation on a target control, determine the charging stage in which the virtual character is currently located according to the pressing duration of the long - press operation;

[0014] Determine the preparatory action to be executed by the virtual character according to the charging stage in which the virtual character is currently located;

[0015] Control the virtual character to execute the determined preparatory action.

[0016] In some embodiments, determining the charging stage in which the virtual character is currently located according to the pressing duration of the long - press operation includes:

[0017] When the pressing duration of the long - press operation is less than a second time threshold, determine that the virtual character is currently in a first charging stage, where the second time threshold is less than the first time threshold;

[0018] Determining the preparatory action to be executed by the virtual character according to the charging stage in which the virtual character is currently located includes:

[0019] When the virtual character is currently in the first charging stage, determine that the preparatory action to be executed by the virtual character is a feint roll or staying still.

[0020] In some embodiments, determining the charging stage in which the virtual character is currently located according to the pressing duration of the long - press operation includes:

[0021] When the pressing duration of the long - press operation is greater than or equal to the second time threshold and less than the first time threshold, determine that the virtual character is currently in a second charging stage;

[0022] Determining the preparatory action to be executed by the virtual character according to the charging stage in which the virtual character is currently located includes:

[0023] When the virtual character is currently in the second charging stage, determine that the preparatory action to be executed by the virtual character is to climb above the virtual obstacle.

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

[0025] In response to a long - press operation on a target control, display a charging progress bar in the associated area of the virtual obstacle, and the charging value of the charging progress bar is determined according to the pressing duration of the long - press operation;

[0026] When the virtual character is currently in the second charging stage, highlight the area corresponding to the second charging stage in the charging progress bar.

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

[0028] In response to a long - press operation on a target control, a charging progress bar is displayed in the associated area of the virtual obstacle. The charging value of the charging progress bar is determined according to the pressing duration of the long - press operation. The charging progress bar includes multiple nodes, and the multiple nodes are used to represent the charging stages.

[0029] In some embodiments, displaying a charging progress bar in the associated area of the virtual obstacle includes:

[0030] Determine the shape and / or height of the charging progress bar according to the size of the virtual obstacle;

[0031] Display the charging progress bar in the associated area of the virtual obstacle with the determined shape and / or height.

[0032] In some embodiments, before controlling the virtual character to perform a preparatory action for climbing over the virtual obstacle, the method further includes:

[0033] Determine that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

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

[0035] When the distance between the virtual character and the virtual obstacle is greater than the preset distance, in response to a click operation on the target control, control the virtual character to perform a jumping action.

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

[0037] When the distance between the virtual character and the virtual obstacle is greater than the preset distance, in response to a long - press operation on the target control, display a prompt message indicating that it cannot be climbed over.

[0038] The touch operation is a sliding operation, and the touch operation and the long - press operation are continuous operations.

[0039] In a second aspect, an embodiment of the present application provides a virtual character control device, which is applied to a computer device. A graphical user interface is provided through the computer device, and the graphical user interface includes at least part of a game scene. The game scene includes a virtual character and a virtual obstacle. The device includes:

[0040] An interface providing module, configured to provide a target control through the graphical user interface, where the target control is used to control the virtual character to climb over the virtual obstacle;

[0041] A control module, configured to, in response to a long - press operation on the target control, control the virtual character to perform a preparatory action for climbing over the virtual obstacle, and when the pressing duration of the long - press operation reaches a first time threshold, control the virtual character to climb over the virtual obstacle.

[0042] In a third aspect, an embodiment of the present application provides a computer-readable storage medium storing multiple instructions suitable for a processor to load and execute the steps in the virtual character control method provided in the embodiment of the present application.

[0043] In a fourth aspect, an embodiment of the present application provides a computer device including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, it implements the steps in the virtual character control method provided in the embodiment of the present application.

[0044] In the embodiment of the present application, a graphical user interface is provided through a computer device. The graphical user interface includes at least part of a game scene, and the game scene includes a virtual character and a virtual obstacle. Then, the computer device provides a target control through the graphical user interface, and the target control is used to control the virtual character to climb over the virtual obstacle. The computer device responds to a long-press operation on the target control, controls the virtual character to perform a preparatory action for climbing over the virtual obstacle, and when the pressing duration of the long-press operation reaches a first time threshold, controls the virtual character to climb over the virtual obstacle. Thereby, the tactical options of the player are enriched, and it is realized that by performing a long-press operation on the target control, the virtual character can be controlled to perform different actions on the virtual obstacle, thereby improving the control efficiency of the player over the virtual character. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings 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 efforts.

[0046] Figure 1 is a system schematic diagram of the virtual character control device provided in the embodiment of the present application;

[0047] Figure 2 is a flowchart of a virtual character control method provided in the embodiment of the present application;

[0048] Figure 3 is another flowchart of the virtual character control method provided in the embodiment of the present application;

[0049] Figure 4 is another flowchart of the virtual character control method provided in the embodiment of the present application;

[0050] Figure 5 is another flowchart of the virtual character control method provided in the embodiment of the present application;

[0051] Figure 6It is a schematic diagram of a scenario of the virtual character control method provided by an embodiment of the present application;

[0052] Figure 7 It is another schematic diagram of a scenario of the virtual character control method provided by an embodiment of the present application;

[0053] Figure 8 It is another schematic diagram of a scenario of the virtual character control method provided by an embodiment of the present application;

[0054] Figure 9 It is another schematic diagram of a scenario of the virtual character control method provided by an embodiment of the present application;

[0055] Figure 10 It is another schematic diagram of a scenario of the virtual character control method provided by an embodiment of the present application;

[0056] Figure 11 It is another schematic diagram of a scenario of the virtual character control method provided by an embodiment of the present application;

[0057] Figure 12 It is a schematic diagram of the structure of the virtual character control device provided by an embodiment of the present application;

[0058] Figure 13 It is a schematic diagram of the structure of the computer device provided by an embodiment of the present application. Detailed implementation manners

[0059] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.

[0060] The embodiments of the present application provide a virtual character control method, apparatus, storage medium, and computer device. Specifically, the virtual character control method of the embodiments of the present application can be executed by a computer device, where the computer device can be a terminal or a server, etc. 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), a personal digital assistant (PDA), etc. The terminal can also include a client, and the client 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 a distributed system composed of multiple physical servers. It can also be 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.

[0061] For example, when the virtual character control method runs on a terminal, the terminal device stores a game application program and is used to present the virtual scene in the game screen. The terminal device is used to interact with the user through a graphical user interface. For example, the game application program is downloaded and installed on the terminal device and run. The way for the terminal device to provide the graphical user interface to the user can include various methods. For example, it can be rendered and displayed on the display screen of the terminal device, or the graphical user interface can be presented through holographic projection. For example, the terminal device can include a touch display screen and a processor. The touch display screen is used to present the graphical user interface and receive the operation instructions generated by the user acting on the graphical user interface. The graphical user interface includes a game screen, and the processor is used to run the game, generate the graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.

[0062] For example, when the virtual character control method runs on a server, it can be a cloud game. A cloud game refers to a game mode based on cloud computing. In the operation mode of a cloud game, the running entity of the game application and the entity presenting the game screen are separated. The storage and operation of the virtual character control method are completed on the cloud game server, while the presentation of the game screen is completed on the cloud game client. The cloud game client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud game client can be a display device with data transmission function near the user side, such as a mobile terminal, a television, a computer, a palm computer, a personal digital assistant, etc. However, the terminal device for processing game data is the cloud game server in the cloud. When playing a game, the user operates the cloud game client to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game screen, returns it to the cloud game client through the network, and finally, the cloud game client decodes and outputs the game screen.

[0063] Please refer to Figure 1 , Figure 1 which is a system schematic diagram of the virtual character control device provided in the embodiment of the present application. The system may include at least one terminal 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 1000 is any device with computing hardware that can support and execute a software product corresponding to the game. In addition, the terminal 1000 has one or more multi-touch screens for sensing and obtaining input of touch or swipe operations performed by the user at multiple points on one or more touch display screens. The terminal 1000 can also obtain control information input by the user through a keyboard or a gamepad. In addition, when the system includes multiple terminals 1000, multiple servers 2000, and multiple networks 4000, different terminals 1000 can be connected to each other through different networks 4000 and through different servers 2000. The network 4000 can be a wireless network or a wired network. For example, the wireless network can be 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 terminals 1000 can also use their own Bluetooth network or hotspot network to connect to other terminals or to the server, etc. For example, multiple users can go online through different terminals 1000, connect through an appropriate network, and synchronize with each other to support multi-player games. In addition, the system may include multiple databases 3000. The multiple databases 3000 are coupled to different servers 2000, and information related to the game environment can be continuously stored in the database 3000 when different users are online for multi-player games.

[0064] An embodiment of the present application provides a virtual character control method. This method can be executed by a terminal or a server, or jointly executed by a terminal and a server. Among them, the terminal includes a touch display screen and a processor. The touch display screen is used to present a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. When the user operates on the graphical user interface through the touch display screen, the graphical user interface can control the content local to the terminal in response to the received operation instructions, or can also control the content of the peer server in response to the received operation instructions. For example, the operation instructions generated by the user acting on the graphical user interface include instructions for starting a game application. The processor is configured to start the game application after receiving the instruction for starting the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on the touch display screen. The touch display screen is a multi-touch sensitive screen capable of sensing touch or swipe operations performed simultaneously by multiple points on the screen. When the user performs a touch operation on the graphical user interface with a finger, when the graphical user interface detects the touch operation, it controls different virtual objects in the graphical user interface of the game to perform actions corresponding to the touch operation. For example, the game can be any one of casual games, action games, role-playing games, strategy games, sports games, puzzle games, etc. Among them, the game can include a virtual scene of the game drawn on the graphical user interface. In addition, the virtual scene of the game can include one or more virtual characters controlled by the user (or player). Additionally, the virtual scene of the game can also include one or more virtual obstacles, such as railings, ditches, walls, etc., to restrict the movement of the virtual characters. For example, the movement of one or more virtual characters is restricted to a specific area within the virtual scene. Optionally, the virtual scene of the game also includes one or more elements, such as skills, scores, character health status, energy, etc., to provide assistance to the player, provide virtual services, increase scores related to the player's performance, etc. In addition, the graphical user interface can also present one or more indicators to provide indication information to the player. For example, the game can include a virtual character controlled by the player and one or more other virtual characters (such as enemy characters). In one embodiment, one or more other virtual characters are controlled by other players of the game. For example, one or more other virtual characters can be controlled by a computer, such as a robot using an artificial intelligence (AI) algorithm, to implement a human-computer battle mode. For example, the virtual character has various skills or abilities that the game player uses to achieve goals. For example, the virtual character has 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 player using one of multiple preset touch operations on the touch display screen of the terminal. The processor can be configured to present a corresponding game screen in response to the operation instructions generated by the user's touch operation.

[0065] In some games, players need to control virtual characters to climb and flip over in order to overcome obstacles or occupy commanding heights. For more skilled game players, they have more skilled virtual character control skills and can complete actions such as flipping over and climbing.

[0066] However, for some less skilled players, due to unfamiliarity with the operation and complicated operation steps, players may easily encounter operation failures when controlling the characters in the game to climb, climb over and perform other actions, resulting in a poor gaming experience.

[0067] At this time, the player needs to control the virtual character again to climb or climb over the obstacle, which causes the player to control the virtual character multiple times. For example, the player can control the virtual character to climb, climb over, etc. again by using multiple combination buttons, which makes the player's control of the virtual character inefficient.

[0068] In order to solve this technical problem, the embodiments of the present application provide a virtual character control method, device, storage medium and computer equipment. The virtual character control method enables the player to control the virtual character to perform different preparatory actions on the virtual obstacle by only controlling one target control, thereby improving the player's control efficiency of the virtual character.

[0069] See also Figure 2 , Figure 2 1 is a flow chart of a virtual character control method provided by an embodiment of the present application. The virtual character control method may include the following steps:

[0070] 110. Provide a target control through a graphical user interface, where the target control is used to control the virtual character to climb over a virtual obstacle.

[0071] In some games, there are often virtual obstacles, and players can control virtual characters to climb and climb over the obstacles. For example, players can control virtual characters to climb over virtual obstacles to occupy a commanding position to keep an eye on enemy movements. Another example is that players can control virtual characters to climb over virtual obstacles to avoid enemy attacks.

[0072] The computer device can provide a target control for controlling the virtual character to climb over a virtual obstacle through a graphical user interface. The player can click or long-press the target control to control the virtual character to perform different actions in the game scene.

[0073] For example, in response to a long press operation on a target control, the computer device controls the virtual character to perform a preparatory action for climbing over a virtual obstacle, such as a fake climbing action, or staying still, or climbing above the virtual obstacle. The computer device can also control the virtual character to climb over a virtual obstacle by a long press operation on the target control.

[0074] In some embodiments, when the computer device detects that there is a virtual obstacle in the game scene where the virtual character is located, the computer device can obtain the obstacle information of the virtual obstacle, such as the height of the virtual obstacle, the distance between the virtual obstacle and the virtual character, whether the top of the virtual obstacle can be stood on, and so on.

[0075] The computer device can determine whether the virtual obstacle can be climbed over by the virtual character according to the virtual obstacle information.

[0076] For example, if the height of the virtual obstacle is lower than the first preset height, it is determined that the obstacle can be climbed over by the virtual character. For some obstacles with relatively high heights, the virtual character cannot climb over them, such as high walls and guardrails in the game. In the game, when the height of the obstacle is higher than or equal to the first preset height, it is considered that the obstacle cannot be climbed over.

[0077] Also, for example, when the height of the virtual obstacle is between the second preset height and the first preset height, it is considered that the virtual obstacle can be climbed and climbed over. For example, the obstacle is a dilapidated wall, a vehicle, etc., where the second preset height is less than the first preset height.

[0078] Again, for example, when the height of the virtual obstacle is less than the second preset height, it is considered that the obstacle can only be crossed and cannot be climbed, because the height of the virtual obstacle is too low, and the virtual character can directly cross the virtual obstacle or stand above the virtual obstacle.

[0079] 120. In response to a long - press operation on the target control, control the virtual character to perform a preparatory action for climbing over the virtual obstacle, and when the pressing duration of the long - press operation reaches the first time threshold, control the virtual character to climb over the virtual obstacle.

[0080] In some embodiments, in the game scene, when there is a scene with a virtual obstacle, the computer device provides a corresponding target control to the player through the graphical user interface, and the player can perform corresponding actions on the virtual obstacle by operating the target control.

[0081] For example, the computer device can obtain the distance between the virtual character and the virtual obstacle. When the distance between the virtual character and the virtual obstacle is less than or equal to the preset distance, it means that the player can control the virtual character to climb over the virtual obstacle by manipulating the target control.

[0082] In some embodiments, when the distance between the virtual character and the virtual obstacle is less than or equal to the preset distance, the player can also perform a click operation on the target control. If the virtual obstacle can be climbed over by the virtual character, the computer device can control the virtual character to climb over the virtual obstacle according to the click operation.

[0083] In some embodiments, when the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance, the player can perform a long-press operation on the target control, and then the computer device will respond to the long-press operation, so as to control the virtual character to perform the preparatory action of climbing over the virtual obstacle.

[0084] Specifically, when the obstacle can be climbed over, the computer device can determine the charging stage where the virtual character is currently located according to the pressing duration of the long-press operation, and then determine the preparatory action to be performed by the virtual character according to the charging stage where the virtual character is currently located. Finally, control the virtual character to perform the determined preparatory action.

[0085] For example, when the pressing duration is less than the second time threshold, it is determined that the virtual character is in the first charging stage. At this time, it can be determined that the preparatory action to be performed by the virtual character is a fake climbing action or staying still. The fake climbing action is that the virtual character controlled by the player is about to perform the action of preparing to climb over the virtual obstacle, so as to create the visual effect that the virtual character is going to climb over the virtual obstacle, but the virtual character does not perform any climbing or crossing actions on the virtual obstacle, thus confusing the enemy.

[0086] When the pressing duration of the long-press operation is greater than or equal to the second time threshold and less than the first time threshold, it is determined that the virtual character is currently in the second charging stage, where the second time threshold is less than the first time threshold. At this time, it is determined that the preparatory action to be performed by the virtual character is to climb to the top of the virtual obstacle.

[0087] When the pressing duration is greater than or equal to the first time threshold, it is determined that the virtual character needs to climb over the virtual obstacle. At this time, control the virtual character to climb over the virtual obstacle.

[0088] When the virtual obstacle can be climbed over by the virtual character, the player only needs to perform a long-press operation on the target control to enable the virtual character to perform the preparatory action of climbing over the virtual obstacle, such as a fake climbing action, or staying still, or climbing to the top of the virtual obstacle, etc. When the pressing duration of the long-press operation reaches the first time threshold, control the virtual character to climb over the virtual obstacle. Thereby simplifying the operation process of the player for the virtual character and improving the operation efficiency of the player for the virtual character.

[0089] In the embodiments of the present application, a graphical user interface is provided by a computer device. The graphical user interface includes at least part of a game scene, and the game scene includes virtual characters and virtual obstacles. Then, the computer device provides a target control through the graphical user interface, and the target control is used to control the virtual character to climb over the virtual obstacle. The computer device responds to a long-press operation on the target control, controls the virtual character to perform a preparatory action for climbing over the virtual obstacle, and when the pressing duration of the long-press operation reaches a first time threshold, controls the virtual character to climb over the virtual obstacle. Thus, the tactical choices of players are enriched, and by performing a long-press operation on the target control, it is possible to control the virtual character to perform different actions on the virtual obstacle, thereby improving the control efficiency of players over the virtual character.

[0090] Please refer to Figure 3 , Figure 3 which is another flowchart of the virtual character control method provided by the embodiments of the present application. The virtual character control method may include the following steps:

[0091] 201. Provide a target control through the graphical user interface, and the target control is used to control the virtual character to climb over the virtual obstacle.

[0092] In some embodiments, in some game scenes, the computer device may provide a target control for controlling the virtual character to climb over the virtual obstacle through the graphical user interface, and the player can perform a click operation or a long-press operation on the target control, so as to control the virtual character to perform different actions in the game scene.

[0093] For example, the computer device responds to a long-press operation on the target control, controls the virtual character to perform a preparatory action for climbing over the virtual obstacle, such as a fake climbing action, or staying still, or climbing to the top of the virtual obstacle. The computer device can also control the virtual character to climb over the virtual obstacle by the long-press operation of the target control.

[0094] 202. Determine that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

[0095] In some embodiments, when the computer device detects that there is a virtual obstacle in the game scene where the virtual character is located, the computer device may obtain the obstacle information of the virtual obstacle, such as the height of the virtual obstacle and the distance between the virtual obstacle and the virtual character.

[0096] When the computer device determines that the virtual obstacle can be climbed over by the virtual character according to the height of the virtual obstacle, it determines the distance between the virtual obstacle and the virtual character. If the distance between the virtual obstacle and the virtual character is less than or equal to the preset distance, the content in the step is executed.

[0097] 203. In response to a click operation on a target control, control the virtual character to climb over a virtual obstacle.

[0098] In some embodiments, the player can perform a click operation on the target control. At this time, the electronic device can respond to the click operation on the target control. Since the distance between the virtual obstacle and the virtual character is less than or equal to a preset distance at this time, the virtual character can be directly controlled to climb over the virtual obstacle according to the click operation. Thus, the difficulty for the player to control the virtual character to climb over the virtual obstacle is reduced.

[0099] 204. In response to a long - press operation on a target control, determine the charging stage where the virtual character is currently located according to the pressing duration of the long - press operation.

[0100] In some embodiments, the player can perform a long - press operation on the target control. At this time, the electronic device can respond to the long - press operation on the target control.

[0101] The computer device can determine the charging stage where the virtual character is currently located according to the pressing duration of the long - press operation.

[0102] For example, when the pressing duration is less than a second time threshold, it is determined that the virtual character is in the first charging stage.

[0103] When the pressing duration of the long - press operation is greater than or equal to the second time threshold and less than the first time threshold, it is determined that the virtual character is currently in the second charging stage.

[0104] When the pressing duration of the long - press operation is greater than or equal to the first time threshold, it is determined that the virtual character is in the third charging stage.

[0105] In some embodiments, in order to enable the player to clearly understand the charging operation corresponding to the long - press operation in the game scene, the computer device can respond to the long - press operation on the target control and display a charging progress bar in the associated area of the virtual obstacle, where the charging value of the charging progress bar is determined according to the pressing duration of the long - press operation.

[0106] Please refer to Figure 4 , Figure 4 which is another schematic flowchart of the virtual character control method provided by the embodiments of the present application.

[0107] 301. Determine that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

[0108] When it is determined that the distance between the virtual character and the virtual obstacle is less than or equal to the preset distance, the charging bar corresponding to the long - press operation can be triggered, thereby helping the player understand the charging stage where the current long - press operation is located.

[0109] 302. In response to a long - press operation on a target control, determine the shape and / or height of a charging progress bar according to the size of a virtual obstacle, and display the charging progress bar in the associated area of the virtual obstacle in the determined shape and / or height.

[0110] Please refer to Figure 6 , Figure 6 which is a schematic diagram of a scenario of the virtual character control method provided by an embodiment of the present application.

[0111] Among them, when the virtual obstacle is F, the virtual character is E, the target control is G, and the preset range where the target control is located is R.

[0112] When it is determined that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance, the computer device can display a prompt message that the virtual obstacle can be climbed over to the player through a graphical user interface.

[0113] The player can perform a long - press operation on the target control G. At this time, if the player does not want the virtual character to perform any actions, the player can drag the target control G outside the preset range R, thereby generating a cancellation trigger instruction. The computer device responds to the cancellation trigger instruction and then controls the virtual character not to perform any actions corresponding to the target control according to the cancellation trigger instruction.

[0114] In some embodiments, the player can also long - press the target control, and the computer device determines the shape and / or height of the charging progress bar according to the size of the virtual obstacle, and displays the charging progress bar in the associated area of the virtual obstacle in the determined shape and / or height.

[0115] Please refer to Figure 7 , Figure 7 which is another schematic diagram of a scenario of the virtual character control method provided by an embodiment of the present application.

[0116] Among them, the virtual obstacle is F, the virtual character is E, and A, B, C, D are multiple nodes of the charging progress bar. These multiple nodes are used to represent the charging stages. For example, the stage from node A to node B is used to represent the first charging stage, the stage from node B to node C is used to represent the second charging stage, and the stage from node C to node D is used to represent the third charging stage.

[0117] The charging progress bar includes multiple progress bar ranges, and the progress bar ranges of each charging stage are different. For example, the first progress bar range AB corresponds to the first charging stage, the second progress bar range BC corresponds to the second charging stage, and the third progress bar range CD corresponds to the third charging stage.

[0118] In some embodiments, the computer device determines the first progress bar range and the third progress bar range according to the height of the virtual obstacle, and the computer device can determine the second progress bar range according to the width of the virtual obstacle.

[0119] That is, when the height of the virtual obstacle is higher, the range of the first progress bar and the range of the third progress bar are longer. When the height of the virtual obstacle is wider, the range of the second progress bar is longer.

[0120] The first progress bar range may be on the side of the virtual obstacle facing the virtual character, the second progress bar range may be on the side on the top of the virtual obstacle, and the third progress bar range may be on the side of the virtual obstacle facing away from the virtual character.

[0121] like Figure 7 As shown, the virtual obstacle is a cuboid, and the shape of the charging progress bar can be similar to a part of a rectangle. For example, the shape of the charging progress bar is determined according to the height of the virtual obstacle and the width of the top. If the shape of the virtual obstacle is a trapezoid, the shape of the charging progress bar can be similar to a trapezoid. In other words, the shape of the charging progress bar can be determined according to the shape of the virtual obstacle.

[0122] like Figure 7 As shown, in some embodiments, the charging progress bar can also appear in the associated area of ​​the virtual obstacle, such as the charging progress bar appears on the wall area of ​​the virtual obstacle, or the charging progress bar appears in the adjacent area of ​​the virtual obstacle, or appears in the area above the virtual obstacle.

[0123] like Figure 7 As shown, in some embodiments, in the game scene corresponding to the game character and the virtual obstacle, there are a target control G and a cancel control H. When the distance between the virtual character and the virtual obstacle is less than or equal to the preset distance, the player can control the virtual character to make corresponding preparatory actions for the virtual obstacle by manipulating the target control G. If the player wants to cancel the preparatory action of the virtual character for the virtual obstacle, or cancel the climbing action over the virtual obstacle, the player can cancel the preparatory action of the virtual character for the virtual obstacle, or cancel the climbing action over the virtual obstacle by touch operation of the cancel control H.

[0124] 303. Determine the charging value of the charging progress bar according to the pressing duration of the long press operation.

[0125] For example, the length of the charging progress bar changes according to the increase in the pressing time. For example, the pressing time is set to T, and the charging value of the charging progress bar increases at a speed of V. When the pressing time is longer, the length of the charging progress bar is longer, the charging value of the charging progress bar is larger, and the stop position of the charging progress bar will also change. In the game interface, the computer device can display the change of the charging progress bar according to the change of the pressing time, and at the same time display the position corresponding to the charging value.

[0126] 304. When the virtual character is currently in the second charging stage, highlight the area corresponding to the second charging stage in the charging progress bar.

[0127] As Figure 8 shown, Figure 8 FIG. is another schematic diagram of a scene of the virtual character control method provided by an embodiment of the present application. Among them, the virtual obstacle is F, the virtual character is E, and A, B, C, and D are multiple nodes of the charging progress bar. The multiple nodes are used to represent the charging stages. For example, the section from node A to node B is used to represent the first charging stage, the section from node B to node C is used to represent the second charging stage, and the section from node C to node D is used to represent the third charging stage.

[0128] The charging progress bar includes multiple progress bar ranges, and the progress bar ranges of each charging stage are different. For example, the first progress bar range AB corresponds to the first charging stage, the second progress bar range BC corresponds to the second charging stage, and the third progress bar range CD corresponds to the third charging stage. The length of the first progress bar range AB is L1, the length of the second progress bar range BC is L2, and the length of the third progress bar range CD is L3.

[0129] When the charging value is in different progress bar ranges, it corresponds to different charging stages. For example, when the charging value is in the first progress bar range AB, it corresponds to the first charging stage. When the charging value is in the second progress bar range BC, it corresponds to the second charging stage. When the charging value is in the third progress bar range CD, it corresponds to the third charging stage.

[0130] When it is determined that the virtual character is currently in the second charging stage, highlight the area corresponding to the second charging stage in the charging progress bar. For example, use yellow to highlight the area where the second progress bar range corresponding to the second charging stage is located.

[0131] In the embodiment of the present application, by setting the charging progress bar, the pressing duration is used to determine the charging value corresponding to the virtual character, so as to determine the progress bar range where the charging value is located. Players can understand the charging stage where the virtual character is located according to the progress bar range where the charging value is located, so as to control the virtual character to perform corresponding actions in different charging stages.

[0132] It should be noted that the change of the charging value in the charging progress bar of the present application can also be controlled according to other parameters of the long-press operation.

[0133] For example, the computer device can obtain the pressing pressure value of the long-press operation. When the pressing pressure value gradually increases, the charging value corresponding to the pressing pressure value will also increase accordingly, and the position where the charging value is located in the charging progress will also change.

[0134] For another example, a computer device can obtain the pressing area of ​​a long press operation. When the pressing area gradually increases, the power storage value corresponding to the pressing area will also increase accordingly. In the power storage progress, the position of the power storage value will also change.

[0135] 205. Determine a preparatory action to be performed by the virtual character according to the current charging stage of the virtual character.

[0136] In some implementations, if it is determined that the virtual character is in the first power accumulation stage, then the preparatory action to be performed by the virtual character is determined to be a fake flip action or keeping still.

[0137] If it is determined that the virtual character is in the second power accumulation stage, it is determined that the preparatory action to be performed by the virtual character is to climb to the top of the virtual obstacle.

[0138] 206. Control the virtual character to perform a determined preparatory action.

[0139] like Figure 7 As shown, when the virtual character is in the first charging stage, the charging value J is in the first progress bar range AB in the charging progress bar. When the player releases the target control, the computer device controls the virtual character to perform a fake climbing action or remain still.

[0140] See also Figure 9 , Figure 9 This is another scenario diagram of the virtual character control method provided in an embodiment of the present application.

[0141] The range of the first progress bar is AB, the range of the second progress bar is BC, the range of the third progress bar is CD, the obstacle is F, the virtual character is E, and the power value is J.

[0142] When the player presses the target control, the power value will increase. When the power value increases to within the second progress bar range BC, the player releases the target control, and the stop position of the power value is within the second progress bar range. At this time, the computer device determines that the current power value is in the second power stage, and then the computer device controls the virtual character to perform the action of climbing the virtual obstacle, controlling the virtual character to climb above the obstacle.

[0143] In some implementations, before the pressing duration of the long press operation is greater than or equal to the first time threshold, the computer device may also respond to a touch operation for canceling the control to control the virtual character to end the preparation action for climbing over the virtual obstacle.

[0144] For example, the computing device may display a cancellation control via a graphical user interface, and the player can manipulate the cancellation control, such as clicking on the cancellation control. The computer device responds to the touch operation on the cancellation control and controls the virtual character to end the preparatory action of climbing over the virtual obstacle. For example, the computer device controls the virtual character to cancel the feigned climb or climbing action.

[0145] It should be noted that the touch operation is a sliding operation, and the touch operation and the long - press operation are continuous operations. For example, the player can slide the cancellation control to a corresponding area in the game interface, which triggers the cancellation of the preparatory action of the virtual character performing the climb over the virtual obstacle, or triggers the cancellation of the action of the virtual character performing the climb over the virtual obstacle.

[0146] Please refer to Figure 10 , Figure 10 which is another schematic diagram of the virtual character control method provided by the embodiments of the present application.

[0147] The range of the first progress bar is AB, the range of the second progress bar is BC, the range of the third progress bar is CD, the obstacle is F, the virtual character is E, and the charging value is J.

[0148] In some embodiments, the player can control the virtual character not to perform the preparatory action of climbing over the virtual obstacle. For example, the player can long - press the target control, and the charging value J will increase. When the charging value increases to within the range CD of the third progress bar and the player releases the target control, the stopping position of the charging value is within the third progress bar. At this time, the computer device determines that the current charging value is in the third charging stage, and at this time, the computer device can control the virtual character to directly climb over the virtual obstacle.

[0149] It should be noted that in the embodiments of the present application, multiple parameters such as the pressing area or pressing pressure of the long - press operation can also be used to determine the charging stage of the virtual character, so as to control the virtual character to perform corresponding actions according to the charging stage of the virtual character, such as controlling the virtual character to perform the preparatory action of climbing over the virtual obstacle, or controlling the virtual character to perform the action of climbing over the virtual obstacle.

[0150] In the embodiments of the present application, the computer device can provide a target control via a graphical user interface, and the target control is used to control the virtual character to climb over the virtual obstacle. If the computer device determines that the distance between the virtual character and the virtual obstacle is less than or equal to the preset distance, it responds to the click operation on the target control and controls the virtual character to climb over the virtual obstacle.

[0151] Alternatively, if the computer device determines that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance, it responds to the long-press operation on the target control, determines the charging stage at which the virtual character is currently located according to the duration of the long-press operation, then determines the preparatory action to be performed by the virtual character according to the charging stage at which the virtual character is currently located, and finally controls the virtual character to perform the determined preparatory action for climbing over the virtual obstacle.

[0152] When the duration of the press operation is greater than or equal to the first time threshold, the computer device can control the virtual character to directly perform the action of climbing over the obstacle.

[0153] For example, when the duration of the press operation is greater than or equal to the first time threshold, the player can release the long-press operation on the target button, and the computer device then controls the virtual character to directly perform the action of climbing over the obstacle.

[0154] Alternatively, when the duration of the press operation reaches the first time threshold, the computer device then controls the virtual character to directly perform the action of climbing over the obstacle, and at the same time reminds the user that the long-press operation on the target control can be cancelled.

[0155] In the embodiments of the present application, by setting a target control, the player can operate only this target control to be able to perform the preparatory action for climbing over the virtual obstacle or control the virtual character to climb over the obstacle, thereby improving the control efficiency of the player over the virtual character.

[0156] Please refer to Figure 5 , Figure 5 which is another schematic flowchart of the virtual character control method provided by the embodiments of the present application. The virtual character control method may include the following steps:

[0157] 401. Provide a target control through the graphical user interface, where the target control is used to control the virtual character to climb over the virtual obstacle.

[0158] In some implementation manners, in some game scenarios, the computer device can provide a target control for controlling the virtual character to climb over the virtual obstacle through the graphical user interface, and the player can perform a click operation or a long-press operation on the target control to control the virtual character to perform different actions in the game scenario.

[0159] For example, the player can control the virtual character to perform a jumping action by clicking the target control.

[0160] 402. Determine that the distance between the virtual character and the virtual obstacle is greater than the preset distance.

[0161] In some embodiments, the computer device can obtain the distance between the virtual character and the virtual obstacle. If it is determined that the distance between the virtual character and the virtual obstacle is greater than the preset distance, it means that the virtual obstacle cannot be climbed over at this time.

[0162] 403. In response to a long press operation on the target control, display a prompt message indicating that it cannot be climbed over.

[0163] In some embodiments, when the player has not determined the distance between the virtual character and the virtual obstacle, the player may directly perform a long press operation on the target control. However, since the distance between the virtual character and the virtual obstacle is greater than the preset distance and the virtual character cannot climb over the virtual obstacle, the computer device can display a prompt message indicating that it cannot be climbed over through the graphical user interface at this time.

[0164] 404. In response to a click operation on the target control, control the virtual character to perform a jumping action.

[0165] In some embodiments, when the distance between the virtual character and the virtual obstacle is greater than the preset distance, the player may directly click the target control. At this time, the computer device can control the virtual character to perform a jumping action.

[0166] If the distance between the virtual character and the virtual obstacle is greater than the preset distance but is approaching the preset distance, the computer device can display, through the graphical user interface, the distance between the virtual character and the virtual obstacle and the identification line corresponding to the preset distance.

[0167] Please refer to Figure 11 , Figure 11 which is another schematic diagram of a scenario of the virtual character control method provided by the embodiments of the present application.

[0168] Among them, the obstacle is F, the position of the virtual character before jumping is E1, and the position of the virtual character after jumping is E2.

[0169] If the distance between the virtual character and the virtual obstacle is greater than the preset distance, it is determined that the virtual obstacle cannot be climbed over by the virtual character. At this time, the computer device controls the virtual character to jump from position E1 to position E2 through a unique control instruction.

[0170] In the embodiments of the present application, the player can only manipulate the target control to control the virtual character to perform different actions. During the game process, the manipulation steps of the virtual character are reduced, and at the same time, the operation error rate of the player for the virtual character is reduced, thereby ultimately improving the manipulation efficiency of the player for the virtual character.

[0171] Correspondingly, the embodiments of the present application further provide a virtual character control device. Please refer to Figure 12 , Figure 12It is a schematic structural diagram of a virtual character control device provided by an embodiment of the present application. The virtual character control device 500 includes:

[0172] An interface providing module 510, configured to provide a target control through a graphical user interface, where the target control is used to control a virtual character to climb over a virtual obstacle.

[0173] A control module 520, configured to respond to a long - press operation on the target control, control the virtual character to perform a preparatory action for climbing over the virtual obstacle, and when the pressing duration of the long - press operation reaches a first time threshold, control the virtual character to climb over the virtual obstacle.

[0174] The control module 520 is further configured to respond to a click operation on the target control and control the virtual character to climb over the virtual obstacle.

[0175] The control module 520 is further configured to determine that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance before controlling the virtual character to climb over the virtual obstacle.

[0176] The control module 520 is further configured to respond to a long - press operation on the target control, determine the current charging stage of the virtual character according to the pressing duration of the long - press operation;

[0177] Determine the preparatory action to be performed by the virtual character according to the current charging stage of the virtual character;

[0178] Control the virtual character to perform the determined preparatory action.

[0179] The control module 520 is further configured to respond to a long - press operation on the target control. When the pressing duration of the long - press operation is less than a second time threshold, determine that the virtual character is currently in a first charging stage, where the second time threshold is less than the first time threshold;

[0180] When the virtual character is currently in the first charging stage, determine that the preparatory action to be performed by the virtual character is a feign climb or remain stationary.

[0181] The control module 520 is further configured to respond to a long - press operation on the target control. When the pressing duration of the long - press operation is greater than or equal to the second time threshold and less than the first time threshold, determine that the virtual character is currently in a second charging stage;

[0182] When the virtual character is currently in the second charging stage, determine that the preparatory action to be performed by the virtual character is to climb to the top of the virtual obstacle.

[0183] The control module 520 is also used to respond to the long press operation on the target control, and display a charging progress bar in the associated area of ​​the virtual obstacle, and the charging value of the charging progress bar is determined according to the pressing time of the long press operation. The charging progress bar includes multiple nodes, and the multiple nodes are used to represent the charging stage.

[0184] The control module 520 is also used to respond to a long press operation on the target control, and display a charging progress bar in the associated area of ​​the virtual obstacle. The charging value of the charging progress bar is determined according to the pressing duration of the long press operation; when the virtual character is currently in the second charging stage, the area corresponding to the second charging stage in the charging progress bar is highlighted.

[0185] The control module 520 is further configured to determine the shape and / or height of the charging progress bar according to the size of the virtual obstacle, so as to display the charging progress bar in the associated area of ​​the virtual obstacle with the determined shape and / or height.

[0186] The control module 520 is further configured to determine whether the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance before controlling the virtual character to perform a preparatory action for climbing over the virtual obstacle.

[0187] The control module 520 is further configured to control the virtual character to perform a jumping action in response to a click operation on a target control when the distance between the virtual character and the virtual obstacle is greater than a preset distance.

[0188] The control module 520 is further configured to, when the distance between the virtual character and the virtual obstacle is greater than a preset distance, respond to a long press operation on the target control and display a prompt message indicating that the obstacle cannot be climbed over.

[0189] The control module 520 is further configured to respond to a touch operation for canceling the control and control the virtual character to end the preparation action for climbing over the virtual obstacle. The touch operation is a sliding operation, and the touch operation and the long press operation are continuous operations.

[0190] In the embodiment of the present application, a graphical user interface is provided through a computer device, and the graphical user interface includes at least part of the game scene, and the game scene includes a virtual character and a virtual obstacle. Then, the interface providing module 510 provides a target control through the graphical user interface, and the target control is used to control the virtual character to climb over the virtual obstacle; the control module 520 responds to the long press operation on the target control, controls the virtual character to perform the preparation action of climbing over the virtual obstacle, and controls the virtual character to climb over the virtual obstacle when the pressing time of the long press operation reaches the first time threshold. This enriches the player's tactical options, and realizes that by long pressing the target control, the virtual character can be controlled to perform different actions on the virtual obstacle, thereby improving the player's control efficiency of the virtual character.

[0191] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Figure 13 As shown, Figure 13 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 600 includes a processor 601 having one or more processing cores, a memory 602 having one or more computer-readable storage media, and a computer program stored in the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. It will be understood by those skilled in the art that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0192] The processor 601 is the control center of the computer device 600. It uses various interfaces and lines to connect the various parts of the entire computer device 600, executes various functions of the computer device 600 and processes data by running or loading software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, thereby monitoring the computer device 600 as a whole.

[0193] In the embodiment of the present application, the processor 601 in the computer device 600 will load instructions corresponding to the processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 will run the application programs stored in the memory 602 to implement various functions:

[0194] Providing a target control through a graphical user interface, the target control is used to control the virtual character to climb over a virtual obstacle;

[0195] In response to a long press operation on a target control, the virtual character is controlled to perform a preparatory action for climbing over a virtual obstacle, and when a pressing duration of the long press operation reaches a first time threshold, the virtual character is controlled to climb over the virtual obstacle.

[0196] The processor 601 is further configured to implement the function of responding to a click operation on a target control and controlling the virtual character to climb over a virtual obstacle.

[0197] The processor 601 is further configured to implement a function of: before controlling the virtual character to climb over the virtual obstacle, determining that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

[0198] The processor 601 is further configured to implement the function of: in response to a long - press operation on the target control, determining the charging stage in which the virtual character is currently located according to the pressing duration of the long - press operation;

[0199] Determining the preparatory action to be executed by the virtual character according to the charging stage in which the virtual character is currently located;

[0200] Controlling the virtual character to execute the determined preparatory action.

[0201] The processor 601 is further configured to implement the function of: in response to a long - press operation on the target control, when the pressing duration of the long - press operation is less than the second time threshold, determining that the virtual character is currently in the first charging stage, where the second time threshold is less than the first time threshold;

[0202] When the virtual character is currently in the first charging stage, determining that the preparatory action to be executed by the virtual character is a feign climb or remaining stationary.

[0203] The processor 601 is further configured to implement the function of: in response to a long - press operation on the target control, when the pressing duration of the long - press operation is greater than or equal to the second time threshold and less than the first time threshold, determining that the virtual character is currently in the second charging stage;

[0204] When the virtual character is currently in the second charging stage, determining that the preparatory action to be executed by the virtual character is to climb to the top of the virtual obstacle.

[0205] The processor 601 is further configured to implement the function of: in response to a long - press operation on the target control, displaying a charging progress bar in the associated area of the virtual obstacle, where the charging value of the charging progress bar is determined according to the pressing duration of the long - press operation. The charging progress bar includes multiple nodes, and the multiple nodes are used to represent the charging stage.

[0206] The processor 601 is further configured to implement the function of: in response to a long - press operation on the target control, displaying a charging progress bar in the associated area of the virtual obstacle, where the charging value of the charging progress bar is determined according to the pressing duration of the long - press operation; when the virtual character is currently in the second charging stage, highlighting the area corresponding to the second charging stage in the charging progress bar.

[0207] The processor 601 is further configured to implement the function of: determining the shape and / or height of the charging progress bar according to the size of the virtual obstacle, and displaying the charging progress bar in the associated area of the virtual obstacle with the determined shape and / or height.

[0208] The processor 601 is further configured to implement the function of: before controlling the virtual character to execute the preparatory action of climbing over the virtual obstacle, determining that the distance between the virtual character and the virtual obstacle is less than or equal to the preset distance.

[0209] The processor 601 is further configured to implement the function that when the distance between the virtual character and the virtual obstacle is greater than a preset distance, in response to a click operation on the target control, control the virtual character to perform a jumping action.

[0210] The processor 601 is further configured to implement the function that when the distance between the virtual character and the virtual obstacle is greater than a preset distance, in response to a long press operation on the target control, display a prompt message indicating that it cannot be climbed over.

[0211] The processor 601 is further configured to implement the function that in response to a touch operation on the cancellation control, control the virtual character to end the preparatory action of climbing over the virtual obstacle. The touch operation is a sliding operation, and the touch operation and the long press operation are continuous operations.

[0212] For the specific implementation of each of the above operations, reference may be made to the previous embodiments, which will not be elaborated herein.

[0213] Optionally, as Figure 13 shown, the computer device 600 further includes: a touch display screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. Among them, the processor 601 is electrically connected to the touch display screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607 respectively. Those skilled in the art can understand that Figure 13 the computer device structure shown in

[0214] The touch display screen 603 can be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 603 may include a display panel and a touch panel. Among them, the display panel 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 computer device. These graphical user interfaces can be composed of graphics, text, icons, videos, and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect touch operations of the user on or near it (such as operations of the user using any suitable object or accessory such as a finger or a stylus on or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute the corresponding program. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the touch position of the user and 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 contact coordinates, and then sends it to the processor 601, and can receive and execute the commands sent by the processor 601. The touch panel can cover the display panel. After the touch panel detects a touch operation on or near it, it transmits it to the processor 601 to determine the type of touch event. Subsequently, the processor 601 provides a corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 603 to implement input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two independent components to implement input and output functions. That is, the touch display screen 603 can also be used as a part of the input unit 606 to implement the input function.

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

[0216] The radio frequency circuit 604 can be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other computer devices through wireless communication, and transmit and receive signals with the network device or other computer devices.

[0217] The audio circuit 605 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 605 can convert the received audio data into an electrical signal and transmit it to the speaker, which converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 605 and then converted into audio data. After the audio data is output and processed by the processor 601, it is sent through the radio frequency circuit 604 to, for example, another computer device, or the audio data is output to the memory 602 for further processing. The audio circuit 605 may also include an earphone jack to provide communication between a peripheral earphone and the computer device.

[0218] The input unit 606 can be used to receive input digital, character information or user characteristic information (such as fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0219] The power supply 607 is used to supply power to each component of the computer device 600. Optionally, the power supply 607 can be logically connected to the processor 601 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 607 may also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0220] Although Figure 13 not shown in the figure, the computer device 600 may also include a camera, a sensor, a Wi-Fi module, a Bluetooth module, etc., which will not be elaborated here.

[0221] In the above embodiments, the descriptions of each embodiment have their own emphases. For parts not detailed in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0222] As can be seen from the above, in the embodiments of the present application, a graphical user interface is provided through a computer device. The graphical user interface includes at least part of a game scene, and the game scene includes virtual characters and virtual obstacles. Then, the computer device provides a target control through the graphical user interface. The target control is used to control the virtual character to climb over the virtual obstacle; the computer device responds to a long press operation on the target control, controls the virtual character to perform a preparatory action for climbing over the virtual obstacle, and when the pressing duration of the long press operation reaches a first time threshold, controls the virtual character to climb over the virtual obstacle. Thereby enriching the player's tactical choices, and realizing that by performing a long press operation on the target control, the player can control the virtual character to perform different actions on the virtual obstacle, thereby improving the player's control efficiency of the virtual character.

[0223] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0224] For this reason, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored. The computer programs can be loaded by a processor to execute the steps in any virtual character control method provided by the embodiment of the present application. For example, the computer program can execute the following steps:

[0225] Provide a target control through a graphical user interface, where the target control is used to control a virtual character to climb over a virtual obstacle;

[0226] In response to a long-press operation on the target control, control the virtual character to perform a preparatory action for climbing over the virtual obstacle, and when the pressing duration of the long-press operation reaches a first time threshold, control the virtual character to climb over the virtual obstacle.

[0227] The computer program is also used to execute: in response to a click operation on the target control, control the virtual character to climb over the virtual obstacle.

[0228] The computer program is also used to execute: before controlling the virtual character to climb over the virtual obstacle, determine that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

[0229] The computer program is also used to execute: in response to a long-press operation on the target control, determine the current charging stage of the virtual character according to the pressing duration of the long-press operation;

[0230] According to the current charging stage of the virtual character, determine the preparatory action to be performed by the virtual character;

[0231] Control the virtual character to perform the determined preparatory action.

[0232] The computer program is also used to execute: in response to a long-press operation on the target control, when the pressing duration of the long-press operation is less than a second time threshold, determine that the virtual character is currently in a first charging stage, where the second time threshold is less than the first time threshold;

[0233] When the virtual character is currently in the first charging stage, determine that the preparatory action to be performed by the virtual character is a feign climb or remain stationary.

[0234] The computer program is also used to execute: in response to a long-press operation on the target control, when the pressing duration of the long-press operation is greater than or equal to the second time threshold and less than the first time threshold, determine that the virtual character is currently in a second charging stage;

[0235] When the virtual character is currently in the second charging stage, determine that the preparatory action to be performed by the virtual character is to climb above the virtual obstacle.

[0236] The computer program is also used to perform: in response to a long press operation on the target control, display a charging progress bar in the associated area of the virtual obstacle, and the charging value of the charging progress bar is determined according to the pressing duration of the long press operation. The charging progress bar includes multiple nodes, and the multiple nodes are used to represent the charging stage.

[0237] The computer program is also used to perform: in response to a long press operation on the target control, display a charging progress bar in the associated area of the virtual obstacle, and the charging value of the charging progress bar is determined according to the pressing duration of the long press operation; when the virtual character is currently in the second charging stage, highlight the area corresponding to the second charging stage in the charging progress bar.

[0238] The computer program is also used to perform: determine the shape and / or height of the charging progress bar according to the size of the virtual obstacle, and display the charging progress bar in the associated area of the virtual obstacle with the determined shape and / or height.

[0239] The computer program is also used to perform: before controlling the virtual character to perform the preparatory action of climbing over the virtual obstacle, determine that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

[0240] The computer program is also used to perform: when the distance between the virtual character and the virtual obstacle is greater than the preset distance, in response to a click operation on the target control, control the virtual character to perform a jumping action.

[0241] The computer program is also used to perform: when the distance between the virtual character and the virtual obstacle is greater than the preset distance, in response to a long press operation on the target control, display a prompt message indicating that it cannot be climbed over.

[0242] The computer program is also used to perform: in response to a touch operation on the cancel control, control the virtual character to end the preparatory action of climbing over the virtual obstacle. The touch operation is a sliding operation, and the touch operation and the long press operation are continuous operations.

[0243] In the embodiments of the present application, a graphical user interface is provided by a computer device. The graphical user interface includes at least part of a game scene, and the game scene includes virtual characters and virtual obstacles. Then, the computer device provides a target control through the graphical user interface, and the target control is used to control the virtual character to climb over the virtual obstacle; the computer device responds to a long-press operation on the target control, controls the virtual character to perform a preparatory action for climbing over the virtual obstacle, and when the pressing duration of the long-press operation reaches a first time threshold, controls the virtual character to climb over the virtual obstacle. Thereby, the tactical choices of players are enriched, and it is realized that by performing a long-press operation on the target control, different actions can be controlled for the virtual character to perform on the virtual obstacle, thereby improving the control efficiency of players over the virtual character.

[0244] For the specific implementation of each of the above operations, reference can be made to the previous embodiments and will not be elaborated here.

[0245] Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.

[0246] Since the computer program stored in the storage medium can execute the steps in any of the virtual character control methods provided by the embodiments of the present application, the beneficial effects achievable by any of the virtual character control methods provided by the embodiments of the present application can be realized. For details, refer to the previous embodiments and will not be elaborated here.

[0247] The above has introduced in detail a virtual character control method, device, storage medium, and computer device provided by the embodiments of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.

Claims

1. A virtual character control method, characterized in that, Providing a graphical user interface through a computer device, the graphical user interface including at least a partial virtual scene, the virtual scene including a virtual character and a virtual obstacle, the method including: Providing a target control through the graphical user interface, the target control being used to control the virtual character to climb over the virtual obstacle; In response to a long press operation on the target control, displaying a charging progress bar in an associated area of the virtual obstacle and marking a charging value corresponding to the current pressing duration of the long press operation in the progress bar, wherein the shape of the charging progress bar is determined according to the shape of the virtual obstacle, the charging progress bar includes a first progress bar range, a second progress bar range and a third progress bar range, the first progress bar range is located on a side of the virtual obstacle facing the virtual character, the second progress bar range is located on a side on the top of the virtual obstacle, the third progress bar range is located on a side of the virtual obstacle facing away from the virtual character, when the pressing duration of the long press operation is less than a first time threshold and greater than or equal to a second time threshold, the charging value belongs to the second progress bar range, to indicate that the current pressing duration can control the virtual character to climb above the virtual obstacle; In response to the end of the long press operation, if the pressing duration of the long press operation is less than the first time threshold and greater than or equal to the second time threshold, controlling the virtual character to climb above the virtual obstacle, if the pressing duration of the long press operation is greater than or equal to the first time threshold, controlling the virtual character to climb over the virtual obstacle.

2. The virtual character control method according to claim 1, wherein The method further includes: In response to a click operation on the target control, controlling the virtual character to climb over the virtual obstacle.

3. The virtual character control method according to claim 1 or 2, characterized in that Before controlling the virtual character to climb over the virtual obstacle, the method further includes: Determining that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

4. The virtual character control method according to claim 1, wherein The method further includes: When the pressing duration of the long press operation is less than the second time threshold, determining that the virtual character is currently in a first charging stage, wherein the second time threshold is less than the first time threshold; When the virtual character is currently in the first charging stage, determining that the preparatory action to be performed by the virtual character is a feigned climb or remaining stationary.

5. The virtual character control method according to claim 1, wherein The in response to the end of the long press operation, if the pressing duration of the long press operation is less than the first time threshold and greater than or equal to the second time threshold, controlling the virtual character to climb above the virtual obstacle includes: In response to the end of the long press operation, when the pressing duration of the long press operation is greater than or equal to the second time threshold and less than the first time threshold, determining that the virtual character is currently in a second charging stage; When the virtual character is currently in the second charging stage, determining that the preparatory action to be performed by the virtual character is to climb above the virtual obstacle.

6. The virtual character control method according to claim 5, wherein, The method further includes: When the virtual character is currently in the second charging stage, highlighting an area corresponding to the second charging stage in the charging progress bar.

7. The virtual character control method according to claim 1, wherein The charging progress bar includes multiple nodes, and the multiple nodes are used to represent the charging stage.

8. The virtual character control method according to claim 1, wherein, Displaying the charging progress bar in the associated area of the virtual obstacle includes: Determining the shape and / or height of the charging progress bar according to the size of the virtual obstacle; Displaying the charging progress bar in the associated area of the virtual obstacle in the determined shape and / or height.

9. The virtual character control method according to claim 1, characterized in that Before controlling the virtual character to climb above the virtual obstacle when the pressing duration of the long-press operation is less than the first time threshold and greater than or equal to the second time threshold, the method further includes: Determining that the distance between the virtual character and the virtual obstacle is less than or equal to a preset distance.

10. The virtual character control method according to claim 1, wherein The method further includes: When the distance between the virtual character and the virtual obstacle is greater than the preset distance, in response to a click operation on the target control, controlling the virtual character to perform a jumping action.

11. The virtual character control method according to claim 1, wherein, The method further includes: When the distance between the virtual character and the virtual obstacle is greater than the preset distance, in response to a long-press operation on the target control, displaying a prompt message indicating that it cannot be climbed over.

12. The virtual character control method according to claim 1, wherein Before the pressing duration of the long-press operation reaches the first time threshold, the method further includes: In response to a touch operation on the cancel control, controlling the virtual character to end the preparatory action of climbing over the virtual obstacle.

13. The virtual character control method according to claim 12, wherein, The touch operation is a sliding operation, and the touch operation and the long-press operation are continuous operations.

14. A virtual character control device, applied to a computer device, characterized in that, Providing a graphical user interface through the computer device, the graphical user interface includes at least part of the game scene, and the game scene includes a virtual character and a virtual obstacle. The device includes: An interface providing module, configured to provide a target control through the graphical user interface, and the target control is used to control the virtual character to climb over the virtual obstacle; A control module, configured to, in response to a long-press operation on the target control, display a charging progress bar in the associated area of the virtual obstacle, and mark the charging value corresponding to the current pressing duration of the long-press operation in the progress bar. The shape of the charging progress bar is determined according to the shape of the virtual obstacle. The charging progress bar includes a first progress bar range, a second progress bar range, and a third progress bar range. The first progress bar range is located on the side of the virtual obstacle facing the virtual character, the second progress bar range is located on one side of the top of the virtual obstacle, and the third progress bar range is located on the side of the virtual obstacle facing away from the virtual character. When the pressing duration of the long-press operation is less than the first time threshold and greater than or equal to the second time threshold, the charging value belongs to the second progress bar range, indicating that the current pressing duration can control the virtual character to climb above the virtual obstacle; In response to the end of the long-press operation, if the pressing duration of the long-press operation is less than the first time threshold and greater than or equal to the second time threshold, controlling the virtual character to climb above the virtual obstacle, and if the pressing duration of the long-press operation is greater than or equal to the first time threshold, controlling the virtual character to climb over the virtual obstacle.

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

16. A computer device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, the steps in the virtual character control method according to any one of claims 1 to 13 are implemented.

Citation Information

Patent Citations

  • Virtual object control method, device and equipment and storage medium

    CN111068324A