CN114968523A - Character transmission method and device among different scenes, electronic equipment and storage medium - Google Patents

Character transmission method and device among different scenes, electronic equipment and storage medium Download PDF

Info

Publication number
CN114968523A
CN114968523A CN202210575421.1A CN202210575421A CN114968523A CN 114968523 A CN114968523 A CN 114968523A CN 202210575421 A CN202210575421 A CN 202210575421A CN 114968523 A CN114968523 A CN 114968523A
Authority
CN
China
Prior art keywords
scene
sub
target
current
character
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210575421.1A
Other languages
Chinese (zh)
Inventor
王少宁
董林忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xintang Sichuang Educational Technology Co Ltd
Original Assignee
Beijing Xintang Sichuang Educational Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xintang Sichuang Educational Technology Co Ltd filed Critical Beijing Xintang Sichuang Educational Technology Co Ltd
Priority to CN202210575421.1A priority Critical patent/CN114968523A/en
Publication of CN114968523A publication Critical patent/CN114968523A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure provides a character transmission method, device, electronic device and storage medium between different scenes, wherein the method comprises: acquiring a scene switching instruction; determining a target scene identifier of a target sub-scene to be switched according to the scene switching instruction; acquiring a current scene identifier of a current sub-scene where a target character role associated with a user is located in an application program, wherein the current sub-scene and the target sub-scene are sub-scenes in a current loaded application scene; and transmitting the target character role from the current sub-scene to the target sub-scene under the condition that the current scene identification is inconsistent with the target scene identification. The scheme can simplify the transmission process of the character roles, and can realize the rapid transmission of the character roles in different scenes, thereby improving the transmission efficiency of the character roles.

Description

Character transmission method and device among different scenes, electronic equipment and storage medium
Technical Field
The present disclosure relates to the technical field of Unity 3D scenes, and in particular, to a method and an apparatus for transferring characters between different scenes, an electronic device, and a storage medium.
Background
Unity is a real-time 3D interactive content authoring and operation platform, including all creators in truthful classrooms, game development, art, architecture, automotive design, movie and television, and creativity is turned into reality by virtue of Unity.
With the development of the all-real classroom, more and more scenes appear in the all-real classroom at present, such as various scenes of a game place, a classroom, a gathering place and the like. In the related art, when a character in a live classroom moves among different scenes, a next scene generally needs to be loaded first, and then the character moves from a current scene to the next scene.
Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, embodiments of the present disclosure provide a method, an apparatus, an electronic device, and a storage medium for transferring people between different scenes.
According to an aspect of the present disclosure, there is provided a character transmission method between different scenes, including:
acquiring a scene switching instruction;
determining a target scene identifier of a target sub-scene to be switched according to the scene switching instruction;
acquiring a current scene identifier of a current sub-scene where a target character role associated with a user is located in an application program, wherein the current sub-scene and the target sub-scene are sub-scenes in a current loaded application scene;
and transmitting the target character role from the current sub-scene to the target sub-scene under the condition that the current scene identification is inconsistent with the target scene identification.
According to another aspect of the present disclosure, there is provided a character transfer apparatus between different scenes, including:
the first acquisition module is used for acquiring a scene switching instruction;
the determining module is used for determining a target scene identifier of a target sub-scene to be switched according to the scene switching instruction;
a second obtaining module, configured to obtain a current scene identifier of a current sub-scene where a target persona associated with a user is located in an application program, where the current sub-scene and the target sub-scene are sub-scenes in a currently loaded application scene;
a transfer module, configured to transfer the target persona from the current sub-scene to the target sub-scene if the current scene identifier is inconsistent with the target scene identifier.
According to another aspect of the present disclosure, there is provided an electronic device including:
a processor; and
a memory for storing a program, wherein the program is stored in the memory,
wherein the program comprises instructions which, when executed by the processor, cause the processor to perform the method of character transfer between different scenes according to the preceding aspect.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to execute the person transfer method between different scenes according to the foregoing one aspect.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the method of character transfer between different scenes of the preceding aspect.
According to one or more technical schemes provided in the embodiments of the present disclosure, a currently loaded application scene is divided into sub-scenes, when a character is transferred between the sub-scenes, whether a current scene identifier of the sub-scene where the character is currently located is consistent with a target scene identifier of a target sub-scene to be switched is compared, and when the current scene identifier of the sub-scene where the character is currently located is inconsistent with the target scene identifier of the target sub-scene to be switched, the character is transferred to the target sub-scene.
Drawings
Further details, features and advantages of the disclosure are disclosed in the following description of exemplary embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 illustrates a flow chart of a method of transferring people between different scenes according to an exemplary embodiment of the present disclosure;
FIG. 2 illustrates a flow chart of a method of transferring people between different scenes according to another exemplary embodiment of the present disclosure;
FIG. 3 illustrates an example diagram of dividing an application scene into sub-scenes in accordance with an example embodiment of the present disclosure;
FIG. 4 shows a schematic block diagram of a character transfer device between different scenes in accordance with an exemplary embodiment of the present disclosure;
FIG. 5 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description. It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The character transmission method, device, electronic apparatus, and storage medium between different scenes provided by the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a character transfer method between different scenes according to an exemplary embodiment of the present disclosure, which may be performed by a character transfer apparatus between different scenes, wherein the apparatus may be implemented in software and/or hardware, and may be generally integrated in an electronic device, which may be a server corresponding to an application program, including but not limited to a real classroom application developed based on Unity, a game application, and the like. As shown in fig. 1, the method for transferring a character between different scenes may include the following steps:
step 101, a scene switching instruction is obtained.
The scene switching instruction can be generated by a user operating a relevant scene switching button or key in an application scene currently loaded in an application program, and the application program can be an application program developed based on a Unity authoring engine, and includes but is not limited to a live classroom application, a game application, an art application and the like. The application program can be installed in the settings of a mobile phone, a tablet computer, a game host, an augmented reality device, a virtual reality device and the like.
In the embodiment of the present disclosure, the application program may include at least one application scene, each application scene is used as a main scene and is divided into a plurality of sub-scenes, and each sub-scene is assigned with a unique scene identifier associated therewith.
And 102, determining a target scene identifier of a target sub-scene to be switched according to the scene switching instruction.
In the embodiment of the disclosure, when a user triggers a scene switching button or key in a current loaded application scene of an application program, the application program generates a scene switching instruction, and the scene switching instruction carries a target scene identifier of a target sub-scene to be switched. The server corresponding to the application program can monitor whether a scene switching instruction is generated or not in real time, and when the server acquires the scene switching instruction, the target scene identifier of the target sub-scene to be switched can be extracted from the scene switching instruction.
Step 103, acquiring a current scene identifier of a current sub-scene where a target character role associated with a user is located in the application program, wherein the current sub-scene and the target sub-scene are sub-scenes in a current loaded application scene.
It can be understood that each persona in the application program has a corresponding user associated with it, when the user uses the application program, a login account can be registered for login, and a favorite persona can be selected, even attribute information of the persona can be set, the server can associate the login account of the user with the persona, and when the user logs in the account again, the associated persona is automatically matched.
In the embodiment of the present disclosure, the server corresponding to the application program further needs to obtain the current scene identifier of the sub-scene where the character role is currently located, and the server may determine, according to the login account of the user, the target character role associated with the user, and further obtain the current scene identifier of the sub-scene where the target character role is currently located.
For example, the server may obtain a position coordinate of a current position of the target character, compare the obtained position coordinate with a scene area range of each sub-scene in the currently loaded application scene, and if the position coordinate of the current position of the target character is located in a scene area range of a certain sub-scene, the sub-scene is the current sub-scene of the target character, and further obtain a current scene identifier of the current sub-scene.
For example, a current scene identification of the sub-scene in which the target character is currently located may be recorded in the attribute information of the target character. When the server obtains the current scene identifier of the current sub-scene of the target character, the server can obtain the attribute information of the target character associated with the user in the application program according to the login information of the user, and further obtain the scene identifier in the attribute information as the current scene identifier of the current sub-scene of the target character. The login information may be, for example, a login account, and the login account includes, but is not limited to, a mobile phone number, a mailbox, a user name, an authorized third party account, and the like. The server can pre-establish the incidence relation between the login information of each user and the character roles, and then according to the login information of the user, the server can obtain a target character role associated with the user, further obtain the attribute information of the target character role, and determine the scene identification recorded in the attribute information as the current scene identification of the sub-scene where the target character role is located currently. Therefore, the problem that the obtained current scene identification is inaccurate due to position information errors when the current scene identification of the current sub-scene is determined according to the position information of the target character role can be avoided by obtaining the current scene identification from the attribute information of the target character role, and the accuracy of obtaining the current scene identification is improved.
It should be noted that, on the premise of meeting related laws and regulations, if it is determined that the current user wishes to use the character transfer method between different scenes provided by the present disclosure and authorizes the use of the login information of the current user, the embodiments of the present disclosure may obtain the login information of the user to determine the associated target character role when obtaining the current scene identifier, and further obtain the current scene identifier of the sub-scene where the target character role is currently located.
It should be noted that, the execution sequence of step 102 and step 103 is not sequential, both of them may be executed simultaneously, or may be executed sequentially, and the embodiment of the present disclosure only uses the step 103 executed after step 102 as an example to illustrate the present disclosure, but not to limit the present disclosure.
And 104, transmitting the target character role from the current sub-scene to the target sub-scene under the condition that the current scene identification is inconsistent with the target scene identification.
It can be understood that, in the embodiment of the present disclosure, both the current sub-scene and the target sub-scene are sub-scenes in the current loading application scene, when a target scene identifier of the target sub-scene is consistent with a current scene identifier of the current sub-scene, it indicates that the target sub-scene and the target sub-scene are the same sub-scene, and when the target scene identifier is not consistent with the current scene identifier, the target sub-scene and the current sub-scene are two different sub-scenes in the current loading application scene.
Therefore, in the embodiment of the present disclosure, after the current scene identifier of the current sub-scene and the target scene identifier of the target sub-scene to be switched are obtained, whether the current scene identifier is consistent with the target scene identifier may be compared, and if the current scene identifier is consistent with the target scene identifier, it is determined that the target sub-scene to be switched is the current sub-scene, and no processing is required to be performed, and it is only required to wait for a next scene switching instruction. And if the current scene identification is inconsistent with the target scene identification, determining that scene switching is needed, and transmitting the target character role from the current sub-scene to the target sub-scene.
It can be understood that, since the target sub-scene and the current sub-scene are both sub-scenes in the currently loaded application scene, and thus the target sub-scene is also already loaded, before the target character role is transferred, the target character role is directly transferred to the target sub-scene without performing the operation of loading the scene again, thereby improving the transfer speed of the character role.
In the embodiment of the present disclosure, when the target character is transmitted to the target sub-scene, the target character may be transmitted to a coordinate point preset in the target sub-scene. In specific implementation, the position function of the target character role is called, the position coordinates of the target character role in the position function are changed from the current position coordinates of the target character role in the current sub-scene to the position coordinates of the coordinate points preset in the target sub-scene, and therefore the effect of directly transmitting the target character role from the current sub-scene to the target sub-scene is achieved.
The character transmission method between different scenes in the embodiment of the disclosure determines a target scene identifier of a target sub-scene to be switched according to a scene switching instruction by acquiring the scene switching instruction, and acquires a current scene identifier of a sub-scene where a target character role associated with a user is currently located in an application program, wherein the currently located sub-scene and the target sub-scene are sub-scenes in a currently loaded application scene, and then transmits the target character role from the currently located sub-scene to the target sub-scene under the condition that the current scene identifier is not consistent with the target scene identifier. By adopting the scheme disclosed by the invention, the current loading application scene is divided into the sub-scenes, when the character is transmitted among the sub-scenes, whether the current scene identifier of the sub-scene where the character is currently located is consistent with the target scene identifier of the target sub-scene to be switched is compared, and the character is transmitted to the target sub-scene when the current scene identifier of the sub-scene where the character is currently located is inconsistent with the target scene identifier of the target sub-scene to be switched.
Further, in an optional embodiment of the present disclosure, after the target character role is transferred from the current sub-scene to the target sub-scene, the scene identifier in the attribute information may be updated to be the target scene identifier.
In the embodiment of the present disclosure, the current scene identifier of the sub-scene where the target persona is currently located may be recorded in the attribute information of the target persona, and each time the target persona enters one sub-scene, the scene identifier recorded in the attribute information is updated to the scene identifier of the sub-scene where the target persona is currently located, and the original scene identifier in the attribute information is covered, that is, the scene identifier recorded in the attribute information is the scene identifier of the sub-scene where the target persona is currently located. Thus, when the target character role is transferred to the target sub-scene, the original scene id recorded in the attribute information is replaced with the target scene id of the target sub-scene.
In the embodiment of the present disclosure, after the target character role is transferred from the current sub-scene to the target sub-scene, the scene identifier in the attribute information is updated to be the target scene identifier, so that the scene identifier in the attribute information can be updated in time, so that the scene identifier that is always the sub-scene where the target character role is currently located is recorded in the attribute information.
In an alternative embodiment of the present disclosure, as shown in fig. 2, based on the embodiment shown in fig. 1, in step 104, the transferring the target character role from the current sub-scene to the target sub-scene may include the following sub-steps:
step 201, a scene configuration table is obtained, where the scene configuration table includes a plurality of sub-scenes obtained by segmenting at least one application scene in the application program, and a scene identifier and a scene aggregation point corresponding to each sub-scene.
It can be understood that at least one application scene may be preset in one application program, for example, for an all-true class application, one corresponding application scene may be set for each grade, so that the all-true class application includes a plurality of application scenes corresponding to the number of grades.
In the embodiment of the present disclosure, for each application scene in the application program, a plurality of sub-scenes may be divided, and a scene identifier and a scene aggregation point that uniquely correspond to each sub-scene are set.
The scene set point may be a coordinate point in a corresponding sub-scene, or may be a preset region in a corresponding sub-scene, where the preset region may be a rectangle, a circle, or the like.
Exemplarily, fig. 3 illustrates an exemplary diagram of dividing an application scene into sub-scenes according to an exemplary embodiment of the present disclosure, and as shown in fig. 3, an application scene one is divided into four sub-scenes, respectively, sub-scene one, sub-scene two, sub-scene three, and sub-scene four, where a scene area range of each sub-scene may be represented by X, Y coordinates. In fig. 3, each sub-scene corresponds to a circular scene assembly point, and the area range of the circular scene assembly point can be defined by the position of the coordinate point of the center of the circle and a preset radius.
In the embodiment of the present disclosure, for each sub-scene divided by each application scene, each sub-scene, and the corresponding scene identifier and scene aggregation point may be recorded to obtain a scene configuration representation.
For at least one application scenario included in the application scenario, the scenario identifiers and the scenario aggregation points of the respective sub-scenarios divided by all application scenarios in the application program may be recorded together, a scenario configuration table is generated and stored in a local memory in advance, and the server obtains the scenario configuration table of the application program from the local memory when needed.
For at least one application scene included in the application scene, the scene identifiers and the scene aggregation points of each sub-scene divided by each application scene in the application program may be recorded together, a scene configuration table corresponding to each application scene is generated and stored in a local memory in advance, so that the number of the obtained scene configuration tables is consistent with the number of the application scenes included in the application program, wherein during storage, the identifiers of the application scenes are associated with the scene configuration table. Therefore, when needed, the server can obtain the scene configuration table corresponding to the identifier of the application scene from the local memory according to the identifier of the application scene currently loaded in the application program.
Step 202, determining a target scene set point of the target sub-scene according to the target scene identifier and the scene configuration table.
In the embodiment of the present disclosure, after the scene configuration table is obtained, the obtained scene configuration table may be queried according to the target scene identifier, and the scene aggregation point of the target sub-scene is determined from the scene configuration table as the target scene aggregation point.
Step 203, transmitting the target character role from the current sub-scene to the target scene aggregation point.
In the embodiment of the present disclosure, after the target scene aggregation point is determined, the target character role may be transmitted from the current sub-scene to the target scene aggregation point.
For example, when the target scene set point is a preset coordinate point in the target sub-scene, the target character may be transmitted to the preset coordinate point of the target sub-scene.
For example, when the target scene set point is a preset area in the target sub-scene, the target character may be transmitted to any coordinate point in the preset area in the target sub-scene.
The character transmission method between different scenes of the embodiment of the disclosure obtains a scene configuration table, the scene configuration table comprises a plurality of sub-scenes obtained by segmenting at least one application scene in an application program, a scene identifier and a scene assembly point corresponding to each sub-scene, and determines a target scene assembly point of a target sub-scene according to the target scene identifier and the scene configuration table, and further transmits a target character role from the current sub-scene to the target scene assembly point, thereby realizing the purpose of transmitting the target character role to a specified position in the target sub-scene.
In an optional implementation manner of the present disclosure, each sub-scene in the currently loaded application scene is provided with a corresponding trigger, and the trigger of each sub-scene is associated with the scene identifier of the sub-scene to which the trigger belongs, and through an entry event of the trigger, the sub-scene into which the target character role currently enters can be obtained. Thus, in the embodiments of the present disclosure, the method further includes:
when the target character role moves from the current sub-scene to the next sub-scene, triggering an entry event of a trigger corresponding to the next sub-scene, wherein the entry event carries a scene identifier of the next sub-scene;
and under the condition that the entrance event is monitored, recording the scene identification of the next sub-scene carried by the entrance event into the attribute information of the target character role.
The target character can move to the next sub-scene through walking, running and the like.
In the embodiment of the disclosure, when the target character moves from the current sub-scene to the next sub-scene, the trigger corresponding to the next sub-scene is triggered to enter the event, and the entering event carries the scene identifier of the next sub-scene, and when the server monitors the entering event, the scene identifier of the next sub-scene can be extracted from the entering event, and the scene identifier of the next sub-scene is recorded in the attribute information corresponding to the target character. Therefore, the scene identification of the latest sub-scene where the target character is located can be updated to the attribute information of the target character, and the latest scene identification recorded in the attribute information is ensured. And by setting the trigger corresponding to each sub-scene, the trigger is used for carrying out the triggering conditions of entering and exiting the sub-scene, thereby avoiding complex processing logic.
In an optional embodiment of the present disclosure, the trigger of each sub-scene may be set on a scene area boundary of the corresponding sub-scene.
For example, in the example diagram of dividing the sub-scene shown in fig. 3, the flip-flops corresponding to the sub-scene one may be disposed on four boundaries of the sub-scene one, and accordingly, the flip-flops corresponding to the sub-scene two may be disposed on four boundaries of the sub-scene two, the flip-flops corresponding to the sub-scene three may be disposed on four boundaries of the sub-scene three, and the flip-flops corresponding to the sub-scene four may be disposed on four boundaries of the sub-scene four. In addition, for a common boundary between two sub-scenes, for example, a common boundary between the first sub-scene and the second sub-scene, only one trigger may be set, and then it is determined whether the entry event of the trigger carries the scene identifier of the first sub-scene or the scene identifier of the second sub-scene according to the moving direction of the target character.
In the embodiment of the disclosure, the trigger is arranged on the boundary of the scene area corresponding to the sub-scene, so that the target character role enters the next sub-scene from any position of the next sub-scene, the entry event of the trigger can be triggered, and the flexibility of the method is improved.
In an optional implementation manner of the present disclosure, the server may obtain the position coordinates of the target character in real time during the movement of the target character, and determine that the target character moves to the next sub-scene when the position coordinates match any one of the coordinates in the next sub-scene.
In the embodiment of the present disclosure, the server may monitor a movement action of the target character, and in a movement process of the target character, obtain a position coordinate of the target character in real time, match the obtained position coordinate with a scene area range of each sub-scene, determine whether the position coordinate of the target character falls within the scene area range of a certain sub-scene, and when the position coordinate falls within the scene area range of a certain sub-scene, determine that the position coordinate of the target character matches with a coordinate in the sub-scene, thereby determining the sub-scene as a next sub-scene to which the target character moves, and determine that the target character moves to the next sub-scene.
It should be noted that, in the embodiment of the present disclosure, in order to facilitate distinguishing which sub-scene the target character moves to, for a case that a common boundary exists between the sub-scenes, it may be preset that the scene area range of each sub-scene does not include a scene area boundary, or does not include a common boundary; for the case that there is no common boundary between the sub-scenes, the scene area range of each sub-scene may be preset to include the scene area boundary.
In the embodiment of the present disclosure, the position coordinates of the target character are obtained in real time during the movement of the target character, and when the position coordinates are matched with any one of the coordinates in the next sub-scene, it is determined that the target character moves to the next sub-scene, so that whether the target character moves to a new sub-scene is determined according to the position of the target character.
The disclosed exemplary embodiment also provides a character transmission device between different scenes. Fig. 4 is a schematic block diagram illustrating a character transfer apparatus between different scenes according to an exemplary embodiment of the present disclosure, and as shown in fig. 4, the character transfer apparatus 40 between different scenes includes: a first obtaining module 401, a determining module 402, a second obtaining module 403 and a transmitting module 404.
The first obtaining module 401 is configured to obtain a scene switching instruction;
a determining module 402, configured to determine, according to the scene switching instruction, a target scene identifier of a target sub-scene to be switched;
a second obtaining module 403, configured to obtain a current scene identifier of a current sub-scene where a target persona associated with a user is located in an application program, where the current sub-scene and the target sub-scene are sub-scenes in a currently loaded application scene;
a transfer module 404, configured to transfer the target persona from the current sub-scene to the target sub-scene if the current scene identification is inconsistent with the target scene identification.
Optionally, the transmitting module 404 is further configured to:
acquiring a scene configuration table, wherein the scene configuration table comprises a plurality of sub-scenes obtained by segmenting at least one application scene in the application program, and a scene identifier and a scene aggregation point corresponding to each sub-scene;
determining a target scene set point of the target sub-scene according to the target scene identification and the scene configuration table;
and transmitting the target character role from the current sub-scene to the target scene gathering point.
Optionally, the second obtaining module 403 is further configured to:
acquiring attribute information of a target character role associated with the user in the application program according to the login information of the user;
and acquiring a scene identifier in the attribute information as a current scene identifier of a sub-scene where the target character role is currently located.
Optionally, the character transferring apparatus 40 between different scenes further includes:
and the updating module is used for updating the scene identifier in the attribute information to be the target scene identifier.
Optionally, each sub-scene in the currently loaded application scene is provided with a corresponding trigger, and the trigger of each sub-scene is associated with the scene identifier of the sub-scene to which the trigger belongs; the character transmission apparatus 40 between different scenes further includes:
the triggering module is used for triggering an entry event of a trigger corresponding to a next sub-scene when the target character role moves from the current sub-scene to the next sub-scene, wherein the entry event carries a scene identifier of the next sub-scene;
and the recording module is used for recording the scene identifier of the next sub-scene carried by the entry event into the attribute information of the target character role under the condition that the entry event is monitored.
Optionally, the trigger is set on a scene area boundary of the corresponding sub-scene.
Optionally, the character transferring apparatus 40 between different scenes further includes:
the position acquisition module is used for acquiring the position coordinates of the target character role in real time in the moving process of the target character role;
a determining module for determining that the target character moves to the next sub-scene when the position coordinates match any of the coordinates in the next sub-scene.
The character transmission device between different scenes provided by the embodiment of the disclosure can execute any character transmission method between different scenes which can be applied to a server provided by the embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method. Reference may be made to the description of any method embodiment of the disclosure for content not explicitly described in the apparatus embodiments of the disclosure.
An exemplary embodiment of the present disclosure also provides an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor. The memory stores a computer program executable by the at least one processor, the computer program, when executed by the at least one processor, is operable to cause the electronic device to perform a method of character transfer between different scenes in accordance with an embodiment of the present disclosure.
The disclosed exemplary embodiments also provide a non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor of a computer, is configured to cause the computer to perform a character transfer method between different scenes according to an embodiment of the present disclosure.
The exemplary embodiments of the present disclosure also provide a computer program product comprising a computer program, wherein the computer program, when executed by a processor of a computer, is configured to cause the computer to perform a character transfer method between different scenes according to an embodiment of the present disclosure.
Referring to fig. 5, a block diagram of a structure of an electronic device 1100, which may be a server or a client of the present disclosure, which is an example of a hardware device that may be applied to aspects of the present disclosure, will now be described. Electronic device is intended to represent various forms of digital electronic computer devices, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may 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 meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 5, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)1102 or a computer program loaded from a storage unit 1108 into a Random Access Memory (RAM) 1103. In the RAM1103, various programs and data necessary for the operation of the device 1100 may also be stored. The calculation unit 1101, the ROM 1102, and the RAM1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
A number of components in electronic device 1100 connect to I/O interface 1105, including: an input unit 1106, an output unit 1107, a storage unit 1108, and a communication unit 1109. The input unit 1106 may be any type of device capable of inputting information to the electronic device 1100, and the input unit 1106 may receive input numeric or character information and generate key signal inputs related to user settings and/or function controls of the electronic device. Output unit 1107 may be any type of device capable of presenting information and may include, but is not limited to, a display, speakers, a video/audio output terminal, a vibrator, and/or a printer. Storage unit 1108 may include, but is not limited to, a magnetic disk or an optical disk. The communication unit 1109 allows the electronic device 1100 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks, and may include, but is not limited to, modems, network cards, infrared communication devices, wireless communication transceivers and/or chipsets, such as bluetooth (TM) devices, WiFi devices, WiMax devices, cellular communication devices, and/or the like.
The computing unit 1101 can be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1101 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, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 1101 performs the various methods and processes described above. For example, in some embodiments, the method of character transfer between different scenes may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 1108. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 1100 via the ROM 1102 and/or the communication unit 1109. In some embodiments, the computing unit 1101 may be configured to perform the method of person transfer between different scenes in any other suitable way (e.g. by means of firmware).
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, causes the functions/acts specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.

Claims (10)

1. A method for transferring a character between different scenes, the method comprising:
acquiring a scene switching instruction;
determining a target scene identifier of a target sub-scene to be switched according to the scene switching instruction;
acquiring a current scene identifier of a current sub-scene where a target character role associated with a user is located in an application program, wherein the current sub-scene and the target sub-scene are sub-scenes in a current loaded application scene;
and transmitting the target character role from the current sub-scene to the target sub-scene under the condition that the current scene identification is inconsistent with the target scene identification.
2. The method of transferring characters between different scenes as claimed in claim 1, wherein said transferring said target character from said current sub-scene to said target sub-scene comprises:
acquiring a scene configuration table, wherein the scene configuration table comprises a plurality of sub-scenes obtained by segmenting at least one application scene in the application program, and a scene identifier and a scene aggregation point corresponding to each sub-scene;
determining a target scene set point of the target sub-scene according to the target scene identification and the scene configuration table;
and transmitting the target character role from the current sub-scene to the target scene gathering point.
3. The method as claimed in claim 1 or 2, wherein said obtaining the current scene id of the sub-scene where the target character associated with the user is currently located in the application program comprises:
acquiring attribute information of a target character role associated with the user in the application program according to the login information of the user;
and acquiring a scene identifier in the attribute information as a current scene identifier of a sub-scene where the target character role is currently located.
4. The method of transferring characters between different scenes as claimed in claim 3, wherein after said transferring said target character from said current sub-scene to said target sub-scene, further comprising:
and updating the scene identification in the attribute information to be the target scene identification.
5. The character transmission method between different scenes as claimed in claim 1 or 2, wherein each sub-scene in the currently loaded application scene is provided with a corresponding trigger, and the trigger of each sub-scene is associated with the scene identifier of the sub-scene;
and wherein the method further comprises:
when the target character role moves from the current sub-scene to the next sub-scene, triggering an entry event of a trigger corresponding to the next sub-scene, wherein the entry event carries a scene identifier of the next sub-scene;
and under the condition that the entrance event is monitored, recording the scene identification of the next sub-scene carried by the entrance event into the attribute information of the target character role.
6. The method as claimed in claim 5, wherein said trigger is set on the boundary of the scene area corresponding to the sub-scene.
7. The character transfer method between different scenes according to claim 5 or 6, wherein said method further comprises:
acquiring the position coordinates of the target character in real time in the moving process of the target character;
determining that the target character moves to the next sub-scene when the position coordinates match any of the coordinates in the next sub-scene.
8. A character transfer apparatus between different scenes, comprising:
the first acquisition module is used for acquiring a scene switching instruction;
the determining module is used for determining a target scene identifier of a target sub-scene to be switched according to the scene switching instruction;
a second obtaining module, configured to obtain a current scene identifier of a current sub-scene where a target persona associated with a user is located in an application program, where the current sub-scene and the target sub-scene are sub-scenes in a current loaded application scene;
a transfer module, configured to transfer the target persona from the current sub-scene to the target sub-scene if the current scene identifier is inconsistent with the target scene identifier.
9. An electronic device, comprising:
a processor; and
a memory for storing a program, wherein the program is stored in the memory,
wherein the program comprises instructions which, when executed by the processor, cause the processor to carry out the method of person transfer between different scenes according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the person transfer method between different scenes according to any one of claims 1 to 7.
CN202210575421.1A 2022-05-24 2022-05-24 Character transmission method and device among different scenes, electronic equipment and storage medium Pending CN114968523A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210575421.1A CN114968523A (en) 2022-05-24 2022-05-24 Character transmission method and device among different scenes, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210575421.1A CN114968523A (en) 2022-05-24 2022-05-24 Character transmission method and device among different scenes, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114968523A true CN114968523A (en) 2022-08-30

Family

ID=82955718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210575421.1A Pending CN114968523A (en) 2022-05-24 2022-05-24 Character transmission method and device among different scenes, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114968523A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729558A (en) * 2013-12-26 2014-04-16 北京像素软件科技股份有限公司 Scene change method
CN111729305A (en) * 2020-06-23 2020-10-02 网易(杭州)网络有限公司 Map scene preloading method, model training method, device and storage medium
CN111729306A (en) * 2020-06-24 2020-10-02 网易(杭州)网络有限公司 Game character transmission method, device, electronic equipment and storage medium
WO2021109678A1 (en) * 2019-12-04 2021-06-10 深圳追一科技有限公司 Video generation method and apparatus, electronic device, and storage medium
CN113398595A (en) * 2021-06-30 2021-09-17 上海完美时空软件有限公司 Scene resource updating method and device, storage medium and electronic device
CN114225399A (en) * 2021-12-13 2022-03-25 网易(杭州)网络有限公司 Method and device for switching scenes in game, electronic equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729558A (en) * 2013-12-26 2014-04-16 北京像素软件科技股份有限公司 Scene change method
WO2021109678A1 (en) * 2019-12-04 2021-06-10 深圳追一科技有限公司 Video generation method and apparatus, electronic device, and storage medium
CN111729305A (en) * 2020-06-23 2020-10-02 网易(杭州)网络有限公司 Map scene preloading method, model training method, device and storage medium
CN111729306A (en) * 2020-06-24 2020-10-02 网易(杭州)网络有限公司 Game character transmission method, device, electronic equipment and storage medium
CN113398595A (en) * 2021-06-30 2021-09-17 上海完美时空软件有限公司 Scene resource updating method and device, storage medium and electronic device
CN114225399A (en) * 2021-12-13 2022-03-25 网易(杭州)网络有限公司 Method and device for switching scenes in game, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US10636221B2 (en) Interaction method between user terminals, terminal, server, system, and storage medium
US11025963B2 (en) Data processing method, apparatus, and system for live streaming page
CN111417028B (en) Information processing method, information processing device, storage medium and electronic equipment
US11064048B2 (en) Method, device and system for information interaction in application service
US10878070B2 (en) Method of controlling a terminal based on motion of the terminal, terminal therefore, and storage medium
US9363300B2 (en) Systems and methods for voice communication
WO2018077041A1 (en) Method and apparatus for running application
US20210055904A1 (en) Communication terminal, communication system, method of sharing data, and recording medium
US20200336875A1 (en) Scenario-based sound effect control method and electronic device
CN109495638B (en) Information display method and terminal
CN108600680A (en) Method for processing video frequency, terminal and computer readable storage medium
CN113485617A (en) Animation display method and device, electronic equipment and storage medium
CN108880975B (en) Information display method, device and system
CN113126875B (en) Virtual gift interaction method and device, computer equipment and storage medium
CN113014960B (en) Method, device and storage medium for online video production
CN108111374A (en) Method, apparatus, equipment and the computer storage media of synchronizer list
KR20220159968A (en) Conference handling method and system using avatars
CN114726664B (en) Binding method and binding equipment for household equipment
CN114968523A (en) Character transmission method and device among different scenes, electronic equipment and storage medium
CN116931858A (en) Multi-screen projection method and device and vehicle
EP4274237A1 (en) Information display method and apparatus, and device and medium
JP2020112895A (en) Control program of information processing apparatus, control method of information processing apparatus, and information processing apparatus
CN115643445A (en) Interaction processing method and device, electronic equipment and storage medium
CN111803926B (en) Matching method and device of control object in cloud application and electronic equipment
CN114417201A (en) Message processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination