Method and apparatus for controlling movement of controlled character, electronic device, 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 large operation burden and weak sense of substitution of players is solved, and the game experience and efficiency are improved.
Patent Information
- Application Number
- PCT/CN2024/087893
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-05-11
- Filing Date
- 2024-04-16
- Publication Date
- 2024-11-14
AI Technical Summary
In open world games, controlled characters controlled by players need to frequently climb during vertical exploration, resulting in a large burden on the game operation and slow movement speed, which reduces the efficiency and sense of substitution of the game.
Provide a control method and device for a controlled character to display a virtual scene through the graphical user interface of the electronic terminal, enter the special movement state in response to player operations, and automatically control the controlled character to move on the vertical terrain object according to terrain data, reducing players Perform other operations other than movement direction control.
It reduces the operating burden of players, improves the movement speed and fluency of controlled characters in virtual scenes, and enhances the player's sense of game substitution and experience.
Smart Images

Figure CN2024087893_14112024_PF_FP_ABST
Abstract
Description
Controlled character movement control method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application number 202310537255.0, filed on May 11, 2023, entitled “Motion control method, device, electronic device and storage medium for a controlled character”, the entire contents of which are incorporated by reference into this disclosure. Technical Field
[0003] The present disclosure relates to the field of game technology, and in particular to a method for controlling movement of a controlled character, a device for controlling movement of a controlled character, an electronic device, and a computer-readable storage medium. Background Art
[0004] With the development of gaming technology, open-world games have become a popular genre. In open-world games, players can be presented with a vast game world, where they can freely explore the game content existing in the game world, greatly enriching the game content and improving the playability of the game. Among them, in open-world games, for the controlled character controlled by the player, during the vertical exploration process (such as climbing walls and cliffs), the controlled character can move in the vertical exploration through corresponding climbing actions. However, during this movement process, the entire process depends on the player's independent operation, which not only slows the movement speed but also easily brings a huge game operation burden to the player.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure 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.
[0007] The present disclosure discloses a method for controlling the movement of a controlled character, wherein an electronic terminal provides a graphical user interface, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface. The method includes:
[0008] 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;
[0009] When the controlled character moves on a horizontal terrain object in the virtual scene in the stunt movement state, in response to a vertical terrain object that meets a preset climbing condition existing in the moving direction of the controlled character, controlling the controlled character to move from the horizontal terrain object in the virtual scene to the vertical terrain object;
[0010] In response to the controlled character moving on the longitudinal surface of the longitudinal terrain object in the stunt movement state, terrain data of the longitudinal surface is acquired, and the controlled character is controlled to move along the longitudinal surface of the longitudinal terrain object using a movement action adapted to the terrain data.
[0011] The present disclosure also discloses a device for controlling movement of a controlled character, wherein an electronic terminal provides a graphical user interface, and the electronic terminal displays a virtual scene and a controlled character in the virtual scene through the graphical user interface. The device includes:
[0012] a state control module, configured to enter 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;
[0013] a wall climbing module, configured to, when the controlled character moves on the horizontal terrain object of the virtual scene in the stunt movement state, 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 that meets a preset climbing condition in the moving direction of the controlled character;
[0014] The movement control module is configured to obtain 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 control the controlled character to move along the longitudinal surface of the longitudinal terrain object using a movement action adapted to the terrain data.
[0015] The present disclosure also discloses an electronic device, including 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;
[0016] The memory is used to store computer programs;
[0017] The processor is configured to implement the method described in the embodiment of the present disclosure when executing the program stored in the memory.
[0018] The present disclosure also discloses a computer-readable storage medium having instructions stored thereon. When executed by one or more processors, the processors are enabled to execute the method described in the present disclosure.
[0019] The embodiments of the present disclosure include the following advantages:
[0020] In the embodiment of the present disclosure, in the game application, the controlled character controlled by the player 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, while 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 horizontal 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 horizontal 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 angle The character can automatically move from the horizontal terrain object to the vertical terrain object, reducing the player's need to perform other operations except for controlling the movement direction during the displacement process, effectively reducing 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 vertical 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 vertical terrain object with a movement 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 movement 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
[0021] FIG1 is a flowchart of a method for controlling movement of a controlled character provided by one of the embodiments of the present disclosure;
[0022] FIG2 is a schematic diagram of a mobile scenario provided by one of the embodiments of the present disclosure;
[0023] FIG3 is a schematic diagram of a mobile scenario provided by one of the embodiments of the present disclosure;
[0024] FIG4 is a schematic diagram of a capsule provided by one of the embodiments of the present disclosure;
[0025] FIG5 is a schematic diagram of a mobile scenario provided by one of the embodiments of the present disclosure;
[0026] FIG6 is a schematic diagram of another mobile scenario provided by one of the embodiments of the present disclosure;
[0027] FIG7 is a schematic diagram of movement direction fusion provided by one of the embodiments of the present disclosure;
[0028] FIG8 is a schematic diagram of virtual camera adjustment provided by one of the embodiments of the present disclosure;
[0029] FIG9 is a structural block diagram of a mobile control device for a controlled character provided by one of the embodiments of the present disclosure;
[0030] FIG10 is a block diagram of an electronic device provided by one of the embodiments of the present disclosure. DETAILED DESCRIPTION
[0031] In order to make the above-mentioned objects, features and advantages of the present disclosure more obvious and easy to understand, the present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0032] As an example, open-world games present players with a vast game world where they can freely explore the game content within it, greatly enriching the game content and improving gameplay. For these types of games, the mainstream gameplay involves exploring and collecting items within the game world. While the diverse terrain within the game world offers players a rich variety of changes during exploration and collection, it also tends to increase the operational burden on players. Specifically, players need to perform different movement control operations based on the terrain as their controlled character moves. Therefore, simplifying the player's movement control based on the terrain and enhancing the player's sense of immersion in the controlled character's movement within the game world have become key factors influencing a good gaming experience. For example, simplifying the movement control of the controlled character as the player moves to their destination will undoubtedly provide a positive gaming experience. Among them, in open-world games, which contain a variety of terrain objects, such as grasslands, plains, hills, mountains, forests, buildings, etc., the controlled character can move in the horizontal direction of the game scene (such as running on grasslands, etc.) and in the vertical direction (such as climbing the walls of buildings, etc.). However, during the vertical exploration process (such as climbing walls and cliffs, etc.), the controlled character can move in the vertical exploration through corresponding climbing actions. In this process, the entire process relies on the player's independent operation. The player not only needs to judge the timing of the operation (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 huge game operation burden to the player, but the controlled character also moves slowly, greatly reducing the player's exploration efficiency of the game world.
[0033] In this regard, in the game application of the present invention, different basic movement states and stunt movement states can be configured for the controlled character controlled by the player. 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, the terminal can enter the stunt movement state in response to the operation on the controlled character. When the controlled character moves on the horizontal terrain object of the virtual scene in the stunt movement state, in response to the existence of a vertical 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 horizontal terrain object of the virtual scene to the vertical terrain object, that is, after entering the stunt movement state, when it is detected that the condition meets the condition, the controlled character is controlled to move from the horizontal terrain object of the virtual scene to the vertical terrain object. When the controlled character moves on a longitudinal terrain object with 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 movement direction, which effectively reduces the player's operating burden. At the same time, the terminal can also respond to the controlled character's movement 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 movement 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.
[0034] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present disclosure, some technical features involved in the embodiments of the present disclosure are explained and illustrated below:
[0035] Virtual scenes use devices to output scenes that are different from the real world. With the naked eye or the assistance of devices, visual perception of virtual scenes can be formed, such as two-dimensional images output by display screens, and three-dimensional images output by stereoscopic display technologies such as stereo projection, virtual reality, and augmented reality. In addition, various possible hardware can also be used to form various perceptions that simulate the real world, such as auditory perception, tactile perception, olfactory perception, and motion perception.
[0036] 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 with a set delay. Unless otherwise specified, there is no restriction on the order of execution of the multiple operations executed.
[0037] Controlled characters are objects that interact in virtual scenes and are controlled by users or robot programs (for example, robot programs based on artificial intelligence). They can remain still, move, and perform various behaviors in the virtual scene, such as various characters in games.
[0038] Terrain objects can be objects that constitute the terrain of the game scene, including 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, stones, etc. 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 do not need to overcome gravity to move, such as hills, grasslands, plains and other horizontal or quasi-horizontal terrains; vertical terrain objects include terrain objects that need to overcome gravity with specific actions to move, 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. During this process, the terminal needs to perform complex calculations, which increases the terminal's performance overhead. 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 huge operational burden to the player.
[0039] 1 , a flowchart of a method for controlling movement of a controlled character provided in an embodiment of the present disclosure is shown. 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. Specifically, the method may include the following steps:
[0040] 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;
[0041] 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 disclosure, 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 disclosure does not impose any restrictions on this.
[0042] 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. 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 character 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. For other movement controls, the terminal can automatically control them according to the terrain data, which greatly reduces the player's operation burden. For example, when the controlled character needs to climb over a mountain, in the basic movement state, the player needs to control the movement direction, climbing action, climbing timing, etc. of the controlled character. 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 be executed by the terminal.
[0043] 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 when encountering 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.
[0044] In the game, for a controlled character in a basic movement state, the player can input operations for the controlled character in the terminal to make it enter a stunt movement state, thereby simplifying the movement control operations of the controlled character in the game and increasing the movement speed of the virtual character. Among them, the virtual scene includes different terrains, and the terrain objects in which the controlled character is located when entering the stunt movement state may be different. Therefore, when the controlled character enters the stunt movement state from different terrain objects, the controlled character can perform different actions. Specifically, when the controlled character moves in a horizontal terrain object (i.e., ground movement), in the basic movement state, it can include walking, running, sprinting, etc., corresponding to different actions and different movement speeds. When entering the stunt movement state, the controlled character can move at a speed faster than sprinting. This disclosure does not impose any restrictions on this.
[0045] Optionally, corresponding detection nodes can be configured in the game application to detect game parameters involved in the operation 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.
[0046] In a specific implementation, a state trigger node corresponding to the stunt movement state can be configured. When the player controls the controlled character from the basic movement state to the stunt 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 a "stunt movement" event, so that the controlled character can move in the virtual scene according to the movement action corresponding to the stunt movement state. In addition, during 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 controlled character's body to tilt forward at a preset angle, simulating the posture of the corresponding point of the controlled character's body during rapid movement, thereby improving the authenticity of the controlled character's movement.
[0047] 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. 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.
[0048] In another optional embodiment, when the controlled character is in the air, the terminal can respond to operations directed at the controlled character, such as the player controlling the movement state of the controlled character through preset physical keys or virtual controls (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), thereby causing the controlled character to enter the stunt movement state and control 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:
[0049] 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 horizontal terrain object in a uniformly accelerated manner, and after landing, move on the horizontal 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 respond to the process of the controlled character executing the sprint action and the existence of a longitudinal terrain object in the moving direction that meets the preset climbing conditions, and control the controlled character to move from the air to the longitudinal terrain object, so that 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.
[0050] 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). At this time, 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 movement 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.
[0051] In one example, referring to Figure 2, a schematic diagram of a moving scene provided in an embodiment of the present disclosure is shown, wherein ① shows the movement 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 longitudinal terrain object) in the moving direction and the wall meets the climbing conditions; ② shows the movement 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 longitudinal terrain object) in the sprinting direction and the wall meets the climbing conditions. It should be noted that when the controlled character sprints in the air, if no wall that meets the conditions is detected, it can move according to the stunt movement state after landing. If a wall is detected again, it can climb the wall according to process ①. Therefore, for the controlled character 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.
[0052] In the second case described above, if the controlled character is in the basic movement state, the player needs to wait for the controlled character to fall onto the horizontal terrain object, 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 jump over 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, then 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 continuously, which simplifies the player's operation, reduces the player's operating burden, and improves the player's corresponding game immersion when controlling the controlled character to move in the virtual scene.
[0053] 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 conditions in the direction of movement, 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 and detects the presence of a longitudinal terrain object in the direction of movement, and the longitudinal terrain object meets the climbing conditions, the terminal can select the first detection point from the direction of movement of the controlled character. 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, thereby achieving displacement between the air and the longitudinal terrain object.
[0054] 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 high place. In this case, the air detection node can be used to determine whether the controlled character is in the air, and after determining that the controlled character enters the stunt movement state, which animation to select, including the animation of climbing up the wall in the air and the animation of climbing up the wall from the ground after landing in the air, etc.
[0055] Furthermore, to detect terrain data, the terminal can emit multiple first rays in the direction of the controlled character's movement and, at multiple locations along the first rays, emit second rays in a preset direction. The second rays can then be used to detect the position information of terrain objects within a preset distance in the direction of the controlled character's movement. When a longitudinal terrain object that meets climbing conditions is detected within 1 meter of the controlled character's movement direction based on the ray detection method, an event of moving from the air to the longitudinal terrain object is triggered. The terminal can then 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 terrain data for the longitudinal terrain object. Specifically, the terminal can emit multiple first rays in the direction of the controlled character's movement and, at multiple locations along the first rays, emit second rays in a preset direction. The second rays can then be used to detect the position information of the longitudinal surfaces of the longitudinal terrain objects within a preset distance in the direction of the controlled character's movement, thereby obtaining terrain data corresponding to the longitudinal terrain object. The controlled character can then be controlled to move along the longitudinal terrain object based on the terrain data.
[0056] Step 102: When the controlled character moves on a horizontal terrain object in the virtual scene in the stunt movement state, in response to a vertical terrain object that meets a preset climbing condition existing in the movement direction of the controlled character, controlling the controlled character to move from the horizontal terrain object in the virtual scene to the vertical terrain object;
[0057] 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 transverse terrain object of the virtual scene in the stunt movement state, the terminal can also detect the terrain in the direction of movement of the controlled character. When it is detected that there is a longitudinal terrain object that meets the preset climbing conditions in the direction of movement, the terminal can control the controlled character to move from the transverse 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 direction of movement 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.
[0058] In a specific implementation, the terminal can control the controlled character to move from the horizontal terrain object to the vertical terrain object in the virtual scene 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 the 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 is the jumping point from the horizontal terrain object to the vertical terrain object. Then, based on the relative distance between the detection point and the vertical terrain object, and the posture tilt angle, the attachment point of the controlled character is determined from the vertical terrain object. Then, the controlled character is controlled 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 a controlled character in a stunt movement state, the player does not need to control the controlled character to move from a horizontal terrain object to a vertical terrain object. Instead, 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, leap from the second detection point to the attachment point, etc.), thereby automatically controlling the controlled character to move from a horizontal terrain object to a vertical terrain object according to terrain changes. Automatically controlling the movement of the controlled character on different terrain objects through terrain changes simplifies the player's control of the controlled character and enhances the player's sense of immersion in the movement of the controlled character in the virtual scene. The posture tilt angle can be the angle at which the controlled character moves from a horizontal terrain object to a vertical terrain object in the corresponding movement direction. For example, when the posture tilt angle is 30 degrees, the controlled character can jump from a horizontal terrain object to a vertical terrain object in a movement direction that is 30 degrees from the horizontal line.
[0059] In one example, in 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 movement directions (including left, right, and front) (hereinafter referred to as a "wall-mounted event"), and be detected through the corresponding wall-mounted node so that mapping selection can be performed based on the direction of the controlled character being equivalent to the longitudinal surface of the vertical terrain object. Specifically, for the "wall climbing event", it may involve a wall detection node, a wall climbing node, an animation connection node, a speed control node, and an event node. When the controlled character triggers the "wall climbing event" on a 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. During the animation playback process, the wall climbing animation can be divided into two segments and connected through the animation connection node. The first segment is the wall climbing segment, and the second segment is the action stretching segment. The speed control node controls the controlled character to "climb the wall" at a corresponding speed in the action stretching segment 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 and second animation segments, and the second animation segment 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. Referring to Figure 3, a schematic diagram of the movement scene provided in an embodiment of the present disclosure is shown. When a longitudinal terrain object that meets the climbing conditions is detected in the moving direction of the controlled character, by determining the corresponding detection point and attachment point, when the controlled character moves to the detection point A, the controlled character is triggered 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.
[0060] In addition, during 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. However, when the screen 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 will not be able to move from the horizontal terrain object to the vertical terrain object.
[0061] In an optional embodiment, in addition to configuring the corresponding execution nodes to detect the longitudinal terrain objects, 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 direction of movement of the controlled character. For example, if there is a corresponding spatial cube (that is, a cube corresponding to the longitudinal terrain object) within 2 meters in front of the capsule, and the height of the spatial 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 direction of movement of the controlled character. Referring to FIG4, a schematic diagram of the capsule provided in the embodiment of the present disclosure is shown. The virtual scene is divided into different spatial cubes. FIG4 shows the game scene in cross-section. Each square can represent a spatial 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. For ① in FIG4 , which represents that the controlled character is located on the longitudinal terrain object, and the thickness of the longitudinal terrain object is 1 meter; for ② in Figure 4, it represents that the controlled character is located on the longitudinal terrain object, and the farthest distance between the longitudinal terrain object and the controlled character is 3 meters, and the closest distance is 2 meters; for ③ in Figure 4, it represents that the controlled character is located on the longitudinal terrain object, and the farthest distance between the longitudinal terrain object and the controlled character is 2 meters, and the closest distance is 1 meter; for ④ in Figure 4, it only represents the controlled character. As the terrain object changes, the positional relationship between the controlled character and the virtual scene may change accordingly. The embodiments of the present disclosure 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 on the wall can be judged to obtain the information of each grid up, down, left and right along the wall. Its animation performance can spell out the movement trajectory and status 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. Its connectivity in each direction can be configured to 6 connected directions, etc., and its distance from the obstacle can be configured to 4m. As an example, when performing space estimation, it can detect forward and upward, and its detection distance can be 10m. It can be scrolled and refreshed, and calculated in real time through rays. The capsule height can be configured to be 2m, the upward detection distance is 2.4m, and the left and right detection distances are 1.5m.
[0062] After the controlled character moves to the vertical terrain object, the terminal can respond to receiving a movement control instruction for the virtual object and control the controlled character to move on the vertical 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 remain on the vertical terrain object. In the stunt move state, the terminal can remove the gravity of the controlled character in the virtual scene to control the controlled character to remain on the vertical terrain object, so that the controlled character can remain on the vertical terrain object in a manner similar to "adsorption".
[0063] Step 103: In response to the controlled character moving on the longitudinal surface of the longitudinal terrain object in the stunt movement state, terrain data of the longitudinal surface is acquired, and the controlled character is controlled to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data.
[0064] When the controlled character moves on a 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 through ray detection, 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. 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. During the displacement process, the player is relieved of the need to perform other operations other than controlling the movement 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 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 movement 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 enables the movement actions of the controlled character to change in a rich and colorful way 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.
[0065] Optionally, the movement of the controlled character on the longitudinal terrain object may include wall movement (Climb), climbing up the wall (ClimbToWall), wall descent (ClimbBackJump), and platform access (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 rolling 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 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 inward-concave platform of the longitudinal terrain object and the outward-convex platform. That is, the upper platform can refer to the controlled character jumping to the concave area, or jumping onto the obstacle object.
[0066] For example, referring to FIG5 , a schematic diagram of a movement scene provided in an embodiment of the present disclosure is shown. (The movement scene is hereinafter referred to as “ClimbToPlatform”) For a scene in which a controlled character jumps from the longitudinal surface of a longitudinal terrain object to the platform (lateral surface) of the longitudinal terrain object, the following steps are performed: 1. Perform a jumping action to jump directly from the longitudinal surface to the lateral surface; 2. There is an area on the lateral surface where it is not possible to stand, and when jumping, the character jumps from the longitudinal surface and crosses the area where it is not possible to stand to reach the area on the lateral surface where it is possible to stand; 3. 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. ④ The protruding platform has an area where you cannot stand. When jumping, jump from the longitudinal surface to cross the protruding platform to reach the area where you can stand on the transverse surface. In addition, the arcs in ①, ②, ③ and ④ represent the movement trajectory of the controlled character, the dotted line represents the area on the terrain object where you cannot stand, and the dots represent multiple actions. Specifically, ③ contains two dots, which means that the controlled character needs to perform three actions in the process of moving from the longitudinal surface to the transverse surface, such as the first jump action, the second jump action and the falling action, etc. The same applies to ④, which will not be repeated here. In addition, referring to Figure 6, a schematic diagram of another moving scene provided in an embodiment of the present disclosure is shown (the moving scene is hereinafter referred to as "ClimbToWall") for a scene in which a controlled character moves on the longitudinal surface of a longitudinal terrain object, including: ① a relatively small protruding obstacle on the longitudinal surface, and directly executing a first jumping action to cross the protruding obstacle; ② a relatively large protruding obstacle on the longitudinal surface, and 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, and 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, and 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., please refer to the above description and will not be repeated here.
[0067] Optionally, for the above process, the different scenarios involved in ClimbToWall and ClimbToPlatform can be divided into "protrusions" (i.e., obstacle objects) and "recesses" for the terrain objects. "Protrusions" can include the movement scenarios corresponding to ③ and ④ of ClimbToPlatform and the movement scenarios corresponding to ①, ②, and ③ of ClimbToWall, while "recesses" can include the movement scenarios corresponding to ① and ② of ClimbToPlatform and the movement scenarios 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 movement actions adapted to the terrain data.
[0068] In an optional embodiment, for a "recessed" scenario, the terminal may detect terrain data on the longitudinal surface of the controlled character's moving direction in response to the controlled character's longitudinal movement on the longitudinal surface of the longitudinal terrain object in a stunt moving 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.
[0069] 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 the ① 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 the ④ scene of ClimbToWall, the terminal can control the controlled character to perform an upward 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.
[0070] 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 direction of movement 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 based on 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, when there is a non-standable area, it is necessary to adjust the first jumping action, which originally has 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 in the recessed area. In addition, for the ④ scene of ClimbToWall, when there is a non-standable area, its processing process can refer to the ② scene of ClimbToPlatform and will not be repeated here.
[0071] In another optional embodiment, for a "protruding" scenario, the terminal may detect the terrain data of the longitudinal surface of the longitudinal terrain object in the direction of movement of the controlled character. When the terrain data indicates that there is an obstacle object in the direction of movement of the controlled character, the terminal may determine the movement action of the controlled character to move onto or over the obstacle object based on the size parameters of the obstacle object, and then control the controlled character to move along the longitudinal surface based on the movement action. The obstacle object may include the protruding platform in the aforementioned embodiment, and the size parameter may be a protruding width representing 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" may be adopted for obstacle objects with different protruding widths, including passing through through different movement actions, etc. This disclosure does not impose any restrictions on this.
[0072] In a specific implementation, when there is no non-standing area on the obstacle object, the terminal can determine that the controlled character needs to perform at least one movement 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 movement 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 the jumping action of controlling 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 is determined. 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 the movement action to be performed by the controlled character is determined to include 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. For obstacle objects with a protruding width of less than 2 meters, they can be determined as simple obstacle objects and can be passed through with a simple jump action. For obstacle objects with a protruding width greater than 2 meters, they can be determined as complex obstacle objects and require multiple movement actions to cooperate in order to pass through.
[0073] In the case where there is a non-standing 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-standing area, the first jumping action is adjusted, and / or the first falling action is adjusted, and the standing area on the obstacle object is determined 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 can be 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 can be determined as the movement actions to be performed by the controlled character.
[0074] 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 the ① scene of ClimbToWall, the terminal can control the controlled character to perform a jumping action to cross the obstacle object and reach the second height from the first height of the longitudinal terrain object.
[0075] 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 onto 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, this "passing strategy" 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 a protruding obstacle or a protruding platform, the terminal can adjust the first jumping action to a second jumping action, and / or adjust the first falling action to a second falling action, and then determine the moving away action, the second jumping action and the second falling action as the movement 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 movement actions to be performed by the controlled character, or determine the moving away action, the first jumping action and the second falling action as the movement 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.
[0076] In addition, for the ③ 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 is protruding 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.
[0077] 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, it is only necessary to play the entire animation; for scene ② of ClimbToPlatform, the animation needs to be stretched to a standing position using a program. For scenes ③ and ④ of ClimbToPlatform, first 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).
[0078] For ClimbBackJump, after jumping to the ground, you can choose to stand on the ground or run on the ground. All you need to do is configure the corresponding trigger event on the corresponding execution node and select the corresponding animation after the event is triggered.
[0079] For ClimbToWall, there are currently two lengths and two sets of animations: a small jump for obstacles of 0-2m, and a climb for obstacles of 2-4m. Specifically, for obstacles of 0-2m length, a single animation is played, without any displacement stretching, and the animation moves over on its own; 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, the second and third segments are played, first stretching the height, and then connecting the falling animation. For the climb for obstacles of 0-2m, only one end jump needs to be mounted. For the three-segment animation of the obstacle of 2-4m, the subActionEnd event (animation jump event) is mounted at the end of the previous animation to jump, and the final landing animation notifies the script to jump.
[0080] 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 no standing areas, they can be stretched 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, a 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, a protruding obstacle, it outputs "surmountable type", then obtains the corresponding animation, and then plays the animation, thereby selecting the corresponding animation based on different types of obstacles to present the process of the controlled character passing through the obstacle object through animation.
[0081] 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.
[0082] 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, when no obstacles or recessed areas are encountered, 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.
[0083] In the specific implementation, the left, right, forward, and 45-degree movements of ClimbRun are all the same, and the corresponding action animations can all be looped. Simply add a footstep synchronization point. For the 180-degree turn animation, since the left and right feet are selected via the input selection node, add a ClimbChangeDir event (climb change event) at the end of the turn animation to forcefully modify the controlled character's climbing content ClimbDir on the vertical terrain object. For ClimbIdel, only the left and right feet need to be considered and gravity removed, without adding footstep synchronization. Stop animations require footstep synchronization points and a StopActionEnd event (stop animation event) to switch the stop to Idel. For some special performances, simply add a ClimbSpecialEnd (climb special action event) at the end of the animation to jump.
[0084] In one example, after the controlled character completes a wall-jump animation, it enters the corresponding Idel / Run state machine (with different stops) based on the movement command received by the controlled character from the player. For Run, except for running forward on vertical terrain objects, other left, right, and 45-degree runs require BlendSpace2D blending (2D blending space), with the orientation selection node used to select the orientation. For left and right turn animations, a layer node is used to calculate the angle change between the previous and next frames and then select it. ClimbStop allows the near Idel to select the stop animation branch. Idel's specific logic primarily selects a stop animation based on running, and then matches the stop animation with a corresponding stop animation. For the random rolling and rotating animations on longitudinal terrain objects, considering the orientation, a direction range can be selected by mapping the orientation selection node. Then, the output value of the orientation selection node is mapped to obtain the corresponding ClimbBlender blend value, which blends the left, right, and 45-degree motions to obtain the direction of movement of the controlled character on the longitudinal terrain object. For example, FIG7 shows a schematic diagram of movement direction fusion provided in an embodiment of the present disclosure, where F represents the direction directly in front and is not blended, meaning the movement direction and motion direction do not need to be blended. FR represents the right direction and is blended with FR_45 at 45 degrees. That is, when the movement direction is right, the movement direction is blended with the motion direction 45 degrees to the right front to obtain the corresponding animation for the controlled character moving to the right. FL represents the left direction and is blended with FL_45 at 45 degrees. That is, when the movement direction is left, the movement direction is blended with the motion direction 45 degrees to the left front to obtain the corresponding animation for the controlled character moving to the left.
[0085] In addition, when the terrain data indicates that there is a horizontal 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 horizontal terrain object, and in response to the controlled character moving from the longitudinal terrain object to the horizontal terrain object, if there is no obstacle object in the moving direction of the controlled character, the controlled character is controlled to perform a sprinting action.
[0086] Optionally, the disclosed embodiment 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. Accordingly, the details of the game scene are reduced.
[0087] 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 magnification 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 so that the field of view of the virtual scene mapped to the graphical user interface is smaller, thereby achieving magnification 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 facilitate the player to control the movement direction of the controlled character according to the perceived details, effectively assisting the player in making game control decisions.
[0088] Correspondingly, the terminal can also respond to the controlled character moving on the longitudinal terrain object in a stunt move state, reduce the focal length of the virtual camera to increase the field of view of the virtual camera, and realize 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, making 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, and effectively assisting the player in making game control decisions.
[0089] It should be noted that for the above two different scenarios, they can be handled in opposite ways. During the actual game process, a pair of virtual camera focal lengths can be selected for adjustment according to the player's needs, or one of them can be preset as the default adjustment solution. During the game process, the player can also manually adjust the focal length of the virtual camera according to his or her actual needs. This disclosure does not impose any restrictions on this.
[0090] In one example, 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. In a specific implementation, referring to FIG8 , a schematic diagram of the virtual camera adjustment provided in an embodiment of the present disclosure is shown. When the controlled character moves on the vertical terrain object, especially when 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' 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, reducing the player's operating burden.
[0091] In one example, the terminal can also obtain the direction 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.
[0092] 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 vertical terrain object or exiting the stunt movement state.
[0093] Optionally, in the above process, when the controlled character moves in a stunt moving state, key frame silhouettes can be performed, and the jumping form can be processed, so that the controlled character has good smoothness in the process of moving in a stunt moving state, creating a corresponding sense of speed.
[0094] In the embodiment of the present disclosure, in the game application, the controlled character controlled by the player 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, while 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 horizontal 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 horizontal 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 angle The character can automatically move from the horizontal terrain object to the vertical terrain object, reducing the player's need to perform other operations except for controlling the movement direction during the displacement process, effectively reducing 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 vertical 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 vertical terrain object with a movement 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 movement 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.
[0095] It should be noted that for the method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present disclosure are not limited by the order of the actions described, because according to the embodiments of the present disclosure, 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 disclosure.
[0096] 9 shows a block diagram of a device for controlling movement of a controlled character provided in an embodiment of the present disclosure. The device 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. Specifically, the device may include the following modules:
[0097] A state control module 901 is configured to enter 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;
[0098] a wall climbing module 902 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 presence 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 movement state;
[0099] The movement control module 903 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.
[0100] In an optional embodiment, the state control module 901 is specifically configured to:
[0101] When the controlled character moves on the 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 moves according to the operation of the player on the controlled character;
[0102] The controlled character is controlled to move on the lateral terrain object of the virtual scene in the stunt movement state, wherein a movement speed corresponding to the stunt movement state is greater than a movement speed corresponding to the basic movement state.
[0103] In an optional embodiment, the state control module 901 is specifically configured to:
[0104] 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 is controlled to perform a sprint action in the movement direction.
[0105] In an optional embodiment, the device further includes:
[0106] The sprint control module is configured 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 a preset climbing condition.
[0107] In an optional embodiment, the sprint control module is specifically configured to:
[0108] 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;
[0109] Furthermore, the controlled character is controlled to perform a jumping action to move from the first detection point to the longitudinal terrain object, and the controlled character is controlled to move along the longitudinal surface of the longitudinal terrain object.
[0110] In an optional embodiment, the movement control module 903 is specifically configured to:
[0111] In response to the controlled character moving in the longitudinal direction of 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;
[0112] 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.
[0113] In an optional embodiment, the movement control module 903 is specifically configured to:
[0114] The controlled character is controlled to perform a jumping action and a falling action to fall into the recessed area.
[0115] In an optional embodiment, the movement control module 903 is specifically configured to:
[0116] 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;
[0117] determining a first landing point of the controlled character in the recessed area according to the first jumping action;
[0118] If the first landing point is in an area where standing is prohibited, adjusting the first jumping action to a second jumping action that crosses the area where standing is prohibited;
[0119] The controlled character is controlled to perform the second jumping action to reach the recessed area.
[0120] In an optional embodiment, the movement control module 903 is specifically configured to:
[0121] detecting terrain data of a longitudinal surface of the longitudinal terrain object in the moving direction of the controlled character;
[0122] When the terrain data indicates that there is an obstacle object in the moving direction of the controlled character, determining a movement action of the controlled character to move onto or over the obstacle object based on a size parameter of the obstacle object;
[0123] The controlled character is controlled to move along the longitudinal plane based on the movement action.
[0124] In an optional embodiment, the movement control module 903 is specifically configured to:
[0125] If the size parameter of the obstacle object indicates that the protrusion width of the obstacle object relative to the longitudinal plane is less than a first preset threshold, determining to control 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.
[0126] 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.
[0127] In an optional embodiment, the movement control module 903 is specifically configured to:
[0128] 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.
[0129] In an optional embodiment, the movement control module 903 is further configured to:
[0130] 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;
[0131] If the second landing point belongs to an area where standing is not allowed, the first jumping action is adjusted, and / or the first falling action is adjusted.
[0132] In an optional embodiment, the movement control module 903 is specifically configured to:
[0133] detecting terrain data of a longitudinal surface of the longitudinal terrain object in the moving direction of the controlled character;
[0134] 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.
[0135] In an optional embodiment, the device further includes:
[0136] 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;
[0137] 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.
[0138] In an optional embodiment, the dwell control module is specifically configured to:
[0139] The gravity of the controlled character in the virtual scene is removed to control the controlled character to stay on the longitudinal terrain object.
[0140] In an optional embodiment, it further includes:
[0141] The motion control module is configured to control the controlled character to perform one of a rotation motion and a roll motion during the movement in response to the movement of the controlled character on the longitudinal terrain object.
[0142] In an optional embodiment, it further includes:
[0143] 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;
[0144] The sprint control module is configured 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 no obstacle object exists in the moving direction of the controlled character.
[0145] In an optional embodiment, the wall-mounting module 902 is specifically configured to:
[0146] In response to a longitudinal terrain object existing within a preset distance threshold in the moving direction of the controlled character and a height of the longitudinal terrain object being greater than or equal to a preset height threshold, the controlled character is controlled to move from the transverse terrain object of the virtual scene to the longitudinal terrain object.
[0147] In an optional embodiment, the wall-mounting module 902 is specifically configured to:
[0148] acquiring a posture tilt angle for jumping to the longitudinal terrain object in response to the controlled character moving to a second detection point of the transverse terrain object, the second detection point being a jumping point from the transverse terrain object to the longitudinal terrain object;
[0149] determining an attachment point of the controlled character on the longitudinal terrain object based on a relative distance between the second detection point and the longitudinal terrain object, and the posture tilt angle;
[0150] The controlled character is controlled to jump from the second detection point to the attachment point at the posture tilt angle.
[0151] In an optional embodiment, the movement control module 903 is specifically configured to:
[0152] emitting a plurality of first rays in the moving direction of the controlled character;
[0153] emitting second rays in a preset direction at multiple positions on the first rays;
[0154] 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.
[0155] In an optional embodiment, the device further includes:
[0156] A focus adjustment module is configured to reduce 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.
[0157] In an optional embodiment, the device further includes:
[0158] 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 when controlling the controlled character to move from the horizontal terrain object to the vertical terrain object in the virtual scene.
[0159] In an optional embodiment, it further includes:
[0160] a direction acquisition module, configured to acquire the direction of the virtual camera in response to the controlled character moving on the longitudinal terrain object in the stunt movement state;
[0161] 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.
[0162] 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. The device further includes:
[0163] The perspective adjustment module is configured to adjust the virtual camera to a perspective corresponding to the basic movement state in response to the controlled character staying on the longitudinal terrain object or exiting the stunt movement state.
[0164] 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.
[0165] In addition, an embodiment of the present disclosure also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and runnable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned embodiment of the movement control method of the controlled character are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0166] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the various processes of the above-mentioned embodiment of the method for controlling the movement of a controlled character are implemented, and the same technical effects are achieved. To avoid repetition, the details are not described 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.
[0167] FIG10 is a schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present disclosure.
[0168] The electronic device 1000 includes but is not limited to components such as 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 disclosure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown, or combine certain components, or arrange the components differently. In the embodiments of the present disclosure, 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.
[0169] It should be understood that in the disclosed embodiments, the RF unit 1001 can be used to receive and transmit signals during information transmission or calls. Specifically, it receives downlink data from the base station and transmits it to the processor 1010 for processing; in addition, it transmits uplink data to the base station. Typically, the RF unit 1001 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like. Furthermore, the RF unit 1001 can communicate with the network and other devices via a wireless communication system.
[0170] 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.
[0171] The audio output unit 1003 can convert 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. In addition, 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.
[0172] The input unit 1004 is used to receive audio or video signals. The input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The graphics processor 10041 processes image data of still pictures or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The processed image frames can be displayed on the display unit 1006. The image frames processed by the graphics processor 10041 can be stored in the memory 1009 (or other storage medium) or transmitted via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and process such sound into audio data. In the case of telephone call mode, the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 1001 for output.
[0173] 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 all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It 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.
[0174] 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.
[0175] The user input unit 1007 can be used to receive input digital or character information, and to generate key signal input related to the 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 user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel 10071). 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 direction, detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into contact point coordinates, which are then sent to the processor 1010, which receives the command sent by the processor 1010 and executes it. In addition, the touch panel 10071 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 may also include other input devices 10072. Specifically, the other input devices 10072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be described in detail here.
[0176] Furthermore, the touch panel 10071 may be overlaid on the display panel 10061. When the touch panel 10071 detects a touch operation on or near the touch panel 10071, the touch operation is transmitted to the processor 1010 to determine the type of touch event. The processor 1010 then provides a corresponding visual output on the display panel 10061 based on the type of touch event. It will 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. However, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated to implement the input and output functions of the electronic device. The specific details are not limited here.
[0177] The interface unit 1008 is an interface for connecting external devices to the electronic device 1000. For example, the external devices 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 the 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 the external device.
[0178] Memory 1009 can be used to store software programs and various data. Memory 1009 may primarily include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function or an image playback function); the data storage area may store data generated based on the use of the mobile phone (such as audio data, a phone book, etc.). Furthermore, memory 1009 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0179] The processor 1010 is the control center of the electronic device. It connects the various components of the electronic device using various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 1009 and accessing data stored in the memory 1009, it performs various functions of the electronic device and processes data, thereby monitoring the entire electronic device. 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 primarily processes the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 1010.
[0180] The processor 1010 may implement the following operations in the above-mentioned method for controlling movement of a controlled character:
[0181] 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 the terrain data;
[0182] When the controlled character is moving on a horizontal terrain object in the virtual scene in a stunt movement state, in response to a vertical terrain object that meets a preset climbing condition existing in the moving direction of the controlled character, controlling the controlled character to move from the horizontal terrain object to the vertical terrain object in the virtual scene;
[0183] In response to the controlled character moving on the longitudinal surface of the longitudinal terrain object in a stunt movement state, 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 a movement action adapted to the terrain data.
[0184] In one example, the above-mentioned response to the operation on the controlled character to enter the stunt movement state can be achieved by the processor 1010 through the following steps: when the controlled character moves in the horizontal terrain object of the virtual scene in the basic movement state, the processor 1010 enters the stunt movement state in response to the operation on the controlled character, and 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; the controlled character is controlled to move on the horizontal 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.
[0185] In one example, the above-mentioned response to the operation on the controlled character to enter the stunt movement state can be achieved by the processor 1010 through the following steps: when the controlled character is in the air, the response to the operation on the controlled character to enter the stunt movement state, and control the controlled character to perform a sprint action in the moving direction.
[0186] In one example, when the controlled character is in the air, in response to an operation on the controlled character, it enters a stunt movement state, and after controlling the controlled character to perform a sprint action in the moving direction, the processor 1010 may also perform the following steps: in response to the process of the controlled character performing the sprint action and the existence of a longitudinal terrain object that meets the preset climbing conditions in the moving direction, control the controlled character to move from the air to the longitudinal terrain object.
[0187] In one example, the above-mentioned control of the controlled character to move from the air to the longitudinal terrain object can be achieved by the processor 1010 through the following steps: controlling the controlled character to perform a sprint action to move to a first detection point corresponding to the longitudinal terrain object, the first detection point being a jumping point for moving 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.
[0188] In one example, in response to the controlled character moving in a stunt moving state on the longitudinal surface of the longitudinal terrain object, 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 a moving action adapted to the terrain data. The processor 1010 can implement this through the following steps: in response to the controlled character moving in a stunt moving state on the longitudinal surface of the longitudinal terrain object, the terrain data of the longitudinal surface in the moving direction of the controlled character is detected; 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.
[0189] In one example, the above-mentioned control of the controlled character to perform a jumping action to reach the recessed area can be achieved by the processor 1010 through the following steps: controlling the controlled character to perform an upward jumping action and a downward falling action to fall into the recessed area.
[0190] In one example, 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. The processor 1010 can achieve this through the following steps: when the terrain data indicates that there is a recessed area in the moving direction of the controlled character, a first jumping action to be performed by the controlled character is determined; based on the first jumping action, a first landing point of the controlled character in the recessed area is determined; if the first landing point belongs to an unstandable area, the first jumping action is adjusted to a second jumping action that crosses the unstandable area; and the controlled character is controlled to perform the second jumping action to reach the recessed area.
[0191] In one example, the above-mentioned acquisition of terrain data of the longitudinal surface and the control of the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data can be achieved by the processor 1010 through the following steps: detecting 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, determining the movement action of the controlled character to move onto or over the obstacle object based on the size parameters of the obstacle object; and controlling the controlled character to move along the longitudinal surface based on the movement action.
[0192] In one example, the above-mentioned determination of the movement action of the controlled character to move onto or over the obstacle object based on the size parameters of the obstacle object can be achieved by the processor 1010 through the following steps: if the size parameters of the obstacle object represent 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 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 less than the height at the second height, and the obstacle object is located between the first height and the second height.
[0193] In one example, the above-mentioned movement action of the controlled character to move onto or over the obstacle object based on the size parameters of the obstacle object can be determined by the processor 1010 through the following steps: if the size parameters of the obstacle object represent that the protruding width of the obstacle object relative to the longitudinal plane is greater than or equal to a first preset threshold, then the movement action to be performed by the controlled character is determined to include a moving away from the current longitudinal plane, a first jumping action, and a first falling action onto the obstacle.
[0194] In one example, the processor 1010 may also perform the following steps: determining 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 an unstandable area, adjusting the first jumping action, and / or adjusting the first falling action.
[0195] In one example, the above-mentioned acquisition of the terrain data of the longitudinal surface and the control of the controlled character to move along the longitudinal surface of the longitudinal terrain object with a movement action adapted to the terrain data can be achieved by the processor 1010 through the following steps: detecting 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 a second longitudinal surface area in the moving direction of the controlled character, and the second longitudinal surface area is protruding relative to the first longitudinal surface 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 surface area and a jumping action to reach the second longitudinal surface area.
[0196] In one example, after controlling the controlled character to move from a horizontal terrain object to a vertical terrain object in the virtual scene, the processor 1010 may further perform the following steps: in response to receiving a movement control instruction for the virtual object, controlling the controlled character to move on the vertical terrain object; in response to the end of the movement control instruction, controlling the controlled character to stay on the vertical terrain object.
[0197] In one example, the above-mentioned controlling the controlled character to stay on the longitudinal terrain object can be achieved by the processor 1010 through the following steps: removing the gravity of the controlled character in the virtual scene to control the controlled character to stay on the longitudinal terrain object.
[0198] In one example, the processor 1010 may further perform the following steps: in response to the controlled character moving on the longitudinal terrain object, controlling the controlled character to perform one of a rotation action and a rolling action during the movement.
[0199] In one example, the processor 1010 may further perform the following steps: when the terrain data indicates that there is a horizontal terrain object 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 horizontal terrain object; in response to the controlled character moving from the longitudinal terrain object to the horizontal terrain object, if there is no obstacle object in the moving direction of the controlled character, the controlled character is controlled to perform a sprinting action.
[0200] In one example, in response to the presence of a longitudinal terrain object that meets a preset climbing condition in the moving 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. The processor 1010 may implement this through the following steps: 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 a preset height threshold, the controlled character is controlled to move from the lateral terrain object of the virtual scene to the longitudinal terrain object.
[0201] In one example, the above-mentioned control of the controlled character to move from a horizontal terrain object to a vertical terrain object in the virtual scene can be achieved by the processor 1010 through the following steps: in response to the controlled character moving to a second detection point of the horizontal terrain object, obtaining a posture tilt angle for jumping to the vertical terrain object, the second detection point being a jumping point for moving from the horizontal terrain object to the vertical terrain object; determining the attachment point of the controlled character on the vertical terrain object based on the relative distance between the second detection point and the vertical terrain object, and the posture tilt angle; and controlling the controlled character to jump from the second detection point to the attachment point at the posture tilt angle.
[0202] In one example, the processor 1010 can obtain the terrain data of the longitudinal surface by the following steps: emitting multiple first rays in the moving direction of the controlled character; emitting second rays in a preset direction at multiple positions on the first rays; and detecting the position information of the longitudinal surface within a preset distance in the moving direction of the controlled character through the second rays to obtain the terrain data of the longitudinal surface.
[0203] In one example, in response to the presence of a longitudinal terrain object that meets preset climbing conditions in the moving direction of the controlled character, after controlling the controlled character to move from the transverse terrain object to the longitudinal terrain object of the virtual scene, the processor 1010 may further perform the following steps: in response to the controlled character moving on the longitudinal terrain object in a stunt move state, reducing the focal length of the virtual camera to increase the field of view of the virtual camera.
[0204] In one example, in response to the presence of a longitudinal terrain object that meets preset climbing conditions in the moving direction of the controlled character, after controlling the controlled character to move from the transverse terrain object to the longitudinal terrain object of the virtual scene, the processor 1010 may further perform the following steps: in the process of controlling the controlled character to move from the transverse terrain object to the longitudinal terrain object of the virtual scene, controlling the virtual camera to move downward by a preset distance and face the back of the controlled character at a preset elevation angle.
[0205] In one example, the processor 1010 may further perform the following steps: in response to the movement of the controlled character on the longitudinal terrain object in a stunt move state, obtaining the orientation of the virtual camera; if the orientation of the virtual camera is facing the side of the controlled character, adjusting the virtual camera to face the back of the controlled character.
[0206] In one example, the controlled character is configured with a basic movement state, which is a state for controlling the movement of the controlled character according to the player's operation. The processor 1010 can also perform the following steps: in response to the controlled character staying on a longitudinal terrain object or exiting a stunt movement state, adjusting the virtual camera to a perspective corresponding to the basic movement state.
[0207] In the game application disclosed in the present invention, the controlled character controlled by the player 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 operations on the controlled character. When the controlled character moves on the horizontal terrain object of the virtual scene in the stunt movement state, in response to the existence of a vertical 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 horizontal terrain object of the virtual scene to the vertical terrain object, so that after entering the stunt movement state, when a vertical terrain object that meets the condition is detected, the controlled character can By automatically moving from a horizontal terrain object to a vertical terrain object, the player is reduced to perform other operations except for controlling the movement direction during the displacement process, 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 vertical terrain object in a stunt movement state, obtain the terrain data of the longitudinal surface, and control the controlled character to move along the longitudinal surface of the vertical terrain object with a movement 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 movement 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.
[0208] The electronic device 1000 may also include a power supply 1011 (such as a battery) to supply power to each component. Preferably, the power supply 1011 may be logically connected to the processor 1010 through a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0209] In addition, the electronic device 1000 includes some functional modules not shown, which will not be described here.
[0210] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0211] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the relevant technology, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0212] The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present disclosure, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present disclosure and the claims, all of which are protected by the present disclosure.
[0213] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present disclosure 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 this disclosure.
[0214] Those skilled in the art will 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.
[0215] In the embodiments provided in the present disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, 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.
[0216] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0217] In addition, each functional unit in each embodiment of the present disclosure 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.
[0218] 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 disclosure, or the part that contributes to the relevant technology, 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 and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0219] The above description is merely a specific embodiment of the present disclosure, but the scope of protection of the present disclosure is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this disclosure should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure should be based on the scope of protection of the claims.
Claims
1. A method for controlling 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 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: After controlling the controlled character to move from the horizontal terrain object of the virtual scene to the vertical terrain object, 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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 the second detection point of the lateral terrain object, obtaining a method for jumping to the longitudinal terrain object The second detection point is a jumping point moving from the horizontal terrain object to the vertical 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, 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 device comprising: a state control module configured to execute, 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; a wall climbing module, configured to execute, when the controlled character moves on the lateral terrain object of the virtual scene in the stunt moving state, in response to the existence of a longitudinal terrain object satisfying a preset climbing condition in the moving direction of the controlled character, control the controlled character to move from the lateral terrain object of the virtual scene to the longitudinal terrain object; The movement control module is configured to execute, in response to the controlled character moving on the longitudinal surface of the longitudinal terrain object in the stunt movement state, acquiring 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.
26. 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; 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.
Citation Information
Patent Citations
Climbing and jumping method and device, computer equipment and computer readable storage medium
CN111729311A
Virtual character control method and device, storage medium and electronic equipment
CN113713372A
Information processing method and device, electronic equipment and storage medium
CN114011062A
Virtual character control method and device, storage medium and computer equipment
CN115193049A
Medium, game machine, game system and game processing method
US20150099581A1
