Virtual character control method, electronic equipment, storage medium and program product

By switching the virtual character's perspective and control permissions in multiplayer online tactical battle games, the problem of cumbersome text input and voice communication is solved, realizing simple and intuitive assistance control, improving assistance efficiency and equipment lifespan.

CN121754885APending Publication Date: 2026-03-31NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-31
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In multiplayer online tactical battle games, text input and voice communication methods are cumbersome to assist in controlling virtual characters, resulting in low assistance efficiency.

Method used

By displaying a switching control on the first client's screen, the user responds to a role switching request, switches to the viewpoint of the second virtual character, and controls the second virtual character to perform operations, thereby realizing the exchange of control permissions between virtual characters.

Benefits of technology

It simplifies the assistance operations between teammates, improves assistance efficiency, shortens the battle time, reduces user fatigue and equipment pressure, and extends the service life of terminal devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121754885A_ABST
    Figure CN121754885A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual character control method, and relates to the technical field of computer processing, and the method comprises the steps: responding to a character exchange request triggered by a second client corresponding to a second virtual character, and displaying a first exchange control in a first display picture of a first client; the first display picture comprises a visual angle picture of a first virtual character, and the first virtual character and the second virtual character belong to the same camp; under the condition that a first operation aiming at the first exchange control is detected, switching from the first display picture to a second display picture; the second display picture comprises a visual angle picture of the second virtual character; and in response to a first control operation which is triggered by the first client and aims at the second virtual character, controlling the second virtual character to execute a first game behavior corresponding to the first control operation. The teammates can exchange the control authority of the virtual role, the operation is simple, convenient and visual, and the assistance efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer processing technology, specifically to methods for controlling virtual characters, electronic devices, storage media, and program products. Background Technology

[0002] Currently, the number and types of Multiplayer Online Battle Arena (MOBA) games are increasing.

[0003] In related technologies, one user controls one virtual character. The first user controls the first virtual character, and the second user controls the second virtual character. During the game, the first user can assist the second user in controlling the second virtual character through text input, voice communication, and other means.

[0004] However, among the aforementioned technologies, text input and voice communication are cumbersome to operate, resulting in low assistance efficiency. Summary of the Invention

[0005] In view of this, this application provides a method for controlling virtual characters, an electronic device, a storage medium, and a program product to solve the problem of low assistance efficiency.

[0006] Firstly, this application provides a method for controlling a virtual character, the method comprising: In response to a role-swapping request sent by a second client corresponding to a second virtual character, a first swapping control is displayed on a first display screen of the first client; wherein, the first display screen includes the view of the first virtual character controlled by the first client, and the first virtual character and the second virtual character belong to the same faction; Upon detecting a first operation on the first switching control, the system switches from the first display screen to a second display screen; wherein the second display screen includes the perspective view of the second virtual character; In response to a first control operation triggered by the first client on the second virtual character, the second virtual character is controlled to perform a first game action corresponding to the first control operation.

[0007] Secondly, this application provides a control device for a virtual character, the device comprising: The first display module is used to respond to a role exchange request sent by the second client corresponding to the second virtual character and display a first exchange control in the first display screen of the first client; wherein, the first display screen includes the view of the first virtual character controlled by the first client, and the first virtual character and the second virtual character belong to the same faction; The screen switching module is used to switch from the first display screen to the second display screen when a first operation is detected on the first switching control; wherein the second display screen includes the perspective view of the second virtual character; The first control module is configured to respond to a first control operation triggered by the first client on the second virtual character, and control the second virtual character to perform a first game action corresponding to the first control operation.

[0008] Thirdly, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the virtual character control method of the first aspect or any corresponding embodiment described above.

[0009] Fourthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to execute the virtual character control method of the first aspect or any corresponding embodiment described above.

[0010] Fifthly, this application provides a computer program product, including computer instructions for causing a computer to execute a control method for a virtual character as described in the first aspect or any corresponding embodiment thereof.

[0011] The virtual character control method provided in this application embodiment switches the viewpoint from the first virtual character to the second virtual character through a character exchange request corresponding to the second virtual character. This switches the control permissions of the second virtual character from the second game account to the first game account, allowing the first user to control the second virtual character based on the first game account. In other words, teammates can exchange control permissions for virtual characters, and the first user can directly control the second virtual character to assist the second user. The operation is simple and intuitive, with high assistance efficiency. This efficient assistance during battle helps shorten the total duration of a match, avoiding user fatigue and device stress caused by prolonged battles, and indirectly reducing the probability of overheating of the terminal device, thus improving the lifespan of the terminal device. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of this application, the drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0013] Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this application; Figure 2 This is a schematic flowchart of a first method for controlling a virtual character according to an embodiment of this application; Figure 3 An exemplary schematic diagram of a first display screen is shown; Figure 4 An exemplary first schematic diagram of the second display screen is shown; Figure 5 An exemplary diagram illustrating the display style changes of a second virtual character is provided. Figure 6 An exemplary illustration shows a second schematic diagram of the second display screen; Figure 7 This is a second flowchart illustrating a virtual character control method according to an embodiment of this application; Figure 8 This is a third flowchart illustrating the virtual character control method according to an embodiment of this application; Figure 9 An exemplary diagram of a second type of the first display screen is shown; Figure 10 This is a schematic diagram of the fourth process of the virtual character control method according to the embodiments of this application; Figure 11 An exemplary schematic diagram of the fourth display screen is shown; Figure 12 This is a fifth flowchart illustrating a virtual character control method according to an embodiment of this application; Figure 13 An exemplary diagram of the settlement display screen is shown; Figure 14 This is a sixth flowchart illustrating a virtual character control method according to an embodiment of this application; Figure 15 An exemplary illustration is provided of a schematic diagram of a second display screen in a second terminal device; Figure 16 This is a structural block diagram of a control device for a virtual character according to an embodiment of this application; Figure 17 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0014] 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, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0015] It should be noted that the information (including but not limited to user input information, such as information entered by the user into input boxes), data (including but not limited to data used for analysis, stored data, and displayed data, such as context code, all code of the current project, the service pressure corresponding to operations performed on all code of the current project, and the code development status of the current project), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with relevant laws, regulations, and standards. For example, the context code, operations performed on all code of the current project, the corresponding service pressure, and the code development status involved in this application were all obtained with full authorization.

[0016] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.

[0017] As one optional application scenario in the embodiments of this application, such as Figure 1 As shown, the system may include at least one terminal device and at least one server. Figure 1 The system is illustrated in the example, which includes a computer 101, a mobile terminal 102, and a server 103, and the terminal devices such as the computer 101 and the mobile terminal 102 are connected to the server 103 through a network 110.

[0018] Specifically, the terminal device can be a smartphone, tablet, laptop, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR (Virtual Reality) device, AR (Augmented Reality) device, etc. Server 103 can be a standalone physical server, a server cluster, a distributed system, or a cloud server providing cloud services. Network 110 can be a wired or wireless network, examples of which include, but are not limited to, the Internet, corporate intranet, local area network, wide area network, mobile communication network, and combinations thereof.

[0019] For example, in this embodiment of the application, a client application can be installed on the terminal device. This application can be either an application that requires downloading and installation, or an application that can be used instantly.

[0020] For example, the aforementioned application can be any application capable of providing a virtual environment for users to immerse themselves in and manipulate virtual characters within that virtual environment. For instance, the application could be a game application, such as a MOBA game, a first-person shooter (FPS) game, a third-person shooter (TPS) game, a battle royale (BR) game, or a multiplayer shooting survival game, etc. Of course, besides game applications, other types of applications can also display virtual characters to users and provide corresponding functions to them. Examples include VR applications, AR applications, 3D mapping applications, military simulation applications, social applications, and interactive entertainment applications. Optionally, the form and corresponding functions of the virtual characters provided by different applications may vary, and these can be pre-configured according to actual needs; this embodiment of the application does not limit this.

[0021] Optionally, the terminal device runs a client application of the aforementioned application. The virtual environment described above is a scene displayed (or provided) by the client application (such as a game application) when it runs on the terminal device. This virtual environment refers to a scene created for virtual characters to perform activities (such as game competitions), such as virtual houses, virtual islands, virtual maps, and virtual buildings. This virtual environment can be a simulation of the real world, a semi-simulated / semi-fictional environment, or a purely fictional environment. Optionally, the virtual environment can be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment, etc., and this application embodiment does not limit this.

[0022] The aforementioned virtual characters are virtual characters controlled by a user account within an application. Taking a game application as an example, the virtual character can be a game character controlled by a user account (i.e., a game account) within the game application. Optionally, the virtual character can be a human figure, an animal, a cartoon character, or other forms; this application embodiment does not limit this. Optionally, the virtual character can be displayed in three-dimensional or two-dimensional form; this application embodiment does not limit this. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual character is a three-dimensional model created based on animation skeletal technology. Exemplarily, each virtual character has its own shape and volume in the three-dimensional virtual environment, occupying a portion of the space in the three-dimensional virtual environment.

[0023] In one possible implementation, the aforementioned virtual characters include virtual characters belonging to the same faction and virtual characters belonging to different factions; that is, within the application, virtual characters are divided into different factions. For example, taking a shooting game as an example, ten users are matched into two teams, red and blue, with five people per team. In this case, the virtual characters in the red team belong to the same faction and are teammates, the virtual characters in the blue team belong to the same faction and are teammates, while the virtual characters in the red team belong to different factions and are enemies.

[0024] In this embodiment, different users correspond to different virtual characters. For example, a game application is installed on a terminal device, which includes a first terminal device, a second terminal device, and a third terminal device. The first terminal device runs a first client of the game application, through which a first user logs in with a first game account and controls a first virtual character to enter a game match. The second terminal device runs a second client of the game application, through which a second user logs in with a second game account and controls a second virtual character to enter a game match. The third terminal device runs a third client of the game application, through which a third user logs in with a third game account and controls a third virtual character to enter a game match. The first and second virtual characters belong to the same faction, and the first and third virtual characters belong to different factions (i.e., opposing factions). The second and third virtual characters also belong to different factions. For example, the second virtual character can be referred to as a teammate of the first virtual character, and the third virtual character can be referred to as an enemy of the first virtual character.

[0025] Optionally, the server is the backend server of the aforementioned application.

[0026] In related technologies, during gameplay, a first user can assist a second user in controlling a second virtual character through text input, voice communication, or other methods. However, these methods are cumbersome and inefficient. In this application, users can exchange control permissions for the virtual character; the first user can directly control the second virtual character to assist the second user. This is simple, intuitive, and highly efficient. The virtual character control method provided in this application will be described in detail below with reference to embodiments thereof.

[0027] According to an embodiment of this application, a method for controlling a virtual character is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0028] It should be noted that in this embodiment, the displayed content is distinguished as "display screen" and "client display screen". The display screen includes content that is displayed on different clients (referred to as shared content), while the client display screen includes shared content and content displayed only on that client. For example, the first display screen includes the perspective screen of the first virtual character, the first character control control, and the first information viewing control, collectively referred to as the first shared content; the second display screen includes the perspective screen of the second virtual character, the second character control control, and the second information viewing control, collectively referred to as the second shared content; the first display screen of the first client, in addition to the first shared content, also includes a first exchange control, a third exchange control, a first duration, a second display window, a perspective preview control, and an exchange request control; the second display screen of the first client, in addition to the second shared content, also includes a first display window, a second exchange control, a character exchange duration, a window display control, a perspective switching control, a second duration, and an exchange request control; the second display screen of the second client, in addition to the second shared content, also includes an exchange request control.

[0029] This embodiment provides a method for controlling a virtual character, which can be used in the aforementioned first terminal device, such as a smartphone, tablet computer, laptop computer, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR device, AR device, etc. Figure 2 This is a flowchart of a virtual character control method according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps: Step S201: In response to the role exchange request sent by the second client corresponding to the second virtual character, the first exchange control is displayed in the first display screen of the first client.

[0030] A role swap request is used to request an exchange of control permissions between a first virtual character and a second virtual character. The first and second virtual characters belong to the same faction and are associated with different clients. For example, the first virtual character refers to the virtual character corresponding to a first game account, and on a first terminal device, a first user controls the first virtual character based on the first game account in a first client; the second virtual character refers to the virtual character corresponding to a second game account, and on a second terminal device, a second user controls the second virtual character based on the second game account in a second client.

[0031] In this embodiment, in response to a role-swapping request, the first terminal device displays a first swapping control on a first display screen of the first client. The first display screen includes the viewpoint of a first virtual character controlled by the first client, and the first swapping control is used to exchange control permissions for the virtual character. Exemplarily, the viewpoint of the first virtual character refers to the image captured in the aforementioned virtual environment based on the viewpoint of the first virtual character.

[0032] Taking shooting games as an example, such as Figure 3 As shown, when the first terminal device receives a role-swapping request, it displays a first swap control 31 on the first display screen of the first client. For example, the first swap control 31 is displayed in a rectangular pop-up window.

[0033] For example, the first display screen also includes a first character control control that is available and a first information viewing control that is available. The first character control control is used to control the first virtual character to perform corresponding game actions, such as... Figure 3 The first shooting control 32 and the first movement control 33, etc.; the first information viewing control is used to view the character information of the first virtual character, such as Figure 3 The first backpack control 34 and the first map view control 35, etc.

[0034] In step S202, upon detecting a first operation on the first switching control, the screen is switched from the first display screen to the second display screen.

[0035] In this embodiment, after displaying the first exchange control, the first terminal device switches from the first display screen to the second display screen upon detecting a first operation on the first exchange control. The second display screen includes the viewpoint of the second virtual character. Exemplarily, the viewpoint of the second virtual character refers to the image captured within the virtual environment from the perspective of the second virtual character.

[0036] The first operation is the operation triggered by the first user mentioned above. Optionally, the first operation can be a touch operation, a voice operation, a corresponding key press operation, etc. For example, the first operation is a short press operation.

[0037] Taking shooting games as an example, such as Figure 3 and Figure 4 As shown, when the first terminal device detects a first operation on the first exchange control 31, it switches from the first display screen to the second display screen in the first client.

[0038] For example, the second display screen also includes a second character control control that is available and a second information viewing control that is available. The second character control control is used to control the second virtual character to perform corresponding game actions, such as... Figure 4 The second shooting control 41 and the second movement control 42, etc.; the second information viewing control is used to view the character information of the second virtual character, such as Figure 4 The second backpack control 43 and the second map viewing control 44, etc.

[0039] Step S203: In response to the first control operation triggered by the first client for the second virtual character, control the second virtual character to perform the first game behavior corresponding to the first control operation.

[0040] In this embodiment of the application, after switching to the second display screen, the first terminal device responds to the first control operation triggered by the first client for the second virtual character and controls the second virtual character to perform the first game behavior corresponding to the first control operation.

[0041] Optionally, after switching to the second display screen, the first game account has control over the second virtual character, and the first game account loses control over the first virtual character. The first user can control the second virtual character in the first client based on the first game account. Correspondingly, when the first terminal device detects the first control operation on the second virtual character, it controls the second virtual character to perform the first game behavior corresponding to the first control operation.

[0042] The first control operation is an operation triggered by the first user based on the second character control control. Optionally, the first control operation can be a touch operation, voice operation, corresponding key press operation, etc. For example, the first control operation is an operation targeting the second character control control (such as a short press operation, drag operation, etc.). Different second character control controls correspond to different game behaviors. For example, if the first control operation is targeting... Figure 4 A short press of the second shooting control 41 results in the first game action being shooting; if the first control action is targeting... Figure 4 If the drag operation of the second movement control 42 is performed, then the first game behavior is movement.

[0043] Optionally, in this embodiment, in other terminal devices corresponding to other virtual characters, the second virtual character is displayed in a first display style before the control permissions of the second virtual character are exchanged, and in a second display style after the control permissions of the second virtual character are exchanged. The other virtual characters include the second virtual character's teammate virtual characters and / or enemy virtual characters.

[0044] For example, the first display style includes the second game account name, and the second display style includes the first game account name. Figure 5 As shown, the first display style 51 includes the character model 52 of the second virtual character and the second game account name 53. After the control permissions are exchanged, the second display style 54 includes the character model 52 of the second virtual character and the first game account name 55. Here, the second game account name refers to the name used by the second game account, and correspondingly, the first game account name refers to the name used by the first game account.

[0045] It should be noted that, regarding the exchange of control permissions, the second terminal device responds to the first operation on the first exchange control by switching from the second display screen to the first display screen. Afterwards, the second game account gains control permissions over the first virtual character, and loses control permissions over the second virtual character. The second user, based on this second game account, can then control the first virtual character on the second terminal device. Optionally, the first display screen of the first client further includes a third switching control. The third switching control is used to stop responding to the role-switching request. In this embodiment, the first terminal device, in response to the role-switching request, displays the third switching control in the first display screen of the first client; furthermore, upon detecting a first operation on the third switching control, the first display screen remains unchanged.

[0046] Taking shooting games as an example, such as Figure 3As shown, the first display screen of the first client includes a third switching control 36. Upon detecting a first operation on the third switching control 36, the first terminal device determines to reject the character switching request. The first game account retains control over the first virtual character, and the first display screen continues to be displayed. For example, the third switching control 36 is displayed in the aforementioned rectangular pop-up window.

[0047] The virtual character control method provided in this embodiment switches the viewpoint from the first virtual character to the second virtual character through a character exchange request corresponding to the second virtual character. This switches the control permissions of the second virtual character from the second game account to the first game account, allowing the first user to control the second virtual character based on their first game account. In other words, teammates can exchange control permissions for virtual characters, and the first user can directly control the second virtual character to assist the second user. The operation is simple and intuitive, with high assistance efficiency. This efficient assistance during battle helps shorten the total duration of a match, avoiding user fatigue and device stress caused by prolonged battles, and indirectly reducing the probability of overheating of the terminal device, thus improving its lifespan.

[0048] In addition, the third exchange control stops the response to character switching requests. That is, there are agree control (first exchange control) and refuse control (third exchange control) for character switching requests, which makes the exchange of control permissions of virtual characters more flexible. During the battle, the decision to exchange control permissions can be made based on the specific situation, which improves the overall strategy and flexibility of the battle.

[0049] In addition, on other terminal devices, changing the display style can clearly indicate whether the virtual character has exchanged control permissions, which helps maintain the fairness and balance of the battle.

[0050] In an exemplary embodiment, step S202 includes: Step S2021: Display the perspective view of the second virtual character in the second display screen.

[0051] In this embodiment of the application, when the first terminal device displays the second display screen, it displays the perspective view of the second virtual character in the second display screen. Optionally, the first terminal device captures the perspective view of the second virtual character in a virtual environment using a virtual camera.

[0052] Taking a first-person shooter game as an example, in a virtual environment, a virtual camera is set at the eye area of ​​the second virtual character to capture the viewpoint of the second virtual character and display the viewpoint of the second virtual character on the second display screen.

[0053] Taking a third-person shooter game as an example, in a virtual environment, a virtual camera is set above and behind the head of a second virtual character to capture the viewpoint of the second virtual character and display the viewpoint of the second virtual character on a second display screen.

[0054] Step S2022: Display the first display window in the second display screen of the first client; and display the first attribute information in the first display window.

[0055] The first display window is used to display the attribute information of the virtual character that does not have control permissions in the first virtual character and the second virtual character after the control permissions are exchanged.

[0056] In this embodiment of the application, when the first terminal device displays the aforementioned second display screen, a first display window is displayed in the second display screen of the first client; and first attribute information is displayed in the first display window. The first attribute information is used to indicate the attributes of the first virtual character. Exemplarily, the first attribute information includes, but is not limited to, at least one of the following: the first virtual character's health bar, the first virtual character's health value, the first virtual character's energy bar, and the first virtual character's energy value.

[0057] Taking shooting games as an example, such as Figure 6 As shown, the second display screen of the first client includes a first display window 60, which includes a life bar 61 of the first virtual character.

[0058] Optionally, in this embodiment, the first display window further includes the perspective view of the first virtual character; that is, when the first terminal device displays the second display screen of the first client, the perspective view of the first virtual character is displayed in the first display window. Taking a shooting game as an example... Figure 6 As shown, the first display window 60 includes the view 62 of the first virtual character. It should be noted that, since the first display window is displayed within the second display screen of the first client, the first display window scales to show the view of the first virtual character.

[0059] The virtual character control method provided in this embodiment displays the attributes of the first virtual character through a first display window. When controlling the second virtual character, the attributes of the first virtual character can be reflected intuitively and promptly based on the first display window.

[0060] In addition, by displaying the perspective of the first virtual character through the first display window, when controlling the second virtual character, the changes in the battle situation of the first virtual character can be displayed more intuitively through the display of the perspective of the first virtual character.

[0061] In one possible implementation, the exchange of control permissions for the virtual character is stopped by a second exchange control.

[0062] Optionally, in this embodiment, the second display screen of the first client includes a second exchange control, which is used to stop the exchange of control permissions for the virtual character. Upon detecting a first operation on the second exchange control, the first terminal device switches from the second display screen to the first display screen; furthermore, in response to a second control operation on the first virtual character, it controls the first virtual character to perform a second game action corresponding to the second control operation.

[0063] Taking shooting games as an example, such as Figure 3 and Figure 6 As shown, the second display screen of the first client includes a second switching control 63. Upon detecting a first operation on the second switching control 63, the first terminal device switches back from the second display screen to the first display screen. Exemplarily, the second switching control 63 is displayed in the first display window 60.

[0064] The second control operation is an operation triggered by the first user based on the first character control control. Optionally, the second control operation can be a touch operation, voice operation, corresponding key press operation, etc. For example, the second control operation is an operation targeting the first character control control (such as a short press operation, drag operation, etc.). Different first character control controls correspond to different game behaviors. For example, if the second control operation is targeting... Figure 3 A short press of the first shooting control 32 will result in a shooting action as the second game action; if the second control action is aimed at... Figure 3 If the drag operation of the first movement control 33 is performed, then the second game behavior is movement.

[0065] The virtual character control method provided in this embodiment can stop the exchange of control permissions for the virtual character through the second exchange control, so that the control permissions of the first virtual character are returned to the first game account, making the exchange of control permissions for the virtual character more flexible.

[0066] In another possible implementation, the exchange of control permissions for the virtual character is stopped when the role exchange period ends.

[0067] Optionally, in this embodiment, the second display screen of the first client includes a role-swapping duration. The role-swapping duration refers to the real-time duration for the exchange of control permissions between the first virtual character and the second virtual character. The first terminal device switches from the second display screen to the first display screen when the role-swapping duration meets a preset duration condition. For example, the preset duration condition is reaching a preset duration. The preset duration refers to the total duration allowed for the exchange of control permissions between the first virtual character and the second virtual character. For example, the preset duration can be any value, such as 5 minutes, 4 minutes, 3 minutes, etc., and can be flexibly set and adjusted according to actual conditions; this embodiment does not limit this.

[0068] Taking shooting games as an example, such as Figure 3 and Figure 6 As shown, the second display screen of the first client includes a role-switching duration of 64. When the role-switching duration meets the preset duration condition, the first terminal device switches back from the second display screen to the first display screen.

[0069] Optionally, in this embodiment, the second display screen of the first client includes a window display control, which is used to display the first display window in the second display screen of the first client. The first terminal device, in response to a first operation on the window display control, displays the first display window in the second display screen of the first client. Optionally, the first terminal device determines the display style of the window display control based on the identifier of the second virtual character; that is, the identifier of the second virtual character is used as the display style of the window display control. For example, the identifier of the second virtual character includes, but is not limited to, at least one of the following: a second game account name, a second game account avatar, etc.

[0070] Taking shooting games as an example, such as Figure 5 and Figure 6 As shown, the second display screen of the first client uses the second game account avatar as the display style of the window display control 45. When the first terminal device detects the first operation on the window display control 45, it displays the first display window 60 in the second display screen of the first client.

[0071] The virtual character control method provided in this embodiment has a character exchange duration corresponding to the exchange of control permissions. When the remaining time is zero, the exchange of control permissions for the virtual character ends, which helps to maintain the fairness and balance of the overall battle.

[0072] Furthermore, displaying the first display window within the second display screen via a window display space, and summoning the first display window when needed, improves the cleanliness of the second display screen and reduces the obstruction of the second display screen by the first display window. Additionally, the display style of the window display control is determined based on the identifier of the second virtual character. Beyond simply summoning the first display window, the window display control can also identify the second virtual character, enriching its functionality. Moreover, the multi-functional space further contributes to the cleanliness of the second display screen.

[0073] This embodiment provides a method for controlling a virtual character, which can be used in the aforementioned first terminal device, such as a smartphone, tablet computer, laptop computer, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR device, AR device, etc. Figure 7 This is a flowchart of a virtual character control method according to an embodiment of this application, such as... Figure 7 As shown, the process includes the following steps: Step S701: In response to the role exchange request sent by the second client corresponding to the second virtual character, the first exchange control is displayed in the first display screen of the first client.

[0074] In step S702, upon detecting a first operation on the first switching control, the screen is switched from the first display screen to the second display screen.

[0075] Step S703: In response to the first control operation triggered by the first client for the second virtual character, control the second virtual character to perform the first game behavior corresponding to the first control operation.

[0076] The above steps S701-703 and Figure 2 Steps S201-203 in the embodiment are similar; see details below. Figure 2 Examples are not detailed here.

[0077] In step S704, upon detecting an operation on the view switching control, the screen is switched from the second display screen to the third display screen.

[0078] In this embodiment, the second display screen includes a perspective switching control. This perspective switching control is used to control the perspective switching of the display screen when control permissions are exchanged.

[0079] In this embodiment, after the control permissions are exchanged, the first terminal device switches from the second display screen to the third display screen upon detecting an operation on the view switching control. The third display screen includes a first information viewing control and a view of the first virtual character. The first information viewing control is used to view the character information of the first virtual character.

[0080] Optionally, in this embodiment, the view switching control is a window display control, and the operation on the view switching control is a second operation on the window display control.

[0081] The second operation is the operation triggered by the first user. Optionally, the second operation can be a touch operation, a voice operation, a corresponding key press operation, etc. For example, the second operation is a long press operation.

[0082] Taking shooting games as an example, such as Figure 5 As shown, when the first terminal device detects a long press operation on the window display control 45, it switches from the second display screen to the third display screen.

[0083] Step S705: In response to the first operation on the first information viewing control, the first role information corresponding to the first information viewing control is displayed on the third display screen.

[0084] In this embodiment, after switching to the third display screen, the first terminal device responds to the first operation on the first information viewing control and displays the first character information corresponding to the first information viewing control on the third display screen. The character information of the first virtual character includes first character information. Exemplarily, the character information of the first virtual character includes, but is not limited to, at least one of the following: the location of the first virtual character, the virtual items possessed by the first virtual character, and the attributes of the first virtual character.

[0085] Optionally, in the third display screen, the first information viewing control is enabled, such as... Figure 3 The first backpack control 34 and the first map viewing control 35, etc., are included in the third display screen. Optionally, the third display screen also includes a first character control control that is in an unavailable state, such as a character control that is in an unavailable state. Figure 3 The first shooting control 32 and the first moving control 33 are shown in the diagram. For the same control, the display styles for the available and unavailable states are different. For example, as shown... Figure 11 and Figure 4When the control permissions between the first virtual character and the second virtual character have not been exchanged, the second shooting control 41 and the second movement control 42 are displayed in a disabled style on the fourth display screen 111. After the control permissions between the first virtual character and the second virtual character have been exchanged, the second shooting control 41 and the second movement control 42 are displayed in an available style on the second display screen of the first client. Furthermore, for the second information viewing control, the display style of the second information viewing control 113 (including the second backpack control 43 and the second map viewing control 44) is consistent in both the fourth display screen 111 and the second display screen of the first client, and both are available styles.

[0086] The virtual character control method provided in this embodiment uses a perspective switching control to switch the viewpoint of the display screen while maintaining the exchange of control permissions. That is, when controlling the second virtual character, the perspective switching control can be used to switch back to the perspective of the first virtual character and view the character information of the first virtual character, which improves the overall flexibility of the battle.

[0087] In addition, by performing a second operation on the window display control, the viewpoint of the display screen can be switched while the control permissions are kept exchanged. Different functions can be achieved by performing different operations on the same control, which helps to improve the cleanliness of the second display screen.

[0088] This embodiment provides a method for controlling a virtual character, which can be used in the aforementioned first terminal device, such as a smartphone, tablet computer, laptop computer, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR device, AR device, etc. Figure 8 This is a flowchart of a virtual character control method according to an embodiment of this application, such as... Figure 8 As shown, the process includes the following steps: Step S801: In response to the role exchange request sent by the second client corresponding to the second virtual character, the first exchange control is displayed in the first display screen of the first client.

[0089] The above steps S801 and Figure 2 Step S201 in the embodiment is similar; see details below. Figure 2 Examples are not detailed here.

[0090] In step S802, upon detecting a first operation on the first exchange control, a first duration is displayed on the first display screen of the first client.

[0091] The first duration refers to the time spent waiting for the exchange of control permissions after it is determined that an exchange of control permissions will take place. In this embodiment of the application, after displaying the aforementioned first exchange control, the first terminal device displays the first duration in the first display screen of the first client when it detects a first operation on the first exchange control.

[0092] Optionally, in this embodiment, if the first terminal device has not yet completed the first duration, it displays a second display window on the first display screen of the first client. The second display window is used to display the viewpoint of the virtual character without control permissions between the first virtual character and the second virtual character before the control permissions are exchanged.

[0093] Taking shooting games as an example, such as Figure 3 and Figure 9 As shown, when the first terminal device detects a first operation on the first exchange control 31, it displays a second display window 90 in the first display screen of the first client. The second display window 90 includes a first duration 91 and a second virtual character's perspective view 92.

[0094] Similarly, in this embodiment, when the first terminal device detects a first operation on the second exchange control, it displays a second duration on the second display screen of the first client. The second duration refers to the time spent waiting for a control permission exchange after determining that the control permission has stopped. Then, when the second duration ends, the first terminal device switches from the second display screen to the first display screen.

[0095] Optionally, the first duration and the second duration can be any duration. The first duration and the second duration can be flexibly set and adjusted according to the actual situation. This application embodiment does not limit this.

[0096] In step S803, when the first duration ends, switch from the first display screen to the second display screen.

[0097] In this embodiment of the application, after displaying the first duration, the first terminal device switches from the first display screen to the second display screen when the first duration ends.

[0098] Step S804: In response to the first control operation triggered by the first client for the second virtual character, control the second virtual character to perform the first game behavior corresponding to the first control operation.

[0099] The above steps S804 and Figure 2 Step S203 in the embodiment is similar; see details below. Figure 2 Examples are not detailed here.

[0100] The virtual character control method provided in this embodiment displays a first duration on the first display screen when a first operation on the first exchange control is detected. When the first duration ends, the method switches from the first display screen to the second display screen. When the control permission is switched, the first duration is set as a waiting duration. While allowing the first terminal device time to switch control permissions, the waiting duration is directly displayed to reduce the user's waiting anxiety.

[0101] In addition, when a first operation is detected on the second switching control, a second duration is displayed on the second display screen. When the second duration ends, the screen switches from the second display screen to the first display screen. This allows the first terminal device time to switch control permissions while directly displaying the waiting duration to reduce user anxiety.

[0102] In addition, if the first duration has not ended, a second display window is displayed on the first display screen, and then the view of the second virtual character is displayed in the second display window, so that the first user can preview the view of the second virtual character in advance, which is beneficial for the first user to quickly control the second virtual character after the control permissions are exchanged.

[0103] This embodiment provides a method for controlling a virtual character, which can be used in the aforementioned first terminal device, such as a smartphone, tablet computer, laptop computer, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR device, AR device, etc. Figure 10 This is a flowchart of a virtual character control method according to an embodiment of this application, such as... Figure 10 As shown, the process includes the following steps: Step S1001: In response to the role exchange request sent by the second client corresponding to the second virtual character, display the view preview control in the first display screen of the first client.

[0104] In this embodiment, in response to the aforementioned role-swapping request, the first terminal device displays a view preview control on the first display screen of the first client. The view preview control is used to control the viewpoint switching of the display screen before the control permissions are swapped, while the control permissions remain unchanged.

[0105] Step S1002, in response to the first operation on the view preview control, switch from the first display screen to the fourth display screen.

[0106] In this embodiment, when the aforementioned perspective switching control is displayed, the first terminal device responds to a first operation on the perspective preview control by switching from the first display screen to the fourth display screen. The fourth display screen includes the perspective view of the second virtual character and a second information viewing control, which is used to view the character information of the second virtual character.

[0107] Taking shooting games as an example, such as Figure 3 and Figure 11 As shown, when the first terminal device receives a role-swapping request, it displays a view preview control 37 on the first display screen of the first client. Upon detecting a first operation on the view preview control 37, it switches from the first display screen to the fourth display screen 111. The fourth display screen 111 includes the view screen 112 of the second virtual character and the second information viewing control 113. For example, as... Figure 11 As shown, in the fourth display screen 111, the second information viewing control 112 is in an available state. The fourth display screen 111 also includes second character control controls that are in an unavailable state, such as the second shooting control 41 and the second movement control 42. Among them, the second character control controls are used to control the second virtual character to perform corresponding game behaviors.

[0108] Optionally, in this embodiment, the fourth display screen includes a third display window. The third display window is used to display the view of the virtual character with control authority between the first and second virtual characters before the control permissions are exchanged. The first terminal device, in response to a first operation on the view preview control, displays the third display window in the fourth display screen; and displays the view of the first virtual character in the third display window. Taking a shooting game as an example, such as... Figure 11 As shown, the fourth display screen 111 displays a third display window 114, and the third display window 114 includes the view screen 115 of the first virtual character.

[0109] For example, such as Figure 11 As shown, the fourth display screen 11 also includes a first exchange control 116 and a third exchange control 117.

[0110] Optionally, in this embodiment, the first terminal device changes the display style of the third display window when it detects a preset interaction event targeting the first virtual character. For example, the first terminal device changes the display style of the third display window by highlighting it in red. For example, the preset interaction event is an attack by the third virtual character on the first virtual character. The third virtual character and the first virtual character belong to different factions. Of course, in practical applications, the preset interaction event can be flexibly set and adjusted, and this embodiment does not limit this.

[0111] Step S1003: In response to the first operation on the second information viewing control, the second role information corresponding to the second information viewing control is displayed in the fourth display screen.

[0112] In this embodiment, when the second information viewing control is displayed, the first terminal device responds to a first operation on the second information viewing control and displays the second character information corresponding to the second information viewing control in a fourth display screen. The character information of the second virtual character includes second character information.

[0113] Step S1004: In response to the role exchange request sent by the second client corresponding to the second virtual character, the first exchange control is displayed in the first display screen of the first client.

[0114] Step S1005: Upon detecting a first operation on the first switching control, switch from the first display screen to the second display screen.

[0115] Step S1006: In response to the first control operation triggered by the first client for the second virtual character, control the second virtual character to perform the first game behavior corresponding to the first control operation.

[0116] The above steps S1004-1006 and Figure 2 Steps S201-203 in the embodiment are similar; see details below. Figure 2 Examples are not detailed here.

[0117] The virtual character control method provided in this embodiment allows the user to preview the character information of the second virtual character in advance after receiving a character exchange request through a view preview control. This enables the first user to have prior knowledge of the second virtual character's character information, which is beneficial for the first user to quickly control the second virtual character after the control permissions are exchanged.

[0118] In addition, while previewing the character information of the second virtual character, the view of the first virtual character is displayed through a third display window. In the event of an attack, the display style of the third display window is changed so that the first user can quickly notice the changes in the first virtual character.

[0119] This embodiment provides a method for controlling a virtual character, which can be used in the aforementioned first terminal device, such as a smartphone, tablet computer, laptop computer, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR device, AR device, etc. Figure 12 This is a flowchart of a virtual character control method according to an embodiment of this application, such as... Figure 12 As shown, the process includes the following steps: Step S1201: If control permissions have not been exchanged, calculate the first battle record information.

[0120] In this embodiment, the first terminal device compiles first battle record information when control permissions have not been exchanged. This first battle record information indicates the battle record of the first virtual character against an enemy virtual character when control permissions have not been exchanged.

[0121] For example, performance record includes, but is not limited to, at least one of the following: number of kills, damage dealt, number of assists, etc.

[0122] In step S1202, in response to the role exchange request sent by the second client corresponding to the second virtual character, the first exchange control is displayed in the first display screen of the first client.

[0123] Step S1203: Upon detecting a first operation on the first switching control, switch from the first display screen to the second display screen.

[0124] Step S1204: In response to the first control operation triggered by the first client for the second virtual character, control the second virtual character to perform the first game behavior corresponding to the first control operation.

[0125] The above steps S1202-1204 and Figure 2 Steps S201-203 in the embodiment are similar; see details below. Figure 2 Examples are not detailed here.

[0126] Step S1205: If control permissions have been exchanged, compile the second battle results information.

[0127] In this embodiment, the first terminal device compiles second battle record information when the control display has been exchanged. This second battle record information indicates the battle record of the first virtual character against the opposing virtual character during the control permission exchange.

[0128] Step S1206: In the battle results screen, the first battle record information, the second battle record information, and the identifier of the second virtual character corresponding to the second battle record information are displayed.

[0129] Optionally, when a game ends, the first terminal device displays the game results screen.

[0130] In this embodiment, the first terminal device displays first battle result information, second battle result information, and an identifier of a second virtual character corresponding to the second battle result information in the battle result screen. The identifier of the second virtual character indicates that the second battle result information was generated by a second user corresponding to the second virtual character.

[0131] Taking shooting games as an example, such as Figure 13 As shown, the battle results screen 1300 displays the first kill count 1301 and the second kill count 1302. The second kill count 1302 is marked using the aforementioned second game account avatar 1303.

[0132] The virtual character control method provided in this embodiment indicates in the battle settlement screen that the second battle record information is caused by the second user corresponding to the second virtual character, and intuitively displays the battle record information before and after the exchange of control permissions. The contribution of different users in the battle can be accurately and intuitively determined through the settlement screen.

[0133] Below, as Figure 14 As shown, the control method of the virtual character in this application is described from an interactive perspective, specifically including the following steps: In step S1401, an exchange request control is displayed on the second terminal device.

[0134] In this embodiment of the application, before the control permissions of the virtual character are exchanged, an exchange request control is displayed on the second terminal device. This exchange request control is used to trigger the generation of the aforementioned character exchange request.

[0135] Optionally, the second client of the second terminal device displays a second display screen, which includes an exchange request control.

[0136] In one possible implementation, the second terminal device displays a switch request control when the match data of the first virtual character and the match data of the second virtual character meet the switching conditions. Exemplarily, the match data includes, but is not limited to, at least one of the following: kill count, single-instance damage value, total damage value in the match, etc. Exemplarily, the switching conditions include, but are not limited to, at least one of the following: the difference in kill count is greater than a kill threshold, the difference in single-instance damage value is greater than a damage threshold, the difference in total damage value in the match is greater than a cumulative threshold, etc. Exemplarily, the kill threshold, damage threshold, and cumulative threshold can be any values, and can be flexibly set and adjusted according to actual conditions; this application embodiment does not limit this.

[0137] In another possible implementation, the second terminal device displays a trade request control upon detecting a use operation on a target virtual item. The target virtual item is used to invoke the trade request control. Optionally, the target virtual item can be collected from the virtual environment or it can be provided at the start of the game.

[0138] Optionally, in this embodiment of the application, when the game data of the first virtual character and the game data of the second virtual character meet the switching conditions, a switch request control is displayed on the second display screen of the second client in the second terminal device; at the same time, a switch request control is displayed on the first display screen of the first client in the first terminal device.

[0139] In step S1402, the second terminal device responds to the first operation on the exchange request control by sending a role exchange request to the first terminal device.

[0140] In this embodiment of the application, after the above-mentioned exchange request control is displayed, the second terminal device responds to the first operation on the exchange request control and sends a role exchange request to the first terminal device.

[0141] Taking shooting games as an example, such as Figure 15 and Figure 3 As shown, when the game data of the first virtual character and the game data of the second virtual character meet the switching conditions, the second terminal device displays the exchange request control 1501 in the second display screen of the second client; further, in response to the first operation on the exchange request control 1501, the second terminal device sends a character exchange request to the first terminal device; correspondingly, the first terminal device displays the first exchange control 31 in the first display screen of the first client.

[0142] In step S1403, the first terminal device responds to the role exchange request sent by the second client corresponding to the second virtual character and displays the first exchange control in the first display screen of the first terminal.

[0143] In step S1404, when the first terminal device detects a first operation on the first switching control, it switches from the first display screen to the second display screen.

[0144] The above steps S1403-1404 and Figure 2 Steps S201-202 in the embodiment are similar; see details below. Figure 2 Examples are not detailed here.

[0145] In step S1405, the first terminal device sends an agreement exchange message to the second terminal device.

[0146] In this embodiment, upon detecting a first operation on the first exchange control, the first terminal device sends consent exchange information to the second terminal device. This consent exchange information indicates agreement to exchange control permissions for the first virtual character and the second virtual character.

[0147] In step S1406, the second terminal device switches from the second display screen to the first display screen based on the agreed exchange information.

[0148] In this embodiment of the application, after receiving the aforementioned consent exchange information, the second terminal device switches from the second display screen to the first display screen based on the consent exchange information.

[0149] In step S1407, the first terminal device responds to the first control operation triggered by the first client for the second virtual character and controls the second virtual character to perform the first game behavior corresponding to the first control operation.

[0150] The above steps S1407 and Figure 2 Step S203 in the embodiment is similar; see details below. Figure 2 Examples are not detailed here.

[0151] In step S1408, the second terminal device responds to the second control operation triggered by the second client for the first virtual character, and controls the first virtual character to perform the second game behavior corresponding to the second control operation.

[0152] In this embodiment of the application, after the second terminal device switches to the first display screen, it responds to the second control operation for the first virtual character and controls the first virtual character to perform the second game behavior corresponding to the second control operation.

[0153] In step S1409, the first terminal device switches from the second display screen to the first display screen upon detecting a first operation on the second exchange control.

[0154] In this embodiment of the application, after the control permissions are exchanged, the first terminal device switches from the second display screen to the first display screen when it detects the first operation on the second exchange control.

[0155] In step S1410, the first terminal device sends an exchange stop message to the second terminal device.

[0156] In this embodiment, upon detecting a first operation on the second exchange control, the first terminal device sends an exchange stop message to the second terminal device. This exchange stop message instructs the cessation of the exchange of control permissions between the first and second virtual characters.

[0157] In step S1411, the second terminal device switches from the first display screen to the second display screen based on the exchange stop information.

[0158] In this embodiment of the application, after receiving the aforementioned exchange stop information, the second terminal device switches from the first display screen to the second display screen based on the exchange stop information.

[0159] The virtual character control method provided in this embodiment improves interactivity during battles by triggering a character exchange request through a second terminal device.

[0160] In addition, when the power gap between the first and second virtual characters meets the switching conditions, the exchange request control is displayed. That is, the exchange request control is automatically displayed when the power gap is too large, and only when there is a need for assistance, which helps to ensure the simplicity of the display screen. Moreover, the exchange request control can also be triggered by the target virtual item, making the display of the exchange request control more flexible. This makes the preconditions for exchanging control more flexible, thereby improving the strategy and flexibility of the battle.

[0161] This embodiment also provides a control device for a virtual character, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0162] This embodiment provides a control device for a virtual character, such as... Figure 16 As shown, it includes: The first display module 1601 is used to respond to a role exchange request sent by the second client corresponding to the second virtual character and display a first exchange control in the first display screen of the first client; wherein, the first display screen includes the view of the first virtual character controlled by the first client, and the first virtual character and the second virtual character belong to the same faction; The screen switching module 1602 is used to switch from a first display screen to a second display screen when a first operation is detected on the first switching control; wherein the second display screen includes the view of the second virtual character; The first control module 1603 is used to respond to a first control operation triggered by the first client on the second virtual character, and control the second virtual character to perform the first game behavior corresponding to the first control operation.

[0163] In some alternative implementations, the screen switching module 1602 includes: A viewpoint display unit is used to display the viewpoint of the second virtual character in the second display screen; The first window display unit is used to display a first display window in a second display screen in the first client; and to display first attribute information in the first display window, the first attribute information being used to indicate the attributes of the first virtual character.

[0164] In some optional implementations, a first window display unit is used to display the view of the first virtual character in a first display window.

[0165] In some optional implementations, the second display screen of the second client includes a second switching control, which is used to stop the switching of control permissions for the virtual character; the device further includes: The screen return module is used to switch from the second display screen to the first display screen upon detecting a first operation on the second switching control; The second control module is used to respond to a second control operation triggered by the first client on the first virtual character, and to control the first virtual character to perform the second game behavior corresponding to the second control operation.

[0166] In some optional implementations, the second display screen includes a character switching duration; a screen return module is used to switch from the second display screen to the first display screen when the character interaction duration meets a preset duration condition.

[0167] In some optional implementations, the second display screen of the first client includes a window display control for displaying the first display window in the second display screen; and a first window display unit for displaying the first display window in the second display screen of the first client in response to a first operation on the window display control.

[0168] In some alternative embodiments, the apparatus further includes: The style determination module is used to determine the display style of window display controls based on the identifier of the second virtual character.

[0169] In some optional implementations, the second display screen of the first client includes a perspective switching control; wherein the perspective switching control is used to control the perspective switching of the display screen when control permissions are maintained and exchanged; the device further includes: The perspective switching module is used to switch from the second display screen to the third display screen when an operation on the perspective switching control is detected; wherein, the third display screen includes a first information viewing control and the perspective screen of the first virtual character, and the first information viewing control is used to view the character information of the first virtual character; The first viewing module is used to respond to a first operation on the first information viewing control and display the first role information corresponding to the first information viewing control in the third display screen; wherein, the role information of the first virtual role includes the first role information.

[0170] In some alternative implementations, the view switching control is a window display control, and the operation on the view switching control is a second operation on the window display control.

[0171] In some alternative implementations, the screen switching module 1602 is configured to display a first duration on a first display screen of a first client when a first operation on a first switching control is detected; and to switch from the first display screen to a second display screen when the first duration ends.

[0172] In some alternative implementations, the screen return module is configured to display a second duration on a second display screen of the first client upon detecting a first operation on the second exchange control; and to switch from the second display screen to the first display screen upon the end of the second duration.

[0173] In some alternative embodiments, the apparatus further includes: The perspective display module is used to display a second display window on the first display screen of the first client when the first duration has not ended; and to display the perspective view of the second virtual character in the second display window.

[0174] In some alternative embodiments, the apparatus further includes: The control display module is used to display a view preview control in the first display screen of the first client; wherein, the view preview control is used to control the view switching of the display screen before the control permissions are exchanged and the control permissions remain unchanged. The view preview module is used to switch from the first display screen to the fourth display screen in response to a first operation on the view preview control; wherein, the fourth display screen includes the view screen of the second virtual character and a second information viewing control, the second information viewing control is used to view the character information of the second virtual character; The second viewing module is used to respond to the first operation on the second information viewing control and display the second role information corresponding to the second information viewing control in the fourth display screen; wherein, the role information of the second virtual role includes the second role information.

[0175] In some alternative embodiments, the apparatus further includes: The window display module is used to display the third display window in the fourth display screen; and to display the view of the first virtual character in the third display window; The window modification module is used to change the display style of a third display window when a third virtual character attacks a first virtual character; wherein the third virtual character and the first virtual character belong to different factions.

[0176] In some alternative implementations, a swap request control is displayed in the second terminal device; in response to a first operation on the swap request control, a role swap request is sent.

[0177] In some alternative implementations, the second terminal device displays a swap request control when the game data of the first virtual character and the game data of the second virtual character meet the switching conditions; or, the second terminal device displays a swap request control when it detects an operation to use a target virtual item.

[0178] In some alternative embodiments, the apparatus further includes: The response rejection module is used to display a third switching control in the first display screen of the first client, wherein the third switching control is used to stop the response operation to the role switching request; The screen holding module is used to keep the first display screen unchanged when a first operation is detected for the third switching control.

[0179] In some optional implementations, in other terminal devices corresponding to other virtual characters, the second virtual character is displayed in a first display style before the control permissions of the second virtual character are exchanged, and in a second display style after the control permissions of the second virtual character are exchanged.

[0180] In some alternative embodiments, the apparatus further includes: The first statistics module is used to collect first battle record information when control permissions have not been exchanged; wherein, the first battle record information is used to indicate the battle record of the first virtual character against the enemy virtual character when control permissions have not been exchanged. The second statistics module is used to collect second battle record information when control permissions have been exchanged; wherein, the second battle record information is used to indicate the battle record of the first virtual character against the enemy virtual character when control permissions are exchanged. The settlement display module is used to display the first battle result information, the second battle result information, and the identifier of the second virtual character corresponding to the second battle result information in the battle settlement screen; wherein, the identifier of the second virtual character is used to indicate that the second battle result information was caused by the second user corresponding to the second virtual character.

[0181] The virtual character control device provided in this application embodiment can execute the virtual character control method provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0182] Figure 17 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0183] The following is a detailed reference. Figure 17The diagram illustrates a structural schematic suitable for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 1701, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1702 or a program loaded from memory 1708 into random access memory (RAM) 1703. The RAM 1703 also stores various programs and data required for the operation of the electronic device. The processor 1701, ROM 1702, and RAM 1703 are interconnected via bus 1704. An input / output (I / O) interface 1705 is also connected to bus 1704.

[0184] Typically, the following devices can be connected to I / O interface 1705: input devices 1706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 1707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 1708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1709. Communication device 1709 allows electronic devices to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 17 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.

[0185] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 1709, or installed from memory 1708, or installed from ROM 1702. When the computer program is executed by processor 1701, it performs the functions defined in the virtual character control method of embodiments of this application.

[0186] Figure 17 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0187] This application also provides a computer-readable storage medium. The methods described in this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the virtual character control method shown in the above embodiments is implemented.

[0188] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0189] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A control method of a virtual character, characterized by, The method comprises: in response to a role exchange request sent by a second virtual role corresponding to a second client, displaying a first exchange control in a first display screen of the first client; wherein the first display screen comprises a perspective screen of the first virtual role controlled by the first client, and the first virtual role and the second virtual role belong to the same camp; in the case where a first operation for the first exchange control is detected, switching from the first display screen to a second display screen; wherein the second display screen comprises a perspective screen of the second virtual role; in response to a first control operation for the second virtual role triggered by the first client, controlling the second virtual role to perform a first game behavior corresponding to the first control operation.

2. The method of claim 1, wherein, The switching from the first display screen to a second display screen in the first client comprises: displaying a perspective screen of the second virtual role in the second display screen; displaying a first display window in the second display screen of the first client, and displaying first attribute information in the first display window, wherein the first attribute information is used to indicate the attribute of the first virtual role.

3. The method of claim 2, wherein, The method further comprises: displaying a perspective screen of the first virtual role in the first display window.

4. The method of claim 1, wherein, The second display screen of the second client comprises a second exchange control, which is used to stop the exchange of the control authority of the virtual role; The method further comprises: in the case where a first operation for the second exchange control is detected, switching from the second display screen to the first display screen; in response to a second control operation for the first virtual role triggered by the first client, controlling the first virtual role to perform a second game behavior corresponding to the second control operation.

5. The method of claim 1, wherein, The second display screen of the first client comprises a role exchange duration; The method further comprises: in the case where the role interaction duration meets a preset duration condition, switching from the second display screen to the first display screen.

6. The method of claim 2, wherein, The second display screen of the first client comprises a window display control; The displaying of the first display window in the second display screen comprises: in response to a first operation for the window display control, displaying the first display window in the second display screen of the first client.

7. The method of claim 6, wherein, The method further comprises: based on the identity of the second virtual role, determining the display style of the window display control.

8. The method of claim 1, wherein, The second display screen of the first client comprises a perspective switching control; wherein the perspective switching control is used to control the display screen to switch the perspective when the control authority remains exchanged; The method further comprises: in the case where an operation for the perspective switching control is detected, switching from the second display screen to a third display screen; wherein the third display screen comprises a first information viewing control and a perspective screen of the first virtual role, and the first information viewing control is used to view the role information of the first virtual role; In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role.

9. The method according to claim 6 or 8, characterized in that, The view angle switching control is a window display control, and the operation on the view angle switching control is a second operation on the window display control.

10. The method of claim 1, wherein, The step of switching from the first display screen to a second display screen upon detecting a first operation on the first switching control comprises: In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role. In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role.

11. The method according to claim 4 or 10, characterized in that, The step of switching from the second display screen to the first display screen upon detecting a first operation on the second switching control comprises: In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role. In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role.

12. The method of claim 10, wherein, The method further comprises: In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role.

13. The method of claim 1, wherein, In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role. In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role. In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role. In response to a first operation on the first information viewing control, first role information corresponding to the first information viewing control is displayed in the third display screen; and the first role information is included in role information of the first virtual role.

14. The method of claim 13, wherein, The second terminal device displays a switching request control; and in response to a first operation on the switching request control, the role switching request is sent.

16. The method of claim 15, wherein, ​ 15. The method of claim 1, wherein, ​ ​ The second terminal device displays the exchange request control in a case where the game data of the first virtual role and the game data of the second virtual role satisfy a switching condition. The second terminal device displays the exchange request control in a case where a use operation for a target virtual prop is detected.

17. The method of claim 1, wherein, The response to the role switching request further includes: displaying a third exchange control in a first display screen of the first client, the third exchange control being used to stop the response operation for the role switching request; controlling the first display screen to remain unchanged in a case where a first operation for the third exchange control is detected.

18. The method of claim 1, wherein, In other terminal devices corresponding to other virtual roles, the second virtual role is displayed in a first display style before the control authority of the second virtual role is exchanged, and the second virtual role is displayed in a second display style after the control authority of the second virtual role is exchanged.

19. The method of claim 1, wherein, The method further includes: statistically obtaining first match information in a case where the control authority is not exchanged, the first match information being used to indicate a match record of the first virtual role against an enemy virtual role when the control authority is not exchanged; statistically obtaining second match information in a case where the control authority is exchanged, the second match information being used to indicate a match record of the first virtual role against the enemy virtual role when the control authority is exchanged; displaying, in a match settlement screen, the first match information, the second match information, and an identifier of the second virtual role corresponding to the second match information, the identifier of the second virtual role being used to indicate that the second match information is caused by a second user corresponding to the second virtual role.

20. An electronic device, comprising: including: a memory and a processor, which are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the role control method in any one of claims 1 to 19.

21. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions for causing a computer to perform the role control method in any one of claims 1 to 19.

22. A computer program product, characterised in that, including computer instructions for causing a computer to perform the role control method in any one of claims 1 to 19.