Method, apparatus, terminal device and medium for controlling virtual role

CN116832448BActive Publication Date: 2026-10-09NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310867791.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-14
Publication Date
2026-10-09
Estimated Expiration
2043-07-14

AI Technical Summary

Technical Problem

[0004]但是,相关技术中,触发移动技能只能控制虚拟角色向固定方向快速移动,导致虚拟角色的移动灵活性较差,需要多次快速移动时玩家操作繁琐,终端的计算资源开销大且能耗高

Benefits of technology

[0014] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program, which, when read and executed, implements the virtual character control method described in any of the first aspects above.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116832448B_ABST
    Figure CN116832448B_ABST
Patent Text Reader

Abstract

The present disclosure provides a virtual role control method and device, a terminal device and a medium, and relates to the technical field of games. The method comprises: in response to an input first trigger operation for a first skill, obtaining first movement control parameters comprising at least two movement directions, and controlling a controlled virtual role to move in a first movement direction of the at least two movement directions; and in response to an input second trigger operation for the first skill, controlling a second movement direction of the at least two movement directions to be in an activated state, and controlling the controlled virtual role to move in the second movement direction. The controlled virtual role can be controlled to move in different movement directions of the at least two movement directions, the movement flexibility of the virtual role is improved, the player's operation is more convenient when multiple movements are required, and the computing resources and energy consumption of the terminal device are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of game technology, and more specifically, to a method, device, terminal equipment, and medium for controlling virtual characters. Background Technology

[0002] With the development of internet technology, online games have received widespread attention. Games typically include virtual characters that players can control to perform corresponding actions, making the control of virtual characters increasingly important.

[0003] In related technologies, a response to input triggers a movement skill, thereby triggering a fast movement skill and controlling the virtual character in the game scene to move quickly.

[0004] However, in related technologies, triggering movement skills can only control virtual characters to move quickly in a fixed direction, resulting in poor movement flexibility of virtual characters. When multiple quick movements are required, the player's operation is cumbersome, and the terminal's computing resources are consumed in large quantities and energy. Summary of the Invention

[0005] The purpose of this disclosure is to address the shortcomings of the prior art by providing a method, apparatus, terminal device, and medium for controlling virtual characters, so as to at least partially solve the aforementioned technical problems existing in the related art.

[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this disclosure are as follows:

[0007] In a first aspect, embodiments of this disclosure provide a method for controlling a virtual character, which provides a graphical user interface through a terminal device, the graphical user interface including: a controlled virtual character, the method including:

[0008] In response to the input of a first trigger operation for the first skill, the system obtains first movement control parameters including at least two movement directions, and controls the controlled virtual character to move in the first movement direction among the at least two movement directions;

[0009] In response to the input of a second trigger operation for the first skill, the system controls the second movement direction to be active among the at least two movement directions, and controls the controlled virtual character to move in the second movement direction.

[0010] Secondly, embodiments of this disclosure also provide a control device for a virtual character, which provides a graphical user interface through a terminal device, the graphical user interface including: a controlled virtual character, and the device including:

[0011] The acquisition module is used to respond to the input of a first trigger operation for the first skill, acquire a first movement control parameter including at least two movement directions, and control the controlled virtual character to move in the first movement direction among the at least two movement directions;

[0012] The control module is used to respond to a second trigger operation for the first skill, control the second movement direction of the at least two movement directions to be active, and control the controlled virtual character to move in the second movement direction.

[0013] Thirdly, embodiments of this disclosure also provide a terminal device, including: a memory and a processor, wherein the memory stores a computer program executable by the processor, and the processor executes the computer program to implement the virtual character control method described in any of the first aspects above.

[0014] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program, which, when read and executed, implements the virtual character control method described in any of the first aspects above.

[0015] The beneficial effects of this disclosure are as follows: In summary, the embodiments of this disclosure provide a method for controlling a virtual character. The method includes: responding to an input first trigger operation for a first skill, acquiring first movement control parameters including at least two movement directions, and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions; responding to an input second trigger operation for the first skill, controlling the second movement direction among the at least two movement directions to be active, and controlling the controlled virtual character to move in the second movement direction. By inputting a first trigger operation for the first skill and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions, and by inputting a second trigger operation for the first skill and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions, it is possible to control the controlled virtual character to move in different movement directions among at least two movement directions. This improves the movement flexibility of the virtual character, simplifies player operation when multiple movements are required, and reduces the computing resources and energy consumption of the terminal device. Attached Figure Description

[0016] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this disclosure and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1A flowchart illustrating a method for controlling a virtual character according to an embodiment of this disclosure;

[0018] Figure 2 A schematic diagram illustrating a graphical user interface provided in an embodiment of this disclosure;

[0019] Figure 3 This is a schematic diagram illustrating the state changes of a directional indicator icon provided in an embodiment of this disclosure;

[0020] Figure 4 A schematic diagram illustrating a graphical user interface provided in an embodiment of this disclosure;

[0021] Figure 5 A flowchart illustrating a method for controlling a virtual character according to an embodiment of this disclosure;

[0022] Figure 6 A flowchart illustrating a method for controlling a virtual character according to an embodiment of this disclosure;

[0023] Figure 7 A schematic diagram illustrating a graphical user interface provided in an embodiment of this disclosure;

[0024] Figure 8 This is a schematic diagram illustrating the state changes of a directional indicator icon provided in an embodiment of this disclosure;

[0025] Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this disclosure. Detailed Implementation

[0026] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of this disclosure, but not all embodiments.

[0027] Therefore, the following detailed description of the embodiments of this disclosure provided in the accompanying drawings is not intended to limit the scope of the claimed disclosure, but merely to illustrate selected embodiments of the disclosure. All other embodiments obtained by those skilled in the art based on the embodiments of this disclosure without inventive effort are within the scope of protection of this disclosure.

[0028] In the description of this disclosure, it should be noted that if the terms "upper", "lower", etc. appear to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship that the product is usually placed in during use, they are only for the convenience of describing this disclosure and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this disclosure.

[0029] Furthermore, the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this disclosure described herein can be implemented in orders other than those illustrated or described herein. Additionally, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0030] It should be noted that, where there is no conflict, the features in the embodiments of this disclosure can be combined with each other.

[0031] In one embodiment of this disclosure, the virtual character control method can run on a local terminal device or a server. When the virtual character control method runs 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.

[0032] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program's execution and the game screen presentation are separated. The storage and execution of the virtual character's control methods are completed on the cloud gaming server. The client device is used for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission capabilities located close to the player, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.

[0033] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.

[0034] This disclosure provides a method for controlling a virtual character, which provides a graphical user interface (GUI) via a terminal device. The GUI includes a controlled virtual character. The terminal device can be any of the following: a desktop computer, a laptop computer, a tablet computer, a smartphone, a game console, etc.

[0035] Figure 1 A flowchart illustrating a virtual character control method provided in this disclosure embodiment is shown below. Figure 1 As shown, the method includes:

[0036] S101, responding to the input of the first trigger operation for the first skill, obtaining the first movement control parameters including at least two movement directions, and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions.

[0037] The first movement direction among the at least two movement directions can be any one of the at least two movement directions. The at least two movement directions can be referred to as a set of movement directions, and the terminal device can control the controlled virtual character to move towards the first movement direction among the at least two movement directions according to the first movement control parameters.

[0038] It should be noted that the preset correspondence can be a correspondence between multiple preset movement directions and multiple different preset trigger operations. The multiple preset movement directions include at least two movement directions, and the multiple different preset trigger operations include a first trigger operation and a second trigger operation.

[0039] S102, responding to the input of the second trigger operation for the first skill, controlling at least two movement directions to be active in the second movement direction, and controlling the controlled virtual character to move in the second movement direction.

[0040] In some implementations, the first trigger operation and the second trigger operation can be the same type of operation. The second trigger operation for the first skill in response to the input can be a movement direction randomly determined from at least two movement directions as the second movement direction. Alternatively, the first trigger operation and the second trigger operation can be different types of operations. The second movement direction corresponding to the second trigger operation can be determined according to a preset correspondence.

[0041] It's worth noting that the first and second trigger actions can be the same type of operation; for example, both the first and second trigger actions can be single-click operations. Alternatively, the first and second trigger actions can be different types of operations; for example, the first trigger action can be a single-click operation, and the second trigger action can be a long-press operation.

[0042] In this embodiment of the disclosure, the first trigger operation and the second trigger operation can be touch operation, hover operation, or operation input by an external device of the terminal device. This embodiment of the disclosure does not impose specific limitations on this. The external device may include a mouse and / or a keyboard.

[0043] This disclosure provides a method for controlling a virtual character. The method includes: responding to a first trigger operation input to a first skill, acquiring first movement control parameters including at least two movement directions, and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions; responding to a second trigger operation input to the first skill, controlling the second movement direction among the at least two movement directions to be active, and controlling the controlled virtual character to move in the second movement direction. By inputting a first trigger operation to the first skill and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions, and by inputting a second trigger operation to the first skill and controlling the controlled virtual character to move in the second movement direction among the at least two movement directions, the method enables control of the controlled virtual character to move in different movement directions among at least two movement directions. This improves the movement flexibility of the virtual character, simplifies player operation when multiple movements are required, and reduces the computing resources and energy consumption of the terminal device.

[0044] Optionally, the first movement control parameter further includes: direction switching sequence. The process in S102 above, which controls at least two movement directions to have the second movement direction active, may include:

[0045] Based on the direction switching order, determine the next movement direction of the first movement direction among at least two movement directions as the second movement direction, and control the second movement direction to be in an active state.

[0046] The direction switching order is used to characterize the order in which each of the at least two movement directions is switched.

[0047] In some implementations, during the process of controlling the controlled virtual character to move in the first movement direction, in response to the input of the second trigger operation for the first skill, according to the direction switching order, the next movement direction of the first movement direction among at least two movement directions is determined as the second movement direction, and the second movement direction is controlled to be in an active state, the control of the controlled virtual character to move in the first movement direction is stopped, and the control of the controlled virtual character to move in the second movement direction is controlled.

[0048] Based on the direction switching order, the second movement direction is determined as the movement direction following the first movement direction among at least two movement directions, which makes the determination of the second movement direction more flexible.

[0049] Optionally, the first movement control parameter may further include: movement time, which includes: the movement duration of each movement time in at least two movement directions, and a preset total movement time; the preset total movement time is greater than the cumulative movement time in at least two movement directions.

[0050] The process of controlling the controlled virtual character to move in the first of at least two movement directions in S101 above may include:

[0051] Control the virtual character to move in the first direction within the specified movement time.

[0052] The second triggering operation is an operation triggered within the movement time in the first movement direction.

[0053] In some implementations, if the second triggering operation is triggered within the movement duration in the first movement direction, the controlled virtual character is controlled to continue moving in the first movement direction within that movement duration. After the movement in the first movement direction is completed, the controlled virtual character is controlled to move in the second movement direction within the movement duration in the second movement direction. This allows for continuous movement in both the first and second movement directions.

[0054] In some embodiments, in response to a first trigger operation for a first skill, the system controls the first movement direction to be active and starts a countdown for a preset total movement duration, controlling the controlled virtual character to move in the first movement direction within the movement duration of the first movement direction.

[0055] Among them, the second trigger operation for the first skill in response to input does not reset the countdown of the preset total movement time. That is, after the countdown of the preset total movement time begins, the countdown of the preset total movement time will not be reset.

[0056] Optionally, the second operation is an operation triggered outside the movement time in the first movement direction, and within the preset total movement time; wherein, the current movement time is the time elapsed since the first triggered operation.

[0057] In other words, after the movement time in the first direction ends, there is still a period of time remaining within the preset total movement time. At any time during this period, a second trigger operation can be input. Responding to the input of the second trigger operation targeting the first skill, the controlled virtual character will be controlled to move in the second direction within the movement time in the second direction. In addition, during this period, the virtual character can be flexibly controlled to move freely.

[0058] It should be noted that if the virtual character's movement in the second direction does not end within the preset total movement time, then control of the controlled virtual character to move in the second direction will stop.

[0059] It is worth noting that the movement duration in each of the at least two movement directions can be the same or different. For example, the movement duration in each movement direction can be 0.5 seconds, and the preset total movement duration can be 5 seconds. The specific time can be set according to actual needs, and this embodiment does not impose specific limitations on it.

[0060] In this embodiment of the disclosure, at least two movement directions may include three movement directions, each with a movement duration of 0.5 seconds, and the cumulative movement duration of the three movement directions may be 1.5 seconds, while the preset total movement duration may be 5 seconds. Within the preset total movement duration, excluding the movement time in the three movement directions, the remaining movement time can be used to flexibly control the free movement of the virtual character.

[0061] Players can input the second trigger operation for the first skill at different times according to actual needs, making the timing of the second trigger operation more flexible. The moment when the controlled virtual character starts to move in the second movement direction will also be different depending on the timing of inputting the second trigger operation.

[0062] Optionally, the movement time also includes a cooldown time, and the method further includes:

[0063] If the time elapsed since the first trigger operation reaches the preset total movement time, the first skill will be kept unavailable during the cooldown period; or, if at least two movement directions are completed, the first skill will be kept unavailable during the cooldown period.

[0064] If the time remaining until the first trigger operation reaches the preset total movement time, i.e. the countdown of the preset total movement time ends, then the first skill will be in an unavailable state during the cooldown period. When the first skill is in an unavailable state, the first skill cannot be triggered.

[0065] Additionally, if the virtual character has completed movement in at least two directions, the first skill will be unavailable during the cooldown period, and will become available again after the cooldown period ends.

[0066] In this embodiment of the disclosure, the cooldown time of the first skill can be set according to actual needs or experience points. For example, the cooldown time of the first skill can be 12 seconds. This embodiment of the disclosure does not impose any specific limitations on this.

[0067] In some embodiments, the first movement control parameter further includes: movement speeds corresponding to at least two movement directions; the movement speed corresponding to each movement direction is greater than the preset movement speed of the controlled virtual character;

[0068] The process of controlling the controlled virtual character to move in the first of at least two movement directions in S101 above may include:

[0069] Control the controlled virtual character to move in the first movement direction at the movement speed corresponding to the first movement direction.

[0070] The preset movement speed of the controlled virtual character can be the walking speed or running speed of the controlled virtual character in the game.

[0071] In this embodiment of the disclosure, the moving speeds corresponding to each moving direction may be the same or different. For example, the moving speeds corresponding to each moving direction may be 20 m / s (meters per second).

[0072] In this embodiment of the disclosure, since the movement speed corresponding to each movement direction is greater than the preset movement speed of the controlled virtual character, controlling the controlled virtual character to move in the first movement direction at the movement speed corresponding to the first movement direction can enable the controlled virtual character to quickly move away from enemy characters or move closer to teammates.

[0073] Controlling the controlled virtual character to move in the first movement direction at the movement speed corresponding to the first movement direction, with the movement speed corresponding to each movement direction being greater than the preset movement speed of the controlled virtual character, can enable the controlled virtual character to move quickly in the first movement direction, that is, to flash in the first movement direction.

[0074] Optionally, the first movement control parameter may further include: first display parameters for at least two movement directions;

[0075] After obtaining the first movement control parameters including at least two movement directions in S101 above, the process may include:

[0076] Based on the first display parameters for at least two movement directions, display directional prompt icons corresponding to at least two movement directions on the graphical user interface.

[0077] In this case, each of the at least two movement directions has a corresponding direction prompt icon.

[0078] Figure 2 This is a schematic diagram of a graphical user interface provided in an embodiment of the present disclosure, such as... Figure 2 As shown, the graphical user interface includes: a controlled virtual character, and directional indicator icons; in the example, at least two movement directions include three movement directions. Figure 2 The three directional indicator icons, from left to right, indicate the following: the first icon represents forward, the second icon represents left, and the third icon represents left. This is merely an example; this disclosure does not impose specific limitations on the number of movement directions or the number of directional indicator icons in the at least two movement directions.

[0079] In some embodiments, each of the at least two movement directions may be relative to the orientation of the controlled virtual character. For example, a forward movement direction means moving directly in front of the current orientation of the controlled virtual character, and a left movement direction means moving to the left of the current orientation of the controlled virtual character.

[0080] Display directional indicator icons corresponding to at least two movement directions on the graphical user interface so that players can clearly know each of the at least two movement directions.

[0081] Optionally, the first movement control parameter further includes: second display parameters for at least two movement directions; the process of controlling the controlled virtual character to move in the first movement direction among at least two movement directions in S101 above may further include:

[0082] Based on the second display parameter of the first movement direction, a movement progress icon in the first movement direction is displayed on the graphical user interface.

[0083] In some implementations, such as Figure 2 As shown, based on the movement time in the first movement direction, a movement progress icon for the first movement direction is displayed on the direction prompt icon corresponding to the first movement direction in the graphical user interface. The movement progress icon for the first movement direction can be a circular progress bar.

[0084] In this embodiment of the disclosure, when the controlled virtual character moves in the first direction within the movement time corresponding to the first movement direction, the movement time corresponding to the first movement direction also starts to count down, and the movement progress icon of the first movement direction can dynamically represent the countdown of the movement time corresponding to the first movement direction.

[0085] like Figure 2 As shown, the size of the shaded area in the progress icon for the first movement direction indicates the remaining movement time within the corresponding movement time for the first movement direction.

[0086] Optionally, the first movement control parameter further includes: a third display parameter for at least two movement directions; the above method further includes:

[0087] If the second movement direction is active, the direction prompt icon corresponding to the second movement direction will be enhanced on the graphical user interface according to the third display parameter of the second movement direction.

[0088] Figure 3 This is a schematic diagram illustrating the state changes of a directional indicator icon provided in an embodiment of this disclosure, such as... Figure 3 As shown, if the remaining movement time in the first movement direction is less than or equal to the first threshold, that is, the movement in the first movement direction is about to be completed, the direction prompt icon corresponding to the second movement direction is controlled to display a reminder; in response to the input of the second trigger operation for the first skill, the second movement direction is controlled to be in an active state, and the direction prompt icon corresponding to the second movement direction is controlled to display an enhanced display.

[0089] In the embodiments disclosed herein, such as Figure 2 and Figure 3 As shown, a progress icon for the preset total movement time can also be displayed in the graphical user interface. When the controlled virtual character moves in the first movement direction within the movement time corresponding to the first movement direction, the preset total movement time starts to count down. The progress icon for the preset total movement time can dynamically represent the countdown of the preset total movement time.

[0090] It should be noted that when enhancing the display of the directional prompt icon corresponding to the second movement direction, the size of the directional prompt icon corresponding to the second movement direction can be changed, or the background color of the directional prompt icon corresponding to the second movement direction can be changed. This embodiment does not impose specific limitations on the specific form of the enhanced display.

[0091] Optionally, the process of displaying directional tooltips corresponding to at least two movement directions on the graphical user interface may include:

[0092] In the graphical user interface, the first area of ​​the controlled virtual character displays directional tooltips corresponding to at least two movement directions.

[0093] The first area of ​​the controlled virtual character can be the back area of ​​the controlled virtual character, such as... Figure 2 As shown, directional prompt icons corresponding to at least two movement directions can be displayed on the back area of ​​the controlled virtual character. If the controlled virtual character has a virtual backpack, the first area of ​​the controlled virtual character can be the area where the virtual backpack is located.

[0094] Of course, the first area of ​​the controlled virtual character can also be other areas of the controlled virtual character, such as the back of the head or the legs of the controlled virtual character. This disclosure does not impose specific limitations on this.

[0095] In some embodiments, the method may further include:

[0096] If the controlled virtual character is within the target area of ​​the preset virtual object, the directional prompt icons corresponding to at least two movement directions will be switched from the first area of ​​the controlled virtual character to a second area outside the target area in the graphical user interface.

[0097] If the controlled virtual character is within the target area of ​​a preset virtual object, in order to prevent the directional prompt icons corresponding to at least two movement directions from obscuring the player's observation of the target area of ​​the preset virtual object, the directional prompt icons corresponding to at least two movement directions can be switched from the first area to a second area outside the target area in the graphical user interface, so that the directional prompt icons no longer obscure the target area of ​​the preset virtual object, making it easier for the user to observe the target area of ​​the preset virtual object.

[0098] In some implementations, the preset virtual object can be a preset virtual machine. If the controlled virtual character is in the target area of ​​the preset virtual object and performs machine repair work in the target area of ​​the preset virtual object, then the directional prompt icons corresponding to at least two movement directions will be switched from the first area of ​​the controlled virtual character to a second area outside the target area in the graphical user interface.

[0099] Figure 4 This is a schematic diagram of a graphical user interface provided in an embodiment of the present disclosure, such as... Figure 4 As shown, directional tooltips corresponding to at least two movement directions can be displayed in the lower center area of ​​the graphical user interface.

[0100] If the controlled virtual character is within the target area of ​​the preset virtual object, the display position of the directional prompt icons corresponding to at least two movement directions will be switched to avoid obscuring the target area of ​​the preset virtual object, making it easier for players to observe the target area of ​​the preset virtual object and improving the player experience.

[0101] Optionally, the method may further include:

[0102] If the movement time corresponding to the second movement direction has not ended, and the preset total movement time has ended, then the controlled virtual character stops moving in the second movement direction.

[0103] In this embodiment of the disclosure, the controlled virtual character is controlled to move in the second movement direction within the movement time corresponding to the second movement direction. If the movement time corresponding to the second movement direction has not ended, but the preset total movement time has ended, the virtual controlled virtual character is also stopped from moving in the second movement direction.

[0104] Optional, Figure 5 A flowchart illustrating a virtual character control method provided in this disclosure embodiment is shown below. Figure 5 As shown, the method may further include:

[0105] S201, responding to the input of the third trigger operation for the second skill, controlling the controlled virtual character to move upwards at a preset speed and a preset distance from the current position to the target height.

[0106] For example, the first skill can be a movement skill, and the second skill can be a hovering skill.

[0107] Furthermore, the preset speed and preset distance can be set according to actual needs, and this embodiment does not impose specific limitations on them. For example, the preset speed can be 20 m / s, and the preset distance can be 4 meters.

[0108] S202. Control the controlled virtual character to stay at the target height for a preset duration.

[0109] S203, Control the controlled virtual character to move downwards.

[0110] It should be noted that within the preset time limit, the controlled virtual character can be moved downwards by responding to input that triggers the second skill again. Alternatively, the controlled virtual character can remain at the target height for a preset time before being moved downwards.

[0111] The third trigger action in response to the input of the second skill can control the controlled virtual character to perform movement actions in different directions involved in rapid movement. For example, the first skill corresponds to the controlled virtual character's movement in different directions on the horizontal plane, while the second skill corresponds to movement in different directions on the vertical plane. This makes the controlled virtual character's rapid movement more flexible.

[0112] It should be noted that "up" and "down" in the above steps can refer not only to the vertical direction, but also to movement on a vertical plane with an arbitrary angle between it and the horizontal plane.

[0113] In some embodiments, in response to an input-triggered operation for a first skill, acquiring first movement control parameters including at least two movement directions, and controlling the controlled virtual character to move in the first movement direction of the at least two movement directions, includes:

[0114] While the controlled virtual character is stationary at the target height, it responds to the first trigger operation input, obtains the first movement control parameters including at least two movement directions, and controls the controlled virtual character to move in the first movement direction at the target height.

[0115] In this embodiment of the disclosure, when the controlled virtual character is stationary at the target height, inputting the first input operation can control the controlled virtual character to move in the first movement direction at the target height, which facilitates the controllable virtual character to cross virtual obstacles on the ground. Moreover, moving in the first movement direction at the target height can realize the rapid movement of the virtual character in the air.

[0116] Optionally, the graphical user interface may also include: other virtual characters; the method may also include:

[0117] If the controlled virtual character is detected to start moving upward, then within the first time period, other virtual characters in the preset area around the controlled virtual character will be controlled to move outside the preset area, centered on the controlled virtual character.

[0118] If the controlled virtual character is detected to have descended to its current position, then within the second time period, other virtual characters within a preset area surrounding the controlled virtual character will be moved outside the preset area, centered on the controlled virtual character.

[0119] The preset area can be a circular area centered on the controlled virtual character.

[0120] In this embodiment of the disclosure, other virtual characters may include virtual characters from the opposing faction in the game. When the controlled virtual character begins to move upwards and descends to its current position, other virtual characters within a preset area around the controlled virtual character are moved outside the preset area, causing them to move away from the controlled virtual character and preventing the controlled virtual character from being captured by the opposing faction's virtual characters, thus improving the player experience.

[0121] Before obtaining the first movement control parameters including at least two movement directions, the method further includes:

[0122] From the preset movement directions, randomly determine each of at least two movement directions.

[0123] The number of preset movement directions can be multiple. These preset movement directions can be a predetermined number of directions on a preset plane, such as the four cardinal directions (north, south, east, west) or the four directions (front, back, left, and right) on the horizontal plane where the controlled virtual object is located. Alternatively, they can be randomly determined from any angle on the preset plane. Optionally, the preset movement directions can also be any direction within a three-dimensional space with the controlled virtual character as the origin. At least two randomly determined movement directions can be determined by the game server using a random algorithm, increasing the game's diversity.

[0124] In some embodiments, the method may further include:

[0125] If it is detected that movement in each of the movement directions in the first movement control parameters has been completed, respond to the input of the third trigger operation for the first skill, obtain the second movement control parameters, and control the controlled virtual character to move in the third movement direction in the second movement control parameters.

[0126] The number of movement directions in the first movement control parameter can also be at least two.

[0127] In some implementations, in response to a third trigger operation for the first skill, the controlled virtual character is randomly determined from a preset movement direction, and then moved in the third movement direction of the second movement control parameters.

[0128] It should be noted that the third movement direction can be randomly determined from the second movement control parameters, or the movement directions in the second movement control parameters can be in a sequential order, with the first movement direction in the second movement control parameters being used as the third movement direction. Of course, other methods can also be used to determine the third movement direction in the second movement control parameters, and this embodiment does not impose specific limitations on this.

[0129] Optional, Figure 6 A flowchart illustrating a virtual character control method provided in this disclosure embodiment is shown below. Figure 6 As shown, the method may further include:

[0130] S601. If it is detected that movement in each of the movement directions in the first movement control parameters has been completed, then the direction prompt icon corresponding to the second movement control parameter is displayed in the third area of ​​the graphical user interface.

[0131] The third area of ​​the graphical user interface can be the lower center area of ​​the graphical user interface.

[0132] Figure 7 This is a schematic diagram of a graphical user interface provided in an embodiment of the present disclosure, such as... Figure 7 As shown, the graphical user interface includes a controlled virtual character, and a direction prompt icon corresponding to the second movement control parameter is displayed in the lower center area of ​​the graphical user interface.

[0133] S602, In response to the input of the third trigger operation for the first skill, switch the display of the direction prompt icon of the second movement control parameter to the first area of ​​the graphical user interface.

[0134] The first area of ​​the graphical user interface can be the back of the controlled virtual character.

[0135] In some implementations, in response to a third trigger operation for the first skill, the directional indicator icon corresponding to the second movement control parameter is switched from the lower center area of ​​the graphical user interface to the back of the controlled virtual character.

[0136] In summary, after the controlled virtual character has completed movement in at least two movement directions, this disclosure can also provide movement directions in the second movement control parameters, which makes the provided movement directions more abundant.

[0137] Optional, such as Figure 2 As shown, the graphical user interface may also include: a first control, wherein the first trigger operation for the first skill can be a first touch operation for the first control, and the second trigger operation for the first skill can be a second touch operation for the first control, wherein both the first touch operation and the second touch operation can be a single click operation.

[0138] In this embodiment of the disclosure, if the controlled virtual character completes movement in at least two directions, the number of available groups for the first skill is updated to obtain an updated number of available groups for the first skill. This updated number of available groups can also be displayed on the graphical user interface, and can be displayed on a first control, such as... Figure 2 As shown, it can also be displayed around the first control; this disclosure does not impose specific limitations on this embodiment.

[0139] like Figure 2 As shown, the graphical user interface may also include: a second control, and the third trigger operation for the second skill may be a third trigger operation for the second control, wherein the third trigger operation may also be a click operation.

[0140] In this embodiment of the disclosure, a third trigger operation is performed on the second control to update the available counts for the second skill, resulting in an updated number of available counts for the second skill. These updated available counts can also be displayed on the graphical user interface, such as on the second control. Figure 2 As shown, it can also be displayed around the second control; this disclosure does not impose specific limitations on this embodiment.

[0141] In this embodiment of the disclosure, if the updated number of available groups is 0 and the updated number of available uses is not 0, then the first control is displayed as disabled; if the updated number of available groups is 0 and the updated number of available uses is 0, then the first control and the second control are not displayed; if the updated number of available uses is 0, then the second control is not displayed.

[0142] Additionally, you can control the first skill to be unavailable during its cooldown period, and the first control can also display a countdown timer for the cooldown period.

[0143] Optionally, the method may further include: determining a target viewpoint in response to an input viewpoint adjustment operation while the controlled virtual character moves in a first movement direction among at least two movement directions; presenting the game scene in the target viewpoint in a graphical user interface; and changing the movement direction of the controlled virtual object in the game scene according to the target viewpoint.

[0144] The viewing angle adjustment can be used for input swipe touch operations.

[0145] In this embodiment, the current viewpoint is adjusted to the target viewpoint, for example, by adjusting the current viewpoint according to the sliding direction of a touch operation. Compared to the game scene in the current viewpoint, the game scene in the target viewpoint changes. Therefore, the movement direction in the target viewpoint changes compared to the movement direction in the current viewpoint. However, regardless of whether it is the current viewpoint or the target viewpoint, the movement direction remains unchanged relative to the orientation of the controlled virtual character.

[0146] For example, the game scene includes: a first virtual environment and a second virtual environment distributed in different directions. From the current perspective, the controlled virtual character moves forward in the first virtual environment. In response to the input perspective adjustment operation, a target perspective is determined, and the controlled virtual character continues to move forward in the second virtual environment along the target perspective.

[0147] In summary, by changing the target's perspective, the movement direction of the controlled virtual character in the game scene can be flexibly altered.

[0148] In this embodiment of the disclosure, taking a case where the number of movement directions is three out of at least two movement directions, the three movement directions with a sequential order include: moving to the right, moving forward, and moving to the left. Figure 8 This is a schematic diagram illustrating the state changes of a directional indicator icon provided in an embodiment of this disclosure, such as... Figure 8 As shown, the number of directional indicator icons can also be three. From left to right, the three directional indicator icons can be called the first directional indicator icon, the second directional indicator icon, and the third directional indicator icon, respectively.

[0149] In some implementations, in response to the first trigger operation of the first skill, a progress icon for the preset total movement time is displayed, the first direction icon is lit up (yellow background), and the controlled virtual character is controlled to move to the right, such as... Figure 8 As shown in (1), a circular progress bar (i.e., the movement progress icon for the first movement direction) appears around the first direction prompt icon, as shown in (1). Figure 8 As shown in (2), when the movement to the right is about to be completed, the second direction prompt icon is displayed as a reminder.

[0150] like Figure 8 As shown in (3), before the rightward movement is completed, respond to the input of the first trigger operation for the first skill, control the second direction prompt icon to enhance the prompt, control the second direction icon to light up (orange background), control the controlled virtual character to complete the rightward movement, and immediately control the controlled virtual character to move forward.

[0151] like Figure 8 As shown in (4), if no second trigger operation for the first skill is detected, the second directional prompt icon will remain displayed until the countdown of the preset total movement time ends, and the first directional prompt icon will be marked as completed. Figure 8 As shown in (5), before the countdown of the preset total movement time ends, the second directional prompt icon is controlled to provide enhanced prompts in response to the second trigger operation for the first skill.

[0152] like Figure 8 As shown in (6), a circular progress bar (i.e., the movement progress icon for the second movement direction) appears around the second direction prompt icon, controlling the controlled virtual character to move forward.

[0153] like Figure 8As shown in (7), before the forward movement is completed, respond to the input of the fourth trigger operation for the first skill, control the third direction prompt icon to enhance the prompt, control the third direction icon to light up (red background), control the controlled virtual character to complete the forward movement, and immediately control the controlled virtual character to move to the left.

[0154] like Figure 8 As shown in (8), when the movement to the right is about to be completed, the third direction prompt icon will be displayed as a reminder. Figure 8 As shown in (9), if no second trigger operation for the first skill is detected, the third directional prompt icon will remain displayed until the countdown of the preset total movement time ends, and the second directional prompt icon will be marked as completed.

[0155] like Figure 8 As shown in (10), after the controlled virtual character completes the forward movement, the controlled virtual character is immediately moved to the left, and a circular progress bar (i.e. the movement progress icon of the third movement direction) appears around the prompt icon of the third direction.

[0156] In summary, the directional indicator icons for movement directions in this embodiment of the present disclosure have different states at different times, making the indicator icons more flexible and diverse, thus improving the user experience.

[0157] The following describes the control device, electronic device, and storage medium for the virtual character used to execute the virtual character control method provided in this disclosure. For the specific implementation process and technical effects, please refer to the relevant content of the virtual character control method above, which will not be repeated below.

[0158] This disclosure provides a control device for a virtual character, which may include:

[0159] The first control module is configured to respond to a first trigger operation input for a first skill, acquire first movement control parameters including at least two movement directions, and control the controlled virtual character to move in the first movement direction among the at least two movement directions; and respond to a second trigger operation input for the first skill, control the second movement direction among the at least two movement directions to be in an active state, and control the controlled virtual character to move in the second movement direction.

[0160] Optionally, the first movement control parameter further includes: direction switching sequence. The first control module is specifically used to determine, according to the direction switching sequence, the next movement direction of the first movement direction among the at least two movement directions as the second movement direction, and control the second movement direction to be in an active state.

[0161] Optionally, the first movement control parameter further includes: movement time, which includes: the movement duration of each movement time in the at least two movement directions, and a preset total movement duration; the preset total movement duration is greater than the cumulative movement duration in the at least two movement directions;

[0162] The first control module is specifically used to control the controlled virtual character to move in the first movement direction within the movement time in the first movement direction; the second trigger operation is: an operation triggered within the movement time in the first movement direction, or an operation triggered outside the movement time in the first movement direction and within the preset total movement time; wherein, the current movement time is the time elapsed since the first trigger operation.

[0163] Optionally, the movement time further includes a cooling time, and the device further includes:

[0164] The second control module is configured to control the first skill to be in an unavailable state during the cooldown period if the time elapsed since the first trigger operation reaches the preset total movement time; or, if the at least two movement directions have been completed, control the first skill to be in an unavailable state during the cooldown period.

[0165] Optionally, the first movement control parameters further include: the movement speed corresponding to the at least two movement directions; the movement speed corresponding to each movement direction is greater than the preset movement speed of the controlled virtual character; the first control module is specifically used to control the controlled virtual character to move in the first movement direction at the movement speed corresponding to the first movement direction.

[0166] Optionally, the first movement control parameters further include: first display parameters for the at least two movement directions; and a first display module, configured to display directional prompt icons corresponding to the at least two movement directions on the graphical user interface according to the first display parameters for the at least two movement directions.

[0167] Optionally, the first movement control parameters further include: second display parameters for the at least two movement directions; the first control module is specifically configured to display a movement progress icon for the first movement direction on the graphical user interface according to the second display parameters for the first movement direction.

[0168] Optionally, the first movement control parameter further includes: a third display parameter for the at least two movement directions; the device further includes:

[0169] The second display module is used to enhance the display of the direction prompt icon corresponding to the second movement direction on the graphical user interface according to the third display parameter of the second movement direction if the second movement direction is active.

[0170] Optionally, the first display module is specifically used to display directional prompt icons corresponding to the at least two movement directions in the first area of ​​the controlled virtual character in the graphical user interface.

[0171] Optionally, the device further includes:

[0172] The third display module is used to switch the display of the directional prompt icons corresponding to the at least two movement directions from the first area of ​​the controlled virtual character to a second area outside the target area in the graphical user interface if the controlled virtual character is located within the target area of ​​the preset virtual object.

[0173] Optionally, the device further includes:

[0174] The third control module is used to stop controlling the controlled virtual character to move in the second movement direction if the movement time corresponding to the second movement direction has not ended and the preset total movement time has ended.

[0175] Optionally, the device further includes:

[0176] The fourth control module is used to respond to the input of the third trigger operation for the second skill, control the controlled virtual character to move upward from the current position at a preset speed and a preset distance to the target height; control the controlled virtual character to stay at the target height for a preset time; and control the controlled virtual character to move downward.

[0177] Optionally, the first control module is specifically configured to, while the controlled virtual character is stationary at the target height, respond to the input first trigger operation, obtain first movement control parameters including at least two movement directions, and control the controlled virtual character to move at the target height in the first movement direction.

[0178] Optionally, the graphical user interface may further include: other virtual characters; the device may further include:

[0179] The fifth control module is configured to, if it detects that the controlled virtual character begins to move upward, control other virtual characters within a preset area surrounding the controlled virtual character to move outside the preset area within a first time period, with the controlled virtual character as the center; and if it detects that the controlled virtual character descends to the current position, control other virtual characters within a preset area surrounding the controlled virtual character to move outside the preset area within a second time period, with the controlled virtual character as the center.

[0180] Optionally, the device further includes:

[0181] The determining module is used to randomly determine each of the at least two movement directions from a preset movement direction.

[0182] Optionally, the device further includes:

[0183] The sixth control module is used to, if it detects that movement in each of the movement directions in the first movement control parameters has been completed, respond to the input of the third trigger operation for the first skill, obtain the second movement control parameters, and control the controlled virtual character to move in the third movement direction in the second movement control parameters.

[0184] Optionally, the device further includes:

[0185] The fourth display module is used to display the direction prompt icon corresponding to the second movement control parameter in the third area of ​​the graphical user interface if it is detected that the movement in each of the movement directions in the first movement control parameter has been completed; and to switch the display of the direction prompt icon corresponding to the second movement control parameter to the first area of ​​the graphical user interface in response to the input of the third trigger operation for the first skill.

[0186] The above-described device is used to execute the method provided in the foregoing embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0187] These modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more digital signal processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). Alternatively, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a system-on-a-chip (SOC).

[0188] Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present disclosure, such as... Figure 9 As shown, the terminal device includes: processor 1001 and memory 1002.

[0189] The memory 1002 is used to store programs, and the processor 1001 calls the programs stored in the memory 1002 to execute the above method embodiments. The specific implementation and technical effects are similar, and will not be described in detail here.

[0190] For example, the method may include:

[0191] In response to the input of a first trigger operation for the first skill, the system obtains first movement control parameters including at least two movement directions, and controls the controlled virtual character to move in the first movement direction among the at least two movement directions;

[0192] In response to the input of a second trigger operation for the first skill, the system controls the second movement direction to be active among the at least two movement directions, and controls the controlled virtual character to move in the second movement direction.

[0193] Optionally, the first movement control parameter further includes: direction switching sequence, wherein controlling the second movement direction among the at least two movement directions to be in an active state includes:

[0194] Based on the direction switching sequence, the next movement direction of the first movement direction among the at least two movement directions is determined to be the second movement direction, and the second movement direction is controlled to be in an active state.

[0195] Optionally, the first movement control parameter further includes: movement time, which includes: the movement duration of each movement time in the at least two movement directions, and a preset total movement duration; the preset total movement duration is greater than the cumulative movement duration in the at least two movement directions;

[0196] The control of the controlled virtual character to move in a first movement direction among the at least two movement directions includes:

[0197] Control the controlled virtual character to move in the first direction within the movement time in the first direction;

[0198] The second triggering operation is either an operation triggered within the movement time in the first movement direction, or an operation triggered outside the movement time in the first movement direction, but with the current movement time within the preset total movement time; wherein the current movement time is the time elapsed since the first triggering operation.

[0199] Optionally, the movement time further includes a cooling time, and the method further includes:

[0200] If the time elapsed since the first triggering operation reaches the preset total movement time, then the first skill is controlled to be unavailable during the cooldown period; or,

[0201] If both of the aforementioned movement directions are completed, the first skill is controlled to remain unavailable during the cooldown period.

[0202] Optionally, the first movement control parameter further includes: the movement speed corresponding to the at least two movement directions; the movement speed corresponding to each movement direction is greater than the preset movement speed of the controlled virtual character;

[0203] The control of the controlled virtual character to move in a first movement direction among the at least two movement directions includes:

[0204] The controlled virtual character is controlled to move in the first movement direction at a movement speed corresponding to the first movement direction.

[0205] Optionally, the first movement control parameter further includes: first display parameters for the at least two movement directions;

[0206] After acquiring the first movement control parameters, which include at least two movement directions, the process includes:

[0207] Based on the first display parameters of the at least two movement directions, directional prompt icons corresponding to the at least two movement directions are displayed on the graphical user interface.

[0208] Optionally, the first movement control parameters further include: second display parameters for the at least two movement directions; controlling the controlled virtual character to move in the first movement direction of the at least two movement directions further includes:

[0209] Based on the second display parameter of the first movement direction, a movement progress icon in the first movement direction is displayed on the graphical user interface.

[0210] Optionally, the first movement control parameter further includes: a third display parameter for the at least two movement directions; the method further includes:

[0211] If the second movement direction is active, then according to the third display parameter of the second movement direction, the direction prompt icon corresponding to the second movement direction is enhanced on the graphical user interface.

[0212] Optionally, displaying directional indicator icons corresponding to the at least two movement directions on the graphical user interface includes:

[0213] In the graphical user interface, the first area of ​​the controlled virtual character displays directional prompt icons corresponding to the at least two movement directions.

[0214] Optionally, the method further includes:

[0215] If the controlled virtual character is within the target area of ​​a preset virtual object, the directional prompt icons corresponding to the at least two movement directions will be switched from the first area of ​​the controlled virtual character to a second area outside the target area in the graphical user interface.

[0216] Optionally, the method further includes:

[0217] If the movement time corresponding to the second movement direction has not ended, and the preset total movement time has ended, then the controlled virtual character stops moving in the second movement direction.

[0218] Optionally, the method further includes:

[0219] In response to the input of the third trigger operation for the second skill, the controlled virtual character is controlled to move upward from its current position by a preset distance at a preset speed to the target height;

[0220] The controlled virtual character is controlled to remain at the target height for a preset duration;

[0221] Control the controlled virtual character to move downwards.

[0222] Optionally, the response input to the first trigger operation for the first skill, obtaining first movement control parameters including at least two movement directions, and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions, includes:

[0223] While the controlled virtual character is stationary at the target height, in response to the first trigger operation input, it acquires first movement control parameters including at least two movement directions, and controls the controlled virtual character to move in the first movement direction at the target height.

[0224] Optionally, the graphical user interface may further include: other virtual characters; the method may further include:

[0225] If the controlled virtual character is detected to start moving upward, then within a first time period, other virtual characters within a preset area around the controlled virtual character are controlled to move outside the preset area, centered on the controlled virtual character.

[0226] If the controlled virtual character is detected to have descended to the current position, then within the second time period, other virtual characters within a preset area surrounding the controlled virtual character are controlled to move outside the preset area, centered on the controlled virtual character.

[0227] Optionally, before obtaining the first movement control parameters including at least two movement directions, the method further includes:

[0228] From the preset movement directions, each of the at least two movement directions is randomly determined.

[0229] Optionally, the method further includes:

[0230] If it is detected that movement in each of the movement directions in the first movement control parameters has been completed, respond to the input of the third trigger operation for the first skill, obtain the second movement control parameters for the next set of movement directions, and control the controlled virtual character to move in the third movement direction in the second movement control parameters.

[0231] Optionally, the method further includes:

[0232] If it is detected that movement in each of the movement directions in the first movement control parameters has been completed, then the direction prompt icon corresponding to the second movement control parameter is displayed in the third area of ​​the graphical user interface.

[0233] In response to the input of a third trigger operation for the first skill, the direction prompt icon corresponding to the second movement control parameter is switched to be displayed in the first area of ​​the graphical user interface.

[0234] In summary, by inputting a first trigger operation for the first skill, the controlled virtual character is controlled to move in the first of at least two movement directions. By inputting a second trigger operation for the first skill, the controlled virtual character is controlled to move in the second of at least two movement directions. In other words, by inputting different operations for the first skill, the controlled virtual character can be controlled to move in different of at least two movement directions, which improves the movement flexibility of the virtual character, makes player operation simpler when multiple movements are required, and reduces the computing resources and energy consumption of the terminal device.

[0235] Optionally, this disclosure also provides a program product, such as a computer-readable storage medium, including a program that, when executed by a processor, performs the above-described method embodiments.

[0236] For example, the method may include:

[0237] In response to the input of a first trigger operation for the first skill, the system obtains first movement control parameters including at least two movement directions, and controls the controlled virtual character to move in the first movement direction among the at least two movement directions;

[0238] In response to the input of a second trigger operation for the first skill, the system controls the second movement direction to be active among the at least two movement directions, and controls the controlled virtual character to move in the second movement direction.

[0239] Optionally, the first movement control parameter further includes: direction switching sequence, wherein controlling the second movement direction among the at least two movement directions to be in an active state includes:

[0240] Based on the direction switching sequence, the next movement direction of the first movement direction among the at least two movement directions is determined to be the second movement direction, and the second movement direction is controlled to be in an active state.

[0241] Optionally, the first movement control parameter further includes: movement time, which includes: the movement duration of each movement time in the at least two movement directions, and a preset total movement duration; the preset total movement duration is greater than the cumulative movement duration in the at least two movement directions;

[0242] The control of the controlled virtual character to move in a first movement direction among the at least two movement directions includes:

[0243] Control the controlled virtual character to move in the first direction within the movement time in the first direction;

[0244] The second triggering operation is either an operation triggered within the movement time in the first movement direction, or an operation triggered outside the movement time in the first movement direction, but with the current movement time within the preset total movement time; wherein the current movement time is the time elapsed since the first triggering operation.

[0245] Optionally, the movement time further includes a cooling time, and the method further includes:

[0246] If the time elapsed since the first triggering operation reaches the preset total movement time, then the first skill is controlled to be unavailable during the cooldown period; or,

[0247] If both of the aforementioned movement directions are completed, the first skill is controlled to remain unavailable during the cooldown period.

[0248] Optionally, the first movement control parameter further includes: the movement speed corresponding to the at least two movement directions; the movement speed corresponding to each movement direction is greater than the preset movement speed of the controlled virtual character;

[0249] The control of the controlled virtual character to move in a first movement direction among the at least two movement directions includes:

[0250] The controlled virtual character is controlled to move in the first movement direction at a movement speed corresponding to the first movement direction.

[0251] Optionally, the first movement control parameter further includes: first display parameters for the at least two movement directions;

[0252] After acquiring the first movement control parameters, which include at least two movement directions, the process includes:

[0253] Based on the first display parameters of the at least two movement directions, directional prompt icons corresponding to the at least two movement directions are displayed on the graphical user interface.

[0254] Optionally, the first movement control parameters further include: second display parameters for the at least two movement directions; controlling the controlled virtual character to move in the first movement direction of the at least two movement directions further includes:

[0255] Based on the second display parameter of the first movement direction, a movement progress icon in the first movement direction is displayed on the graphical user interface.

[0256] Optionally, the first movement control parameter further includes: a third display parameter for the at least two movement directions; the method further includes:

[0257] If the second movement direction is active, then according to the third display parameter of the second movement direction, the direction prompt icon corresponding to the second movement direction is enhanced on the graphical user interface.

[0258] Optionally, displaying directional indicator icons corresponding to the at least two movement directions on the graphical user interface includes:

[0259] In the graphical user interface, the first area of ​​the controlled virtual character displays directional prompt icons corresponding to the at least two movement directions.

[0260] Optionally, the method further includes:

[0261] If the controlled virtual character is within the target area of ​​a preset virtual object, the directional prompt icons corresponding to the at least two movement directions will be switched from the first area of ​​the controlled virtual character to a second area outside the target area in the graphical user interface.

[0262] Optionally, the method further includes:

[0263] If the movement time corresponding to the second movement direction has not ended, and the preset total movement time has ended, then the controlled virtual character stops moving in the second movement direction.

[0264] Optionally, the method further includes:

[0265] In response to the input of the third trigger operation for the second skill, the controlled virtual character is controlled to move upward from its current position by a preset distance at a preset speed to the target height;

[0266] The controlled virtual character is controlled to remain at the target height for a preset duration;

[0267] Control the controlled virtual character to move downwards.

[0268] Optionally, the response input to the first trigger operation for the first skill, obtaining first movement control parameters including at least two movement directions, and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions, includes:

[0269] While the controlled virtual character is stationary at the target height, in response to the first trigger operation input, it acquires first movement control parameters including at least two movement directions, and controls the controlled virtual character to move in the first movement direction at the target height.

[0270] Optionally, the graphical user interface may further include: other virtual characters; the method may further include:

[0271] If the controlled virtual character is detected to start moving upward, then within a first time period, other virtual characters within a preset area around the controlled virtual character are controlled to move outside the preset area, centered on the controlled virtual character.

[0272] If the controlled virtual character is detected to have descended to the current position, then within the second time period, other virtual characters within a preset area surrounding the controlled virtual character are controlled to move outside the preset area, centered on the controlled virtual character.

[0273] Optionally, before obtaining the first movement control parameters including at least two movement directions, the method further includes:

[0274] From the preset movement directions, each of the at least two movement directions is randomly determined.

[0275] Optionally, the method further includes:

[0276] If it is detected that movement in each of the movement directions in the first movement control parameters has been completed, respond to the input of the third trigger operation for the first skill, obtain the second movement control parameters, and control the controlled virtual character to move in the third movement direction in the second movement control parameters.

[0277] Optionally, the method further includes:

[0278] If it is detected that movement in each of the movement directions in the first movement control parameters has been completed, then the direction prompt icon corresponding to the second movement control parameter is displayed in the third area of ​​the graphical user interface.

[0279] In response to the input of a third trigger operation for the first skill, the direction prompt icon corresponding to the second movement control parameter is switched to be displayed in the first area of ​​the graphical user interface.

[0280] In summary, by inputting a first trigger operation for the first skill, the controlled virtual character is controlled to move in the first of at least two movement directions. By inputting a second trigger operation for the first skill, the controlled virtual character is controlled to move in the second of at least two movement directions. In other words, by inputting different operations for the first skill, the controlled virtual character can be controlled to move in different of at least two movement directions, which improves the movement flexibility of the virtual character, makes player operation simpler when multiple movements are required, and reduces the computing resources and energy consumption of the terminal device.

[0281] In the several embodiments provided in this disclosure, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

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

[0283] Furthermore, the functional units in the various embodiments of this disclosure can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in a combination of hardware and software functional units.

[0284] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0285] The above are merely preferred embodiments of this disclosure and are not intended to limit this disclosure. Various modifications and variations can be made to this disclosure by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for controlling a virtual character, characterized in that, A graphical user interface is provided via a terminal device, the graphical user interface including a controlled virtual character, the method comprising: In response to the input of a first trigger operation for the first skill, the system obtains first movement control parameters including at least two movement directions, and controls the controlled virtual character to move in the first movement direction among the at least two movement directions; In response to the input of a second trigger operation for the first skill, the second movement direction is controlled to be active among the at least two movement directions, and the controlled virtual character is controlled to move in the second movement direction; The first movement control parameter further includes: first display parameters for the at least two movement directions; After obtaining the first movement control parameters, which include at least two movement directions, the process includes: Based on the first display parameters of the at least two movement directions, directional prompt icons corresponding to the at least two movement directions are displayed on the graphical user interface respectively; The first movement control parameter further includes: a third display parameter for the at least two movement directions; the method further includes: If the second movement direction is active, then according to the third display parameter of the second movement direction, the direction prompt icon corresponding to the second movement direction is enhanced on the graphical user interface.

2. The method for controlling a virtual character according to claim 1, characterized in that, The first movement control parameter further includes: direction switching sequence, wherein controlling the second movement direction among the at least two movement directions to be in an active state includes: Based on the direction switching sequence, the next movement direction of the first movement direction among the at least two movement directions is determined to be the second movement direction, and the second movement direction is controlled to be in an active state.

3. The method for controlling a virtual character according to claim 1, characterized in that, The first movement control parameter further includes: movement time, which includes: the movement duration of each movement time in the at least two movement directions, and a preset total movement duration; the preset total movement duration is greater than the cumulative movement duration in the at least two movement directions; The control of the controlled virtual character to move in a first movement direction among the at least two movement directions includes: Control the controlled virtual character to move in the first direction within the movement time in the first direction; The second triggering operation is either an operation triggered within the movement time in the first movement direction, or an operation triggered outside the movement time in the first movement direction, but with the current movement time within the preset total movement time; wherein the current movement time is the time elapsed since the first triggering operation.

4. The method for controlling a virtual character according to claim 3, characterized in that, The movement time also includes a cooling time, and the method further includes: If the time elapsed since the first triggering operation reaches the preset total movement time, then the first skill is controlled to be unavailable during the cooldown period; or, If both of the aforementioned movement directions are completed, the first skill is controlled to remain unavailable during the cooldown period.

5. The method for controlling a virtual character according to claim 1, characterized in that, The first movement control parameter further includes: the movement speed corresponding to the at least two movement directions; the movement speed corresponding to each movement direction is greater than the preset movement speed of the controlled virtual character; The control of the controlled virtual character to move in a first movement direction among the at least two movement directions includes: The controlled virtual character is controlled to move in the first movement direction at a movement speed corresponding to the first movement direction.

6. The method for controlling a virtual character according to claim 1, characterized in that, The first movement control parameters further include: second display parameters for the at least two movement directions; controlling the controlled virtual character to move in the first movement direction of the at least two movement directions further includes: Based on the second display parameter of the first movement direction, a movement progress icon in the first movement direction is displayed on the graphical user interface.

7. The method for controlling a virtual character according to claim 1, characterized in that, The step of displaying directional prompt icons corresponding to the at least two movement directions on the graphical user interface includes: In the graphical user interface, the first area of ​​the controlled virtual character displays directional prompt icons corresponding to the at least two movement directions.

8. The method for controlling a virtual character according to claim 7, characterized in that, The method further includes: If the controlled virtual character is within the target area of ​​a preset virtual object, the directional prompt icons corresponding to the at least two movement directions will be switched from the first area of ​​the controlled virtual character to a second area outside the target area in the graphical user interface.

9. The method for controlling a virtual character according to claim 3, characterized in that, The method further includes: If the movement time corresponding to the second movement direction has not ended, and the preset total movement time has ended, then stop controlling the controlled virtual character to move in the second movement direction.

10. The method for controlling a virtual character according to any one of claims 1-9, characterized in that, The method further includes: In response to the input of the third trigger operation for the second skill, the controlled virtual character is controlled to move upward from its current position by a preset distance at a preset speed to the target height; The controlled virtual character is controlled to remain at the target height for a preset duration; Control the controlled virtual character to move downwards.

11. The method for controlling a virtual character according to claim 10, characterized in that, The response input to the first trigger operation for the first skill, obtaining first movement control parameters including at least two movement directions, and controlling the controlled virtual character to move in the first movement direction among the at least two movement directions, includes: While the controlled virtual character is stationary at the target height, in response to the first trigger operation input, it acquires first movement control parameters including at least two movement directions, and controls the controlled virtual character to move in the first movement direction at the target height.

12. The method for controlling a virtual character according to claim 10, characterized in that, The graphical user interface also includes: other virtual characters; the method also includes: If the controlled virtual character is detected to start moving upward, then within a first time period, with the controlled virtual character as the center, the other virtual characters in the preset area around the controlled virtual character are controlled to move outside the preset area; If the controlled virtual character is detected to have descended to the current position, then within the second time period, other virtual characters within a preset area surrounding the controlled virtual character are controlled to move outside the preset area, centered on the controlled virtual character.

13. The method for controlling a virtual character according to claim 1, characterized in that, Before obtaining the first movement control parameters including at least two movement directions, the method further includes: From the preset movement directions, each of the at least two movement directions is randomly determined.

14. The method for controlling a virtual character according to claim 1, characterized in that, The method further includes: If it is detected that movement in each of the movement directions in the first movement control parameters has been completed, respond to the input of the third trigger operation for the first skill, obtain the second movement control parameters, and control the controlled virtual character to move in the third movement direction in the second movement control parameters.

15. The method for controlling a virtual character according to claim 14, characterized in that, The method further includes: If it is detected that movement in each of the movement directions in the first movement control parameters has been completed, then the direction prompt icon corresponding to the second movement control parameter is displayed in the third area of ​​the graphical user interface. In response to the input of a third trigger operation for the first skill, the direction prompt icon corresponding to the second movement control parameter is switched to be displayed in the first area of ​​the graphical user interface.

16. A control device for a virtual character, characterized in that, A graphical user interface is provided via a terminal device, the graphical user interface including: a controlled virtual character, the device including: The first control module is configured to respond to a first trigger operation input for a first skill, acquire first movement control parameters including at least two movement directions, and control the controlled virtual character to move in the first movement direction among the at least two movement directions; and respond to a second trigger operation input for the first skill, control the second movement direction among the at least two movement directions to be in an active state, and control the controlled virtual character to move in the second movement direction. The first movement control parameters further include: first display parameters for the at least two movement directions; and a first display module, configured to display direction prompt icons corresponding to the at least two movement directions on the graphical user interface according to the first display parameters for the at least two movement directions. The first movement control parameter further includes: a third display parameter for the at least two movement directions; the device further includes: a second display module, configured to, if the second movement direction is active, enhance the display of the direction prompt icon corresponding to the second movement direction on the graphical user interface according to the third display parameter of the second movement direction.

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 executes the computer program to implement the virtual character control method according to any one of claims 1-15.

18. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when read and executed, implements the virtual character control method according to any one of claims 1-15.

Citation Information

Patent Citations

  • Information processing program, information processing method, and information processing device

    CN109982756A

  • Processing method and device in game, terminal equipment and storage medium

    CN115006843A