Virtual article-based interaction method and device, electronic equipment and storage medium
By displaying the animation and reward mechanism of virtual items in the message session page, the problem of single interaction form of virtual items in the prior art is solved, and a richer and more interesting interactive experience of virtual items is achieved.
Patent Information
- Application Number
- CN202510129764.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-03
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, the interactive form of giving away virtual items is relatively single and lacks a rich interactive experience.
By displaying the virtual item distribution area and the session background area in the message session page, in response to the user's item distribution operation, displaying the animation effect of the virtual item movement from the distribution area to the session background area, and issuing rewards to session members when specific statistical information conditions are met.
It enriches the interactive form of virtual items, enhances the interaction between users and virtual items, and enhances users' interest in giving away virtual items through reward mechanisms.
Smart Images

Figure CN120066334A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and particularly to an interaction 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 network. Currently, in order to improve the fun and enhance the interaction between users, many application programs provide a virtual item gifting function, where the virtual item can specifically be a virtual gift.
[0003] In the current related technologies, the gifting of virtual items is generally a simple one-time experience, and the interaction form is relatively single. Summary of the Invention
[0004] The embodiments of this application provide an interaction method, device, electronic device, and storage medium based on virtual items, which can enrich the interaction forms of virtual items.
[0005] The embodiments of this application provide an interaction method based on virtual items, including:
[0006] Display a message session page of a target session, where the message session page includes a virtual item distribution area and a session background area;
[0007] In response to an item distribution operation on the virtual item distribution area, display an animation effect in the message session page that a target virtual item moves from the virtual item distribution area to the session background area, where 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 item in the session background area meets the reward trigger condition, distribute a reward to the members in the target session.
[0009] Correspondingly, the embodiments of this application provide an interaction device based on virtual items, including:
[0010] A first display unit, configured to display a message session page of a target session, where the message session page includes a virtual item distribution area and a session background area;
[0011] A second display unit, configured to, in response to an item distribution operation on the virtual item distribution area, display an animation effect in the message session page that a target virtual item moves from the virtual item distribution area to the session background area, where the target virtual item is a virtual item distributed to a target member in the target session based on the item distribution operation;
[0012] A distribution unit, configured to distribute rewards to members in the target session when the statistical information of the current virtual item in the session background area meets the reward trigger condition.
[0013] Optionally, in some embodiments of the present application, the message session page further includes a session foreground area covering the session background area, and the virtual item-based interaction 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 on the message session page is detected;
[0015] The third display unit responds to an operation on a virtual item in the session background area and displays a target dynamic effect of 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 configured to display a page transition dynamic effect of the message session page switching from the session foreground area to the session background area when a session hiding operation on the message session page is detected;
[0018] The first switching subunit is configured to hide the session foreground area and switch to display the session background area when the page transition dynamic effect 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 configured to display an initial message session page of the target session;
[0021] The third display subunit is configured to display a virtual item distribution area on the initial message session page to obtain a message session page when the message content sent by a target member in the target session includes a preset keyword.
[0022] Optionally, in some embodiments of the present application, the distribution unit is specifically configured to distribute rewards to members in the target session when the spatial scale statistics of the current virtual item in the session background area meet a preset scale condition for reward triggering.
[0023] Optionally, in some embodiments of the present application, the distribution unit is specifically configured to distribute rewards to members in the target session when the total quantity of the current virtual item in the session background area meets a preset quantity condition for reward triggering.
[0024] Optionally, in some embodiments of the present application, the distribution unit may include a fourth display subunit and a distribution subunit, as follows:
[0025] The fourth display subunit is configured to display a reward collection control on the message session page corresponding to the members in the target session when the statistical information of the current virtual item in the session background area meets the reward trigger condition;
[0026] The distribution subunit is configured to distribute rewards to the members in the target session in response to a trigger operation on the reward collection control.
[0027] Optionally, in some embodiments of the present application, the distribution subunit may specifically be configured to, when the remaining number of rewards is greater than a preset number, distribute rewards to the members in the target session in response to a trigger operation on the reward collection control.
[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 configured to, in response to an item distribution operation for the virtual item distribution area, calculate the target display position of the target virtual item in the session background area based on the display position information of the current virtual item in the session background area;
[0030] The fifth display subunit is configured to display an animation effect in which the target virtual item moves from the virtual item distribution area to the target display position in the session background area along a preset movement trajectory on the message session page.
[0031] Optionally, in some embodiments of the present application, the calculation subunit may specifically be configured to determine the position information of the area without displayed items in the session background area based on the display position information of the current virtual item in the session background area; and 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 without displayed items.
[0032] Optionally, in some embodiments of the present application, the message session page further includes a message content sending area, and the interaction device based on virtual items may further include a message sending unit, as follows:
[0033] The message sending unit is configured to send message content to the members in the target session in response to a message sending operation for the message content sending area; and display the message content on the message session page.
[0034] Optionally, in some embodiments of the present application, the second display unit may specifically be configured to, when the number of virtual items issued within a preset time period is less than the preset issuance quantity, in response to an item issuance operation for the virtual item issuance area, display an animation effect in the message session page where the target virtual item moves from the virtual item issuance area to the session background area.
[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 configured to, when the number of virtual items issued within a preset time period is not less than the preset issuance quantity, based on an item issuance operation for the virtual item issuance area, display a prompt message on the message session page, where the prompt message is used to prompt that the quantity 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 configured to display a message session page of a target session, where a session background area of the message session page includes a first background image for chatting;
[0039] The second switching subunit is configured to, when detecting an item issuance operation of a member in the target session, switch the first background image in the session background area to a second background image for virtual item interaction.
[0040] Optionally, in some embodiments of the present application, the virtual item issuance area includes at least one category of virtual items; the second display unit may specifically be configured to, in response to an item issuance operation for a target virtual item under a target category in the virtual item issuance area, display an animation effect in the message session page where the target virtual item moves from the virtual item issuance area to the session background area.
[0041] An electronic device provided in an embodiment of the present application includes a processor and a memory. The memory stores multiple 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. When the computer program is executed by a processor, the steps in the virtual item-based interaction method provided in the embodiment of the present application are implemented.
[0043] The embodiments of the present application provide an interaction method, device, electronic device, and storage medium based on virtual items, which can display a message session page of a target session. The message session page includes a virtual item distribution area and a session background area; in response to an item distribution operation on the virtual item distribution area, an animation effect of a target virtual item moving from the virtual item distribution area to the session background area is displayed in the message session page, where the target virtual item is a virtual item distributed to a 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 trigger condition, a reward is distributed to the members in the target session. The present application can display the distribution animation effect of virtual items in the message session page, and when the reward trigger condition is met, the members in the target session can obtain rewards, enriching the interaction forms of virtual items. Description of the Drawings
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0045] Figure 1a It is a schematic diagram of the scenario of the interaction method based on virtual items provided by the embodiments of the present application;
[0046] Figure 1b It is a flowchart of the interaction method based on virtual items provided by the embodiments of the present application;
[0047] Figure 1c It is a page schematic diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0048] Figure 1d It is an explanatory diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0049] Figure 1e It is a page schematic diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0050] Figure 1f It is a page schematic diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0051] Figure 1g It is a page schematic diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0052] Figure 1h It is a page schematic diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0053] Figure 1i It is another page schematic diagram of the existing virtual item interaction method;
[0054] Figure 1j It is another page schematic diagram of the existing virtual item interaction method;
[0055] Figure 2a It is another flowchart of the interaction method based on virtual items provided by the embodiments of the present application;
[0056] Figure 2b It is another flowchart of the interaction method based on virtual items provided by the embodiments of the present application;
[0057] Figure 2c It is another page schematic diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0058] Figure 2d It is another page schematic diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0059] Figure 2e It is another page schematic diagram of the interaction method based on virtual items provided by the embodiments of the present application;
[0060] Figure 2f It is another flowchart of the interaction method based on virtual items provided by the embodiments of the present application;
[0061] Figure 2g It is another flowchart of the interaction method based on virtual items provided by the embodiments of the present application;
[0062] Figure 3a It is a schematic structural diagram of the interaction device based on virtual items provided by the embodiments of the present application;
[0063] Figure 3b It is another schematic structural diagram of the interaction device based on virtual items provided by the embodiments of the present application;
[0064] Figure 3c It is another schematic structural diagram of the interaction device based on virtual items provided by the embodiments of the present application;
[0065] Figure 3d It is another schematic structural diagram of the interaction device based on virtual items provided by the embodiments of the present application;
[0066] Figure 3e It is another schematic structural diagram of the interaction device based on virtual items provided by the embodiments of the present application;
[0067] Figure 3f It is another schematic structural diagram of the interaction device based on virtual items provided by the embodiments of the present application;
[0068] Figure 3g It is another schematic structural diagram of the interactive device based on virtual items provided by the embodiment of the present application;
[0069] Figure 3h It is another schematic structural diagram of the interactive device based on virtual items provided by the embodiment of the present application;
[0070] Figure 3i It is another schematic structural diagram of the interactive device based on virtual items provided by the embodiment of the present application;
[0071] Figure 4 It is a schematic structural diagram of the electronic device provided by the embodiment of the present application. Detailed implementation manners
[0072] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0073] The embodiment of the present application provides an interactive method, device, electronic device and storage medium based on virtual items. The interactive device based on virtual items can be specifically integrated in the electronic device, and the electronic device can be a device such as a terminal or a server.
[0074] It can be understood that the interactive method based on virtual items in this embodiment can be executed on the terminal, can also be executed on the server, or can be jointly executed by the terminal and the server. The above examples should not be construed as limitations to the present application.
[0075] Such as Figure 1a shown, taking the terminal and the server jointly executing the interactive method based on virtual items as an example. The interactive system based on virtual items provided by the embodiment of the present application includes a terminal 10 and a server 11, etc.; the terminal 10 and the server 11 are connected through a network, for example, through a wired or wireless network connection, etc., where the interactive device based on virtual items can be integrated in the terminal.
[0076] Among them, the terminal 10 can be used to: display a message session page of a target session, where the message session page includes a virtual item distribution area and a session background area; in response to an item distribution operation on the virtual item distribution area, display an animation effect of a target virtual item moving from the virtual item distribution area to the session background area in the message session page, where the target virtual item is a virtual item distributed to a 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 trigger condition, distribute rewards to the members in the target session. Among them, the terminal 10 can include a mobile phone, a smart TV, a tablet computer, a laptop computer, 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 item in the session background area meets the reward trigger condition. If so, trigger the terminal 10 to distribute rewards to the members in the target session. The server 11 can also be used to detect whether the message content sent by the target member in the target session includes a preset keyword. If so, trigger the terminal 10 to display the virtual item distribution area on the message session page. Based on the item distribution operation on the virtual item distribution area, the server 11 can calculate the target display position of the target virtual item in the session background area according to the current display position information of the virtual item in the session background area, and send the target display position to the terminal 10, so that the terminal 10 can display the animation effect of the target virtual item moving from the virtual item distribution area to the target display position in the session background area according to a preset movement trajectory in the message session page. Among them, the server 11 can be a single server, or a server cluster or cloud server composed of multiple servers.
[0078] The steps of the above server 11 for determining the reward trigger condition, detecting keywords, and calculating the target display position can also be executed by the terminal 10.
[0079] The following will be described in detail respectively. It should be noted that the description order of the following embodiments does not 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 can be specifically integrated in an electronic device, and the electronic device can be a device such as a server or a terminal.
[0081] The interactive method based on virtual items in the embodiments of the present application can be applied to social forms with multiple people online, such as group chats, live rooms, chat rooms, virtual rooms, etc. The embodiments are not limited thereto. Through the interactive method based on virtual items provided in this embodiment, the animation effect of the virtual item distribution can be displayed on the message session page, and when the reward trigger condition is met, the members in the target session can obtain rewards, enriching the interactive forms of virtual items.
[0082] As Figure 1b shown, the specific process of this interactive method based on virtual items can be as follows:
[0083] 101. Display the message session page of the target session, where the message session page includes a virtual item distribution area and a session background area.
[0084] Among them, the target session can include at least one or more (session) members. In some embodiments, the permissions among the members of the target session are different, and the member with the highest permission in the target session can be called the group owner. For example, the group owner can receive virtual items sent by other members in the target session.
[0085] Specifically, the target session can be an online room. An online room refers to a relatively independent virtual space divided according to certain criteria (such as functions or content) in a network platform, such as an online chat room, a live room in a network live broadcast platform, or a network live broadcast room, etc.
[0086] Among them, the message session page can be used to display the sent or received message content, that is, to show the message interaction between users. The types of messages are not limited and can be videos, audios, images, texts, etc. The message session page can include a background layer and a foreground layer (that is, the session foreground area or session layer). The foreground layer can be used for message interaction, and the background layer, that is, the session background area, can be used to display virtual items. The virtual item can specifically be a virtual gift sent to the target member in the target session. The virtual item can be three-dimensional or two-dimensional, and the embodiments are not limited thereto.
[0087] Optionally, the virtual item distribution area can include a virtual item distribution control. Based on operations on the virtual item distribution control, such as click operations, swipe operations, etc., virtual items can be distributed to the target member in the target session. In some embodiments, based on operations on the virtual item distribution control, at least one candidate virtual item can also be displayed in the virtual item distribution area, and based on the selection operation for the target virtual item in the virtual item distribution area, the target virtual item is distributed to the target member in the target session. Among them, the selection operation can specifically 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 session page of the target session;
[0090] When it is detected that the message content sent by the target member in the target session includes a preset keyword, display a virtual item distribution area on the initial message session page to obtain the message session page.
[0091] Among them, the initial message session page may not include a virtual item distribution area. The preset keyword can be set according to the actual situation. For example, it can be words such as "giving gifts" and "gifts".
[0092] In some embodiments, keyword extraction can be performed on the message content sent by the target member in the target session to obtain the key information of the message content, calculate the matching degree between the key information and the preset keyword, and based on the matching degree, display a virtual item distribution area on the initial message session page. Among them, the calculation of the matching degree between the key information and the preset keyword can specifically be to extract the feature information corresponding to the key information and the feature information corresponding to the preset keyword, calculate the vector distance between the feature information corresponding to the key information and the feature information corresponding to the preset keyword. The larger the vector distance, the lower the matching degree, and vice versa, the smaller the vector distance, the higher the matching degree.
[0093] In a specific scenario, refer to Figure 1c , the target member of the target session can be the group owner. When it is detected that the message content "The gifts are almost full, everyone can send another wave" sent by the group owner includes the preset keyword "gifts", a virtual item distribution area can be displayed on the initial message session page to guide users to give items. The virtual item distribution area may include multiple categories of candidate virtual items, and users can select a target virtual item from the candidate virtual items and give the target virtual item to the group owner based on the selection operation of the target virtual item.
[0094] Optionally, in this embodiment, the step of "displaying the message session page of the target session" may include:
[0095] Display the message session page of the target session, and the session background area of the message session page includes a first background image for chatting;
[0096] When it is detected that a member in the target session performs an item distribution operation, switch the first background image in the session background area to a second background image for virtual item interaction.
[0097] Among them, for the target session, when no member distributes virtual items (specifically, no member in the target session distributes virtual items within a preset time period), the session background area of the message session page can be in an inactive state, and virtual items are not displayed. The session background area in the inactive state displays a first background image for chatting, and the first background image can be a blank image or an image set by the user, etc. When an item distribution operation by a member in the target session is detected, the session background area is activated and can be switched from the first background image to a second background image for virtual item interaction. The second background image can specifically display the virtual items presented by session members and can also display the special effects when the virtual items are distributed.
[0098] 102. In response to an item distribution operation on the virtual item distribution area, display, in the message session page, a special effect of a target virtual item moving from the virtual item distribution area to the session background area, where 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) on the target virtual item in the virtual item distribution area. The special effect can be the default special effect of the system or a special effect set by the user himself / herself. The special effect can correspond to display parameters. Optionally, in some embodiments, the user can control the distribution display effect corresponding to the virtual item by setting the display parameters of the special effect. The display parameters of the special effect can include the type of the special effect, the moving speed, etc. Among them, the type of the special effect can specifically be an ejection special effect, a floating special effect, a glowing special effect, etc. For the ejection special effect, display parameters such as the number of ejections, the ejection direction, and the ejection speed can be set.
[0100] In a specific embodiment, when an item distribution operation by the user on the 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, where the number of ejections can be set to three. After the target virtual item is ejected, the target virtual item can land on the session background area and form a stacking effect with other virtual items, such as Figure 1e shown (it can also be other display effects, and this embodiment does not limit this).
[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 movement laws. For example, in response to an item distribution operation for the virtual item distribution area, an animation effect that conforms to the gravity law of the target virtual item moving from the virtual item distribution area to the conversation background area can be displayed. This can make the animation effect of the virtual item more natural, conform to the movement effect of real items in people's daily lives, and is not likely to cause a sense of incongruity.
[0102] Optionally, in this embodiment, the step of "in response to an item distribution operation for the virtual item distribution area, display an animation effect of the target virtual item moving from the virtual item distribution area to the conversation background area in the message conversation page" may include:
[0103] In response to an item distribution operation for the virtual item distribution area, calculate the target display position of the target virtual item in the conversation background area based on the display position information of the current virtual item in the conversation background area;
[0104] In the message conversation page, display an animation effect of the target virtual item moving from the virtual item distribution area to the target display position in the conversation background area according to a preset movement trajectory.
[0105] Among them, the current virtual item in the conversation background area is the virtual item that has been given by the members in the target conversation. The display position information of the current virtual item in the conversation background area is the placement position information of the current virtual item, and the target display position is the position where the target virtual item is to be placed. After displaying the animation effect of the target virtual item falling into the conversation background area based on the item distribution operation, the final display is the effect of the target virtual item placed at the target display position.
[0106] Optionally, in this embodiment, the step of "calculate the target display position of the target virtual item in the conversation background area based on the display position information of the current virtual item in the conversation background area" may include:
[0107] Based on the display position information of the current virtual item in the conversation background area, determine the position information of the area in the conversation background area where no item is displayed;
[0108] Based on the spatial scale of the target virtual item and the position information of the area where no item is displayed, calculate the target display position of the target virtual item in the conversation background area.
[0109] Among them, the size of the space for accommodating virtual items in the conversation background area can be determined, and then based on the placement position of the current virtual items in the conversation background area, the space where the virtual items have been displayed can be determined, and further the space where the virtual items have not been displayed can be determined; the placement position of the target virtual item can be determined from the area where the items have not been displayed.
[0110] In a specific embodiment, refer to Figure 1d , calculate the target display position of the target virtual item in the conversation background area. Specifically, it can be based on the display position information of the current virtual items in the conversation background area to determine the lowest point of the y-axis of the current area where items have not been displayed in the conversation background area; then obtain the spatial scale of the target virtual item (such as shape and size), and based on the spatial scale of the target virtual item and the width of the current area where items can be displayed in the x-axis direction corresponding to the vertical axis coordinate of the lowest point of the y-axis, calculate the position where the width of the current area where items can be displayed in the x-axis direction corresponding to the current lowest point of the y-axis is greater than or equal to the spatial scale of the target virtual item, and use this position as the target display position of the target virtual item in the conversation 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 unit lengths in the x-axis direction and 4 unit lengths in the y-axis direction. After sending out the target virtual item, the target virtual item can be randomly ejected from the virtual item distribution area into the conversation background area. After the target virtual item starts to eject, the position where the lowest point of the y-axis of the current area where items have not been displayed and the width of the current area where items can be displayed in the x-axis direction corresponding to this lowest point of the y-axis 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 "responding to the item distribution operation for the virtual item distribution area and displaying the animation effect of the target virtual item moving from the virtual item distribution area to the conversation background area on the message conversation page" may include:
[0113] When the number of virtual items distributed within the preset time period is less than the preset distribution number, respond to the item distribution operation for the virtual item distribution area and display the animation effect of the target virtual item moving from the virtual item distribution area to the conversation background area on the message conversation page.
[0114] Among them, the number of virtual items distributed within the preset time period is the number of virtual items that have been distributed within this preset time period. The preset time period and the preset distribution number can be set according to the actual situation. For example, it can be set that the number of virtual items distributed within one day cannot exceed 100, the preset time period is 1 day, and the preset distribution number is 100.
[0115] Optionally, in some embodiments, the remaining quantity of virtual items within a preset time period may also be displayed in the virtual item distribution area, that is, the quantity of virtual items that can still be distributed.
[0116] Optionally, the interactive method based on virtual items may further include:
[0117] When the quantity of virtual items distributed within a preset time period is not less than a preset distribution quantity, based on the item distribution operation for the virtual item distribution area, a prompt message is displayed on the message session page, and the prompt message is used to prompt that the quantity of virtual items is insufficient.
[0118] Among them, the quantity of virtual items that can be distributed within a preset time period is limited. When the quantity of virtual items distributed within the preset time period reaches the preset distribution quantity, the members of the target session cannot distribute virtual items within this preset time period. A prompt message indicating that the quantity of virtual items is insufficient can be displayed when the user performs an item distribution operation. As Figure 1e shown, a prompt message "Already sent out today" can be displayed in the virtual item distribution area of the message session page to prompt the user that the quantity of virtual items is insufficient.
[0119] Optionally, in this embodiment, the virtual item distribution area includes at least one category of virtual items; the step "In response to an item distribution operation for the virtual item distribution area, display an animation effect of the target virtual item moving from the virtual item distribution area to the session background area in the message session page" may include:
[0120] In response to an item distribution operation for the target virtual item under the target category in the virtual item distribution area, display an animation effect of the target virtual item moving from the virtual item distribution area to the session background area in the message session page.
[0121] Among them, multiple categories of candidate virtual items may be displayed in the virtual item distribution area, and the spatial scales of different virtual items may be different. Based on the item distribution operation for the target virtual item under the target category in the virtual item distribution area, an animation 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 item within the session background area meets the reward trigger condition, a reward is distributed to the members in the target session.
[0123] Among them, the statistical information of virtual items can specifically be the statistical information such as the spatial scale, quantity, and value of each virtual item within the session background area. The spatial scale can include information such as shape size, area, and volume. In a specific embodiment, the values of different virtual items can be different. For example, the larger the spatial scale of a virtual item, the higher its value.
[0124] Among them, the reward triggering condition can be set according to the actual situation, 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 given by the members in the target session fill the session background area, a reward is issued to the members in the target session.
[0125] In some embodiments, when the statistical information of the current virtual item within the session background area meets the reward triggering condition, the reward can be issued only to the members who have participated in the distribution of virtual items within this session background area in the target session. In other embodiments, when the statistical information of the current virtual item within the session background area meets the reward triggering condition, the reward can be issued to all members in the target session.
[0126] Optionally, in this embodiment, the step of "when the statistical information of the current virtual item within the session background area meets the reward triggering condition, issuing a reward to the members in the target session" may include:
[0127] When the statistical value of the spatial scale of the current virtual item within the session background area meets the preset scale condition for reward triggering, a reward is issued to the 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 session background area, and different categories of virtual items correspond to different spatial scales. For example, there are virtual item 1, virtual item 2, virtual item 3... virtual item N, a total of N categories of virtual items in the session background area. The quantities of these N virtual items are p1, p2, p3... pn respectively, and the corresponding scale space sizes are k1, k2, k3... kn. Then the total spatial scale of all virtual items in the session background area is: K = k1 * p1 + k2 * p2 + k3 * p3 +... + kn * pn. If the preset scale for reward triggering is 100, then when K ≥ 100, a reward is issued to the members in the target session.
[0129] Optionally, in this embodiment, the step of "when the statistical information of the current virtual item within the session background area meets the reward triggering condition, issuing a reward to the members in the target session" may include:
[0130] When the total number of current virtual items in the session background area meets the preset quantity condition for triggering a reward, a reward is issued to the members in the target session.
[0131] Among them, the preset quantity condition can be set according to the actual situation.
[0132] In some embodiments, after the reward trigger condition is met, the virtual items accumulated in the session background area can be cleared, and a reward is issued to the members in the target session.
[0133] Optionally, in this embodiment, the step "When the statistical information of the current virtual items in the session background area meets the reward trigger condition, a reward is issued to the members in the target session" may include:
[0134] When the statistical information of the current virtual items in the session background area meets the reward trigger condition, a reward receiving control is displayed on the message session page corresponding to the members in the target session;
[0135] In response to the trigger operation on the reward receiving control, a reward is issued to the members in the target session.
[0136] Among them, the trigger operation on the reward receiving control can specifically be a click operation, etc. As Figure 1f shown, when the virtual items fill the session background area, the reward trigger condition is met, and a reward receiving control is displayed on the message session page.
[0137] Optionally, in this embodiment, the step "In response to the trigger operation on the reward receiving control, a reward is issued to the members in the target session" may include:
[0138] When the remaining quantity of the reward is greater than the preset quantity, in response to the trigger operation on the reward receiving control, a reward is issued to the members in the target session.
[0139] Among them, this preset quantity can be zero and can be specifically set according to the actual situation.
[0140] Among them, in some embodiments, the quantity of rewards in the reward pool is limited, and the reward receiving rule can be first come, first served. When all the rewards in the reward pool have been issued, based on the trigger operation on the reward receiving control, a prompt message can be displayed on the message session page, and this prompt message can be used to prompt the user that the quantity of rewards is insufficient. For example, a prompt message such as "Too late, the rewards are gone" can be displayed.
[0141] Optionally, in this embodiment, the message session page further includes a message content sending area; this interaction method based on virtual items may further include:
[0142] In response to a message sending operation on the message content sending area, send the message content to the members in the target session;
[0143] Display the message content on the message session page.
[0144] Among them, the interactive device based on virtual items in this embodiment can be used for message interaction, and specifically, the message content can be displayed in the session foreground area of the message session page. The message content sending area can be as Figure 1e shown; the message content sending area can specifically include a message editing area, a sending control, a voice acquisition control, an image acquisition control, etc.; the message sending operation can be a click operation on the sending control of the message content sending area.
[0145] Among them, the message content can include various forms, such as video, audio, image, text, etc.
[0146] Optionally, in this embodiment, the message session page further includes a session foreground area covering the session background area; the interactive method based on virtual items may further include:
[0147] When a session hiding operation on the message session page is detected, hide the session foreground area and switch to display the session background area;
[0148] In response to an operation on the virtual item in the session background area, display the target dynamic effect of the operation on the virtual item.
[0149] Among them, the session foreground area can be used for message interaction. After hiding the session foreground area, only the session background area is displayed. At this time, operations can be performed on the virtual items in the session background area. For example, the virtual items in the session background area can be toggled, as Figure 1g shown. Based on the toggling operation of the virtual item, the virtual item can move upward and then move downward based on the law of gravity, forming a stacking effect with other virtual items.
[0150] Among them, the operation on the virtual item in the session background area can also be a sliding operation, etc., and this embodiment does not limit this. In one embodiment, after hiding the session foreground area, the session background area can also be displayed. When a click operation is performed on the virtual item in the session background area, the detailed information of the virtual item, such as value, spatial scale, etc., can be displayed in the session background area.
[0151] Among them, the target dynamic effect of the virtual item display can correspond to the operation, and different operations correspond to different dynamic effects. For example, based on a sliding operation, a glowing dynamic effect of the virtual item can be displayed; based on a double-click operation, an ejection dynamic effect of the virtual item can be displayed, etc.
[0152] Specifically, referring to Figure 1h , for the session hiding operation on the message session page, it can specifically be an operation on the session hiding control in the message session page. The session hiding operation can be operations such as clicking and swiping, and this embodiment does not limit this.
[0153] Optionally, in this embodiment, the step "when detecting a session hiding operation on the message session page, hide the session foreground area and switch to display the session background area" may include:
[0154] When detecting a session hiding operation on the message session page, display a page transition effect of the message session page switching from the session foreground area to the session background area;
[0155] When the page transition effect is displayed completely, hide the session foreground area and switch to display the session background area.
[0156] Among them, as Figure 1h shown, what is displayed is the page transition effect of the message session page switching from the session foreground area to the session background area. Specifically, Figure 1h it corresponds to the transition page from the session foreground area to the session background area. This transition page may include a first picture area and a second picture area. The first picture area displays the picture corresponding to the session foreground area, and the second picture area displays the picture 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 application, the target session can be a chat group of a specific game theme in a game community application, and the virtual item can be an item related to this game theme, such as a game character doll. 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 of a target session under a specific game theme. This message session page includes a virtual item issuance area and a session background area, and this message session page can be used to display the message interaction between game players. When detecting an item issuance operation by a game player on the virtual item issuance area, an animation 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, where the target game virtual item is a game virtual item presented to the target members of the target session based on the item issuance operation of the game player. When the statistical information of the current game virtual item in the session background area meets the reward trigger condition, rewards - game props - can be issued to the members in the target session, which helps more game players participate in the process of presenting game virtual items and increases the user viscosity of this 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 of 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 an item distribution operation for the virtual item distribution area, the terminal displays an animation effect in the message session page, where the target virtual item moves from the virtual item distribution area to the session background area. The target virtual item is a virtual item distributed to the target member in the target session 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 an animation effect in the message session page where the target virtual item moves from the virtual item distribution area to the session background area" may include:
[0174] In response to an item distribution operation for the target virtual item in the target category in the virtual item distribution area, display an animation effect in the message session page where the target virtual item moves from the virtual item distribution area to the session background area.
[0175] Among them, multiple categories of candidate virtual items can be displayed in the virtual item distribution area. The spatial scales of different virtual items can be different. Based on the item distribution operation for the target virtual item in the target category in the virtual item distribution area, display an animation effect where the target virtual item moves from the virtual item distribution area to the session background area.
[0176] 204. When the statistical information of the current virtual item in the session background area meets the reward trigger condition, the terminal distributes rewards to the members in the target session.
[0177] Among them, the reward trigger condition can be set according to the actual situation, and this embodiment does not limit it. For example, the reward trigger condition can be that the spatial scale of the current virtual item reaches a preset scale. For example, when the virtual items sent by the members in the target session fill the session background area, rewards are distributed to the members in the target session.
[0178] Optionally, in this embodiment, the step of "when the statistical information of the current virtual item in the session background area meets the reward trigger condition, distributing rewards to the members in the target session" may include:
[0179] When the statistical information of the current virtual item in the session background area meets the reward trigger condition, display a reward collection control in the message session page corresponding to the members in the target session;
[0180] In response to the trigger operation on the reward collection control, distribute rewards to the members in the target session.
[0181] Optionally, in this embodiment, the step of "responding to the triggering operation on the reward collection control and distributing rewards to the members in the target session" may include:
[0182] When the remaining quantity of the reward is greater than the preset quantity, in response to the triggering operation on the reward collection control, distribute rewards to the members in the target session.
[0183] In one embodiment, the initial state of the message session page of the target session is as Figure 2c shown. Among them, the initial state refers to the state where no member in the target session distributes virtual items. When no virtual items are distributed, the session background area of the message session page is empty. As Figure 2d shown, 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 movement, falls into the session background area of the message session page, forming a stacking effect. When the session background area is filled with virtual items, a reward will be triggered. The effect of the session background area being filled with virtual items is as Figure 2e shown.
[0184] Specifically, as Figure 2f shown, the technical solution of this virtual item-based interaction method may include:
[0185] 2001. The user gives the target virtual item to the target member in the target session by performing an item distribution operation on the virtual item distribution area in the message session page. 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, specifically, it can perform three random ejections on the screen;
[0187] 2003. After the target virtual item is ejected, the currently displayable item area in the session background area can be calculated, and based on the currently displayable item area, the target display position of the target virtual item in the session background area can be determined;
[0188] 2004. The target virtual item 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 the accumulation of virtual items (i.e., virtual gifts) can refer to Figure 2g, members in the target session can give virtual gifts to a target member (such as the host) therein. 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), a room reward will be triggered, and the users participating in the gift-giving can obtain a gift package.
[0190] As can be seen from the above, in this embodiment, the terminal can display the initial message session page of the target session; when it is detected that the message content sent by the target member in the target session includes a preset keyword, the terminal displays a virtual item distribution area on the initial message session page to obtain a message session page, and the message session page includes a virtual item distribution area and a session background area; in response to an item distribution operation on the virtual item distribution area, an animation effect of the target virtual item moving from the virtual item distribution area to the session background area is displayed in the message session page, where 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 items in the session background area meets the reward trigger condition, the terminal gives a reward to the members in the target session. The present application can display the distribution animation effect of virtual items on the message session page, and when the reward trigger condition is met, the members in the target session can obtain a reward, enriching the interaction form of virtual items.
[0191] To better implement the above method, an embodiment of the present application further provides an interaction device based on virtual items, such as Figure 3a shown. The interaction device based on virtual items can include a first display unit 301, a second display unit 302, and a distribution unit 303, as follows:
[0192] (1) The first display unit 301;
[0193] The first display unit 301 is used to display the message session page of the target session, and the message session page includes a virtual item distribution area and a session 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 configured to display the initial message session page of the target session;
[0196] The third display subunit 3012 is configured to, when detecting that the message content sent by a target member in the target session includes a preset keyword, display a virtual item distribution area on the initial message session page to obtain a message session page.
[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 configured to display the message session page of the target session, and the session background area of the message session page includes a first background image for chatting;
[0199] The second switching subunit 3014 is configured to, when detecting an item distribution operation by a member in the target session, switch the first background image in the session background area to a second background image for virtual item interaction.
[0200] (2) The second display unit 302;
[0201] The second display unit 302 is configured to, in response to an item distribution operation for the virtual item distribution area, display an animation effect in which a target virtual item moves from the virtual item distribution area to the session background area in the message session page, where 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 configured to, in response to an item distribution operation for the virtual item distribution area, calculate a target display position of the target virtual item in the session background area based on the current display position information of the virtual item in the session background area;
[0204] The fifth display subunit 3022 is configured to display an animation effect in which the target virtual item moves from the virtual item distribution area to the target display position in the session background area according to a preset movement trajectory in the message session page.
[0205] Optionally, in some embodiments of the present application, the calculation subunit 3021 may specifically be configured to determine the location information of the area without displayed items in the session background area based on the display location information of the current virtual item in the session background area; and calculate the target display location of the target virtual item in the session background area based on the spatial scale of the target virtual item and the location information of the area without displayed items.
[0206] Optionally, in some embodiments of the present application, the second display unit 302 may specifically be configured to, when the number of virtual items issued within a preset time period is less than the preset issuance quantity, in response to an item issuance operation for the virtual item issuance area, display an animation effect of the target virtual item moving from the virtual item issuance area to the session background area on the message session page.
[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 configured to, when the number of virtual items issued within a preset time period is not less than the preset issuance quantity, based on an item issuance operation for the virtual item issuance area, display a prompt message on the message session page, and the prompt message is used to prompt that the quantity of virtual items is insufficient.
[0209] Optionally, in some embodiments of the present application, the virtual item issuance area includes at least one category of virtual items; the second display unit 302 may specifically be configured to, in response to an item issuance operation for the target virtual item under the target category in the virtual item issuance area, display an animation effect of the target virtual item moving from the virtual item issuance area to the session background area on the message session page.
[0210] (3) Issuance unit 303;
[0211] The issuance unit 303 is configured to issue a reward to the members in the target session when the statistical information of the current virtual items in the session background area meets the reward trigger condition.
[0212] Optionally, in some embodiments of the present application, the issuance unit 303 may specifically be configured to issue a reward to the members in the target session when the spatial scale statistics of the current virtual items in the session background area meet the preset scale condition for reward trigger.
[0213] Optionally, in some embodiments of the present application, the issuance unit 303 may specifically be configured to issue a reward to the members in the target session when the total quantity of the current virtual items in the session background area meets the preset quantity condition for reward trigger.
[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. Refer to Figure 3f , as follows:
[0215] The fourth display subunit 3031 is configured to display a reward collection control on the message session page corresponding to the members in the target session when the statistical information of the current virtual item in the session background area meets the reward trigger condition;
[0216] The issuing subunit 3032 is configured to issue a reward to the members in the target session in response to a trigger operation on the reward collection control.
[0217] Optionally, in some embodiments of the present application, the issuing subunit 3032 may specifically be configured to issue a reward to the members in the target session in response to a trigger 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 session page further includes a session foreground area covering the session background area, and the virtual item-based interaction device further includes a switching unit 304 and a third display unit 305. Refer to 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 on the message session page is detected;
[0220] The third display unit 305 displays a target special effect of the operation on the virtual item in response to an operation on the virtual item in the session background area.
[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. Refer to Figure 3h , as follows:
[0222] The first display subunit 3041 is configured to display a page transition special effect of the message session page switching from the session foreground area to the session background area when a session hiding operation on the message session page is detected;
[0223] The first switching subunit 3042 is configured to hide the session foreground area and switch to display the session background area when the page transition special effect is displayed completely.
[0224] Optionally, in some embodiments of the present application, the message session page further includes a message content sending area, and the virtual item-based interaction device may further include a message sending unit 306. Refer to Figure 3i , as follows:
[0225] The message sending unit 306 is configured to send a message content to the members in the target session in response to a 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 first display unit 301 can display the message session page of the target session, and the message session page includes a virtual item distribution area and a session background area; the second display unit 302 responds to an item distribution operation on the virtual item distribution area, and displays an animation effect of the target virtual item moving from the virtual item distribution area to the session background area in the message session page, where 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 trigger condition, the reward is distributed to the members in the target session through the distribution unit 303. The present application can display the distribution animation effect of the virtual item in the message session page, and when the reward trigger condition is met, the members in the target session can obtain the reward, enriching the interaction form of the virtual item.
[0227] The embodiment of the present application further provides an electronic device, as Figure 4 shown, which shows a schematic structural diagram of the electronic device involved in the embodiment of the present application. The electronic device may be a terminal or a server, etc. Specifically:
[0228] The electronic device may include a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, an input unit 404, and other components. Those skilled in the art can understand that Figure 4 the structure of the electronic device shown in
[0229] The processor 401 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 402, and by invoking the data stored in the memory 402, it executes 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. Among them, the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor may not be integrated into the processor 401 either.
[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 mainly includes a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, image playback function, etc.); the data storage area can store data created according to the use of the electronic device. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. Correspondingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0231] The electronic device further includes a power supply 403 that powers each component. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 403 may also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0232] The electronic device may further include an input unit 404, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0233] Although not shown, if the electronic device is a terminal, it may further include a display unit, etc., which will not be elaborated 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 application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402 to implement various functions as follows:
[0234] Display a message session page of a target session, where the message session page includes a virtual item distribution area and a session background area; in response to an item distribution operation for the virtual item distribution area, display an animation effect in the message session page where a target virtual item moves from the virtual item distribution area to the session background area, where the target virtual item is a virtual item distributed to a 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 trigger condition, distribute a reward to the members in the target session.
[0235] For the specific implementation of each of the above operations, reference may be made to the previous embodiments and will not be elaborated here.
[0236] As can be seen from the above, this embodiment can display a message session page of a target session, where the message session page includes a virtual item distribution area and a session background area; in response to an item distribution operation for the virtual item distribution area, display an animation effect in the message session page where a target virtual item moves from the virtual item distribution area to the session background area, where the target virtual item is a virtual item distributed to a 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 trigger condition, distribute a reward to the members in the target session. This application can display the distribution animation effect of virtual items on the message session page, and when the reward trigger condition is met, the members in the target session can obtain rewards, enriching the interaction form of virtual items.
[0237] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions or by controlling related hardware through instructions. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0238] Therefore, an embodiment of this application provides a storage medium, which stores multiple instructions that can be loaded by a processor to execute the steps in any of the interaction methods based on virtual items provided by the embodiments of this application. For example, the instructions can execute the following steps:
[0239] Display a message session page of a target session, where the message session page includes a virtual item distribution area and a session background area; in response to an item distribution operation for the virtual item distribution area, display an animation effect in the message session page where a target virtual item moves from the virtual item distribution area to the session background area, where the target virtual item is a virtual item distributed to a 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 trigger condition, distribute a reward to the members in the target session.
[0240] For the specific implementation of each of the above operations, reference may be made to the foregoing embodiments and will not be elaborated herein.
[0241] Among them, the storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or 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 achievable by any one of the interactive methods based on virtual items provided in the embodiments of the present application can be achieved. For details, reference may be made to the foregoing embodiments and will not be elaborated herein.
[0243] According to one aspect of the present application, there is provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the 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 methods provided in the various optional implementation manners of the above-mentioned interactive aspect based on virtual items.
[0244] The above has introduced in detail 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 elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. An interactive method based on virtual items, characterized in that, it includes: Display a message session page of a virtual room, where the message session page includes a virtual item distribution control and a session background area, and the session background area is used to display virtual items; In response to an operation on the virtual item distribution control, display at least one category of candidate virtual items; Based on a selection operation for a target virtual item, display the target virtual item landing on the session background area in the message session page, forming a stacking effect with other virtual items in the session background area, where the target virtual item is a virtual item distributed to a target member in the virtual room based on the selection operation.
2. The method according to claim 1, characterized in that, the message session page further includes a session foreground area covering the session background area, and the method further includes: When a session hiding operation for the message session page is detected, hide the session foreground area and switch to display the session background area; In response to an operation on a virtual item in the session background area, display a target dynamic effect of the operation on the virtual item.
3. The method according to claim 2, characterized in that, the when a session hiding operation for the message session page is detected, hide the session foreground area and switch to display the session background area, includes: When a session hiding operation for the message session page is detected, display a page transition dynamic effect of the message session page switching from the session foreground area to the session background area; When the page transition dynamic effect is displayed and completed, hide the session foreground area and switch to display the session background area.
4. The method according to claim 1, characterized in that, the display of the message session page of the virtual room includes: Display an initial message session page of the virtual room; When it is detected that the message content sent by a target member in the virtual room includes a preset keyword, display a virtual item distribution area on the initial message session page to obtain a message session page.
5. The method according to claim 1, characterized in that, after the based on a selection operation for a target virtual item, display the target virtual item landing on the session background area in the message session page, forming a stacking effect with other virtual items in the session background area, further includes: When the statistical information of the current virtual items in the session background area meets the reward trigger condition, distribute rewards to the members in the virtual room.
6. The method according to claim 5, characterized in that, the when the statistical information of the current virtual items in the session background area meets the reward trigger condition, distribute rewards to the members in the virtual room, includes: When the spatial scale statistics of the current virtual items in the session background area meet the preset scale condition for reward trigger, distribute rewards to the members in the virtual room.
7. The method according to claim 6, characterized in that, The statistical value of the spatial scale of the current virtual item within the session background area is obtained by multiplying the quantity of each type of virtual item within the session background area by the corresponding spatial scale of each type of virtual item, and adding the multiplication results corresponding to each type of virtual item.
8. The method according to claim 5, wherein, when the statistical information of the current virtual item within the session background area meets the reward trigger condition, rewarding the members in the virtual room includes: when the total quantity of the current virtual item within the session background area meets the preset quantity condition for reward triggering, rewarding the members in the virtual room.
9. The method according to claim 5, wherein, when the statistical information of the current virtual item within the session background area meets the reward trigger condition, rewarding the members in the virtual room includes: when the statistical information of the current virtual item within the session background area meets the reward trigger condition, displaying a reward collection control on the message session page corresponding to the members in the virtual room; responding to the trigger operation on the reward collection control, and rewarding the members in the virtual room.
10. The method according to claim 9, wherein, responding to the trigger operation on the reward collection control, and rewarding the members in the virtual room includes: when the remaining quantity of the reward is greater than the preset quantity, responding to the trigger operation on the reward collection control, and rewarding the members in the virtual room.
11. The method according to claim 5, wherein, when the statistical information of the current virtual item within the session background area meets the reward trigger condition, rewarding the members in the virtual room includes: when the total value of the current virtual item within the session background area meets the reward trigger condition, rewarding the members in the virtual room.
12. The method according to claim 11, wherein, the value of the virtual item is determined based on the spatial scale of the virtual item.
13. The method according to claim 1, wherein, based on the selection operation for the target virtual item, displaying the target virtual item landing on the session background area and forming a stacking effect with other virtual items in the session background area on the message session page includes: based on the selection operation for the target virtual item, calculating the target display position of the target virtual item in the session background area based on the display position information of the current virtual items within the session background area; displaying on the message session page the target virtual item moving to the target display position in the session background area according to a preset movement trajectory and forming a stacking effect with other virtual items in the session background area.
14. The method according to claim 13, wherein, calculating the target display position of the target virtual item in the session background area based on the display position information of the current virtual items within the session background area includes: Determine the location information of the area without displayed items in the session background area based on the display location information of the current virtual item within the session background area; Calculate the target display location of the target virtual item in the session background area based on the spatial scale of the target virtual item and the location information of the area without displayed items.
15. The method according to claim 1, wherein, the message session page further includes a message content sending area, and the method further includes: responding to a message sending operation on the message content sending area, sending message content to the members in the virtual room; displaying the message content in the message session page.
16. The method according to claim 1, wherein, the displaying the target virtual item landing on the session background area in the message session page and forming a stacking effect with other virtual items in the session background area based on a selection operation for the target virtual item includes: when the number of virtual items issued within a preset time period is less than a preset issue number, based on a selection operation for the target virtual item, displaying the target virtual item landing on the session background area in the message session page and forming a stacking effect with other virtual items in the session background area.
17. The method according to claim 16, wherein, the method further includes: when the number of virtual items issued within a preset time period is not less than the preset issue number, based on a selection operation for the target virtual item, displaying a prompt message on the message session page, where the prompt message is used to prompt that the number of virtual items is insufficient.
18. The method according to claim 1, wherein, the displaying the message session page of the virtual room includes: displaying the message session page of the virtual room, where the session background area of the message session page includes a first background image for chatting; when detecting an item issuing operation of a member in the virtual room, switching the first background image in the session background area to a second background image for virtual item interaction.
19. An interactive device based on virtual items, wherein, it includes: a first display unit for displaying the message session page of the virtual room, where the message session page includes a virtual item issuing control and a session background area for displaying virtual items; a second display unit for, in response to an operation on the virtual item issuing control, displaying at least one category of candidate virtual items; and based on a selection operation for the target virtual item, displaying the target virtual item landing on the session background area in the message session page and forming a stacking effect with other virtual items in the session background area, where the target virtual item is a virtual item issued to a target member in the virtual room based on the selection operation.
20. An electronic device, wherein, including a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform the operations in the virtual item-based interaction method according to any one of claims 1 to 18.
21. A storage medium, characterized in that the storage medium stores a plurality of instructions, and the instructions are adapted to be loaded by a processor to perform the steps in the virtual item-based interaction method according to any one of claims 1 to 18.