Method and apparatus for controlling movement of virtual role, electronic device, and storage medium

By controlling virtual characters to respond to folding operations and movement commands on foldable screen terminals, the problem of low utilization of foldable screen functions is solved, and a more efficient user interaction and gaming experience is achieved.

CN116059638BActive Publication Date: 2026-05-01NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2023-01-30
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Foldable screens have low functionality utilization and cannot achieve effective interaction with users.

Method used

By responding to movement commands and folding operations for virtual characters on a foldable screen terminal with at least two sub-screens, the system controls the movement of virtual characters in the game scene, including techniques such as acquiring folding parameters, determining position using a mirror reference, and avoiding virtual obstacles.

Benefits of technology

It improves the functionality of foldable screens, enables interaction with users, and enhances the movement efficiency of virtual characters and the gaming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116059638B_ABST
    Figure CN116059638B_ABST
Patent Text Reader

Abstract

The application provides a virtual role movement control method and device, electronic equipment and storage medium, wherein the application is applied to a folding screen terminal configured with at least two sub-screens, the folding screen terminal comprises a first sub-screen and a second sub-screen, a first part of a game scene is displayed in the first sub-screen, and a second part of the game scene is displayed in the second sub-screen, the method comprises the following steps: in response to a movement instruction for a controlled virtual role, controlling the controlled virtual role to move in a current game scene; in response to a folding operation of the first sub-screen and / or the second sub-screen, controlling the controlled virtual role to move from the current game scene to a target game scene, wherein when the current game scene is the first part of the game scene, the target game scene is the second part of the game scene, and when the current game scene is the second part of the game scene, the target game scene is the first part of the game scene. Through the method of the application, the utilization rate of the folding function of the folding screen can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and more specifically, to a method, apparatus, electronic device, and storage medium for controlling the movement of a virtual character. Background Technology

[0002] As electronic communication terminals (such as mobile phones and tablets) have entered the era of full-screen displays, people want to enjoy larger screens within a limited body, thus giving rise to foldable screens. Foldable screens are a branch of flexible screens.

[0003] Currently, foldable screens are only used to activate and deactivate the foldable screen, which is a relatively simple function and cannot achieve user interaction, resulting in low utilization of the folding function. Summary of the Invention

[0004] In view of this, embodiments of this application provide a method, apparatus, electronic device, and storage medium for controlling the movement of a virtual character, so as to improve the utilization rate of the folding function of a foldable screen.

[0005] In a first aspect, embodiments of this application provide a method for controlling the movement of a virtual character, applied to a foldable screen terminal configured with at least two sub-screens. The foldable screen terminal includes a first sub-screen and a second sub-screen. When the first sub-screen and the second sub-screen are in a display state, a first part of a game scene is displayed on a first graphical user interface of the first sub-screen, and a second part of a game scene is displayed on a second graphical user interface of the second sub-screen. The first part of the game scene and the second part of the game scene belong to different parts of the same game scene. The game scene also includes a controlled virtual character. The method includes:

[0006] In response to a movement command for the controlled virtual character, control the controlled virtual character to move within the current game scene;

[0007] In response to a folding operation on the first sub-screen and / or the second sub-screen, the controlled virtual character is controlled to move from the current game scene to the target game scene, wherein when the current game scene is the first part of the game scene, the target game scene is the second part of the game scene, and when the current game scene is the second part of the game scene, the target game scene is the first part of the game scene.

[0008] In conjunction with the first aspect, this application provides a first possible implementation of the first aspect, wherein the first part of the game scene and the second part of the game scene are consecutive game scenes.

[0009] In conjunction with the first aspect, this application provides a second possible implementation of the first aspect, wherein the first sub-screen and the second sub-screen are capable of folding along the same folding axis disposed on the folding screen terminal.

[0010] In conjunction with the second possible implementation of the first aspect, this application provides a third possible implementation of the first aspect, wherein the response to the folding operation of the first sub-screen and / or the second sub-screen, controlling the controlled virtual character to move from the current game scene to the target game scene, includes:

[0011] Obtain folding parameters of the first sub-screen and / or the second sub-screen, wherein the folding parameters include: the rotational acceleration, rotational speed and / or included angle of the first sub-screen relative to the second sub-screen when the first sub-screen and / or the second sub-screen are folded;

[0012] When the folding parameters meet the set parameter threshold, the controlled virtual character is controlled to move from the current game scene to the target game scene.

[0013] In conjunction with the third possible implementation of the first aspect, this application provides a fourth possible implementation of the first aspect, wherein, when the folding parameter meets a set parameter threshold, controlling the controlled virtual character to move from the current game scene to the target game scene includes:

[0014] When the rotational acceleration is greater than a preset acceleration, the rotational speed is greater than a preset rotational speed, and / or the included angle is less than a preset included angle, the controlled virtual character is controlled to move from the current game scene to the target game scene.

[0015] In conjunction with the second possible implementation of the first aspect, this application provides a fifth possible implementation of the first aspect, wherein controlling the controlled virtual character to move from the current game scene to the target game scene includes:

[0016] Using the folding axis as a mirror reference, and based on the first position of the controlled virtual character in the sub-screen corresponding to the current game scene, determine the second position of the controlled virtual character mirrored to the sub-screen corresponding to the target game scene;

[0017] Move the controlled virtual character from the first position to the second position.

[0018] In conjunction with the fifth possible implementation of the first aspect, this application provides a sixth possible implementation of the first aspect, wherein moving the controlled virtual character from the first position to the second position includes:

[0019] The controlled virtual character is moved from the first position to the second position according to a specified movement method, wherein the specified movement method includes: moving along a game path from the first position to the second position, jumping from the first position to the second position, or directly displaying the controlled virtual character from the first position to the second position.

[0020] In conjunction with the third possible implementation of the first aspect, this application provides a seventh possible implementation of the first aspect, wherein when the first sub-screen and the second sub-screen are in a display state, the first sub-screen and the second sub-screen constitute a continuous screen, and the method further includes:

[0021] When the included angle is less than the first target included angle, the target game scene and the controlled virtual character are displayed on the third graphical user interface of the third sub-screen; wherein, the first target included angle is less than the parameter threshold.

[0022] In conjunction with the seventh possible implementation of the first aspect, this application provides an eighth possible implementation of the first aspect, wherein when the first sub-screen and the second sub-screen are in a display state, the first sub-screen and the second sub-screen are located on the first side of the foldable screen terminal, the third sub-screen is located on the second side of the foldable screen terminal, and the display directions of the first side and the second side of the foldable screen terminal are opposite.

[0023] In conjunction with the third possible implementation of the first aspect, this application provides a ninth possible implementation of the first aspect, wherein when the first sub-screen and the second sub-screen are in a display state, the first sub-screen and the second sub-screen constitute a continuous screen, and the method further includes:

[0024] When the included angle is less than the second target included angle, the virtual elements in the first sub-screen and the second sub-screen located at the same mirror position are merged according to the preset fusion rules, with the folding axis as the mirror reference, to obtain the merged elements;

[0025] The controlled virtual character and the merged element are displayed after the movement.

[0026] In conjunction with the first aspect, this application provides a tenth possible implementation of the first aspect, wherein a virtual obstacle is provided between the current game scene and the target game scene, the virtual obstacle obstructs the controlled virtual character in the direction of movement of the controlled virtual character, and the response to a folding operation of the first sub-screen and / or the second sub-screen, controlling the controlled virtual character to move from the current game scene to the target game scene, includes:

[0027] In response to a folding operation on the first sub-screen and / or the second sub-screen, the controlled virtual character is controlled to avoid the virtual obstacles in order to move from the current game scene to the target game scene.

[0028] Secondly, this application also provides a mobile control device for a virtual character, residing in a foldable screen terminal configured with at least two sub-screens. The foldable screen terminal includes a first sub-screen and a second sub-screen. When the first sub-screen and the second sub-screen are in a display state, a first part of the game scene is displayed on a first graphical user interface of the first sub-screen, and a second part of the game scene is displayed on a second graphical user interface of the second sub-screen. The first part of the game scene and the second part of the game scene belong to different parts of the same game scene. The game scene also includes a controlled virtual character. The device includes:

[0029] The first control module is used to respond to movement commands for the controlled virtual character and control the controlled virtual character to move within the current game scene;

[0030] The second control module is used to respond to a folding operation on the first sub-screen and / or the second sub-screen, and control the controlled virtual character to move from the current game scene to the target game scene, wherein when the current game scene is the first part of the game scene, the target game scene is the second part of the game scene, and when the current game scene is the second part of the game scene, the target game scene is the first part of the game scene.

[0031] In conjunction with the second aspect, this application provides a first possible implementation of the second aspect, wherein the first part of the game scene and the second part of the game scene are consecutive game scenes.

[0032] In conjunction with the second aspect, this application provides a second possible implementation of the second aspect, wherein the first sub-screen and the second sub-screen are capable of folding along the same folding axis disposed on the folding screen terminal.

[0033] In conjunction with the second possible implementation of the second aspect, this application provides a third possible implementation of the second aspect, wherein, when the second control module controls the controlled virtual character to move from the current game scene to the target game scene in response to a folding operation on the first sub-screen and / or the second sub-screen, it is specifically used for:

[0034] Obtain folding parameters of the first sub-screen and / or the second sub-screen, wherein the folding parameters include: the rotational acceleration, rotational speed and / or included angle of the first sub-screen relative to the second sub-screen when the first sub-screen and / or the second sub-screen are folded;

[0035] When the folding parameters meet the set parameter threshold, the controlled virtual character is controlled to move from the current game scene to the target game scene.

[0036] In conjunction with the third possible implementation of the second aspect, this application provides a fourth possible implementation of the second aspect, wherein, when the second control module controls the controlled virtual character to move from the current game scene to the target game scene when the folding parameter meets a set parameter threshold, it is specifically used for:

[0037] When the rotational acceleration is greater than a preset acceleration, the rotational speed is greater than a preset rotational speed, and / or the included angle is less than a preset included angle, the controlled virtual character is controlled to move from the current game scene to the target game scene.

[0038] In conjunction with the second possible implementation of the second aspect, this application provides a fifth possible implementation of the second aspect, wherein, when the second control module controls the controlled virtual character to move from the current game scene to the target game scene, it is specifically used for:

[0039] Using the folding axis as a mirror reference, and based on the first position of the controlled virtual character in the sub-screen corresponding to the current game scene, determine the second position of the controlled virtual character mirrored to the sub-screen corresponding to the target game scene;

[0040] Move the controlled virtual character from the first position to the second position.

[0041] In conjunction with the fifth possible implementation of the second aspect, this application provides a sixth possible implementation of the second aspect, wherein, when the second control module is used to move the controlled virtual character from the first position to the second position, it is specifically used for:

[0042] The controlled virtual character is moved from the first position to the second position according to a specified movement method, wherein the specified movement method includes: moving along a game path from the first position to the second position, jumping from the first position to the second position, or directly displaying the controlled virtual character from the first position to the second position.

[0043] In conjunction with the third possible implementation of the second aspect, this application provides a seventh possible implementation of the second aspect, wherein when the first sub-screen and the second sub-screen are in a display state, the first sub-screen and the second sub-screen constitute a continuous screen, and the device further includes:

[0044] The first display module is used to display the target game scene and the controlled virtual character on the third graphical user interface of the third sub-screen when the included angle is less than the first target included angle; wherein the first target included angle is less than the parameter threshold.

[0045] In conjunction with the seventh possible implementation of the second aspect, this application provides an eighth possible implementation of the second aspect, wherein when the first sub-screen and the second sub-screen are in a display state, the first sub-screen and the second sub-screen are located on the first side of the foldable screen terminal, the third sub-screen is located on the second side of the foldable screen terminal, and the display directions of the first side and the second side of the foldable screen terminal are opposite.

[0046] In conjunction with the third possible implementation of the second aspect, this application provides a ninth possible implementation of the second aspect, wherein when the first sub-screen and the second sub-screen are in a display state, the first sub-screen and the second sub-screen constitute a continuous screen, and the device further includes:

[0047] The fusion module is used to fuse virtual elements located at the same mirror position in the first sub-screen and the second sub-screen according to a preset fusion rule, using the folding axis as a mirror reference, when the included angle is less than the second target included angle, so as to obtain fused elements;

[0048] The second display module is used to display the moved controlled virtual character and the merged element.

[0049] In conjunction with the second aspect, this application provides a tenth possible implementation of the second aspect, wherein a virtual obstacle is provided between the current game scene and the target game scene, the virtual obstacle obstructs the controlled virtual character in the direction of movement of the controlled virtual character, and the second control module, in response to a folding operation on the first sub-screen and / or the second sub-screen, controls the controlled virtual character to move from the current game scene to the target game scene, specifically for:

[0050] In response to a folding operation on the first sub-screen and / or the second sub-screen, the controlled virtual character is controlled to avoid the virtual obstacles in order to move from the current game scene to the target game scene.

[0051] Thirdly, embodiments of this application also provide an electronic device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps in any of the possible implementations of the first aspect described above are performed.

[0052] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps in any of the possible implementations of the first aspect described above.

[0053] This application provides a method, device, electronic device, and storage medium for controlling the movement of a virtual character. By controlling the folding operation of the folding screen on a folding screen terminal, the method controls the movement of the controlled virtual character in a game scene. Compared with the prior art where the folding screen is only used to start and close the folding screen, the method of this application is beneficial to realizing the interaction between the folding screen and the user, and improving the utilization rate of the folding function of the folding screen.

[0054] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

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

[0056] Figure 1 A flowchart of a virtual character movement control method provided in an embodiment of this application is shown.

[0057] Figure 2 A schematic diagram of a foldable screen terminal provided in an embodiment of this application is shown.

[0058] Figure 3 A schematic diagram of a foldable screen terminal after folding operation, provided in an embodiment of this application, is shown.

[0059] Figure 4 A schematic diagram of the third sub-screen provided in an embodiment of this application is shown.

[0060] Figure 5 This illustration shows a schematic diagram of the foldable screen terminal provided in the embodiment of this application in a closed state.

[0061] Figure 6 A schematic diagram showing the same mirror position relationship provided in the embodiments of this application is shown.

[0062] Figure 7 A schematic diagram of a virtual barrier provided in an embodiment of this application is shown.

[0063] Figure 8 A schematic diagram of the structure of a virtual character movement control device provided in an embodiment of this application is shown.

[0064] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0065] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.

[0066] In existing technologies, when a user of a foldable screen terminal folds the screen to unfold it, the foldable screen is usually woken up; when the user folds the screen to close it, the foldable screen goes into sleep mode. It is evident that currently, foldable screens are only used to activate and deactivate the folding mechanism, resulting in limited functionality and a lack of user interaction, leading to low utilization of the folding function.

[0067] In view of the above problems, this application provides a method, device, electronic device and storage medium for controlling the movement of virtual characters, so as to improve the utilization rate of the folding function of foldable screens. The following is a description through embodiments.

[0068] It should be noted in advance that the methods involved in this application can be applied to any game, including controlling virtual characters to move in a game scene, and no specific game or game type is specified here.

[0069] Example 1:

[0070] Figure 1This document illustrates a flowchart of a virtual character movement control method provided in an embodiment of this application. The method is applied to a foldable screen terminal configured with at least two sub-screens. The foldable screen terminal includes a first sub-screen and a second sub-screen. When the first and second sub-screens are in display mode, a first part of the game scene is displayed on the first graphical user interface of the first sub-screen, and a second part of the game scene is displayed on the second graphical user interface of the second sub-screen. The first and second parts of the game scene belong to different portions of the same game scene. The game scene also includes a controlled virtual character, such as... Figure 1 As shown, the method includes the following steps S101-S102:

[0071] S101: Responds to movement commands for the controlled virtual character and controls the controlled virtual character to move within the current game scene.

[0072] In this embodiment, the foldable screen terminal can specifically be a foldable screen phone, a foldable screen game console, etc., and this application does not impose specific limitations on it. The controlled virtual character is the virtual character currently controlled by the player; typically, there is only one controlled virtual character. The controlled virtual character is displayed in the first graphical user interface or the second graphical user interface.

[0073] Figure 2 A schematic diagram of a foldable screen terminal provided in an embodiment of this application is shown, as follows: Figure 2 As shown, when the foldable screen terminal is in the unfolded state, the first sub-screen and the second sub-screen are in the display state. At this time, the player can see the first part of the game scene through the first graphical user interface on the first sub-screen and the second part of the game scene through the second graphical user interface on the second sub-screen.

[0074] In such Figure 2 In the illustrated embodiment, the controlled virtual character is located in a first part of the game scene on the first graphical user interface. When the controlled virtual character is displayed in the first graphical user interface, the first part of the game scene displayed on the first graphical user interface can specifically be displayed with the controlled virtual character's position in the entire game scene as the center. The first part of the game scene is a portion of the game scene. When the controlled virtual character moves in the game scene, the first part of the game scene displayed on the first graphical user interface also changes accordingly.

[0075] Similarly, when the controlled virtual character is displayed in the second graphical user interface, the second part of the game scene displayed on the second graphical user interface can be displayed with the controlled virtual character's position in the entire game scene as the center. The second part of the game scene is a part of the game scene. When the controlled virtual character moves in the game scene, the second part of the game scene displayed on the second graphical user interface also changes accordingly.

[0076] In one possible implementation, the first and second parts of the game scene are consecutive. In this case, if the controlled virtual character is displayed in the first graphical user interface, the second part of the game scene changes as the controlled virtual character moves within the game scene. Conversely, if the controlled virtual character is displayed in the second graphical user interface, the first part of the game scene changes as the controlled virtual character moves within the game scene.

[0077] In another possible implementation, the first part of the game scene and the second part of the game scene are discontinuous game scenes. In this case, the first part of the game scene and the second part of the game scene can be scenes from two maps in the same game.

[0078] Alternatively, when the controlled virtual character is displayed in the first graphical user interface, the second part of the game scene displayed on the second graphical user interface can be the game scene of other virtual characters belonging to the same team as the controlled virtual character. When the team contains multiple members, the player can select the virtual character controlled by one of the target members as the content displayed in the second part of the game scene. In this case, the second part of the game scene displayed on the second graphical user interface can be centered on the position of the virtual character controlled by the target member in the entire game scene. When the virtual character controlled by the target member moves in the game scene, the second part of the game scene displayed on the second graphical user interface also changes accordingly.

[0079] Alternatively, when the controlled virtual character is displayed in the first graphical user interface, the second part of the game scene displayed on the second graphical user interface can be the game scene in which a virtual character controlled by one of the opposing players resides. Specifically, the player of the controlled virtual character can select one of the opposing player's virtual characters as the content displayed in the second part of the game scene. In this case, the second part of the game scene displayed on the second graphical user interface can be centered on the position of the opposing player's virtual character within the entire game scene, and the second part of the game scene displayed on the second graphical user interface changes accordingly as the opposing player's virtual character moves within the game scene.

[0080] Alternatively, when the controlled virtual character is displayed in the first graphical user interface, the second part of the game scene displayed on the second graphical user interface can also be a part of the game scene set by the player other than the first part of the game scene; at this time, the foldable screen terminal can respond to the swiping operation on the second sub-screen and control the content of the second part of the game scene displayed on the second graphical user interface in the second sub-screen.

[0081] Alternatively, when the controlled virtual character is displayed in the first graphical user interface, the second part of the game scene displayed on the second graphical user interface can also be an outer game scene of the first part of the game scene. Specifically, when the second part of the game scene is an outer game scene of the first part of the game scene, for example, when the first part of the game scene is inside a cave, the second part of the game scene can be the outer area of ​​that cave.

[0082] When the controlled virtual character is displayed in the second graphical user interface, the first part of the game scene displayed on the first graphical user interface can be referred to the implementation method for the second part of the game scene displayed on the second graphical user interface when the controlled virtual character is displayed in the first graphical user interface. This embodiment will not repeat the description.

[0083] In this application, when the controlled virtual character is located on a first graphical user interface, a first movement control control can also be displayed on the first graphical user interface. The player can use a touch medium to operate the first movement control control, thereby controlling the movement direction, movement distance, and / or movement speed of the controlled virtual character in the game scene. Similarly, when the controlled virtual character is located on a second graphical user interface, a second movement control control can also be displayed on the second graphical user interface. The player can use a touch medium to operate the second movement control control, thereby controlling the movement direction, movement distance, and / or movement speed of the controlled virtual character in the game scene. The touch medium can be the player's finger.

[0084] S102: In response to a folding operation on the first sub-screen and / or the second sub-screen, control the controlled virtual character to move from the current game scene to the target game scene, wherein when the current game scene is the first part of the game scene, the target game scene is the second part of the game scene, and when the current game scene is the second part of the game scene, the target game scene is the first part of the game scene.

[0085] like Figure 2 As shown, when a player folds the foldable screen, they can keep the first sub-screen stationary while folding the second sub-screen, that is, folding the second sub-screen towards the direction of the first sub-screen. Figure 2 The second sub-screen can be folded to the left; alternatively, the second sub-screen can be kept stationary while the first sub-screen is folded, meaning the first sub-screen is folded towards the second sub-screen. Figure 2The first sub-screen in the game folds to the right; it's also possible to fold both the first and second sub-screens simultaneously, meaning folding the first sub-screen towards the second sub-screen while simultaneously folding the second sub-screen towards the first sub-screen. Therefore, the folded sub-screen is not necessarily the one displaying the controlled virtual character.

[0086] Figure 3 A schematic diagram of a foldable screen terminal after folding operation, as provided in an embodiment of this application, is shown. Figure 3 As shown, when the player only performs a folding operation on the first sub-screen, the controlled virtual character moves from the first part of the game scene to the second part of the game scene.

[0087] In this embodiment, when the controlled virtual character is located in the first part of the game scene and the virtual character controlled by the target teammate is located in the second part of the game scene, the player can directly control the controlled virtual character to move to the vicinity of the virtual character controlled by the target teammate by folding the first sub-screen and / or the second sub-screen, which helps to improve movement efficiency.

[0088] In one possible implementation, such as Figure 2 As shown, the first sub-screen and the second sub-screen can be folded along the same folding axis set on the folding screen terminal.

[0089] The first and second sub-screens are two consecutive sub-screens, and the folding axis can be the connection point between them. The first and second sub-screens are the same size, and the first and second graphical display interfaces are the same size. When the player folds the foldable screen terminal, they can control the first and / or second sub-screens along... Figure 2 The folding axis shown is used to perform a folding operation, thereby enabling the controlled virtual character to move from the current game scene to the target game scene.

[0090] In one possible implementation, when performing step S102 in response to a folding operation on the first sub-screen and / or the second sub-screen, and controlling the controlled virtual character to move from the current game scene to the target game scene, the following steps S1021-S1022 can be specifically executed:

[0091] S1021: Obtain the folding parameters of the first sub-screen and / or the second sub-screen, wherein the folding parameters include: the rotational acceleration, rotational speed and / or included angle of the first sub-screen relative to the second sub-screen when the first sub-screen and / or the second sub-screen are folded.

[0092] S1022: When the folding parameters meet the set parameter threshold, control the controlled virtual character to move from the current game scene to the target game scene.

[0093] In this embodiment, by determining whether the folding parameters of the first sub-screen and / or the second sub-screen meet the parameter threshold, it is determined whether to control the virtual character to move from the current game scene to the target game scene. This helps to avoid erroneous movement of the virtual character due to the player's misoperation during the game.

[0094] In one possible implementation, when the rotational acceleration is greater than a preset acceleration, the rotational speed is greater than a preset rotational speed, and / or the included angle is less than a preset included angle, the controlled virtual character is controlled to move from the current game scene to the target game scene.

[0095] The rotational speed can be the average or maximum rotational speed when folding the first sub-screen and / or the second sub-screen. For example, taking the rotational speed of the first sub-screen relative to the second sub-screen as the folding parameter, when the player performs a folding operation on the first sub-screen and / or the second sub-screen, if the rotational speed of the first sub-screen relative to the second sub-screen is greater than a preset rotational speed, the player controls the virtual character to move from the current game scene to the target game scene.

[0096] In one possible implementation, when executing step S102 to control the controlled virtual character to move from the current game scene to the target game scene, this can be specifically achieved through steps S1023-S1024:

[0097] S1023: Using the folding axis as the mirror reference, determine the second position of the controlled virtual character in the sub-screen corresponding to the target game scene based on the first position of the controlled virtual character in the sub-screen corresponding to the current game scene;

[0098] S1024: Move the controlled virtual character from the first position to the second position.

[0099] like Figure 2 and Figure 3 As shown, taking the current game scene as the first part of the game scene and the target game scene as the second part of the game scene as an example, the first position and the second position are mirror images based on the folding axis, as follows: Figure 2 As shown, a Cartesian coordinate system is constructed with the folding axis as the y-axis and the horizontal line perpendicular to the folding axis formed by the bottom lines of the first and second sub-screens as the x-axis. In this Cartesian coordinate system, assuming the coordinates of the controlled virtual character's first position on the first sub-screen are (-1, 1), then, using the folding axis as a mirror reference, mirroring the first position yields a second position on the second sub-screen with coordinates (1, 1). After the player folds the screen on the foldable terminal, they can use the mirroring principle described above to determine the coordinates of the second position and then move the controlled virtual character from the first position to the second position.

[0100] In one possible implementation, the controlled virtual character can be moved from a first position to a second position according to a specified movement method, which includes: moving along a game path from the first position to the second position, jumping from the first position to the second position, or directly displaying the controlled virtual character from the first position to the second position.

[0101] Specifically, when moving along the game path from the first position to the second position, the movement can be at a preset speed. If there are multiple game paths, the shortest one can be selected as the final game path. When the controlled virtual character is directly displayed from the first position to the second position, it can be that the controlled virtual character disappears from the first position and is directly displayed in the second position.

[0102] In this embodiment, by performing a folding operation on the first sub-screen and / or the second sub-screen, with the folding axis as the mirror reference, the controlled virtual character can be directly moved from the first position in the sub-screen corresponding to the current game scene to the second position in the sub-screen corresponding to the target game scene, which helps to improve the movement efficiency of the controlled virtual character.

[0103] Figure 4 This diagram illustrates a third sub-screen provided in an embodiment of this application. When the first and second sub-screens are in display mode, they form a continuous screen. When the player performs a folding operation on the first and / or second sub-screens, as shown... Figure 4 As shown, when the angle between the first sub-screen and / or the second sub-screen is less than the first target angle, the target game scene and the controlled virtual character are displayed on the third graphical user interface of the third sub-screen; wherein, the first target angle is less than a parameter threshold. Further, the first target angle is less than a preset angle in the parameter threshold.

[0104] In one possible embodiment, such as Figure 2 As shown, when the first sub-screen and the second sub-screen are in display mode, the first sub-screen and the second sub-screen are located on the first side of the foldable screen terminal, and the third sub-screen is located on the second side of the foldable screen terminal. The display directions of the first side and the second side of the foldable screen terminal are opposite.

[0105] For example, Figure 5 The diagram illustrates a foldable screen terminal provided in an embodiment of this application in a closed state, as shown below. Figure 5 As shown, at this time, the angle between the first sub-screen and the second sub-screen is 0, the first sub-screen and the second sub-screen are closed, and no content is displayed in the first sub-screen and the second sub-screen. At this time, content can be displayed in the third sub-screen.

[0106] In one possible implementation, when the first sub-screen and the second sub-screen are in display mode, the first sub-screen and the second sub-screen constitute a continuous screen. After the player performs a folding operation on the first sub-screen and / or the second sub-screen, the game content displayed on the folded screen can also be displayed in the manner described in the following steps:

[0107] S1031: When the included angle is less than the included angle of the second target, the virtual elements in the first sub-screen and the second sub-screen located at the same mirror position are merged according to the preset fusion rules, with the folding axis as the mirror reference, to obtain the merged elements.

[0108] S1032: Display the moved controlled virtual character and merged elements.

[0109] The preset fusion rules can be simple methods such as element overlay or element deformation.

[0110] Figure 6 A schematic diagram illustrating the same mirror position relationship provided in the embodiments of this application is shown, such as... Figure 6 As shown, a rectangular coordinate system is constructed with the fold axis as the y-axis and the horizontal line perpendicular to the fold axis formed by the bottom lines of the first and second sub-screens as the x-axis. In this rectangular coordinate system, assuming the position coordinates of virtual element A in the first sub-screen are (-2, 1), then the position coordinates of virtual element B in the second sub-screen are (2, 1).

[0111] For example, when the preset fusion rule is element overlay, if the virtual element set at position A in the first sub-screen is a lawn, and the virtual element set at position B in the second sub-screen, which is at the same mirror position as position A, is a building, then after the virtual elements lawn and building are fused according to the preset fusion rule of element overlay, the fused element is a lawn with a building set on it.

[0112] When the preset fusion rule is element deformation, if virtual element a (such as a building, mountain, lake, or sea) is set at position A in the first sub-screen, and virtual element b is set at position B, which is located at the same mirror position as position A in the second sub-screen, then fusion of virtual elements a and b will result in virtual element c, thus forming a new game scene. For example, virtual element a is a three-story building, virtual element b is a one-story building, and virtual element c could be a four-story building.

[0113] It is worth noting that, in addition to the two preset fusion rules mentioned above, this embodiment can also perform element fusion on virtual elements located at the same mirror position in the first sub-screen and the second sub-screen through other preset fusion rules. Other preset fusion rules will not be specifically described in this application.

[0114] In this embodiment, the moved controlled virtual character and the merged element can be displayed in the third graphical display interface of the third sub-screen on the back, or in one of the first sub-screen and the second sub-screen, depending on the size of the folding angle.

[0115] Specifically, when the angle between the first and second sub-screens is less than the second target angle and less than the first target angle, the moved controlled virtual character and the merged element are displayed in the third graphical display interface of the third sub-screen. When the angle between the first and second sub-screens is less than the second target angle and greater than the first target angle, the moved controlled virtual character and the merged element are displayed in the first graphical display interface of the first sub-screen, or in the second graphical display interface of the second sub-screen.

[0116] In one possible implementation, a virtual obstacle is set between the current game scene and the target game scene. The virtual obstacle blocks the controlled virtual character in the direction of movement. When executing step S102, specifically, after responding to the folding operation of the first sub-screen and / or the second sub-screen, the controlled virtual character can be controlled to avoid the virtual obstacle in order to move from the current game scene to the target game scene.

[0117] Specifically, Figure 7 A schematic diagram of a virtual barrier provided in an embodiment of this application is shown, such as... Figure 7 As shown, the virtual obstacle is specifically located at the junction of the current game scene and the target game scene, that is, on the screen where the folding axis is located. In this embodiment, the virtual obstacle can be a virtual object with a certain height and width in the game scene, such as a virtual wall or a virtual mountain.

[0118] If there are virtual obstacles between the current game scene and the target game scene, if the player wants to control the virtual character to move from the current game scene to the target game scene, the player can fold the first sub-screen and / or the second sub-screen to control the virtual character to avoid the virtual obstacles and move the virtual character from the current game scene to the target game scene.

[0119] Specifically, when controlling the virtual character to avoid virtual obstacles, the avoidance method can be selected according to the type of virtual obstacle. Avoidance methods include: controlling the virtual character to jump over virtual obstacles, bypassing virtual obstacles from the side, and / or passing through virtual obstacles.

[0120] For example, when the virtual obstacle is a virtual wall, the avoidance method can be to go around the virtual obstacle from the side. When the virtual obstacle is a continuous virtual mountain, the avoidance method can be to jump over the virtual obstacle. When the virtual obstacle is a virtual forest, the avoidance method can be to pass through the virtual obstacle.

[0121] Example 2:

[0122] Figure 8 This illustration shows a schematic diagram of a virtual character movement control device according to an embodiment of this application. The device resides in a foldable screen terminal configured with at least two sub-screens. The foldable screen terminal includes a first sub-screen and a second sub-screen. When the first and second sub-screens are in display mode, a first part of the game scene is displayed on a first graphical user interface of the first sub-screen, and a second part of the game scene is displayed on a second graphical user interface of the second sub-screen. The first and second parts of the game scene belong to different portions of the same game scene. The game scene also includes a controlled virtual character, such as... Figure 8 As shown, the device includes:

[0123] The first control module 801 is used to respond to the movement command for the controlled virtual character and control the controlled virtual character to move in the current game scene;

[0124] The second control module 802 is used to respond to a folding operation on the first sub-screen and / or the second sub-screen, and control the controlled virtual character to move from the current game scene to the target game scene, wherein when the current game scene is the first part of the game scene, the target game scene is the second part of the game scene, and when the current game scene is the second part of the game scene, the target game scene is the first part of the game scene.

[0125] Optionally, the first part of the game scene and the second part of the game scene are consecutive game scenes.

[0126] Optionally, the first sub-screen and the second sub-screen can be folded along the same folding axis provided on the folding screen terminal.

[0127] Optionally, when the second control module 802 controls the controlled virtual character to move from the current game scene to the target game scene in response to a folding operation on the first sub-screen and / or the second sub-screen, it is specifically used for:

[0128] Obtain folding parameters of the first sub-screen and / or the second sub-screen, wherein the folding parameters include: the rotational acceleration, rotational speed and / or included angle of the first sub-screen relative to the second sub-screen when the first sub-screen and / or the second sub-screen are folded;

[0129] When the folding parameters meet the set parameter threshold, the controlled virtual character is controlled to move from the current game scene to the target game scene.

[0130] Optionally, when the second control module 802 controls the controlled virtual character to move from the current game scene to the target game scene when the folding parameters meet the set parameter threshold, it is specifically used for:

[0131] When the rotational acceleration is greater than a preset acceleration, the rotational speed is greater than a preset rotational speed, and / or the included angle is less than a preset included angle, the controlled virtual character is controlled to move from the current game scene to the target game scene.

[0132] Optionally, when the second control module 802 controls the controlled virtual character to move from the current game scene to the target game scene, it is specifically used for:

[0133] Using the folding axis as a mirror reference, and based on the first position of the controlled virtual character in the sub-screen corresponding to the current game scene, determine the second position of the controlled virtual character mirrored to the sub-screen corresponding to the target game scene;

[0134] Move the controlled virtual character from the first position to the second position.

[0135] Optionally, when the second control module 802 moves the controlled virtual character from the first position to the second position, it is specifically used for:

[0136] The controlled virtual character is moved from the first position to the second position according to a specified movement method, wherein the specified movement method includes: moving along a game path from the first position to the second position, jumping from the first position to the second position, or directly displaying the controlled virtual character from the first position to the second position.

[0137] Optionally, when the first sub-screen and the second sub-screen are in display mode, the first sub-screen and the second sub-screen constitute a continuous screen, and the device further includes:

[0138] The first display module is used to display the target game scene and the controlled virtual character on the third graphical user interface of the third sub-screen when the included angle is less than the first target included angle; wherein the first target included angle is less than the parameter threshold.

[0139] Optionally, when the first sub-screen and the second sub-screen are in display mode, the first sub-screen and the second sub-screen are located on the first side of the foldable screen terminal, and the third sub-screen is located on the second side of the foldable screen terminal, with the display directions of the first side and the second side of the foldable screen terminal being opposite.

[0140] Optionally, when the first sub-screen and the second sub-screen are in display mode, the first sub-screen and the second sub-screen constitute a continuous screen, and the device further includes:

[0141] The fusion module is used to fuse virtual elements located at the same mirror position in the first sub-screen and the second sub-screen according to a preset fusion rule, using the folding axis as a mirror reference, when the included angle is less than the second target included angle, so as to obtain fused elements;

[0142] The second display module is used to display the moved controlled virtual character and the merged element.

[0143] Optionally, a virtual obstacle is provided between the current game scene and the target game scene. The virtual obstacle blocks the controlled virtual character in the direction of movement. When the second control module 802 responds to a folding operation on the first sub-screen and / or the second sub-screen and controls the controlled virtual character to move from the current game scene to the target game scene, it is specifically used for:

[0144] In response to a folding operation on the first sub-screen and / or the second sub-screen, the controlled virtual character is controlled to avoid the virtual obstacles in order to move from the current game scene to the target game scene.

[0145] Example 3:

[0146] Figure 9 The present invention provides a schematic diagram of the structure of an electronic device according to Embodiment 3 of this application, including: a processor 901, a memory 902 and a bus 903. The memory 902 stores machine-readable instructions that can be executed by the processor 901. When the electronic device runs the above-described information processing method, the processor 901 and the memory 902 communicate through the bus 903. The processor 901 executes the machine-readable instructions to perform the steps of the method described in Embodiment 1.

[0147] Example 4:

[0148] Embodiment 4 of this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps described in Embodiment 1.

[0149] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the aforementioned devices, electronic devices, and computer-readable storage media can all be referred to the corresponding processes in the above method embodiments, and will not be repeated here.

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

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

[0152] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0153] If the aforementioned functions are implemented as 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 this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0154] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0155] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.

Claims

1. A method for controlling the movement of a virtual character, characterized in that, The method is applied to a foldable screen terminal configured with at least two sub-screens, the foldable screen terminal including a first sub-screen and a second sub-screen, wherein when the first sub-screen and the second sub-screen are in a display state, a first part of a game scene is displayed on a first graphical user interface of the first sub-screen, and a second part of a game scene is displayed on a second graphical user interface of the second sub-screen, the first part of the game scene and the second part of the game scene are different parts of the same game scene, wherein the game scene also includes a controlled virtual character, the method comprising: In response to a movement command for the controlled virtual character, control the controlled virtual character to move within the current game scene; In response to a folding operation on the first sub-screen and / or the second sub-screen, the controlled virtual character is moved from the current game scene to the target game scene, wherein when the current game scene is the first part of the game scene, the target game scene is the second part of the game scene, and when the current game scene is the second part of the game scene, the target game scene is the first part of the game scene; The first sub-screen and the second sub-screen can be folded along the same folding axis provided on the folding screen terminal. Controlling the controlled virtual character to move from the current game scene to the target game scene includes: Using the folding axis as a mirror reference, and based on the first position of the controlled virtual character in the sub-screen corresponding to the current game scene, determine the second position of the controlled virtual character mirrored to the sub-screen corresponding to the target game scene; Move the controlled virtual character from the first position to the second position.

2. The method as described in claim 1, characterized in that, The first part of the game scene and the second part of the game scene are consecutive game scenes.

3. The method as described in claim 1, characterized in that, The response to the folding operation of the first sub-screen and / or the second sub-screen, controlling the controlled virtual character to move from the current game scene to the target game scene, includes: Obtain folding parameters of the first sub-screen and / or the second sub-screen, wherein the folding parameters include: the rotational acceleration, rotational speed and / or included angle of the first sub-screen relative to the second sub-screen when the first sub-screen and / or the second sub-screen are folded; When the folding parameters meet the set parameter threshold, the controlled virtual character is controlled to move from the current game scene to the target game scene.

4. The method as described in claim 3, characterized in that, When the folding parameters meet the set parameter threshold, the controlled virtual character is controlled to move from the current game scene to the target game scene, including: When the rotational acceleration is greater than a preset acceleration, the rotational speed is greater than a preset rotational speed, and / or the included angle is less than a preset included angle, the controlled virtual character is controlled to move from the current game scene to the target game scene.

5. The method as described in claim 1, characterized in that, Moving the controlled virtual character from the first position to the second position includes: The controlled virtual character is moved from the first position to the second position according to a specified movement method, wherein the specified movement method includes: moving along a game path from the first position to the second position, jumping from the first position to the second position, or directly displaying the controlled virtual character from the first position to the second position.

6. The method as described in claim 3, characterized in that, When the first sub-screen and the second sub-screen are in display mode, the first sub-screen and the second sub-screen constitute a continuous screen, and the method further includes: When the included angle is less than the first target included angle, the target game scene and the controlled virtual character are displayed on the third graphical user interface of the third sub-screen; wherein, the first target included angle is less than the parameter threshold.

7. The method as described in claim 6, characterized in that, When the first sub-screen and the second sub-screen are in display mode, the first sub-screen and the second sub-screen are located on the first side of the foldable screen terminal, and the third sub-screen is located on the second side of the foldable screen terminal. The display directions of the first side and the second side of the foldable screen terminal are opposite.

8. The method as described in claim 3, characterized in that, When the first sub-screen and the second sub-screen are in display mode, the first sub-screen and the second sub-screen constitute a continuous screen, and the method further includes: When the included angle is less than the second target included angle, the virtual elements in the first sub-screen and the second sub-screen located at the same mirror position are merged according to the preset fusion rules, with the folding axis as the mirror reference, to obtain the merged elements; The controlled virtual character and the merged element are displayed after the movement.

9. The method as described in claim 1, characterized in that, A virtual obstacle is set between the current game scene and the target game scene. The virtual obstacle blocks the controlled virtual character in the direction of movement. The response to the folding operation of the first sub-screen and / or the second sub-screen, controlling the controlled virtual character to move from the current game scene to the target game scene, includes: In response to a folding operation on the first sub-screen and / or the second sub-screen, the controlled virtual character is controlled to avoid the virtual obstacles in order to move from the current game scene to the target game scene.

10. A movement control device for a virtual character, characterized in that, A device residing in a foldable screen terminal configured with at least two sub-screens, the foldable screen terminal including a first sub-screen and a second sub-screen, wherein when the first sub-screen and the second sub-screen are in a display state, a first part of a game scene is displayed on a first graphical user interface of the first sub-screen, and a second part of a game scene is displayed on a second graphical user interface of the second sub-screen, the first part of the game scene and the second part of the game scene are different parts of the same game scene, wherein the game scene also includes a controlled virtual character, the device comprising: The first control module is used to respond to movement commands for the controlled virtual character and control the controlled virtual character to move within the current game scene; The second control module is used to respond to a folding operation on the first sub-screen and / or the second sub-screen, and control the controlled virtual character to move from the current game scene to the target game scene, wherein when the current game scene is the first part of the game scene, the target game scene is the second part of the game scene, and when the current game scene is the second part of the game scene, the target game scene is the first part of the game scene; The first sub-screen and the second sub-screen can be folded along the same folding axis provided on the folding screen terminal. When the second control module controls the controlled virtual character to move from the current game scene to the target game scene, it is specifically used for: Using the folding axis as a mirror reference, and based on the first position of the controlled virtual character in the sub-screen corresponding to the current game scene, determine the second position of the controlled virtual character mirrored to the sub-screen corresponding to the target game scene; Move the controlled virtual character from the first position to the second position.

11. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is in operation, the processor communicates with the memory via the bus, and the machine-readable instructions, when executed by the processor, perform the steps of the method as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method and terminal for controlling movements of virtual targets

    CN107656685A

  • Game operation control method and device, storage medium and electronic equipment

    CN110090441A