A data processing method and device, computer equipment and readable storage medium
By moving virtual objects and resource objects associated with interactive messages in the interactive interface and triggering interaction when they overlap, the problem of monotonous virtual object display methods is solved, rich personalized display effects are achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202210081766.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-24
- Publication Date
- 2026-11-06
- Estimated Expiration
- 2042-01-24
AI Technical Summary
In existing message interaction processes, the display method of virtual objects is too simplistic and cannot differentiate the display according to different interaction messages.
When the first interactive message is displayed in the interactive interface, the associated virtual objects and resource objects are moved and the interactive action is triggered when they overlap, and then the matching resource sub-objects are displayed to achieve a personalized display effect.
By using personalized virtual object display methods, the display effect of interactive messages is enriched, the fun and emotional expression of the interaction are enhanced, and the user experience is improved.
Smart Images

Figure CN116521038B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a data processing method, apparatus, computer equipment, and readable storage medium. Background Technology
[0002] In existing message interaction processes, when an interaction message is detected as triggering the generation of a virtual object, the virtual object associated with the interaction message (e.g., interaction message X) (e.g., virtual object D) is displayed in the interaction interface as an emoticon rain. For example, when interaction message X is "Happy Birthday", a "cake"-shaped virtual object D can be dynamically displayed in the interaction interface.
[0003] However, when using the current emoji rain method to dynamically display virtual objects, the same display animation is always used to display the virtual object corresponding to the interaction message for different objects without any difference, resulting in an overly monotonous display method for virtual objects. Summary of the Invention
[0004] This application provides a data processing method, apparatus, computer device, and readable storage medium, which can enrich the display effects of virtual objects associated with interactive messages.
[0005] One embodiment of this application provides a data processing method, including:
[0006] When the first interactive message is displayed in the interactive interface, the first virtual object is displayed in the first interactive area where the first interactive message is located, and the resource object is displayed at the target location of the interactive interface; the first interactive message is sent by the first object; both the first virtual object and the resource object are associated with the first interactive message; the resource object and the first virtual object have interactive functions.
[0007] In the interactive interface, the first virtual object is displayed starting from the position of the first interactive area, and the resource object is displayed starting from the target position.
[0008] One embodiment of this application provides a data processing apparatus, including:
[0009] The first display module is used to display a first virtual object in the first interactive area where the first interactive message is located, and to display a resource object at the target location of the interactive interface when the first interactive message is displayed in the interactive interface; the first interactive message is sent by the first object; both the first virtual object and the resource object are associated with the first interactive message; the resource object and the first virtual object have interactive functions.
[0010] The first moving module is used to move and display a first virtual object starting from the position of the first interactive area in the interactive interface, and to move and display a resource object starting from the target position.
[0011] The device also includes:
[0012] The first overlap module is used to trigger the first virtual object to perform an interactive action on the resource object when the display positions of the moving first virtual object and the moving resource object overlap during the joint movement of the first virtual object and the resource object; the resource object will shift its position in the interactive interface based on the interactive action.
[0013] The first offset module is used to display a first resource sub-object that matches the first interaction message at the display position of the resource object after the position offset; the first resource sub-object has the function of moving in the interactive interface;
[0014] The first offset module is used to continue moving and displaying resource objects that have been offset in position within the interactive interface.
[0015] Specifically, the device is also used to display a first resource sub-object matching the first interactive message at the location where the resource object disappears when the resource object after the position shift exceeds the display range of the interactive interface.
[0016] The device is also specifically used to perform the step of displaying a first resource sub-object that matches the first interactive message at the display position of the resource object after the position shift when the resource object after the position shift is within the display range of the interactive interface.
[0017] The device also includes:
[0018] The second display module is used to display a second virtual object in the second interactive area where the second interactive message is located when the second interactive message is displayed in the interactive interface; the second interactive message is sent by the second object; the second virtual object is associated with the second interactive message; the second object is the object that interacts with the first object in the interactive interface;
[0019] The second movement module is used to move and display the second virtual object from the position of the second interactive area in the interactive interface; the interactive interface simultaneously displays the first virtual object, the second virtual object, and the resource object.
[0020] The device also includes:
[0021] The animation display module is used to display an overlapping interactive animation associated with the first and second virtual objects in the interactive interface when the display positions of the moving first virtual object and the moving second virtual object coincide during the process of the first and second virtual objects moving together.
[0022] The device also includes:
[0023] The second overlap module is used to trigger the second virtual object to perform an interactive action on the resource object when the display position of the moving second virtual object coincides with the display position of the moving resource object during the joint movement of the first virtual object, the second virtual object, and the resource object; the resource object will shift its position in the interactive interface based on the interactive action.
[0024] The second offset module is used to display a second resource sub-object that matches the second interaction message at the display position of the resource object after the position offset; the second resource sub-object has the function of moving in the interactive interface;
[0025] The second offset module is used to continue moving and displaying resource objects that have been offset in position within the interactive interface.
[0026] Specifically, the device is also used to respond to triggered operations on moving resource objects and display the resource acquisition area in the interactive interface;
[0027] The device is also specifically used to display resource description information and resource acquisition controls in the resource acquisition area;
[0028] The device is also specifically used to respond to a triggered operation on a resource claiming control to claim the virtual resource indicated by the resource description information.
[0029] Specifically, the device is also used to respond to a trigger operation on a first virtual object in motion, and to obtain the updated movement trajectory and updated movement speed indicated by the trigger operation.
[0030] The device is also specifically used to update the initial movement trajectory and initial movement speed of the first virtual object in the interactive interface according to the updated movement trajectory and updated movement speed.
[0031] The interactive interface includes a virtual keyboard area and a message display area; the message display area is the area of the interactive interface other than the virtual keyboard area.
[0032] The first moving module is specifically used to move and display the first virtual object from the position of the first interactive area, and to move the resource object from the target position.
[0033] The first moving module is specifically used to display the resource object in the message display area when the moving resource object is in the message display area;
[0034] The first moving module is specifically used to cover and display resource objects by using the virtual keyboard in the virtual keyboard area when the moving resource object is in the virtual keyboard area.
[0035] Specifically, the first display module is used to retrieve the first virtual object and effective time range indicated by the message key data from the resource library when the first interactive message is displayed in the interactive interface and the first interactive message contains message key data with virtual object triggering function; the resource library is periodically obtained by the application client to which the interactive interface belongs.
[0036] The first display module is specifically used to display the first virtual object in the first interactive area where the first interactive message is located when the current time is within the effective time range.
[0037] The first moving module includes:
[0038] The distance acquisition unit is used to acquire the object position distance between the display position of the first virtual object and the display position of the resource object;
[0039] The region generation unit is used to generate a virtual region in the interactive interface that is indicated by the distance of the object's location.
[0040] A movable display unit is used to move and display a first virtual object starting from the position of the first interactive area, based on the virtual area.
[0041] Specifically, the mobile display unit is used to determine the target movement trajectory and auxiliary movement trajectory corresponding to the first virtual object in the virtual area; the target movement trajectory is used to indicate that there are overlapping display positions between the display position of the moving first virtual object and the display position of the moving resource object; the auxiliary movement trajectory is different from the target movement trajectory; the starting point of both the target movement trajectory and the auxiliary movement trajectory is the position of the first interactive area in the interactive interface;
[0042] The mobile display unit is specifically used to select a movement trajectory based on the selection probabilities corresponding to the target movement trajectory and the auxiliary movement trajectory, respectively; the selected movement trajectory is either the target movement trajectory or the auxiliary movement trajectory.
[0043] The mobile display unit is specifically used to move and display the first virtual object from the position of the first interactive area according to the selected movement trajectory.
[0044] The mobile display unit is also specifically used to count the number of times a historical virtual object does not collide with a resource object in the first consecutive time period; the historical virtual object is associated with the historical interaction messages in the interactive interface.
[0045] The mobile display unit is also specifically used to adjust the selection probability corresponding to the target movement trajectory to the maximum selection probability when the first consecutive non-collision count is equal to the collision trigger threshold.
[0046] The mobile display unit is also specifically used to determine the target movement trajectory as the selected movement trajectory based on the maximum selection probability corresponding to the target movement trajectory and the selection probability corresponding to the auxiliary movement trajectory.
[0047] The mobile display unit is also specifically used to recount the first consecutive non-collision count when the display position of the first virtual object is higher than the display position of the resource object.
[0048] The first virtual object includes at least two jump actions during the movement display process. Each jump action is executed according to a different selected movement trajectory. The selected movement trajectory corresponding to each jump action is determined based on a different virtual area.
[0049] The mobile display unit is also specifically used to count the second consecutive number of consecutive non-collision jumps of the first virtual object against the resource object;
[0050] The mobile display unit is further specifically used to generate an updated virtual region based on the display positions of the moving first virtual object and the moving resource object when the second consecutive non-collision count equals the collision trigger threshold. The updated virtual region includes an updated target movement trajectory and an updated auxiliary movement trajectory. The updated target movement trajectory is used to indicate that there are overlapping display positions between the display positions of the moving first virtual object and the moving resource object. The updated auxiliary movement trajectory is different from the updated target movement trajectory. The updated target movement trajectory has the maximum selection probability, while the selection probability corresponding to the updated auxiliary movement trajectory is less than the maximum selection probability.
[0051] The mobile display unit is also specifically used to determine the target movement trajectory as the updated selection movement trajectory based on the maximum selection probability corresponding to the updated target movement trajectory and the selection probability corresponding to the updated auxiliary movement trajectory.
[0052] The mobile display unit is also specifically used to perform a jump action indicated by updating the selected movement trajectory on the first virtual object.
[0053] The second display module is specifically used to determine the trigger type indicated by the first and second interactive messages respectively when the second interactive message is displayed in the interactive interface.
[0054] The second display module is specifically used to display the second virtual object in the second interaction area where the second interaction message is located when both the trigger type indicated by the first interaction message and the trigger type indicated by the second interaction message are interaction types.
[0055] Specifically, the device is also used to add a virtual detection area to the first virtual object and a resource detection area to the resource object;
[0056] The device is also specifically used to generate the degree of overlap between the virtual detection region and the resource detection region based on the region intersection and region union between the virtual detection region and the resource detection region during the movement of the first virtual object and the resource object.
[0057] The device is also specifically used to determine that the display position of the moving first virtual object and the display position of the moving resource object coincide when the region overlap is greater than the overlap threshold.
[0058] One embodiment of this application provides a computer device, including: a processor and a memory;
[0059] The processor is connected to a memory, which stores a computer program. When the computer program is executed by the processor, it causes the computer device to perform the method provided in the embodiments of this application.
[0060] One aspect of this application provides a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor, so that a computer device having the processor performs the method provided in this application.
[0061] One embodiment of this application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method provided in this application embodiment.
[0062] This application embodiment allows for the display of a first virtual object in a first interactive area where the first interactive message is located, and a resource object at a target location on the interactive interface when the first interactive message is displayed in the interactive interface. Furthermore, the first virtual object is moved from its position in the first interactive area, and the resource object is moved from its position at the target location within the interactive interface. The first interactive message is sent by a first object, and both the first virtual object and the resource object are associated with the first interactive message. Therefore, when the first object sends a first interactive message in the interactive interface, this application embodiment can recognize that the first interactive message in the interactive interface can trigger the generation of virtual objects and resource objects, and then display the first virtual object and resource object associated with the first interactive message in the interactive interface. Here, the resource object and the virtual object have interactive functionality. Based on this, by moving the display of the first virtual object from its position in the first interactive area associated with the first object, virtual objects associated with interactive messages of different objects can be displayed at different locations. This allows for the display of virtual objects associated with interactive messages in the interactive interface with different animations, thereby achieving a personalized virtual object display method and enriching the display effect of virtual objects associated with interactive messages. Attached Figure Description
[0063] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0064] Figure 1 This is a schematic diagram of a network architecture provided in an embodiment of this application;
[0065] Figure 2a This is a schematic diagram of a data interaction scenario provided in an embodiment of this application;
[0066] Figure 2b This is a schematic diagram of a data interaction scenario provided in an embodiment of this application;
[0067] Figure 3 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0068] Figure 4 This is a schematic diagram of a scene for displaying a first virtual object provided in an embodiment of this application;
[0069] Figure 5 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0070] Figure 6 This is a schematic diagram of a scene for displaying resource objects provided in an embodiment of this application;
[0071] Figure 7a This is a schematic diagram of a scenario for a mobile resource object provided in an embodiment of this application;
[0072] Figure 7b This is a schematic diagram of a scenario for a mobile resource object provided in an embodiment of this application;
[0073] Figure 7c This is a schematic diagram of a scenario for a mobile resource object provided in an embodiment of this application;
[0074] Figure 8 This is a schematic diagram of a collision detection scenario provided in an embodiment of this application;
[0075] Figure 9a This is a schematic diagram of a scenario for displaying a first resource sub-object provided in an embodiment of this application;
[0076] Figure 9b This is a schematic diagram of a scenario for displaying a first resource sub-object provided in an embodiment of this application;
[0077] Figure 10 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0078] Figure 11 This is a schematic diagram of a scenario for determining a movement trajectory provided in an embodiment of this application;
[0079] Figure 12 This is a schematic diagram illustrating a scenario for displaying multiple interactive messages, provided in an embodiment of this application.
[0080] Figure 13 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0081] Figure 14 This is a schematic diagram of a scene for displaying a second virtual object provided in an embodiment of this application;
[0082] Figure 15 This is a schematic diagram of a scene displaying overlapping interactive animation provided in an embodiment of this application;
[0083] Figure 16 This is a flowchart illustrating a data processing method provided in an embodiment of this application;
[0084] Figure 17 This is a schematic diagram of a scenario for receiving virtual resources provided in an embodiment of this application;
[0085] Figure 18This is a schematic diagram of a scenario for performing an interactive action provided in an embodiment of this application;
[0086] Figure 19 This is a schematic diagram of a scenario for determining jump height provided in an embodiment of this application;
[0087] Figure 20 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;
[0088] Figure 21 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0089] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0090] For details, please see Figure 1 , Figure 1 This is a schematic diagram of a network architecture provided in an embodiment of this application. Figure 1 As shown, this network architecture may include a service server 2000 and a terminal device cluster. The terminal device cluster may specifically include one or more terminal devices; the number of terminal devices in the cluster is not limited here. Figure 1 As shown, the multiple terminal devices may specifically include terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n; terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n can be directly or indirectly connected to the business server 2000 via wired or wireless communication, so that each terminal device can interact with the business server 2000 through the network connection.
[0091] Each terminal device in the terminal device cluster can include: wearable devices, smartphones, tablets, laptops, desktop computers, smart home devices, in-vehicle terminals, and other intelligent terminals with data processing capabilities. It should be understood that, for example... Figure 1 Each terminal device in the terminal device cluster shown can be integrated with an application client. When the application client runs on each terminal device, it can interact with the aforementioned... Figure 1The business servers 2000 shown interact with each other. Specifically, the application clients can include in-vehicle clients, smart home clients, entertainment clients (e.g., game clients), multimedia clients (e.g., video clients), social clients, and information clients (e.g., news clients) with data processing capabilities. The in-vehicle terminal can be a smart terminal in a smart transportation scenario, and the application clients on this in-vehicle terminal can be the aforementioned in-vehicle clients.
[0092] Among them, such as Figure 1 The business server 2000 shown can be the server corresponding to the application client. The business server 2000 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0093] It is understood that in this application embodiment, the terminal device corresponding to the first object can be referred to as the first terminal, and the application client integrated and installed on the first terminal can be the first client. In this application embodiment, any terminal device in the aforementioned terminal device cluster can be selected as the first terminal; for example, in this application embodiment, terminal device 3000a in the aforementioned terminal device cluster can be selected as the first terminal. It should be understood that in this application embodiment, the first object can be a user who sends interactive messages through the first client, i.e., a message sender.
[0094] It is understood that in this application embodiment, the terminal device corresponding to the second object can be referred to as the second terminal, and the application client integrated and installed on the second terminal can be the second client. In this application embodiment, any terminal device in the aforementioned terminal device cluster can be selected as the second terminal; for example, in this application embodiment, terminal device 3000b in the aforementioned terminal device cluster can be used as the second terminal. It should be understood that the second object in this application embodiment can be a user who receives interactive messages through the second client, i.e., a message receiver.
[0095] It should be understood that the first object in this application embodiment can act as both the message sender and the message receiver, and the second object in this application embodiment can act as both the message receiver and the message sender. Specifically, when the first object acts as the message sender, the first terminal can send an interactive message to the second terminal through the service server 2000, so that the second object corresponding to the second terminal becomes the message receiver; when the second object acts as the message sender, the second terminal can send an interactive message to the first terminal through the service server 2000, so that the first object corresponding to the first terminal becomes the message receiver.
[0096] For ease of understanding, in this application embodiment, the interaction messages sent by the first object (e.g., object Y1) in the first client can be collectively referred to as first interaction messages, and the interaction messages received by object Y1 in the first client can be collectively referred to as second interaction messages. Correspondingly, in this application embodiment, the interaction messages received by the second object (object Y2) in the second client can be collectively referred to as first interaction messages, and the interaction messages sent by object Y2 in the second client can be collectively referred to as second interaction messages.
[0097] It should be understood that the embodiments of this application can be applied to business scenarios where interactive emoji rain is triggered in an interactive interface. The first and second interactive messages can be used to trigger interactive emoji rain in the application client. Interactive emoji rain can indicate that a single user triggers emoji rain through interactive messages, and triggering between multiple users can produce a linkage effect, thereby realizing social interaction between emoji rain and enhancing fun. As an Easter egg in conversational chat, interactive emoji rain can bring users a sense of surprise in daily chat and create an atmosphere on some special days. In addition, the interactive form brings users closer in the conversation.
[0098] For better understanding, please refer to [link / reference]. Figure 2a and Figure 2b , Figure 2a and Figure 2b This is a schematic diagram illustrating a data interaction scenario provided in an embodiment of this application. For example... Figure 2a The server 20a shown can be the one described above. Figure 1 The corresponding business server 2000 in the embodiment, such as Figure 2a The terminal device 20b shown can be the one described above. Figure 1 Any terminal device in the terminal device cluster of the corresponding embodiment, such as Figure 2a and Figure 2b The terminal device 20d shown can be the above Figure 1 Any terminal device in the terminal device cluster of the corresponding embodiment. For ease of understanding, this application embodiment uses terminal device 20b as the first terminal and terminal device 20d as the second terminal as an example to illustrate... Figure 2a and Figure 2b The specific process of data interaction between terminal device 20b, terminal device 20d, and server 20a is shown.
[0099] In this context, the object corresponding to terminal device 20b can be object 20c, and object 20c can become a message sender and receiver through the first client in terminal device 20b; the object corresponding to terminal device 20d can be object 20e, and object 20e can become a message sender and receiver through the second client in terminal device 20d. The first and second clients can periodically retrieve the resource library associated with the interactive emoticon rain from server 20a.
[0100] like Figure 2a The interactive interfaces 21a, 21b, 21c, and 21d shown can be the interactive interfaces of the first client at different times. Object 20c can send interactive message 22a through the first client, so that the first client can obtain interactive interface 21a displaying interactive message 22a. When interactive message 22a is displayed in interactive interface 21a, the first client can retrieve the virtual object 22b associated with interactive message 22a from the resource library, display the retrieved virtual object 22b in the interactive area where interactive message 22a is located, and then move the virtual object 22b in interactive interface 21a from the position of the interactive area where interactive message 22a is located. The interactive area where interactive message 22a is located can be the message box of interactive message 22a in interactive interface 21a, and the display position of virtual object 22b can be display position 25a. The virtual object 22b can be... Figure 2a The application does not limit the style of the virtual object 22b shown as a "lion".
[0101] Simultaneously, when the virtual object 22b is displayed in the interactive interface 21a, the first client can retrieve the resource object 22c associated with the interactive message 22a from the resource library, display the retrieved resource object 22c at the target position in the interactive interface 21a, and then move the display of the resource object 22c from the target position in the interactive interface 21a. The target position can be the top of the message area in the interactive interface 21a, and the display position of the resource object 22c can be display position 25b. The resource object 22c can be... Figure 2a The "lucky bag" shown in this application does not limit the style of resource object 22c.
[0102] like Figure 2aAs shown, object 20c can receive interaction message 23a through the first client, thus allowing the first client to obtain an interactive interface 21b displaying interaction message 23a. When interaction message 23a is displayed in interactive interface 21b, the first client can retrieve the virtual object 23b associated with interaction message 23a from the resource library, display the retrieved virtual object 23b in the interactive area where interaction message 23a is located, and then move the virtual object 23b in interactive interface 21b from the position of the interactive area where interaction message 23a is located. The interactive area where interaction message 23a is located can be the message box of interaction message 23a in interactive interface 21b, and the display position of virtual object 23b can be display position 25c. The virtual object 23b can be... Figure 2a The style of the "lion" shown in this application is not limited.
[0103] like Figure 2a As shown, during the joint movement of virtual objects 22b, 23b, and 22c, the display positions of these objects will change. It is assumed that the display position of the moving virtual object 23b coincides with that of the moving resource object 22c. When these positions coincide, the first client can trigger virtual object 23b to perform an interactive action (e.g., a collision) on resource object 22c, causing resource object 22c to shift its position within the interactive interface 21c, thus switching the interactive interface 21c to the interactive interface 21d. Specifically, when the display positions of the moving virtual object 23b and resource object 22c coincide, the display position of resource object 22c can be display position 25f, the display position of virtual object 23b can be display position 25e, and the display position of virtual object 22b can be display position 25d.
[0104] Simultaneously, the first client can display a resource sub-object matching the interaction message 23a at display position 25f of resource object 22c. The number of resource sub-objects matching interaction message 23a can be at least one. For example, ... Figure 2a As shown, there can be 5 resource sub-objects that match the interaction message 23a. Specifically, the 5 resource sub-objects can include resource sub-object 24a, resource sub-object 24b, resource sub-object 24c, resource sub-object 24d, and resource sub-object 24e.
[0105] Optionally, when the display position of the moving virtual object 22b coincides with the display position of the moving resource object 22c, the first client can trigger the virtual object 22b to perform an interactive action (e.g., a collision action) on the resource object 22c, causing the resource object 22c to shift its position in the interactive interface 21c. Simultaneously, the first client can display a resource sub-object (not shown in the figure) matching the interactive message 22a at the display position 25f of the resource object 22c. The number of resource sub-objects matching the interactive message 22a can be at least one.
[0106] As can be understood, different "lions" will jump around in the interactive interface after bursting out from different message bubbles. When the trajectory of a "lion" meets the trajectory of a falling "lucky bag," the "lion" will lift the "lucky bag," and various materials (i.e., resource sub-objects) will fall out of the "lucky bag." When the display position of the moving resource object 22c coincides with the display positions of the virtual object 22b and the virtual object 23b at different times, the two "lions" can interact and take turns lifting the "lucky bag."
[0107] It should be understood that the resource sub-object matching interaction message 23a can be referred to as the first resource sub-object, and the resource sub-object matching interaction message 22a can be referred to as the second resource sub-object. This embodiment of the application uses the example where the number of both the first and second resource sub-objects is at least two. The first and second resource sub-objects can be the same or different; this application does not limit this.
[0108] like Figure 2b The interactive interfaces 26a, 26b, 26c, and 26d shown can be the interactive interfaces of the second client at different times. Object 20e can receive interactive message 22a through the second client, thus allowing the second client to obtain interactive interface 26a displaying interactive message 22a. When interactive message 22a is displayed in interactive interface 26a, the second client can display a virtual object 22b associated with interactive message 22a in the interactive area where interactive message 22a is located. Furthermore, the virtual object 22b is moved and displayed in interactive interface 26a starting from the position in the interactive area where interactive message 22a is located.
[0109] At the same time, when the virtual object 22b is displayed in the interactive interface 26a, the second client can display the resource object 22c associated with the interactive message 22a at the target position of the interactive interface 26a, and then move the display of the resource object 22c from the target position in the interactive interface 26a.
[0110] like Figure 2bAs shown, object 20e can send interaction message 23a through the second client, thus allowing the second client to obtain an interactive interface 26b displaying interaction message 23a. When interaction message 23a is displayed in interactive interface 26b, the second client can display a virtual object 23b associated with interaction message 23a in the interactive area where interaction message 23a is located, and then move the virtual object 23b in interactive interface 26b from the position of the interactive area where interaction message 23a is located.
[0111] like Figure 2b As shown, during the joint movement of virtual object 22b, virtual object 23b, and resource object 22c, the display positions of virtual object 22b, virtual object 23b, and resource object 22c will change. Here, it is assumed that the display position of the moving virtual object 23b and the display position of the moving resource object 22c will overlap. When the display positions of the moving virtual object 23b and the moving resource object 22c overlap, the second client can trigger virtual object 23b to perform an interactive action (e.g., a collision action) on resource object 22c, so that resource object 22c will shift its position in interactive interface 26c, and interactive interface 26c will be switched to interactive interface 26d.
[0112] At the same time, the second client can display resource sub-objects 24a, 24b, 24c, 24d, and 24e that match the interaction message 23a at the display position of resource object 22c.
[0113] Optionally, when the display position of the moving virtual object 22b coincides with the display position of the moving resource object 22c, the second client can trigger the virtual object 22b to perform an interactive action (e.g., a collision action) on the resource object 22c, causing the resource object 22c to shift its position in the interactive interface 26c. Simultaneously, the second client can display a resource sub-object matching the interactive message 22a at the display position of the resource object 22c.
[0114] Therefore, the embodiments of this application can achieve an effective interactive technical solution. By displaying a first virtual object starting from the interactive area associated with a first object and a second virtual object starting from the interactive area associated with a second object, a personalized virtual object display method can be achieved. Furthermore, the first virtual object and resource object associated with the first object, as well as the second virtual object associated with the first object, can be simultaneously overlaid in the interactive interface, and the first virtual object, second virtual object, and resource object can interact within the interactive interface. Therefore, the embodiments of this application, through multi-message linkage and a cool visual display, can help objects better interact through expressions (i.e., virtual objects and resource objects), enrich the display effect of virtual objects associated with interactive messages, thereby enhancing emotional expression and interactive fun, and thus improving the user experience of the interaction.
[0115] Further, please see Figure 3 , Figure 3 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The method can be executed by a server, by an application client, or by both a server and an application client. The server can be one of the aforementioned... Figure 2a The server 20a in the corresponding embodiment can be the application client described above. Figure 2a The first client in the terminal device 20b of the corresponding embodiment. For ease of understanding, this application embodiment is described using the method executed by an application client as an example. The data processing method may include the following steps S101-S102:
[0116] Step S101: When the first interactive message is displayed in the interactive interface, the first virtual object is displayed in the first interactive area where the first interactive message is located;
[0117] Specifically, when a first interactive message is displayed in the interactive interface, and this message contains key data that triggers a virtual object, the application client can retrieve the first virtual object and its effective time range indicated by the key data from the resource library. The resource library (i.e., the local dictionary) is periodically retrieved by the application client to which the interactive interface belongs. The first interactive message is sent by the first object; the first virtual object is associated with the first interactive message. Further, when the current time is within the effective time range, the application client can display the first virtual object in the first interactive area where the first interactive message is located. Optionally, when the current time is not within the effective time range, the application client does not need to display the first virtual object in the first interactive area where the first interactive message is located.
[0118] It is understood that this application involves user interaction information, the name of the user's multi-person chat interface, and the friend relationships between users. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws and regulations and national standards of the country.
[0119] It is understandable that the first user can knowingly grant authorization. After authorization, the application client can match key data from the interactive messages. Furthermore, the application client or server only matches key data from the interactive messages; it does not perform data analysis or store the messages. The application client can also pre-show the first user the key data used to trigger the interactive emoji rain, so that the first user can send an interactive message containing this key data in the interface when they need to use the emoji rain feature.
[0120] Optionally, when the application client fails to obtain the effective time range indicated by the message key data in the resource library, the application client can determine that the message key data has not been configured with an effective time range, and determine that the message key data can remain effective indefinitely.
[0121] Understandably, the application client can compare the current time with the effective time range to determine whether the current time falls within the effective time range. For example, if the effective time range is January 1st to January 7th, and the current time is 12:00 on January 5th, the application client can determine that the current time is within the effective time range; if the current time is 12:00 on January 8th, the application client can determine that the current time is not within the effective time range.
[0122] It is understandable that the first interaction message can be a text message, image message, video message, audio message, or emoticon message; these will not be listed here. For example, when the first interaction message is a text message, the key data can be keywords extracted from the text message. Similarly, when the first interaction message is an image message, the key data can be keywords extracted from the image message. Likewise, when the first interaction message is a video message, the key data can be keywords identified from the video message. Similarly, when the first interaction message is an audio message, the key data can be keywords identified from the audio message. And, when the first interaction message is an emoticon message, the key data can be one or more emoticon data within the first interaction message.
[0123] It should be understood that different virtual objects can be obtained based on the effective time range indicated by the key data of the message, thereby displaying different effects in the interactive interface and increasing the fun of interacting with the interface. For example, at time T1, the first virtual object indicated by the key data of the message can be virtual object D1; at time T2, the first virtual object indicated by the key data of the message can be virtual object D2.
[0124] It is understood that when the first interaction message contains a message key data with virtual object triggering function, the application client can display the first virtual object indicated by the message key data in the interactive interface. One message key data can correspond to one or more virtual objects, and multiple message key data can also correspond to one virtual object. Optionally, when the first interaction message contains at least two message key data with virtual object triggering function, the application client can display the first virtual object indicated by each of the at least two message key data in the interactive interface, or it can display the first virtual object indicated by any one of the at least two message key data. For ease of understanding, this application embodiment uses one message key data contained in the first interaction message as an example for explanation.
[0125] Understandably, the application client can periodically retrieve the resource library from the server. This way, the application client doesn't need to update it itself; the resource library automatically overwrites the objects. For example, when the first object starts the application client, it can retrieve an updated resource library from the server to update the resource library in its local memory. The resource library can be pre-configured with key message data, design resources, effective time ranges, and resource trajectories. The key message data can be keywords or emoji data, the design resources can be the first virtual resource, and the resource trajectories can indicate the movement trajectory of the design resources within the interactive interface.
[0126] Step S102: In the interactive interface, the first virtual object is moved and displayed starting from the position of the first interactive area.
[0127] The application client can obtain the resource trajectory indicated by the first virtual object from the resource library, and then move and display the first virtual object according to the resource trajectory.
[0128] For easier understanding, please refer to Figure 4 , Figure 4 This is a schematic diagram of a scene for displaying a first virtual object, provided in an embodiment of this application. Figure 4The interactive interfaces 40a and 40b shown can be the interactive interfaces of the application client at different times. It should be understood that the interactive interface in the application client can be a single-person chat interface or a multi-person chat interface. This application does not limit it. For ease of understanding, this application embodiment takes the interactive interface as a multi-person chat interface as an example for explanation. The name of the multi-person chat interface can be "A Loving Family".
[0129] like Figure 4 As shown, the interactive interface 40a can include multiple interactive messages, and the first object can send the first interactive message through the application client. Here, the first interactive message can be interactive message 41a, which can be "AA beverage," but this application does not limit it. It is understood that when interactive message 41a is displayed in the interactive interface 40a, the application client can obtain the first interactive area where interactive message 41a is located, which can be interactive area 41b, and then display the first virtual object associated with interactive message 41a in interactive area 41b, thus obtaining the interactive interface 40b. Here, the first virtual object can be virtual object 41c.
[0130] It should be understood that the virtual object 41c here can be a "lion" or a "tiger," and this application does not limit it. Among them, the interactive area 41b is the message bubble in the interactive interface 40b. Visually, the "lion" displayed in the interactive area 41b can be understood as the "lion" jumping out of the message bubble.
[0131] It is understandable that the first virtual object is not fully displayed in the first interactive area. The first virtual object can be partially displayed in the first interactive area. Visually, the first virtual object can jump out of the first interactive area and continue to move and be displayed in the interactive interface.
[0132] Therefore, this embodiment of the application can display a first virtual object in the first interactive area where the first interactive message is located when the first interactive message is displayed in the interactive interface. Then, the first virtual object is displayed by moving from its position in the first interactive area within the interactive interface. The first interactive message is sent by a first object, and the first virtual object is associated with the first interactive message. Thus, when the first object sends the first interactive message in the interactive interface, this embodiment of the application can recognize that the first interactive message in the interactive interface can trigger the generation of a virtual object, and then display the first virtual object associated with the first interactive message in the first interactive area where the first interactive message is located. Based on this, by moving the display of the first virtual object from the first interactive area associated with the first object, virtual objects associated with interactive messages of different objects can be displayed at different positions. This allows for the display of virtual objects associated with interactive messages in the interactive interface with different animations, thereby achieving a personalized virtual object display method and enriching the display effect of virtual objects associated with interactive messages.
[0133] Further, please see Figure 5 , Figure 5 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The method can be executed by a server, by an application client, or by both a server and an application client. The server can be one of the aforementioned... Figure 2a The server 20a in the corresponding embodiment can be the application client described above. Figure 2a The first client in the terminal device 20b of the corresponding embodiment. For ease of understanding, this application embodiment is described using the method executed by an application client as an example. The data processing method may include the following steps S201-S204:
[0134] Step S201: When the first interactive message is displayed in the interactive interface, the first virtual object is displayed in the first interactive area where the first interactive message is located;
[0135] The first interaction message is sent by the first object; the first virtual object is associated with the first interaction message.
[0136] The specific process by which the application client displays the first virtual object in the first interactive area can be found in the above. Figure 3 The description of step S101 in the corresponding embodiments will not be repeated here.
[0137] Step S202: When the first virtual object is displayed in the first interactive area, the resource object is displayed at the target location of the interactive interface;
[0138] The resource object is associated with the first interactive message.
[0139] It is understood that the target location and the first interactive area may be different or the same in the interactive interface. This application embodiment uses the example of the target location and the first interactive area being different in the interactive interface for illustration.
[0140] It is understood that when the first interactive message is displayed in the interactive interface, the application client can display the first virtual object and the resource object simultaneously in the interactive interface, or it can display the first virtual object first and then the resource object, or it can display the resource object first and then the first virtual object. For ease of understanding, this application embodiment uses the example of displaying the first virtual object first and then the resource object as an example. This application embodiment does not limit the display time interval between the first virtual object and the resource object.
[0141] For easier understanding, please refer to Figure 6 , Figure 6 This is a schematic diagram of a scene for displaying resource objects provided in an embodiment of this application. For example... Figure 6 The interactive interfaces 60a and 60b shown can be the interactive interfaces of the application client at different times. Interactive interface 60a can be the aforementioned Figure 4 The corresponding embodiment includes an interactive interface 40b. The interactive interface 60a may display an interactive message 61a and a virtual object 61b associated with the interactive message 61a.
[0142] like Figure 6 As shown, when virtual object 61b is displayed in interactive interface 60a, after a certain display time interval, the application client can determine the target position in interactive interface 60a, and then display the resource object 61c associated with interactive message 61a at the target position, switching interactive interface 60a to interactive interface 60b. Virtual object 61b can be displayed in interactive area 62a, and resource object 61c can be displayed at the target position 62b. For example, when the display time interval is 1 second, the application client can display virtual object 61b in interactive area 62a for 1 second, and then display resource object 61c at the target position 62b.
[0143] Step S203: In the interactive interface, the first virtual object is moved and displayed starting from the position of the first interactive area;
[0144] Specifically, the application client can obtain the object position distance between the display position of the first virtual object and the display position of the resource object. Furthermore, the application client can generate a virtual area indicated by the object position distance in the interactive interface. Further, the application client can move and display the first virtual object starting from the position of the first interactive area based on the virtual area.
[0145] It is understandable that the resource trajectory indicated by the first virtual object is determined by the display position of the first virtual object and the display position of the resource object. The specific process by which the application client begins to move and display the first virtual object based on this resource trajectory can be seen below. Figure 10 The description of steps S2031-S2035 in the corresponding embodiment.
[0146] Step S204: In the interactive interface, move the displayed resource object from the target location.
[0147] Specifically, the application client can obtain the default movement trajectory indicated by the resource object from the resource library. This embodiment does not limit the default movement trajectory or the movement speed of the resource object. Furthermore, the application client can move and display the resource object from the target location according to the default movement trajectory within the session interface. This default movement trajectory can also be referred to as the resource trajectory indicated by the resource object. When different input boxes in the interactive interface are popped up, the resource object has the same floating range; for example, the resource object has the same movement range when the system keyboard and the object bar are popped up, but with different display effects.
[0148] Understandably, the application client can simultaneously move and display the first virtual object and the resource object in the interactive interface, or it can move and display the first virtual object first, then the resource object, or vice versa. When the target location and the first interactive area are different in the interactive interface, interactive actions can be performed between the first virtual object and the resource object during the movement and display process. Optionally, when the target location and the first interactive area are the same in the interactive interface, the resource trajectory indicated by the first virtual object and the resource object are different, and interactive actions can still be performed between the first virtual object and the resource object during the movement and display process.
[0149] It should be understood that the specific process of the application client directly moving and displaying resource objects in the session interface can be found in [reference needed]. Figure 7a , Figure 7a This is a schematic diagram of a scenario for a mobile resource object provided in an embodiment of this application. The interactive interface 70a may include a resource object 71a. The default movement trajectory of the resource object 71a within the interactive interface 70a can be a resource trajectory 71b. The starting point of the resource trajectory 71b can be the target position of the interactive interface 70a, and the ending point of the resource trajectory 71b can be the updated position of the interactive interface 70a. This embodiment of the application does not limit the specific locations of the target position and the updated position.
[0150] like Figure 7a The interactive interface 70b shown can represent the resource object 71a moving from the starting point of the resource trajectory 71b to the ending point of the resource trajectory 71b. The interactive interface can switch from the interactive interface 70a to the interactive interface 70b. The resource object 71a can move from the target position of the interactive interface 70a to the updated position of the interactive interface 70b. At this time, the display position of the resource object 71a can be the display position 71c.
[0151] Optionally, the interactive interface may include a virtual object area (i.e., an object bar) and a message display area; the message display area is the area of the interactive interface other than the virtual object area. It should be understood that the application client can move resource objects from a target location. Furthermore, when a moving resource object is within the message display area, the application client can display the resource object in the message display area; when a moving resource object is within the virtual object area, the application client can display the resource object in the virtual object area.
[0152] It should be understood that the specific process of the application client moving and displaying resource objects in the virtual object area and message display area can be found in [reference needed]. Figure 7b , Figure 7b This is a schematic diagram of a scenario for a mobile resource object provided in an embodiment of this application. The interactive interface 72a may include a resource object 73a, and the default movement trajectory of the resource object 73a within the interactive interface 72a can be a resource trajectory 73b.
[0153] like Figure 7b As shown, the interactive interface 72a may include a virtual object area 73c and a message display area. The message display area can be any area of the interactive interface 72a other than the virtual object area 73c. It is understood that, as... Figure 7b The interactive interface 72a shown can represent the resource object 73a moving from the starting point of the resource trajectory 73b to the ending point of the resource trajectory 73b. During the process of the resource object 73a moving and being displayed, the interactive interface can switch from interactive interface 72a to interactive interface 72b.
[0154] like Figure 7b As shown in the interactive interface 72b, when the moving resource object 73a is in the message display area, the application client can display the moving resource object 73a in the message display area; when the moving resource object 73a is in the virtual object area 73c, the application client can display the moving resource object 73a in the virtual object area 73c. Furthermore, when the moving resource object 73a is simultaneously in both the virtual object area 73c and the message display area, the application client can display the moving resource object 73a in both areas simultaneously.
[0155] Optionally, the interactive interface includes a virtual keyboard area (i.e., the system keyboard) and a message display area; the message display area is the area of the interactive interface excluding the virtual keyboard area. It should be understood that the application client can move resource objects from a target location. Furthermore, when a moving resource object is within the message display area, the application client can display the resource object in the message display area; when a moving resource object is within the virtual keyboard area, the application client can overlay the resource object using the virtual keyboard within the virtual keyboard area.
[0156] It should be understood that the specific process of the application client moving displayed resource objects in the virtual keyboard area and message display area can be found in [reference needed]. Figure 7c , Figure 7c This is a schematic diagram of a scenario for a mobile resource object provided in an embodiment of this application. The interactive interface 74a may include a resource object 75a, and the default movement trajectory of the resource object 75a within the interactive interface 74a can be a resource trajectory 75b.
[0157] like Figure 7c As shown, the interactive interface 74a may include a virtual keyboard area 75c and a message display area. The message display area can be any area of the interactive interface 74a other than the virtual keyboard area 75c. It is understood that, as... Figure 7c The interactive interface 74a shown can represent the movement of resource object 75a from the starting point of resource trajectory 75b to the ending point of resource trajectory 75b in the message display area. During the movement and display of resource object 75a, the interactive interface can switch from interactive interface 74a to interactive interface 74b. The ending point of resource trajectory 75b in interactive interface 74a is different from the ending point of resource trajectory 75b in the message display area. After moving to the ending point of resource trajectory 75b in the message display area, resource object 75a will continue moving to the ending point of resource trajectory 75b in interactive interface 74a.
[0158] like Figure 7c As shown in the interactive interface 74b, when the moving resource object 75a is in the message display area, the application client can display the moving resource object 75a in the message display area; when the moving resource object 75a is in the virtual keyboard area 75c, the application client can cover the moving resource object 75a using the virtual keyboard in the virtual keyboard area 75c. Specifically, when the moving resource object 75a is simultaneously in the virtual keyboard area 75c and the message display area, the application client can display the portion of the moving resource object 73a in the message display area, and cover the portion of the moving resource object 73a in the virtual keyboard area 75c using the virtual keyboard in the virtual keyboard area 75c.
[0159] It can be understood that when resource object 75a is partially or completely hidden in interactive interface 74b, and resource object 75a has not moved to the end point of resource trajectory 75b in interactive interface 74a, when the first object performs a hiding operation on the virtual keyboard area 75c in interactive interface 74b, the application client can respond to the hiding operation performed by the first object and hide the virtual keyboard area 75c in interactive interface 74b. In this way, resource object 75a will be fully displayed again in interactive interface 74b.
[0160] It should be understood that during the joint movement of the first virtual object and the resource object, when the display position of the moving first virtual object coincides with the display position of the moving resource object, the application client can trigger the first virtual object to perform an interactive action against the resource object. This interactive action can be a collision action.
[0161] It should be understood that the application client can add a virtual detection region (i.e., a first virtual detection region) to the first virtual object and a resource detection region to the resource object. Further, during the movement of the first virtual object and the resource object, the application client can generate a region overlap degree (i.e., a first region overlap degree) between the virtual detection region and the resource detection region based on the region intersection and region union between the virtual detection region and the resource detection region. Further, when the region overlap degree is greater than the overlap degree threshold, the application client can determine that the display position of the moving first virtual object and the display position of the moving resource object coincide. However, this embodiment does not limit the specific value of the overlap degree threshold. Optionally, when the region overlap degree is not greater than the overlap degree threshold, the application client can determine that the display position of the moving first virtual object and the display position of the moving resource object do not coincide.
[0162] It is understandable that the application client can determine the degree of overlap between the virtual detection region and the resource detection region through the Intersection-over-Union (IoU). IoU is a concept used in object detection, which here can represent the ratio between the region intersection and the region union, that is, the result of the region intersection divided by the region union.
[0163] In this embodiment, the virtual detection region and resource detection region used for collision detection can be semi-circular in shape. In this case, the collision detection can be called semi-circular collision detection. The virtual detection region can represent the upper half of the first virtual object, and the resource detection region can represent the lower half of the resource object. Collision detection can be represented by adding boundaries (i.e., detection regions) to the objects requiring collision detection, and determining whether these boundaries meet collision detection conditions (e.g., determining that the boundaries meet collision detection conditions when the region overlap is greater than an overlap threshold) to determine the collision detection result. It should be understood that the virtual detection region and resource detection region can also be rectangular or triangular in shape; this application does not limit their shapes.
[0164] Optionally, the application client can also determine whether there is an intersection between the virtual detection area and the resource detection area during the movement of the first virtual object and the resource object. Further, when there is an intersection between the virtual detection area and the resource detection area, the application client can determine that the display position of the moving first virtual object coincides with the display position of the moving resource object. Optionally, when there is no intersection between the virtual detection area and the resource detection area, the application client can determine that the display position of the moving first virtual object does not coincide with the display position of the moving resource object.
[0165] For easier understanding, please refer to Figure 8 , Figure 8 This is a schematic diagram of a collision detection scenario provided in an embodiment of this application. Figure 8 The interactive interfaces 80a and 80b shown can be the interactive interfaces of the application client at different times. Interactive interface 80a can be the aforementioned Figure 6 The corresponding embodiment includes the interactive interface 60b.
[0166] like Figure 8 As shown, the interactive interface 80a can display virtual object 81a and resource object 81c. The application client can add a virtual detection area to virtual object 81a and a resource detection area to resource object 81c. Here, the virtual detection area can be detection area 81b, and the resource detection area can be detection area 81d. It is understood that as virtual object 81a and resource object 81c move, the position of detection area 81b will move with virtual object 81a, and the position of detection area 81d will move with resource object 81c.
[0167] like Figure 8As shown, when switching from interactive interface 80a to interactive interface 80b, regions 82a and 82b in interactive interface 80b can be detection regions 81d, and regions 82b and 82c in interactive interface 80b can be detection regions 81b. Region 82b can be the intersection of detection regions 81b and 81d, and regions 82a, 82b, and 82c can be the union of detection regions 81b and 81d. Thus, the application client can generate the region overlap degree between detection regions 81b and 81d based on the region intersection and region union. Furthermore, when the region overlap degree is greater than the overlap degree threshold, it can determine that the display position of the moving virtual object 81a coincides with the display position of the moving resource object 81c.
[0168] Optionally, when switching from interactive interface 80a to interactive interface 80b, if there is an intersection between detection area 81b and detection area 81d, that is, area 82b can be generated based on detection area 81b and detection area 81d, the application client can determine that the display position of the moving virtual object 81a coincides with the display position of the moving resource object 81c.
[0169] It should be understood that resource objects can shift their position in the interactive interface based on interactive actions. The application client can determine the display position of the resource object after the position shift. The resource object after the position shift may or may not exceed the display range of the interactive interface.
[0170] Specifically, when a resource object, after being repositioned, exceeds the display area of the interactive interface, the application client can display a first resource sub-object matching the first interactive message at the location where the resource object disappeared. This first resource sub-object has the ability to move within the interactive interface. It is understood that when a resource object, after being repositioned, exceeds the display area of the interactive interface (i.e., the screen area), the repositioned resource object will not return to the interactive interface but will be automatically destroyed. This ensures that the display position of the first virtual object does not coincide with the display position of a resource object outside the screen area.
[0171] For easier understanding, please refer to Figure 9a , Figure 9a This is a schematic diagram of a scenario for displaying a first resource sub-object provided in an embodiment of this application. For example... Figure 9a The interactive interfaces 90a and 90b shown can be the interactive interfaces of the application client at different times. Interactive interface 90a can be the aforementioned Figure 8 The corresponding embodiment includes an interactive interface 80b. The interactive interface 90a may include a virtual object 91a and a resource object 91b, which may be associated with a first interactive message.
[0172] like Figure 9a As shown, resource object 91b can shift its position based on the interactive action of virtual object 91a. When resource object 91b, after shifting its position, exceeds the display range of the interactive interface, the interactive interface can switch from interactive interface 90a to interactive interface 90b. At this time, resource object 91b, after shifting its position, can exceed the display range from the disappearance position 91c in interactive interface 90b. This ensures that resource sub-objects triggered by resource objects that exceed the screen range will play the current animation and will not disappear instantly. Therefore, the application client can display the resource sub-object matching the first interactive message at the disappearance position 91c. Here, the first interactive message can be "AA beverage", and the resource sub-object can be the "AA beverage bottle" displayed starting from the disappearance position 91c.
[0173] Optionally, when the resource object, after its position shift, is within the display area of the interactive interface, the application client can display a first resource sub-object matching the first interactive message at the display position of the resource object after its position shift. This first resource sub-object has the ability to be moved within the interactive interface. Furthermore, the application client can continue to move and display the resource object after its position shift within the interactive interface.
[0174] For easier understanding, please refer to Figure 9b , Figure 9b This is a schematic diagram of a scenario for displaying a first resource sub-object provided in an embodiment of this application. For example... Figure 9b The interactive interfaces 90a and 90c shown can be the interactive interfaces of the application client at different times. Interactive interface 90a can be the aforementioned Figure 9a The corresponding embodiment includes an interactive interface 90a. The interactive interface 90a may include a virtual object 91a and a resource object 91b, which may be associated with a first interactive message.
[0175] like Figure 9b As shown, resource object 91b can shift its position based on the interactive action of virtual object 91a. When the shifted resource object 91b is within the display range of the interactive interface, the interactive interface can switch from interactive interface 90a to interactive interface 90c. Therefore, the application client can display a resource sub-object matching the first interactive message at the display position 91d of the shifted resource object 91b. Here, the first interactive message can be "AA beverage", and the resource sub-object can be "AA beverage bottle" displayed starting from display position 91d.
[0176] Understandably, even if a resource object, after being shifted in position, exceeds the display range of the interactive interface, or remains within the display range, the application client can still move and display the first resource sub-object and the first virtual object within the interactive interface. The resource trajectory of the first virtual object remains unchanged even after colliding with a resource object.
[0177] Therefore, in this embodiment, when a first interactive message sent by a first object is displayed in the interactive interface, a first virtual object is displayed in the first interactive area where the first interactive message is located, and a resource object is displayed at the target position in the interactive interface. Then, in the interactive interface, the first virtual object and the resource object are moved from their respective display positions. It is understood that during the joint movement of the first virtual object and the resource object, when the display positions of the first virtual object and the second virtual object coincide, the first virtual object can be triggered to perform an interactive action on the resource object, thereby displaying a first resource sub-object matching the first interactive message in the interactive interface. Based on this, by moving the first virtual object from the first interactive area associated with the first object, a personalized virtual object display method can be achieved. Furthermore, for the first virtual object and the resource object associated with the first interactive message, they can interact in the interactive interface, thereby enriching the display effect of the virtual object associated with the interactive message.
[0178] Further, please see Figure 10 , Figure 10 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The data processing method may include the following steps S2031-S2035, and steps S2031-S2035 are... Figure 5 A specific embodiment of step S203 in the corresponding embodiment.
[0179] Step S2031: Obtain the object position distance between the display position of the first virtual object and the display position of the resource object;
[0180] Among them, the object position distance can represent the height difference between the display position height of the first virtual object and the display position height of the resource object.
[0181] Step S2032: Generate a virtual region indicated by the distance of the object's position in the interactive interface;
[0182] The application client can perform a jump action on the first virtual object in the virtual area.
[0183] Step S2033: Determine the target movement trajectory and auxiliary movement trajectory corresponding to the first virtual object in the virtual area;
[0184] The target movement trajectory indicates an overlap between the display positions of the moving first virtual object and the moving resource object. The auxiliary movement trajectory differs from the target movement trajectory; it is a trajectory within the virtual area other than the target movement trajectory. Both the target and auxiliary movement trajectories originate from the location of the first interactive area within the interactive interface.
[0185] It is understandable that the target movement trajectory will inevitably cause the display positions of the first virtual object and the resource object to overlap, while the auxiliary movement trajectory may or may not cause the display positions of the first virtual object and the resource object to overlap.
[0186] The auxiliary movement trajectory within the virtual area is generated through blendtree interpolation using the animator (an animation tool). This ensures the controllability of the animation effect of the auxiliary movement trajectory, and the auxiliary movement trajectory controlled by the blendtree also has a probability of hitting the resource object. Understandably, the ratio value of the blendtree can be determined based on the height of the first interaction area. This ratio value determines the jump height of the first virtual object. The lower the height of the first interaction area, the larger the ratio value; the higher the height of the first interaction area, the smaller the ratio value. For the first virtual object, the higher the jump height required, the larger the ratio value; the lower the jump height required, the smaller the ratio value.
[0187] For easier understanding, please refer to Figure 11 , Figure 11 This is a schematic diagram of a scenario for determining a movement trajectory provided in an embodiment of this application. For example... Figure 11 The interactive interfaces 110a and 110b shown can be the interactive interfaces of the application client at different times. Interactive interface 110a can be the aforementioned Figure 6 The corresponding embodiment includes an interactive interface 60b. The interactive interface 110a may include a virtual object 111a and a resource object 111b.
[0188] like Figure 11As shown, the application client can determine the display position 112a of the virtual object 111a and the display position 112b of the resource object 111b in the interactive interface 110a, determine the height difference between the display positions 112a and 112b, and then generate a virtual region 111c in the interactive interface 110a based on the display position 112a and the determined height difference. The virtual region 111c may include multiple movement trajectories, all of which are estimated to start from the display position 112a. This embodiment does not limit the number of movement trajectories.
[0189] It is understood that the multiple movement trajectories in the virtual area 111c each possess lateral velocity, longitudinal velocity, lateral acceleration, and longitudinal acceleration, and these lateral velocity, longitudinal velocity, lateral acceleration, and longitudinal acceleration are adjustable. Based on these lateral velocity, longitudinal velocity, lateral acceleration, and longitudinal acceleration, one of the multiple movement trajectories can be uniquely determined. Furthermore, each movement trajectory has a different endpoint, which may or may not be located within the interactive interface 110b.
[0190] like Figure 11 The virtual area 111c shown may include a movement trajectory 111d, which can be the target movement trajectory determined by the application client in the virtual area 111c. When the virtual object 111a performs a jump action according to the movement trajectory 111d, the display position 112a and the display position 112b will necessarily coincide.
[0191] Step S2034: Select the target movement trajectory based on the selection probabilities corresponding to the target movement trajectory and the auxiliary movement trajectory respectively;
[0192] Among them, the selected movement trajectory is either the target movement trajectory or the auxiliary movement trajectory. The target movement trajectory and the auxiliary movement trajectory can have the same selection probability or different selection probabilities. The value of the selection probability is not fixed.
[0193] It should be understood that the application client can count the number of consecutive non-collisions of historical virtual objects against resource objects within a target time period. These historical virtual objects are associated with historical interaction messages in the interface; that is, they are generated by historical interaction messages sent by objects interacting within the interface. These interacting objects can include either a first object or a second object. Furthermore, when the number of consecutive non-collisions equals the collision trigger threshold, the application client can adjust the selection probability corresponding to the target movement trajectory to the maximum selection probability. Therefore, the application client can determine the target movement trajectory as the selected movement trajectory based on the maximum selection probability corresponding to the target movement trajectory and the selection probability corresponding to the auxiliary movement trajectory.
[0194] It can be understood that the first consecutive non-collision count can represent the number of times a historical virtual object has not collided with a resource object consecutively within the target time period. When the first consecutive non-collision count is less than the collision trigger threshold, the selection probabilities corresponding to the target movement trajectory and the auxiliary movement trajectory can be the same. When the first consecutive non-collision count reaches the collision trigger threshold (i.e., the first consecutive non-collision count equals the collision trigger threshold), the application client can adjust the selection probabilities corresponding to the target movement trajectory and the auxiliary movement trajectory so that the application client can select the target movement trajectory (i.e., select the movement trajectory) in the virtual area.
[0195] Therefore, by adjusting the selection probabilities of the target movement trajectory and the auxiliary movement trajectory, it can be ensured that in N jump actions targeting a historical virtual object, the application client will inevitably execute at least one interaction action between the historical virtual object and the resource object. Here, N can be a positive integer, and the collision trigger threshold can be a positive integer less than N. For example, the collision trigger threshold can be equal to (N-1). For instance, when N equals 5, (N-1) can equal 4. From the 1st to the 4th jump, the target movement trajectory and the auxiliary movement trajectory have the same selection probability. If the resource object is not targeted for an interaction action within the 1st to 4th jumps, the application client can update the selection probabilities of the target movement trajectory and the auxiliary movement trajectory.
[0196] Optionally, the first consecutive non-collision count can also represent the number of times a historical virtual object has not collided with a historical resource object within the target time period. Here, the historical resource object is associated with historical interaction messages in the interactive interface; that is, the historical resource object is generated by historical interaction messages. Therefore, the application client can count the first consecutive non-collision count of historical virtual objects against historical resource objects within the target time period. The historical virtual object can include the first virtual object, and the historical resource object can include resource objects.
[0197] It should be understood that when the display position of the first virtual object is higher than the display position of the resource object, the application client can recount the first consecutive non-collision count. Specifically, if the frequency of interactive messages in the interactive interface is too high, the first interactive area containing the first interactive message may be pushed up, causing the display position of the first virtual object to be higher than the display position of the resource object. The first virtual object cannot collide with a resource object whose display position is lower than the first interactive area. Thus, when the display position of the resource object is lower than the display position of the first virtual object, the guaranteed hit logic after N jumps fails. At this point, the first virtual object can randomly jump upwards until the display position of the resource object returns to a position higher than the subsequent interactive area, at which point N is reset and the count restarts.
[0198] Optionally, if the frequency of sending interactive messages in the interactive interface causes the first interactive message to no longer be displayed in the interactive interface, then the first interactive area where the first interactive message is located will no longer be displayed in the interactive interface, and the application client does not need to display the first virtual object in the interactive interface.
[0199] For easier understanding, please refer to Figure 12 , Figure 12 This is a schematic diagram illustrating a scenario for displaying multiple interactive messages, provided in an embodiment of this application. For example... Figure 12 The interactive interfaces 120a and 120b shown can be the interactive interfaces of the application client at different times.
[0200] like Figure 12 As shown, when the first object sends interaction message 121a through the application client, the application client can display interaction message 121a in the interaction interface 120a. When interaction message 121a is displayed in the interaction interface 120a, if the application client receives a large number of interaction messages, causing the position of the interaction area 121b where interaction message 121a is located in the interaction interface to change, the application client will display the virtual object 122a associated with interaction message 121a in the changed interaction area 121b (i.e., interaction area 121c). The position of resource object 122b in the interaction interface is as shown in the interaction interface 120b. The large number of interaction messages received by the application client can be interaction messages 123a, 123b, 123c, and 123d shown in the interaction interface 120b.
[0201] like Figure 12As shown in the interactive interface 120b, when the display position of the virtual object 122a is higher than the display position of the resource object 122b, the virtual object 122a will perform a jump action upward. In this way, the jump action will not perform the interactive action against the resource object 122b. Therefore, the application client can recount the first consecutive number of non-collisions.
[0202] Optionally, when the display position of the virtual object 122a is higher than the display position of the resource object 122b, the virtual object 122a may also perform a jump action downwards. In this way, the jump action may perform an interactive action against the resource object 122b. Therefore, the application client does not need to recount the first consecutive number of non-collisions.
[0203] Step S2035: Following the selected movement trajectory, move and display the first virtual object starting from the position in the first interactive area.
[0204] It should be understood that the first virtual object may include a jump action during the movement and display process, and the number of consecutive times that the first jump action does not collide with the historical resource object can be the first consecutive non-collision count. Optionally, the first virtual object may also include at least two jump actions during the movement and display process, each jump action being executed according to a different selected movement trajectory, and the selected movement trajectory corresponding to each jump action being determined based on a different virtual area.
[0205] It should be understood that when the first virtual object contains at least two jump actions, the specific process of the application client moving and displaying the first virtual object can be described as follows: The application client can count the second consecutive non-collision count of the first virtual object's consecutive non-collision jump actions against the resource object. Further, when the second consecutive non-collision count equals the collision trigger threshold, the application client can generate an updated virtual region based on the display position of the moving first virtual object and the display position of the moving resource object. The updated virtual region includes an updated target movement trajectory and an updated auxiliary movement trajectory; the updated target movement trajectory indicates that there are overlapping display positions between the display positions of the moving first virtual object and the moving resource object; the updated auxiliary movement trajectory is different from the updated target movement trajectory. The updated target movement trajectory has the maximum selection probability, and the selection probability corresponding to the updated auxiliary movement trajectory is less than the maximum selection probability. Further, the application client can determine the updated target movement trajectory as the updated selection movement trajectory based on the maximum selection probability corresponding to the updated target movement trajectory and the selection probability corresponding to the updated auxiliary movement trajectory. Further, the application client can execute the jump action indicated by the updated selection movement trajectory on the first virtual object.
[0206] It can be understood that the second consecutive non-collision count can represent the number of times the first virtual object has not collided with the resource object consecutively. When the statistically obtained second consecutive non-collision count reaches the collision trigger threshold (i.e., the second consecutive non-collision count is equal to the collision trigger threshold), the application client can generate an updated virtual area for the first virtual object in the interactive interface, and then adjust the selection probabilities corresponding to the updated target movement trajectory and the updated auxiliary movement trajectory, so that the application client can select the updated target movement trajectory in the updated virtual area (i.e., update the selected movement trajectory).
[0207] Optionally, the second consecutive non-collision count can also represent the number of times a historical virtual object has not collided with a resource object consecutively. Thus, when the second consecutive non-collision count corresponds to the last jump action performed by the first virtual object, the application client can adjust the target movement trajectory corresponding to the next virtual object (e.g., virtual object D) so that the jump action performed by virtual object D interacts with the resource object. Optionally, the second consecutive non-collision count can also represent the number of times a historical virtual object has not collided with a historical resource object consecutively.
[0208] The specific process of the application client generating and updating the virtual region can be found in the description of generating the virtual region above; the specific process of the application client generating and updating the target movement trajectory and the auxiliary movement trajectory can be found in the description of generating the target movement trajectory and the auxiliary movement trajectory above.
[0209] Therefore, this embodiment of the application can obtain the object position distance between the display position of the first virtual object and the display position of the resource object, generate a virtual area indicated by the object position distance in the interactive interface, and then move and display the first virtual object in the interactive interface according to the selected movement trajectory from the virtual area. It is understood that this embodiment of the application can randomly select a movement trajectory for the first virtual object in the interactive interface, and then move and display the first virtual object according to the selected movement trajectory, thereby improving the flexibility of moving and displaying the first virtual object in the interactive interface.
[0210] Further, please see Figure 13 , Figure 13 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The method can be executed by a server, by an application client, or by both a server and an application client. The server can be one of the aforementioned... Figure 2a The server 20a in the corresponding embodiment can be the application client described above. Figure 2aThe first client in the terminal device 20b of the corresponding embodiment. For ease of understanding, this application embodiment is described using the method executed by an application client as an example. The data processing method may include the following steps S301-S305:
[0211] Step S301: When the first interactive message is displayed in the interactive interface, the first virtual object is displayed in the first interactive area where the first interactive message is located;
[0212] The first interaction message is sent by the first object; the first virtual object is associated with the first interaction message.
[0213] The specific process by which the application client displays the first virtual object in the first interactive area can be found in the above. Figure 3 The description of step S101 in the corresponding embodiments will not be repeated here.
[0214] Step S302: In the interactive interface, the first virtual object is moved and displayed starting from the position of the first interactive area;
[0215] The specific process of the application client moving and displaying the first virtual object in the interactive interface can be found in the above. Figure 5 In the corresponding embodiment, steps S203 and Figure 10 The descriptions of steps S2031-S2035 in the corresponding embodiments will not be repeated here.
[0216] Step S303: When the second interactive message is displayed in the interactive interface, the second virtual object is displayed in the second interactive area where the second interactive message is located;
[0217] Specifically, when the second interactive message is displayed in the interactive interface, the application client can determine the trigger type indicated by the first and second interactive messages, respectively. The second interactive message is sent by a second object; the second virtual object is associated with the second interactive message; the second object is the object that interacts with the first object in the interactive interface; the first interactive message sent by the first object and the second interactive message sent by the second object can be interactive messages sent by the first object and the second object at different times. Furthermore, when both the trigger type indicated by the first and second interactive messages are interaction types, the application client can display the second virtual object (i.e., overlay an interactive effect) in the second interactive area where the second interactive message is located.
[0218] Optionally, the second interaction message can also be sent by the first object; that is, the first and second interaction messages can be interaction messages sent by the first object at different times. In this case, the application client can display the second virtual object associated with the second interaction message in the second interaction area where the second interaction message is located when both the trigger type indicated by the first and second interaction messages are interaction types. For ease of understanding, this application embodiment uses the example of the first interaction message being sent by the first object and the second interaction message being sent by the second object.
[0219] The trigger type can include interactive types and normal types. Optionally, when the trigger type indicated by the first interactive message is not an interactive type, the application client does not need to display the second virtual object in the second interactive area where the second interactive message is located (i.e., no interactive effect will be superimposed). In this case, the first interactive message or the second interactive message is a normal type.
[0220] The specific process by which the application client displays the second virtual object in the second interactive area can be found in the above. Figure 3 The description of the first virtual object displayed in the first interactive area in step S101 of the corresponding embodiment will not be repeated here.
[0221] Step S304: In the interactive interface, the second virtual object is moved and displayed starting from the position of the second interactive area;
[0222] The interactive interface simultaneously displays a first virtual object and a second virtual object, which can interact with each other. It should be understood that the specific process of the application client moving the second virtual object within the interactive interface is similar to the description of moving the first virtual object described above, and will not be repeated here.
[0223] It should be understood that the application client can respond to a trigger operation on the first virtual object in motion, and obtain the updated movement trajectory (i.e., the first updated movement trajectory) and the updated movement speed (i.e., the first updated movement speed) indicated by the trigger operation. Furthermore, the application client can update the initial movement trajectory and initial movement speed of the first virtual object in motion in the interactive interface according to the updated movement trajectory and the updated movement speed.
[0224] Similarly, the application client can respond to a trigger operation on a moving second virtual object and obtain the updated movement trajectory (i.e., the second updated movement trajectory) and updated movement speed (i.e., the second updated movement speed) indicated by the trigger operation. Furthermore, the application client can update the initial movement trajectory and initial movement speed of the moving second virtual object in the interactive interface according to the updated movement trajectory and updated movement speed.
[0225] For easier understanding, please refer to Figure 14 , Figure 14 This is a schematic diagram of a scene for displaying a second virtual object, provided in an embodiment of this application. For example... Figure 14 The interactive interfaces 140a and 140b shown can be the interactive interfaces of the application client at different times, such as Figure 14 The interactive interfaces 140a and 140c shown can be the interactive interfaces of the application client at different times. Specifically, when both the first interactive message (i.e., interactive message 142a) and the second interactive message (i.e., interactive message 142c) are sent by the first object, the interactive interface can switch from interactive interface 140a to interactive interface 140c; when the first interactive message (i.e., interactive message 142a) is sent by the first object and the second interactive message (i.e., interactive message 142b) is sent by the second object, the interactive interface can switch from interactive interface 140a to interactive interface 140b.
[0226] like Figure 14 As shown, the interactive interface 140a can display an interaction message 142a and a virtual object 141a associated with the interaction message 142a. It can be understood that when the first object sends an interaction message 142c, the application client can display the interaction message 142c and the virtual object 141c associated with the interaction message 142c in the interactive interface 140c. The display position of the virtual object 141a changes between the interactive interfaces 140a and 140c.
[0227] Understandably, when the second object sends interaction message 142b, the application client can display interaction message 142b and the virtual object 141b associated with interaction message 142b in the interaction interface 140b. The display position of the virtual object 141a changes between the interaction interfaces 140a and 140b.
[0228] Step S305: During the joint movement of the first virtual object and the second virtual object, when the display positions of the moving first virtual object and the moving second virtual object coincide, an overlapping interactive animation associated with the first virtual object and the second virtual object is displayed in the interactive interface.
[0229] It should be understood that the application client can add a first virtual detection region to a first virtual object and a second virtual detection region to a second virtual object. Furthermore, during the movement of the first and second virtual objects, the application client can generate a virtual region overlap degree between the first and second virtual detection regions based on the region intersection and region union. Further, when the virtual region overlap degree is greater than an overlap degree threshold, the application client can determine that the display positions of the moving first virtual object and the moving second virtual object coincide. Optionally, the application client can also determine that the display positions of the moving first virtual object and the moving second virtual object coincide when the first and second virtual detection regions intersect.
[0230] The specific process by which the application client determines whether the display positions of the first moving virtual object and the second moving virtual object overlap can be found in the above. Figure 5 The description of determining whether the display position of the moving first virtual object and the display position of the moving resource object overlap in the corresponding embodiment will not be repeated here.
[0231] Optionally, when the display positions of the moving first virtual object and the moving second virtual object coincide, the application client can overlay the second virtual object with the first virtual object or overlay the first virtual object with the second virtual object.
[0232] For easier understanding, please refer to Figure 15 , Figure 15 This is a schematic diagram of a scene displaying overlapping interactive animation provided in an embodiment of this application. For example... Figure 15 The interactive interfaces 150a and 150b shown can be the interactive interfaces of the application client at different times, such as Figure 15 The interactive interfaces 150a and 150c shown can be the interactive interfaces of the application client at different times, and the interactive interfaces 150b and 150c can be different overlapping interactive animations displayed by the application client.
[0233] like Figure 15 As shown, the interactive interface 150a may include virtual objects 151a and 151b. Virtual objects 151a and 151b move together within the interactive interface 150a. When the display positions of the moving virtual objects 151a and 151b coincide, the application client can switch between interactive interface 150a and interactive interface 150b or interactive interface 150c. Both virtual objects 151a and 151b can be lions.
[0234] Understandably, the application client can display overlapping interactive animation 152a in the interactive interface 150b. Overlapping interactive animation 152a can display a dizzying effect on the lion represented by virtual objects 151a and 151b, while providing a bright visual effect in the interactive interface.
[0235] Understandably, the application client can display overlapping interactive animation 152b in the interactive interface 150c. Overlapping interactive animation 152b can display a heart effect on the lions represented by virtual objects 151a and 151b. The heart effect can be generated from between the lions and continuously increases in size in the interactive interface 150c over time.
[0236] Therefore, by displaying the first virtual object starting from the first interactive area associated with the first object and the second virtual object starting from the second interactive area associated with the second object, a personalized virtual object display method can be achieved. Furthermore, the first virtual object associated with the first object and the second virtual object associated with the second object can be simultaneously overlaid in the interactive interface, and the first and second virtual objects can interact with each other within the interface, thereby enriching the display effect of virtual objects associated with interactive messages.
[0237] Further, please see Figure 16 , Figure 16 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The method can be executed by a server, by an application client, or by both a server and an application client. The server can be one of the aforementioned... Figure 2a The server 20a in the corresponding embodiment can be the application client described above. Figure 2a The first client in the terminal device 20b of the corresponding embodiment. For ease of understanding, this application embodiment is described using the method executed by an application client as an example. The data processing method may include the following steps S401-S409:
[0238] Step S401: When the first interactive message is displayed in the interactive interface, the first virtual object is displayed in the first interactive area where the first interactive message is located;
[0239] The first interaction message is sent by the first object; the first virtual object is associated with the first interaction message.
[0240] The specific process by which the application client displays the first virtual object in the first interactive area can be found in the above. Figure 3The description of step S101 in the corresponding embodiments will not be repeated here.
[0241] Step S402: When the first virtual object is displayed in the first interactive area, the resource object is displayed at the target location of the interactive interface;
[0242] The resource object is associated with the first interactive message; the resource object and the first virtual object have interactive functionality.
[0243] The specific process by which the application client displays resource objects in the interactive interface can be found above. Figure 5 The description of step S202 in the corresponding embodiments will not be repeated here.
[0244] Step S403: In the interactive interface, the first virtual object is moved and displayed starting from the position of the first interactive area;
[0245] The specific process of the application client moving and displaying the first virtual object in the interactive interface can be found in the above. Figure 5 In the corresponding embodiment, steps S203 and Figure 10 The descriptions of steps S2031-S2035 in the corresponding embodiments will not be repeated here.
[0246] Step S404: In the interactive interface, move the displayed resource object from the target location.
[0247] The specific process of the application client moving and displaying resource objects in the interactive interface can be found in the above. Figure 5 The description of step S204 in the corresponding embodiments will not be repeated here.
[0248] Step S405: When the second interactive message is displayed in the interactive interface, the second virtual object is displayed in the second interactive area where the second interactive message is located;
[0249] The second interaction message is sent by the second object; the second virtual object is associated with the second interaction message; the second object is the object that interacts with the first object in the interactive interface. The resource object and the second virtual object have interactive functionality; the specific process of the interaction between the second virtual object and the resource object can be found in the descriptions of steps S407-S409 below.
[0250] The specific process by which the application client displays the second virtual object in the second interactive area can be found in the above. Figure 13 The description of step S303 in the corresponding embodiment will not be repeated here.
[0251] It is understood that when the second virtual object is displayed in the second interactive area, the application client does not need to display the resource object at the target location of the interactive interface. Optionally, when the first virtual object is displayed in the first interactive area, the resource object displayed at the target location of the interactive interface can be the first resource object. When the second virtual object is displayed in the second interactive area, the application client can display the second resource object at the target location of the interactive interface. In this way, the display positions of multiple virtual objects in the interactive interface can coincide with the display positions of multiple resource objects, that is, multiple virtual objects and multiple resource objects can perform interactive actions. For ease of understanding, this application embodiment uses the example of a maximum of one resource object existing in the interactive interface at any given time for explanation.
[0252] Step S406: In the interactive interface, the second virtual object is moved and displayed starting from the position of the second interactive area;
[0253] The interactive interface simultaneously displays a first virtual object, a second virtual object, and a resource object.
[0254] Similarly, when a third interactive message is displayed in the interactive interface, the application client can display a third virtual object in the third interactive area where the third interactive message is located. Then, within the interactive interface, the third virtual object is moved and displayed starting from its position in the third interactive area. This third interactive message can be sent by the first object, the second object, or other objects interacting with it. The specific process of the application client displaying and moving the third virtual object in the interactive interface can be found in the description of displaying and moving the first virtual object in the interactive interface described above, and will not be repeated here.
[0255] It should be understood that during the movement of a resource object, the application client can respond to triggered operations on the moving resource object and display a resource acquisition area in the interactive interface. Furthermore, the application client can display resource description information and resource acquisition controls in the resource acquisition area. Further, the application client can respond to triggered operations on the resource acquisition controls to acquire the virtual resource indicated by the resource description information. Optionally, the application client can also display the resource acquisition area in the interactive interface when the display position of the resource object coincides with the display position of the first virtual object (or the second virtual object).
[0256] The resource acquisition area may also include a close control. This resource acquisition area can be a sub-interface independent of the interactive interface. The application client can respond to the trigger operation of the close control, closing the resource acquisition area in the interactive interface and canceling the display of resource objects in the interactive interface.
[0257] For easier understanding, please refer to Figure 17 , Figure 17This is a schematic diagram illustrating a scenario for retrieving virtual resources provided in an embodiment of this application. For example... Figure 17 The interactive interfaces 170a and 170b shown can be the interactive interfaces of the application client at different times. The interactive interface 170a can simultaneously display a first virtual object, a second virtual object, and a resource object. Here, the first virtual object can be virtual object 171b, the second virtual object can be virtual object 171c, and the resource object can be resource object 171a.
[0258] like Figure 17 As shown, when the first object 170c needs to claim the virtual resource indicated by resource object 171a (i.e., the first object can click "Lucky Bag" to claim a reward), a trigger operation can be performed on resource object 171a. In this way, the application client can respond to the trigger operation performed by the first object 170c on resource object 171a, displaying the resource claiming area 172a in the interactive interface 170a, thus obtaining the interactive interface 170b (i.e., jumping to the reward claiming page). The resource claiming area 172a can include resource description information 172b associated with the virtual resource and a resource claiming control 172c.
[0259] It is understandable that when the first object 170c needs to claim the virtual resource indicated by the resource description information 172b, it can execute a trigger operation on the resource claiming control 172c. In this way, the application client can respond to the trigger operation executed by the first object 170c on the resource claiming control 172c and claim the virtual resource indicated by the resource description information 172b. Here, the resource description information 172b can be "Congratulations on receiving 50 game coins," and the virtual resource can be "50 game coins."
[0260] Step S407: During the joint movement of the first virtual object, the second virtual object, and the resource object, when the display position of the moving second virtual object coincides with the display position of the moving resource object, the second virtual object is triggered to perform an interactive action on the resource object.
[0261] In this process, the resource object shifts position within the interactive interface based on the interactive action.
[0262] It should be understood that the application client can add a virtual detection region (i.e., a second virtual detection region) to the second virtual object and a resource detection region to the resource object. Furthermore, during the movement of the second virtual object and the resource object, the application client can generate a region overlap degree (i.e., a second region overlap degree) between the virtual detection region and the resource detection region based on the region intersection and region union. Further, when the region overlap degree is greater than an overlap degree threshold, the application client can determine that the display position of the moving second virtual object coincides with the display position of the moving resource object. Optionally, the application client can also determine that the display position of the moving second virtual object coincides with the display position of the moving resource object when the second virtual detection region and the resource detection region intersect.
[0263] The specific process by which the application client determines whether the display position of the moving second virtual object and the display position of the moving resource object overlap can be found in the above. Figure 5 The description of determining whether the display position of the moving first virtual object and the display position of the moving resource object overlap in the corresponding embodiment will not be repeated here.
[0264] Step S408: At the display position of the resource object after the position offset, display the second resource sub-object that matches the second interaction message;
[0265] The second resource sub-object has the ability to be moved within the interactive interface.
[0266] Similarly, during the joint movement of the first virtual object, the second virtual object, and the resource object, when the display position of the moving first virtual object coincides with the display position of the moving resource object, the application client can trigger the first virtual object to perform an interactive action on the resource object. The resource object then shifts its position within the interactive interface based on the interactive action. Furthermore, the application client can display a first resource sub-object matching the first interactive message at the resource object's shifted display position. This first resource sub-object has the ability to move within the interactive interface.
[0267] It is understood that when the key message data contained in the first and second interaction messages are the same, the first resource sub-object matching the first interaction message and the second resource sub-object matching the second interaction message are identical. For example, if the key message data contained in both the first and second interaction messages is "AA beverage", then both the first and second resource sub-objects are "AA beverage bottle". Or, for instance, if the key message data contained in the first interaction message is "AA beverage" and the key message data contained in the second interaction message is "BB beverage", then the first resource sub-object can be "AA beverage bottle" and the second resource sub-object can be "BB beverage bottle".
[0268] Optionally, during the movement of the second resource sub-object, the application client can respond to a trigger operation on the moving second resource sub-object and display a sub-resource retrieval area in the interactive interface. Further, the application client can display sub-resource description information and a sub-resource retrieval control in the sub-resource retrieval area. Further, the application client can respond to a trigger operation on the sub-resource retrieval control to retrieve the sub-virtual resource indicated by the sub-resource description information. It should be understood that the specific process of the application client responding to a trigger operation on the moving first resource sub-object can be found in the description of responding to a trigger operation on the moving second resource sub-object, and will not be repeated here.
[0269] Step S409: In the interactive interface, continue to move and display the resource object after its position has shifted.
[0270] Understandably, the application client can also move and display the second resource sub-object (or the first resource sub-object), continue to move and display the first virtual object, and continue to move and display the second virtual object within the interactive interface. The resource trajectory of the second virtual object (or the first virtual object) remains unchanged despite interactions with the resource object (e.g., collisions).
[0271] The specific process by which the application client displays the second resource sub-object, the first virtual object, the second virtual object, and the resource object in the interactive interface can be found in [link to relevant documentation]. Figure 18 , Figure 18 This is a schematic diagram of a scenario for performing an interactive action, provided in an embodiment of this application. For example... Figure 18 The interactive interfaces 180a, 180b, 180c, and 180d shown can be the interactive interfaces of the application client at different times. Interactive interface 180a can be the one described above. Figure 2aThe interactive interface 21d in the corresponding embodiment and the interactive interface 180a may include a first virtual object (i.e., virtual object 181b), a second virtual object (i.e., virtual object 181a), and a resource object (i.e., resource object 181c).
[0272] like Figure 18 As shown, the application client can trigger the virtual object 181a to perform an interactive action on the resource object 181c, causing the resource object 181c to shift its position within the interactive interface 180a. Simultaneously, the application client can display the resource sub-object 181d at the display position of the resource object 181c. Figure 18 The multiple (e.g., 5) "AA beverage bottles" shown can be collectively referred to as resource sub-object 181d.
[0273] like Figure 18 As shown, when switching from interactive interface 180a to interactive interface 180b, resource sub-object 181d will be moved and displayed in interactive interface 180b, and virtual object 181b, virtual object 181a and resource object 181c will also continue to be moved and displayed in interactive interface 180b.
[0274] It should be understood that the resource sub-object 181d will gradually fade as it is moved and displayed; that is, the resource sub-object 181d will gradually fade as it moves to a certain fixed position until it disappears. This fixed position can be the center position in the interactive interface. For example... Figure 18 As shown, when switching from interactive interface 180b to interactive interface 180c, the resource sub-object 181d will continue to move and be displayed in interactive interface 180c. The color of the moving resource sub-object 181d displayed in interactive interface 180c will fade until it disappears. Virtual objects 181b and 181a will disappear after moving to their respective destinations. Resource object 181c will continue to move and be displayed in interactive interface 180c.
[0275] It should be understood that resource object 181c will gradually fade as it moves to the update position until it disappears. The update position here can be the bottom of the interactive interface. Figure 18 As shown, when switching from interactive interface 180c to interactive interface 180d, the color of the moving resource object 181c displayed in interactive interface 180d fades until it disappears. Furthermore, resource object 181c can also display a shattering animation effect in interactive interface 180d.
[0276] It is understandable that, such as Figure 18The resource sub-object 181d shown is a second resource sub-object associated with the second interaction message corresponding to the second virtual object. If the application client triggers the virtual object 181b to perform an interaction action on the resource object 181c before / after the application client triggers the virtual object 181a to perform an interaction action on the resource object 181c, the application client can also simultaneously display the resource sub-object 181d and the first resource sub-object associated with the first interaction message corresponding to the virtual object 181b.
[0277] Optionally, when the display position of the resource object does not coincide with the display position of the first virtual object, or the display position of the resource object does not coincide with the display position of the second virtual object, the resource object will move to the end of the resource trajectory until it fades away at the end, until the next interaction message triggers the generation of the resource object again. For example, the resource object will keep falling down and fade away after reaching the bottom of the screen.
[0278] It should be understood that the movement of the first and second virtual objects in the interactive interface is based on the execution of a jump action according to the movement trajectory. Different jump actions correspond to different jump heights. For the specific process of the application client determining the jump height corresponding to the first or second virtual object, please refer to [link to relevant documentation]. Figure 19 , Figure 19 This is a schematic diagram illustrating a scenario for determining a jump height, provided in an embodiment of this application. For example... Figure 19 The interactive interface 190a shown may include multiple interactive messages and resource objects 190c. Specifically, the multiple interactive messages may include interactive messages 191a, 191b, and 191c. Here, we will illustrate this by taking an example where interactive messages 191a, 191b, and 191c all contain key message data with virtual object triggering functionality. The key message data here can be a "pentagram".
[0279] like Figure 19 As shown, the application client can determine the height difference between the interaction area where the interaction message 191a is located and the display position of the resource object 190c, and generate a virtual area 192a associated with the interaction message 191a based on the height difference; the application client can determine the height difference between the interaction area where the interaction message 191b is located and the display position of the resource object 190c, and generate a virtual area 192b associated with the interaction message 191b based on the height difference; the application client can determine the height difference between the interaction area where the interaction message 191c is located and the display position of the resource object 190c, and generate a virtual area 192c associated with the interaction message 191c based on the height difference.
[0280] Specifically, it can be understood that virtual region 192a may include the movement trajectory indicated by endpoint position 193a, and the movement trajectory indicated by endpoint position 193a can enable the virtual object associated with interaction message 191a to be associated with resource object 190c as much as possible; virtual region 192b may include the movement trajectory indicated by endpoint position 193b, and the movement trajectory indicated by endpoint position 193b can enable the virtual object associated with interaction message 191b to be associated with resource object 190c as much as possible; virtual region 192c may include the movement trajectory indicated by endpoint position 193c, and the movement trajectory indicated by endpoint position 193c can enable the virtual object associated with interaction message 191c to be associated with resource object 190c as much as possible.
[0281] It should be understood that virtual objects need to be associated with resource objects 190c as much as possible. Thus, the endpoint of the movement trajectory of the virtual object associated with interaction message 191a needs to be as close as possible to the endpoint position 193a, the endpoint of the movement trajectory of the virtual object associated with interaction message 191b needs to be as close as possible to the endpoint position 193b, and the endpoint of the movement trajectory of the virtual object associated with interaction message 191c needs to be as close as possible to the endpoint position 193c.
[0282] Therefore, as Figure 19 The endpoint position 194a shown can be the endpoint of the movement trajectory selected by the application client for the virtual object associated with the interaction message 191a in the virtual region 192a, such as... Figure 19 The endpoint location 194b shown can be the endpoint of the movement trajectory selected by the application client for the virtual object associated with the interaction message 191b in the virtual region 192b, such as... Figure 19 The endpoint position 194c shown can be the endpoint of the movement trajectory selected by the application client for the virtual object associated with the interaction message 191c in the virtual area 192c.
[0283] Therefore, in this embodiment, the first virtual object, the second virtual object, and the resource object can move together in the interactive interface. During this movement, either the first or second virtual object can perform an interactive action on the resource object, causing the resource object's position in the interactive interface to shift. At the resource object's new position, a first resource sub-object matching the first interactive message or a second resource sub-object matching the second interactive message is displayed. Based on this, by starting the display of the first virtual object from the first interactive area associated with the first object and starting the display of the second virtual object from the second interactive area associated with the second object, a personalized virtual object display method can be achieved, enriching the display effects of virtual objects associated with interactive messages (i.e., different objects trigger different emoji rain effects). Furthermore, for the first virtual object and resource object associated with the first object, and the second virtual object associated with the first object, the first virtual object, resource object and second virtual object can be displayed simultaneously on the interactive interface, and the first virtual object and second virtual object can interact with each other in the interactive interface, the first virtual object and resource object can interact with each other in the interactive interface, and the second virtual object and resource object can interact with each other in the interactive interface, thereby improving the flexibility of interaction in the interactive interface (i.e., the effects triggered by different objects can be linked).
[0284] Further, please see Figure 20 , Figure 20 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application. The data processing device 1 may include: a first display module 11 and a first moving module 12; further, the data processing device 1 may also include: a first overlapping module 13, a first offset module 14, a second display module 15, a second moving module 16, an animation display module 17, a second overlapping module 18, and a second offset module 19.
[0285] The first display module 11 is used to display a first virtual object in the first interactive area where the first interactive message is located and to display a resource object at the target location of the interactive interface when the first interactive message is displayed in the interactive interface; the first interactive message is sent by the first object; both the first virtual object and the resource object are associated with the first interactive message; the resource object and the first virtual object have interactive functions.
[0286] Specifically, the first display module 11 is used to retrieve the first virtual object and effective time range indicated by the message key data from the resource library when the first interactive message is displayed in the interactive interface and the first interactive message contains message key data with virtual object triggering function; the resource library is periodically obtained by the application client to which the interactive interface belongs.
[0287] The first display module 11 is specifically used to display the first virtual object in the first interactive area where the first interactive message is located when the current time is within the effective time range.
[0288] The first moving module 12 is used to move and display a first virtual object starting from the position of the first interactive area in the interactive interface, and to move and display a resource object starting from the target position.
[0289] The interactive interface includes a virtual keyboard area and a message display area; the message display area is the area of the interactive interface other than the virtual keyboard area.
[0290] The first moving module 12 is specifically used to move and display the first virtual object from the position of the first interactive area, and to move the resource object from the target position.
[0291] The first moving module 12 is specifically used to display the resource object in the message display area when the moving resource object is in the message display area;
[0292] The first moving module 12 is specifically used to cover and display the resource object by means of the virtual keyboard in the virtual keyboard area when the moving resource object is in the virtual keyboard area.
[0293] The first moving module 12 includes: a distance acquisition unit 121, a region generation unit 122, and a moving display unit 123;
[0294] Distance acquisition unit 121 is used to acquire the object position distance between the display position of the first virtual object and the display position of the resource object;
[0295] The region generation unit 122 is used to generate a virtual region indicated by the distance of the object's position in the interactive interface;
[0296] The movable display unit 123 is used to move and display the first virtual object starting from the position of the first interactive area according to the virtual area.
[0297] Specifically, the mobile display unit 123 is used to determine the target movement trajectory and auxiliary movement trajectory corresponding to the first virtual object in the virtual area; the target movement trajectory is used to indicate that there are overlapping display positions between the display position of the moving first virtual object and the display position of the moving resource object; the auxiliary movement trajectory is different from the target movement trajectory; the starting point of both the target movement trajectory and the auxiliary movement trajectory is the position of the first interactive area in the interactive interface;
[0298] The mobile display unit 123 is specifically used to select a movement trajectory based on the selection probabilities corresponding to the target movement trajectory and the auxiliary movement trajectory, respectively; the selected movement trajectory is either the target movement trajectory or the auxiliary movement trajectory.
[0299] The mobile display unit 123 is specifically used to move and display the first virtual object from the position of the first interactive area according to the selected movement trajectory.
[0300] Optionally, the mobile display unit 123 is also specifically used to count the number of times the historical virtual object does not collide with the resource object in the first consecutive time period; the historical virtual object is associated with the historical interaction messages in the interactive interface;
[0301] The mobile display unit 123 is also specifically used to adjust the selection probability corresponding to the target movement trajectory to the maximum selection probability when the first consecutive non-collision count is equal to the collision trigger threshold.
[0302] The mobile display unit 123 is also specifically used to determine the target movement trajectory as the selected movement trajectory based on the maximum selection probability corresponding to the target movement trajectory and the selection probability corresponding to the auxiliary movement trajectory.
[0303] Optionally, the mobile display unit 123 is also specifically used to recount the first consecutive non-collision count when the display position of the first virtual object is higher than the display position of the resource object.
[0304] Optionally, the first virtual object includes at least two jump actions during the movement display process, each jump action is executed according to a different selected movement trajectory, and the selected movement trajectory corresponding to each jump action is determined based on a different virtual area;
[0305] The mobile display unit 123 is also specifically used to count the second consecutive non-collision count of the consecutive non-collision jump action of the first virtual object against the resource object;
[0306] The mobile display unit 123 is further specifically used to generate an updated virtual region based on the display position of the moving first virtual object and the display position of the moving resource object when the second consecutive non-collision count equals the collision trigger threshold; the updated virtual region includes an updated target movement trajectory and an updated auxiliary movement trajectory; the updated target movement trajectory is used to indicate that there are overlapping display positions between the display positions of the moving first virtual object and the display positions of the moving resource object; the updated auxiliary movement trajectory is different from the updated target movement trajectory; the updated target movement trajectory has the maximum selection probability, and the selection probability corresponding to the updated auxiliary movement trajectory is less than the maximum selection probability;
[0307] The mobile display unit 123 is also specifically used to determine the target movement trajectory as the updated selection movement trajectory based on the maximum selection probability corresponding to the updated target movement trajectory and the selection probability corresponding to the updated auxiliary movement trajectory;
[0308] The mobile display unit 123 is also specifically used to perform the jump action indicated by the updated selected movement trajectory on the first virtual object.
[0309] The specific implementation methods of the distance acquisition unit 121, the region generation unit 122, and the mobile display unit 123 can be found in the above description. Figure 5 In the corresponding embodiment, steps S203 and Figure 10 The descriptions of steps S2031-S2035 in the corresponding embodiments will not be repeated here.
[0310] Optionally, the first overlap module 13 is used to trigger the first virtual object to perform an interactive action on the resource object when the display position of the moving first virtual object and the display position of the moving resource object overlap during the process of the first virtual object and the resource object moving together; the resource object will shift its position in the interactive interface based on the interactive action.
[0311] The first offset module 14 is used to display a first resource sub-object that matches the first interaction message at the display position of the resource object after the position offset; the first resource sub-object has the function of moving in the interactive interface;
[0312] The first offset module 14 is used to continue moving and displaying the resource object after its position has been offset in the interactive interface.
[0313] Optionally, the second display module 15 is used to display a second virtual object in the second interactive area where the second interactive message is located when the second interactive message is displayed in the interactive interface; the second interactive message is sent by the second object; the second virtual object is associated with the second interactive message; the second object is the object that interacts with the first object in the interactive interface;
[0314] The second display module 15 is specifically used to determine the trigger type indicated by the first and second interactive messages respectively when the second interactive message is displayed in the interactive interface.
[0315] The second display module 15 is specifically used to display the second virtual object in the second interaction area where the second interaction message is located when both the trigger type indicated by the first interaction message and the trigger type indicated by the second interaction message are interaction types.
[0316] The second moving module 16 is used to move and display the second virtual object from the position of the second interactive area in the interactive interface; the interactive interface simultaneously displays the first virtual object, the second virtual object, and the resource object.
[0317] Optionally, the animation display module 17 is used to display an overlapping interactive animation associated with the first virtual object and the second virtual object in the interactive interface when the display positions of the moving first virtual object and the moving second virtual object coincide during the process of the first virtual object and the second virtual object moving together.
[0318] Optionally, the second overlap module 18 is used to trigger the second virtual object to perform an interactive action on the resource object when the display position of the moving second virtual object coincides with the display position of the moving resource object during the process of the first virtual object, the second virtual object and the resource object moving together; the resource object will shift its position in the interactive interface based on the interactive action.
[0319] The second offset module 19 is used to display a second resource sub-object that matches the second interaction message at the display position of the resource object after the position offset; the second resource sub-object has the function of moving in the interactive interface;
[0320] The second offset module 19 is used to continue moving and displaying the resource object after its position has been offset in the interactive interface.
[0321] Optionally, the data processing device 1 is also specifically used to display a first resource sub-object matching the first interactive message at the location where the resource object disappears when the resource object after the position shift exceeds the display range of the interactive interface;
[0322] The data processing device 1 is also specifically used to perform the step of displaying a first resource sub-object matching the first interactive message at the display position of the resource object after the position shift when the resource object after the position shift is within the display range of the interactive interface.
[0323] Optionally, the data processing device 1 is also specifically used to respond to a triggered operation on a moving resource object and display the resource acquisition area in the interactive interface;
[0324] The data processing device 1 is also specifically used to display resource description information and resource acquisition controls in the resource acquisition area;
[0325] The data processing device 1 is also specifically used to respond to a trigger operation on the resource retrieval control and retrieve the virtual resource indicated by the resource description information.
[0326] Optionally, the data processing device 1 is further configured to respond to a trigger operation on a moving first virtual object and obtain the updated movement trajectory and updated movement speed indicated by the trigger operation.
[0327] The data processing device 1 is also specifically used to update the initial movement trajectory and initial movement speed of the moving first virtual object in the interactive interface according to the updated movement trajectory and updated movement speed.
[0328] Optionally, the data processing device 1 is further configured to add a virtual detection region to the first virtual object and a resource detection region to the resource object;
[0329] The data processing device 1 is also specifically used to generate the region overlap between the virtual detection region and the resource detection region based on the region intersection and region union between the virtual detection region and the resource detection region during the movement of the first virtual object and the resource object.
[0330] The data processing device 1 is also specifically used to determine that the display position of the moving first virtual object and the display position of the moving resource object overlap when the region overlap is greater than the overlap threshold.
[0331] The specific implementation methods of the first display module 11 and the first moving module 12 can be found in the above description. Figure 3 The descriptions of steps S101-S102 in the corresponding embodiments will not be repeated here. The specific implementations of the first overlapping module 13 and the first offset module 14 can be found above. Figure 5 In the corresponding embodiment, steps S201-S204 and Figure 10 The descriptions of steps S2031-S2035 in the corresponding embodiments will not be repeated here. The specific implementations of the second display module 15, the second movement module 16, and the animation display module 17 can be found above. Figure 13 The descriptions of steps S301-S305 in the corresponding embodiments will not be repeated here. The specific implementations of the second overlapping module 18 and the second offset module 19 can be found above. Figure 16 The descriptions of steps S401-S409 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated.
[0332] Further, please see Figure 21 , Figure 21 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 21As shown, the computer device 1000 may include a processor 1001, a network interface 1004, and a memory 1005. Furthermore, the computer device 1000 may also include a user interface 1003 and at least one communication bus 1002. The communication bus 1002 is used to enable communication between these components. In some embodiments, the user interface 1003 may include a display screen and a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. Optionally, the network interface 1004 may include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 1005 may also be at least one storage device located remotely from the processor 1001. Figure 21 As shown, the memory 1005, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application.
[0333] In such Figure 21 In the computer device 1000 shown, the network interface 1004 provides network communication functionality; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0334] When the first interactive message is displayed in the interactive interface, the first virtual object is displayed in the first interactive area where the first interactive message is located, and the resource object is displayed at the target location of the interactive interface; the first interactive message is sent by the first object; both the first virtual object and the resource object are associated with the first interactive message; the resource object and the first virtual object have interactive functions.
[0335] In the interactive interface, the first virtual object is displayed starting from the position of the first interactive area, and the resource object is displayed starting from the target position.
[0336] It should be understood that the computer device 1000 described in the embodiments of this application can execute the foregoing text. Figure 3 , Figure 5 , Figure 10 , Figure 13 and Figure 16 The description of the data processing method in the corresponding embodiments can also be performed as described above. Figure 20 The description of the data processing device 1 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated here.
[0337] Furthermore, it should be noted that this application embodiment also provides a computer-readable storage medium, which stores a computer program executed by the aforementioned data processing device 1. The computer program includes program instructions, and when the processor executes the program instructions, it can execute the aforementioned... Figure 3 , Figure 5 , Figure 10 , Figure 13 and Figure 16 The description of the data processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.
[0338] Furthermore, it should be noted that this application also provides a computer program product or computer program, which may include computer instructions, which may be stored in a computer-readable storage medium. The processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor may execute the computer instructions, causing the computer device to perform the aforementioned actions. Figure 3 , Figure 5 , Figure 10 , Figure 13 and Figure 16 The description of the data processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer program products or computer program embodiments related to this application, please refer to the description of the method embodiments of this application.
[0339] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0340] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.
Claims
1. A data processing method, characterized in that, include: When the first interactive message is displayed in the interactive interface, a first virtual object is displayed in the first interactive area where the first interactive message is located, and a resource object is displayed at the target location of the interactive interface; the first interactive message is sent by the first object; both the first virtual object and the resource object are associated with the first interactive message; the resource object and the first virtual object have interactive functionality. In the interactive interface, the first virtual object is displayed starting from the position of the first interactive area, and the resource object is displayed starting from the target position. During the joint movement of the first virtual object and the resource object, when the display position of the moving first virtual object coincides with the display position of the moving resource object, the first virtual object is triggered to perform an interactive action on the resource object; the resource object shifts its position in the interactive interface based on the interactive action. At the display position of the resource object after the position offset, display the first resource sub-object that matches the first interaction message; The first resource sub-object has the function of moving within the interactive interface; In the interactive interface, the resource object, after its position has shifted, continues to be moved and displayed.
2. The method according to claim 1, characterized in that, The method further includes: When the resource object, after being offset, exceeds the display range of the interactive interface, a first resource sub-object matching the first interactive message is displayed at the location where the resource object disappears. When the resource object after its position shift is within the display range of the interactive interface, the step of displaying the first resource sub-object matching the first interactive message at the display position of the resource object after its position shift is executed.
3. The method according to claim 1, characterized in that, The method further includes: When the second interactive message is displayed in the interactive interface, a second virtual object is displayed in the second interactive area where the second interactive message is located; the second interactive message is sent by the second object; the second virtual object is associated with the second interactive message; the second object is the object that interacts with the first object in the interactive interface. In the interactive interface, the second virtual object is displayed by moving from the position of the second interactive area; the interactive interface simultaneously displays the first virtual object, the second virtual object, and the resource object.
4. The method according to claim 3, characterized in that, The method further includes: During the joint movement of the first virtual object and the second virtual object, when the display positions of the moving first virtual object and the moving second virtual object coincide, an overlapping interactive animation associated with the first virtual object and the second virtual object is displayed in the interactive interface.
5. The method according to claim 3, characterized in that, The method further includes: During the joint movement of the first virtual object, the second virtual object, and the resource object, when the display position of the moving second virtual object coincides with the display position of the moving resource object, the second virtual object is triggered to perform an interactive action on the resource object; the resource object shifts its position in the interactive interface based on the interactive action. At the display position of the resource object after the position offset, a second resource sub-object matching the second interaction message is displayed; the second resource sub-object has the function of moving in the interaction interface. In the interactive interface, the resource object, after its position has shifted, continues to be moved and displayed.
6. The method according to claim 1, characterized in that, The method further includes: In response to a triggered operation on the moving resource object, a resource claiming area is displayed in the interactive interface; The resource claiming area displays resource description information and resource claiming controls. In response to a trigger operation on the resource claiming control, the virtual resource indicated by the resource description information is claimed.
7. The method according to claim 1, characterized in that, The method further includes: In response to a trigger operation on the first virtual object in motion, obtain the updated movement trajectory and updated movement speed indicated by the trigger operation; The initial movement trajectory and initial movement speed of the first virtual object in the interactive interface are updated according to the updated movement trajectory and the updated movement speed.
8. The method according to claim 1, characterized in that, The interactive interface includes a virtual keyboard area and a message display area; the message display area is the area of the interactive interface other than the virtual keyboard area. The step of moving and displaying the first virtual object starting from the position of the first interactive area and moving and displaying the resource object starting from the target position in the interactive interface includes: The first virtual object is moved and displayed starting from the position of the first interactive area, and the resource object is moved starting from the target position; When the moving resource object is in the message display area, the resource object is displayed in the message display area; When the moving resource object is in the virtual keyboard area, the resource object is overlaid and displayed using the virtual keyboard in the virtual keyboard area.
9. The method according to claim 1, characterized in that, The step of displaying a first virtual object in the first interactive area where the first interactive message is located when the first interactive message is displayed in the interactive interface includes: When a first interactive message is displayed in the interactive interface, and the first interactive message contains key message data with virtual object triggering function, the first virtual object indicated by the key message data and the effective time range are obtained from the resource library; the resource library is periodically obtained by the application client to which the interactive interface belongs. When the current time is within the effective time range, the first virtual object is displayed in the first interaction area where the first interaction message is located.
10. The method according to claim 1, characterized in that, The step of moving and displaying the first virtual object in the interactive interface, starting from the position of the first interactive area, includes: Obtain the object position distance between the display position of the first virtual object and the display position of the resource object; A virtual region indicated by the distance to the object's location is generated in the interactive interface; Based on the virtual area, the first virtual object is moved and displayed starting from the position of the first interactive area.
11. The method according to claim 10, characterized in that, The step of moving and displaying the first virtual object from its position in the first interactive area according to the virtual area includes: In the virtual area, a target movement trajectory and an auxiliary movement trajectory are determined for the first virtual object; the target movement trajectory is used to indicate that there is an overlapping display position between the display position of the moving first virtual object and the display position of the moving resource object; the auxiliary movement trajectory is different from the target movement trajectory; the starting point of both the target movement trajectory and the auxiliary movement trajectory is the position of the first interactive area in the interactive interface; Based on the selection probabilities corresponding to the target movement trajectory and the auxiliary movement trajectory, a selection movement trajectory is chosen; the selection movement trajectory is either the target movement trajectory or the auxiliary movement trajectory. According to the selected movement trajectory, the first virtual object is displayed starting from the position in the first interactive area.
12. The method according to claim 11, characterized in that, The method further includes: Within the target time period, the number of consecutive non-collisions of historical virtual objects against the resource object is counted; the historical virtual objects are associated with the historical interaction messages in the interactive interface. When the first consecutive number of non-collisions equals the collision trigger threshold, the selection probability corresponding to the target movement trajectory is adjusted to the maximum selection probability; The step of selecting the chosen movement trajectory based on the selection probabilities corresponding to the target movement trajectory and the auxiliary movement trajectory includes: Based on the maximum selection probability corresponding to the target movement trajectory and the selection probability corresponding to the auxiliary movement trajectory, the target movement trajectory is determined as the selected movement trajectory.
13. The method according to claim 12, characterized in that, The method further includes: When the display position of the first virtual object is higher than the display position of the resource object, the first consecutive non-collision count is recounted.
14. The method according to claim 11, characterized in that, The first virtual object includes at least two jump actions during the movement display process. Each jump action is executed according to a different selected movement trajectory. The selected movement trajectory corresponding to each jump action is determined based on a different virtual area. The method further includes: Count the second consecutive non-collision count of the first virtual object's consecutive non-collision jump action towards the resource object; When the second consecutive non-collision count equals the collision trigger threshold, an updated virtual region is generated based on the display positions of the moving first virtual object and the moving resource object. The updated virtual region includes an updated target movement trajectory and an updated auxiliary movement trajectory. The updated target movement trajectory indicates that there are overlapping display positions between the display positions of the moving first virtual object and the moving resource object. The updated auxiliary movement trajectory is different from the updated target movement trajectory. The updated target movement trajectory has the maximum selection probability, and the selection probability corresponding to the updated auxiliary movement trajectory is less than the maximum selection probability. Based on the maximum selection probability corresponding to the updated target movement trajectory and the selection probability corresponding to the updated auxiliary movement trajectory, the updated target movement trajectory is determined as the updated selection movement trajectory; Perform the jump action indicated by the updated selected movement trajectory on the first virtual object.
15. The method according to claim 3, characterized in that, When the second interactive message is displayed in the interactive interface, displaying the second virtual object in the second interactive area where the second interactive message is located includes: When the second interactive message is displayed in the interactive interface, determine the trigger type indicated by the first interactive message and the second interactive message respectively; When both the trigger type indicated by the first interaction message and the trigger type indicated by the second interaction message are interaction types, the second virtual object is displayed in the second interaction area where the second interaction message is located.
16. The method according to claim 1, characterized in that, The method further includes: Add a virtual detection region to the first virtual object, and add a resource detection region to the resource object; During the movement of the first virtual object and the resource object, the overlap degree between the virtual detection region and the resource detection region is generated based on the region intersection and region union between the virtual detection region and the resource detection region; When the overlap of the regions is greater than the overlap threshold, it is determined that the display position of the moving first virtual object and the display position of the moving resource object overlap.
17. A data processing apparatus, characterized in that, include: A first display module is configured to, when a first interactive message is displayed in an interactive interface, display a first virtual object in a first interactive area where the first interactive message is located, and display a resource object at a target location in the interactive interface; the first interactive message is sent by the first object; both the first virtual object and the resource object are associated with the first interactive message; the resource object and the first virtual object have interactive functionality. The first moving module is used to move and display the first virtual object from the position of the first interactive area in the interactive interface, and to move and display the resource object from the target position. The first overlap module is used to trigger the first virtual object to perform an interactive action on the resource object when the display position of the moving first virtual object and the display position of the moving resource object overlap during the joint movement of the first virtual object and the resource object; the resource object shifts its position in the interactive interface based on the interactive action. The first offset module is used to display a first resource sub-object that matches the first interaction message at the display position of the resource object after the position offset; The first resource sub-object has the function of moving within the interactive interface; The first offset module is used to continue moving and displaying the resource object after its position has been offset in the interactive interface.
18. A computer device, characterized in that, include: Processor and memory; The processor is connected to the memory, wherein the memory is used to store a computer program, and the processor is used to invoke the computer program to cause the computer device to perform the method according to any one of claims 1-16.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any one of claims 1-16.
20. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium and adapted to be read and executed by a processor to cause a computer device having the processor to perform the method of any one of claims 1-16.
Citation Information
Patent Citations
Live broadcast room virtual gift interaction method, electronic device and device
CN111083505A
