Method and device for setting virtual character state, storage medium and electronic device
Patent Information
- Application Number
- CN202211015071.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2042-08-23
AI Technical Summary
[0006]本发明实施例提供了一种虚拟角色状态的设置方法和装置、存储介质及电子设备,以至少解决在虚拟角色状态的设置过程中出现的复杂性较高的技术问题
[0023]通过本申请提供的上述实施例,在显示第一组虚拟角色的状态标识及目标虚拟角色的状态显示界面中,通过响应于在状态显示界面中获取到的对第一状态标识执行的触发操作,直接将第一状态标识直接复制给目标虚拟角色。换言之,通过在状态显示界面中对第一状态标识进行一键操作,即可将目标虚拟角色设置为与第一虚拟角色相同的状态,避免了在不同显示界面之间的跳转,减少了在多个显示界面中的操作步骤,从而解决了在虚拟角色状态的设置过程中出现的复杂性较高的技术问题,实现了提高设置虚拟角色状态的便捷性的技术效果。
Smart Images

Figure CN117008769B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more specifically, to a method and apparatus for setting the state of a virtual character, a storage medium, and an electronic device. Background Technology
[0002] In virtual social scenarios, to enable personalized expression, the virtual avatars corresponding to each user are typically given different action states. For example, setting the avatar to eat indicates that the user is currently eating; setting it to lift dumbbells indicates that the user is exercising. Furthermore, to increase the fun of interaction between users, when a target user sees a friend's reference avatar with an interesting state, they may also want to set their target avatar's state to the same state.
[0003] In related technologies, the method for setting the status of a target virtual character includes: selecting a reference virtual character in the status display interface of the target application, clicking to enter the role details page of the reference virtual character, selecting the status setting button in the role details page, copying the status identifier of the reference virtual character onto the target virtual character, and finally, when the target account returns to the status display interface, the change in the status of the target virtual character can be seen.
[0004] However, the above method for setting the virtual character's status requires switching the current virtual scene to the reference virtual character's details page in the target application's status display interface, and then returning from the details page to the current virtual scene to view the status changes of the target virtual character. In other words, the virtual character's status needs to be set in different status display interfaces, which causes a technical problem with high complexity in the operation steps.
[0005] There is currently no effective solution to the above problems. Summary of the Invention
[0006] This invention provides a method and apparatus for setting the state of a virtual character, a storage medium, and an electronic device, to at least solve the technical problems of high complexity that arise during the process of setting the state of a virtual character.
[0007] According to one aspect of the present invention, a method for setting the state of a virtual character is provided, comprising: displaying a state identifier of a first group of virtual characters and a target virtual character in a state display interface of a target application, wherein the login account of the target application is a target account, and the target virtual character is a virtual character of the target account; in response to a trigger operation performed on the first state identifier obtained in the state display interface, setting the current state of the target virtual character to a first state represented by the first state identifier, and displaying the state identifier of the target virtual character as the first state identifier in the state display interface, wherein the first state identifier is the state identifier of the first virtual character in the first group of virtual characters displayed in the state display interface, and the current state of the first virtual character is the first state.
[0008] Optionally, the above-mentioned response to the trigger operation performed on the first state identifier obtained in the status display interface, setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the status identifier of the target virtual character as the first state identifier in the status display interface includes: responding to the first drag operation performed on the first state identifier obtained in the status display interface, displaying a first copy identifier that moves with the first drag operation in the status display interface, wherein the first copy identifier is the same as the first state identifier; when the first drag operation is released when the first copy identifier is moved to a preset determination area, setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the status identifier of the target virtual character as the first state identifier in the status display interface.
[0009] Optionally, when the first drag operation is released after the first copy icon is moved to a preset determination area, setting the current state of the target virtual character to the first state represented by the first state icon and displaying the target virtual character's state icon as the first state icon in the state display interface includes: when the first drag operation is released after the first copy icon is moved to a region where the target virtual character is located, setting the current state of the target virtual character to the first state represented by the first state icon and displaying the target virtual character's state icon as the first state icon in the state display interface, wherein the preset determination area is the region where the target virtual character is located; or when the first drag operation is released after the first copy icon is moved to a preset area in the state display interface, setting the current state of the target virtual character to the first state represented by the first state icon and displaying the target virtual character's state icon as the first state icon in the state display interface, wherein the preset determination area is the preset area in the state display interface.
[0010] Optionally, the above-mentioned response to the trigger operation performed on the first state identifier obtained in the status display interface, setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the status identifier of the target virtual character as the first state identifier in the status display interface, includes: responding to the long press operation performed on the first state identifier obtained in the status display interface, displaying a status copy button in the status display interface, wherein the status copy button is used to copy the current state of the first virtual character to the target virtual character; responding to the trigger operation performed on the status copy button obtained in the status display interface, setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the status identifier of the target virtual character as the first state identifier in the status display interface.
[0011] Optionally, the above method further includes: in response to a scene switching operation obtained in the status display interface, switching the displayed virtual scene from a first local virtual scene to a second local virtual scene in the status display interface, and displaying the status identifiers of the second group of virtual characters located in the second local virtual scene, wherein the status identifiers of the first group of virtual characters are located in the first local virtual scene; in response to a trigger operation performed on the second status identifier obtained in the status display interface, setting the current state of the target virtual character to the second state represented by the second status identifier, and displaying the status identifier of the target virtual character as the second status identifier in the status display interface, wherein the second status identifier is the status identifier of the second virtual character in the second group of virtual characters displayed in the status display interface, and the current state of the second virtual character is the second state.
[0012] Optionally, the above-mentioned response to the trigger operation performed on the second state identifier obtained in the status display interface, setting the current state of the target virtual character to the second state represented by the second state identifier, and displaying the status identifier of the target virtual character as the second state identifier in the status display interface, includes: when the target virtual character is still located in the first partial virtual scene, in response to the second drag operation performed on the second state identifier obtained in the status display interface, displaying a second copy identifier that moves with the second drag operation in the status display interface, wherein the second copy identifier is the same as the second state identifier; when the second copy identifier is moved across the scene to the area where the target virtual character is located in the first partial virtual scene, switching the displayed virtual scene from the second partial virtual scene to the first partial virtual scene in the status display interface; when the second drag operation is released when the second copy identifier is located in the area where the target virtual character is located, setting the current state of the target virtual character to the second state represented by the second state identifier, and displaying the status identifier of the target virtual character located in the first partial virtual scene as the second state identifier.
[0013] Optionally, when the second copy identifier is moved across scenes to the area where the target virtual character is located in the first partial virtual scene, the virtual scene displayed in the status display interface is switched from the second partial virtual scene to the first partial virtual scene, including: when the distance between the first partial virtual scene and the second partial virtual scene is greater than or equal to a predetermined distance threshold, the virtual scene displayed in the status display interface is switched from the second partial virtual scene to the first partial virtual scene when the second copy identifier is moved away from the second partial virtual scene; or when there is no overlapping part between the first partial virtual scene and the second partial virtual scene, the virtual scene displayed in the status display interface is switched from the second partial virtual scene to the first partial virtual scene when the second copy identifier is moved away from the second partial virtual scene.
[0014] Optionally, when setting the current state of the target virtual character to the second state represented by the second state identifier, the above method further includes: when the number of times the target state is copied within a preset time period reaches a preset number threshold, changing the display position of the state identifier of the second virtual character from being located in the second local virtual scene to being located in the first local virtual scene, wherein the number of times the target state is copied represents the number of times the target virtual character copies the current state of the second virtual character; wherein the first local virtual scene is the local virtual scene that is displayed by default when the state display interface is opened.
[0015] Optionally, when the current state of the target virtual character is set to the first state represented by the first state identifier, the above method further includes: sending a status notification message to the first account, wherein the first virtual character is a virtual character of the first account, and the status notification message is used to notify the first account that the current state of the first virtual character has been copied by the target virtual character.
[0016] Optionally, when displaying the status identifiers of the first group of virtual characters and the target virtual character in the status display interface of the target application, the above method further includes: displaying a third status identifier of the target virtual character in the status display interface, wherein the third status identifier indicates that the current status of the target virtual character is the third status; the above-mentioned setting the current status of the target virtual character to the first status represented by the first status identifier and displaying the status identifier of the target virtual character as the first status identifier in the status display interface includes: updating the current status of the target virtual character from the third status to the first status, and updating the status identifier of the target virtual character from the third status identifier to the first status identifier in the status display interface.
[0017] Optionally, when displaying the status identifiers of the first group of virtual characters and the target virtual character in the status display interface of the target application, the method further includes: displaying a status pending setting identifier of the target virtual character in the status display interface, wherein the status pending setting identifier indicates that the current status of the target virtual character is empty; setting the current status of the target virtual character to the first status represented by the first status identifier and displaying the status identifier of the target virtual character as the first status identifier in the status display interface includes: setting the current status of the target virtual character to the first status and updating the status identifier of the target virtual character from the status pending setting identifier to the first status identifier in the status display interface.
[0018] Optionally, when displaying the status identifiers of the first group of virtual characters and the target virtual character in the status display interface of the target application, the above method further includes: displaying the motion animations of the first group of virtual characters in the status display interface, wherein the motion animations of each virtual character in the first group of virtual characters correspond to the status identifiers of each virtual character in the first group of virtual characters; when setting the current state of the target virtual character to the first state represented by the first status identifier, and displaying the status identifier of the target virtual character as the first status identifier in the status display interface, the above method further includes: displaying the motion animations of the target virtual character in the status display interface; wherein both the motion animations of the target virtual character and the motion animations of the first virtual character displayed in the status display interface correspond to the first status identifiers, and the motion animations of the target virtual character and the first virtual character are the same; or, the motion animations of the target virtual character are used to demonstrate the target virtual character performing a first action, and the motion animations of the first virtual character are used to demonstrate the first virtual character performing a first action, wherein the first action corresponds to the first status identifier.
[0019] According to another aspect of the present invention, a device for setting the state of a virtual character is also provided, comprising: a first display unit, configured to display a state identifier of a first group of virtual characters and a target virtual character in a state display interface of a target application, wherein the login account of the target application is a target account, and the target virtual character is a virtual character of the target account; and a first processing unit, configured to, in response to a trigger operation performed on the first state identifier obtained in the state display interface, set the current state of the target virtual character to a first state represented by the first state identifier, and display the state identifier of the target virtual character as the first state identifier in the state display interface, wherein the first state identifier is the state identifier of the first virtual character in the first group of virtual characters displayed in the state display interface, and the current state of the first virtual character is the first state.
[0020] According to another aspect of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer program, wherein the computer program is configured to execute the above-described method for setting the virtual character state when it is run.
[0021] According to another aspect of the present invention, a computer program product is also provided, including a computer program / instructions that, when executed by a processor, implement the steps of the above-described method.
[0022] According to another aspect of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute the method for setting the state of the virtual character through the computer program.
[0023] Through the embodiments provided in this application, in the display interface showing the status identifiers of the first group of virtual characters and the status of the target virtual character, the first status identifier is directly copied to the target virtual character in response to a trigger operation performed on the first status identifier obtained in the status display interface. In other words, by performing a one-click operation on the first status identifier in the status display interface, the target virtual character can be set to the same state as the first virtual character, avoiding switching between different display interfaces and reducing the operation steps in multiple display interfaces. This solves the technical problem of high complexity in setting the virtual character state and achieves the technical effect of improving the convenience of setting the virtual character state. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0025] Figure 1 This is a schematic diagram illustrating an application scenario of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0026] Figure 2 This is a flowchart of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0027] Figure 3 This is a schematic diagram (a) of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0028] Figure 4 This is a schematic diagram (II) of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0029] Figure 5This is a schematic diagram (iii) of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0030] Figure 6 This is a schematic diagram (IV) of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0031] Figure 7 This is a schematic diagram (V) of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0032] Figure 8 This is a schematic diagram (six) of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0033] Figure 9 This is a schematic diagram of an optional virtual scene switching according to an embodiment of the present invention;
[0034] Figure 10 This is a schematic diagram (a) of optional virtual scene switching state replication and state setting according to an embodiment of the present invention;
[0035] Figure 11 This is a schematic diagram (II) of an optional virtual scene switching state replication and state setting according to an embodiment of the present invention;
[0036] Figure 12 This is a schematic diagram (III) of an optional virtual scene switching state replication and state setting according to an embodiment of the present invention;
[0037] Figure 13 This is a schematic diagram illustrating an optional change in the display position of the status indicator according to an embodiment of the present invention;
[0038] Figure 14 This is a schematic diagram of an optional message notification after state replication according to an embodiment of the present invention;
[0039] Figure 15 This is an overall flowchart of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0040] Figure 16 This is a timing diagram of an optional method for setting the state of a virtual character according to an embodiment of the present invention;
[0041] Figure 17 This is a schematic diagram of an optional virtual character state setting device according to an embodiment of the present invention;
[0042] Figure 18 This is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. Detailed Implementation
[0043] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0044] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0045] According to one aspect of the present invention, a method for setting the state of a virtual character is provided. As an optional implementation, the above-described method for setting the state of a virtual character can be applied, but is not limited to, to applications such as... Figure 1 The application scenarios shown are as follows. In, for example... Figure 1 In the application scenario shown, terminal device 102 can communicate with server 106 via network 104, but is not limited to this. Server 106 can perform operations on database 108, such as write or read data operations. Terminal device 102 may include, but is not limited to, a human-computer interaction screen, a processor, and a memory. The human-computer interaction screen may be used to display the status of the target virtual character and the status identifier of the first group of virtual characters on terminal device 102. The processor may be used to respond to the human-computer interaction operations, execute corresponding operations, or generate corresponding instructions and send the generated instructions to server 106. The memory is used to store relevant processing data, such as the first status identifier and the relationship between the target account and the target virtual character.
[0046] As an optional approach, the following steps in the method for setting the virtual role status can be executed on server 106: Step S102, display the status identifier of the first group of virtual roles and the target virtual role in the status display interface of the target application, wherein the login account of the target application is the target account, and the target virtual role is the virtual role of the target account; Step S104, in response to the trigger operation performed on the first status identifier obtained in the status display interface, set the current status of the target virtual role to the first status represented by the first status identifier, and display the status identifier of the target virtual role as the first status identifier in the status display interface, wherein the first status identifier is the status identifier of the first virtual role in the first group of virtual roles displayed in the status display interface, and the current status of the first virtual role is the first status.
[0047] As an optional example, this embodiment does not limit the execution subject of the above steps S102 to S104. For example, the above steps S102 to S104 can be executed on the terminal device 102 or the server 106, or they can be partially executed on the terminal device 102 and partially executed on the computing server communicating with the server 106.
[0048] Using the above method, in the display interface showing the status identifiers of the first group of virtual characters and the status of the target virtual character, the first status identifier is directly copied to the target virtual character in response to the trigger operation obtained in the status display interface. In other words, by performing a one-click operation on the first status identifier in the status display interface, the target virtual character can be set to the same status as the first virtual character, avoiding switching between different display interfaces and reducing the operation steps in multiple display interfaces. This solves the technical problem of high complexity in setting the status of virtual characters and achieves the technical effect of improving the convenience of setting the status of virtual characters.
[0049] To address the high complexity encountered in setting the state of a virtual character, this invention provides a method for setting the state of a virtual character. Figure 2 This is a flowchart of a method for setting the state of a virtual character according to an embodiment of the present invention. The process includes the following steps:
[0050] Step S202: Display the status identifier of the first group of virtual characters and the target virtual character in the status display interface of the target application, wherein the login account of the target application is the target account, and the target virtual character is the virtual character of the target account;
[0051] It should be noted that in virtual social scenarios, each user corresponds to a virtual character and sets a corresponding status indicator for the virtual character based on their current state, in order to express their current mood or what they are doing.
[0052] For example, such as Figure 3 As shown in (a), the status display interface of the target application where the target account is logged in includes the target virtual character and a first group of virtual characters other than the target virtual character, such as Jessica, Xiaolanlan, Tom, etc. The status of each virtual character in the first group can be seen from the status identifiers. For example, according to the status identifier of the virtual character Jessica, it can be seen that user 1 corresponding to Jessica is sleeping; according to the status identifier of the virtual character Xiaolanlan, it can be seen that user 2 corresponding to Xiaolanlan is eating, etc.
[0053] Obviously, it is easy to understand that the status display interface described above is merely an example and is not intended to limit the scope of the application. For instance, the number of virtual characters in the status display interface could be 3, 4, or 5, and the status indicator for each virtual character could be any of the pre-set status indicators, etc.
[0054] Step S204: In response to the trigger operation performed on the first state identifier obtained in the status display interface, the current state of the target virtual character is set to the first state represented by the first state identifier, and the status identifier of the target virtual character is displayed as the first state identifier in the status display interface. The first state identifier is the status identifier of the first virtual character in the first group of virtual characters displayed in the status display interface, and the current state of the first virtual character is the first state.
[0055] In this application embodiment, the states of each virtual character in the virtual scene include, but are not limited to, two situations: one is an empty state, and the other is a pre-set state. Accordingly, such as Figure 3 The states of the virtual character shown in (a) include, but are not limited to, the two situations mentioned above. The following example illustrates how to update the two different states of the virtual character to the first state identifier.
[0056] As an optional example, when displaying the status identifier of the first group of virtual characters and the target virtual character in the status display interface of the target application, the above includes: displaying the status pending setting identifier of the target virtual character in the status display interface, wherein the status pending setting identifier indicates that the current status of the target virtual character is empty.
[0057] The above-mentioned setting the current state of the target virtual character to the first state represented by the first state identifier and displaying the state identifier of the target virtual character as the first state identifier in the state display interface includes: setting the current state of the target virtual character to the first state, and updating the state identifier of the target virtual character from the state pending setting identifier to the first state identifier in the state display interface.
[0058] like Figure 3 As shown in (a), assuming the current state of the target virtual character is a state pending setting flag, it means that no state has been pre-set for the target virtual character. If you want to set the state of the target virtual character to the first state flag after seeing the first state flag of the first virtual character, you only need to perform a trigger operation on the first state flag in the state display interface to change the state pending setting flag of the target virtual character to the first state flag.
[0059] like Figure 3 As shown in (b), after a trigger operation is performed on the first state identifier, the target virtual character's state identifier is updated from the pending state identifier to the first state identifier. The trigger operation on the first state identifier includes, but is not limited to, long-pressing or dragging the first state identifier. The detailed process of the trigger operation will be described below with specific examples.
[0060] As another optional example, when displaying the status identifiers of the first group of virtual characters and the target virtual character in the status display interface of the target application, the method further includes: displaying the third status identifier of the target virtual character in the status display interface, wherein the third status identifier indicates that the current status of the target virtual character is the third state;
[0061] The above-mentioned setting the current state of the target virtual character to the first state represented by the first state identifier and displaying the state identifier of the target virtual character as the first state identifier in the state display interface also includes: updating the current state of the target virtual character from the third state to the first state, and updating the state identifier of the target virtual character from the third state identifier to the first state identifier in the state display interface.
[0062] like Figure 4 As shown in (a), assuming the current state of the target virtual character is the third state identifier, if you want to set the state of the target virtual character to the first state identifier after seeing the first state identifier of the first virtual character, you only need to perform a trigger operation on the first state identifier in the state display interface to change the state identifier of the target virtual character.
[0063] like Figure 4As shown in (b), after the trigger operation is performed on the first state identifier, the target virtual character's state identifier is updated from the state pending setting identifier to the first state identifier. The trigger operation on the first state identifier includes, but is not limited to, long-pressing or dragging the first state identifier.
[0064] As can be seen from the above embodiments, in the process of changing the status identifier of the target virtual character, the selection and operation of the first status identifier, as well as the display result of the changed status identifier of the target virtual character, are all completed within the same status display interface of the target application. In other words, without switching status display interfaces, the status identifier of the target virtual character can be changed with a single click on the first status identifier. This reduces the operational steps involved in setting the virtual character's status, solves the technical problem of high complexity in setting the virtual character's status, and improves the convenience of setting the virtual character's status.
[0065] As an optional example, when displaying the status indicators of the first group of virtual characters and the target virtual character in the status display interface of the target application, the above method further includes: displaying the motion animation of the first group of virtual characters in the status display interface, wherein the motion animation of each virtual character in the first group of virtual characters corresponds to the status indicator of each virtual character in the first group of virtual characters;
[0066] When setting the current state of the target virtual character to the first state represented by the first state identifier and displaying the state identifier of the target virtual character as the first state identifier in the state display interface, the above method further includes: displaying the motion animation of the target virtual character in the state display interface;
[0067] In this case, the motion animation of the target virtual character and the motion animation of the first virtual character displayed in the status display interface are the same and correspond to the first status identifier, and the motion animation of the target virtual character is the same as the motion animation of the first virtual character; or, the motion animation of the target virtual character is used to show the target virtual character performing a first action, and the motion animation of the first virtual character is used to show the first virtual character performing a first action, and the first action corresponds to the first status identifier.
[0068] pass Figure 3 and Figure 4 As shown in the embodiment, after performing a trigger operation on the first status identifier, the status identifier of the target virtual character can be set to the first status identifier. Therefore, after the setting is completed, the specific manifestation of the target virtual character in the status display interface includes, but is not limited to, at least one of the following:
[0069] (1) Update all the appearance and status indicators of the target virtual character.
[0070] like Figure 4 As shown, after setting the status identifier of the target virtual character according to the above method for setting the virtual character status, the character image, animation, and third status identifier of the target virtual character are directly replaced with the character image, animation, and first status identifier of the first virtual character.
[0071] (2) Only update the status flag of the target virtual character.
[0072] like Figure 5 As shown in (a), assuming the current state of the target virtual character is empty, after setting the state identifier of the target virtual character according to the above method of setting the virtual character state, only the state identifier to be set of the target virtual character is updated to the first state identifier, and the action performed by the target virtual character is changed to the same first action as the first virtual character, such as lifting dumbbells, while the image of the target virtual character does not change.
[0073] Therefore, by adopting the technical solution in the embodiments of this application, the status identifier, actions, and part or all of the character image of the target virtual character can be updated with one click, which improves the efficiency and flexibility of setting the virtual character status and increases the fun of virtual social interaction.
[0074] As an optional example, the above-described response to the trigger operation performed on the first state identifier obtained in the status display interface, setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the status identifier of the target virtual character as the first state identifier in the status display interface, includes:
[0075] In response to a first drag operation performed on a first status identifier obtained in the status display interface, a first copy identifier that moves following the first drag operation is displayed in the status display interface, wherein the first copy identifier is the same as the first status identifier;
[0076] When the first drag operation is released when the first copy identifier is moved to the preset determination area, the current state of the target virtual character is set to the first state represented by the first state identifier, and the state identifier of the target virtual character is displayed as the first state identifier in the state display interface.
[0077] like Figure 6As shown in (a), assuming the current state of the target virtual character is the state corresponding to the third state identifier, when the state of the target virtual character is set to the first state corresponding to the first state identifier, the first state identifier of the first virtual character is selected by the steps in the above triggering operation (e.g., long press for a preset duration), for example, long press for 0.5 seconds, and the state copy mode is entered to copy the first state identifier, so as to obtain a first copy identifier that is the same as the first state identifier.
[0078] Through such Figure 6 The first drag operation shown in (b) causes the first copy identifier to move along with the movement of the first drag operation, and when the first copy identifier is moved to a position as shown in (b), the first copy identifier moves along with the movement of the first drag operation. Figure 6 When the preset judgment area shown in (c) is reached, the first drag operation is stopped, and the current state of the target virtual character is set to the first state indicated by the first state identifier, for example, as shown in (c). Figure 6 The image in (d) shows the state of lifting dumbbells.
[0079] It should be noted that the aforementioned preset judgment area can be, but is not limited to, the area where the target virtual character is located or the preset area in the status display interface. The specific processes for setting the status of the target virtual character based on these two different judgment areas include:
[0080] When the first drag operation is released while the first copy marker is moved to the area where the target virtual character is located, the current state of the target virtual character is set to the first state represented by the first state marker, and the state marker of the target virtual character is displayed as the first state marker in the state display interface. The preset determination area is the area where the target virtual character is located; or
[0081] When the first drag operation is released when the first copy identifier is moved to the preset area in the status display interface, the current state of the target virtual character is set to the first state represented by the first state identifier, and the status identifier of the target virtual character is displayed as the first state identifier in the status display interface, wherein the preset determination area is the preset area in the status display interface.
[0082] like Figure 6 As shown in (c), when the first copy identifier is moved to the preset judgment area where the target virtual character is located, if the dragging operation of the first copy identifier is stopped, the third state identifier of the target virtual character can be set to the first copy identifier. At the same time, the state of the target virtual character is also updated to the first state corresponding to the first copy identifier (first state identifier), for example, the state of lifting dumbbells. Specifically, as shown in (c) Figure 6 As shown in (d).
[0083] It is easy to understand that the area where the aforementioned target virtual character is located includes not only areas such as Figure 6 The location of the third state identifier shown in (c) and the location of the target virtual character can also be as follows: Figure 6 Any position within the dashed box shown in (c). It is not necessary to drag the first copy identifier completely into the dashed box; as long as the first copy identifier overlaps with the dashed box, it is considered that the user wants to copy the first status identifier. The client of the target account can then send the ID parameter of the first status identifier to the backend. The backend responds to this setting, thus setting the status of the target virtual character to the first status represented by the first status identifier.
[0084] In addition to the areas where the target virtual characters are located, other areas can also include... Figure 7 The preset area in the status display interface shown in (a) is set as a preset judgment area. Specifically, when the first copy identifier is moved to, as shown in (a), the preset area is set as a preset judgment area. Figure 7 When the preset judgment area shown in (a) is reached, if the dragging operation of the first copy identifier is stopped, the third state identifier of the target virtual character can be set to the first copy identifier. At the same time, the state of the target virtual character is also updated to the first state corresponding to the first copy identifier (first state identifier), for example, the state of lifting dumbbells. Specifically, as shown in (a)... Figure 7 As shown in (b).
[0085] Obviously, Figure 7 The preset area in the status display interface shown is only an example and is not limited to it. For example, it could also be a specified area on the left, right or above the target virtual character.
[0086] By using the above method, a first copy icon that moves with the first drag operation is displayed in the status display interface. When the first copy icon moves to the preset judgment area, the first status icon is automatically copied to the target virtual character, and the motion animation of the target virtual character is displayed as the same motion animation as the first status icon, thereby achieving the technical effect of improving the convenience of setting the status of the virtual character.
[0087] As an alternative example, in addition to the first drag operation on the first copy identifier in the above embodiment, the trigger operation on the first state identifier can also be achieved through the following state copy operation:
[0088] In response to a long press operation performed on the first status identifier obtained in the status display interface, a status copy button is displayed in the status display interface, wherein the status copy button is used to copy the current status of the first virtual character to the target virtual character.
[0089] In response to the trigger operation of the status copy button obtained in the status display interface, the current status of the target virtual character is set to the first status represented by the first status identifier, and the status identifier of the target virtual character is displayed as the first status identifier in the status display interface.
[0090] like Figure 8 As shown in (a), in the status display interface, by long-pressing the first status icon, a status copy tab is displayed. Then, by selecting the "Copy" or "Don't Copy" button, you can determine whether to copy the first status icon. Furthermore, if the "Copy" button is selected, the first status icon is directly copied to the target virtual character. For details, please refer to... Figure 8 As shown in (b).
[0091] It should be noted that, unlike the above-mentioned method of setting the target virtual character's state by long-pressing the first state identifier and dragging the first copy identifier, in this embodiment, the target virtual character's state can be set simply by long-pressing the first state identifier and selecting the state option. This avoids the first copy identifier from moving, reduces the response time of state copying, and improves the efficiency of state setting.
[0092] In the status display interface of the target application, the actual virtual scene (e.g., status square) is usually composed of multiple different local virtual scenes. The status display interface displayed after logging into the target application is usually the default local virtual scene. However, when it is necessary to enter other local virtual scenes from one local virtual scene, this can be achieved by switching the display scene of the status square. Furthermore, the status identifier in the switched local virtual scene can be set as the status identifier of the target virtual character. Specifically, this includes:
[0093] In response to the scene switching operation obtained in the status display interface, the virtual scene to be displayed in the status display interface is switched from the first local virtual scene to the second local virtual scene, and the status indicators of the second group of virtual characters located in the second local virtual scene are displayed, wherein the status indicators of the first group of virtual characters are located in the first local virtual scene;
[0094] In response to the trigger operation performed on the second state identifier obtained in the status display interface, the current state of the target virtual character is set to the second state represented by the second state identifier, and the status identifier of the target virtual character is displayed as the second state identifier in the status display interface. The second state identifier is the status identifier of the second virtual character in the second group of virtual characters displayed in the status display interface, and the current state of the second virtual character is the second state.
[0095] like Figure 9As shown in (a), assuming the first local virtual scene is the default local virtual scene displayed when the status display interface is opened, and the status indicator that the target account wants to set is displayed in the second local virtual scene, then by performing a switching operation, the virtual scene displayed in the status display interface is switched from the first local virtual scene to the second local virtual scene. Figure 9 The second local virtual scene shown in (b) is shown in the middle.
[0096] Obviously, it is easy to understand that the first local virtual scene and the second local virtual scene are different virtual scenes displayed simultaneously in the status square. By switching between them, the virtual scene displayed in the status display interface can be either the first local virtual scene or the second local virtual scene.
[0097] Using the same method as the triggering operation performed on the first state identifier, a triggering operation can be performed on the second state identifier in the second local virtual scene to set the current state of the target virtual character to the second state represented by the second state identifier.
[0098] It should be noted that during the process of switching the first partial virtual scene in the status display interface to the second partial virtual scene by performing a switching operation, only the partial virtual scene is switched, but the target virtual character is still located in the first partial virtual scene. In this case, the implementation method of setting the current state of the target virtual character to the second state represented by the second state identifier is as follows:
[0099] While the target virtual character is still in the first partial virtual scene, in response to the second drag operation performed on the second status identifier obtained in the status display interface, a second copy identifier that moves with the second drag operation is displayed in the status display interface, wherein the second copy identifier is the same as the second status identifier;
[0100] When the second copy identifier is moved across scenes to the area where the target virtual character is located in the first local virtual scene, the virtual scene displayed in the status display interface will switch from the second local virtual scene to the first local virtual scene.
[0101] When the second drag operation is released while the second copy identifier is located in the area where the target virtual character is located, the current state of the target virtual character is set to the second state represented by the second state identifier, and the state identifier of the target virtual character located in the first local virtual scene is displayed as the second state identifier.
[0102] like Figure 10As shown in (a), when the virtual scene displayed in the status interface is switched from the first local virtual scene to the second local virtual scene, the target virtual character is still located in the first local virtual scene, while the second status identifier is located in the second local virtual scene. By performing a second drag operation on the second status identifier, the second copy identifier is moved from the second local virtual scene to the first local virtual scene. When the second copy identifier is moved to the preset judgment area in the first local virtual scene, the second drag operation on the second copy identifier is released, which can switch the status identifier of the target virtual character to the second status identifier and switch the current state of the target virtual character to the second state represented by the second status identifier.
[0103] It should be noted that, depending on the distance between the virtual scenes, the aforementioned first and second local virtual scenes can be two virtual scenes with a distance greater than or equal to a predetermined distance threshold, such as two adjacent virtual scenes in the state square; or they can be two virtual scenes without overlapping parts, such as when other virtual scenes exist between the first and second local virtual scenes. For both cases of the first and second local virtual scenes, the method for setting the state of the target virtual character further includes:
[0104] When the distance between the first local virtual scene and the second local virtual scene is greater than or equal to a predetermined distance threshold, and the second copy identifier is moved away from the second local virtual scene, the virtual scene displayed in the status display interface switches from the second local virtual scene to the first local virtual scene; or
[0105] If there is no overlap between the first local virtual scene and the second local virtual scene, when the second copy identifier is moved away from the second local virtual scene, the virtual scene displayed in the status display interface will switch from the second local virtual scene to the first local virtual scene.
[0106] The implementation of the above-mentioned method for setting the state of the target virtual character will be further described below with reference to specific embodiments.
[0107] Example 1
[0108] like Figure 11 As shown in (a), assuming the distance d between the first local virtual scene and the second local virtual scene is greater than or equal to a predetermined distance threshold Th, and the first local virtual scene and the second local virtual scene are two adjacent virtual scenes, then the specific steps to set the current state of the target virtual character to the second state represented by the second state identifier are as follows:
[0109] S1102, long press the second status indicator to enter status copy mode;
[0110] The second status identifier is located in the second local virtual scene. By long-pressing the second status identifier, for example, for 0.5 seconds, the second copy identifier is displayed in the second local virtual scene. The second copy identifier is the same as the second status identifier.
[0111] Obviously, the 0.5-second long press mentioned above is just an example and is not limited to it. For example, it could also be a 0.3-second long press, a 0.6-second long press, etc. Furthermore, by setting a preset long press duration, conflicts with screen swipe gestures can be avoided.
[0112] S1104, Execute step ①, perform a second drag operation on the second copy identifier, so that the second copy identifier moves to the edge of the state interface where the second virtual scene is located following the second drag operation;
[0113] S1106, through step ②, continue to execute the second drag operation, so that the second copy identifier is moved out of the second local virtual scene and enters the first local virtual scene;
[0114] S1108, when executing step ③, when the second copy identifier is moved to the preset judgment area or the preset area in the status display interface where the target virtual character is located in the first partial virtual scene, release the second drag operation;
[0115] S1110, Set the current state of the target virtual character to the second state represented by the second state identifier.
[0116] For example, such as Figure 11 As shown in (b), assuming the second state is identified as a sleep state, the current state of the target virtual character is set to a sleep state through the above steps S1102 to S1110.
[0117] Example 2
[0118] like Figure 12 As shown in (a), it is assumed that there is a third local virtual scene between the first local virtual scene and the second local virtual scene, that is, there is no overlap between the first local virtual scene and the second local virtual scene.
[0119] like Figure 12 As shown in (b), in the second local virtual scene, long-pressing the second status icon enters the status copy mode, and the second copy icon is displayed, where the second copy icon is the same as the second status icon. When the second copy icon leaves the second local virtual scene, the virtual scene displayed in the status display interface jumps from the second local virtual scene to the first local virtual scene, and at the same time, the second copy icon is moved to the first local virtual scene.
[0120] When the second copy identifier is moved to a preset determination area in the first partial virtual scene, the second copy identifier is applied to the target virtual character, so that the status identifier of the target virtual character is updated to the second copy identifier, and the current state of the target virtual character is updated to the second state represented by the second copy identifier, such as the sleeping state.
[0121] As can be seen from the above embodiments 1 and 2, after switching virtual scenes in the status display interface, different methods can be used to set the desired status of the user according to the distance between the switched virtual scenes, which improves the flexibility of the target virtual character status setting and enhances the applicability of the status setting.
[0122] As an optional example, when setting the current state of the target virtual character to the second state represented by the second state identifier, the above method further includes:
[0123] If the number of times the target state is copied reaches a preset threshold within a preset time period, the display position of the state identifier of the second virtual character will be changed from being located in the second local virtual scene to being located in the first local virtual scene. Here, the number of times the target state is copied represents the number of times the target virtual character copies the current state of the second virtual character.
[0124] The first local virtual scene is the local virtual scene that is displayed by default when the status display interface is opened.
[0125] like Figure 13 As shown in (a), assume the second virtual character is located in the second local virtual scene, and the status identifier of the second virtual character is status identifier 1. The target virtual character is located in the first local virtual scene. Within a historical period, assuming status identifier 1 is copied 6 times, and the preset threshold is 5, in this case, the display position of status identifier 1 is switched from the second local virtual scene to the first local virtual scene, making the distance between status identifier 1 and the target virtual character closer. Specifically, as shown... Figure 13 As shown in (b).
[0126] It should be noted that the reason for changing the display position of the aforementioned status identifier 1 is twofold. Firstly, based on the number of times status identifier 1 is copied, the second virtual character is determined as the target virtual character and thus as a close friend. Secondly, for status identifier 1 that users frequently set, displaying it in a position closer to the target virtual character, such as in the first partial virtual scene that is displayed by default in the status display interface, improves the convenience of triggering operations on status identifier 1 and further enhances the response efficiency of status settings.
[0127] As an optional example, if the current state of the target virtual character is set to the first state represented by the first state identifier, the method further includes:
[0128] A status notification message is sent to the first account, where the first virtual character is the virtual character of the first account. The status notification message is used to inform the first account that the current status of the first virtual character has been copied by the target virtual character.
[0129] like Figure 14 As shown in (a), assume that the target application includes a list of accounts, where the list of accounts includes multiple different accounts, and each account corresponds to a virtual character and the initial state icon of the virtual character.
[0130] Assumption Figure 3 The first virtual character in the context is the virtual character corresponding to the first account. After executing a trigger operation, copying the first state identifier, and setting the first state represented by the copied identifier as the current state of the target virtual character, it will be displayed in the first account's chat window as shown below. Figure 14 The status notification message shown in (b) is, for example, “Xiaoming copied your status 2 seconds ago,” to notify the first account that its status has been copied by the target account. Furthermore, by selecting the “View” option, the first account can view the target virtual character's animation and status indicators in the virtual scene after the status update.
[0131] The aforementioned status notification method allows for timely notification of the first account to be copied after the virtual character's status is copied, increasing the fun of virtual social interaction. At the same time, through this notification, the first account to be copied can also view the updated status of the target virtual character in a timely manner, improving the timeliness of obtaining status copy information.
[0132] To better understand the method for setting the virtual character state described in this application, the following is an example... Figure 15 The overall flowchart shown below provides a further description.
[0133] S1502: The user long-presses the status icon to enter the status copy mode;
[0134] For example, such as Figure 11 As shown in (b), after pressing and holding the second status indicator for 0.5 seconds, the second copy indicator will be displayed.
[0135] S1504, drag the second copy icon in the status display interface.
[0136] The second copy identifier moves along with the second drag operation, and can be moved to different display positions in the same local virtual scene or different local virtual scenes before the second drag operation is released.
[0137] S1506, release your finger to stop the dragging operation;
[0138] S1508, Determine whether the status indicator has been moved to the preset determination area;
[0139] For example, if the status indicator is not moved to the preset judgment area where the target virtual character is located when the drag operation is released, the copy operation is exited, as in step S1512.
[0140] If the status indicator is moved to the preset judgment area where the target virtual character is located when the drag operation is released, then step S1510 is executed.
[0141] S1510, Set the state of the target virtual character to the target state;
[0142] For example, such as Figure 11 As shown in (b), the state of the target virtual character is set to the second state represented by the second state identifier, for example, the sleeping state.
[0143] It should be noted that after the status settings are completed, the second copy marker in the drag-and-drop operation applies to the target virtual character and disappears from the first partial virtual scene.
[0144] S1512, Exit copying.
[0145] To more clearly understand the various embodiments of this application, the following description is provided in conjunction with... Figure 16 The sequence diagram shown describes the method for setting the state of the aforementioned virtual character from the interaction process between the target account (user), the client (product side), and the backend (logic layer). Specifically, it includes:
[0146] S1602, The user performs a long press operation on the target status indicator;
[0147] For example, after pressing and holding the target status icon for 0.5 seconds, you enter the status copy mode and display a copy icon that is the same as the target status icon in the status display interface.
[0148] S1604, drag the copy marker and release the drag operation at the specified position;
[0149] S1606, Determine whether the copy identifier overlaps with the area where the target virtual character is located;
[0150] The criteria for judgment include, but are not limited to, the following: Figure 6 The preset judgment area where the target virtual character is located, as shown in (c), is... Figure 7 The preset area in the status display interface shown in (a).
[0151] S1608, if the judgment result is that there is regional overlap, the status ID of the target status is transmitted to the backend;
[0152] Each virtual character's state corresponds to a state ID.
[0153] S1610, the backend sets the target virtual character's status to the new status;
[0154] Clearly, the new state refers to the state represented by the target state identifier, for example, Figure 11 The sleep state represented by the second state identifier shown in (b) is shown.
[0155] S1612, Display the motion animation of the target virtual character in the new state within the target application where the target account is located.
[0156] Through the above embodiments provided in this application, by performing a one-click operation on the first status identifier in the status display interface, the target virtual character can be set to the same status as the first virtual character, avoiding the need to jump between different display interfaces and reducing the operation steps in multiple display interfaces. This solves the technical problem of high complexity in the process of setting the virtual character status and achieves the technical effect of improving the convenience of setting the virtual character status.
[0157] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to the present invention.
[0158] According to another aspect of the embodiments of the present invention, as follows is also provided Figure 11 A device for setting the state of a virtual character, shown, includes:
[0159] The first display unit 1702 is used to display the status identifier of the first group of virtual characters and the target virtual character in the status display interface of the target application, wherein the login account of the target application is the target account, and the target virtual character is the virtual character of the target account;
[0160] It should be noted that in virtual social scenarios, each user corresponds to a virtual character and sets a corresponding status indicator for the virtual character based on their current state, in order to express their current mood or what they are doing.
[0161] For example, such as Figure 3As shown in (a), the status display interface of the target application where the target account is logged in includes the target virtual character and a first group of virtual characters other than the target virtual character, such as Jessica, Xiaolanlan, Tom, etc. The status of each virtual character in the first group can be seen from the status identifiers. For example, according to the status identifier of the virtual character Jessica, it can be seen that user 1 corresponding to Jessica is sleeping; according to the status identifier of the virtual character Xiaolanlan, it can be seen that user 2 corresponding to Xiaolanlan is eating, etc.
[0162] Obviously, it is easy to understand that the status display interface described above is merely an example and is not intended to limit the scope of the application. For instance, the number of virtual characters in the status display interface could be 3, 4, or 5, and the status indicator for each virtual character could be any of the pre-set status indicators, etc.
[0163] The first processing unit 1704 is configured to respond to a trigger operation performed on the first status identifier obtained in the status display interface, set the current state of the target virtual character to the first state represented by the first status identifier, and display the status identifier of the target virtual character as the first status identifier in the status display interface. The first status identifier is the status identifier of the first virtual character in the first group of virtual characters displayed in the status display interface, and the current state of the first virtual character is the first state.
[0164] In this application embodiment, the states of each virtual character in the virtual scene include, but are not limited to, two situations: one is an empty state, and the other is a pre-set state. Accordingly, such as Figure 3 The states of the virtual character shown in (a) include, but are not limited to, the two situations mentioned above. The following example illustrates how to update the two different states of the virtual character to the first state identifier.
[0165] As an optional example, when displaying the status identifier of the first group of virtual characters and the target virtual character in the status display interface of the target application, the above includes: displaying the status pending setting identifier of the target virtual character in the status display interface, wherein the status pending setting identifier indicates that the current status of the target virtual character is empty;
[0166] The above-mentioned setting the current state of the target virtual character to the first state represented by the first state identifier and displaying the state identifier of the target virtual character as the first state identifier in the state display interface includes: setting the current state of the target virtual character to the first state, and updating the state identifier of the target virtual character from the state pending setting identifier to the first state identifier in the state display interface.
[0167] like Figure 3As shown in (a), assuming the current state of the target virtual character is a state pending setting flag, it means that no state has been pre-set for the target virtual character. If you want to set the state of the target virtual character to the first state flag after seeing the first state flag of the first virtual character, you only need to perform a trigger operation on the first state flag in the state display interface to change the state pending setting flag of the target virtual character to the first state flag.
[0168] like Figure 3 As shown in (b), after the trigger operation is performed on the first state identifier, the target virtual character's state identifier is updated from the state pending setting identifier to the first state identifier. The trigger operation on the first state identifier includes, but is not limited to, long-pressing or dragging the first state identifier.
[0169] Optionally, the first processing unit 1704 includes:
[0170] The first processing module is configured to respond to a first drag operation performed on a first status identifier obtained in the status display interface, and to display a first copy identifier that moves with the first drag operation in the status display interface, wherein the first copy identifier is the same as the first status identifier.
[0171] The first setting module is used to set the current state of the target virtual character to the first state represented by the first state identifier when the first drag operation is released after the first copy identifier is moved to the preset judgment area, and to display the state identifier of the target virtual character as the first state identifier in the state display interface.
[0172] Optionally, the first setting module mentioned above includes:
[0173] The first processing submodule is configured to, when the first drag operation is released after the first copy identifier is moved to the area where the target virtual character is located, set the current state of the target virtual character to the first state represented by the first state identifier, and display the state identifier of the target virtual character as the first state identifier in the state display interface, wherein the preset determination area is the area where the target virtual character is located; or
[0174] The second processing submodule is used to set the current state of the target virtual character to the first state represented by the first state identifier when the first drag operation is released after the first copy identifier is moved to the preset area in the status display interface, and to display the status identifier of the target virtual character as the first state identifier in the status display interface, wherein the preset determination area is the preset area in the status display interface.
[0175] Optionally, the first processing unit 1704 includes:
[0176] The second processing module is used to respond to the long press operation performed on the first status identifier obtained in the status display interface, and to display a status copy button in the status display interface, wherein the status copy button is used to copy the current status of the first virtual character to the target virtual character.
[0177] The third processing module is used to respond to the trigger operation of the state copy button obtained in the status display interface, set the current state of the target virtual character to the first state represented by the first state identifier, and display the status identifier of the target virtual character as the first state identifier in the status display interface.
[0178] Optionally, the above-mentioned device further includes:
[0179] The second processing unit is used to respond to the scene switching operation obtained in the status display interface, switch the displayed virtual scene from the first local virtual scene to the second local virtual scene in the status display interface, and display the status indicators of the second group of virtual characters located in the second local virtual scene, wherein the status indicators of the first group of virtual characters are located in the first local virtual scene.
[0180] The third processing unit is used to respond to the trigger operation performed on the second status identifier obtained in the status display interface, set the current state of the target virtual character to the second state represented by the second status identifier, and display the status identifier of the target virtual character as the second status identifier in the status display interface. The second status identifier is the status identifier of the second virtual character in the second group of virtual characters displayed in the status display interface, and the current state of the second virtual character is the second state.
[0181] Optionally, the third processing unit mentioned above includes:
[0182] The fourth processing module is used to, in response to the second drag operation performed on the second status identifier obtained in the status display interface, display a second copy identifier that moves with the second drag operation in the status display interface when the target virtual character is still in the first local virtual scene, wherein the second copy identifier is the same as the second status identifier;
[0183] The fifth processing module is used to switch the virtual scene displayed in the status display interface from the second local virtual scene to the first local virtual scene when the second copy identifier is moved across scenes to the area where the target virtual character is located in the first local virtual scene.
[0184] The sixth processing module is used to set the current state of the target virtual character to the second state represented by the second state identifier when the second drag operation is released while the second copy identifier is located in the area where the target virtual character is located, and to display the state identifier of the target virtual character located in the first local virtual scene as the second state identifier.
[0185] Optionally, the fifth processing module mentioned above includes:
[0186] The third processing submodule is configured to, when the distance between the first local virtual scene and the second local virtual scene is greater than or equal to a predetermined distance threshold, switch the virtual scene displayed in the status display interface from the second local virtual scene to the first local virtual scene when the second copy identifier is moved away from the second local virtual scene; or
[0187] If there is no overlap between the first local virtual scene and the second local virtual scene, when the second copy identifier is moved away from the second local virtual scene, the virtual scene displayed in the status display interface will switch from the second local virtual scene to the first local virtual scene.
[0188] Optionally, the third processing unit further includes:
[0189] The seventh processing module is used to change the display position of the second virtual character's status identifier from the second local virtual scene to the first local virtual scene when the number of times the target status is copied reaches a preset threshold within a preset time period. The number of times the target status is copied represents the number of times the target virtual character copies the current status of the second virtual character.
[0190] The first local virtual scene is the local virtual scene that is displayed by default when the status display interface is opened.
[0191] Optionally, the above-mentioned device further includes:
[0192] The fourth processing unit is used to send status notification information to the first account, wherein the first virtual character is a virtual character of the first account, and the status notification information is used to notify the first account that the current status of the first virtual character has been copied by the target virtual character.
[0193] Optionally, the above-mentioned device further includes:
[0194] The second display unit is used to display the status identifier of the first group of virtual characters in the status display interface of the target application, and when the target virtual character is displayed, to display the third status identifier of the target virtual character in the status display interface, wherein the third status identifier indicates that the current status of the target virtual character is the third state.
[0195] The update unit is used to update the current state of the target virtual character from the third state to the first state, and to update the status identifier of the target virtual character from the third state identifier to the first state identifier in the status display interface.
[0196] Optionally, the first display unit 1702 includes:
[0197] The first display module is used to display the status pending setting indicator of the target virtual character in the status display interface, wherein the status pending setting indicator indicates that the current status of the target virtual character is empty;
[0198] The eighth processing module is used to set the current state of the target virtual character to the first state, and update the status identifier of the target virtual character from the status pending setting identifier to the first state identifier in the status display interface.
[0199] Optionally, the first display unit 1702 further includes:
[0200] The second display module is used to display the motion animation of the first group of virtual characters in the status display interface, wherein the motion animation of each virtual character in the first group of virtual characters corresponds to the status identifier of each virtual character in the first group of virtual characters.
[0201] The aforementioned first processing unit 1704 includes:
[0202] The third display module is used to display the motion animation of the target virtual character in the status display interface;
[0203] In this case, the motion animation of the target virtual character and the motion animation of the first virtual character displayed in the status display interface are both corresponding to the first status identifier, and the motion animation of the target virtual character is the same as the motion animation of the first virtual character; or, the motion animation of the target virtual character is used to show the target virtual character performing the first action, and the motion animation of the first virtual character is used to show the first virtual character performing the first action, and the first action corresponds to the first status identifier.
[0204] By applying the above-mentioned device to perform a one-click operation on the first status identifier in the status display interface, the target virtual character can be set to the same status as the first virtual character, avoiding the need to switch between different display interfaces and reducing the operation steps in multiple display interfaces. This solves the technical problem of high complexity in the process of setting the virtual character status and achieves the technical effect of improving the convenience of setting the virtual character status.
[0205] It should be noted that the embodiments of the virtual character state setting device here can refer to the embodiments of the virtual character state setting method described above, and will not be repeated here.
[0206] According to another aspect of the embodiments of this application, an electronic device for implementing the above-described method for setting the state of a virtual character is also provided. This electronic device may be... Figure 18 The terminal device shown is illustrated in this embodiment, which uses this electronic device as an example of a backend device. Figure 18 As shown, the electronic device includes a memory 1802 and a processor 1804. The memory 1802 stores a computer program, and the processor 1804 is configured to execute the steps of any of the above method embodiments via the computer program.
[0207] Optionally, in this embodiment, the aforementioned electronic device may be located in at least one of a plurality of network devices in a computer network.
[0208] Optionally, in this embodiment, the processor can be configured to perform the following steps via a computer program:
[0209] S1, Display the status identifier of the first group of virtual roles and the target virtual role in the status display interface of the target application, wherein the login account of the target application is the target account, and the target virtual role is the virtual role of the target account;
[0210] S2, in response to the trigger operation performed on the first state identifier obtained in the status display interface, the current state of the target virtual character is set to the first state represented by the first state identifier, and the status identifier of the target virtual character is displayed as the first state identifier in the status display interface, wherein the first state identifier is the status identifier of the first virtual character in the first group of virtual characters displayed in the status display interface, and the current state of the first virtual character is the first state.
[0211] Alternatively, as those skilled in the art will understand, Figure 18 The structure shown is for illustrative purposes only. Electronic devices can also be smartphones (such as Android phones, iOS phones, etc.), tablets, PDAs, mobile internet devices (MIDs), PADs, and other target terminals. Figure 18 This does not limit the structure of the aforementioned electronic devices or electronic equipment. For example, electronic devices or electronic equipment may also include components that are more... Figure 18 The more or fewer components shown (such as network interfaces, etc.), or having the same Figure 18 The different configurations shown.
[0212] The memory 1802 can be used to store software programs and modules, such as the program instructions / modules corresponding to the virtual character state setting method and apparatus in this embodiment. The processor 1804 executes various functional applications and data processing by running the software programs and modules stored in the memory 1802, thereby realizing the aforementioned virtual character state setting method. The memory 1802 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1802 may further include memory remotely configured relative to the processor 1804, and these remote memories can be connected to the terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1802 may be used, but is not limited to, to store the status identifiers of the first group of virtual characters, the target account, and the status ID of each status identifier. As an example, such as Figure 18 As shown, the memory 1802 may include, but is not limited to, the first display unit 1702 and the first processing unit 1704 in the virtual character state setting device. Furthermore, it may include, but is not limited to, other module units in the virtual character state setting device, which will not be elaborated upon in this example.
[0213] Optionally, the transmission device 1806 described above is used to receive or send data via a network. Specific examples of the network described above may include wired networks and wireless networks. In one example, the transmission device 1806 includes a Network Interface Controller (NIC), which can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network. In one embodiment, the transmission device 1806 is a radio frequency (RF) module used to communicate with the Internet wirelessly.
[0214] In addition, the aforementioned electronic device also includes: a display 1808 for displaying target messages sent by the target account; and a connection bus 1810 for connecting the various module components in the aforementioned electronic device.
[0215] In other embodiments, the target terminal or server can be a node in a distributed system, which can be a blockchain system. This blockchain system is formed by connecting multiple nodes through network communication. The nodes can form a peer-to-peer (P2P) network, and any type of computing device, such as a server or terminal, can become a node in the blockchain system by joining this peer-to-peer network.
[0216] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the virtual character state setting method provided in various optional implementations of the aforementioned server verification processing, wherein the computer program is configured to execute the steps in any of the above-described method embodiments at runtime.
[0217] Optionally, in this embodiment, the computer-readable storage medium described above may be configured to store a computer program for performing the following steps:
[0218] S1, Display the status identifier of the first group of virtual roles and the target virtual role in the status display interface of the target application, wherein the login account of the target application is the target account, and the target virtual role is the virtual role of the target account;
[0219] S2, in response to the trigger operation performed on the first state identifier obtained in the status display interface, the current state of the target virtual character is set to the first state represented by the first state identifier, and the status identifier of the target virtual character is displayed as the first state identifier in the status display interface, wherein the first state identifier is the status identifier of the first virtual character in the first group of virtual characters displayed in the status display interface, and the current state of the first virtual character is the first state.
[0220] Optionally, in this embodiment, those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing the hardware related to the target terminal. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0221] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0222] If the integrated units in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in the aforementioned computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause one or more computer devices (which may be personal computers, servers, or network devices, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention.
[0223] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0224] In the several embodiments provided in this application, it should be understood that the disclosed client can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, or the indirect coupling or communication connection of units or modules may be electrical or other forms.
[0225] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0226] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0227] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for setting the state of a virtual character, characterized in that, include: The status indicator of the first group of virtual characters and the target virtual character are displayed in the status display interface of the target application, wherein the login account of the target application is the target account, and the target virtual character is the virtual character of the target account; In response to the trigger operation performed on the first status identifier obtained in the status display interface, the current status of the target virtual character is set to the first status represented by the first status identifier, and the status identifier of the target virtual character is displayed as the first status identifier in the status display interface, wherein the first status identifier is the status identifier of the first virtual character in the first group of virtual characters displayed in the status display interface, and the current status of the first virtual character is the first status. In response to the scene switching operation obtained in the status display interface, the virtual scene to be displayed in the status display interface is switched from the first local virtual scene to the second local virtual scene, and the status indicators of the second group of virtual characters located in the second local virtual scene are displayed, wherein the status indicators of the first group of virtual characters are located in the first local virtual scene; While the target virtual character is still in the first local virtual scene, in response to the second drag operation performed on the second status identifier obtained in the status display interface, a second copy identifier that moves with the second drag operation is displayed in the status display interface, wherein the second copy identifier is the same as the second status identifier; When the second copy identifier is moved across scenes to the area where the target virtual character is located in the first local virtual scene, the virtual scene displayed in the status display interface is switched from the second local virtual scene to the first local virtual scene. When the second drag operation is released while the second copy identifier is located in the area where the target virtual character is located, the current state of the target virtual character is set to the second state represented by the second state identifier, and the state identifier of the target virtual character located in the first local virtual scene is displayed as the second state identifier, wherein the second state identifier is the state identifier of the second virtual character in the second group of virtual characters displayed in the state display interface, and the current state of the second virtual character is the second state.
2. The method according to claim 1, characterized in that, The step of responding to the trigger operation performed on the first status identifier obtained in the status display interface, setting the current state of the target virtual character to the first state represented by the first status identifier, and displaying the status identifier of the target virtual character as the first status identifier in the status display interface includes: In response to a first drag operation performed on the first status identifier obtained in the status display interface, a first copy identifier that moves following the first drag operation is displayed in the status display interface, wherein the first copy identifier is the same as the first status identifier; When the first drag operation is released when the first copy identifier is moved to a preset determination area, the current state of the target virtual character is set to the first state represented by the first state identifier, and the state identifier of the target virtual character is displayed as the first state identifier in the state display interface.
3. The method according to claim 2, characterized in that, When the first drag operation is released when the first copy identifier is moved to a preset determination area, setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the state identifier of the target virtual character as the first state identifier in the state display interface includes: When the first drag operation is released while the first copy identifier is moved to the area where the target virtual character is located, the current state of the target virtual character is set to the first state represented by the first state identifier, and the state identifier of the target virtual character is displayed as the first state identifier in the state display interface, wherein the preset determination area is the area where the target virtual character is located; or When the first drag operation is released when the first copy identifier is moved to a preset area in the status display interface, the current state of the target virtual character is set to the first state represented by the first state identifier, and the status identifier of the target virtual character is displayed as the first state identifier in the status display interface, wherein the preset determination area is a preset area in the status display interface.
4. The method according to claim 1, characterized in that, The step of responding to the trigger operation performed on the first status identifier obtained in the status display interface, setting the current state of the target virtual character to the first state represented by the first status identifier, and displaying the status identifier of the target virtual character as the first status identifier in the status display interface includes: In response to a long press operation performed on the first status identifier obtained in the status display interface, a status copy button is displayed in the status display interface, wherein the status copy button is used to copy the current status of the first virtual character to the target virtual character. In response to the trigger operation of the status copy button obtained in the status display interface, the current status of the target virtual character is set to the first status represented by the first status identifier, and the status identifier of the target virtual character is displayed as the first status identifier in the status display interface.
5. The method according to claim 1, characterized in that, When the second copy identifier is moved across scenes to the area where the target virtual character is located in the first partial virtual scene, the virtual scene displayed in the status display interface is switched from the second partial virtual scene to the first partial virtual scene, including: When the distance between the first local virtual scene and the second local virtual scene is greater than or equal to a predetermined distance threshold, and the second copy identifier is moved away from the second local virtual scene, the virtual scene displayed in the status display interface will switch from the second local virtual scene to the first local virtual scene; or When there is no overlap between the first local virtual scene and the second local virtual scene, and the second copy identifier is moved away from the second local virtual scene, the virtual scene displayed in the status display interface will switch from the second local virtual scene to the first local virtual scene.
6. The method according to claim 1, characterized in that, When setting the current state of the target virtual character to the second state represented by the second state identifier, the method further includes: If the number of times the target state is copied reaches a preset threshold within a preset time period, the display position of the state identifier of the second virtual character is changed from being located in the second local virtual scene to being located in the first local virtual scene, wherein the number of times the target state is copied represents the number of times the target virtual character copies the current state of the second virtual character; The first local virtual scene is the local virtual scene that is displayed by default when the status display interface is opened.
7. The method according to claim 1, characterized in that, When setting the current state of the target virtual character to the first state represented by the first state identifier, the method further includes: A status notification message is sent to the first account, wherein the first virtual character is a virtual character of the first account, and the status notification message is used to notify the first account that the current status of the first virtual character has been copied by the target virtual character.
8. The method according to any one of claims 1 to 7, characterized in that, When displaying the status identifiers of the first group of virtual characters and the target virtual character in the status display interface of the target application, the method further includes: displaying a third status identifier of the target virtual character in the status display interface, wherein the third status identifier indicates that the current status of the target virtual character is the third state; Setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the state identifier of the target virtual character as the first state identifier in the state display interface, includes: updating the current state of the target virtual character from the third state to the first state, and updating the state identifier of the target virtual character from the third state identifier to the first state identifier in the state display interface.
9. The method according to any one of claims 1 to 7, characterized in that, When displaying the status identifiers of the first group of virtual characters and the target virtual character in the status display interface of the target application, the method further includes: displaying a status pending setting identifier of the target virtual character in the status display interface, wherein the status pending setting identifier indicates that the current status of the target virtual character is empty; Setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the state identifier of the target virtual character as the first state identifier in the state display interface, includes: setting the current state of the target virtual character to the first state, and updating the state identifier of the target virtual character from the state to be set identifier to the first state identifier in the state display interface.
10. The method according to any one of claims 1 to 7, characterized in that, When displaying the status indicators of the first group of virtual characters and the target virtual character in the status display interface of the target application, the method further includes: displaying the motion animation of the first group of virtual characters in the status display interface, wherein the motion animation of each virtual character in the first group of virtual characters corresponds to the status indicator of each virtual character in the first group of virtual characters. When setting the current state of the target virtual character to the first state represented by the first state identifier, and displaying the state identifier of the target virtual character as the first state identifier in the state display interface, the method further includes: displaying the motion animation of the target virtual character in the state display interface; Wherein, the motion animation of the target virtual character and the motion animation of the first virtual character displayed in the status display interface both correspond to the first status identifier, and the motion animation of the target virtual character is the same as the motion animation of the first virtual character; or, the motion animation of the target virtual character is used to show the target virtual character performing a first action, and the motion animation of the first virtual character is used to show the first virtual character performing the first action, and the first action corresponds to the first status identifier.
11. A device for setting the state of a virtual character, characterized in that, include: The first display unit is used to display the status identifier of the first group of virtual characters and the target virtual character in the status display interface of the target application, wherein the login account of the target application is the target account, and the target virtual character is the virtual character of the target account; A first processing unit is configured to, in response to a trigger operation performed on a first state identifier obtained in the state display interface, set the current state of the target virtual character to the first state represented by the first state identifier, and display the state identifier of the target virtual character as the first state identifier in the state display interface, wherein the first state identifier is the state identifier of the first virtual character in the first group of virtual characters displayed in the state display interface, and the current state of the first virtual character is the first state; in response to a scene switching operation obtained in the state display interface, switch the displayed virtual scene from a first partial virtual scene to a second partial virtual scene in the state display interface, and display the state identifiers of the second group of virtual characters located in the second partial virtual scene, wherein the state identifiers of the first group of virtual characters are located in the first partial virtual scene; if the target virtual character is still located in the first partial virtual scene, in response to a trigger operation performed on a first state identifier obtained in the state display interface... The second drag operation performed on the second state identifier displays a second copy identifier that moves with the second drag operation in the state display interface, wherein the second copy identifier is the same as the second state identifier; when the second copy identifier is moved across scenes to the area where the target virtual character is located in the first local virtual scene, the virtual scene displayed in the state display interface is switched from the second local virtual scene to the first local virtual scene; when the second drag operation is released while the second copy identifier is in the area where the target virtual character is located, the current state of the target virtual character is set to the second state represented by the second state identifier, and the state identifier of the target virtual character located in the first local virtual scene is displayed as the second state identifier, wherein the second state identifier is the state identifier of the second virtual character in the second group of virtual characters displayed in the state display interface, and the current state of the second virtual character is the second state.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program is executed by a processor to perform the method of any one of claims 1 to 10.
13. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method of any one of claims 1 to 10.
14. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to perform the method of any one of claims 1 to 10 via the computer program.
Citation Information
Patent Citations
Information synchronization method and device, computer equipment, storage medium and program product
CN114466213A