Role position adjusting method and device, equipment, medium and computer program product

By receiving the user's character position in the vehicle system, the position of the user is exchanged and the virtual role position is exchanged, and the problem that the user cannot directly exchange the role position in the game scenario has been solved, and the user experience is improved.

CN119367751APending Publication Date: 2025-01-28MIGU INTERACTIVE ENTERTAINMENT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411503692.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In the existing car computer system, users cannot directly exchange positions between virtual characters in the game scene, which affects the user's gaming experience and needs to re-enter the game scene to change the character position.

Method used

By obtaining the target virtual scene and receiving the user position exchange operation of the user, determine the virtual role that needs to be exchanged, and exchange its position to achieve the location of the user's independently exchange virtual character.

Benefits of technology

Improving the user's gaming experience, allowing users to directly exchange virtual role positions in the game scenario, and avoid the restrictions on re -entering the game scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119367751A_ABST
    Figure CN119367751A_ABST
Patent Text Reader

Abstract

The invention relates to a role position adjusting method and device, equipment, a medium and a computer program product. The method comprises the steps of obtaining a target virtual scene; the target virtual scene comprises a plurality of virtual characters at different positions; receiving a role position exchange operation of a user, and determining a first virtual role and a second virtual role in a plurality of virtual roles of which the positions need to be exchanged based on the role position exchange operation; and exchanging the position between the first virtual character and the second virtual character. In this way, in a target virtual scene such as a related game, the user can exchange the positions of the virtual characters according to the operation of the user, the problem that the positions of the characters can be changed only by re-entering the game scene in the related technology is avoided, and then the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, equipment, medium and computer program product for adjusting a character position. Background Art

[0002] With the continuous development of technology, terminal products such as mobile phones, tablet computers and car computers have been greatly developed. When users play games through terminal products, they can interact with other users through the corresponding terminal devices.

[0003] In existing vehicle systems, there are already technical solutions that support multi-user interaction. For example, some vehicle systems allow passengers to interact with the vehicle's entertainment system through their own touch screens or mobile devices. However, the user's position in the game scene is usually set by the system, such as according to the order of playing cards in the game. The game position can only be changed when the user re-enters the game scene, making it impossible for the user to directly change the position of the other users in the game scene, affecting the user's gaming experience. Summary of the invention

[0004] The present disclosure provides a method, apparatus, device, medium and computer program product for adjusting a character position.

[0005] According to a first aspect of the present disclosure, a method for adjusting a character position is provided, the method comprising:

[0006] Acquire a target virtual scene; the target virtual scene includes a plurality of virtual characters at different positions;

[0007] receiving a role position exchange operation of a user, and determining a first virtual role and a second virtual role among the plurality of virtual roles that need to exchange positions based on the role position exchange operation;

[0008] The positions of the first virtual character and the second virtual character are exchanged.

[0009] According to a second aspect of the present disclosure, there is provided a device for adjusting a character position, the device comprising:

[0010] A scene acquisition module, used to acquire a target virtual scene; the target virtual scene includes a plurality of virtual characters in different positions;

[0011] An operation receiving module, configured to receive a user's character position exchange operation, and determine a first virtual character and a second virtual character among the plurality of virtual characters that need to exchange positions based on the character position exchange operation;

[0012] A position exchange module is used to exchange the positions of the first virtual character and the second virtual character.

[0013] According to a third aspect of the present disclosure, an electronic device is provided, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the program, the method described above is implemented.

[0014] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above method of the present disclosure is implemented.

[0015] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the above method of the present disclosure when executed by a processor.

[0016] The character position adjustment method, device, equipment, medium and computer program product provided by the embodiments of the present disclosure can obtain a target virtual scene including multiple virtual characters in different positions, and when receiving a user's character exchange operation, can determine the first virtual character and the second virtual character among the multiple virtual characters that need to exchange positions based on the character position exchange operation, and exchange the positions between the first virtual character and the second virtual character. In this way, in a target virtual scene such as a related game, the user can exchange the positions between virtual characters according to his own operation, avoiding the problem in the related art that the game scene needs to be re-entered to change the character position, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Further details, features and advantages of the present disclosure are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:

[0018] Figure 1 A schematic diagram of a scenario provided for an exemplary embodiment of the present disclosure;

[0019] Figure 2 Another scenario schematic diagram provided for an exemplary embodiment of the present disclosure;

[0020] Figure 3 A flowchart of a method for adjusting a character position provided by an exemplary embodiment of the present disclosure;

[0021] Figure 4 A schematic block diagram of functional modules of a character position adjustment device provided by an exemplary embodiment of the present disclosure;

[0022] Figure 5 A structural block diagram of an electronic device provided for an exemplary embodiment of the present disclosure;

[0023] Figure 6 A structural block diagram of a computer system provided for an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0025] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0026] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0027] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0028] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0029] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0030] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0031] As an optional but non-limiting implementation, in response to receiving an active request from the user, the method of sending a prompt message to the user may be, for example, a pop-up window, in which the prompt message may be presented in text. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device. It is understandable that the above notification and the process of obtaining user authorization are only illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0032] In the relevant car systems, there are ways to support multi-user interaction. For example, some car systems allow passengers to interact with the vehicle's entertainment system through their own touch screens or mobile devices. However, for board games, the positions of the corresponding characters in the game are usually determined by the order of playing cards. These systems usually do not support users to directly exchange the positions of the characters in the game through gestures, etc., but can only change the positions of the characters in the game by exiting the game and re-entering the game.

[0033] Some game consoles and smart devices support playing games using gesture control, which is a system that recognizes the player's gestures and converts them into in-game actions. Most of these systems are used for single-player gaming experiences, rather than swapping game characters in a multi-user environment. For example, existing gesture recognition systems can usually only handle some basic gestures, such as grabbing, sliding, or rotating.

[0034] Among them, gesture recognition is a technology that controls devices by capturing and interpreting human gestures. Currently, many smartphones and tablets have this function, which can recognize simple gestures such as sliding, pinching or rotating. It usually relies on a front camera, a depth sensor or dedicated gesture recognition hardware. Car computer generally refers to the in-vehicle infotainment system, which can be an integrated computer system installed inside the car to provide functions such as audio, video, navigation or vehicle information display. The relevant car computer system is usually equipped with a touch screen and supports functions such as multi-touch operation.

[0035] To solve the above technical problems, the embodiments of the present disclosure can be applied in a vehicle system. For example, the vehicle system can include multiple display screens, such as a display screen can be set in front of each seat in the vehicle, and the user can interact with the user in the vehicle or other users by operating the display screen. It should be noted that the embodiments can also be used for the user to interact with other users through a terminal such as a mobile phone, and the embodiments are not limited thereto.

[0036] The embodiment is described by taking a vehicle system as an example. The vehicle system may include a user interface, a gesture recognition module, a data processing unit, a communication interface module and a game engine.

[0037] It should be noted that the gesture recognition module is used to capture and recognize the user's gesture movements, for example, by collecting the user's gestures on the vehicle screen, or capturing the user's gestures through the camera on the vehicle screen, and using relevant deep learning algorithms for gesture recognition.

[0038] The data processing unit is used to process the data transmitted by the gesture recognition module, determine the user's intention, and convert the recognized gesture into a character position exchange instruction in the game.

[0039] The communication interface module is responsible for communicating with other modules in the vehicle system. For example, it can communicate with the game engine through the vehicle's internal network and send character position exchange instructions.

[0040] The user interface is used to provide feedback to the user and display the game status. For example, the game interface can be displayed on the display screen of the car computer and the character position can be updated in real time.

[0041] In the embodiment, the above modules can be combined to take a user playing a game in a vehicle system as an example to implement a detailed description of the method of exchanging the positions of the characters in the game. In the game scene, there can be multiple game characters, each of which is in a corresponding position.

[0042] (1) Obtain the user's gesture operation.

[0043] In an embodiment, when a user needs to exchange a character's position in a game, the user collects the user's sliding behavior on the car screen in front of his or her car screen, or captures gestures through the camera of the car screen to adjust the character's position.

[0044] (2) Capture user gesture data through the gesture recognition module.

[0045] Method 1: The user ID, user name, and character image (i.e., virtual character) of all users can be displayed on the game interface of the vehicle screen. When the user performs a gesture, the gesture recognition module can collect the movement trajectory of the user's finger on the vehicle screen. The movement trajectory connects the character image corresponding to the current user and the character image corresponding to the target user, or the movement trajectory only clicks on the character image corresponding to the current user and includes a direction, and sends the movement trajectory to the data processing unit.

[0046] The current user performs a sliding gesture operation on the real screen, and the starting point of the sliding is near the character image of the current user. By sliding on the display screen, the sliding moves toward the character image of the target user, so the end point of the sliding can be near the character image of the target user. Figure 1 As shown, Figure 1 A schematic diagram of a scenario provided in an embodiment of the present disclosure is shown in FIG. Figure 1 The display screen includes four character images, namely, character image A1, character image A2, character image A3 and character image A4. The character image corresponding to the current user is A2. When the user wants to exchange the positions of character image A2 with character image A4, the user can slide the finger on the display screen, and a sliding track H can be generated on the display screen.

[0047] In an embodiment, the first character image and the second character image that need to exchange positions can be determined based on the sliding track of the user on the display screen. For example, the starting position and the end position of the sliding track can be detected respectively. If there is a character image in the vicinity of the starting position, then the character image can be considered as the first character image that needs to exchange positions. Similarly, if there is a character image in the vicinity of the end position, the character image can be used as the second character image that needs to exchange positions. Among them, the vicinity can be understood as a preset area such as a circular area within a preset radius with a certain point (such as the starting position or the end position) as the center, and the embodiment is not limited to this.

[0048] If there is no character image in the vicinity of the starting position, the character image obtained in the direction of the extension line from the end position to the starting position can be used as the first character image. Similarly, if there is no character image in the vicinity of the end position, the sliding direction corresponding to the sliding track can be obtained, and the character image corresponding to the sliding direction can be used as the second character image. That is, the two character images included in the straight line where the sliding track is located can be used as the first character image and the second character image that need to exchange positions. If the straight line where the sliding track is located does not contain a character image, the distance between each character image in the game scene and the straight line can be obtained, and the two character images with the shortest distance can be used as the first character image and the second character image. Among them, the character image in the embodiment can specifically be a virtual character.

[0049] Method 2: When all users of the in-car game are in one vehicle and use four screens in the vehicle to play the game, the camera of the car screen can be used to collect the user's command gestures in space, and the command gestures and the current screen ID (Identity Document) number where the camera is located are sent to the data processing unit. In this way, the first character image and the second character image that need to be exchanged can be determined based on the user's gesture actions and ID.

[0050] For example, a user's gesture operation can be obtained, and the gesture operation can be that the user points his finger at the user himself and another user, so that the first ID of the display screen corresponding to the user himself and the second ID of the display screen of another user can be obtained, and then the corresponding character image can be determined by the ID of the display screen. In this way, the character image corresponding to the first ID can be used as the first character image that needs to be exchanged, and the character image corresponding to the second ID can be used as the second character image that needs to be exchanged.

[0051] (3) Processing by data processing unit.

[0052] Method 1: If the data processing unit acquires a moving track, the character parameters of the first character image and the second character image that need to be swapped can be determined according to the starting point and the end point of the moving track.

[0053] Alternatively, the embodiment can determine the character parameters of the first character image that needs to be swapped based on the starting point of the moving track; identify the sliding direction represented by the user's sliding behavior on the vehicle screen based on the sequence of the moving track, and determine the character parameters of the first character image that needs to be swapped based on the sliding direction. The character parameters of the first character image and the character parameters of the second character image are sent to the communication interface module.

[0054] In the embodiment, the role parameters of the first character image may include the ID number of the current first user and the user name of the current first user, and the role parameters of the second character image may include the ID number of the target user and the target user name.

[0055] Method 2: Obtain the current screen ID number where the command gesture and the camera are located, and determine the current character parameters (i.e., the character parameters of the first character image) that initiates the role swap based on the current screen ID number and the mapping relationship between the game characters; determine the sliding direction or pointing direction of the gesture based on the command gesture, and determine the target character parameters (i.e., the character parameters of the second character image) that need to be swapped based on the sliding direction or pointing direction.

[0056] like Figure 2 When the camera of the car screen located in the right rear row of the vehicle captures the user command gesture initiated by the game player (whose user ID number is user 003) sitting in the right rear row, the gesture sliding direction is obtained according to the user command gesture recognition, and the target screen in the gesture sliding direction is determined to be the screen corresponding to the co-pilot seat of the vehicle, and its ID number is obtained as the target screen ID number. Based on the mapping relationship, it is determined that the user ID number of the game player corresponding to the target screen ID number is user 002.

[0057] In the embodiment, the current role parameters include the current user ID number and the current user name, the target role parameters may include the target user ID number and the target user name, and the above parameters are sent to the communication interface module.

[0058] (4) The communication interface module communicates with the game engine.

[0059] The communication interface module obtains the current character parameters and the target character parameters from the data processing unit, and forwards the above data to the game engine. The game engine sends a request of "Do you agree to exchange positions?" to the target user ID number based on the current character parameters and the target character parameters. After the user corresponding to the target character agrees, the game engine updates the current user and target user information of exchanging seats in the game, exchanges the game video stream and control rights of the current user ID and the target user ID, and transfers the game video stream and control rights originally provided to the target user ID to the current user, and the current user obtains the position of the target user in the game.

[0060] (5) User interface displays the updated game interface.

[0061] The update information of the game engine is received, and the display content after the game characters are updated in the user interface (UI) through the graphics rendering engine according to the update information.

[0062] Based on the above embodiments, the present disclosure also provides a method for adjusting the position of a character. Figure 3 As shown, the method may include the following steps:

[0063] In step S310, a target virtual scene is acquired.

[0064] The target virtual scene includes a plurality of virtual characters at different positions.

[0065] In the embodiment, it can be combined Figure 1 As shown, multiple users can participate in games and other scenes. For example, the target virtual scene can be a car system, where corresponding display screens are set on multiple seats in the car, and users can participate in the game together through the display screens in front of or near them. In this way, each user can correspond to a virtual character in the target virtual scene, and the user can perform corresponding actions by controlling the corresponding virtual character.

[0066] In step S320, a role position exchange operation of a user is received, and a first virtual role and a second virtual role among a plurality of virtual roles that need to exchange positions are determined based on the role position exchange operation.

[0067] In an embodiment, for example, when the target virtual scene is a multiplayer chess and card game scene, if a user wants to exchange the position of the corresponding virtual character with another user in the target virtual scene, the user can initiate a position exchange request. For example, by obtaining the user's sliding operation on the display screen, when it is detected that the sliding operation is a character position exchange operation, the first virtual character and the second virtual character that need to exchange positions can be determined according to the sliding operation. The embodiment can also obtain the user's gesture action in space, and determine the first virtual character and the second virtual character that need to exchange positions according to the gesture action.

[0068] In step S330, the positions of the first virtual character and the second virtual character are exchanged.

[0069] In an embodiment, when the current user initiates a role position exchange operation, a role position exchange request can be initiated to a terminal corresponding to the target user. When the terminal corresponding to the target user agrees to the position exchange request, the positions of the first virtual character and the second virtual character can be exchanged, so that the user can control the game character after the position change.

[0070] The character position adjustment method provided by the embodiment of the present disclosure obtains a target virtual scene including multiple virtual characters in different positions. When receiving a user's character exchange operation, the method can determine the first virtual character and the second virtual character among the multiple virtual characters that need to exchange positions based on the character position exchange operation, and exchange the positions between the first virtual character and the second virtual character. In this way, in a target virtual scene such as a related game, the user can exchange the positions between virtual characters according to his own operation, avoiding the problem in the related art that the game scene needs to be re-entered to change the character position, thereby improving the user experience.

[0071] Based on the above embodiment, in another embodiment provided by the present disclosure, the above character position exchange operation includes a sliding operation, and the above step S320 may further include the following steps:

[0072] In step S321, a sliding operation of the user on the display screen is received, and a sliding track is obtained based on the sliding operation.

[0073] In step S322, the first virtual character and the second virtual character that need to exchange positions are determined based on the sliding track.

[0074] In the embodiment, when the user wants to exchange the positions of two virtual characters, a sliding operation can be performed on the display screen, which can be combined with Figure 1 Through the sliding operation of the user on the display screen, a sliding track corresponding to the sliding operation can be obtained, and then the first virtual character and the second virtual character that need to be swapped can be determined based on the sliding track.

[0075] Specifically, in the embodiment, by acquiring the starting position and the end position of the sliding track, the first virtual character that needs to exchange positions can be determined based on the starting position, and the second virtual character that needs to exchange positions can be determined based on the end position.

[0076] In an embodiment, the starting position and the end position corresponding to the sliding track may be obtained, and the first virtual character and the second virtual character that need to exchange positions may be determined according to the distances from the starting position and the end position in the target virtual scene.

[0077] For example, the virtual character closest to the starting point in the target virtual scene can be used as the first virtual character that needs to be swapped, and the virtual character closest to the ending point in the target virtual scene can be used as the second virtual character that needs to be swapped. In this way, the first virtual character and the second virtual character that need to be swapped can be accurately and quickly determined according to the user's sliding operation on the display screen.

[0078] In an embodiment, by acquiring the starting position and sliding direction of the sliding track, the first virtual character that needs to exchange positions is determined based on the starting position, and the second virtual character that needs to exchange positions is determined based on the sliding direction.

[0079] Specifically, in the embodiment, the virtual character closest to the starting position in the target virtual scene can be used as the first virtual character that needs to exchange positions. By obtaining the sliding direction, the second virtual character in the sliding direction is obtained, and the second virtual character is used as the virtual character that needs to exchange positions.

[0080] In an embodiment, when determining the first virtual character and the second virtual character that need to exchange positions based on the sliding trajectory, the starting position, the end position and the sliding direction of the sliding trajectory can also be obtained, so that the first virtual character that needs to exchange positions can be determined based on the starting position, and the second virtual character that needs to exchange positions can be determined based on the end position and the sliding direction.

[0081] In an embodiment, if the display screen is large and the two virtual characters that the user needs to exchange positions are far apart, many users may slide a shorter distance from the position of the first virtual character to the position of the second virtual character that needs to exchange positions, or the end position of the generated sliding trajectory according to the user's sliding operation is far away from the second virtual character that needs to exchange positions, or the end position of the sliding trajectory is the same as the distance between multiple virtual characters. In this case, it may be impossible to directly determine the second virtual character that needs to exchange positions based on the end position corresponding to the sliding trajectory. At this time, the sliding direction corresponding to the sliding trajectory can be obtained, and the second virtual character that needs to exchange positions can be determined according to the direction of the sliding direction.

[0082] Based on the above embodiment, in another embodiment provided by the present disclosure, the above character position exchange operation includes a sliding operation. The above step S320 may further include the following steps:

[0083] In step S323, the gesture operation of the user is acquired, and the virtual character corresponding to the user is determined as the first virtual character that needs to exchange positions.

[0084] In step S324, the sliding direction is determined based on the gesture operation, and the second virtual character that needs to exchange positions is determined based on the sliding direction.

[0085] In an embodiment, the user's gesture operation can be obtained through a camera set on the display screen, or the user's gesture operation can be received through the display screen, so that the virtual character corresponding to the user can be obtained and the virtual character is determined as the first virtual character that needs to exchange positions.

[0086] Specifically, in an exemplary embodiment, the user's gesture operation can be obtained through the camera on the display screen, and the identification information of the display screen where the camera is located can be obtained, or when the user's gesture operation is obtained through the display screen, the identification information of the display screen that receives the user's gesture operation can be obtained. In this way, the role mapping relationship is obtained according to the identification information of the screen, and the current role parameters for initiating role swap are determined. In this way, the sliding direction corresponding to the gesture operation can be determined according to the gesture operation, and the role parameters that need to be swapped are determined based on the sliding direction. For details, please refer to Figure 2 and corresponding embodiments.

[0087] In an embodiment, a user's gesture operation can be obtained, and the gesture operation can be a user pointing a finger at the user and another user, so that the first ID of the display screen corresponding to the user and the second ID of the display screen of another user can be obtained, and then the corresponding character image can be determined by the ID of the display screen. In this way, the character image corresponding to the first ID can be used as the first character image that needs to be exchanged, and the character image corresponding to the second ID can be used as the second character image that needs to be exchanged.

[0088] In addition, the gesture operation can be that the user points his finger directly to another user, which indicates that the virtual character corresponding to the user needs to exchange positions with the virtual character of another user in the target virtual scene. In this way, the first ID of the display screen corresponding to the user and the second ID of the display screen of another user can be obtained, and then the corresponding character image can be determined by the ID of the display screen. Then, the character image corresponding to the first ID can be used as the first character image that needs to exchange positions, and the character image corresponding to the second ID can be used as the second character image that needs to exchange positions, so as to quickly and accurately determine the first virtual character and the second virtual character that need to exchange positions.

[0089] Based on the above embodiment, in another embodiment provided by the present disclosure, the above step S330 may further include the following steps:

[0090] In step S331, the terminal corresponding to the first virtual character sends a location exchange request message to the terminal corresponding to the second virtual character.

[0091] In step S332, upon receiving the position exchange agreement information sent by the terminal corresponding to the second virtual character, the positions of the first virtual character and the second virtual character are exchanged, and the operation order of the first virtual character and the second virtual character in the target virtual scene is exchanged.

[0092] In the embodiment, the position of the first virtual character is changed to the second position where the second virtual character was originally located, and the position of the second virtual character is changed to the first position where the first virtual character was originally located; the control authority of the first virtual character is changed from the original first control authority to the second control authority, and the control authority of the second virtual character is changed from the original second control authority to the first control authority. The first control authority and the second control authority can respectively represent the operation order of the first virtual character and the second virtual character in the game.

[0093] In the embodiment, the current role parameters and the target role parameters can be obtained from the data processing unit through the communication interface module, and the data can be forwarded to the game engine. The game engine sends a request of "whether to agree to exchange positions" to the target user ID number based on the parameters of the current virtual role and the parameters of the target virtual role. After the user corresponding to the target role agrees, the positions of the first virtual role and the second virtual role are exchanged. The current user can be the user who initiates the role position exchange request, and the target user can be the user whose role position is required to be exchanged.

[0094] In an embodiment, a first position corresponding to the first virtual character and a second position corresponding to the second virtual character may be obtained, the game character at the first position may be changed to the second virtual game character, and the game character at the second position may be changed to the first virtual game character.

[0095] Specifically, the game engine can be used to update and exchange the information of the current user and the target user in the game seat, and exchange the video stream and control right of the current user ID and the target user ID, transfer the video stream and control right originally provided to the target user ID to the current user, and the current user obtains the position of the target user in the target virtual scene.

[0096] In the embodiments provided in the present disclosure, the target virtual scene may be a game scene, etc. Since virtual characters in different positions may have different control permissions, some users may send location exchange requests to other users in order to obtain corresponding control permissions.

[0097] Specifically, for example, when the target virtual scene is a target game scene, the operation sequence of the virtual character in the game may be a card-playing sequence, for example, Figure 1 As shown, in chess and card games, cards are played in a counterclockwise order. For example, A2 can only play cards after A1 plays cards, followed by A3 and A4. If A2 does not want to play cards after A1, and wants to obtain the control authority to play cards before A1, it can exchange positions with A4. In this way, after A2 and A4 check the position, A2 after the exchange of positions has the original control authority of A4, such as the authority to play cards, but will lose the original control authority. Similarly, A4 after the exchange of positions will also have the original control authority of A2, but will also lose the original control authority. In this way, while realizing the position exchange between virtual characters, the relevant control authority will also be exchanged, realizing the simultaneous transfer of position and control authority. In addition, in the embodiment, due to the exchange of positions, the perspective information under the same virtual character can also change, that is, the video stream sent to the user will also send changes. For example, after A2 and A4 exchange positions, the user corresponding to A2 will have the perspective information of the original position of A4, and A4 will also have the perspective information of the original position of A2.

[0098] In the case of dividing each functional module according to each function, an embodiment of the present disclosure provides a role position adjustment device, which may be a server, a terminal, or a chip applied to a server. Figure 4 This is a schematic block diagram of the functional modules of a character position adjustment device provided by an exemplary embodiment of the present disclosure. Figure 4 As shown, the character position adjustment device includes:

[0099] The scene acquisition module 10 is used to acquire a target virtual scene; the target virtual scene includes a plurality of virtual characters in different positions;

[0100] The operation receiving module 20 is used to receive a role position exchange operation of a user, and determine a first virtual role and a second virtual role among the multiple virtual roles that need to exchange positions based on the role position exchange operation;

[0101] The position exchange module 30 is used to exchange the positions of the first virtual character and the second virtual character.

[0102] In another embodiment provided by the present disclosure, the character position exchange operation includes a sliding operation; and the operation receiving module is specifically configured to:

[0103] Receiving a sliding operation of a user on a display screen, and acquiring a sliding track based on the sliding operation;

[0104] The first virtual character and the second virtual character that need to exchange positions are determined based on the sliding track.

[0105] In another embodiment provided by the present disclosure, the position exchange module is specifically used to:

[0106] Obtaining the starting position and the ending position of the sliding track;

[0107] A first virtual character that needs to exchange positions is determined based on the starting position, and a second virtual character that needs to exchange positions is determined based on the ending position.

[0108] In another embodiment provided by the present disclosure, the position exchange module is further configured to:

[0109] Obtaining the starting position and sliding direction of the sliding track;

[0110] A first virtual character that needs to exchange positions is determined based on the starting position, and a second virtual character that needs to exchange positions is determined based on the sliding direction.

[0111] In another embodiment provided by the present disclosure, the character position exchange operation includes a gesture operation, and the camera operation receiving module is provided on the current display screen, which is further used to:

[0112] Acquire a gesture operation of the user, and determine the virtual character corresponding to the user as a first virtual character that needs to exchange positions;

[0113] A sliding direction is determined based on the gesture operation, and a second virtual character that needs to exchange positions is determined based on the sliding direction.

[0114] In another embodiment provided by the present disclosure, the position exchange module is specifically used to:

[0115] Obtaining that the terminal corresponding to the first virtual character sends location exchange request information to the terminal corresponding to the second virtual character;

[0116] When receiving the position exchange agreement information sent by the terminal corresponding to the second virtual character, the positions of the first virtual character and the second virtual character are exchanged, and the operation order of the first virtual character and the second virtual character in the target virtual scene is exchanged.

[0117] The character position adjustment device provided by the embodiment of the present disclosure obtains a target virtual scene including multiple virtual characters in different positions. When receiving a character exchange operation from a user, the device can determine the first virtual character and the second virtual character among the multiple virtual characters that need to exchange positions based on the character position exchange operation, and exchange the positions between the first virtual character and the second virtual character. In this way, in a target virtual scene such as a related game, the user can exchange the positions between virtual characters according to his own operation, avoiding the problem in the related art that the game scene needs to be re-entered to change the character position, thereby improving the user experience.

[0118] An embodiment of the present disclosure also provides an electronic device, comprising: at least one processor; and a memory for storing instructions executable by the at least one processor; wherein the at least one processor is configured to execute the instructions to implement the above method disclosed in the embodiment of the present disclosure.

[0119] Figure 5 The structure diagram of an electronic device provided by an exemplary embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the electronic device 1800 includes at least one processor 1801 and a memory 1802 coupled to the processor 1801 , and the processor 1801 can execute corresponding steps in the above method disclosed in the embodiment of the present disclosure.

[0120] The processor 1801 may also be referred to as a central processing unit (CPU), which may be an integrated circuit chip having signal processing capabilities. Each step in the method disclosed in the embodiment of the present disclosure may be completed by an integrated logic circuit of hardware in the processor 1801 or by instructions in the form of software. The processor 1801 may be a general-purpose processor, a digital signal processor (DSP), an ASIC (Application Specific Integrated Circuit), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a memory 1802, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, or other mature storage media in the art. The processor 1801 reads the information in the memory 1802 and completes the steps of the method in combination with its hardware.

[0121] In addition, when various operations / processes according to the present disclosure are implemented by software and / or firmware, they can be transmitted from a storage medium or a network to a computer system having a dedicated hardware structure, such as Figure 6 The computer system 1900 shown is installed with the programs constituting the software. When the various programs are installed, the computer system can perform various functions, including the functions described above. Figure 6 A structural block diagram of a computer system provided for an exemplary embodiment of the present disclosure.

[0122] Computer system 1900 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0123] like Figure 6As shown, the computer system 1900 includes a computing unit 1901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1902 or a computer program loaded from a storage unit 1908 to a random access memory (RAM) 1903. In the RAM 1903, various programs and data required for the operation of the computer system 1900 can also be stored. The computing unit 1901, the ROM 1902, and the RAM 1903 are connected to each other via a bus 1904. An input / output (I / O) interface 1905 is also connected to the bus 1904.

[0124] A plurality of components in the computer system 1900 are connected to the I / O interface 1905, including: an input unit 1906, an output unit 1907, a storage unit 1908, and a communication unit 1909. The input unit 1906 may be any type of device capable of inputting information to the computer system 1900, and the input unit 1906 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 1907 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 1908 may include, but is not limited to, a disk, an optical disk. The communication unit 1909 allows the computer system 1900 to exchange information / data with other devices over a network such as the Internet, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0125] The computing unit 1901 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1901 performs the various methods and processes described above. For example, in some embodiments, the above methods disclosed in the embodiments of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1908. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via ROM 1902 and / or communication unit 1909. In some embodiments, the computing unit 1901 may be configured to perform the above methods disclosed in the embodiments of the present disclosure in any other appropriate manner (e.g., by means of firmware).

[0126] The embodiment of the present disclosure further provides a computer-readable storage medium, wherein when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above method disclosed in the embodiment of the present disclosure.

[0127] The computer-readable storage medium in the disclosed embodiments may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. More specifically, the computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0129] The embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor, the above method disclosed in the embodiments of the present disclosure is implemented.

[0130] In embodiments of the present disclosure, computer program codes for performing the operations of the present disclosure may be written in one or more programming languages ​​or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.

[0131] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0132] The modules, components or units involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the modules, components or units do not, in some cases, limit the modules, components or units themselves.

[0133] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0134] The above descriptions are only some embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).

[0135] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.

Claims

1. A method for adjusting a character position, characterized in that: The method comprises: Acquire a target virtual scene; the target virtual scene includes a plurality of virtual characters at different positions; receiving a role position exchange operation of a user, and determining a first virtual role and a second virtual role among the plurality of virtual roles that need to exchange positions based on the role position exchange operation; The positions of the first virtual character and the second virtual character are exchanged.

2. The method according to claim 1, characterized in that The character position exchange operation includes a sliding operation; the receiving the character position exchange operation of the user, and determining the first virtual character and the second virtual character that need to exchange positions based on the character position exchange operation, includes: Receiving a sliding operation of a user on a display screen, and acquiring a sliding track based on the sliding operation; The first virtual character and the second virtual character that need to exchange positions are determined based on the sliding track.

3. The method according to claim 2, characterized in that The step of determining the first virtual character and the second virtual character that need to exchange positions based on the sliding track includes: Obtaining the starting position and the ending position of the sliding track; A first virtual character that needs to exchange positions is determined based on the starting position, and a second virtual character that needs to exchange positions is determined based on the ending position.

4. The method according to claim 2, characterized in that: The step of determining the first virtual character and the second virtual character that need to exchange positions based on the sliding track includes: Obtaining the starting position and sliding direction of the sliding track; A first virtual character that needs to exchange positions is determined based on the starting position, and a second virtual character that needs to exchange positions is determined based on the sliding direction.

5. The method according to claim 1, characterized in that The character position exchange operation includes a gesture operation, and receiving the character position exchange operation of the user, and determining the first virtual character and the second virtual character among the multiple virtual characters that need to exchange positions based on the character position exchange operation, includes: Acquire the gesture operation of the user, and determine the virtual character corresponding to the user as the first virtual character that needs to exchange positions; A sliding direction is determined based on the gesture operation, and a second virtual character that needs to exchange positions is determined based on the sliding direction.

6. The method according to claim 1, characterized in that The exchanging the positions of the first virtual character and the second virtual character comprises: Obtaining that the terminal corresponding to the first virtual character sends location exchange request information to the terminal corresponding to the second virtual character; When receiving the position exchange agreement information sent by the terminal corresponding to the second virtual character, the positions of the first virtual character and the second virtual character are exchanged, and the operation order of the first virtual character and the second virtual character in the target virtual scene is exchanged.

7. A character position adjustment device, characterized in that: The device comprises: A scene acquisition module, used to acquire a target virtual scene; the target virtual scene includes a plurality of virtual characters in different positions; An operation receiving module, configured to receive a user's character position exchange operation, and determine a first virtual character and a second virtual character among the plurality of virtual characters that need to exchange positions based on the character position exchange operation; A position exchange module is used to exchange the positions of the first virtual character and the second virtual character.

8. An electronic device, characterized in that: include: at least one processor; a memory for storing the at least one processor-executable instruction; The at least one processor is configured to execute the instructions to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 6.

10. A computer program product, characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.