Interactive method, device, electronic device and storage medium based on virtual items
By introducing virtual item distribution animation and reward mechanisms in virtual item gift interaction, the problem of single form of virtual item interaction in the existing technology is solved, and user experience and interactivity are improved.
Patent Information
- Application Number
- CN202110236231.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-03
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2041-03-03
AI Technical Summary
The interactive form of gifting of existing virtual items is relatively single, lacking fun and interactiveness, and the user experience is not rich.
By displaying the distribution effect of virtual items on the message session page, and issuing rewards to target session members when the reward trigger conditions are met based on statistical information in the conversation background area, the interactive form of virtual items is enriched.
It improves the fun and interactiveness of virtual items gifts, enhances the interaction between users and virtual items, and provides a dynamic gift experience and reward mechanism.
Smart Images

Figure CN113159823B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an interactive method, device, electronic device and storage medium based on virtual items. Background Art
[0002] With the development of Internet technology, more and more people communicate through the Internet. At present, in order to improve the fun and enhance the interaction between users, many applications provide a virtual item gifting function, wherein the virtual item can be a virtual gift.
[0003] In the current related technologies, the gifting of virtual items is generally a simple one-time experience, and the form of interaction is relatively simple. Summary of the invention
[0004] The embodiments of the present application provide a method, device, electronic device and storage medium for interacting with virtual items, which can enrich the interactive forms of virtual items.
[0005] The present application embodiment provides an interactive method based on virtual items, including:
[0006] Displaying a message conversation page of a target conversation, wherein the message conversation page includes a virtual item distribution area and a conversation background area;
[0007] In response to an item distribution operation for the virtual item distribution area, displaying an animation of a target virtual item moving from the virtual item distribution area to the session background area in the message session page, wherein the target virtual item is a virtual item distributed to a target member in the target session based on the item distribution operation;
[0008] When the statistical information of the current virtual items in the session background area meets the reward triggering condition, the reward is issued to the members in the target session.
[0009] Accordingly, the embodiment of the present application provides an interactive device based on virtual items, including:
[0010] A first display unit, used to display a message conversation page of a target conversation, wherein the message conversation page includes a virtual item distribution area and a conversation background area;
[0011] A second display unit is used to display, in response to an item distribution operation for the virtual item distribution area, a dynamic effect of a target virtual item moving from the virtual item distribution area to the session background area in the message session page, wherein the target virtual item is a virtual item distributed to a target member in the target session based on the item distribution operation;
[0012] The issuing unit is used to issue rewards to members in the target session when the statistical information of the current virtual items in the session background area meets the reward triggering condition.
[0013] Optionally, in some embodiments of the present application, the message conversation page further includes a conversation foreground area covering the conversation background area, and the virtual item-based interactive device further includes a switching unit and a third display unit, as follows:
[0014] The switching unit is configured to hide the session foreground area and switch to display the session background area when a session hiding operation for the message session page is detected;
[0015] The third display unit displays a target motion effect of the operation on the virtual item in the session background area in response to the operation on the virtual item.
[0016] Optionally, in some embodiments of the present application, the switching unit may include a first display subunit and a first switching subunit, as follows:
[0017] The first display subunit is used to display a page transition effect of switching the message conversation page from the conversation foreground area to the conversation background area when a conversation hiding operation on the message conversation page is detected;
[0018] The first switching subunit is used to hide the session foreground area and switch to display the session background area when the page transition animation is displayed.
[0019] Optionally, in some embodiments of the present application, the first display unit may include a second display subunit and a third display subunit, as follows:
[0020] The second display subunit is used to display the initial message session page of the target session;
[0021] The third display subunit is used to display the virtual item distribution area on the initial message conversation page to obtain a message conversation page when it is detected that the message content sent by the target member in the target conversation includes a preset keyword.
[0022] Optionally, in some embodiments of the present application, the issuing unit may be specifically configured to issue a reward to a member of the target session when the spatial scale statistics of the current virtual item in the session background area meet a preset scale condition for triggering a reward.
[0023] Optionally, in some embodiments of the present application, the issuing unit may be specifically configured to issue rewards to members in the target session when the total number of virtual items currently in the session background area meets a preset quantity condition for reward triggering.
[0024] Optionally, in some embodiments of the present application, the distributing unit may include a fourth display subunit and a distributing subunit, as follows:
[0025] The fourth display subunit is used to display a reward claiming control in a message session page corresponding to a member in the target session when the statistical information of the current virtual item in the session background area meets the reward triggering condition;
[0026] The issuing subunit is used to issue rewards to members in the target session in response to a triggering operation on the reward claiming control.
[0027] Optionally, in some embodiments of the present application, the issuing subunit may be specifically used to issue rewards to members in the target session in response to a triggering operation on the reward claiming control when the remaining number of rewards is greater than a preset number.
[0028] Optionally, in some embodiments of the present application, the second display unit may include a calculation subunit and a fifth display subunit, as follows:
[0029] The calculation subunit is used to calculate a target display position of a target virtual item in the session background area based on display position information of the current virtual item in the session background area in response to an item distribution operation for the virtual item distribution area;
[0030] A fifth display subunit is used to display, in the message conversation page, a dynamic effect of a target virtual item moving from the virtual item distribution area to a target display position in the conversation background area according to a preset motion trajectory.
[0031] Optionally, in some embodiments of the present application, the computing subunit may be specifically configured to determine, based on the display position information of the current virtual item in the session background area, the position information of an area where items are not displayed in the session background area; and to calculate, based on the spatial scale of the target virtual item and the position information of the area where items are not displayed, the target display position of the target virtual item in the session background area.
[0032] Optionally, in some embodiments of the present application, the message conversation page further includes a message content sending area, and the virtual item-based interactive device may further include a message sending unit, as follows:
[0033] The message sending unit is used to send the message content to the members in the target session in response to the message sending operation on the message content sending area; and display the message content in the message session page.
[0034] Optionally, in some embodiments of the present application, the second display unit can be specifically used to display a motion effect of a target virtual item moving from the virtual item distribution area to the session background area in the message session page in response to an item distribution operation for the virtual item distribution area when the number of virtual items distributed within a preset time period is less than a preset distribution number.
[0035] Optionally, in some embodiments of the present application, the second display unit may further include a prompt subunit, as follows:
[0036] The prompt subunit is used to display prompt information on the message conversation page based on the item issuance operation for the virtual item issuance area when the number of virtual items issued within the preset time period is not less than the preset issuance number, and the prompt information is used to prompt that the number of virtual items is insufficient.
[0037] Optionally, in some embodiments of the present application, the first display unit may include a sixth display subunit and a second switching subunit, as follows:
[0038] The sixth display subunit is used to display a message conversation page of the target conversation, wherein the conversation background area of the message conversation page includes a first background image for chatting;
[0039] The second switching subunit is configured to switch the first background image in the session background area to a second background image used for virtual item interaction when an item distribution operation by a member in the target session is detected.
[0040] Optionally, in some embodiments of the present application, the virtual item distribution area includes at least one category of virtual items; the second display unit can be specifically used to respond to an item distribution operation for a target virtual item under a target category in the virtual item distribution area, and display a motion effect of the target virtual item moving from the virtual item distribution area to the session background area in the message session page.
[0041] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a plurality of instructions, and the processor loads the instructions to execute the steps in the virtual item-based interaction method provided in the embodiment of the present application.
[0042] In addition, an embodiment of the present application further provides a storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the virtual item-based interactive method provided in the embodiment of the present application are implemented.
[0043] The embodiments of the present application provide an interactive method, device, electronic device and storage medium based on virtual items, which can display a message conversation page of a target conversation, wherein the message conversation page includes a virtual item distribution area and a conversation background area; in response to an item distribution operation for the virtual item distribution area, a dynamic effect of a target virtual item moving from the virtual item distribution area to the conversation background area is displayed in the message conversation page, wherein the target virtual item is a virtual item distributed to a target member in the target conversation based on the item distribution operation; when the statistical information of the current virtual item in the conversation background area meets the reward triggering condition, a reward is distributed to the member in the target conversation. The present application can display the dynamic effect of virtual item distribution on the message conversation page, and when the reward triggering condition is met, the members in the target conversation can receive the reward, thus enriching the interactive form of virtual items. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0045] Figure 1a is a schematic diagram of a scenario of an interactive method based on virtual items provided in an embodiment of the present application;
[0046] Figure 1b is a flow chart of an interactive method based on virtual items provided in an embodiment of the present application;
[0047] Figure 1c is a page schematic diagram of an interactive method based on virtual items provided in an embodiment of the present application;
[0048] Figure 1d is an illustration of an interactive method based on virtual items provided in an embodiment of the present application;
[0049] Figure 1e is a page schematic diagram of an interactive method based on virtual items provided in an embodiment of the present application;
[0050] Figure 1f is a page schematic diagram of an interactive method based on virtual items provided in an embodiment of the present application;
[0051] Figure 1g is a page schematic diagram of an interactive method based on virtual items provided in an embodiment of the present application;
[0052] Figure 1h is a page schematic diagram of an interactive method based on virtual items provided in an embodiment of the present application;
[0053] Figure 1i It is another page diagram of existing virtual item interaction methods;
[0054] Figure 1j It is another page diagram of existing virtual item interaction methods;
[0055] Figure 2a is another flow chart of the interactive method based on virtual items provided in an embodiment of the present application;
[0056] Figure 2b is another flow chart of the interactive method based on virtual items provided in an embodiment of the present application;
[0057] Figure 2c is another page schematic diagram of the interactive method based on virtual items provided in an embodiment of the present application;
[0058] Figure 2d is another page schematic diagram of the interactive method based on virtual items provided in an embodiment of the present application;
[0059] Figure 2e is another page schematic diagram of the interactive method based on virtual items provided in an embodiment of the present application;
[0060] Figure 2f is another flow chart of the interactive method based on virtual items provided in an embodiment of the present application;
[0061] Figure 2g is another flow chart of the interactive method based on virtual items provided in an embodiment of the present application;
[0062] Figure 3a is a schematic diagram of the structure of an interactive device based on virtual items provided in an embodiment of the present application;
[0063] Figure 3b is another structural schematic diagram of an interactive device based on virtual items provided in an embodiment of the present application;
[0064] Figure 3c is another structural schematic diagram of an interactive device based on virtual items provided in an embodiment of the present application;
[0065] Figure 3d is another structural schematic diagram of an interactive device based on virtual items provided in an embodiment of the present application;
[0066] Figure 3e is another structural schematic diagram of an interactive device based on virtual items provided in an embodiment of the present application;
[0067] Figure 3f is another structural schematic diagram of an interactive device based on virtual items provided in an embodiment of the present application;
[0068] Figure 3g is another structural schematic diagram of an interactive device based on virtual items provided in an embodiment of the present application;
[0069] Figure 3h is another structural schematic diagram of an interactive device based on virtual items provided in an embodiment of the present application;
[0070] Figure 3i is another structural schematic diagram of an interactive device based on virtual items provided in an embodiment of the present application;
[0071] Figure 4 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0073] The embodiment of the present application provides a method, device, electronic device and storage medium for interacting with virtual items. The interactive device based on virtual items can be integrated into an electronic device, which can be a terminal or a server.
[0074] It is understandable that the interactive method based on virtual items in this embodiment can be executed on a terminal, on a server, or jointly by a terminal and a server. The above examples should not be construed as limiting the present application.
[0075] like Figure 1a As shown, a terminal and a server jointly execute an interactive method based on virtual items as an example. The interactive system based on virtual items provided in the embodiment of the present application includes a terminal 10 and a server 11, etc. The terminal 10 and the server 11 are connected via a network, such as a wired or wireless network connection, etc., wherein the interactive device based on virtual items can be integrated in the terminal.
[0076] Among them, the terminal 10 can be used to: display the message session page of the target session, the message session page includes a virtual item distribution area and a session background area; in response to the item distribution operation for the virtual item distribution area, display the target virtual item moving from the virtual item distribution area to the session background area in the message session page, wherein the target virtual item is a virtual item distributed to the target member in the target session based on the item distribution operation; when the statistical information of the current virtual item in the session background area meets the reward triggering condition, a reward is distributed to the member in the target session. Among them, the terminal 10 can include a mobile phone, a smart TV, a tablet computer, a laptop, or a personal computer (PC, Personal Computer), etc. A client can also be set on the terminal 10, and the client can be an application client or a browser client, etc.
[0077] Among them, the server 11 can be used to determine whether the statistical information of the current virtual items in the conversation background area meets the reward triggering conditions. If so, the terminal 10 is triggered to issue rewards to the members in the target conversation. The server 11 can also be used to detect whether the message content sent by the target member in the target conversation includes preset keywords. If so, the terminal 10 is triggered to display the virtual item distribution area on the message conversation page. Based on the item distribution operation of the virtual item distribution area, the server 11 can calculate the target display position of the target virtual item in the conversation background area according to the display position information of the current virtual item in the conversation background area, and send the target display position to the terminal 10, so that the terminal 10 displays the target virtual item in the message conversation page according to the preset motion trajectory from the virtual item distribution area to the target display position in the conversation background area. Among them, the server 11 can be a single server, or it can be a server cluster or a cloud server composed of multiple servers.
[0078] The steps of determining the reward triggering condition, detecting keywords, and calculating the target display position by the server 11 may also be executed by the terminal 10 .
[0079] It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.
[0080] This embodiment will be described from the perspective of an interactive device based on virtual items. The interactive device based on virtual items may be integrated into an electronic device, which may be a server, a terminal or other device.
[0081] The interactive method based on virtual items in the embodiment of the present application can be applied to group chats, live broadcast rooms, chat rooms, virtual rooms and other multi-person online social forms, and this embodiment does not limit this. Through the interactive method based on virtual items provided in this embodiment, the distribution of virtual items can be displayed on the message session page, and when the reward triggering conditions are met, members in the target session can be rewarded, enriching the interactive form of virtual items.
[0082] like Figure 1b As shown, the specific process of the interactive method based on virtual items can be as follows:
[0083] 101. Display a message conversation page of a target conversation, wherein the message conversation page includes a virtual item distribution area and a conversation background area.
[0084] The target session may include at least one (session) member. In some embodiments, members of the target session have different permissions. The member with the highest permission in the target session may be called the group owner. For example, the group owner may receive virtual items given by other members in the target session.
[0085] Specifically, the target session may be an online room, which refers to a relatively independent virtual space divided according to certain standards (such as function or content) in a network platform, such as an online chat room, a live broadcast room in a live broadcast platform, or a live broadcast room on a network.
[0086] Among them, the message conversation page can be used to display the content of the message sent or received, that is, to display the message interaction between users. The type of the message is not limited, and can be video, audio, image, text, etc. The message conversation page may include a background layer and a foreground layer (i.e., a conversation foreground area or a conversation layer). The foreground layer can be used for message interaction, and the background layer, i.e., the conversation background area, can be used to display virtual items. The virtual item can specifically be a virtual gift presented to the target member in the target conversation. The virtual item can be three-dimensional or two-dimensional, and this embodiment does not limit this.
[0087] Optionally, the virtual item distribution area may include a virtual item distribution control, and based on an operation on the virtual item distribution control, such as a click operation, a slide operation, etc., the virtual item may be distributed to a target member in the target session. In some embodiments, based on an operation on the virtual item distribution control, at least one candidate virtual item may be displayed in the virtual item distribution area, and based on a selection operation on a target virtual item in the virtual item distribution area, the target virtual item may be distributed to a target member in the target session. Specifically, the selection operation may be a click operation, etc.
[0088] Optionally, in this embodiment, the step of “displaying the message session page of the target session” may include:
[0089] Display the initial message conversation page of the target conversation;
[0090] When it is detected that the content of the message sent by the target member in the target conversation includes a preset keyword, a virtual item distribution area is displayed on the initial message conversation page to obtain a message conversation page.
[0091] The initial message conversation page may not include a virtual item distribution area. The preset keywords may be set according to actual conditions, such as "gift", "present" and the like.
[0092] In some embodiments, keywords may be extracted from the message content sent by the target member in the target session to obtain key information of the message content, and the matching degree between the key information and the preset keywords may be calculated. Based on the matching degree, the virtual item distribution area may be displayed on the initial message session page. The matching degree calculation between the key information and the preset keywords may specifically be to extract the feature information corresponding to the key information and the feature information corresponding to the preset keywords, and calculate the vector distance between the feature information corresponding to the key information and the feature information corresponding to the preset keywords. The larger the vector distance, the lower the matching degree. Conversely, the smaller the vector distance, the higher the matching degree.
[0093] In specific scenarios, see Figure 1c The target member of the target session may be the group owner. When it is detected that the message content sent by the group owner, "The gift box is almost full, you can give more," contains the preset keyword "gift," a virtual item distribution area may be displayed on the initial message session page to guide the user to give items. The virtual item distribution area may include multiple categories of candidate virtual items. The user may select a target virtual item from the candidate virtual items, and based on the selection operation of the target virtual item, the target virtual item may be given to the group owner.
[0094] Optionally, in this embodiment, the step of “displaying the message session page of the target session” may include:
[0095] Displaying a message conversation page of the target conversation, wherein a conversation background area of the message conversation page includes a first background image for chatting;
[0096] When an item distribution operation by a member in the target session is detected, the first background image in the session background area is switched to a second background image used for virtual item interaction.
[0097] Among them, for the target session, when no member issues virtual items (specifically, no member in the target session issues virtual items within a preset time period), the session background area of the message session page may be in an inactive state and does not display virtual items. The session background area in an inactive state displays a first background image used for chatting, which may be a blank image or an image set by the user. When an item issuance operation by a member in the target session is detected, the session background area is activated and may be switched from the first background image to a second background image used for virtual item interaction. The second background image may specifically display virtual items presented by session members and may also display motion effects when virtual items are issued.
[0098] 102. In response to an item distribution operation for the virtual item distribution area, display an animation of a target virtual item moving from the virtual item distribution area to the session background area in the message session page, wherein the target virtual item is a virtual item distributed to a target member in the target session based on the item distribution operation.
[0099] Among them, the item distribution operation can specifically be a selection operation (such as clicking, etc.) on the target virtual item in the virtual item distribution area. The animation effect can be the default animation effect of the system, or it can be an animation effect set by the user. The animation effect can correspond to display parameters. Optionally, in some embodiments, the user can control the corresponding distribution display effect of the virtual item by setting the display parameters of the animation effect. The display parameters of the animation effect may include the type of animation effect, the moving speed, etc., wherein the type of animation effect may specifically be a catapult animation effect, a falling animation effect, a luminous animation effect, etc. For the catapult animation effect, the display parameters such as the number of catapults, the direction of the catapult, and the speed of the catapult can be set.
[0100] In a specific embodiment, when a user's item distribution operation for a target virtual item is detected, a motion effect of the target virtual item being ejected from the virtual item distribution area to the session background area can be displayed in the message session page, wherein the number of ejections can be set to three. After the target virtual item is ejected, the target virtual item can fall on the session background area and form a stacking effect with other virtual items, such as Figure 1e As shown (other display effects are also possible, which are not limited in this embodiment).
[0101] Specifically, the movement of the target virtual item from the virtual item distribution area to the conversation background area can also be based on certain natural motion laws. For example, in response to an item distribution operation aimed at the virtual item distribution area, a motion effect that conforms to the law of gravity and moves the target virtual item from the virtual item distribution area to the conversation background area can be displayed. This can make the motion effect of the virtual item more natural, consistent with the movement effects of real objects in people's daily lives, and less likely to create a sense of disobedience.
[0102] Optionally, in this embodiment, the step of “in response to the item distribution operation for the virtual item distribution area, displaying in the message conversation page the dynamic effect of the target virtual item moving from the virtual item distribution area to the conversation background area” may include:
[0103] In response to an item distribution operation for the virtual item distribution area, based on display position information of the current virtual item in the session background area, calculating a target display position of a target virtual item in the session background area;
[0104] The message conversation page displays a dynamic effect that a target virtual item moves from the virtual item distribution area to a target display position in the conversation background area according to a preset motion trajectory.
[0105] Among them, the current virtual item in the session background area is the virtual item that has been given by the members in the target session. The display position information of the current virtual item in the session background area is the placement position information of the current virtual item, and the target display position is the position to be placed of the target virtual item. After displaying the dynamic effect of the target virtual item falling into the session background area based on the item distribution operation, the final display is the effect of the target virtual item being placed at the target display position.
[0106] Optionally, in this embodiment, the step of “calculating a target display position of a target virtual object in the session background area based on the display position information of the current virtual object in the session background area” may include:
[0107] Based on the display position information of the current virtual item in the session background area, determining the position information of the area where no items are displayed in the session background area;
[0108] Based on the spatial scale of the target virtual object and the position information of the non-object display area, a target display position of the target virtual object in the session background area is calculated.
[0109] Among them, the size of the space used to accommodate virtual items in the session background area can be determined, and then based on the placement position of the current virtual items in the session background area, the space where virtual items have been displayed can be determined, and then the space where virtual items are not displayed can be determined; the placement position of the target virtual item can be determined from the area where items are not displayed.
[0110] In one specific embodiment, see Figure 1d , calculate the target display position of the target virtual item in the session background area, specifically, based on the display position information of the current virtual item in the session background area, determine the y-axis lowest point of the current non-display area in the session background area; then obtain the spatial scale (such as shape and size) of the target virtual item, based on the spatial scale of the target virtual item and the width of the current displayable item area in the x-axis direction corresponding to the longitudinal coordinate of the y-axis lowest point, calculate the position where the current y-axis lowest point and the corresponding width of the current displayable item area in the x-axis direction are greater than or equal to the spatial scale of the target virtual item, and use the position as the target display position of the target virtual item in the session background area.
[0111] For example, the spatial scale of the target virtual item given by the user is 3*4, that is, the target virtual item occupies 3 units of length in the x-axis direction and 4 units of length in the y-axis direction. After the target virtual item is given, the target virtual item can be randomly ejected from the virtual item distribution area to the session background area. After the target virtual item starts to eject, the position where the y-axis lowest point of the current non-displaying area and the width of the current displayable area in the x-axis direction corresponding to the y-axis lowest point is greater than or equal to 3 can be calculated, and this position is used as the placement position of the target virtual item.
[0112] Optionally, in this embodiment, the step of “in response to the item distribution operation for the virtual item distribution area, displaying in the message conversation page the dynamic effect of the target virtual item moving from the virtual item distribution area to the conversation background area” may include:
[0113] When the number of virtual items issued within a preset time period is less than a preset number of virtual items issued, in response to an item issuance operation for the virtual item issuance area, a motion effect of a target virtual item moving from the virtual item issuance area to the session background area is displayed in the message session page.
[0114] The number of virtual items issued within the preset time period is the number of virtual items that have been issued within the preset time period. The preset time period and the preset number of virtual items issued can be set according to actual conditions. For example, it can be set that the number of virtual items issued within one day cannot exceed 100, the preset time period is 1 day, and the preset number of virtual items issued is 100.
[0115] Optionally, in some embodiments, the remaining number of virtual items within a preset time period, that is, the number of virtual items that can still be distributed, may also be displayed in the virtual item distribution area.
[0116] Optionally, the virtual item-based interactive method may further include:
[0117] When the number of virtual items issued within the preset time period is not less than the preset number of virtual items issued, based on the item issuance operation for the virtual item issuance area, a prompt message is displayed on the message conversation page, and the prompt message is used to prompt that the number of virtual items is insufficient.
[0118] The number of virtual items that can be distributed within a preset time period is limited. When the number of virtual items distributed within the preset time period reaches the preset number, members of the target session cannot distribute virtual items within the preset time period. When the user performs an item distribution operation, a prompt message indicating that the number of virtual items is insufficient can be displayed. Figure 1e As shown, a prompt message "Today's delivery has been sold out" may be displayed in the virtual item distribution area of the message conversation page to prompt the user that the quantity of the virtual items is insufficient.
[0119] Optionally, in this embodiment, the virtual item distribution area includes at least one category of virtual items; the step of “in response to an item distribution operation for the virtual item distribution area, displaying a motion effect of a target virtual item moving from the virtual item distribution area to the conversation background area in the message conversation page” may include:
[0120] In response to an item distribution operation for a target virtual item under a target category in the virtual item distribution area, a motion effect of the target virtual item moving from the virtual item distribution area to the conversation background area is displayed in the message conversation page.
[0121] Specifically, multiple categories of candidate virtual items can be displayed in the virtual item distribution area, and the spatial scales of different virtual items can be different. Based on the item distribution operation of the target virtual item of the target category in the virtual item distribution area, the dynamic effect of the target virtual item moving from the virtual item distribution area to the session background area is displayed.
[0122] 103. When the statistical information of the current virtual items in the session background area meets the reward triggering condition, a reward is issued to the members in the target session.
[0123] The statistical information of virtual items may specifically be statistical information of the spatial scale, quantity, and value of each virtual item in the session background area. The spatial scale may include information such as shape, size, area, and volume. In a specific embodiment, the values of different virtual items may be different, for example, the value of a virtual item with a larger spatial scale is higher.
[0124] The reward triggering condition can be set according to actual conditions, and this embodiment does not limit this. For example, the reward triggering condition can be that the spatial scale of the current virtual item reaches a preset scale, for example, when the virtual items donated by the members in the target session fill the session background area, the reward is issued to the members in the target session.
[0125] In some embodiments, when the statistics of the current virtual items in the session background area meet the reward triggering condition, rewards may be issued only to members of the target session who have participated in the distribution of virtual items in the session background area. In other embodiments, when the statistics of the current virtual items in the session background area meet the reward triggering condition, rewards may be issued to all members of the target session.
[0126] Optionally, in this embodiment, the step of “issuing rewards to members in the target session when the statistical information of the current virtual items in the session background area meets the reward triggering condition” may include:
[0127] When the spatial scale statistics of the current virtual items in the session background area meet the preset scale conditions for reward triggering, rewards are issued to members in the target session.
[0128] Among them, the preset scale condition can be set according to the actual situation. Specifically, there can be multiple categories of virtual items in the conversation background area, and different categories of virtual items correspond to different spatial scales. For example, the conversation background area includes virtual item 1, virtual item 2, virtual item 3... virtual item N, a total of N categories of virtual items, the number of these N virtual items is p1, p2, p3... pn, and the corresponding scale space size is k1, k2, k3... kn, then the total spatial scale of all virtual items in the conversation background area is: K = k1*p1+k2*p2+k3*p3+... +kn*pn, if the preset scale of the reward trigger is 100, then when K≥100, the reward is issued to the members in the target conversation.
[0129] Optionally, in this embodiment, the step of “issuing rewards to members in the target session when the statistical information of the current virtual items in the session background area meets the reward triggering condition” may include:
[0130] When the total number of virtual items currently in the session background area meets a preset number condition for reward triggering, rewards are issued to members in the target session.
[0131] Among them, the preset quantity condition can be set according to actual conditions.
[0132] In some embodiments, when the reward triggering condition is met, the virtual items accumulated in the session background area may be cleared, and rewards may be issued to members in the target session.
[0133] Optionally, in this embodiment, the step of “issuing rewards to members in the target session when the statistical information of the current virtual items in the session background area meets the reward triggering condition” may include:
[0134] When the statistical information of the current virtual items in the session background area meets the reward triggering condition, a reward claiming control is displayed in the message session page corresponding to the member in the target session;
[0135] In response to the triggering operation of the reward claiming control, the reward is issued to the members in the target session.
[0136] The triggering operation for the reward collection control may be a click operation, etc. Figure 1f As shown, when the virtual items fill the session background area, the reward triggering condition is met and the reward collection control is displayed in the message session page.
[0137] Optionally, in this embodiment, the step of “issuing rewards to members in the target session in response to a triggering operation on the reward claiming control” may include:
[0138] When the remaining number of rewards is greater than a preset number, in response to a triggering operation on the reward claiming control, rewards are issued to members in the target session.
[0139] The preset number may be zero and may be set according to actual conditions.
[0140] Among them, in some embodiments, the number of rewards in the reward pool is limited, and the reward collection rules may be first come first served. When all the rewards in the reward pool are distributed, based on the triggering operation of the reward collection control, a prompt message may be displayed in the message conversation page. The prompt message may be used to prompt the user that the number of rewards is insufficient. For example, a prompt message such as "It's too late, the rewards are gone" may be displayed.
[0141] Optionally, in this embodiment, the message conversation page further includes a message content sending area; the virtual item-based interactive method may further include:
[0142] In response to a message sending operation on the message content sending area, sending the message content to members in the target session;
[0143] The message content is displayed in the message conversation page.
[0144] The interactive device based on virtual items in this embodiment can be used for message interaction, and specifically can display the message content in the conversation foreground area of the message conversation page. Figure 1e As shown; the message content sending area may specifically include a message editing area, a sending control, a voice acquisition control, an image acquisition control, etc.; the message sending operation may be a click operation on the send control in the message content sending area.
[0145] The message content may include various forms, such as video, audio, image, text, etc.
[0146] Optionally, in this embodiment, the message conversation page further includes a conversation foreground area covering the conversation background area; the virtual item-based interaction method may further include:
[0147] When a session hiding operation for the message session page is detected, hiding the session foreground area and switching to display the session background area;
[0148] In response to an operation on a virtual item in the session background area, a target animation effect of the operation on the virtual item is displayed.
[0149] The session foreground area can be used for message interaction. After the session foreground area is hidden, only the session background area is displayed. At this time, the virtual items in the session background area can be operated, such as moving the virtual items in the session background area. Figure 1g As shown, based on the operation of moving the virtual object, the virtual object can move upward, and then move downward based on the law of gravity to form a stacking effect with other virtual objects.
[0150] The operation on the virtual item in the session background area may also be a sliding operation, etc., which is not limited in this embodiment. In one embodiment, the session background area may be displayed after the session foreground area is hidden, and when a virtual item in the session background area is clicked, detailed information of the virtual item, such as value, space scale, etc., is displayed in the session background area.
[0151] Among them, the target animation effect displayed by the virtual item can correspond to the operation, and different operations correspond to different animation effects. For example, based on the sliding operation, the luminous animation effect of the virtual item can be displayed; based on the double-click operation, the ejection animation effect of the virtual item can be displayed, and so on.
[0152] Specifically, refer to Figure 1h The session hiding operation on the message session page may specifically be an operation on a session hiding control in the message session page. The session hiding operation may be an operation such as clicking or sliding, which is not limited in this embodiment.
[0153] Optionally, in this embodiment, the step of “when a session hiding operation for the message session page is detected, hiding the session foreground area and switching to display the session background area” may include:
[0154] When a session hiding operation for the message session page is detected, displaying a page transition effect of the message session page switching from a session foreground area to a session background area;
[0155] When the page transition animation is displayed, the session foreground area is hidden and the session background area is switched to be displayed.
[0156] Among them, Figure 1h As shown, it shows the page transition effect of the message conversation page switching from the conversation foreground area to the conversation background area. Specifically, Figure 1h The corresponding is a transition page that switches from the session foreground area to the session background area. The transition page may include a first screen area and a second screen area. The first screen area displays the screen corresponding to the session foreground area, and the second screen area displays the screen corresponding to the session background area.
[0157] The interactive method based on virtual items of the present application can be applied in scenarios such as live broadcast, instant messaging, and games. In the specific scenario of game applications, the target session can be a chat group of a specific game theme in a game community application, and the virtual items can be items related to the game theme, such as game character dolls, and the rewards issued can be game props related to the game theme. Specifically, a game application includes a function for game players to communicate, such as providing a message session page for a target session under a specific game theme, the message session page includes a virtual item issuance area and a session background area, and the message session page can be used to display message interactions between game players. When the game player's item issuance operation on the virtual item issuance area is detected, the dynamic effect of the target game virtual item moving from the virtual item issuance area to the session background area can be displayed in the message session page, wherein the target game virtual item is a game virtual item presented to the target member of the target session based on the game player's item issuance operation. When the statistical information of the current game virtual item in the session background area meets the reward triggering condition, a reward-game props can be issued to the members in the target session, which helps more game players to participate in the gifting process of game virtual items and increase the user stickiness of the game application.
[0158] In the current related technologies, the gifting of virtual items is relatively simple, such as Figure 1i and Figure 1j As shown, the gifting of virtual items is a one-time experience, lacking interaction between users and gifts and lacking in fun.
[0159] The interactive method based on virtual items provided by this application can dynamically display the gifting process of virtual items, and display the sent virtual items in the conversation background area of the message conversation page with preset effects, such as piling them up in the conversation background area; when the virtual items in the conversation background area meet the reward triggering conditions, rewards can also be obtained, which increases the user's desire to give virtual items. In addition, this application can also interact with virtual items, display a variety of dynamic effects, and enhance the interactivity between users and virtual items. This application can be applied to group chats, rooms, chat rooms, live broadcast rooms and other multi-person online social forms, and can also be expanded to various events and operational activities. Among them, live broadcast can be regarded as a video conversation.
[0160] As can be seen from the above, the electronic device of this embodiment can display the message conversation page of the target conversation, and the message conversation page includes a virtual item distribution area and a conversation background area; in response to the item distribution operation for the virtual item distribution area, the target virtual item is displayed in the message conversation page. The target virtual item is a virtual item distributed to the target member in the target conversation based on the item distribution operation; when the statistical information of the current virtual item in the conversation background area meets the reward triggering condition, the reward is distributed to the members in the target conversation. The present application can display the distribution animation of the virtual item on the message conversation page, and when the reward triggering condition is met, the members in the target conversation can get rewards, which enriches the interactive form of virtual items.
[0161] According to the method described in the above embodiment, the following will be further described in detail by taking the example of the virtual item-based interactive device being specifically integrated in a terminal.
[0162] The present application embodiment provides an interactive method based on virtual items, such as Figure 2a As shown, the specific process of the interactive method based on virtual items can be as follows:
[0163] 201. The terminal displays an initial message session page of the target session.
[0164] The initial message conversation page may not include a virtual item distribution area.
[0165] 202. When it is detected that the message content sent by the target member in the target conversation includes a preset keyword, the terminal displays a virtual item distribution area on the initial message conversation page to obtain a message conversation page, wherein the message conversation page includes a virtual item distribution area and a conversation background area.
[0166] The message conversation page can be used to display the content of the message sent or received. The message conversation page can include a background layer and a foreground layer (i.e., a conversation foreground area or a conversation layer). The foreground layer can be used for message interaction, and the background layer, i.e., the conversation background area, can be used to display virtual items. The virtual item can specifically be a virtual gift given to a target member in a target conversation. The virtual item can be three-dimensional or two-dimensional, and this embodiment does not limit this.
[0167] In a specific scenario, Figure 2b As shown, when the message sent by the room owner contains keywords such as gift sending, present, reward, gift package, etc., all users in the room receive a pop-up window prompt guiding them to send gifts (specifically, it may be a display of the virtual item distribution area); after receiving the prompt, the user can choose to send gifts or close the pop-up window according to his or her own wishes.
[0168] Optionally, in this embodiment, the step of “displaying the message session page of the target session” may include:
[0169] Displaying a message conversation page of the target conversation, wherein a conversation background area of the message conversation page includes a first background image for chatting;
[0170] When an item distribution operation by a member in the target session is detected, the first background image in the session background area is switched to a second background image used for virtual item interaction.
[0171] Among them, for the target session, when no member issues virtual items (specifically, no member in the target session issues virtual items within a preset time period), the session background area of the message session page may be in an inactive state and does not display virtual items. The session background area in an inactive state displays a first background image used for chatting, which may be a blank image or an image set by the user. When an item issuance operation by a member in the target session is detected, the session background area is activated and may be switched from the first background image to a second background image used for virtual item interaction. The second background image may specifically display virtual items presented by session members and may also display motion effects when virtual items are issued.
[0172] 203. In response to the item distribution operation for the virtual item distribution area, the terminal displays, in the message conversation page, an animation of a target virtual item moving from the virtual item distribution area to the conversation background area, wherein the target virtual item is a virtual item distributed to a target member in the target conversation based on the item distribution operation.
[0173] Optionally, in this embodiment, the virtual item distribution area includes at least one category of virtual items; the step of “in response to an item distribution operation for the virtual item distribution area, displaying a motion effect of a target virtual item moving from the virtual item distribution area to the conversation background area in the message conversation page” may include:
[0174] In response to an item distribution operation for a target virtual item under a target category in the virtual item distribution area, a motion effect of the target virtual item moving from the virtual item distribution area to the conversation background area is displayed in the message conversation page.
[0175] Specifically, multiple categories of candidate virtual items can be displayed in the virtual item distribution area, and the spatial scales of different virtual items can be different. Based on the item distribution operation of the target virtual item of the target category in the virtual item distribution area, the dynamic effect of the target virtual item moving from the virtual item distribution area to the session background area is displayed.
[0176] 204. When the statistical information of the current virtual items in the session background area meets the reward triggering condition, the terminal issues a reward to the members in the target session.
[0177] The reward triggering condition can be set according to actual conditions, and this embodiment does not limit this. For example, the reward triggering condition can be that the spatial scale of the current virtual item reaches a preset scale, for example, when the virtual items donated by the members in the target session fill the session background area, the reward is issued to the members in the target session.
[0178] Optionally, in this embodiment, the step of “issuing rewards to members in the target session when the statistical information of the current virtual items in the session background area meets the reward triggering condition” may include:
[0179] When the statistical information of the current virtual items in the session background area meets the reward triggering condition, a reward claiming control is displayed in the message session page corresponding to the member in the target session;
[0180] In response to the triggering operation of the reward claiming control, the reward is issued to the members in the target session.
[0181] Optionally, in this embodiment, the step of “issuing rewards to members in the target session in response to a triggering operation on the reward claiming control” may include:
[0182] When the remaining number of rewards is greater than a preset number, in response to a triggering operation on the reward claiming control, rewards are issued to members in the target session.
[0183] In one embodiment, the initial state of the message session page of the target session is as follows: Figure 2c As shown, the initial state refers to the state where no member in the target session issues virtual items. When no virtual items are issued, the session background area of the message session page is empty. Figure 2d As shown in the figure, when the user performs an item distribution operation on the virtual item distribution area, the target virtual item is ejected from the virtual item distribution area, and after random ejection, it falls into the conversation background area of the message conversation page, forming a pile effect. When the conversation background area is full of virtual items, a reward will be triggered. The effect of virtual items filling the conversation background area is shown in the figure. Figure 2e shown.
[0184] Specifically, Figure 2f As shown, the technical solution of the interactive method based on virtual items may include:
[0185] 2001. The user presents a target virtual item to a target member in a target session by performing an item distribution operation in the virtual item distribution area in the message session page, and different virtual items correspond to different volumes;
[0186] 2002. The target virtual item moves from the virtual item distribution area to the session background area in the message session page, which may be specifically three random ejections on the screen;
[0187] 2003. After the target virtual object is ejected, the current displayable item area in the session background area may be calculated, and the target display position of the target virtual object in the session background area may be determined based on the current displayable item area;
[0188] 2004. The target virtual object stops moving and is placed at the target display position, forming a stacking effect in the session background area.
[0189] Optionally, in this embodiment, the technical solution for accumulating virtual items (ie, virtual gifts) can refer to Figure 2g, members in the target session can give virtual gifts to target members (such as the room owner). The given virtual gifts can move from the virtual item distribution area to the session background area (i.e., the background of the online room). The background of the online room can be regarded as a container for placing virtual items given by members in the target session. For example, the capacity value of the background of the online room is 100, and different gifts correspond to different capacity values. For example, the capacity value of gift 1 is 1, the capacity value of gift 2 is 2, and the capacity value of gift 3 is 3. When the capacity values of N gifts given by session members are not less than 100 (i.e., gift 1+gift 2+gift 3+...gift N≥100), the room reward will be triggered, and users who participate in gift giving can obtain gift packages.
[0190] As can be seen from the above, this embodiment can display the initial message conversation page of the target conversation through the terminal; when it is detected that the message content sent by the target member in the target conversation includes preset keywords, the terminal displays the virtual item distribution area on the initial message conversation page to obtain a message conversation page, and the message conversation page includes a virtual item distribution area and a conversation background area; in response to an item distribution operation for the virtual item distribution area, the message conversation page displays a dynamic effect of the target virtual item moving from the virtual item distribution area to the conversation background area, wherein the target virtual item is a virtual item distributed to the target member in the target conversation based on the item distribution operation; when the statistical information of the current virtual item in the conversation background area meets the reward trigger condition, the terminal issues a reward to the member in the target conversation. The present application can display the distribution dynamic effect of virtual items on the message conversation page, and when the reward trigger condition is met, the members in the target conversation can be rewarded, enriching the interactive form of virtual items.
[0191] In order to better implement the above method, the embodiment of the present application also provides an interactive device based on virtual items, such as Figure 3a As shown, the interactive device based on virtual items may include a first display unit 301, a second display unit 302 and a distribution unit 303, as follows:
[0192] (1) a first display unit 301;
[0193] The first display unit 301 is used to display the message conversation page of the target conversation, wherein the message conversation page includes a virtual item distribution area and a conversation background area.
[0194] Optionally, in some embodiments of the present application, the first display unit 301 may include a second display subunit 3011 and a third display subunit 3012, see Figure 3b ,as follows:
[0195] The second display subunit 3011 is used to display the initial message session page of the target session;
[0196] The third display subunit 3012 is used to display the virtual item distribution area on the initial message conversation page to obtain a message conversation page when it is detected that the message content sent by the target member in the target conversation includes a preset keyword.
[0197] Optionally, in some embodiments of the present application, the first display unit 301 may include a sixth display subunit 3013 and a second switching subunit 3014, see Figure 3c ,as follows:
[0198] The sixth display subunit 3013 is used to display the message conversation page of the target conversation, and the conversation background area of the message conversation page includes a first background image for chatting;
[0199] The second switching subunit 3014 is used to switch the first background image in the session background area to a second background image used for virtual item interaction when an item distribution operation by a member in the target session is detected.
[0200] (2) a second display unit 302;
[0201] The second display unit 302 is used to display a motion effect of a target virtual item moving from the virtual item distribution area to the session background area in the message session page in response to an item distribution operation on the virtual item distribution area, wherein the target virtual item is a virtual item distributed to a target member in the target session based on the item distribution operation.
[0202] Optionally, in some embodiments of the present application, the second display unit 302 may include a calculation subunit 3021 and a fifth display subunit 3022, see Figure 3d ,as follows:
[0203] The calculation subunit 3021 is used to calculate a target display position of a target virtual item in the session background area based on the display position information of the current virtual item in the session background area in response to the item distribution operation for the virtual item distribution area;
[0204] The fifth display subunit 3022 is used to display in the message conversation page a motion effect of a target virtual item moving from the virtual item distribution area to a target display position in the conversation background area according to a preset motion trajectory.
[0205] Optionally, in some embodiments of the present application, the computing subunit 3021 may be specifically used to determine the position information of an area where items are not displayed in the session background area based on the display position information of the current virtual item in the session background area; and to calculate the target display position of the target virtual item in the session background area based on the spatial scale of the target virtual item and the position information of the area where items are not displayed.
[0206] Optionally, in some embodiments of the present application, the second display unit 302 can be specifically used to display a motion effect of a target virtual item moving from the virtual item distribution area to the session background area in the message session page in response to an item distribution operation for the virtual item distribution area when the number of virtual items distributed within a preset time period is less than a preset distribution number.
[0207] Optionally, in some embodiments of the present application, the second display unit 302 may further include a prompt subunit 3023, see Figure 3e ,as follows:
[0208] The prompt subunit 3023 is used to display a prompt message on the message conversation page based on the item issuance operation for the virtual item issuance area when the number of virtual items issued within the preset time period is not less than the preset issuance number, and the prompt message is used to prompt that the number of virtual items is insufficient.
[0209] Optionally, in some embodiments of the present application, the virtual item distribution area includes at least one category of virtual items; the second display unit 302 can be specifically used to respond to an item distribution operation for a target virtual item under a target category in the virtual item distribution area, and display a motion effect of the target virtual item moving from the virtual item distribution area to the session background area in the message session page.
[0210] (3) issuing unit 303;
[0211] The issuing unit 303 is used to issue rewards to members in the target session when the statistical information of the current virtual items in the session background area meets the reward triggering condition.
[0212] Optionally, in some embodiments of the present application, the issuing unit 303 may be specifically configured to issue a reward to a member of the target session when the spatial scale statistics of the current virtual item in the session background area meet a preset scale condition for triggering a reward.
[0213] Optionally, in some embodiments of the present application, the issuing unit 303 may be specifically configured to issue rewards to members in the target session when the total number of virtual items currently in the session background area meets a preset quantity condition for reward triggering.
[0214] Optionally, in some embodiments of the present application, the issuing unit 303 may include a fourth display subunit 3031 and an issuing subunit 3032, see Figure 3f ,as follows:
[0215] The fourth display subunit 3031 is used to display a reward claiming control in the message session page corresponding to the member in the target session when the statistical information of the current virtual item in the session background area meets the reward triggering condition;
[0216] The issuing subunit 3032 is used to issue rewards to members in the target session in response to a triggering operation on the reward claiming control.
[0217] Optionally, in some embodiments of the present application, the distribution subunit 3032 can be specifically used to distribute rewards to members in the target session in response to a triggering operation on the reward collection control when the remaining number of rewards is greater than a preset number.
[0218] Optionally, in some embodiments of the present application, the message conversation page further includes a conversation foreground area covering the conversation background area, and the virtual item-based interactive device further includes a switching unit 304 and a third display unit 305, see Figure 3g ,as follows:
[0219] The switching unit 304 is configured to hide the session foreground area and switch to display the session background area when a session hiding operation for the message session page is detected;
[0220] The third display unit 305 displays a target motion effect of the operation on the virtual item in the session background area in response to the operation on the virtual item.
[0221] Optionally, in some embodiments of the present application, the switching unit 304 may include a first display subunit 3041 and a first switching subunit 3042, see Figure 3h ,as follows:
[0222] The first display subunit 3041 is used to display a page transition effect of switching the message conversation page from a conversation foreground area to a conversation background area when a conversation hiding operation on the message conversation page is detected;
[0223] The first switching subunit 3042 is used to hide the session foreground area and switch to display the session background area when the page transition animation is completed.
[0224] Optionally, in some embodiments of the present application, the message conversation page further includes a message content sending area, and the virtual item-based interactive device may further include a message sending unit 306, see Figure 3i ,as follows:
[0225] The message sending unit 306 is used to send the message content to the members in the target session in response to the message sending operation on the message content sending area; and display the message content in the message session page.
[0226] As can be seen from the above, in this embodiment, the message conversation page of the target conversation can be displayed through the first display unit 301, and the message conversation page includes a virtual item distribution area and a conversation background area; the second display unit 302 responds to the item distribution operation for the virtual item distribution area, and displays the dynamic effect of the target virtual item moving from the virtual item distribution area to the conversation background area in the message conversation page, wherein the target virtual item is a virtual item distributed to the target member in the target conversation based on the item distribution operation; when the statistical information of the current virtual item in the conversation background area meets the reward triggering condition, the reward is distributed to the member in the target conversation through the distribution unit 303. This application can display the distribution dynamic effect of virtual items on the message conversation page, and when the reward triggering condition is met, the members in the target conversation can get rewards, which enriches the interactive form of virtual items.
[0227] The present application also provides an electronic device, such as Figure 4 As shown, it shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, and the electronic device may be a terminal or a server, etc. Specifically:
[0228] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that Figure 4 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0229] The processor 401 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, the processor 401 performs various functions of the electronic device and processes data. Optionally, the processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 401.
[0230] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0231] The electronic device also includes a power supply 403 for supplying power to each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 403 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.
[0232] The electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0233] Although not shown, if the electronic device is a terminal, it may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 will run the application stored in the memory 402 to implement various functions, as follows:
[0234] A message conversation page of a target conversation is displayed, the message conversation page comprising a virtual item distribution area and a conversation background area; in response to an item distribution operation for the virtual item distribution area, an animation of a target virtual item moving from the virtual item distribution area to the conversation background area is displayed in the message conversation page, wherein the target virtual item is a virtual item distributed to a target member in the target conversation based on the item distribution operation; when the statistical information of the current virtual item in the conversation background area meets a reward triggering condition, a reward is distributed to the member in the target conversation.
[0235] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0236] As can be seen from the above, this embodiment can display the message conversation page of the target conversation, the message conversation page includes a virtual item distribution area and a conversation background area; in response to an item distribution operation for the virtual item distribution area, the target virtual item is displayed in the message conversation page. The dynamic effect of the movement of the target virtual item from the virtual item distribution area to the conversation background area, wherein the target virtual item is a virtual item distributed to the target member in the target conversation based on the item distribution operation; when the statistical information of the current virtual item in the conversation background area meets the reward triggering condition, rewards are issued to the members in the target conversation. The present application can display the dynamic effect of virtual item distribution on the message conversation page, and when the reward triggering condition is met, the members in the target conversation can be rewarded, enriching the interactive form of virtual items.
[0237] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0238] To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps in any one of the interactive methods based on virtual items provided in the embodiment of the present application. For example, the instructions can execute the following steps:
[0239] A message conversation page of a target conversation is displayed, the message conversation page comprising a virtual item distribution area and a conversation background area; in response to an item distribution operation for the virtual item distribution area, an animation of a target virtual item moving from the virtual item distribution area to the conversation background area is displayed in the message conversation page, wherein the target virtual item is a virtual item distributed to a target member in the target conversation based on the item distribution operation; when the statistical information of the current virtual item in the conversation background area meets a reward triggering condition, a reward is distributed to the member in the target conversation.
[0240] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0241] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0242] Since the instructions stored in the storage medium can execute the steps in any one of the interactive methods based on virtual items provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the interactive methods based on virtual items provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0243] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method provided in various optional implementations of the above-mentioned interaction based on virtual items.
[0244] The above is a detailed introduction to an interactive method, device, electronic device and storage medium based on virtual items provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An interactive method based on virtual items, characterized in that: include: Displaying a message conversation page of a target conversation, the message conversation page including a virtual item distribution area and a conversation background area, and a conversation foreground area covering the conversation background area, the conversation foreground area being used for message interaction, and the conversation background area including virtual items currently given by members in the target conversation; In response to an item distribution operation for the virtual item distribution area, displaying an animation of a target virtual item moving from the virtual item distribution area to the session background area in the message session page, so that the target virtual item falls on the session background area and forms a stacking effect with other virtual items in the session background area, wherein the target virtual item is a virtual item distributed to a target member in the target session based on the item distribution operation; When a session hiding operation for the message session page is detected, hiding the session foreground area and switching to display the session background area; In response to an operation on a virtual item in the session background area, displaying a target animation effect of the operation on the virtual item; When the spatial scale statistics of the current virtual items in the session background area meet the preset scale conditions for reward triggering, rewards are issued to members in the target session.
2. The method according to claim 1, characterized in that When a session hiding operation for the message session page is detected, hiding the session foreground area and switching to display the session background area comprises: When a session hiding operation for the message session page is detected, displaying a page transition effect of the message session page switching from a session foreground area to a session background area; When the page transition animation is displayed, the session foreground area is hidden and the session background area is switched to be displayed.
3. The method according to claim 1, characterized in that The message conversation page displaying the target conversation includes: Display the initial message conversation page of the target conversation; When it is detected that the content of the message sent by the target member in the target conversation includes a preset keyword, a virtual item distribution area is displayed on the initial message conversation page to obtain a message conversation page.
4. The method according to claim 1, characterized in that: When the spatial scale statistics of the current virtual items in the session background area meet the preset scale condition for reward triggering, issuing rewards to members in the target session includes: When the spatial scale statistics of the current virtual items in the session background area meet the preset scale conditions for reward triggering, a reward claiming control is displayed in the message session page corresponding to the member in the target session; In response to the triggering operation of the reward claiming control, the reward is issued to the members in the target session.
5. The method according to claim 4, characterized in that The step of issuing a reward to a member in the target session in response to a triggering operation on the reward claiming control includes: When the remaining number of rewards is greater than a preset number, in response to a triggering operation on the reward claiming control, rewards are issued to members in the target session.
6. The method according to claim 1, characterized in that In response to the item issuing operation for the virtual item issuing area, displaying in the message conversation page the dynamic effect of the target virtual item moving from the virtual item issuing area to the conversation background area includes: In response to an item distribution operation for the virtual item distribution area, based on display position information of the current virtual item in the session background area, calculating a target display position of a target virtual item in the session background area; The message conversation page displays a dynamic effect that a target virtual item moves from the virtual item distribution area to a target display position in the conversation background area according to a preset motion trajectory.
7. The method according to claim 6, characterized in that The calculating the target display position of the target virtual object in the session background area based on the display position information of the current virtual object in the session background area includes: Based on the display position information of the current virtual item in the session background area, determining the position information of the area where no items are displayed in the session background area; Based on the spatial scale of the target virtual object and the position information of the non-object display area, a target display position of the target virtual object in the session background area is calculated.
8. The method according to claim 1, characterized in that The message conversation page also includes a message content sending area, and the method further includes: In response to a message sending operation on the message content sending area, sending the message content to members in the target session; The message content is displayed in the message conversation page.
9. The method according to claim 1, characterized in that: In response to the item issuing operation for the virtual item issuing area, displaying in the message conversation page the dynamic effect of the target virtual item moving from the virtual item issuing area to the conversation background area includes: When the number of virtual items issued within a preset time period is less than a preset number of virtual items issued, in response to an item issuance operation for the virtual item issuance area, a motion effect of a target virtual item moving from the virtual item issuance area to the session background area is displayed in the message session page.
10. The method according to claim 9, characterized in that The method further comprises: When the number of virtual items issued within the preset time period is not less than the preset number of virtual items issued, based on the item issuance operation for the virtual item issuance area, a prompt message is displayed on the message conversation page, and the prompt message is used to prompt that the number of virtual items is insufficient.
11. The method according to claim 1, characterized in that: The message conversation page displaying the target conversation includes: Displaying a message conversation page of the target conversation, wherein a conversation background area of the message conversation page includes a first background image for chatting; When an item distribution operation by a member in the target session is detected, the first background image in the session background area is switched to a second background image used for virtual item interaction.
12. The method according to claim 1, characterized in that The virtual item distribution area includes at least one category of virtual items; and in response to the item distribution operation for the virtual item distribution area, displaying the dynamic effect of the target virtual item moving from the virtual item distribution area to the conversation background area in the message conversation page includes: In response to an item distribution operation for a target virtual item under a target category in the virtual item distribution area, a motion effect of the target virtual item moving from the virtual item distribution area to the conversation background area is displayed in the message conversation page.
13. An interactive device based on virtual items, characterized in that: include: A first display unit is used to display a message conversation page of a target conversation, wherein the message conversation page includes a virtual item distribution area and a conversation background area, and a conversation foreground area covering the conversation background area, wherein the conversation foreground area is used for message interaction, and the conversation background area includes virtual items currently given by members in the target conversation; a second display unit, for displaying, in response to an item distribution operation for the virtual item distribution area, a motion effect of a target virtual item moving from the virtual item distribution area to the session background area in the message session page, so that the target virtual item falls on the session background area and forms a stacking effect with other virtual items in the session background area, wherein the target virtual item is a virtual item distributed to a target member in the target session based on the item distribution operation; A switching unit, configured to hide the session foreground area and switch to display the session background area when a session hiding operation for the message session page is detected; A third display unit, configured to display a target motion effect of the operation on the virtual item in the session background area in response to the operation on the virtual item; The issuing unit is used to issue rewards to members in the target session when the spatial scale statistics of the current virtual items in the session background area meet the preset scale conditions for reward triggering.
14. An electronic device, characterized in that: It comprises a memory and a processor; the memory stores an application program, and the processor is used to run the application program in the memory to execute the operations in the virtual item-based interactive method according to any one of claims 1 to 12.
15. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the virtual item-based interactive method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Data processing method and device for live broadcast room object
CN110944229A
Virtual article data processing method and device and storage medium
CN112291608A
