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

By providing a graphical user interface and flexible amplitude adjustment operation in the game, the problem of insufficient flexibility in the control of the controlled virtual characters in the prior art is solved, and more efficient motion control and attack avoidance ability are achieved.

CN119499655APending Publication Date: 2025-02-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411448154.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, the flexibility of controlling controlled virtual characters to perform squat movements is poor, and it is difficult to accurately adjust the squat amplitude.

Method used

The terminal device provides a graphical user interface, responds to the input squat action setting operation, obtains the height relationship between the preset target part of the controlled virtual character in the game scene and the target virtual bunker in the preset vertical direction, and in the graphical user interface The bunker indication object of the target virtual bunker and the part indication object of the preset target part are displayed. In response to the input lower amplitude adjustment operation, determine the target lower amplitude amplitude, and control the controlled virtual character to perform the lower amplitude action according to this amplitude.

Benefits of technology

It improves the flexibility of controlling the controlled virtual objects to perform the lower lag actions, allowing users to intuitively understand the height relationship between the preset target location and the target virtual bunker, and adjust the lower lag amplitude in time to avoid attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119499655A_ABST
    Figure CN119499655A_ABST
Patent Text Reader

Abstract

The invention provides an action control method and device of a virtual character, terminal equipment and a storage medium, and relates to the technical field of games. The method comprises the following steps: in response to an input squat action setting operation, obtaining a first height relationship between a preset target part of a controlled virtual character in a game scene and a target virtual shelter in a preset vertical direction; a blindage indication object of the target virtual blindage and a part indication object of a preset target part are displayed in the graphical user interface, and a second height relation between the blindage indication object and the part indication object is associated with the first height relation; determining a target squat amplitude in response to an input squat amplitude adjustment operation; and controlling the controlled virtual character to execute a squatting action in the game scene according to the target squatting amplitude. Therefore, the user can visually know the height relation between the preset target part and the target virtual blindage, and the amplitude of the controlled virtual character in executing the squatting action can be flexibly adjusted.
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 method, apparatus, terminal device and storage medium for controlling the actions of a virtual character. Background Art

[0002] With the development of electronic games, there are more and more various electronic games. Electronic games usually involve the control of controlled virtual characters, and the motion control of controlled virtual characters has also become a research hotspot.

[0003] In the related art, when controlling a controlled virtual character to perform a squatting action, a squatting control is clicked to control the controlled virtual character to perform a squatting action according to a preset squatting amplitude.

[0004] However, in the related art, the controlled virtual character is controlled to perform a squatting action according to a preset squatting amplitude, and the flexibility of controlling the controlled virtual object to perform a squatting action is poor. Summary of the invention

[0005] The purpose of this application is to provide a method, device, terminal equipment and storage medium for controlling the actions of a virtual character in view of the deficiencies in the above-mentioned prior art, so as to solve the above-mentioned technical problems existing in the related art.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, an embodiment of the present application provides a method for controlling a virtual character's actions, wherein a graphical user interface is provided through a terminal device, and the method comprises:

[0008] In response to the input squat action setting operation, a first height relationship between a preset target part of the controlled virtual character and a target virtual cover in a preset vertical direction is obtained;

[0009] Displaying a cover indication object of the target virtual cover and a location indication object of the preset target location in the graphical user interface, wherein a second height relationship between the cover indication object and the location indication object is associated with the first height relationship;

[0010] In response to the input squat range adjustment operation, a target squat range is determined;

[0011] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action in the game scene.

[0012] In a second aspect, an embodiment of the present application further provides a device for controlling a virtual character's motion, which provides a graphical user interface through a terminal device, and the device includes:

[0013] An acquisition module, configured to respond to an input squat action setting operation and acquire a first height relationship between a preset target part of a controlled virtual character and a target virtual cover in a preset vertical direction in a game scene;

[0014] A display module, configured to display a cover indication object of the target virtual cover and a location indication object of the preset target location in the graphical user interface, wherein a second height relationship between the cover indication object and the location indication object is associated with the first height relationship;

[0015] A determination module, for responding to an input squat amplitude adjustment operation and determining a target squat amplitude;

[0016] The control module is used to control the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude.

[0017] In a third aspect, an embodiment of the present application further provides a terminal device, comprising: a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the method described in any one of the first aspects above is implemented.

[0018] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is read and executed, the method described in any one of the first aspects above is implemented.

[0019] The beneficial effects of the present application are as follows: the embodiment of the present application provides a method for controlling the action of a virtual character, the method comprising: responding to an input squat action setting operation, obtaining a first height relationship between a preset target part of a controlled virtual character and a target virtual shelter in a game scene in a preset vertical direction; displaying a shelter indication object of the target virtual shelter and a part indication object of the preset target part in a graphical user interface, wherein the second height relationship between the shelter indication object and the part indication object is associated with the first height relationship; responding to an input squat amplitude adjustment operation, determining a target squat amplitude; and controlling the controlled virtual character to perform a squat action in the game scene according to the target squat amplitude. Displaying the shelter indication object and the part indication object with the second height relationship can enable a user to intuitively know the height relationship between the preset target part and the target virtual shelter in a preset vertical direction, responding to an input squat amplitude adjustment operation, the amplitude of the controlled virtual character when performing the squat action can be flexibly adjusted, thereby improving the flexibility of controlling the controlled virtual object to perform the squat action, and the mutual correlation between the second height relationship and the first height relationship enables the user to timely know the height relationship between the preset target part and the target virtual shelter. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 1 ;

[0022] Figure 2 A graphical user interface provided in the present application is shown in FIG. Figure 1 ;

[0023] Figure 3 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 2 ;

[0024] Figure 4 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 3 ;

[0025] Figure 5 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 4 ;

[0026] Figure 6 A graphical user interface provided in the present application is shown in FIG. Figure 2 ;

[0027] Figure 7 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 5 ;

[0028] Figure 8 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 6 ;

[0029] Fig. 9 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 7 ;

[0030] Fig.10 A graphical user interface provided in the present application is shown in FIG. Figure 3 ;

[0031] Fig.11 A graphical user interface provided in the present application is shown in FIG. Figure 4 ;

[0032] Fig.12 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 8 ;

[0033] Fig.13 A schematic diagram of a contact area provided in an embodiment of the present application Figure 1 ;

[0034] Fig.14 A schematic diagram of a contact area provided in an embodiment of the present application Figure 2 ;

[0035] Figures 15a to 15c A schematic diagram of a jump control provided in an embodiment of the present application;

[0036] Fig.16 A schematic diagram of the structure of a motion control device for a virtual character provided in an embodiment of the present application;

[0037] Fig.17 A schematic diagram of the structure of a motion control device for a virtual character provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0039] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0040] In the description of the present application, it should be noted that if the terms "upper", "lower", etc. appear, the orientation or position relationship indicated is based on the orientation or position relationship shown in the drawings, or is the orientation or position relationship in which the product of the application is usually placed when used. It is only for the convenience of describing the present application and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application.

[0041] In addition, the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0042] It should be noted that, in the absence of conflict, the features in the embodiments of the present application may be combined with each other.

[0043] The method for controlling the motion of a virtual character in one embodiment of the present application can be run on a local terminal device or a server. When the method for controlling the motion of a virtual character is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.

[0044] In an optional implementation, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the action control method of the virtual character are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the player side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the game, the player operates the client device 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 the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.

[0045] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.

[0046] An embodiment of the present application provides a method for controlling the motion of a virtual character, which provides a graphical user interface through a terminal device. The terminal device can be any of the following: a computer device, a laptop computer, a tablet computer, a smart phone, a game console, etc.

[0047] The following is an explanation of a method for controlling the actions of a virtual character provided in an embodiment of the present application.

[0048] Figure 1 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 1 ;like Figure 1 As shown, the method includes:

[0049] S101, in response to an input squatting action setting operation, obtaining a first height relationship between a preset target part of a controlled virtual character and a target virtual cover in a preset vertical direction in a game scene.

[0050] Among them, the squatting action setting operation can be a touch operation, or it can be an operation input by an external device of the terminal device, and the embodiment of the present application does not impose specific restrictions on this.

[0051] In the embodiment of the present application, the preset target part of the controlled virtual character can be a part or all of the controlled virtual character, for example, the preset target part can be the highest part of the controlled virtual character. The target virtual cover can be a virtual object in the game scene, and the controlled virtual character can be located around the target virtual cover to avoid external attacks.

[0052] It should be noted that the first height relationship can represent the height of the preset target part in the preset vertical direction and the height of the target virtual shelter in the preset vertical direction. Of course, the first height relationship can also represent the height difference between the preset target part and the target virtual shelter in the preset vertical direction.

[0053] S102: Displaying a cover indication object of a target virtual cover and a position indication object of a preset target position in a graphical user interface.

[0054] The second height relationship between the shelter indication object and the location indication object is associated with the first height relationship.

[0055] In some embodiments, the display position of the cover indication object of the target virtual cover is determined according to the height of the target virtual cover in the game scene; the display position of the position indication object of the preset target part is determined according to the height of the preset target part in the game scene; and the cover indication object of the target virtual cover and the position indication object of the preset target part are displayed in a graphical user interface according to the display position of the cover indication object of the target virtual cover and the display position of the position indication object of the preset target part.

[0056] In addition, by displaying the second height relationship between the cover indication object and the position indication object, the user can more intuitively know the height relationship between the preset target position and the target virtual cover in the preset vertical direction. The second height relationship is proportional to the first height relationship.

[0057] For example, when the first height relationship indicates that the height of a preset target part in a preset vertical direction is higher than the height of the target virtual shelter, the second height relationship indicates that the height of the shelter indication object in the preset vertical direction is higher than the height of the part indication object, and the greater the height difference between the preset target part and the target virtual shelter, the greater the height difference between the shelter indication object and the part indication object.

[0058] S103, responding to the input squat amplitude adjustment operation, and determining the target squat amplitude.

[0059] Among them, the squatting amplitude adjustment operation can be a touch operation, or it can be an operation input by an external device of the terminal device, and the embodiment of the present application does not impose specific restrictions on this.

[0060] In addition, the target squatting amplitude is the squatting amplitude of the controlled virtual character.

[0061] It is worth noting that the external device of the terminal device may be a mouse and / or a keyboard that is communicatively connected to the terminal device.

[0062] S104: Control the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude.

[0063] Among them, the greater the target squatting range, the lower the height of the controlled virtual character in the game scene after the controlled virtual character is controlled to perform the squatting action.

[0064] In some embodiments, after the controlled virtual character is controlled to perform a squatting action, the target display position of the part indication object is determined according to the current height of the preset target part of the controlled virtual character in the preset vertical direction, and the part indication object is displayed according to the target display position of the part indication object. That is, after the controlled virtual character is controlled to perform a squatting action, the display position of the part indication object is updated, specifically, the display height of the part indication object is updated, the height of the cover indication object in the preset vertical direction does not change, and the second height relationship is updated.

[0065] In addition, after the controlled virtual character is controlled to perform a squatting action, the height of the controlled virtual character in the game scene decreases, the height of the preset target part of the controlled virtual character in the game scene also decreases, the height of the target virtual cover in the game scene remains unchanged, and the first height relationship is updated. The updated second height relationship is still associated with the new first height relationship after the squatting action is performed.

[0066] For example, before performing a squatting action, the height of a preset target part of the controlled virtual character is higher than the height of the target virtual cover, the height of the part indication object is higher than the height of the cover indication object, and the target squatting amplitude is greater than the height difference between the preset target part and the target virtual cover; after performing the squatting action, the height of the preset target part of the controlled virtual character may be lower than the height of the target virtual cover, and the height of the part indication object may be lower than the height of the cover indication object.

[0067] In summary, the embodiment of the present application provides a method for controlling the action of a virtual character, the method comprising: responding to an input squat action setting operation, obtaining a first height relationship between a preset target part of a controlled virtual character and a target virtual shelter in a game scene in a preset vertical direction; displaying a shelter indication object of the target virtual shelter and a part indication object of the preset target part in a graphical user interface, wherein the second height relationship between the shelter indication object and the part indication object is associated with the first height relationship; responding to an input squat amplitude adjustment operation, determining a target squat amplitude; and controlling the controlled virtual character to perform a squat action in the game scene according to the target squat amplitude. Displaying the shelter indication object and the part indication object with the second height relationship can enable the user to intuitively know the height relationship between the preset target part and the target virtual shelter in the preset vertical direction, responding to the input squat amplitude adjustment operation, the amplitude of the controlled virtual character when performing the squat action can be flexibly adjusted, thereby improving the flexibility of controlling the controlled virtual object to perform the squat action, and the mutual correlation between the second height relationship and the first height relationship enables the user to timely know the height relationship between the preset target part and the target virtual shelter.

[0068] In actual applications, the cover indication object and the part indication object with a second height relationship are displayed, so that the user can accurately input the squatting amplitude adjustment operation to accurately control the squatting amplitude of the controlled virtual object, so that the target virtual cover can reliably block the controlled virtual character, and then reliably avoid external attacks.

[0069] Optionally, the process of displaying the cover indication object of the target virtual cover and the position indication object of the preset target position in the graphical user interface in S102 may include:

[0070] An operation window is displayed in the graphical user interface, and a shelter indication object and a position indication object are displayed in the operation window.

[0071] The shelter indication object and the location indication object displayed in the operation window have a second height relationship.

[0072] It should be noted that the part indication object may indicate the entire part of the controlled virtual character, or may indicate a partial part of the controlled virtual character.

[0073] Figure 2 A graphical user interface provided in the present application is shown in FIG. Figure 1 ,like Figure 2 As shown, a game scene and an operation window are displayed in the graphical user interface, and a shelter indication object and a position indication object having a second height relationship are displayed in the operation window. The height of the position indication object is higher than the height of the shelter indication object.

[0074] like Figure 2 As shown, the graphical user interface may further include: an observation control. In response to a selection operation on the observation control, an observation icon may be displayed in the graphical user interface, and the observation icon may display a game scene in the distance with the controlled virtual character facing upward.

[0075] Alternatively, if Figure 2 As shown, the graphical user interface includes: a squat control; the squat action setting operation is a click touch operation or a long press touch operation input through the squat control.

[0076] Among them, the long press touch operation is a touch operation in which the long press duration is greater than or equal to the preset duration.

[0077] Of course, the squatting action setting operation can also be a touch operation with a pressing force greater than or equal to a preset pressing force, and the embodiment of the present application does not impose specific restrictions on this.

[0078] In some embodiments, if the squat action setting operation is a long press touch operation input through the squat control, or a click touch operation input through the squat control, the controlled virtual character is controlled to perform the squat action according to a preset squat amplitude.

[0079] Optionally, the squatting amplitude adjustment operation is: a sliding touch operation in a preset vertical direction input through an operation window.

[0080] Among them, the target squatting range can be determined in real time based on the sliding touch operation in the preset vertical direction input through the operation window.

[0081] In some embodiments, if the sliding touch operation input through the operation window is a touch operation in the first vertical direction, the squatting amplitude of the controlled virtual character is reduced according to the sliding length of the sliding touch operation to obtain the target squatting amplitude; if the sliding touch operation input through the operation window is a touch operation in the second vertical direction, the squatting amplitude of the controlled virtual character is increased according to the sliding length of the sliding touch operation to obtain the target squatting amplitude; wherein the first vertical direction and the second vertical direction are opposite directions. For example, the first vertical direction is an upward direction, and the second vertical direction is a downward direction.

[0082] It is worth noting that the sliding touch operation in the preset vertical direction can be input through the edge area of ​​the operation window, and the sliding touch operation in the preset vertical direction can also be input through the non-edge area of ​​the operation window.

[0083] In the embodiment of the present application, when the height difference between the position indicating object and the shelter indicating object is within the preset height range, the damping is increased. The greater the damping, the smaller the change in the squatting amplitude when sliding the same length; the smaller the damping, the greater the change in the squatting amplitude when sliding the same length.

[0084] Optionally, if the squat action setting operation is a long press touch operation input through a squat control, then the squat amplitude adjustment operation is a sliding touch operation continuous with the long press touch operation input through the squat control.

[0085] Among them, the sliding touch operation input through the squat control that is continuous with the long press touch operation can be a sliding touch operation in the vertical direction, or a sliding touch operation in the horizontal direction.

[0086] In an embodiment of the present application, if the sliding touch operation input through the squat control is a sliding touch operation in the first vertical direction, the squatting amplitude of the controlled virtual character is reduced according to the sliding length of the sliding touch operation; if the sliding touch operation input through the squat control is a sliding touch operation in the second vertical direction, the squatting amplitude of the controlled virtual character is increased according to the sliding length of the sliding touch operation.

[0087] In addition, if the sliding touch operation input through the squat control is a sliding touch operation in the first horizontal direction, the squatting amplitude of the controlled virtual character will be reduced according to the sliding length of the sliding touch operation; if the sliding touch operation input through the squat control is a sliding touch operation in the second horizontal direction, the squatting amplitude of the controlled virtual character will be increased according to the sliding length of the sliding touch operation.

[0088] It should be noted that the first vertical direction and the second vertical direction are opposite directions, and the first horizontal direction and the second horizontal direction are also opposite directions.

[0089] To sum up, in the embodiments of the present application, the squatting amplitude of the controlled virtual character can be adjusted by inputting a sliding touch operation through the operation window, or by inputting a sliding touch operation through the squatting control, which makes the squatting amplitude adjustment of the controlled virtual character more flexible.

[0090] Optionally, Figure 3 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 2 ;like Figure 3 As shown, the method may also include:

[0091] S201. Determine, according to a target squatting amplitude, a predicted moving speed of a controlled virtual character in a preset moving state of the target squatting amplitude and a predicted environmental impact parameter in the preset moving state.

[0092] Among them, predicting the movement speed and environmental impact parameters of the controlled virtual character in the preset movement state of the target squatting amplitude can enable the user to know the impact of the target squatting amplitude in advance, thereby improving the user experience.

[0093] In some embodiments, the environmental impact parameter may be the size of the movement sound, for example, the size of the footsteps. The preset movement state may include: a walking state and / or a running state, the predicted movement speed in the preset movement state includes: a predicted movement speed in the walking state and / or a predicted movement speed in the running state, and the predicted environmental impact parameter includes: the size of the sound in the walking state and / or the size of the sound in the running state.

[0094] S202: Displaying the predicted moving speed in a preset moving state and the predicted environmental impact parameters in the preset moving state in a graphical user interface.

[0095] In the embodiment of the present application, the predicted moving speed under the preset moving state and the predicted environmental impact parameters under the preset moving state can be displayed in a preset area in the graphical user interface; Figure 2As shown, the predicted moving speed under the preset moving state and the predicted environmental impact parameters under the preset moving state can also be displayed in the operation window.

[0096] For example, the predicted moving speed and predicted environmental impact parameters in a walking state may be displayed as "walking, 9KM / h, 14db"; the predicted moving speed and predicted environmental impact parameters in a running state may be displayed as "running, 11KM / h, 16db".

[0097] It should be noted that the posture of the controlled virtual character is different when the target squatting degree is different, that is, the bending degree of the controlled virtual character is different, and accordingly, the predicted moving speed under the preset moving state and the predicted environmental impact parameter under the preset moving state may also be different. Among them, the lower the bending degree of the controlled virtual character, the slower the predicted moving speed and the smaller the preset environmental impact parameter. On the contrary, the higher the bending degree of the controlled virtual character, the faster the predicted moving speed and the larger the preset environmental impact parameter.

[0098] Optionally, Figure 4 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 3 ;like Figure 4 As shown, the method may also include:

[0099] S301, in response to an input cancel display operation, cancel the display of an operation window and a cover indication object and a position indication object in the operation window.

[0100] The cancel display operation may be a selection operation for the squat control. In addition, a cancel control is also displayed on the display operation window, and the cancel display operation may be a selection operation for the cancel control. Alternatively, the cancel display operation may also be a double-click operation for a blank area input in the graphical user interface, which is not specifically limited in the embodiments of the present application.

[0101] In some embodiments, when the operation window and the squat control are displayed in the graphical user interface, in response to a selection operation on the squat control, the operation window and the cover indication object and the position indication object in the operation window are canceled. Optionally, the selection operation on the squat control can be a click operation on the squat control.

[0102] S302, in response to the input squat touch operation, control the controlled virtual character to perform a squat action according to a preset squat amplitude; or control the controlled virtual character to perform a squat action according to a target squat amplitude.

[0103] In an embodiment of the present application, after canceling the display of the operation window and the cover indication object and the part indication object in the operation window, when the controlled virtual character is controlled to perform the squatting action again, it can also be based on the previously determined target squatting amplitude, thus realizing the reuse of the previously determined target squatting amplitude. Of course, it can be based on the default configured, fixed preset squatting amplitude, and the embodiment of the present application does not impose specific restrictions on this.

[0104] Optionally, Figure 5 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 4 ;like Figure 5 As shown, the process of determining the target squatting range in response to the input squatting range adjustment operation in S103 may include:

[0105] S401, in response to a selection operation inputted to a cover indication object, determining a target squatting amplitude according to a height of a target virtual cover in a game scene.

[0106] The squatting range adjustment operation is a selection operation for the cover indication object input. Optionally, the selection operation for the cover indication object input may be a click operation for the cover indication object input.

[0107] In some implementations, in response to a selection operation inputted for a cover indication object, a target squatting amplitude is determined according to a preset target part height and a target virtual cover height.

[0108] In addition, when there are multiple cover indication objects corresponding to multiple target virtual covers, different cover indication objects are selected, and the target squatting amplitudes determined may be different.

[0109] The process of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude in S104, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, may include:

[0110] S402. According to the target squatting amplitude, control the controlled virtual character to perform a squatting action within a preset height range below the height of the target virtual cover in the game scene, and update the second height relationship so that the updated second height relationship is used to indicate that the height of the cover indication object is equal to or higher than the height of the part indication object.

[0111] It is worth noting that, according to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action, and the height of the target virtual cover remains unchanged, so that the height of the controlled virtual character after squatting is less than or equal to the height of the target virtual cover, so that the target virtual cover can completely cover the controlled virtual character. Here, the first height relationship between the preset target part and the target virtual cover in the preset vertical direction is updated, and correspondingly, the second height relationship is updated.

[0112] Among them, the shelter indication object also descends below the height of the position indication object, and the height of the position indication object remains unchanged.

[0113] Figure 6 A graphical user interface provided in the present application is shown in FIG. Figure 2 ,like Figure 6 As shown, the graphical user interface displays a game scene and an operation window, and the height of the position indicator object in the operation window is lower than the height of the bunker indicator object. Figure 6 Also displayed are the predicted moving speed under the preset moving state and the predicted environmental impact parameters under the preset moving state.

[0114] Optionally, the number of target virtual shelters is multiple; Figure 7 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 5 ;like Figure 7 As shown, the process of determining the target squatting range in response to the input squatting range adjustment operation in S103 may include:

[0115] S501: In response to a first squat amplitude adjustment operation input for the first time, a first target virtual cover that is closest to a controlled virtual character from among multiple target virtual covers.

[0116] The first squat range adjustment operation input for the first time may be a selection operation input for the squat control for the first time. Optionally, the selection operation input for the squat control for the first time may be a long press operation or a click operation input for the squat control for the first time.

[0117] In some embodiments, multiple target virtual shelters around the controlled virtual character are determined; the distance between each target virtual shelter in the multiple target virtual shelters and the controlled virtual character is determined, and in response to a first squat amplitude adjustment operation input for the first time, a first target virtual shelter that is closest to the controlled virtual character among the multiple target virtual shelters, i.e., the first target virtual shelter that is closest in distance, is selected.

[0118] S502: Determine the target squatting range according to the height of the first target virtual cover.

[0119] The target squatting range can be determined according to the height of the first target virtual cover and the height of the controlled virtual character.

[0120] Of course, in other embodiments, in response to the first squatting amplitude adjustment operation inputted for the first time, the controlled virtual character may be controlled to perform a squatting action according to a preset squatting amplitude. In response to the second squatting amplitude adjustment operation inputted for the second time, the target squatting amplitude is determined according to the height of the first target virtual cover, and then the controlled virtual character is controlled to perform a squatting action according to the target squatting amplitude.

[0121] The process of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude in S104, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, may include:

[0122] S503. According to the target squatting amplitude, control the controlled virtual character to perform a squatting action within a preset height range below the height of the first target virtual shelter in the game scene, and update the second height relationship, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the first target virtual shelter is equal to or higher than the height of the part indication object.

[0123] It should be noted that, according to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action, and the height of the first target virtual shelter remains unchanged, so that the height of the controlled virtual character after squatting is less than or equal to the height of the first target virtual shelter, so that the first target virtual shelter can completely cover the controlled virtual character. Among them, the height of the position indication object also drops below the shelter indication object corresponding to the first target virtual shelter.

[0124] In actual applications, a preset squatting amplitude, a target squatting amplitude corresponding to the target virtual cover a, a target squatting amplitude corresponding to the target virtual cover b, and a target squatting amplitude corresponding to the target virtual cover c can be set. The preset squatting amplitude is adjusted by inputting the order of the first squatting amplitude operation, and a squatting amplitude is determined from these squatting amplitudes in turn to control the controlled virtual character to squat.

[0125] To sum up, based on the first squat amplitude adjustment operation input for the first time, the height of the controlled virtual character can be quickly controlled to be equal to or lower than the height of the nearest first target virtual cover, so that the nearest first target virtual cover can reliably block the controlled virtual character to prevent the controlled virtual character from being attacked.

[0126] Optionally, Figure 8 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 6 ,like Figure 8As shown, the method may also include:

[0127] S601: In response to a second squatting amplitude adjustment operation inputted again, a second target virtual cover is determined from other target virtual covers according to the distances between multiple target virtual covers and the controlled virtual character.

[0128] The other target virtual shelters are virtual shelters other than the first target virtual shelter among the multiple target virtual shelters. The second squatting amplitude adjustment operation inputted again may be a selection operation inputted for the squatting control for the second time.

[0129] In some implementations, the target virtual shelter closest to the controlled virtual character is determined from other target virtual shelters as the second target virtual shelter, that is, the target virtual shelter second closest to the controlled virtual character is determined from multiple target virtual shelters as the second target virtual shelter.

[0130] Similarly, in response to the third squat amplitude adjustment operation inputted for the third time, the target virtual cover that is third closest to the controlled virtual character can be determined from multiple target virtual covers as the third target virtual cover, and so on, which will not be repeated here.

[0131] S602: Determine the target squatting range according to the height of the second target virtual cover.

[0132] The target squatting range can be determined according to the height of the first target virtual cover and the height of the controlled virtual character.

[0133] The process of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude in S104, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, may include:

[0134] S603. According to the target squatting amplitude, control the controlled virtual character to perform a squatting action within a preset height range below the height of the second target virtual shelter in the game scene, and update the second height relationship, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the second target virtual shelter is equal to or higher than the height of the part indication object.

[0135] It should be noted that the height of the controlled virtual character after squatting is less than or equal to the height of the second target virtual shelter, so that the second target virtual shelter can completely cover the controlled virtual character. Among them, the height of the position indication object also drops below the shelter indication object corresponding to the second target virtual shelter.

[0136] In summary, according to the input order of the squat amplitude adjustment operation, the target virtual cover at different distances from the controlled virtual character can be determined, and then the controlled virtual character can be controlled to squat under the target virtual cover, which improves the flexibility of automatic selection of the target virtual cover and the flexibility of the controlled virtual character to avoid attacks.

[0137] Optionally, Fig. 9 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 7 ,like Fig. 9 As shown, the process of displaying the cover indication object of the target virtual cover and the position indication object of the preset target position in the graphical user interface in S102 may include:

[0138] S701: Determine at least one target virtual shelter from multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters.

[0139] In some embodiments, multiple virtual shelters in a game scene are determined, and the distances between a controlled virtual character and the multiple virtual shelters are calculated. If the distance between the controlled virtual character and the virtual shelter is less than or equal to a preset distance threshold, the virtual shelter is used as a target virtual shelter, thereby determining at least one target virtual shelter.

[0140] S702: Displaying at least one cover indication object of a target virtual cover and a position indication object of a preset target position in a graphical user interface.

[0141] The second height relationship between at least one of the shelter indication object and the location indication object is associated with the first height relationship.

[0142] In an embodiment of the present application, a cover indication object of at least one target virtual cover and a position indication object of the preset target position are displayed in a graphical user interface according to the height of at least one target virtual cover and the height of the preset target position of the controlled virtual object.

[0143] For example, the target virtual shelter includes: target virtual shelter A, target virtual shelter B, and target virtual shelter C. Among them, the height of target virtual shelter A and the height of target virtual shelter B are both higher than the height of the preset target part, the height of target virtual shelter A is higher than the height of target virtual shelter B, and the height of target virtual shelter C is lower than the height of the preset target part. The height of shelter indication object a and the height of shelter indication object b are both higher than the height of the part indication object, the height of shelter indication object a is higher than the height of shelter indication object b, and the height of shelter indication object c is lower than the height of the part indication object.

[0144] Among them, the cover indication object a is the cover indication object of the target virtual cover A, the cover indication object b is the cover indication object of the target virtual cover B, and the cover indication object c is the cover indication object of the target virtual cover C.

[0145] Fig.10 A graphical user interface provided in the present application is shown in FIG. Figure 3 ,like Fig.10 As shown, a game scene and an operation window are displayed in the graphical user interface, and the operation window displays a wall cover indication object, a wooden box cover indication object, a plant cover indication object, and a part indication object. In the game scene, the height of the preset target part (head) of the controlled virtual object is lower than the height of the wall, and higher than the height of the wooden box and the height of the plant, wherein the height of the wooden box is higher than the height of the plant; correspondingly, the height of the part indication object is lower than the height of the wall cover indication object, and higher than the height of the wooden box cover indication object and the height of the plant cover indication object, wherein the height of the wooden box cover indication object is higher than the height of the plant cover indication object.

[0146] Optionally, the process of determining at least one target virtual shelter from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters in S701 may include:

[0147] At least one target virtual shelter is determined from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters, and the orientation of the controlled virtual character.

[0148] In some embodiments, a first initial virtual cover in the direction of the controlled virtual character is determined from multiple virtual covers, the distances between the multiple first initial virtual covers and the controlled virtual character are calculated, and the first initial virtual cover whose distance is less than or equal to a preset distance threshold is taken as the target virtual cover, thereby obtaining at least one target virtual cover.

[0149] In other embodiments, the distance between the controlled virtual character and multiple virtual shelters is calculated, and the virtual shelter with a distance less than or equal to a preset distance threshold is used as the second initial virtual shelter to obtain multiple second initial virtual shelters; the second initial virtual shelter in the direction of the controlled virtual character is used as at least one target virtual shelter.

[0150] Optionally, the cover indication object includes: a marking line perpendicular to a preset vertical direction and the name of the target virtual cover, and the part indication object is: a preset icon, an indication icon of a controlled virtual character, or an indication icon of a target part.

[0151] The height relationship between the identification line of the shelter indication object and the position indication object is the second height relationship. In addition, the name of the target virtual shelter can be displayed around the identification line perpendicular to the preset vertical direction, such as Fig.10 As shown, “Wall” is displayed around the identification line of the wall, “Wooden Box” is displayed around the identification line of the wooden box, and “Plant” is displayed around the identification line of the plant.

[0152] It should be noted that the preset icon may be a geometric figure of a preset shape, such as a circle or a five-pointed star, which can reflect the height between the preset target part of the controlled virtual character and the virtual cover. The indication icon of the controlled virtual character may be an icon similar to the outline of the controlled virtual character, such as a human-shaped icon. The indication icon of the target part may be an indication icon of the head of the controlled virtual character.

[0153] Optionally, Fig.11 A graphical user interface provided in the present application is shown in FIG. Figure 4 ,like Fig.11 As shown, the graphical user interface includes: a jump control.

[0154] Fig.12 A flowchart of a method for controlling the motion of a virtual character provided in an embodiment of the present application Figure 8 ,like Fig.12 As shown, the method also includes:

[0155] S801: In response to a touch operation input to a jump control, determine a contact area of ​​the touch operation on the screen.

[0156] Among them, players can input touch operations on the jump control through their fingers, and the contact area refers to the contact area between the finger used to perform the touch operation and the screen.

[0157] S802: Determine the jump intensity according to the contact area.

[0158] In some embodiments, the ratio between the contact area and the preset maximum contact area is calculated, and the product between the ratio and the preset maximum jump intensity is calculated to obtain the jump intensity. The preset maximum jump intensity may be a maximum jump height, and the jump intensity may be a jump height.

[0159] For example, the maximum contact area is set to 1, 1 corresponds to a full-strength jump, that is, corresponds to the preset maximum jump strength. For example, if the contact area of ​​the touch operation on the screen is 0.5, then 50% of the preset maximum jump strength is used.

[0160] S803: Control the controlled virtual character to perform a jumping action according to the jumping intensity.

[0161] In some embodiments, the jumping intensity can be a jumping height, and the controlled virtual character is controlled to perform a jumping action according to the jumping height. The greater the jumping intensity, the higher the jumping height of the controlled virtual character, and conversely, the smaller the jumping intensity, the lower the jumping height of the controlled virtual character.

[0162] Fig.13 A schematic diagram of a contact area provided in an embodiment of the present application Figure 1 , Fig.14 A schematic diagram of a contact area provided in an embodiment of the present application Figure 2 , Fig.13 The contact area between the middle finger and the screen is smaller than Fig.14 The contact area between the middle finger and the screen.

[0163] Optionally, the method may further include:

[0164] Determines the display state of the jump control based on the jump strength.

[0165] It should be noted that, according to the jump intensity and a plurality of preset jump intensity ranges, the target preset jump intensity range into which the jump intensity falls is determined. Each preset jump intensity range has a corresponding display parameter. According to the display parameter corresponding to the target preset jump intensity range, the display state of the jump control is determined.

[0166] The display parameters corresponding to each preset jump intensity range may include display color and / or display size. The display state of the jump control is determined according to the display color and / or display size corresponding to the target preset jump intensity range.

[0167] For example, multiple preset jump intensity ranges include: 1-40%, 41-80%, 81-100%. Among them, the display color corresponding to 1-40% is green, and the display size of the jump control is a; the display color corresponding to 41-80% is yellow, and the display size of the jump control is b; the display color corresponding to 81-100% is orange, and the display size of the jump control is c. Among them, a is smaller than b, and b is smaller than c.

[0168] Figures 15a to 15c A schematic diagram of a jump control provided in an embodiment of the present application, wherein, Fig.15a As shown, when the jump strength ranges from 1-40%, the jump control is displayed in a smaller area; Fig.15b As shown, when the jump strength ranges from 41-80%, the display area of ​​the jump control is medium; Fig.15c As shown, the jump controls are displayed in a larger area when the jump strength ranges from 81-100%.

[0169] In summary, in the embodiment of the present application, the jump strength is determined based on the contact area of ​​the touch operation on the screen, and the controlled virtual character is controlled to perform a jump action according to the jump strength. The jump strength of the controlled virtual character is conveniently and flexibly controlled by the contact area between the finger and the screen, making the jump of the controlled virtual character more diverse. Moreover, the display state of the jump control is determined according to the jump strength, so that the user can clearly know the current jump strength according to the display state of the jump control, thereby improving the user experience.

[0170] In the embodiment of the present application, when controlling the controlled virtual character to perform squatting and jumping movements, a freer adjustment of the squatting amplitude and jumping intensity is achieved without adding cumbersome interactions.

[0171] The following describes a virtual character motion control device, a virtual character motion control equipment, and a storage medium used to execute the virtual character motion control method provided by the present application. The specific implementation process and technical effects thereof refer to the relevant contents of the above-mentioned virtual character motion control method, which will not be repeated below.

[0172] Fig.16 A schematic diagram of a virtual character motion control device provided in an embodiment of the present application is shown in FIG. Fig.16 As shown, the device comprises:

[0173] The acquisition module 101 is used to respond to the input squat action setting operation and acquire a first height relationship between a preset target part of the controlled virtual character and a target virtual cover in a preset vertical direction in the game scene;

[0174] A display module 102, configured to display a cover indication object of the target virtual cover and a location indication object of the preset target location in the graphical user interface, wherein a second height relationship between the cover indication object and the location indication object is associated with the first height relationship;

[0175] A determination module 103, configured to respond to the input squatting amplitude adjustment operation and determine a target squatting amplitude;

[0176] The control module 104 is used to control the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude.

[0177] Optionally, the display module 102 is specifically configured to display an operation window in the graphical user interface, and to display the shelter indication object and the position indication object in the operation window.

[0178] Optionally, the graphical user interface includes: a squat control; the squat action setting operation is a click touch operation or a long press touch operation input through the squat control.

[0179] Optionally, the squatting amplitude adjustment operation is: a sliding touch operation in the preset vertical direction input through the operation window.

[0180] Optionally, if the squat action setting operation is a long press touch operation input through the squat control, then the squat amplitude adjustment operation is a sliding touch operation input through the squat control that is continuous with the long press touch operation.

[0181] Optionally, the device further comprises:

[0182] A first determination module is used to determine, according to the target squatting amplitude, a predicted moving speed of the controlled virtual character in a preset moving state of the target squatting amplitude and a predicted environmental impact parameter in the preset moving state;

[0183] The first display module is used to display the predicted moving speed under the preset moving state and the predicted environmental impact parameter under the preset moving state in the graphical user interface.

[0184] Optionally, the device further comprises:

[0185] a display cancellation module, configured to cancel display of the operation window and the shelter indication object and the position indication object in the operation window in response to a display cancellation operation input;

[0186] The first control module is used to respond to the input squat touch operation and control the controlled virtual character to perform the squat action according to a preset squat amplitude; or control the controlled virtual character to perform the squat action according to the target squat amplitude.

[0187] Optionally, the determination module 103 is specifically configured to respond to a selection operation inputted to the cover indication object and determine the target squatting amplitude according to the height of the target virtual cover in the game scene;

[0188] The control module 104 is specifically used to control the controlled virtual character to perform a squatting action within a preset height range below the height of the target virtual cover in the game scene according to the target squatting amplitude, and update the second height relationship so that the updated second height relationship is used to indicate that the height of the cover indication object is equal to or higher than the height of the part indication object.

[0189] Optionally, there are multiple target virtual shelters; the determination module 103 is specifically configured to respond to the first squat amplitude adjustment operation input for the first time, and select a first target virtual shelter that is closest to the controlled virtual character from among the multiple target virtual shelters; and determine the target squat amplitude according to the height of the first target virtual shelter;

[0190] The control module 104 is specifically used to control the controlled virtual character to perform a squatting action within a preset height range below the height of the first target virtual cover in the game scene according to the target squatting amplitude, and update the second height relationship, so that the updated second height relationship is used to indicate that the height of the cover indication object corresponding to the first target virtual cover is equal to or higher than the height of the part indication object.

[0191] Optionally, the device further comprises:

[0192] A second determination module is used for responding to a second squatting amplitude adjustment operation input again, determining a second target virtual shelter from other target virtual shelters according to the distance between the plurality of target virtual shelters and the controlled virtual character; the other target virtual shelters are virtual shelters other than the first target virtual shelter among the plurality of target virtual shelters; and determining the target squatting amplitude according to the height of the second target virtual shelter;

[0193] The control module 104 is specifically used to control the controlled virtual character to perform a squatting action within a preset height range below the height of the second target virtual shelter in the game scene according to the target squatting amplitude, and update the second height relationship, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the second target virtual shelter is equal to or higher than the height of the part indication object.

[0194] Optionally, the display module 102 is specifically used to determine at least one of the target virtual shelters from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters; and display a shelter indication object of at least one of the target virtual shelters and a location indication object of the preset target location in the graphical user interface; wherein a second height relationship between at least one of the shelter indication objects and the location indication object is associated with the first height relationship.

[0195] Optionally, the display module 102 is specifically configured to determine at least one target virtual shelter from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters, and the orientation of the controlled virtual character.

[0196] Optionally, the cover indication object includes: a marking line perpendicular to the preset vertical direction and the name of the target virtual cover, and the part indication object is: a preset icon, an indication icon of the controlled virtual character, or an indication icon of the target part.

[0197] Optionally, the graphical user interface includes: a jump control; and the device further includes:

[0198] A third determination module is used to respond to the touch operation input to the jump control, determine the contact area of ​​the touch operation on the screen; and determine the jump strength according to the contact area;

[0199] The second control module is used to control the controlled virtual character to perform a jumping action according to the jumping intensity.

[0200] Optionally, the device further comprises:

[0201] The fourth determining module is used to determine the display state of the jump control according to the jump strength.

[0202] The above-mentioned device is used to execute the device provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0203] The above modules may be one or more integrated circuits configured to implement the above devices, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0204] Fig.17 A schematic diagram of a virtual character motion control device provided in an embodiment of the present application is shown in FIG. Fig.17 As shown, the device includes: a processor 201 and a memory 202.

[0205] The memory 202 is used to store programs, and the processor 201 calls the programs stored in the memory 202 to execute the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0206] For example, the method may include:

[0207] In response to the input squat action setting operation, a first height relationship between a preset target part of the controlled virtual character and a target virtual cover in a preset vertical direction is obtained;

[0208] Displaying a cover indication object of the target virtual cover and a location indication object of the preset target location in the graphical user interface, wherein a second height relationship between the cover indication object and the location indication object is associated with the first height relationship;

[0209] In response to the input squat range adjustment operation, a target squat range is determined;

[0210] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action in the game scene.

[0211] Optionally, the displaying of the cover indication object of the target virtual cover and the position indication object of the preset target position in the graphical user interface includes:

[0212] An operation window is displayed in the graphical user interface, and the shelter indication object and the location indication object are displayed in the operation window.

[0213] Optionally, the graphical user interface includes: a squat control; the squat action setting operation is a click touch operation or a long press touch operation input through the squat control.

[0214] Optionally, the squatting amplitude adjustment operation is: a sliding touch operation in the preset vertical direction input through the operation window.

[0215] Optionally, if the squat action setting operation is a long press touch operation input through the squat control, then the squat amplitude adjustment operation is a sliding touch operation input through the squat control that is continuous with the long press touch operation.

[0216] Optionally, the method further comprises:

[0217] According to the target squatting amplitude, determining a predicted moving speed of the controlled virtual character in a preset moving state of the target squatting amplitude and a predicted environmental impact parameter in the preset moving state;

[0218] The predicted moving speed in the preset moving state and the predicted environmental impact parameters in the preset moving state are displayed in the graphical user interface.

[0219] Optionally, the method further comprises:

[0220] In response to the input of the cancel display operation, cancel the display of the operation window and the cover indication object and the position indication object in the operation window;

[0221] In response to the input squat touch operation, the controlled virtual character is controlled to perform the squat action according to a preset squat amplitude; or, the controlled virtual character is controlled to perform the squat action according to the target squat amplitude.

[0222] Optionally, the step of determining a target squatting amplitude in response to the input squatting amplitude adjustment operation comprises:

[0223] In response to a selection operation inputted to the cover indication object, determining the target squatting amplitude according to the height of the target virtual cover in the game scene;

[0224] The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises:

[0225] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the target virtual cover in the game scene, and the second height relationship is updated so that the updated second height relationship is used to indicate that the height of the cover indication object is equal to or higher than the height of the part indication object.

[0226] Optionally, there are multiple target virtual shelters; and the step of responding to the input squatting amplitude adjustment operation and determining the target squatting amplitude includes:

[0227] In response to a first squat amplitude adjustment operation input for the first time, a first target virtual cover that is closest to the controlled virtual character from among the plurality of target virtual covers;

[0228] Determining the target squatting amplitude according to the height of the first target virtual cover;

[0229] The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises:

[0230] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the first target virtual shelter in the game scene, and the second height relationship is updated, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the first target virtual shelter is equal to or higher than the height of the part indication object.

[0231] Optionally, the method further comprises:

[0232] In response to the second squat amplitude adjustment operation input again, a second target virtual shelter is determined from other target virtual shelters according to the distance between the plurality of target virtual shelters and the controlled virtual character; the other target virtual shelters are virtual shelters other than the first target virtual shelter among the plurality of target virtual shelters;

[0233] Determining the target squatting amplitude according to the height of the second target virtual shelter;

[0234] The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises:

[0235] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the second target virtual shelter in the game scene, and the second height relationship is updated, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the second target virtual shelter is equal to or higher than the height of the part indication object.

[0236] Optionally, displaying the cover indication object of the target virtual cover and the position indication object of the preset target position in the graphical user interface includes:

[0237] Determining at least one target virtual shelter from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters;

[0238] At least one cover indication object of the target virtual cover and the location indication object of the preset target location are displayed in the graphical user interface; wherein the second height relationship between at least one cover indication object and the location indication object is associated with the first height relationship.

[0239] Optionally, the determining at least one target virtual shelter from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters comprises:

[0240] At least one target virtual shelter is determined from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters and the orientation of the controlled virtual character.

[0241] Optionally, the cover indication object includes: a marking line perpendicular to the preset vertical direction and the name of the target virtual cover, and the part indication object is: a preset icon, an indication icon of the controlled virtual character, or an indication icon of the target part.

[0242] Optionally, the graphical user interface includes: a jump control; and the method further includes:

[0243] In response to a touch operation input to the jump control, determining a contact area of ​​the touch operation on the screen;

[0244] determining a jump intensity based on the contact area;

[0245] The controlled virtual character is controlled to perform a jumping action according to the jumping intensity.

[0246] Optionally, the method further comprises:

[0247] According to the jump strength, a display state of the jump control is determined.

[0248] To sum up, displaying the cover indication object and the part indication object with the second height relationship can enable the user to intuitively know the height relationship between the preset target part and the target virtual cover in the preset vertical direction, and in response to the input squat amplitude adjustment operation, the amplitude of the controlled virtual character when performing the squat action can be flexibly adjusted, thereby improving the flexibility of controlling the controlled virtual object to perform the squat action, and the mutual correlation between the second height relationship and the first height relationship allows the user to timely know the height relationship between the preset target part and the target virtual cover.

[0249] Optionally, the present application also provides a program product, such as a computer-readable storage medium, including a program, which is used to execute the above method embodiment when executed by a processor.

[0250] For example, the method may include:

[0251] In response to the input squat action setting operation, a first height relationship between a preset target part of the controlled virtual character and a target virtual cover in a preset vertical direction is obtained;

[0252] Displaying a cover indication object of the target virtual cover and a location indication object of the preset target location in the graphical user interface, wherein a second height relationship between the cover indication object and the location indication object is associated with the first height relationship;

[0253] In response to the input squat range adjustment operation, a target squat range is determined;

[0254] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action in the game scene.

[0255] Optionally, displaying the cover indication object of the target virtual cover and the position indication object of the preset target position in the graphical user interface includes:

[0256] An operation window is displayed in the graphical user interface, and the shelter indication object and the location indication object are displayed in the operation window.

[0257] Optionally, the graphical user interface includes: a squat control; the squat action setting operation is a click touch operation or a long press touch operation input through the squat control.

[0258] Optionally, the squatting amplitude adjustment operation is: a sliding touch operation in the preset vertical direction input through the operation window.

[0259] Optionally, if the squat action setting operation is a long press touch operation input through the squat control, then the squat amplitude adjustment operation is a sliding touch operation input through the squat control that is continuous with the long press touch operation.

[0260] Optionally, the method further comprises:

[0261] According to the target squatting amplitude, determining a predicted moving speed of the controlled virtual character in a preset moving state of the target squatting amplitude and a predicted environmental impact parameter in the preset moving state;

[0262] The predicted moving speed in the preset moving state and the predicted environmental impact parameters in the preset moving state are displayed in the graphical user interface.

[0263] Optionally, the method further comprises:

[0264] In response to the input of the cancel display operation, cancel the display of the operation window and the cover indication object and the position indication object in the operation window;

[0265] In response to the input squat touch operation, the controlled virtual character is controlled to perform the squat action according to a preset squat amplitude; or, the controlled virtual character is controlled to perform the squat action according to the target squat amplitude.

[0266] Optionally, the step of determining a target squatting amplitude in response to the input squatting amplitude adjustment operation comprises:

[0267] In response to a selection operation inputted to the cover indication object, determining the target squatting amplitude according to the height of the target virtual cover in the game scene;

[0268] The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises:

[0269] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the target virtual cover in the game scene, and the second height relationship is updated so that the updated second height relationship is used to indicate that the height of the cover indication object is equal to or higher than the height of the part indication object.

[0270] Optionally, there are multiple target virtual shelters; and the step of responding to the input squatting amplitude adjustment operation and determining the target squatting amplitude includes:

[0271] In response to a first squat amplitude adjustment operation input for the first time, a first target virtual cover that is closest to the controlled virtual character from among the plurality of target virtual covers;

[0272] Determining the target squatting amplitude according to the height of the first target virtual cover;

[0273] The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises:

[0274] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the first target virtual shelter in the game scene, and the second height relationship is updated, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the first target virtual shelter is equal to or higher than the height of the part indication object.

[0275] Optionally, the method further comprises:

[0276] In response to the second squat amplitude adjustment operation input again, a second target virtual shelter is determined from other target virtual shelters according to the distance between the plurality of target virtual shelters and the controlled virtual character; the other target virtual shelters are virtual shelters other than the first target virtual shelter among the plurality of target virtual shelters;

[0277] Determining the target squatting amplitude according to the height of the second target virtual shelter;

[0278] The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises:

[0279] According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the second target virtual shelter in the game scene, and the second height relationship is updated, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the second target virtual shelter is equal to or higher than the height of the part indication object.

[0280] Optionally, the displaying of the cover indication object of the target virtual cover and the position indication object of the preset target position in the graphical user interface includes:

[0281] Determining at least one target virtual shelter from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters;

[0282] At least one cover indication object of the target virtual cover and the location indication object of the preset target location are displayed in the graphical user interface; wherein the second height relationship between at least one cover indication object and the location indication object is associated with the first height relationship.

[0283] Optionally, the determining at least one target virtual shelter from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters comprises:

[0284] At least one target virtual shelter is determined from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters and the orientation of the controlled virtual character.

[0285] Optionally, the cover indication object includes: a marking line perpendicular to the preset vertical direction and the name of the target virtual cover, and the part indication object is: a preset icon, an indication icon of the controlled virtual character, or an indication icon of the target part.

[0286] Optionally, the graphical user interface includes: a jump control; and the method further includes:

[0287] In response to a touch operation input to the jump control, determining a contact area of ​​the touch operation on the screen;

[0288] determining a jump intensity based on the contact area;

[0289] The controlled virtual character is controlled to perform a jumping action according to the jumping intensity.

[0290] Optionally, the method further comprises:

[0291] According to the jump intensity, a display state of the jump control is determined.

[0292] To sum up, displaying the cover indication object and the part indication object with the second height relationship can enable the user to intuitively know the height relationship between the preset target part and the target virtual cover in the preset vertical direction, and in response to the input squat amplitude adjustment operation, the amplitude of the controlled virtual character when performing the squat action can be flexibly adjusted, thereby improving the flexibility of controlling the controlled virtual object to perform the squat action, and the mutual correlation between the second height relationship and the first height relationship allows the user to timely know the height relationship between the preset target part and the target virtual cover.

[0293] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0294] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0295] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0296] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0297] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for controlling the motion of a virtual character, characterized in that: Providing a graphical user interface through a terminal device, the method comprising: In response to the input squat action setting operation, a first height relationship between a preset target part of the controlled virtual character and a target virtual cover in a preset vertical direction is obtained; Displaying a cover indication object of the target virtual cover and a location indication object of the preset target location in the graphical user interface, wherein a second height relationship between the cover indication object and the location indication object is associated with the first height relationship; In response to the input squat range adjustment operation, a target squat range is determined; According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action in the game scene.

2. The method according to claim 1, characterized in that The cover indication object of the target virtual cover and the position indication object of the preset target position are displayed in the graphical user interface, including: An operation window is displayed in the graphical user interface, and the shelter indication object and the location indication object are displayed in the operation window.

3. The method according to claim 1, characterized in that The graphical user interface includes: a squat control; the squat action setting operation is a click touch operation or a long press touch operation input through the squat control.

4. The method according to claim 2, characterized in that: The squatting range adjustment operation is: a sliding touch operation in the preset vertical direction input through the operation window.

5. The method according to claim 3, characterized in that: If the squat action setting operation is a long press touch operation input through the squat control, then the squat amplitude adjustment operation is a sliding touch operation input through the squat control that is continuous with the long press touch operation.

6. The method according to claim 1, characterized in that The method further comprises: According to the target squatting amplitude, determining a predicted moving speed of the controlled virtual character in a preset moving state of the target squatting amplitude and a predicted environmental impact parameter in the preset moving state; The predicted moving speed in the preset moving state and the predicted environmental impact parameters in the preset moving state are displayed in the graphical user interface.

7. The method according to claim 2, characterized in that The method further comprises: In response to the input of the cancel display operation, cancel the display of the operation window and the cover indication object and the position indication object in the operation window; In response to the input squat touch operation, the controlled virtual character is controlled to perform the squat action according to a preset squat amplitude; or, the controlled virtual character is controlled to perform the squat action according to the target squat amplitude.

8. The method according to claim 1, characterized in that The step of adjusting the squatting range in response to the input and determining the target squatting range includes: In response to a selection operation inputted to the cover indication object, determining the target squatting amplitude according to the height of the target virtual cover in the game scene; The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises: According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the target virtual cover in the game scene, and the second height relationship is updated so that the updated second height relationship is used to indicate that the height of the cover indication object is equal to or higher than the height of the part indication object.

9. The method according to claim 1, characterized in that: The number of the target virtual shelters is multiple; the step of responding to the input squatting amplitude adjustment operation and determining the target squatting amplitude includes: In response to a first squat amplitude adjustment operation input for the first time, a first target virtual cover that is closest to the controlled virtual character from among the plurality of target virtual covers; Determining the target squatting amplitude according to the height of the first target virtual cover; The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises: According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the first target virtual shelter in the game scene, and the second height relationship is updated, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the first target virtual shelter is equal to or higher than the height of the part indication object.

10. The method according to claim 9, characterized in that The method further comprises: In response to the second squat amplitude adjustment operation input again, a second target virtual shelter is determined from other target virtual shelters according to the distance between the plurality of target virtual shelters and the controlled virtual character; the other target virtual shelters are virtual shelters other than the first target virtual shelter among the plurality of target virtual shelters; Determining the target squatting amplitude according to the height of the second target virtual shelter; The step of controlling the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude, and updating the second height relationship so that the updated second height relationship is associated with the new first height relationship after the squatting action is performed, comprises: According to the target squatting amplitude, the controlled virtual character is controlled to perform a squatting action within a preset height range below the height of the second target virtual shelter in the game scene, and the second height relationship is updated, so that the updated second height relationship is used to indicate that the height of the shelter indication object corresponding to the second target virtual shelter is equal to or higher than the height of the part indication object.

11. The method according to claim 1, characterized in that: The cover indication object of the target virtual cover and the position indication object of the preset target position are displayed in the graphical user interface, including: Determining at least one target virtual shelter from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters; At least one cover indication object of the target virtual cover and the location indication object of the preset target location are displayed in the graphical user interface; wherein the second height relationship between at least one of the cover indication objects and the location indication object is associated with the first height relationship.

12. The method according to claim 11, characterized in that The step of determining at least one target virtual shelter from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters comprises: At least one target virtual shelter is determined from the multiple virtual shelters according to the distance between the controlled virtual character and the multiple virtual shelters and the orientation of the controlled virtual character.

13. The method according to claim 1, characterized in that The cover indication object includes: a marking line perpendicular to the preset vertical direction and the name of the target virtual cover, and the part indication object is: a preset icon, an indication icon of the controlled virtual character, or an indication icon of the target part.

14. The method according to claim 1, characterized in that The graphical user interface includes: a jump control; the method also includes: In response to a touch operation input to the jump control, determining a contact area of ​​the touch operation on the screen; determining a jump intensity based on the contact area; The controlled virtual character is controlled to perform a jumping action according to the jumping intensity.

15. The method according to claim 14, characterized in that The method further comprises: According to the jump strength, a display state of the jump control is determined.

16. A motion control device for a virtual character, characterized in that: Providing a graphical user interface through a terminal device, the device comprises: An acquisition module, configured to respond to an input squat action setting operation and acquire a first height relationship between a preset target part of a controlled virtual character and a target virtual cover in a preset vertical direction in a game scene; A display module, configured to display a cover indication object of the target virtual cover and a location indication object of the preset target location in the graphical user interface, wherein a second height relationship between the cover indication object and the location indication object is associated with the first height relationship; A determination module, for responding to an input squat amplitude adjustment operation and determining a target squat amplitude; The control module is used to control the controlled virtual character to perform a squatting action in the game scene according to the target squatting amplitude.

17. A terminal device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program executable by the processor, and the processor implements the method described in any one of claims 1 to 15 when executing the computer program.

18. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is read and executed, the method described in any one of claims 1 to 15 is implemented.