Movement control method and device of controlled role, electronic equipment and storage medium

By introducing special movement states in open world games, using terrain data to automatically control the movement of controlled characters on vertical terrain objects, the problem of high operation burden on players during vertical exploration is solved, and the game experience and sense of substitution is improved.

CN118925229APending Publication Date: 2024-11-12NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310537255.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-11
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In open world games, controlled characters controlled by players need to operate independently during vertical exploration (such as climbing walls, cliffs, etc.), resulting in slow movement speed and bringing huge gaming operation burden to players, reducing the gameplay Explore efficiency and sense of inclusion.

Method used

The electronic terminal provides a graphical user interface, responds to player operations and enters the special movement state, and automatically controls the controlled character to move on the vertical terrain object based on terrain data, reducing the player's other operations other than the movement direction control, and improving the movement speed and smoothness sex.

Benefits of technology

It effectively reduces the operating burden of players, improves the movement speed and sense of substitution of controlled characters in virtual scenes, simplifies the way players control the controlled characters, and allows players to focus more on other contents of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118925229A_ABST
    Figure CN118925229A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a controlled role control method and device, electronic equipment and a storage medium, and is applied to the technical field of games, the method comprises the following steps: in response to an operation for a controlled role, entering a stunt movement state; under the condition that the controlled role moves on the transverse terrain object of the virtual scene in the stunt moving state, responding to a longitudinal terrain object meeting a preset climbing condition in the moving direction of the controlled role, and controlling the controlled role to move from the transverse terrain object of the virtual scene to the longitudinal terrain object; and in response to the movement of the controlled character on the longitudinal surface of the longitudinal terrain object in the stunt movement state, obtaining terrain data of the longitudinal surface, and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object by a movement action matched with the terrain data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game technology, and in particular to a method for controlling the movement of a controlled character, a device for controlling the movement of a controlled character, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the development of game technology, open world games have become a popular game type. In open world games, a vast game world can be presented to players, in which players can freely explore the game content existing in the game world, which greatly enriches the game content and improves the playability of the game. Among them, in open world games, for the controlled characters controlled by the players, during the vertical exploration process (such as climbing walls, cliffs, etc.), the controlled characters can move in the vertical exploration through corresponding climbing actions. However, during the movement process, the whole process depends on the player's autonomous operation, which not only has a slow movement speed, but also easily brings a great burden of game operation to the players. Summary of the invention

[0003] The embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for controlling the movement of a controlled character, so as to solve or partially solve the problem that the control of the controlled character in the game has a heavy game operation burden on the player and a weak sense of game immersion.

[0004] The embodiment of the present invention discloses a method for controlling the movement of a controlled character, wherein a graphical user interface is provided by an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface. The method comprises:

[0005] In response to an operation on the controlled character, entering a stunt movement state, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data;

[0006] When the controlled character moves on the lateral terrain object of the virtual scene in the stunt movement state, in response to the presence of a longitudinal terrain object that meets a preset climbing condition in the moving direction of the controlled character, controlling the controlled character to move from the lateral terrain object of the virtual scene to the longitudinal terrain object;

[0007] In response to the controlled character moving on the longitudinal plane of the longitudinal terrain object in the stunt movement state, terrain data of the longitudinal plane is acquired, and the controlled character is controlled to move along the longitudinal plane of the longitudinal terrain object with a movement action adapted to the terrain data.

[0008] The embodiment of the present invention also discloses a mobile control device for a controlled character, which provides a graphical user interface through an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface. The device includes:

[0009] a state control module, for entering a stunt movement state in response to an operation on the controlled character, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data;

[0010] a wall climbing module, configured to control the controlled character to move from the lateral terrain object of the virtual scene to the longitudinal terrain object in response to the presence of a longitudinal terrain object satisfying a preset climbing condition in the moving direction of the controlled character when the controlled character moves on the lateral terrain object of the virtual scene in the stunt moving state;

[0011] The movement control module is used to obtain terrain data of the longitudinal surface in response to the movement of the controlled character on the longitudinal surface of the longitudinal terrain object in the stunt movement state, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data.

[0012] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0013] The memory is used to store computer programs;

[0014] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0015] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

[0016] The embodiments of the present invention include the following advantages:

[0017] In an embodiment of the present invention, in a game application, for a controlled character controlled by a player, it can be configured with different basic movement states and stunt movement states. In the stunt movement state, the player can only control the movement direction of the controlled character, and for other actions of the controlled character passing through terrain objects, the game application can automatically control the controlled character according to the terrain data in the virtual scene. Specifically, during the game, the terminal can enter the stunt movement state in response to the operation on the controlled character. When the controlled character moves on the lateral terrain object of the virtual scene in the stunt movement state, in response to the existence of a longitudinal terrain object that meets the preset climbing condition in the movement direction of the controlled character, the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object, so that after entering the stunt movement state, when a longitudinal terrain object that meets the condition is detected, the controlled character is controlled to climb the lateral terrain object. The character can automatically move from the horizontal terrain object to the vertical terrain object. During the displacement process, the player is required to perform fewer operations except for controlling the moving direction, which effectively reduces the player's operating burden. At the same time, the terminal can also respond to the movement of the controlled character on the vertical surface of the vertical terrain object in a stunt moving state, obtain the terrain data of the vertical surface, and control the controlled character to move along the vertical surface of the vertical terrain object with a moving action adapted to the terrain data. In addition to controlling the displacement changes of the controlled character on different terrain objects, when moving on the corresponding terrain object, the terminal can also control the action changes of the controlled character on the corresponding terrain object based on the terrain data, further reducing the player's operating burden, simplifying the player's control method of the controlled character, allowing the player to focus more on other content of the game, and enhancing the player's sense of game immersion and other game experiences. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 is a flow chart of steps of a method for controlling movement of a controlled character provided in an embodiment of the present invention;

[0019] Figure 2 is a schematic diagram of a mobile scenario provided in an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of a mobile scenario provided in an embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of a capsule body provided in an embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of a mobile scene provided in an embodiment of the present invention;

[0023] Figure 6 is a schematic diagram of another mobile scenario provided in an embodiment of the present invention;

[0024] Figure 7 is a schematic diagram of movement direction fusion provided in an embodiment of the present invention;

[0025] Figure 8 is a schematic diagram of virtual camera adjustment provided in an embodiment of the present invention;

[0026] Fig. 9 is a structural block diagram of a mobile control device for a controlled character provided in an embodiment of the present invention;

[0027] Fig.10 It is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0029] As an example, in open world games, a vast game world can be presented to players, in which players can freely explore the game content existing in the game world, which greatly enriches the game content and improves the playability of the game. For such games, the mainstream gameplay is to explore and collect the game world. During the exploration and collection process, the different terrains in the game world bring rich and diverse changes to the players, but also easily increase the corresponding operation burden for the players. That is, the players need to perform different movement control operations according to the changes in the terrain during the movement of the controlled character. Therefore, how to simplify the player's movement control of the controlled character according to the terrain and enhance the player's sense of immersion in the movement of the controlled character in the game world has become the main influencing factor for the player to obtain a good game experience. For example, when the player needs to control the controlled character to move to the destination, if the movement control of the controlled character can be simplified, it will undoubtedly bring a good game experience to the player. Among them, in open world games, there are various terrain objects, such as grasslands, plains, hills, mountains, forests, buildings, etc. The controlled characters can move in the horizontal direction of the game scene (such as running on the grassland, etc.), and can also move in the vertical direction of the game scene (such as climbing on the wall of the building, etc.). However, in the vertical exploration process (such as climbing walls, cliffs, etc.), the controlled characters can move in the vertical exploration through corresponding climbing actions. In this process, the whole process depends on the player's autonomous operation. The player not only needs to judge the operation timing (such as when encountering an obstacle, it is necessary to judge when to input the corresponding operation to control the controlled character to cross the obstacle, etc.), which easily brings a great burden to the player's game operation, but also the controlled character moves slowly, which greatly reduces the player's exploration efficiency of the game world.

[0030] In this regard, in the game application of the present invention, for the controlled character controlled by the player, it can be configured with different basic movement states and stunt movement states. In the basic movement state, the player needs to control all movement operations of the controlled character, while in the stunt movement state, the player can only control the movement direction of the controlled character, and for other actions of the controlled character passing through terrain objects, the game application can automatically control the controlled character according to the terrain data in the virtual scene. Specifically, during the game process, the terminal can enter the stunt movement state in response to the operation on the controlled character. When the controlled character moves on the lateral terrain object of the virtual scene in the stunt movement state, in response to the existence of a longitudinal terrain object that meets the preset climbing condition in the movement direction of the controlled character, the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object, that is, after entering the stunt movement state, when it is detected that the condition meets the preset climbing condition, the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object. When the controlled character moves to a longitudinal terrain object under certain conditions, the controlled character can automatically move from the transverse terrain object to the longitudinal terrain object. During the displacement process, the player does not need to perform other operations except for controlling the moving direction, which effectively reduces the player's operating burden. At the same time, the terminal can also respond to the movement of the controlled character on the longitudinal surface of the longitudinal terrain object in a stunt moving state, obtain the terrain data of the longitudinal surface, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object with a moving action adapted to the terrain data. In addition to controlling the displacement changes of the controlled character on different terrain objects, when moving on the corresponding terrain object, the terminal can also control the action changes of the controlled character on the corresponding terrain object based on the terrain data, further reducing the player's operating burden, simplifying the player's control method of the controlled character, allowing the player to focus more on other content of the game, and enhancing the player's sense of game immersion and other game experiences.

[0031] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, some technical features involved in the embodiments of the present invention are explained and illustrated below:

[0032] Virtual scenes use devices to output scenes that are different from the real world. With the help of naked eyes or devices, visual perception of virtual scenes can be formed. For example, two-dimensional images are output through a display screen, and three-dimensional images are output through stereo display technologies such as stereo projection, virtual reality and augmented reality. In addition, various perceptions that simulate the real world, such as auditory perception, tactile perception, olfactory perception and motion perception, can also be formed through various possible hardware.

[0033] In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be in real time or have a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.

[0034] A controlled character is an object that interacts in a virtual scene. It is controlled by a user or a robot program (for example, an artificial intelligence-based robot program) and can be still, move, and perform various behaviors in a virtual scene, such as various characters in a game.

[0035] Terrain objects, which can be objects of the terrain constituting the game scene, include grasslands, plains, hills, mountains, forests, buildings, etc. In particular, terrain objects can also include obstacle objects located in the aforementioned terrain objects, such as boxes and stones located on the ground. Among them, terrain objects can be divided into horizontal terrain objects and vertical terrain objects. Horizontal terrain objects include terrain objects that move in a way that does not require overcoming gravity, such as hills, grasslands, plains and other horizontal or quasi-horizontal terrains; vertical terrain objects include terrain objects that need to move in a way that overcomes gravity with specific actions, such as the longitudinal surface of a mountain, trees, walls of a building, etc. The controlled character needs to perform corresponding actions (such as climbing, etc.) to achieve movement in the horizontal terrain objects. For vertical terrain objects, the controlled character's hands are involved in the process of climbing (inverse kinematics), and the movement needs to be carried out from the hands to the shoulders. In this process, the terminal needs to perform complex calculations, which increases the performance overhead of the terminal. In addition, this simple climbing action has a slow movement speed. When encountering complex terrain, the controlled character needs to be controlled to perform corresponding actions according to the player's judgment to pass the corresponding terrain, which brings a great operational burden to the player.

[0036] Reference Figure 1 , shows a flow chart of the steps of a method for controlling the movement of a controlled character provided in an embodiment of the present invention, wherein a graphical user interface is provided by an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface, which may specifically include the following steps:

[0037] Step 101, in response to an operation on the controlled character, entering a stunt movement state, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data;

[0038] Optionally, the electronic terminal may include a mobile terminal and a PC terminal, etc., and a game application may be stored in the local terminal device. It is understandable that the terminal device may also be a cloud client, and the corresponding game functions may be provided in the game application. In the embodiment of the present invention, the electronic terminal is a PC terminal, and the player may control the controlled character through a mouse, keyboard, or game controller, etc., for illustrative explanation, and the present invention is not limited to this.

[0039] For the controlled character, it can be configured with a basic movement state and a stunt movement state. In the basic movement state, the player needs to control all movement operations of the controlled character, while in the stunt movement state, the player can only control the movement direction of the controlled character. As for other actions of the controlled character passing through terrain objects, the game application can automatically control the controlled character according to the terrain data in the virtual scene. Specifically, when the controlled character is in the basic movement state, the player needs to control the movement direction and movement actions (running, jumping, crawling, etc.) of the controlled character; when the controlled character is in the stunt movement state, the player only needs to control the movement direction of the controlled character, and the terminal can automatically control the controlled character according to the terrain data in the movement direction of the controlled character in the virtual scene. The player moves according to the movement actions adapted to the terrain data. By comparison, in the basic movement state, the movement of the controlled character not only requires the player to input more control operations, but also the obstacle avoidance depends on the player's subjective decision, which brings more operation burden to the player. In the stunt movement state, the player only needs to control the movement direction of the controlled character, and other movement controls can be automatically controlled by the terminal according to the terrain data, which greatly reduces the player's operation burden. For example, when the controlled character needs to climb a mountain, in the basic movement state, the player needs to control the movement direction, climbing action, climbing timing, etc. of the controlled character, while in the stunt movement state, the player only needs to control the movement direction of the controlled character, and the climbing action, climbing timing, etc. can all be executed by the terminal.

[0040] It should be noted that, from the perspective of player operation, the basic movement state and the stunt movement state can effectively reduce the player's operating burden, and from the perspective of game performance, the controlled character in the stunt movement state can move in the virtual scene at a higher speed than the basic movement state, and can automatically avoid obstacles in the virtual scene. At the same time, during the movement process, corresponding actions can be performed and corresponding action effects can be added to improve the smoothness of movement and picture performance.

[0041] In the game, for a controlled character in a basic moving state, a player can input an operation for the controlled character in a terminal to make it perform a stunt moving state, so as to simplify the movement control operation of the controlled character in the game and improve the moving speed of the virtual character. Among them, the virtual scene includes different terrains, and the terrain objects where the controlled character is located when entering the stunt moving state may be different. Therefore, when the controlled character enters the stunt moving state from different terrain objects, the controlled character can perform different actions. Specifically, when the controlled character moves in a lateral terrain object (i.e., ground movement), in the basic moving state, it can include walking, running, sprinting, etc., corresponding to different actions and different moving speeds respectively. When entering the stunt moving state, the controlled character can move at a moving speed faster than sprinting, and the present invention does not limit this.

[0042] Optionally, corresponding detection nodes can be configured in the game application to detect game parameters involved in the running of the game application through the corresponding detection nodes, and when it is detected that the conditions are met, corresponding events are executed, including controlling the controlled character to perform corresponding actions.

[0043] In a specific implementation, a state trigger node corresponding to the stunt movement state can be configured. When the player controls the controlled character to enter the stunt movement state from the basic movement state, the terminal can switch the state trigger node from 0 to 1 and control the controlled character to enter the stunt movement state. At the same time, for the controlled character, in the basic movement state, the corresponding basic movement node corresponds to events such as "walk", "run", and "sprint". After entering the stunt movement state, the event corresponding to the basic movement node can be replaced with the "stunt movement" event, so as to control the controlled character to move in the virtual scene according to the movement action corresponding to the stunt movement state. In addition, in the process of moving in the stunt movement state, the terminal can also set the posture control node corresponding to the controlled character to the start state to control the body of the controlled character to tilt forward at a preset angle, simulate the posture of the corresponding point of the body of the controlled character in the case of rapid movement, and improve the authenticity of the movement of the controlled character.

[0044] In an optional embodiment, when the controlled character moves on the lateral terrain object of the virtual scene in a basic movement state, the terminal can enter a stunt movement state in response to an operation on the controlled character, the basic movement state is a state in which the controlled character is controlled to move according to the player's operation on the controlled character, and then the terminal can control the controlled character to move on the lateral terrain object of the virtual scene in a stunt movement state, and the movement speed corresponding to the stunt movement state is greater than the movement speed corresponding to the basic movement state.

[0045] In another optional embodiment, when the controlled character is in the air, the terminal can respond to the operation on the controlled character, such as the player controlling the movement state of the controlled character through a preset physical key or virtual control (for example, a key on the keyboard can be used as a control key to trigger the controlled character to enter the stunt movement state, or a corresponding trigger control can be set in the graphical user interface to control the controlled character to enter the stunt movement state), so that the controlled character enters the stunt movement state and controls the controlled character to perform a sprint action in the movement direction. For the controlled character in the air, there are at least two situations in the process of entering the stunt movement state and performing a sprint action in the movement direction:

[0046] In one case, after the sprint action is completed, there is no longitudinal terrain object in the moving direction of the controlled character to hinder its normal horizontal movement. In this case, after the sprint action is completed, the controlled character can fall from the air to the transverse terrain object in a uniformly accelerated manner, and after landing, move on the transverse terrain object with the action corresponding to the stunt movement state; in the second case, during the execution of the sprint action of the controlled character, the terminal can control the controlled character to move from the air to the longitudinal terrain object in response to the process of the controlled character executing the sprint action and the presence of a longitudinal terrain object in the moving direction that meets the preset climbing conditions. Therefore, for the controlled character in the air, the player can control it to enter the stunt movement state, so that the controlled character can move more flexibly and reduce the player's operating burden.

[0047] Optionally, taking the PC game as an example, the player can control the controlled character through the mouse and keyboard. Assuming that the movement state of the controlled character is moved by the ctrl key on the keyboard, in the game, when the player does not touch the ctrl key, the movement of the controlled character is controlled by the direction keys or preset direction keys on the keyboard (W to move forward, A to move left, S to move backward, D to move right), and the controlled character moves in a basic movement state; when the player presses the ctrl key (single point or long press), the movement speed of the controlled character on the horizontal terrain object can be accelerated, and when a vertical terrain object that meets the preset climbing conditions is detected in the moving direction of the controlled character, the terminal can control the controlled character to automatically move from the horizontal terrain object to the vertical terrain object.

[0048] In one example, referring to Figure 2, shows a schematic diagram of a moving scene provided in an embodiment of the present invention, wherein ① shows a moving trajectory of the controlled character from the ground to the wall when the controlled character moves in a stunt moving state on the ground (i.e., a horizontal terrain object), there is a corresponding wall (i.e., a vertical terrain object) in the moving direction and the wall meets the climbing condition; ② shows a moving trajectory of the controlled character from the air to the wall when the controlled character receives an instruction to enter a stunt moving state in the air, enters the stunt moving state, sprints forward, and detects that there is a corresponding wall (i.e., a vertical terrain object) in the sprinting direction and the wall meets the climbing condition. It should be noted that when the controlled character sprints in the air, if no wall that meets the conditions is detected, the character can move according to the stunt movement state after landing. If a wall is detected again, the character can climb the wall according to process ①. Therefore, for the controlled character that is in the stunt movement state, when it encounters a vertical terrain object during its movement, the terminal can control it to automatically move to the vertical terrain object, so that the player no longer needs to judge the timing of "climbing the wall" and no longer needs to input the corresponding control operation of "climbing the wall", which greatly reduces the player's operating burden.

[0049] In the second case mentioned above, if the controlled character is in the basic movement state, the player needs to wait for the controlled character to fall to the horizontal terrain object, and then trigger the movement control to control the controlled character to move to the corresponding vertical terrain object, and then control the controlled character to climb up the vertical terrain object with the corresponding climbing action, or trigger the jump control to control the virtual object to cross the vertical terrain object with the corresponding jumping action. When the controlled character is in the air, if the player presses the movement state control key (or movement state control control, such as the ctrl key or the corresponding virtual control, etc.) while keeping the movement joystick (or movement control key) triggered, when controlling the controlled character to enter the stunt movement state, the controlled character in the stunt movement state can perform the corresponding sprint action in the air, approach the vertical terrain object, and when approaching the vertical terrain object and detecting that the conditions are met, move directly from the air to the vertical terrain object. The sprint action and the "wall climbing" action are executed in a continuous manner, which simplifies the player's operation, reduces the player's operation burden, and improves the player's corresponding game immersion when controlling the controlled character to move in the virtual scene.

[0050] In a specific implementation, when entering a stunt movement state from the air and detecting the presence of a longitudinal terrain object that meets the climbing condition in the moving direction, the terminal can control the controlled character to perform a sprint action to move to the first detection point corresponding to the longitudinal terrain object, and control the controlled character to perform a jump action from the first detection point to the longitudinal terrain object, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object. The first detection point can be a jumping point from the air to the longitudinal terrain object. When the controlled character performs a sprint action, it is detected that there is a longitudinal terrain object in the moving direction, and the longitudinal terrain object meets the climbing condition, the terminal can select the first detection point from the moving direction of the controlled character, and then when the controlled character performs a sprint action to move to the first detection point, the terminal is triggered to control the controlled character to move from the first detection point to the longitudinal terrain object, so as to achieve displacement between the air and the longitudinal terrain object.

[0051] In one example, for a controlled character in the air, it may include a controlled character in a jumping state and a controlled character falling from a height. In this case, the air detection node can be used to determine whether the controlled character is in the air, and to determine what kind of animation to select after the controlled character enters the stunt movement state, including an animation of climbing up a wall in the air and an animation of climbing up a wall from the ground after landing in the air.

[0052] In addition, for the detection of terrain data, the terminal can emit multiple first rays in the moving direction of the controlled character, and emit second rays in a preset direction at multiple positions on the first rays, so as to detect the position information of the terrain object within a preset distance in the moving direction of the controlled character through the second rays. When a longitudinal terrain object that meets the climbing condition is detected within 1 meter in the moving direction of the controlled character based on the ray detection method, an event of moving from the air to the longitudinal terrain object is triggered, and then the terminal can control the controlled character to perform a corresponding action to move from the air to the longitudinal terrain object. Optionally, after the controlled character moves to the longitudinal terrain object, the terminal can also continuously detect the terrain data of the longitudinal terrain object. Specifically, the terminal can emit multiple first rays in the moving direction of the controlled character, and emit second rays in a preset direction at multiple positions on the first rays, so as to detect the position information of the longitudinal surface of the longitudinal terrain object within a preset distance in the moving direction of the controlled character through the second rays, so as to obtain the terrain data corresponding to the longitudinal terrain object, and then control the controlled character to move on the longitudinal terrain object according to the terrain data.

[0053] Step 102, when the controlled character moves on the lateral terrain object of the virtual scene in the stunt movement state, in response to the presence of a longitudinal terrain object that meets a preset climbing condition in the moving direction of the controlled character, controlling the controlled character to move from the lateral terrain object of the virtual scene to the longitudinal terrain object;

[0054] Optionally, in addition to the above-mentioned situation of entering the stunt movement state from the air and moving to the longitudinal terrain object from the air, when the controlled character moves on the lateral terrain object of the virtual scene in the stunt movement state, the terminal can also detect the terrain in the moving direction of the controlled character. When it is detected that there is a longitudinal terrain object that meets the preset climbing conditions in the moving direction, the terminal can control the controlled character to move from the lateral terrain object of the virtual scene to the longitudinal terrain object in response to the presence of the longitudinal terrain object that meets the preset climbing conditions in the moving direction of the controlled character, and then further perform terrain detection on the longitudinal surface of the longitudinal terrain object to control the controlled character to move on the longitudinal terrain object according to the corresponding terrain data.

[0055] In a specific implementation, the terminal can control the controlled character to move from the horizontal terrain object of the virtual scene to the vertical terrain object in response to the presence of a vertical terrain object within a preset distance threshold in the direction of movement of the controlled character, and the height of the vertical terrain object is greater than or equal to the preset height threshold. After determining that the controlled character can move from the horizontal terrain object to the vertical terrain object, the terminal can obtain a posture tilt angle for jumping to the vertical terrain object in response to the controlled character moving to the second detection point of the horizontal terrain object, the second detection point being the jumping point from the horizontal terrain object to the vertical terrain object, and then determine the attachment point of the controlled character from the vertical terrain object based on the relative distance between the detection point and the vertical terrain object, and the posture tilt angle, and then control the controlled character to jump from the second detection point to the attachment point at the posture tilt angle. In this process, when the controlled character moves to the second detection point, the controlled character is still a certain distance away from the vertical terrain object. However, for the controlled character in the stunt moving state, the player does not need to control the controlled character to move from the horizontal terrain object to the vertical terrain object, but the terminal can directly "pull" the controlled character from the position of the second detection point to the attachment point on the vertical terrain object (including controlling the controlled character to jump from the second detection point to the attachment point, flying from the second detection point to the attachment point, etc.), so as to realize automatic control of the controlled character from the horizontal terrain object to the vertical terrain object according to the terrain change, and automatically control the movement of the controlled character on different terrain objects through the terrain change, which simplifies the player's control over the controlled character and strengthens the player's sense of involvement in the movement of the controlled character in the virtual scene. Among them, the posture tilt angle can be the angle at which the controlled character moves from the horizontal terrain object to the vertical terrain object in the corresponding moving direction. For example, when the posture tilt angle is 30 degrees, the controlled character can jump from the horizontal terrain object to the vertical terrain object in the moving direction with an angle of 30 degrees with the horizontal line.

[0056] In one example, for the process of a controlled character moving from a horizontal terrain object to a vertical terrain object, it can move from the horizontal terrain object to the vertical terrain object through different moving directions (including left, right and front) (hereinafter referred to as a "wall-going event"), and detect through the corresponding wall-going node, so as to perform mapping selection according to the longitudinal surface of the vertical terrain object corresponding to the orientation of the controlled character. Specifically, for the "wall climbing event", it may involve wall detection nodes, wall climbing nodes, animation connection nodes, speed control nodes, and event nodes, etc. Then, when the controlled character triggers the "wall climbing event" on the horizontal terrain object with Run / Rush, the terminal can detect the corresponding "wall climbing event" through the wall detection node, enter the wall climbing node of the "wall climbing" fusion tree, and play the animation corresponding to the wall climbing node. For the animation playback process, the wall climbing animation can be divided into two sections and connected through the animation connection node. The first section is the wall climbing section, and the second section is the action stretching section. The speed control node controls the controlled character to "climb the wall" at a corresponding speed in the action stretching section to ensure that the controlled character can touch the longitudinal surface of the longitudinal terrain object at the position of climbing the wall. At the same time, the event node triggers the selection connection between the first animation and the second animation, and the second animation can be controlled by a custom event to control the animation to jump to the longitudinal surface movement and stop climbing state, etc., to indicate that the animation needs to jump when it plays to the last frame. Reference Figure 3 , shows a schematic diagram of a moving scene provided in an embodiment of the present invention. When a longitudinal terrain object satisfying the climbing condition is detected in the moving direction of the controlled character, by determining the corresponding detection point and the attachment point, when the controlled character moves to the detection point A, the controlled character is triggered to be controlled to jump from the detection point to the attachment point B with a preset posture tilt angle as the jumping direction, thereby realizing the movement of the controlled character from the horizontal terrain object to the longitudinal terrain object.

[0057] In addition, in the above process, when the controlled character enters the stunt movement state with Run / Rush and encounters a vertical terrain object during the movement, the camera will automatically turn to the back of the controlled character, but when the picture perspective encounters a vertical terrain object with a perspective facing the controlled character, the camera will not rotate, and the controlled character will flip backwards and cannot move from the horizontal terrain object to the vertical terrain object.

[0058] In an optional embodiment, in addition to configuring the corresponding execution node to detect the longitudinal terrain object, the virtual scene can also be spatially divided, and a capsule corresponding to the controlled character and the divided virtual scene are compared and detected to determine whether there is a corresponding longitudinal terrain object in the moving direction of the controlled character. For example, if there is a corresponding space cube (that is, a cube corresponding to the longitudinal terrain object) within 2 meters in front of the capsule, and the height of the space cube is greater than or equal to the preset height threshold, it can be determined that there is a longitudinal terrain object that meets the climbing conditions in the moving direction of the controlled character. Figure 4 , which shows a schematic diagram of a capsule provided in an embodiment of the present invention, divides the virtual scene into different space cubes, then Figure 4 The game scene is displayed in cross-section. Each square can represent a space cube (unit cube, one unit is 1 meter), and the capsule (wrapped by a cuboid) can represent the position of the controlled character in the game scene. Figure 4 ① in the figure represents that the controlled character is located on the longitudinal terrain object, and the thickness of the longitudinal terrain object is 1 meter; Figure 4 ② in the figure indicates that the controlled character is located on the longitudinal terrain object, and the longest distance between the longitudinal terrain object and the controlled character is 3 meters and the shortest distance is 2 meters. Figure 4 ③ in the figure indicates that the controlled character is located on the longitudinal terrain object, and the longest distance between the longitudinal terrain object and the controlled character is 2 meters, and the shortest distance is 1 meter. Figure 4 ④ in it only represents the controlled character. As the terrain object changes, the positional relationship between the controlled character and the virtual scene can change accordingly. The embodiments of the present invention include but are not limited to the above examples. Among them, for terrain detection, the grid can be divided according to the requirements of long distance and low precision, and each grid can be judged on the wall to obtain the information of each grid along the wall. The animation performance can spell out the movement trajectory and state according to the terrain and the movement direction of the player-controlled character. The close-range ray obtains the key position and IK (Inverse Kinematics) adjusts the posture. The connectivity in each direction can be configured as 6 connected directions, etc., and the distance from the obstacle can be configured as 4m. As an example, when performing space estimation, it can detect forward and upward, and its detection distance can be 10m, and it can be scrolled and refreshed, and calculated in real time through rays. The capsule body height can be configured to be 2m, the upward detection distance is 2.4m, and the left and right detection distances are 1.5m.

[0059] When the controlled character moves to the longitudinal terrain object, the terminal can respond to receiving the movement control instruction for the virtual object and control the controlled character to move on the longitudinal terrain object. It should be noted that the movement control instruction can be an instruction for controlling the movement direction of the controlled character. When the player stops inputting the movement control instruction, the terminal can respond to the end of the movement control instruction and control the controlled character to stay on the longitudinal terrain object. In the stunt movement state, the terminal can remove the gravity of the controlled character in the virtual scene to control the controlled character to stay on the longitudinal terrain object, so that the controlled character can stay on the longitudinal terrain object in a similar "adsorption" manner.

[0060] Step 103, in response to the controlled character moving on the longitudinal plane of the longitudinal terrain object in the stunt movement state, acquiring terrain data of the longitudinal plane, and controlling the controlled character to move along the longitudinal plane of the longitudinal terrain object with a movement action adapted to the terrain data.

[0061] When the controlled character moves on the longitudinal terrain object in a stunt movement state, the terminal can obtain the terrain data of the longitudinal surface of the longitudinal terrain object in real time by means of ray detection, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object with a moving action adapted to the terrain data, that is, after entering the stunt movement state, when a longitudinal terrain object that meets the conditions is detected, the controlled character can automatically move from the transverse terrain object to the longitudinal terrain object, reducing the player's execution of other operations except the control of the moving direction during the displacement process, effectively reducing the player's operating burden, and at the same time, the terminal can also respond to the movement of the controlled character on the longitudinal surface of the longitudinal terrain object in the stunt movement state. The terrain data of the longitudinal surface is obtained, and the controlled character is controlled to move along the longitudinal surface of the longitudinal terrain object with moving actions adapted to the terrain data. In addition to controlling the displacement changes of the controlled character on different terrain objects, when moving on the corresponding terrain objects, the terminal can also control the movement changes of the controlled character on the corresponding terrain objects based on the terrain data. This not only realizes the rich and colorful changes of the moving actions of the controlled character following the terrain, thereby improving the player's game immersion, but also further reduces the player's operating burden, simplifies the player's control method of the controlled character, and allows the player to focus more on other content of the game, thereby improving the player's gaming experience.

[0062] Optionally, the movement of the controlled character on the longitudinal terrain object may include wall movement (Climb), wall climbing (ClimbToWall), wall descent (ClimbBackJump), and platform climbing (ClimbToPlatform), wherein Climb may be the controlled character moving (ClimbRun) and staying (ClimbIdel) on the longitudinal surface of the longitudinal terrain object, and some longitudinal surface movements may be corresponding performance actions such as tumbling and rotating; for ClimbToWall, it may be the process of climbing over an obstacle object protruding from the longitudinal surface of the longitudinal terrain object; for ClimbBackJump, it may be Moving from a longitudinal terrain object to a transverse terrain object, that is, the process of jumping from a high place to a low place; for ClimbToPlatform, it can be the process of moving from the longitudinal surface of a longitudinal terrain object to the transverse surface. The difference from ClimbToWall is that ClimbToWall corresponds to the protruding obstacles on the longitudinal surface. After passing the protruding obstacles, the controlled character still needs to move on the longitudinal surface, while ClimbToPlatform corresponds to the protruding platforms corresponding to the transverse surface of the longitudinal terrain object, including the inwardly recessed platforms of the longitudinal terrain objects and the outwardly protruding platforms. That is, the upper platform can refer to the controlled character jumping to the recessed area, or jumping onto the obstacle object.

[0063] For example, refer to Figure 5 , showing a schematic diagram of a moving scene provided in an embodiment of the present invention, (the moving scene is hereinafter referred to as "ClimbToPlatform") for a scene in which a controlled character jumps from a longitudinal surface of a longitudinal terrain object to a platform (lateral surface) of the longitudinal terrain object, including ① executing a jumping action to directly jump from the longitudinal surface to the lateral surface; ② there is an area on the lateral surface where one cannot stand, when jumping, the character jumps from the longitudinal surface and crosses the area where one cannot stand to reach an area on the lateral surface where one can stand; ③ there is a protruding platform on the lateral surface relative to the longitudinal surface, and the character climbs over the protruding platform from the longitudinal surface to reach a corresponding position on the lateral surface; ④ there is an area on the protruding platform where one cannot stand, when jumping, the character jumps from the longitudinal surface and crosses the protruding platform to reach an area on the lateral surface where one can stand; in addition, for the arcs in ①, ②, ③ and ④, they represent the moving trajectory of the controlled character, the dotted line represents an area on the terrain object where one cannot stand, and the dots represent multiple actions, specifically, ③ contains two dots, that is, the controlled character needs to perform three actions in the process of moving from the longitudinal surface to the lateral surface, such as a first jumping action, a second jumping action and a falling action, etc., and the same is true for ④, which will not be repeated here. And, refer to Figure 6, showing a schematic diagram of another moving scene provided in an embodiment of the present invention (the moving scene is hereinafter referred to as "ClimbToWall") for a scene in which a controlled character moves on a longitudinal surface of a longitudinal terrain object, including ① a relatively small protruding obstacle on the longitudinal surface, directly executing a first jumping action to cross the protruding obstacle; ② a relatively large protruding obstacle on the longitudinal surface, executing at least one action to cross the protruding obstacle; ③ there is another longitudinal surface area protruding relative to the current longitudinal surface area in the moving direction, executing a corresponding jumping action to jump from the current longitudinal surface area to the longitudinal surface area; ④ there is a concave area relative to the current longitudinal surface in the moving direction, executing a corresponding jumping action to jump from the longitudinal surface to the concave area. It should be noted that for the relevant meanings of arcs, dots, etc., refer to the above description and will not be repeated here.

[0064] Optionally, for the above process, the different scenarios involved in ClimbToWall and ClimbToPlatform can be divided into terrain objects according to "protrusions" (i.e. obstacle objects) and "recesses". "Protrusions" can include moving scenes corresponding to ③ and ④ of ClimbToPlatform and moving scenes corresponding to ①, ②, and ③ of ClimbToWall, while "recesses" can include moving scenes corresponding to ① and ② of ClimbToPlatform and moving scenes corresponding to ④ of ClimbToWall. Then, according to the corresponding scenarios, the terminal can control the controlled character to move on the longitudinal terrain object based on the terrain data obtained by real-time detection, with moving actions adapted to the terrain data.

[0065] In an optional embodiment, for a "recessed" scene, the terminal can detect terrain data on the longitudinal plane of the controlled character's moving direction in response to the controlled character's longitudinal movement on the longitudinal plane of the longitudinal terrain object in a stunt move state. When the terrain data indicates that there is a recessed area in the moving direction of the controlled character, the controlled character is controlled to perform a jumping action to reach the recessed area.

[0066] In a specific implementation, if there is no non-standing area in the recessed area, the terminal can control the controlled character to perform "one jumping action" or "one jumping action and one falling action" to move from the longitudinal surface of the longitudinal terrain object to the transverse surface. For example, for scene ① of ClimbToPlatform, the terminal can control the controlled character to perform a jumping action from the longitudinal surface of the longitudinal terrain object to the transverse surface of the longitudinal terrain object (that is, the platform); for scene ④ of ClimbToWall, the terminal can control the controlled character to perform a jumping action and a falling action into the recessed area to move from the longitudinal surface of the longitudinal terrain object to the transverse surface.

[0067] In the case where there is a non-standable area on the recessed area, that is, when the terrain data represents that there is a recessed area in the moving direction of the controlled character, the first jumping action to be performed by the controlled character is determined, and then the first landing point of the controlled character in the recessed area can be determined according to the first jumping action. If the first landing point belongs to the non-standable area, the first jumping action is adjusted to a second jumping action that crosses the non-standable area, and then the controlled character is controlled to perform the second jumping action to reach the recessed area. For example, for the ② scene of ClimbToPlatform, in the case of a non-standable area, it is necessary to adjust the first jumping action with a smaller jumping range to a second jumping action that can cross the non-standable area, and then control the controlled character to perform the second jumping action from the longitudinal surface of the longitudinal terrain object to cross the non-standable area on the platform and reach the standable area of ​​the recessed area. In addition, for the ④ scene of ClimbToWall, in the case of a non-standable area, its processing process can refer to the ② scene of ClimbToPlatform, which will not be repeated here.

[0068] In another optional embodiment, for the "protruding" scene, the terminal can detect the terrain data of the longitudinal surface of the longitudinal terrain object in the moving direction of the controlled character. When the terrain data indicates that there is an obstacle object in the moving direction of the controlled character, the moving action of the controlled character to move onto the obstacle object or over the obstacle object is determined based on the size parameters of the obstacle object, and then the controlled character is controlled to move along the longitudinal surface based on the moving action. Among them, for the obstacle object, it can include the protruding platform in the aforementioned embodiment, and the size parameter can be a protruding width that represents the obstacle object relative to the longitudinal terrain object. Different protruding widths have different effects on the movement of the controlled character. Different "passing strategies" can be adopted for obstacle objects with different protruding widths, including passing through through different moving actions, etc., and the present invention is not limited to this.

[0069] In a specific implementation, in the case where there is no non-standing area on the obstacle object, the terminal can determine that the controlled character needs to perform at least one moving action based on the size parameter, so as to control the controlled character to cross the obstacle object and reach the corresponding position through the determined moving action. Specifically, if the size parameter of the obstacle object represents that the protruding width of the obstacle object relative to the longitudinal plane is less than a first preset threshold, then determine to control the controlled character to jump from the first height of the longitudinal plane to the second height of the longitudinal plane to cross the obstacle object. Among them, the height at the first height is less than the height at the second height, and the obstacle object is located between the first height and the second height. If the size parameter of the obstacle object represents that the protruding width of the obstacle object relative to the longitudinal plane is greater than or equal to the first preset threshold, then determine that the moving action to be performed by the controlled character includes a moving away action away from the current longitudinal plane, a first jumping action, and a first falling action falling onto the obstacle. Optionally, the first preset threshold can be a threshold set according to game requirements. For example, the first preset threshold can be set to 2 meters. Obstacle objects with a protruding width less than 2 meters can be determined as simple obstacle objects and can be passed through with a simple jump. Obstacle objects with a protruding width greater than 2 meters can be determined as complex obstacle objects and require multiple movement actions to cooperate in order to pass through.

[0070] In the case where there is a non-standable area on the obstacle object, the terminal can determine the second landing point of the controlled character on the obstacle object based on the moving away action, the first jumping action and the first falling action. If the second landing point belongs to the non-standable area, the first jumping action is adjusted, and / or the first falling action is adjusted, and the standable area is determined on the obstacle object through the adjusted movement action. Among them, the adjustment of the first jumping action and / or the first falling action can include: adjusting the first jumping action to the second jumping action, and / or adjusting the first falling action to the second falling action, and then the moving away action, the second jumping action and the second falling action can be determined as the movement actions to be performed by the controlled character, or the moving away action, the second jumping action and the first falling action are determined as the movement actions to be performed by the controlled character, or the moving away action, the first jumping action and the second falling action are determined as the movement actions to be performed by the controlled character, or the moving away action, the first jumping action and the second falling action are determined as the movement actions to be performed by the controlled character.

[0071] After determining the movement actions corresponding to different scenes based on the size parameters through the above process, the terminal can control the controlled character to move in the longitudinal plane according to the determined movement actions. For example, for scene ① of ClimbToWall, the terminal can control the controlled character to perform a jumping action to cross the obstacle object from the first height of the longitudinal terrain object to the second height.

[0072] For scenario ② of ClimbToWall, the terminal can control the controlled character to perform a moving away action to jump to a first height in the air, then control the controlled character to perform a first jumping action to jump from the first height in the air to a second height in the air, and then control the controlled character to perform a first falling action to fall from the second height in the air to the lateral terrain object, wherein the first height is greater than or equal to the height corresponding to the lower lateral surface of the obstacle object and less than the height corresponding to the upper lateral surface of the obstacle object; the lateral distance in the air at the first height relative to the longitudinal terrain object is greater than the protrusion width; the second height is greater than the height corresponding to the upper lateral surface of the obstacle object. In addition, for this "passing strategy", it is also applicable to scenarios ③ and ④ of ClimbToPlatform. At the same time, it should be noted that, in the case where there is an unstandable area on the protruding obstacle or the protruding platform, the terminal can adjust the first jumping action to the second jumping action, and / or adjust the first falling action to the second falling action, and then determine the moving away action, the second jumping action and the second falling action as the moving actions to be performed by the controlled character, or determine the moving away action, the second jumping action and the first falling action as the moving actions to be performed by the controlled character, or determine the moving away action, the second jumping action and the first falling action as the moving actions to be performed by the controlled character, wherein the jumping height of the second jumping action is greater than the jumping height of the first jumping action, and the falling distance of the second falling action is greater than the falling distance of the first falling action, thereby increasing the jumping height and / or falling distance of the controlled character so that the controlled character can cross the protruding obstacle or the unstandable area on the protruding platform.

[0073] In addition, for scenario ③ of ClimbToWall, which involves terrain changes between different longitudinal plane areas, the terminal can detect the terrain data of the longitudinal plane of the longitudinal terrain object in the moving direction of the controlled character. When the terrain data indicates that there is a second longitudinal plane area in the moving direction of the controlled character, and the second longitudinal plane area protrudes relative to the first longitudinal plane area where the controlled character is currently located, the controlled character is controlled to perform a moving away action away from the current first longitudinal plane area and a jumping action to reach the second longitudinal plane area.

[0074] Optionally, the above process can be implemented based on the corresponding execution nodes and event configurations, which can be reflected in the game as playing the corresponding animations. For example, the four scene animations of ClimbToPlatform can be divided into two types: for scene ① of ClimbToPlatform, you only need to play the entire animation; for scene ② of ClimbToPlatform, you need to use a program to stretch the animation to a standing position. For scenes ③ and ④ of ClimbToPlatform, first of all, the controlled character needs to be pulled out in the first section, then pulled up to the corresponding standing point, and then connected to the loop and landed. Accordingly, after landing, the script needs to be notified to switch actions, indicating whether it can switch to landing Run (continue running in the moving direction after landing) or Idel (stay at the landing point after landing).

[0075] For ClimbBackJump, it can jump to the ground and then choose to stand on the ground or run on the ground. All of these are done by configuring the corresponding trigger event on the corresponding execution node and selecting the corresponding animation after the event is triggered.

[0076] For ClimbToWall, it is currently divided into two lengths and two groups of animations, a 0-2m obstacle jump and a 2-4m obstacle climb. Specifically, for obstacles of 0-2m length, an animation is played without displacement stretching, and the animation moves over by itself; for obstacles of 2-4m, the animation needs to be divided into three segments. For the protruding parts, the first and second segments of the animation are played, and for the recessed areas, segments 2-3 are played, first stretching the height, and then connecting the falling animation. For the 0-2m obstacle climb, you only need to mount an end jump. For the three-segment animation of the 2-4m obstacle, the previous animation finally mounts the subActionEnd event (animation jump event) to jump, and the final landing animation notifies the script to jump.

[0077] In addition, the platform type can be determined through the detection node, and assigned to the animation selection node, and then selected. There are three animations that are selected sequentially by parameter control. For protruding obstacles or protruding platforms where there are non-standing areas, you can stretch them through the stretching node to control the controlled character to move to the standing area. For example, if the detection node detects that the obstacle object is of the non-crossable type, that is, the protruding platform, it outputs "non-crossable type", then obtains the corresponding three animations, and then plays the corresponding animations in sequence; if the obstacle object is of the surmountable type, that is, the protruding obstacle, it outputs "surmountable type", then obtains the corresponding animation, and then plays the animation, so as to select the corresponding animation based on different types of obstacles, so as to present the process of the controlled character passing through the obstacle object through animation.

[0078] For scene ① in ClimbToWall, it does not need to be connected to the corresponding wall-climbing animation. It can be configured in Climb to control the controlled character to perform the corresponding jumping action.

[0079] In the above embodiment, the process of the controlled character moving on the longitudinal terrain object based on the terrain data is covered. In addition, without encountering any obstacles or recessed areas and other terrain, the terminal can respond to the movement of the controlled character on the longitudinal terrain object, and control the controlled character to perform one of the rotation actions or rolling actions during the movement. By controlling the controlled character to perform corresponding actions during the movement process, the corresponding actions are performed and corresponding action effects are added to improve the smoothness of the movement and the picture performance.

[0080] In the specific implementation, for the left, right, front and 45-degree directions of ClimbRun, the movement is the same, and the corresponding action animation can be played in a loop. You only need to add footstep synchronization points. For the 180-degree turn animation, the left and right feet are selected by input selection nodes. At the end of the animation turn, add the ClimbChangeDir event (climbing change event) to force the controlled character's climbing content ClimbDir on the vertical terrain object to be modified. For ClimbIdel, you only need to consider the left and right feet and remove gravity, and you don't need to add footstep synchronization. The stop animation needs to add footstep synchronization points, and the event StopActionEnd (stop animation event) needs to be switched to switch the stop to Idel. For some special performance actions, you only need to add ClimbSpecialEnd (climbing special action event) to jump at the end of the animation.

[0081] In one example, after the controlled character finishes playing the wall jumping animation, the controlled character enters the corresponding Idel / Run state machine (different stops) according to the movement command judgment condition received by the player. For Run, except for running forward on the longitudinal terrain object, other left, right and 45-degree runs require BlendSpace2D blending (2D blending space), and the direction selection is performed by the direction selection node. For the selection of left and right turning animations, the layer node is used to calculate the angle change between the previous and next frames and then select, climbStop (climbing stop) allows Idel to select the stop animation branch. The specific logic of Idel is mainly based on the selection of the stop animation according to the running, and then the corresponding stop animation is matched according to the stop animation. For the random rolling and rotating performance animations moving on the longitudinal terrain object, considering the direction problem, you can first make a direction range selection by mapping the direction selection node, and then map the value output by the direction selection node to obtain the corresponding ClimbBlender blending value, mix the left and right and 45-degree actions, and then get the movement direction of the controlled character on the longitudinal terrain object. For example, refer to Figure 7 , showing a schematic diagram of the movement direction fusion provided in an embodiment of the present invention, wherein the direction directly in front of F is not mixed, that is, the movement direction and the action direction do not need to be mixed; FR is the right direction, and is mixed with FR_45 of 45 degrees, that is, when the movement direction is the right direction, the movement direction is mixed with the action direction of 45 degrees in front of the right, and the corresponding performance animation when the controlled character moves to the right is obtained; FL is the left direction, and is mixed with FL_45 of 45 degrees, that is, when the movement direction is the left direction, the movement direction is mixed with the action direction of 45 degrees in front of the left, and the corresponding performance animation when the controlled character moves to the left is obtained.

[0082] In addition, when the terrain data represents that there is a transverse terrain object, such as the ground, in the moving direction of the controlled character, the controlled character is controlled to perform a falling action with uniform acceleration from the longitudinal terrain object to the transverse terrain object, and in response to the controlled character moving from the longitudinal terrain object to the transverse terrain object, when there is no obstacle object in the moving direction of the controlled character, the controlled character is controlled to perform a sprinting action.

[0083] Optionally, in an embodiment of the present invention, it can be applied to 3D games. During the game, the virtual scene displayed on the terminal graphical user interface can be switched through the corresponding virtual camera. At the same time, by controlling the focal length of the virtual camera, the field of view mapped by the virtual camera in the graphical user interface can be controlled. The larger the focal length, the smaller the field of view of the virtual scene presented in the graphical user interface, but the presented virtual scene can present more detailed game content to the player; the smaller the focal length, the larger the field of view of the virtual scene presented in the graphical user interface, and a larger range of game scenes can be presented to the player in the graphical user interface. Correspondingly, the details of the game scene are reduced.

[0084] In a specific implementation, the terminal can increase the focal length of the virtual camera to reduce the field of view of the virtual camera in response to the controlled character moving on the longitudinal terrain object in a stunt move state, so as to achieve the enlargement of the virtual scene. Therefore, when the controlled character moves on the longitudinal terrain object in a stunt move state, the terminal can automatically adjust the focal length of the virtual camera to make the field of view of the virtual scene mapped to the graphical user interface smaller, thereby achieving the enlargement of the virtual scene, so that the player can intuitively perceive the details of the longitudinal terrain object where the controlled character is located, and it is convenient for the player to control the movement direction of the controlled character according to the perceived details, thereby effectively assisting the player in making decisions on game control.

[0085] Correspondingly, the terminal can also reduce the focal length of the virtual camera to increase the field of view of the virtual camera in response to the controlled character moving on the longitudinal terrain object in a stunt move state, so as to achieve the reduction of the virtual scene. By reducing the focal length, the terminal can present a virtual scene with a larger game field of view to the player in the graphical user interface, so that the player can perceive the terrain of the virtual scene through the larger game field of view, which makes it convenient for the player to control the movement direction of the controlled character according to the perceived content of the larger field of view, effectively assisting the player in making game control decisions.

[0086] It should be noted that for the above two different scenarios, they can be processed in opposite ways. In the actual game process, the focal length of a pair of virtual cameras can be adjusted according to the needs of the players, or one of them can be preset as the default adjustment solution. During the game, the player can also manually adjust the focal length of the virtual camera according to his or her actual needs. The present invention does not limit this.

[0087] In one example, when controlling the controlled character to move from a horizontal terrain object to a vertical terrain object in a virtual scene, the virtual camera is controlled to move downward by a preset distance and face the back of the controlled character at a preset elevation angle. Figure 8, showing a schematic diagram of the virtual camera adjustment provided in an embodiment of the present invention. When the controlled character moves on the longitudinal terrain object, especially in the process of moving upward, the terminal can control the virtual camera (i.e., the lens) to gradually move downward until it reaches a 45-degree upward viewing angle of the back of the controlled character. When the controlled character moves left and right, the virtual camera will also rotate to the back of the controlled character. On the one hand, it can combine the characteristics of the game (such as the martial arts of light skills, etc.) to present a good sense of picture to the player. On the other hand, by adjusting the viewing angle, the player can better control the controlled character and reduce the player's operating burden.

[0088] In one example, the terminal may also obtain the orientation of the virtual camera in response to the movement of the controlled character on the longitudinal terrain object in a stunt move state, and if the virtual camera is facing the side of the controlled character, adjust the virtual camera to face the back of the controlled character.

[0089] In addition, when the player controls the controlled character to exit the stunt movement state, the terminal can adjust the virtual camera to a viewing angle corresponding to the basic movement state in response to the controlled character staying on the longitudinal terrain object or exiting the stunt movement state.

[0090] Optionally, in the above process, when the controlled character moves in a stunt move state, key frame silhouettes can be performed, and the jumping form can be processed, so that the controlled character has good smoothness and creates a corresponding sense of speed when moving in a stunt move state.

[0091] In an embodiment of the present invention, in a game application, for a controlled character controlled by a player, it can be configured with different basic movement states and stunt movement states. In the stunt movement state, the player can only control the movement direction of the controlled character, and for other actions of the controlled character passing through terrain objects, the game application can automatically control the controlled character according to the terrain data in the virtual scene. Specifically, during the game, the terminal can enter the stunt movement state in response to the operation on the controlled character. When the controlled character moves on the lateral terrain object of the virtual scene in the stunt movement state, in response to the existence of a longitudinal terrain object that meets the preset climbing condition in the movement direction of the controlled character, the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object, so that after entering the stunt movement state, when a longitudinal terrain object that meets the condition is detected, the controlled character is controlled to climb the lateral terrain object. The character can automatically move from the horizontal terrain object to the vertical terrain object. During the displacement process, the player is required to perform fewer operations except for controlling the moving direction, which effectively reduces the player's operating burden. At the same time, the terminal can also respond to the movement of the controlled character on the vertical surface of the vertical terrain object in a stunt moving state, obtain the terrain data of the vertical surface, and control the controlled character to move along the vertical surface of the vertical terrain object with a moving action adapted to the terrain data. In addition to controlling the displacement changes of the controlled character on different terrain objects, when moving on the corresponding terrain object, the terminal can also control the action changes of the controlled character on the corresponding terrain object based on the terrain data, further reducing the player's operating burden, simplifying the player's control method of the controlled character, allowing the player to focus more on other content of the game, and enhancing the player's sense of game immersion and other game experiences.

[0092] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0093] Reference Fig. 9 , shows a structural block diagram of a mobile control device for a controlled character provided in an embodiment of the present invention, wherein a graphical user interface is provided through an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface, and specifically may include the following modules:

[0094] A state control module 901, for entering a stunt movement state in response to an operation on the controlled character, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data;

[0095] The wall climbing module 902 is used for controlling the controlled character to move from the horizontal terrain object of the virtual scene to the vertical terrain object in response to the existence of a vertical terrain object that meets a preset climbing condition in the moving direction of the controlled character when the controlled character moves on the horizontal terrain object of the virtual scene in the stunt moving state;

[0096] The movement control module 903 is used to obtain the terrain data of the longitudinal surface in response to the movement of the controlled character on the longitudinal surface of the longitudinal terrain object in the stunt movement state, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data.

[0097] In an optional embodiment, the state control module 901 is specifically used to:

[0098] In a case where the controlled character moves in a lateral terrain object of the virtual scene in a basic movement state, in response to an operation on the controlled character, entering a stunt movement state, wherein the basic movement state is a state in which the controlled character is controlled to move according to an operation on the controlled character by a player;

[0099] The controlled character is controlled to move on the lateral terrain object of the virtual scene in the stunt movement state, and the movement speed corresponding to the stunt movement state is greater than the movement speed corresponding to the basic movement state.

[0100] In an optional embodiment, the state control module 901 is specifically used to:

[0101] When the controlled character is in the air, in response to an operation on the controlled character, the controlled character enters the stunt movement state, and the controlled character is controlled to perform a sprint action in the moving direction.

[0102] In an optional embodiment, the device further includes

[0103] The sprint control module is used to control the controlled character to move from the air to the longitudinal terrain object in response to the controlled character performing the sprint action and the presence of a longitudinal terrain object in the moving direction that meets the preset climbing condition.

[0104] In an optional embodiment, the sprint control module is specifically used to:

[0105] Controlling the controlled character to perform a sprint action and move to a first detection point corresponding to the longitudinal terrain object, wherein the first detection point is a jumping point from the air to the longitudinal terrain object;

[0106] And, controlling the controlled character to perform a jumping action to move from the first detection point to the longitudinal terrain object, and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object.

[0107] In an optional embodiment, the movement control module 903 is specifically used to:

[0108] In response to the controlled character moving longitudinally on the longitudinal surface of the longitudinal terrain object in the stunt movement state, detecting terrain data of the longitudinal surface in the moving direction of the controlled character;

[0109] When the terrain data indicates that there is a recessed area in the moving direction of the controlled character, the controlled character is controlled to perform a jumping action to reach the recessed area.

[0110] In an optional embodiment, the movement control module 903 is specifically used to:

[0111] The controlled character is controlled to perform a jumping action and a falling action to fall into the recessed area.

[0112] In an optional embodiment, the movement control module 903 is specifically used to:

[0113] When the terrain data indicates that there is a recessed area in the moving direction of the controlled character, determining a first jumping action to be performed by the controlled character;

[0114] Determining a first landing point of the controlled character in the recessed area according to the first jumping action;

[0115] If the first landing point belongs to a non-standing area, adjusting the first jumping action to a second jumping action that crosses the non-standing area;

[0116] The controlled character is controlled to perform the second jumping action to reach the recessed area.

[0117] In an optional embodiment, the movement control module 903 is specifically used to:

[0118] Detecting terrain data of a longitudinal surface of the longitudinal terrain object in the moving direction of the controlled character;

[0119] When the terrain data indicates that there is an obstacle object in the moving direction of the controlled character, determining a moving action of the controlled character to move onto or over the obstacle object based on a size parameter of the obstacle object;

[0120] The controlled character is controlled to move along the longitudinal plane based on the movement action.

[0121] In an optional embodiment, the movement control module 903 is specifically used to:

[0122] If the size parameter of the obstacle object represents that the protruding width of the obstacle object relative to the longitudinal plane is less than a first preset threshold, determining a jumping action of controlling the controlled character to jump from a first height of the longitudinal plane to a second height of the longitudinal plane to cross the obstacle object;

[0123] Wherein, the height at the first height is smaller than the height at the second height, and the obstacle object is located between the first height and the second height.

[0124] In an optional embodiment, the movement control module 903 is specifically used to:

[0125] If the size parameter of the obstacle object represents that the protruding width of the obstacle object relative to the longitudinal plane is greater than or equal to a first preset threshold, it is determined that the movement action to be performed by the controlled character includes a moving away action away from the current longitudinal plane, a first jumping action, and a first falling action onto the obstacle.

[0126] In an optional embodiment, the movement control module 903 is further configured to:

[0127] Determining a second landing point of the controlled character on the obstacle object according to the moving away action, the first jumping action and the first falling action;

[0128] If the second landing point belongs to the non-standing area, the first jumping action is adjusted, and / or the first falling action is adjusted.

[0129] In an optional embodiment, the movement control module 903 is specifically used to:

[0130] Detecting terrain data of a longitudinal surface of the longitudinal terrain object in the moving direction of the controlled character;

[0131] When the terrain data indicates that there is a second longitudinal plane area in the moving direction of the controlled character, and the second longitudinal plane area protrudes relative to the first longitudinal plane area where the controlled character is currently located, the controlled character is controlled to perform a moving away action away from the first longitudinal plane area and a jumping action to reach the second longitudinal plane area.

[0132] In an optional embodiment, the device further includes:

[0133] A movement module, configured to control the controlled character to move on the longitudinal terrain object in response to receiving a movement control instruction for the virtual object;

[0134] The stay control module is used to control the controlled character to stay on the longitudinal terrain object in response to the end of the movement control instruction.

[0135] In an optional embodiment, the stay control module is specifically used to:

[0136] The gravity of the controlled character in the virtual scene is removed to control the controlled character to stay on the longitudinal terrain object.

[0137] In an optional embodiment, it also includes:

[0138] The motion control module is used for controlling the controlled character to perform one of a rotation motion or a rolling motion during the movement in response to the movement of the controlled character on the longitudinal terrain object.

[0139] In an optional embodiment, it also includes:

[0140] a falling control module, configured to control the controlled character to execute a falling action with uniform acceleration from the longitudinal terrain object to the lateral terrain object when the terrain data indicates that there is a lateral terrain object in the moving direction of the controlled character;

[0141] The sprint control module is used to control the controlled character to perform a sprint action in response to the controlled character moving from the longitudinal terrain object to the transverse terrain object and when there is no obstacle object in the moving direction of the controlled character.

[0142] In an optional embodiment, the wall-mounting module 902 is specifically used for:

[0143] In response to the presence of a longitudinal terrain object within a preset distance threshold in the moving direction of the controlled character, and the height of the longitudinal terrain object is greater than or equal to the preset height threshold, the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object.

[0144] In an optional embodiment, the wall-mounting module 902 is specifically used for:

[0145] In response to the controlled character moving to a second detection point of the transverse terrain object, acquiring a posture tilt angle for jumping to the longitudinal terrain object, the second detection point being a jumping point from the transverse terrain object to the longitudinal terrain object;

[0146] Determine the attachment point of the controlled character from the longitudinal terrain object according to the relative distance between the second detection point and the longitudinal terrain object, and the posture tilt angle;

[0147] The controlled character is controlled to jump from the second detection point to the attachment point at the posture tilt angle.

[0148] In an optional embodiment, the movement control module 903 is specifically used to:

[0149] emitting a plurality of first rays in the moving direction of the controlled character;

[0150] emitting second rays in a preset direction at multiple positions on the first rays;

[0151] The position information of the longitudinal surface within a preset distance in the moving direction of the controlled character is detected by the second ray to obtain the terrain data of the longitudinal surface.

[0152] In an optional embodiment, the device further includes:

[0153] A focus adjustment module is used for reducing the focus of the virtual camera to increase the field of view of the virtual camera in response to the controlled character moving on the longitudinal terrain object in the stunt movement state.

[0154] In an optional embodiment, the device further includes:

[0155] The lens control module is used to control the virtual camera to move downward a preset distance and face the back of the controlled character at a preset elevation angle during the process of controlling the controlled character to move from the horizontal terrain object to the vertical terrain object of the virtual scene.

[0156] In an optional embodiment, it also includes:

[0157] a direction acquisition module, for acquiring the direction of the virtual camera in response to the movement of the controlled character on the longitudinal terrain object in the stunt movement state;

[0158] The lens adjustment module is used to adjust the virtual camera to face the back of the controlled character if the virtual camera is facing the side of the controlled character.

[0159] In an optional embodiment, the controlled character is configured with a basic movement state, and the basic movement state is a state in which the movement of the controlled character is controlled according to a player operation, and the device further includes:

[0160] The viewing angle adjustment module is used to adjust the virtual camera to a viewing angle corresponding to the basic movement state in response to the controlled character staying on the longitudinal terrain object or exiting the stunt movement state.

[0161] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0162] In addition, an embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned embodiment of the mobile control method for a controlled character are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0163] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned controlled character movement control method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0164] Fig.10 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0165] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, and a power supply 1011. Those skilled in the art will appreciate that the electronic device structure involved in the embodiments of the present invention does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0166] It should be understood that in the embodiment of the present invention, the radio frequency unit 1001 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 1010 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 1001 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 1001 can also communicate with the network and other devices through a wireless communication system.

[0167] The electronic device provides users with wireless broadband Internet access through the network module 1002, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0168] The audio output unit 1003 can convert the audio data received by the RF unit 1001 or the network module 1002 or stored in the memory 1009 into an audio signal and output it as sound. Moreover, the audio output unit 1003 can also provide audio output related to a specific function performed by the electronic device 1000 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, etc.

[0169] The input unit 1004 is used to receive audio or video signals. The input unit 1004 may include a graphics processor (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 1006. The image frame processed by the graphics processor 10041 can be stored in the memory 1009 (or other storage medium) or sent via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 1001 in the case of a telephone call mode.

[0170] The electronic device 1000 also includes at least one sensor 1005, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 10061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 10061 and / or the backlight when the electronic device 1000 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 1005 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0171] The display unit 1006 is used to display information input by the user or information provided to the user. The display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0172] The user input unit 1007 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 10071 or near the touch panel 10071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 10071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the coordinates of the contact point, and then sends it to the processor 1010, receives the command sent by the processor 1010 and executes it. In addition, the touch panel 10071 can be implemented in various types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 10071, the user input unit 1007 may also include other input devices 10072. Specifically, other input devices 10072 may include but are not limited to physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

[0173] Further, the touch panel 10071 may be covered on the display panel 10061. When the touch panel 10071 detects a touch operation on or near it, it is transmitted to the processor 1010 to determine the type of the touch event, and then the processor 1010 provides a corresponding visual output on the display panel 10061 according to the type of the touch event. It can be understood that in one embodiment, the touch panel 10071 and the display panel 10061 are used as two independent components to implement the input and output functions of the electronic device, but in some embodiments, the touch panel 10071 and the display panel 10061 can be integrated to implement the input and output functions of the electronic device, which is not limited here.

[0174] The interface unit 1008 is an interface for connecting an external device to the electronic device 1000. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 1008 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 1000 or may be used to transmit data between the electronic device 1000 and an external device.

[0175] The memory 1009 can be used to store software programs and various data. The memory 1009 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1009 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0176] The processor 1010 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 1009 and calling data stored in the memory 1009, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 1010 may include one or more processing units; preferably, the processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1010.

[0177] The electronic device 1000 may also include a power supply 1011 (such as a battery) for supplying power to each component. Preferably, the power supply 1011 may be logically connected to the processor 1010 via a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.

[0178] In addition, the electronic device 1000 includes some functional modules not shown, which will not be described in detail here.

[0179] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0180] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0181] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0182] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0183] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

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

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

[0186] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0187] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0188] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for controlling movement of a controlled character, characterized in that: Providing a graphical user interface through an electronic terminal, wherein the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface, the method comprising: In response to an operation on the controlled character, entering a stunt movement state, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data; When the controlled character moves on the lateral terrain object of the virtual scene in the stunt movement state, in response to the presence of a longitudinal terrain object that meets a preset climbing condition in the moving direction of the controlled character, controlling the controlled character to move from the lateral terrain object of the virtual scene to the longitudinal terrain object; In response to the controlled character moving on the longitudinal plane of the longitudinal terrain object in the stunt movement state, terrain data of the longitudinal plane is acquired, and the controlled character is controlled to move along the longitudinal plane of the longitudinal terrain object with a movement action adapted to the terrain data.

2. The method according to claim 1, characterized in that The step of entering a stunt movement state in response to an operation on the controlled character comprises: In a case where the controlled character moves in a lateral terrain object of the virtual scene in a basic movement state, in response to an operation on the controlled character, entering a stunt movement state, wherein the basic movement state is a state in which the controlled character is controlled to move according to an operation on the controlled character by a player; The controlled character is controlled to move on the lateral terrain object of the virtual scene in the stunt movement state, and the movement speed corresponding to the stunt movement state is greater than the movement speed corresponding to the basic movement state.

3. The method according to claim 1, characterized in that: The step of entering a stunt movement state in response to an operation on the controlled character comprises: When the controlled character is in the air, in response to an operation on the controlled character, the controlled character enters the stunt movement state, and the controlled character is controlled to perform a sprint action in the moving direction.

4. The method according to claim 3, characterized in that When the controlled character is in the air, in response to an operation on the controlled character, the controlled character enters the stunt movement state, and controls the controlled character to perform a sprint action in the moving direction. The method further includes: In response to the controlled character performing the sprint action and the presence of a longitudinal terrain object satisfying a preset climbing condition in the moving direction, the controlled character is controlled to move from the air to the longitudinal terrain object.

5. The method according to claim 3, characterized in that: The controlling the controlled character to move from the air to the longitudinal terrain object comprises: Controlling the controlled character to perform a sprint action and move to a first detection point corresponding to the longitudinal terrain object, wherein the first detection point is a jumping point from the air to the longitudinal terrain object; And, controlling the controlled character to perform a jumping action to move from the first detection point to the longitudinal terrain object, and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object.

6. The method according to claim 1, characterized in that The step of acquiring terrain data of the longitudinal surface in response to the controlled character moving on the longitudinal surface of the longitudinal terrain object in the stunt movement state, and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data comprises: In response to the controlled character moving longitudinally on the longitudinal surface of the longitudinal terrain object in the stunt movement state, detecting terrain data of the longitudinal surface in the moving direction of the controlled character; When the terrain data indicates that there is a recessed area in the moving direction of the controlled character, the controlled character is controlled to perform a jumping action to reach the recessed area.

7. The method according to claim 6, characterized in that The controlling the controlled character to perform a jumping action to reach the recessed area comprises: The controlled character is controlled to perform a jumping action and a falling action to fall into the recessed area.

8. The method according to claim 6, characterized in that When the terrain data indicates that there is a recessed area in the moving direction of the controlled character, controlling the controlled character to perform a jumping action to reach the recessed area includes: When the terrain data indicates that there is a recessed area in the moving direction of the controlled character, determining a first jumping action to be performed by the controlled character; Determining a first landing point of the controlled character in the recessed area according to the first jumping action; If the first landing point belongs to a non-standing area, adjusting the first jumping action to a second jumping action that crosses the non-standing area; The controlled character is controlled to perform the second jumping action to reach the recessed area.

9. The method according to claim 1, characterized in that: The acquiring of the terrain data of the longitudinal surface and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data comprises: Detecting terrain data of a longitudinal surface of the longitudinal terrain object in the moving direction of the controlled character; When the terrain data indicates that there is an obstacle object in the moving direction of the controlled character, determining a moving action of the controlled character to move onto or over the obstacle object based on a size parameter of the obstacle object; The controlled character is controlled to move along the longitudinal plane based on the movement action.

10. The method according to claim 9, characterized in that The step of determining the movement action of the controlled character to move onto or over the obstacle object based on the size parameter of the obstacle object comprises: If the size parameter of the obstacle object represents that the protruding width of the obstacle object relative to the longitudinal plane is less than a first preset threshold, determining a jumping action of controlling the controlled character to jump from a first height of the longitudinal plane to a second height of the longitudinal plane to cross the obstacle object; Wherein, the height at the first height is smaller than the height at the second height, and the obstacle object is located between the first height and the second height.

11. The method according to claim 9, characterized in that The step of determining the movement action of the controlled character to move onto or over the obstacle object based on the size parameter of the obstacle object comprises: If the size parameter of the obstacle object represents that the protruding width of the obstacle object relative to the longitudinal plane is greater than or equal to a first preset threshold, it is determined that the movement action to be performed by the controlled character includes a moving away action away from the current longitudinal plane, a first jumping action, and a first falling action onto the obstacle.

12. The method according to claim 11, characterized in that The method further comprises: Determining a second landing point of the controlled character on the obstacle object according to the moving away action, the first jumping action and the first falling action; If the second landing point belongs to the non-standing area, the first jumping action is adjusted, and / or the first falling action is adjusted.

13. The method according to claim 1, characterized in that The acquiring of the terrain data of the longitudinal surface and controlling the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data comprises: Detecting terrain data of a longitudinal surface of the longitudinal terrain object in the moving direction of the controlled character; When the terrain data indicates that there is a second longitudinal plane area in the moving direction of the controlled character, and the second longitudinal plane area protrudes relative to the first longitudinal plane area where the controlled character is currently located, the controlled character is controlled to perform a moving away action away from the first longitudinal plane area and a jumping action to reach the second longitudinal plane area.

14. The method according to claim 1, characterized in that After controlling the controlled character to move from the horizontal terrain object to the vertical terrain object of the virtual scene, the method further includes: In response to receiving a movement control instruction for the virtual object, controlling the controlled character to move on the longitudinal terrain object; In response to the end of the movement control instruction, the controlled character is controlled to stay on the longitudinal terrain object.

15. The method according to claim 14, characterized in that The controlling the controlled character to stay on the longitudinal terrain object comprises: The gravity of the controlled character in the virtual scene is removed to control the controlled character to stay on the longitudinal terrain object.

16. The method according to claim 14, characterized in that Also includes: In response to the movement of the controlled character on the longitudinal terrain object, the controlled character is controlled to perform one of a rotation action or a rolling action during the movement.

17. The method according to claim 1, characterized in that Also includes: When the terrain data indicates that there is a horizontal terrain object in the moving direction of the controlled character, controlling the controlled character to perform a falling action with uniform acceleration and move from the vertical terrain object to the horizontal terrain object; In response to the controlled character moving from the longitudinal terrain object to the transverse terrain object, in the case where there is no obstacle object in the moving direction of the controlled character, the controlled character is controlled to perform a sprint action.

18. The method according to claim 1, characterized in that In response to the presence of a longitudinal terrain object satisfying a preset climbing condition in the moving direction of the controlled character, controlling the controlled character to move from the transverse terrain object of the virtual scene to the longitudinal terrain object comprises: In response to the presence of a longitudinal terrain object within a preset distance threshold in the moving direction of the controlled character, and the height of the longitudinal terrain object is greater than or equal to the preset height threshold, the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object.

19. The method according to claim 18, characterized in that The controlling the controlled character to move from the horizontal terrain object of the virtual scene to the vertical terrain object comprises: In response to the controlled character moving to a second detection point of the transverse terrain object, acquiring a posture tilt angle for jumping to the longitudinal terrain object, the second detection point being a jumping point from the transverse terrain object to the longitudinal terrain object; Determining the attachment point of the controlled character from the longitudinal terrain object according to the relative distance between the second detection point and the longitudinal terrain object, and the posture tilt angle; The controlled character is controlled to jump from the second detection point to the attachment point at the posture tilt angle.

20. The method according to claim 1, characterized in that The obtaining of the terrain data of the longitudinal surface comprises: emitting a plurality of first rays in the moving direction of the controlled character; emitting second rays in a preset direction at multiple positions on the first rays; The position information of the longitudinal surface within a preset distance in the moving direction of the controlled character is detected by the second ray to obtain the terrain data of the longitudinal surface.

21. The method according to claim 1, characterized in that After the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object in response to the longitudinal terrain object satisfying the preset climbing condition existing in the moving direction of the controlled character, the method further comprises: In response to the controlled character moving on the longitudinal terrain object in the stunt movement state, the focus of the virtual camera is reduced to increase the field of view of the virtual camera.

22. The method according to claim 1, characterized in that After the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object in response to the longitudinal terrain object satisfying the preset climbing condition existing in the moving direction of the controlled character, the method further comprises: In the process of controlling the controlled character to move from the horizontal terrain object to the vertical terrain object of the virtual scene, the virtual camera is controlled to move downward by a preset distance and face the back of the controlled character at a preset elevation angle.

23. The method according to claim 1, characterized in that Also includes: In response to the controlled character moving on the longitudinal terrain object in the stunt movement state, acquiring the orientation of the virtual camera; If the virtual camera is facing the side of the controlled character, the virtual camera is adjusted to face the back of the controlled character.

24. The method according to claim 1, characterized in that The controlled character is configured with a basic movement state, and the basic movement state is a state in which the movement of the controlled character is controlled according to a player operation. The method further includes: In response to the controlled character staying on the longitudinal terrain object or exiting the stunt movement state, the virtual camera is adjusted to a viewing angle corresponding to the basic movement state.

25. A mobile control device for a controlled character, characterized in that: A graphical user interface is provided by an electronic terminal, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene by means of the graphical user interface. The device comprises: a state control module, for entering a stunt movement state in response to an operation on the controlled character, wherein the stunt movement state is a state in which the controlled character is controlled to pass through a terrain object according to terrain data; a wall climbing module, configured to control the controlled character to move from the lateral terrain object of the virtual scene to the longitudinal terrain object in response to the presence of a longitudinal terrain object satisfying a preset climbing condition in the moving direction of the controlled character when the controlled character moves on the lateral terrain object of the virtual scene in the stunt moving state; The movement control module is used to obtain terrain data of the longitudinal surface in response to the movement of the controlled character on the longitudinal surface of the longitudinal terrain object in the stunt movement state, and control the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data.

26. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 24 when executing the program stored in the memory.

27. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 24.