Interaction method and device in virtual scene, electronic device, computer readable storage medium and computer program product
By displaying a crosshair in the virtual scene and responding to user invitation commands to send riding requests, the problem of the limited variety of riding methods for virtual objects is solved, the interaction methods are enriched and the resource utilization rate is improved, thus enhancing the user's gaming experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2025-03-27
- Publication Date
- 2026-06-26
Smart Images

Figure CN119971482B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to an interaction method, device, electronic device, computer-readable storage medium, and computer program product in a virtual scene. Background Technology
[0002] In related technologies, a first virtual object can invite a second virtual object to ride a virtual vehicle together. However, the second virtual object and the first virtual object need to be in the same team. In other words, both the first and second virtual objects must be in a team state to ride a virtual vehicle together. It can be seen that in related technologies, the way the first and second virtual objects ride together is relatively simple, the resource utilization of electronic devices is low, and the player's gaming experience is reduced. Summary of the Invention
[0003] This application provides an interaction method, device, electronic device, computer-readable storage medium, and computer program product in a virtual scene, which can enrich the ways in which virtual objects ride together, improve the resource utilization of electronic devices, and thus enhance the user's gaming experience.
[0004] The technical solution of this application embodiment is implemented as follows:
[0005] This application provides an interaction method in a virtual scene, the method comprising:
[0006] Display a virtual scene, the virtual scene including a main virtual object and at least one candidate virtual object, the main virtual object having a first virtual pet, and the at least one candidate virtual object including the first virtual object;
[0007] In response to the activation of the ride invitation function in the virtual scene, a crosshair for aiming in the virtual scene is displayed;
[0008] When the crosshair is aimed at the first virtual object, in response to the invitation command for the first virtual object, a riding request is sent to the first virtual object;
[0009] In response to the first virtual object accepting the riding request, control the first virtual object and the master virtual object to ride the first virtual pet together.
[0010] This application provides an interaction method in a virtual scene, the method comprising:
[0011] Display a virtual scene, wherein the virtual scene includes a first virtual object;
[0012] Displays a riding request sent by the master virtual object, the riding request being used to invite the first virtual object and the master virtual object to ride the first virtual pet of the master virtual object together;
[0013] In response to a confirmation command for the riding request, the first virtual object is transmitted to the location of the first virtual pet, and the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0014] This application provides an interactive device in a virtual scene, the device comprising:
[0015] A first display module is used to display a virtual scene, the virtual scene including a main virtual object and at least one candidate virtual object, the main virtual object having a first virtual pet, and the at least one candidate virtual object including the first virtual object;
[0016] The first response module is used to respond to the activation of the riding invitation function in the virtual scene by displaying a crosshair for aiming in the virtual scene;
[0017] The first response module is configured to send a riding request to the first virtual object in response to an invitation command for the first virtual object when the crosshair is aimed at the first virtual object;
[0018] The first response module is configured to respond to the first virtual object accepting the riding request and control the first virtual object and the master virtual object to ride the first virtual pet together.
[0019] In the above scheme, the first response module is also used to display a ride invitation control in the interface of the virtual scene; and to enable the ride invitation function of the virtual scene in response to the trigger operation of the ride invitation control.
[0020] In the above scheme, the first response module is also used to respond to the pressing operation of the riding invitation control and enable the riding invitation function of the virtual scene;
[0021] The first response module is also used to, after enabling the riding invitation function of the virtual scene, adjust the position of the crosshair in the virtual scene and aim at the first virtual object in response to the drag operation of the riding invitation control during the pressing operation; and trigger the invitation command in response to the release of the pressing operation.
[0022] In the above scheme, the first response module is further configured to display the first virtual pet in the virtual scene and display a riding control; in response to a trigger operation on the riding control, control the main virtual object to ride the first virtual pet and display the riding invitation control.
[0023] In the above scheme, the first response module is also used to display a pet control in the interface of the virtual scene, wherein the pet control has a one-to-one correspondence with the virtual pet; in response to the trigger operation of the pet control corresponding to the first virtual pet, the first virtual pet is displayed in the virtual scene.
[0024] In the above scheme, the first response module is also used to display the riding control using a first style;
[0025] The first response module is further configured to control the main virtual object to ride the first virtual pet, and then switch the display style of the riding control from the first style to the second style; in response to a trigger operation on the riding control of the second style, remove the main virtual object from the first virtual pet.
[0026] In the above scheme, the first response module is further configured to display a movement control for the crosshair in response to the activation of the riding invitation function in the virtual scene; and to control the crosshair to move in the virtual scene in response to a movement command triggered by the movement control, so as to aim at the first virtual object.
[0027] In the above scheme, there are multiple crosshairs, which are used to aim at multiple candidate virtual objects. The distance between any two candidate virtual objects being aimed at is less than a first distance threshold. The first response module is also used to respond to a movement command triggered by the movement control and control the multiple crosshairs to move synchronously in the virtual scene in order to aim at the multiple first virtual objects.
[0028] In some embodiments of the above scheme, the number of crosshairs is multiple, and the multiple crosshairs are used to aim at multiple candidate virtual objects. The distance between any two candidate virtual objects being aimed is less than a first distance threshold. The first response module is further configured to display the crosshairs used for aiming in the virtual scene, and then, in response to a movement command for the crosshairs, control the multiple crosshairs to move synchronously in the virtual scene to aim at the multiple first virtual objects.
[0029] In the above scheme, the movement control includes a virtual joystick, and the movement command is triggered by dragging the virtual joystick; the first response module is further configured to respond to the dragging operation of the virtual joystick by controlling the crosshair to move synchronously in the virtual scene to aim at the first virtual object; and to trigger the invitation command in response to the release of the dragging operation of the virtual joystick.
[0030] In the above scheme, the first response module is further configured to display a virtual joystick in the interface of the virtual scene in response to the activation of the riding invitation function of the virtual scene; control the crosshair to move synchronously in the virtual scene in response to the drag operation of the virtual joystick in order to aim at the first virtual object; and trigger the invitation command in response to the release of the drag operation of the virtual joystick.
[0031] In the above scheme, the first response module is also used to respond to the activation of the ride invitation function in the virtual scene by displaying the object status of the candidate virtual object at the associated position of each candidate virtual object; wherein, the object status includes an inviteable status and an uninvitable status;
[0032] The first response module is further configured to, in response to an invitation command for the first virtual object, send a riding request to the first virtual object when the crosshair is aimed at the first virtual object and the object state of the first virtual object is the inviteable state.
[0033] In the above scheme, the first response module is further configured to display an invitation mark corresponding to the first virtual object at the aiming position of the crosshair when the crosshair is aimed at the first virtual object, the invitation mark being used to indicate whether the first virtual object can be invited;
[0034] The first response module is further configured to, in response to an invitation instruction for the first virtual object, send a ride request to the first virtual object when the invitation mark indicates that the first virtual object can be invited.
[0035] In the above scheme, the invitation marker includes a first invitation marker and a second invitation marker; the first response module is further configured to display a first invitation marker corresponding to the first virtual object at the aiming position of the crosshair if the first virtual object can be invited; and to display a second invitation marker corresponding to the first virtual object at the aiming position of the crosshair if the first virtual object cannot be invited; wherein the pattern of the first invitation marker is different from the pattern of the second invitation marker, or the color of the first invitation marker is different from the color of the second invitation marker.
[0036] In the above scheme, at least one candidate virtual object also includes a second virtual object. The first response module is further configured to send a riding request to the second virtual object in response to an invitation command for the second virtual object after sending a riding request to the first virtual object and the crosshair is aimed at the second virtual object.
[0037] The first response module is further configured to respond to the first virtual object accepting the riding request at a first moment, the second virtual object accepting the riding request at a second moment, and the first moment being earlier than the second moment, by controlling the first virtual object and the main control virtual object to ride the first virtual pet together.
[0038] Alternatively, in response to the first virtual object accepting the riding request at a first location, the second virtual object accepting the riding request at a second location, and the distance between the first location and the master virtual object being less than the distance between the second location and the master virtual object, the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0039] In the above scheme, the first response module is further configured to, after sending a riding request to the first virtual object, respond to a control command for the crosshair and control the crosshair to aim at the first virtual object again; respond to a re-triggered invitation command for the first virtual object, if the time difference between the two invitation commands executed for the first virtual object is less than a time difference threshold, display a first prompt message; the first prompt message is used to indicate that the sending frequency of the riding request has reached a frequency threshold and the riding request cannot be sent again.
[0040] In the above scheme, the first response module is further configured to display a crosshair for aiming in the virtual scene, and in the event that the crosshair is not aimed at any of the candidate virtual objects, in response to the invitation command, display a second prompt message, the second prompt message being used to indicate that there are no invited candidate virtual objects.
[0041] In the above scheme, the first response module is also used to respond to the first virtual object accepting the riding request within the target time period, and to control the first virtual object and the main control virtual object to ride the first virtual pet together;
[0042] The first response module is further configured to cancel the riding request for the first virtual object if the first virtual object does not accept the riding request within the target time period.
[0043] In the above scheme, the first response module is further configured to control the first virtual object and the main virtual object to ride the first virtual pet together, and then display a disband control in the interface of the virtual scene; in response to the trigger operation of the disband control, remove the first virtual object and the main virtual object from the first virtual pet.
[0044] In the above scheme, the virtual scene interface displays multiple pet controls, and there is a one-to-one correspondence between the pet controls and the virtual pets; the first response module is also used to control the first virtual object and the main virtual object to ride the first virtual pet together, and then, in response to the trigger operation of the pet control corresponding to the second virtual pet, remove the first virtual object and the main virtual object from the first virtual pet; switch the first virtual pet to the second virtual pet, and control the main virtual object to ride the second virtual pet.
[0045] In the above scheme, the first response module is further configured to display a removal control in the interface of the virtual scene after the first virtual object and the master virtual object ride the first virtual pet together; in response to the trigger operation of the removal control, the first virtual object is removed from the first virtual pet so that the master virtual object rides the first virtual pet alone.
[0046] In the above scheme, the first response module is further configured to control the first virtual object and the master virtual object to ride the first virtual pet together, and then control the first virtual pet to move within the target area; when the distance between the first virtual pet and the boundary of the target area is less than a second distance threshold, a third prompt message is displayed; wherein, the third prompt message is configured to indicate that if the first virtual pet moves out of the target area, the joint riding of the first virtual pet by the first virtual object and the master virtual object is cancelled.
[0047] In the above scheme, the first display module is also used to display the boundary effect of the target area when the distance between the first virtual pet and the boundary of the target area is less than the second distance threshold.
[0048] In the above scheme, the size of the second distance threshold is positively correlated with the size of the target area; the first response module is also used to switch the display style of the third prompt information from the third style to the fourth style in response to the duration of the distance being less than the second distance threshold reaching the duration threshold, wherein the prompt intensity corresponding to the fourth style is higher than the prompt intensity corresponding to the third style.
[0049] In the above scheme, the first response module is further configured to control the first virtual object and the master virtual object to ride the first virtual pet together, and then display the riding request sent by the third virtual object. The riding request is used to request to join the joint riding of the first virtual pet. In response to the confirmation instruction for the riding request, the module controls the third virtual object to ride the first virtual pet together with the first virtual object and the master virtual object.
[0050] This application provides an interactive device in a virtual scene, the device comprising:
[0051] The second display module is used to display a virtual scene, which includes a first virtual object;
[0052] The second display module is used to display a riding request sent by the master virtual object. The riding request is used to invite the first virtual object and the master virtual object to ride the first virtual pet of the master virtual object together.
[0053] The second response module is used to respond to a determination instruction for the riding request, to transmit the first virtual object to the location of the first virtual pet, and to control the first virtual object and the master virtual object to ride the first virtual pet together.
[0054] In the above scheme, the second response module is further configured to control the first virtual object and the main control virtual object to ride the first virtual pet together, and then display a leave control in the interface of the virtual scene; in response to the trigger operation of the leave control, control the first virtual object to leave the first virtual pet.
[0055] In the above scheme, the second display module is also used to display a countdown for the riding request during the process of displaying the riding request; when the countdown is cleared, the display of the riding request is canceled.
[0056] This application provides an electronic device, the electronic device comprising:
[0057] Memory is used to store executable instructions or computer programs.
[0058] The processor, when executing computer-executable instructions or computer programs stored in the memory, implements the interaction method in the virtual scene provided in the embodiments of this application.
[0059] This application provides a computer-readable storage medium storing a computer program or computer-executable instructions for implementing the interaction method in the virtual scene provided in this application when executed by a processor.
[0060] This application provides a computer program product, including a computer program or computer executable instructions. When the computer program or computer executable instructions are executed by a processor, they implement the interaction method in the virtual scene provided in this application.
[0061] The embodiments of this application have the following beneficial effects:
[0062] The interaction method in the virtual scene provided in this application embodiment can display a virtual scene, which includes a master virtual object and at least one candidate virtual object. The master virtual object has a first virtual pet, and the at least one candidate virtual object includes the first virtual object. In response to the activation of the riding invitation function in the virtual scene, a crosshair for aiming in the virtual scene is displayed, which can improve the richness of the content displayed in the virtual scene. When the crosshair is aimed at the first virtual object, in response to the invitation command for the first virtual object, a riding request is sent to the first virtual object. In response to the first virtual object accepting the riding request, the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0063] In this embodiment, a riding request can be sent using an aiming method. For the user controlling the main virtual object, the user can control the crosshair to aim at the virtual object they want to ride together, increasing the autonomy in sending riding requests and enriching the diversity of interaction methods. Only when the first virtual object accepts the riding request will the user control the first virtual object and the main virtual object to ride the first virtual pet together. For the user controlling the first virtual object, they can determine whether to accept the riding request based on actual usage needs, increasing the autonomy in accepting riding requests, enhancing the diversity of interactions between different virtual objects, enriching the ways virtual objects can ride together, improving the resource utilization of electronic devices, and thus improving the user's gaming experience. Attached Figure Description
[0064] Figure 1 This is a schematic diagram of the structure of the interactive system in the virtual scene provided in the embodiments of this application;
[0065] Figure 2A This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Figure 1 ;
[0066] Figure 2B This is a second schematic diagram of the structure of the electronic device provided in the embodiments of this application;
[0067] Figure 3 This is a flowchart illustrating the interaction method in a virtual scene provided in the embodiments of this application. Figure 1 ;
[0068] Figure 4This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 1 ;
[0069] Figure 5 This is a second schematic diagram of the virtual scene provided in the embodiments of this application;
[0070] Figure 6 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 3 ;
[0071] Figure 7 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 4 ;
[0072] Figure 8 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 5 ;
[0073] Figure 9 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 6 ;
[0074] Figure 10 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 7 ;
[0075] Figure 11 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 8 ;
[0076] Figure 12 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 9 ;
[0077] Figure 13 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 ;
[0078] Figure 14 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 one;
[0079] Figure 15 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 two;
[0080] Figure 16 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 three;
[0081] Figure 17 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 Four;
[0082] Figure 18 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10five;
[0083] Figure 19 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 six;
[0084] Figure 20 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 seven;
[0085] Figure 21 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 eight;
[0086] Figure 22 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 Nine;
[0087] Figure 23 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 ;
[0088] Figure 24 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 one;
[0089] Figure 25 This is a second flowchart illustrating the interaction method in a virtual scene provided in this application embodiment;
[0090] Figure 26 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 two;
[0091] Figure 27 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 three;
[0092] Figure 28 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 Four;
[0093] Figure 29 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 five;
[0094] Figure 30 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 six;
[0095] Figure 31 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 seven;
[0096] Figure 32 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 eight;
[0097] Figure 33 This is a schematic diagram of the target area provided in the embodiments of this application;
[0098] Figure 34 This is a flowchart illustrating the interaction method in a virtual scene provided in the embodiments of this application. Figure 3 . Detailed Implementation
[0099] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0100] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0101] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0102] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0103] Unless otherwise defined, all technical and scientific terms used in the embodiments of this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the embodiments of this application is for the purpose of describing the embodiments of this application only and is not intended to limit this application.
[0104] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0105] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0106] 1) Responding to: used to indicate the conditions or states on which the operation is performed depends. When the conditions or states on which it depends are met, one or more operations can be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.
[0107] 2) Human-computer interaction interface, an interface used to provide human-computer interaction functions / display virtual scenes, wherein the virtual scene may display at least one of the following: a main virtual object, candidate virtual objects (including the first virtual object), and a first virtual pet. For example, the human-computer interaction interface can be displayed through a graphical user interface (GUI), such as augmented reality (AR) interface, virtual reality (VR) interface, voice user interface (VUI), interactive projection interface (using projection technology to display information on a plane), eye-tracking interface (an interface controlled by detecting the user's gaze), holographic interface (a three-dimensional hologram formed by projecting images using holographic projection technology, allowing the user to see stereoscopic images without wearing special glasses), multimodal interface (an interface that combines multiple interaction methods, such as tactile, visual, and auditory interaction), brain-computer interface (BMI), etc.
[0108] 3) A virtual scene is a virtual scene displayed (or provided) by an application when it runs on a terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. A virtual scene can be any of the following: two-dimensional, 2.5-dimensional, or three-dimensional.
[0109] For example, a virtual scene can include the sky, land, and ocean. The land can include environmental elements such as deserts and cities. Users (i.e., players) can control virtual objects to perform activities within this virtual scene. These activities include, but are not limited to, adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up items, shooting, attacking, and throwing at least one of these. The virtual scene can be displayed from a first-person perspective (e.g., the user plays as a virtual object in the game from their own perspective); it can also be displayed from a third-person perspective (e.g., the user chases after a virtual object in the game); or it can be displayed from a bird's-eye view. Users can switch freely between these perspectives.
[0110] 4) Virtual objects: These are interactive representations of people and objects within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, virtual animals, cartoon characters, etc., such as people, animals, plants, oil drums, walls, stones, etc., displayed in the virtual scene. A virtual object can be a virtual avatar representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene.
[0111] For example, the virtual object can be a player character controlled through client-side operations, artificial intelligence (AI) trained and set up for virtual scene battles, or a non-player character (NPC) set up for interaction in the virtual scene. The number of virtual objects participating in the interaction in the virtual scene can be pre-set or dynamically determined based on the number of clients joining the interaction.
[0112] 5) Virtual pets refer to virtual creatures or non-living things possessed by virtual objects. Setting virtual pets for virtual objects enhances the richness of the content displayed in virtual scenes. The virtual object can be one or more of a player character or a non-player character. The relationship between virtual pets and virtual objects is explained below; virtual pets possess dependence, interactivity, functionality, and growth potential.
[0113] Dependency refers to the fact that virtual pets can depend on virtual objects, meaning there is a connection between the virtual pet and the virtual object, and they are mutually bound. Interactivity means that players can control the virtual object to interact with the virtual pet; for example, players can control the virtual object to feed, train, or command the virtual pet.
[0114] Functionality refers to the corresponding functions that virtual pets possess. These functions can include assisting virtual objects in interacting with other virtual objects in a virtual scene (i.e., combat), assisting virtual objects in interacting with other virtual pets in a virtual scene (i.e., combat), assisting virtual objects in finding items in a virtual scene, and assisting virtual objects in moving within a virtual scene. In other words, virtual pets can serve as virtual vehicles for virtual objects. Growth potential refers to the ability to improve the attributes, skills, and level of virtual pets through feeding, training, and combat.
[0115] 6) Client, also known as user terminal, refers to the program that provides local services to users in contrast to the server. Except for some applications that can only run locally, it is generally installed on ordinary client machines and needs to work in conjunction with the server. That is, there needs to be a corresponding server and service program in the network to provide the corresponding services. Thus, a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application, such as a game client.
[0116] During the research process, the inventors discovered the following technical problems in the relevant technology:
[0117] Technical Issue 1: In related technologies, a first virtual object can invite a second virtual object to ride a virtual vehicle together. However, the second virtual object and the first virtual object need to be in the same team. In other words, both the first and second virtual objects must be in a team state to ride a virtual vehicle together. It can be seen that in related technologies, the way the first and second virtual objects ride together is relatively simple, which reduces the player's gaming experience.
[0118] This application provides an interaction method, an interaction device, an electronic device, a computer-readable storage medium, and a computer program product in a virtual scene, which can enrich the ways in which virtual objects ride together, thereby improving the user's gaming experience.
[0119] See Figure 1 , Figure 1 This is a schematic diagram of the structure of the interactive system in the virtual scene provided in the embodiments of this application. Figure 1 The interactive system 100 shown in the virtual scene is designed to support interactive applications within a virtual scene. Figure 1 Both terminal 400-1 and terminal 400-2 shown can connect to server 200 via network 300, which can be a wide area network, a local area network, or a combination of both.
[0120] In some embodiments, terminal 400-1 is a terminal used by the user controlling the main virtual object, and terminal 400-2 is a terminal used by the user controlling the first virtual object. Virtual scenes can be displayed on the graphical interface 410-1 of terminal 400-1 and the graphical interface 410-2 of terminal 400-2. The virtual scenes displayed by the two terminals correspond to the same game. The virtual scenes displayed by the two terminals can be the same or different, depending on the actual usage.
[0121] The virtual scene includes a master virtual object and at least one candidate virtual object. The master virtual object has a first virtual pet. The at least one candidate virtual object includes the first virtual object. When the number of candidate virtual objects is 1, the candidate virtual object is the first virtual object. When the number of candidate virtual objects is multiple, the candidate virtual objects include the first virtual object and other virtual objects. The other virtual objects can correspond to other terminals.
[0122] In some embodiments, in response to the activation of the riding invitation function in the virtual scene, terminal 400-1 can display a crosshair for aiming in the virtual scene on the graphical interface 410-1. When the crosshair is aimed at the first virtual object, terminal 400-1 responds to the invitation command for the first virtual object and sends a riding request to the first virtual object, that is, terminal 400-1 sends the riding request to terminal 400-2.
[0123] In some embodiments, in response to an invitation instruction for a first virtual object, terminal 400-1 may send a ride request to server 200. Server 200 may determine the terminal 400-2 corresponding to the first virtual object, and then server 200 may send a ride request to terminal 400-2.
[0124] Terminal 400-2 can display the riding request sent by the master virtual object. In response to the confirmation instruction for the riding request, terminal 400-2 can send the return information of accepting the riding request to server 200. Server 200 can send the return information of accepting the riding request to terminal 400-1. Then, terminal 400-1 responds to the first virtual object accepting the riding request and controls the first virtual object and the master virtual object to ride the first virtual pet together.
[0125] In some embodiments, the first virtual object and the main virtual object can be simultaneously displayed riding the first virtual pet on both the graphical interface 410-1 of terminal 400-1 and the graphical interface 410-2 of terminal 400-2. This enhances the richness of the content displayed in the virtual scene. A riding request can be sent using an aiming method. For the user controlling the main virtual object, the user can control the crosshair to aim at the virtual object they want to ride together, increasing the autonomy in sending riding requests and enriching the diversity of interaction methods. Only when the first virtual object accepts the riding request will the first virtual object and the main virtual object ride the first virtual pet together. For the user controlling the first virtual object, they can determine whether to accept the riding request based on actual usage needs, increasing the autonomy in accepting riding requests and enhancing the diversity of interactions between different virtual objects, enriching the ways virtual objects can ride together, thereby improving the user's gaming experience.
[0126] The following describes the electronic devices provided in the embodiments of this application. Multiple electronic devices may be included; for example, an electronic device may include a first electronic device, a second electronic device, a third electronic device, etc. The number of electronic devices can be set according to actual circumstances. The electronic device implementing the interaction method in the virtual scene of the embodiments of this application can be a terminal, a server, or a combination of both. In some embodiments, the terminal can be various types of terminals such as laptops, tablets, desktop computers, set-top boxes, smartphones, smart speakers, smartwatches, smart TVs, and in-vehicle terminals.
[0127] In some embodiments, the server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing 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, content delivery networks (CDNs), and big data and artificial intelligence platforms. The terminal and server can be connected directly or indirectly via wired or wireless communication, which is not limited in this embodiment.
[0128] See Figure 2A , Figure 2A This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Figure 1 See Figure 2B , Figure 2B This is a second schematic diagram of the structure of the electronic device provided in the embodiments of this application. Figures 2A-2BThe illustrated electronic device includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The various components of the electronic device are coupled together via a bus system 440. It is understood that the bus system 440 is used to implement communication between these components. In addition to a data bus, the bus system 440 also includes a power bus, a control bus, and a status signal bus. However, for clarity, in… Figures 2A-2B The general labeled all buses as Bus System 440.
[0129] The processor 410 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0130] User interface 430 includes one or more output devices 431 that enable the presentation of media content, including one or more speakers and / or one or more visual displays. User interface 430 also includes one or more input devices 432, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0131] The memory 450 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state storage, hard disk drives, optical disk drives, etc. The memory 450 may optionally include one or more storage devices physically located away from the processor 410.
[0132] The memory 450 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 450 described in this application embodiment is intended to include any suitable type of memory.
[0133] In some embodiments, memory 450 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0134] Operating system 451 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;
[0135] The network communication module 452 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 420, exemplary network interfaces 420 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.
[0136] Presentation module 453 is configured to enable the presentation of information (e.g., a user interface for operating peripheral devices and displaying content and information) via one or more output devices 431 (e.g., a display screen, a speaker, etc.) associated with user interface 430;
[0137] The input processing module 454 is used to detect and translate one or more user inputs or interactions from one or more input devices 432.
[0138] In some embodiments, the interactive device in the virtual scene provided in this application can be implemented in software. Figure 2A An interactive device 455 in a virtual scene stored in memory 450 is shown. This device can be software in the form of programs and plugins, and includes the following software modules: a first display module 4551 and a first response module 4552. These modules are logically linked and can therefore be arbitrarily combined or further separated according to the functions they implement. The functions of each module will be described below.
[0139] Figure 2B An interactive device 456 in a virtual scene stored in memory 450 is shown. This device can be software in the form of programs and plugins, and includes the following software modules: a second display module 4561 and a second response module 4562. These modules are logically integrated and can therefore be arbitrarily combined or further separated according to the functions implemented. The functions of each module will be described below.
[0140] In other embodiments, the interactive device in the virtual scene provided in this application embodiment can be implemented in hardware. As an example, the interactive device in the virtual scene provided in this application embodiment can be a processor in the form of a hardware decoding processor, which is programmed to execute the interactive method in the virtual scene provided in this application embodiment. For example, the processor in the form of a hardware decoding processor can be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0141] In some embodiments, the terminal or server can implement the interaction method in the virtual scene provided in this application embodiment by running various computer-executable instructions or computer programs. For example, computer-executable instructions can be microprogram-level commands, machine instructions, or software instructions. Computer programs can be native programs or software modules in an operating system; they can be native applications (APPs), i.e., programs that need to be installed in the operating system to run, such as game applications; or they can be applets that can be embedded in any APP, i.e., programs that only need to be downloaded to a browser environment to run. In summary, the aforementioned computer-executable instructions can be any form of instruction, and the aforementioned computer programs can be any form of application, module, or plugin.
[0142] The following describes the interaction method in the virtual scene provided in the embodiments of this application. As mentioned above, the electronic device implementing the method of using virtual props in the embodiments of this application can be a terminal, a server, or a combination of both. See also Figure 3 , Figure 3 This is a flowchart illustrating the interaction method in a virtual scene provided in the embodiments of this application. Figure 1 The following is combined with Figure 3 The steps shown are illustrated using a terminal as an example to explain the interaction method in a virtual scene provided in the embodiments of this application.
[0143] In step 101, a virtual scene is displayed.
[0144] In practical applications, the terminal is equipped with a game application, which can be any of the following: open-world game, multiplayer online role-playing game, first-person shooter game, third-person shooter game, multiplayer online tactical competitive game, virtual reality application, 3D map program, or multiplayer shooting survival game.
[0145] For offline, single-player games, in response to a trigger action on the game application, the game application's interface can be displayed, showing a virtual scene within it. For multiplayer online games, in response to a trigger action on the game application, the terminal can send a data retrieval request to the server. The server can then send data to the terminal to display the game application's interface, allowing the virtual scene to be displayed on the terminal.
[0146] The virtual scene may include a master virtual object and at least one candidate virtual object. The master virtual object has a first virtual pet, and the at least one candidate virtual object includes the first virtual object. When there is only one candidate virtual object, the candidate virtual object is the first virtual object. When there are multiple candidate virtual objects, the candidate virtual objects include the first virtual object and other virtual objects. Other virtual objects may be virtual objects controlled by other users or non-player virtual objects.
[0147] In some embodiments, when the virtual scene is displayed from a first-person perspective, at least one candidate virtual object can be displayed simultaneously while the virtual scene is being displayed. Furthermore, the displayed virtual scene can be adjusted by the user according to actual usage needs until at least one candidate virtual object is displayed in the virtual scene.
[0148] In some embodiments, when the virtual scene is displayed from a third-person perspective, a main virtual object and at least one candidate virtual object can be displayed simultaneously while the virtual scene is being displayed. In some embodiments, when the virtual scene is being displayed, the main virtual object is displayed simultaneously, and the user adjusts the position of the main virtual object in the virtual scene according to actual usage needs, thereby adjusting the displayed virtual scene until at least one candidate virtual object is displayed in the virtual scene.
[0149] In some embodiments, when displaying a virtual scene, a first virtual pet can be displayed synchronously. In some embodiments, for a master virtual object, the master virtual object has at least one virtual pet, and the at least one virtual pet includes the first virtual object; the number of first virtual objects can be one or more. In some embodiments, when displaying a virtual scene, the first virtual pet can be displayed in response to a first display command, wherein the first display command can be triggered by corresponding controls, corresponding shortcut keys, corresponding voice, corresponding body movements, etc. In this way, the first virtual pet can be displayed in the virtual scene in different ways, thereby improving the user's gaming experience.
[0150] The first display instruction is described below. In some embodiments, a pet control can be displayed in the interface displaying the virtual scene. The number of pet controls can be at least one, and the at least one pet control includes a pet control for a first virtual pet. In response to a triggering operation on the pet control of the first virtual pet, the first display instruction is triggered, and the first virtual pet can be displayed in the virtual scene. In some embodiments, in response to a selection instruction on the pet control of the first virtual pet (equivalent to responding to the first display instruction), the display of the first virtual pet in the virtual scene can be controlled.
[0151] In some embodiments, the first virtual pet resides within a first virtual container. Responding to a selection command for the pet control, the main virtual object can be controlled to hold the first virtual container corresponding to the first virtual pet. Responding to a throw command triggered by the main virtual object, the main virtual object can be controlled to throw the first virtual container into the virtual scene. Upon the first virtual container being thrown into the virtual scene, the first virtual pet is displayed in the virtual scene. The first virtual container can be any one of a virtual sphere, virtual box, virtual book, virtual package, or virtual capsule, and can be specifically configured according to actual usage requirements. This approach allows for multiple ways to display the first virtual pet in the virtual scene, enriching the display methods and improving the user's gaming experience.
[0152] In some embodiments, after the main virtual object and its first virtual pet are displayed, the first virtual pet moves with the main virtual object in response to player character movement. The distance between the first virtual pet and the main virtual object is less than a first distance, and the first virtual pet can be located in any position relative to the main virtual object.
[0153] The first virtual pet can serve as a virtual vehicle for the controlling virtual object, meaning the controlling virtual object can ride the first virtual pet. In some embodiments, when displaying the first virtual pet, a riding control for the first virtual pet can be displayed simultaneously. That is, the first virtual pet and the riding control are displayed in the virtual scene, and in response to a trigger operation on the riding control, the controlling virtual object is controlled to ride the first virtual pet. This approach enriches the interaction methods between the controlling virtual object and the first virtual pet.
[0154] For example, see Figure 4 , Figure 4 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 1 The virtual scene 401 can be displayed, in which the main virtual object 402 and the first virtual pet 403 of the main virtual object 402 are displayed. The first virtual pet 403 is located to the right of the main virtual object 402, and the distance between the first virtual pet 403 and the main virtual object 402 is less than the first distance.
[0155] For example, see Figure 5 , Figure 5 This is a second schematic diagram of a virtual scene provided in the embodiments of this application. It can display a virtual scene 501, in which a main virtual object 502 and a first virtual pet 503 of the main virtual object 502 are displayed. The first virtual pet 503 serves as a virtual vehicle for the main virtual object 502, and the player character 502 rides the first virtual pet 503.
[0156] pass Figure 3 The step 101 shown can display virtual objects in a virtual scene in multiple ways, or display virtual objects and virtual pets in multiple ways, which can improve the diversity of interaction methods. Furthermore, the virtual objects and virtual pets can be displayed in multiple ways, which can improve the diversity of content displayed in the virtual scene.
[0157] In some embodiments, a ride invitation control is displayed in the interface showing the virtual scene (i.e., the display interface of the game application). In response to a trigger operation on the ride invitation control, the ride invitation function of the virtual scene is enabled. The ride invitation control is used to invite at least one candidate virtual object in the virtual scene to ride a first virtual pet. In this way, the ride invitation function of the virtual scene can be enabled according to actual usage needs, thereby improving the user's gaming experience.
[0158] In some embodiments, the virtual scene's ride invitation function is enabled in response to a press operation on the ride invitation control. The press operation on the ride invitation control is described below. In some embodiments, the press operation on the ride invitation control can be a click operation, that is, the user can click the ride invitation control, thereby enabling the virtual scene's ride invitation function in response to the press operation on the ride invitation control.
[0159] In some embodiments, pressing the ride invitation control can be a long press, where a long press means pressing the ride invitation control for a duration greater than or equal to the specified press duration. When a user presses the ride invitation control for the specified press duration, it is equivalent to activating the ride invitation function in the virtual scene. This method enriches the ways to activate the ride invitation function in the virtual scene.
[0160] In some embodiments, when the first virtual pet follows the main virtual object, in response to a trigger operation on the ride invitation control, the main virtual object can be controlled to ride the first virtual pet, and the ride invitation function of the virtual scene can be activated. In this way, one-click triggering of the main virtual object riding the first virtual pet and activating the ride invitation function of the virtual scene can be achieved, improving interaction efficiency.
[0161] In some embodiments, when the first virtual pet follows the main virtual object, the riding invitation control may not be displayed in the virtual scene interface. Instead, a riding control may be displayed in the virtual scene interface, and in response to a trigger operation on the riding control, the main virtual object can be controlled to ride the first virtual pet. When the main virtual object rides the first virtual pet, the riding invitation control can be displayed in the virtual scene interface, and in response to a trigger operation on the riding invitation control, the riding invitation function of the virtual scene can be enabled. In this way, the riding invitation function of the virtual scene can be enabled according to actual usage needs, thereby improving the user's gaming experience.
[0162] In some embodiments, when the first virtual pet follows the main virtual object, the riding invitation control displayed in the virtual scene interface can be made unselectable, while the riding control is displayed in the virtual scene interface. In response to a trigger operation on the riding control, the main virtual object can be controlled to ride the first virtual pet. When the main virtual object rides the first virtual pet, the riding invitation control displayed in the virtual scene interface can be made selectable. In response to a trigger operation on the riding invitation control, the riding invitation function of the virtual scene is enabled. In this way, the riding invitation function of the virtual scene can be enabled according to actual usage needs, thereby improving the user's gaming experience.
[0163] In some embodiments, when the main virtual object rides the first virtual pet, the riding invitation function in the virtual scene can be automatically enabled. Of course, the riding invitation function in the virtual scene can also be enabled through riding invitation controls, corresponding shortcut keys, corresponding voice, corresponding body movements, etc. The specific settings can be configured according to actual usage needs.
[0164] For example, see Figure 6 , Figure 6 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 3 In the interface 601 that displays the virtual scene, a ride invitation control 602 is displayed. In response to the trigger operation on the ride invitation control 602, the ride invitation function of the virtual scene is enabled.
[0165] In some embodiments, to facilitate users' intuitive understanding that the virtual scene ride invitation function has been enabled, a fourth prompt message can be displayed in response to a trigger operation on the ride invitation control. This fourth prompt message indicates that the virtual scene ride invitation function has been enabled. The fourth prompt message can be displayed as a pop-up window or a floating layer, allowing users to easily and intuitively understand that the virtual scene ride invitation function has been enabled.
[0166] In some embodiments, when the virtual scene ride invitation function is enabled, a fifth prompt message indicating that the virtual scene ride invitation function is enabled can be displayed in the associated area of the ride invitation control; when the virtual scene ride invitation function is not enabled, a sixth prompt message indicating that the virtual scene ride invitation function is not enabled can be displayed in the associated area of the ride invitation control. The associated area of the ride invitation control can be the area where the ride invitation control is displayed, or it can be an area formed by a distance less than a second distance between the ride invitation control and the area, which can be set according to actual usage requirements.
[0167] For example, see Figure 7 , Figure 7 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 4 In the virtual scene display interface 701, a ride invitation control 702 is displayed. If the virtual scene ride invitation function is not enabled, the ride invitation control 702 can display "Not enabled" (corresponding to the sixth prompt message).
[0168] See Figure 8 , Figure 8 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 5In response to the trigger operation of the ride invitation control 702, the ride invitation function of the virtual scene is enabled. When the ride invitation function of the virtual scene is enabled, the ride invitation control 702 can display "Enabled" (corresponding to the fifth prompt message).
[0169] Combination Figure 7 and Figure 8 It can be seen that, in response to the trigger operation of the ride invitation control 702, it can be Figure 7 The displayed "Not Enabled" option has been switched to... Figure 8 The "Enabled" message allows users to intuitively know whether the virtual scene ride invitation function is enabled, thereby improving the user's gaming experience.
[0170] Continue to participate Figure 3 In step 102, in response to the activation of the virtual scene's ride invitation function, a crosshair for aiming in the virtual scene is displayed.
[0171] In some embodiments, in response to the activation of the ride invitation function in the virtual scene, a crosshair for aiming in the virtual scene can be displayed. The crosshair is used to assist in aiming at virtual objects. In some embodiments, the crosshair can automatically aim at candidate virtual objects displayed in the virtual scene. In some embodiments, the user can adjust the virtual object aimed at by the crosshair according to actual usage needs. Specific settings can be configured according to actual usage.
[0172] For example, see Figure 9 , Figure 9 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 6 In response to the activation of the ride invitation function in virtual scene 901, a crosshair 902 is displayed for aiming within virtual scene 901. The crosshair can automatically aim at candidate virtual objects 903 displayed in virtual scene 901. In this way, it can automatically aim at virtual objects that can be invited to ride together, improving the accuracy of sending ride requests and thus enhancing the user's gaming experience.
[0173] In some embodiments, in response to a trigger operation on the ride invitation control, the ride invitation function of the virtual scene can be enabled, and the main virtual object can be controlled to be in an aiming state, which means that the crosshair can be used to aim at the virtual object to be ridden together.
[0174] In some embodiments, in response to the activation of the ride invitation function in the virtual scene, a movement control for the crosshair is displayed. In response to a movement command triggered by the movement control, the crosshair is moved within the virtual scene to aim at a first virtual object. The movement control is used to adjust the virtual object being aimed at by the crosshair. In this way, users can combine the movement control with the crosshair to aim at the virtual object they wish to ride together, increasing the autonomy in sending ride requests and enriching the ways virtual objects can be ridden together.
[0175] In some embodiments, the movement control may include an up control, a down control, a left control, and a right control. In response to a triggering operation on at least one of the up control, down control, left control, and right control, a movement command may be triggered. In response to a movement command triggered based on at least one of the up control, down control, left control, and right control, a crosshair may be controlled to move in the virtual scene to aim at a first virtual object.
[0176] For example, see Figure 10 , Figure 10 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 7 The first virtual object 1007 is displayed in the virtual scene 1001. The virtual scene 1001 also displays the movement control of the crosshair 1002. The movement control may include an up control 1003, a down control 1004, a left control 1005, and a right control 1006.
[0177] See Figure 11 , Figure 11 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 8 , undertake Figure 10 In the virtual scene 1001, a first virtual object 1007 is also displayed. In response to a trigger operation on the up control 1003, the crosshair 1002 can be controlled to move within the virtual scene 1001 to aim at the first virtual object 1007. In this way, users can combine the movement control with the crosshair to aim at the virtual object they want to ride together, increasing the autonomy in sending riding requests and enriching the ways virtual objects can be ridden together.
[0178] In some embodiments, the movement control includes a virtual joystick, and the movement command is triggered by a drag operation on the virtual joystick. In response to the drag operation on the virtual joystick, the crosshair is controlled to move synchronously in the virtual scene to aim at a first virtual object.
[0179] In some embodiments, there are multiple crosshairs, which are used to aim at multiple candidate virtual objects. The number of candidate virtual objects displayed in the virtual scene is multiple. The crosshairs can automatically aim at the candidate virtual objects displayed in the virtual scene. The number of crosshairs can be the same as or different from the number of candidate virtual objects. If the number of crosshairs is less than the number of candidate virtual objects, there may be candidate virtual objects that are not being aimed at. If the number of crosshairs is greater than the number of candidate virtual objects, there may be crosshairs that are not aiming at candidate virtual objects.
[0180] For example, see Figure 12 , Figure 12 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 9 Two crosshairs are displayed in the virtual scene 1201, namely crosshair 1202 and crosshair 1203. The virtual scene 1201 also displays a first virtual object 1204 and a first virtual object 1205.
[0181] See Figure 13 , Figure 13 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 , undertake Figure 12 Crosshair 1202 can automatically aim at the first virtual object 1204, and crosshair 1203 can automatically aim at the first virtual object 1205. In this way, it can automatically aim at virtual objects that can be invited to ride together, improving the accuracy of sending ride requests and thus improving the user's gaming experience.
[0182] The following describes how the crosshair automatically aims at virtual objects. In some embodiments, the crosshair can automatically aim at candidate virtual objects whose distance from the master virtual object is less than a third distance threshold; the virtual object aimed at by the crosshair is the first virtual object. In some embodiments, the master virtual object may have a proximity relationship with candidate virtual objects; the crosshair can automatically aim at candidate virtual objects whose proximity relationship is greater than a first proximity threshold; the virtual object aimed at by the crosshair is the first virtual object. Specific settings can be configured according to actual usage requirements.
[0183] In some embodiments, multiple crosshairs are used to aim at multiple candidate virtual objects. The distance between any two targeted candidate virtual objects is less than a first distance threshold. In response to movement commands based on the crosshairs, multiple crosshairs are controlled to move synchronously in the virtual scene to aim at multiple first virtual objects. This method allows for one-click aiming at multiple first virtual objects, improving aiming efficiency. Aiming at the first virtual objects is used to send riding requests, thereby improving the efficiency of sending riding requests and enhancing the user's gaming experience.
[0184] The following describes how to control the movement of the crosshair in a virtual scene. In some embodiments, the displayed virtual scene may remain unchanged while the crosshair moves within it. In some embodiments, the crosshair can be controlled to be located in a preset area of the game application's display page, and the virtual scene can be changed to achieve crosshair movement within the virtual scene.
[0185] For example, the crosshair can be located in the center of the display page. Responding to the movement of the main virtual object within the virtual scene, the crosshair can be moved by controlling changes in the virtual scene. Alternatively, it can respond to commands to change the orientation of a virtual object, thus moving the crosshair. Of course, the displayed virtual scene can be changed in other ways as well, without specific limitations here. In this way, the crosshair can move within the virtual scene to ensure it can be aimed at the virtual object subsequently, thereby increasing the success rate of sending riding requests.
[0186] In some embodiments, there can be multiple movement controls, with each movement control corresponding to a crosshair. For each movement control, in response to a movement command triggered on the movement control, the corresponding crosshair can be controlled to move in the virtual scene, thereby aiming the crosshair at a first virtual object. In this way, the crosshair can be controlled to aim at different first virtual objects separately, thereby improving the accuracy of aiming at virtual objects and thus enhancing the user's gaming experience.
[0187] In some embodiments, a user can click on a first virtual object displayed in the virtual scene to aim the crosshair at the first virtual object corresponding to the click operation. In other words, with the first virtual object and crosshair displayed, in response to a click operation on the first virtual object, the user can control the crosshair to aim at the first virtual object corresponding to the click operation. This method enables one-click aiming at the first virtual object, improving the efficiency of aiming at the first virtual object and enhancing the user's gaming experience.
[0188] In some embodiments, the user aims at the first virtual object by dragging the crosshair. That is, when the first virtual object and the crosshair are displayed, in response to the dragging operation on the crosshair, the crosshair is moved synchronously in the virtual scene. In response to canceling the dragging operation, the crosshair stops moving in the virtual scene. The crosshair can stop at the position corresponding to the first virtual object, thereby achieving aiming at the first virtual object. In this way, the accuracy of aiming at the first virtual object can be improved, thereby improving the user's gaming experience.
[0189] See also Figure 3In step 103, when the crosshair is aimed at the first virtual object, in response to the invitation command for the first virtual object, a riding request is sent to the first virtual object.
[0190] In some embodiments, an invitation confirmation control for a crosshair is displayed in the interface displaying the virtual scene. When the crosshair is aimed at the first virtual object, in response to the triggering operation of the invitation confirmation control, it indicates that the first virtual object being aimed at wants to ride the first virtual pet together. This is equivalent to responding to the invitation command for the first virtual object and sending a riding request to the first virtual object.
[0191] Both the automatic aiming at the first virtual object and the aiming at the first virtual object via a movement control can trigger an invitation command for the first virtual object through an invitation confirmation control. This allows users to send riding requests by aiming, increasing autonomy in sending riding requests and enriching the diversity of interaction methods.
[0192] In some embodiments, in response to the activation of the ride invitation function in the virtual scene, a virtual joystick is displayed in the interface of the virtual scene. In response to dragging the virtual joystick, the crosshair moves synchronously in the virtual scene to aim at a first virtual object. In response to the release of the dragging operation on the virtual joystick, an invitation command is triggered. In this way, aiming at a virtual object using a virtual joystick and thus triggering an invitation command can be achieved, enriching the ways of aiming at virtual objects.
[0193] In some embodiments, to improve the cleanliness of the interface in the virtual scene, the number of displayed virtual controls can be controlled. The fifth style can be used to display the riding invitation control. In response to the pressing operation of the riding invitation control, the riding invitation function of the virtual scene is enabled, and the display style of the riding invitation control is switched from the fifth style to the sixth style. After the riding invitation function of the virtual scene is enabled, during the pressing operation, in response to the dragging operation of the riding invitation control of the sixth style, the position of the crosshair in the virtual scene is adjusted to aim at the first virtual object. In response to the release of the pressing operation, the invitation command is triggered.
[0194] Among them, the fifth style of the ride invitation control is used to enable the ride invitation function, and the sixth style of the ride invitation control is used to adjust the position of the crosshair in the virtual scene and send a ride request. The fifth style of the ride invitation control and the sixth style of the ride invitation control together realize the invitation of virtual objects to ride together.
[0195] The fifth and sixth styles are described below. The fifth and sixth styles are different. In some embodiments, at least one of the following can be different: the icon of the fifth style and the icon of the sixth style; the text of the fifth style and the text of the sixth style; the display area corresponding to the fifth style and the display area corresponding to the sixth style; and the color of the fifth style and the color of the sixth style. In this way, the display style of the riding invitation control can be automatically changed when the user presses continuously. The riding invitation control performs different functions under different display styles, thereby enabling multiple operations to be completed through one control, improving the cleanliness of the virtual scene interface, and enhancing the user's gaming experience.
[0196] When the movement controls include a virtual joystick, in response to a dragging operation on the virtual joystick, after the crosshair moves in the virtual scene to aim at a first virtual object, the dragging operation on the virtual joystick is released, triggering an invitation command for the first virtual object. In response to this invitation command, a riding request can be sent to the first virtual object. This method combines triggering the invitation command with the virtual joystick, which also allows for crosshair movement, improving the accuracy of sending riding requests and enriching the interaction methods, thus enhancing the user's gaming experience.
[0197] In some embodiments, in response to the activation of the ride invitation function in the virtual scene, the object status of each candidate virtual object is displayed at the associated location of each candidate virtual object. The associated location of the candidate virtual object can be the location where the candidate virtual object is displayed, or the associated location of the candidate virtual object can be a location at a fourth distance from the location where the candidate virtual object is displayed. The specific location can be set according to the actual usage.
[0198] Object states include inviteable and invulnerable states. An inviteable state means the controlling virtual object can invite candidate virtual objects to ride together, while an invulnerable state means the controlling virtual object cannot invite candidate virtual objects to ride together. This increases the diversity of content displayed in the virtual scene, and allows users to intuitively understand the object states of candidate virtual objects, thereby improving the user's gaming experience.
[0199] The object's state can be displayed using one or more of the following methods: text, images, and video. For example, see [link to relevant documentation]. Figure 14 , Figure 14 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10First, candidate virtual objects 1402 and 1403 are displayed in the virtual scene 1401. For candidate virtual object 1402, the object status 1404 of candidate virtual object 1402 can be displayed at the associated position of candidate virtual object 1402. The object status 1404 is "invitable". Therefore, candidate virtual object 1402 can be the first virtual object that rides the first virtual pet together with the main virtual object.
[0200] For candidate virtual object 1403, its object status 1405 can be displayed at its associated location. Object status 1405 is "uninvitable," therefore, candidate virtual object 1403 cannot be the first virtual object to ride the first virtual pet alongside the main virtual object. This method increases the diversity of content displayed in the virtual scene, allowing users to intuitively understand the object status of candidate virtual objects, thereby improving the user's gaming experience.
[0201] When displaying the object state of candidate virtual objects Figure 3 Step 103 shown can be implemented as follows: when the crosshair is aimed at the first virtual object and the object status of the first virtual object is in an inviteable state, a ride request is sent to the first virtual object in response to an invitation command for the first virtual object. In this way, users can intuitively know the object status of the candidate virtual objects, thereby improving the accuracy of sending ride requests and enhancing the user's gaming experience.
[0202] In some embodiments, when the crosshair is aimed at the first virtual object and the first virtual object's object status is "uninvitable," a seventh prompt message can be displayed. This seventh prompt message informs the controlling virtual object that it cannot invite candidate virtual objects to ride together. The seventh prompt message can be displayed as a pop-up window or a floating layer, depending on the actual usage requirements. This method further reminds the controlling virtual object that it cannot invite candidate virtual objects to ride together, thereby improving the user's gaming experience.
[0203] In some embodiments, when the crosshair is aimed at the first virtual object, an invitation mark corresponding to the first virtual object is displayed at the aiming position of the crosshair. The invitation mark is used to indicate whether the first virtual object can be invited.
[0204] The invitation marker can be one or more of text markers, graphic markers, and video markers. It can include a first invitation marker and a second invitation marker. The first invitation marker indicates that the first virtual object can be invited, meaning the controlling virtual object can invite the first virtual object to ride together. The second invitation marker indicates that the first virtual object cannot be invited, meaning the controlling virtual object cannot invite the first virtual object to ride together.
[0205] If the first virtual object can be invited, a first invitation marker corresponding to the first virtual object will be displayed at the aiming position of the crosshair. For example, see [link to crosshair]. Figure 15 , Figure 15 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 Second, if the first virtual object 1501 can be invited, the first invitation mark 1503 corresponding to the first virtual object 1501 will be displayed at the aiming position of the crosshair 1502.
[0206] If the first virtual object cannot be invited, a second invitation marker corresponding to the first virtual object will be displayed at the aiming position of the crosshair. For example, see Figure 16 , Figure 16 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 Third, if the first virtual object 1601 cannot be invited, a second invitation mark 1603 corresponding to the first virtual object 1601 will be displayed at the aiming position of the crosshair 1602.
[0207] The first invitation marker and the second invitation marker are different, specifically including at least one of the following: the text corresponding to the first invitation marker is different from the text corresponding to the second invitation marker; the pattern of the first invitation marker is different from the pattern of the second invitation marker; the color of the first invitation marker is different from the color of the second invitation marker; the video of the first invitation marker is different from the video of the second invitation marker. For example, the pattern of the first invitation marker is a triangle, while the pattern of the second invitation marker can be a square; therefore, the patterns of the first invitation marker and the second invitation marker are different.
[0208] The difference between the pattern of the first invitation mark and the pattern of the second invitation mark can include that the pattern filled in the first invitation mark is different from the pattern filled in the second invitation mark. For example, in contrast... Figure 15 and Figure 16It can be seen that the first invitation marker 1503 is not filled with a pattern, while the second invitation marker 1603 is filled with a pattern; the first invitation marker 1503 and the second invitation marker 1603 are different. This method enhances the richness of the content displayed in the virtual scene, and allows users to intuitively identify which virtual objects they can invite to ride together, and which they cannot, enabling them to accurately send ride requests and thus improve the user's gaming experience.
[0209] When the invitation marker indicates that the first virtual object cannot be invited—that is, when the first invitation marker corresponding to the first virtual object is displayed at the aiming position of the crosshair—the first virtual object can be controlled to be in an unselectable state. This is equivalent to being unable to trigger an invitation command for the first virtual object. Alternatively, in response to an invitation command for the first virtual object, an eighth prompt message can be displayed. The eighth prompt message can indicate that the first virtual object cannot be invited. The eighth prompt message may also include the reason why the first virtual object cannot be invited. In this way, users can intuitively understand that the first virtual object cannot be invited, thereby improving the user's gaming experience.
[0210] The following describes the situation where a virtual object cannot be invited. In some embodiments, a virtual object cannot be invited to ride together when it is performing other operations. Other operations can be any operations other than riding together. For example, other operations can be one or more of the following: releasing a skill, learning a skill, or purchasing virtual items. The specific settings can be made according to actual usage requirements.
[0211] In some embodiments, if the virtual object is a non-player virtual object, it cannot be invited to ride together. In some embodiments, if the virtual object is pre-set not to accept ride requests, it cannot be invited to ride together. In some embodiments, conditions for riding together can also be set, and if the virtual object does not meet the conditions for riding together, it can be determined that the virtual object cannot be invited to ride together.
[0212] For example, the condition for co-riding could be that the virtual object is in the target area. If the virtual object is not in the target area, then the condition for co-riding is not met. Another example is that the condition for co-riding could be that the virtual object's level is greater than a level threshold. If the virtual object's level is less than or equal to the level threshold, then the condition for co-riding is not met. The conditions for co-riding can be set according to actual usage needs and are not specifically limited here. In this way, the scenarios for co-riding can be enriched, thereby improving the user's gaming experience.
[0213] against Figure 3 Step 103, as shown, involves sending a ride request to the first virtual object in response to an invitation command for the first virtual object when the invitation marker indicates that the first virtual object can be invited. In other words, when the first invitation marker corresponding to the first virtual object is displayed at the aiming position of the crosshair, a ride request is sent to the first virtual object in response to an invitation command for the first virtual object. This method improves the accuracy of sending ride requests, thereby enhancing the user's gaming experience.
[0214] In some embodiments, a virtual object can be invited to ride together if it is pre-configured to receive ride requests. In some embodiments, conditions for riding together can also be set, and if a virtual object meets the conditions for riding together, it can be determined that the virtual object can be invited to ride together.
[0215] For example, the condition for co-riding could be that the virtual object is located in the target area. If the virtual object is in the target area, then the condition for co-riding is met. Another example is that the condition for co-riding could be that the virtual object's level is greater than a level threshold. If the virtual object's level is greater than the level threshold, then the condition for co-riding is met. The conditions for co-riding can be set according to actual usage needs and are not specifically limited here. In this way, the scenarios for co-riding can be enriched, thereby improving the user's gaming experience.
[0216] In some embodiments, the master virtual object can send riding requests to multiple candidate virtual objects. In some embodiments, different candidate virtual objects can be targeted sequentially. For each targeted candidate virtual object (i.e., the first virtual object), in response to an invitation command for the targeted virtual object, a riding request is sent to the targeted virtual object. In this way, riding requests can be sent to multiple virtual objects, increasing the probability that the riding request will be accepted.
[0217] In some embodiments, there can be multiple crosshairs, which can simultaneously aim at multiple candidate virtual objects. In response to a movement command triggered by a movement control, the multiple crosshairs are controlled to move synchronously within the virtual scene to aim at multiple first virtual objects. In response to an invitation command for multiple first virtual objects, a riding request is sent to each of the first virtual objects. This method enables one-click sending of riding requests to multiple virtual objects, increasing the probability of riding requests being accepted and the overall probability of sending riding requests.
[0218] In some embodiments, in response to an invitation command for a first virtual object, the first electronic device controlling the virtual object can generate a riding request including the identifier of the first virtual object and send the riding request to the server corresponding to the game. The server can determine the second electronic device of the first virtual object based on the identifier of the first virtual object in the riding request and send the riding request to the second electronic device of the first virtual object, thereby displaying the riding request sent by the controlling virtual object in the display interface of the second electronic device of the first virtual object.
[0219] For the second electronic device, the second electronic device can display the display interface of the game application, display a virtual scene in the display interface of the game application, and display the riding request sent by the main virtual object. The riding request can be displayed in the form of a pop-up window or a floating layer. In response to the confirmation instruction for the riding request, the second electronic device can generate the return information for the riding request and send the return information of the riding request to the server. The server can forward the return information of the riding request to the first electronic device.
[0220] Continue to participate Figure 3 In step 104, in response to the first virtual object accepting the riding request, the first virtual object and the main virtual object are controlled to ride the first virtual pet together.
[0221] In some embodiments, if the returned information indicates that the first virtual object has accepted the riding request, in response to the first virtual object accepting the riding request, control is exercised to have the first virtual object and the controlling virtual object jointly ride the first virtual pet. For example, see Figure 17 , Figure 17 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 Fourth, in response to the first virtual object 1702 accepting the riding request, control the first virtual object 1702 and the main virtual object 1703 to ride the first virtual pet 1701 together. In this way, the diversity of interactions between different virtual objects can be improved, the ways in which virtual objects ride together can be enriched, thereby improving the user's gaming experience.
[0222] In some embodiments, the master virtual object can send riding requests to multiple candidate virtual objects, including a first virtual object. For ease of understanding, at least one candidate virtual object also includes a second virtual object. When the crosshair is aimed at the second virtual object, in response to an invitation command for the second virtual object, a riding request is sent to the second virtual object. For details, please refer to [the documentation / reference]. Figure 3 The description of step 103 shown, and the explanation of... Figure 3 The step 103 shown is an equivalent substitution, which is not specifically limited here. The second virtual object can correspond to the third electronic device.
[0223] In some embodiments, in response to an invitation command for a second virtual object, a first electronic device controlling the virtual object can generate a riding request including the identifier of the second virtual object and send the riding request to the server corresponding to the game. The server can determine a third electronic device of the second virtual object based on the identifier of the second virtual object in the riding request and send the riding request to the third electronic device of the second virtual object, thereby displaying the riding request sent by the controlling virtual object in the display interface of the third electronic device of the second virtual object.
[0224] For the third electronic device, the third electronic device can display the display interface of the game application, display a virtual scene in the display interface of the game application, and display the riding request sent by the main virtual object. The riding request can be displayed in the form of a pop-up window or a floating layer. In response to the confirmation command for the riding request, the third electronic device can generate the return information for the riding request and send the return information of the riding request to the server. The server can forward the return information of the riding request to the first electronic device.
[0225] In some embodiments, the following describes the situation after sending a riding request to multiple candidate virtual objects in conjunction with the first virtual object and the second virtual object. The virtual object that rides the first virtual pet with the main virtual object can be determined by one or more of the following: the time when the riding request is accepted, the distance between the location of the riding request and the location of the main virtual object, the relationship between the virtual object accepting the riding request and the main virtual object, the intimacy between the virtual object accepting the riding request and the main virtual object, and the level of the virtual object accepting the riding request.
[0226] In some embodiments, in response to a first virtual object accepting a riding request at a first moment and a second virtual object accepting a riding request at a second moment, with the first moment being earlier than the second moment, the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0227] In some embodiments, in response to a first virtual object accepting a riding request at a first moment and a second virtual object accepting a riding request at a second moment, with the first moment being later than the second moment, the second virtual object is controlled to ride the first virtual pet together with the controlling virtual object. That is, when both the first and second virtual objects accept the riding request, the virtual object that accepts the riding request first can be controlled to ride the first virtual pet together with the controlling virtual object. This enriches the scenarios of riding the first virtual pet together and improves the user's gaming experience.
[0228] In some embodiments, the difference between the first moment and the second moment is less than a difference threshold. In response to an invitation command for multiple candidate virtual objects, a riding request is sent to the virtual object corresponding to the invitation command. A time interval is preset, with the time interval starting from the time point when the riding request is sent. The duration of the time interval is a preset duration. If multiple candidate virtual objects accept the riding request within the time interval, the virtual object that accepts the riding request earliest is controlled to ride the first virtual pet together with the main virtual object. In this way, the situations of riding the first virtual pet together can be enriched, and the user's game experience can be improved.
[0229] If a candidate virtual object accepts a riding request within a time interval, then the virtual object that accepts the riding request within the time interval and the main virtual object ride the first virtual pet together. In this way, the scenarios of riding the first virtual pet together can be enriched, and the user's gaming experience can be improved.
[0230] In some embodiments, in response to a first virtual object accepting a riding request at a first location, a second virtual object accepting a riding request at a second location, and the distance between the first location and the master virtual object being less than the distance between the second location and the master virtual object, the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0231] In some embodiments, in response to a first virtual object accepting a riding request at a first location and a second virtual object accepting a riding request at a second location, and the distance between the second location and the master virtual object being less than the distance between the first location and the master virtual object, the second virtual object is controlled to ride the first virtual pet together with the master virtual object. That is, when both the first and second virtual objects accept riding requests, the virtual object closer to the master virtual object can be controlled to ride the first virtual pet together with the master virtual object. This enriches the possibilities of riding the first virtual pet together and improves the user's gaming experience.
[0232] For example, see Figure 18 , Figure 18 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10Fifth, in the virtual scene 1801, a first virtual object 1802, a second virtual object 1805, a master virtual object 1804, and a first virtual pet 1803 are displayed. The master virtual object 1804 rides the first virtual pet 1803. Responding to the first virtual object 1802 accepting a riding request at a first position and the second virtual object 1805 accepting a riding request at a second position, with the distance between the second position and the master virtual object 1804 being less than the distance between the first position and the master virtual object 1804, the system controls the second virtual object 1805 and the master virtual object 1804 to ride the first virtual pet 1803 together. This method enriches the scenarios of riding the first virtual pet together and improves the user's gaming experience.
[0233] In the interaction method in the virtual scene provided in the embodiments of this application, when both the first virtual object and the second virtual object accept the riding request, the virtual object closer to the main virtual object can be controlled to ride the first virtual pet together with the main virtual object. In this way, the situations of riding the first virtual pet together can be enriched, and the user's game experience can be improved.
[0234] In some embodiments, if both the first virtual object and the second virtual object accept the riding request, and if the first virtual object has a friend relationship with the master virtual object, but the second virtual object does not have a friend relationship with the master virtual object, the first virtual object and the master virtual object can be controlled to ride the first virtual pet together.
[0235] In some embodiments, if both the first virtual object and the second virtual object accept the riding request, and if the first virtual object and the main virtual object do not have a friend relationship, but the second virtual object and the main virtual object do have a friend relationship, the second virtual object and the main virtual object can be controlled to ride the first virtual pet together.
[0236] In some embodiments, the relationship between the first virtual object and the master virtual object can be set according to actual usage needs. In the interaction method in the virtual scene provided in this application embodiment, the virtual object that rides the first virtual pet together with the master virtual object can be determined by combining the relationship between the virtual object that accepts the riding request and the master virtual object. In this way, the situations of riding the first virtual pet together can be enriched, and the user's gaming experience can be improved.
[0237] In some embodiments, if both the first virtual object and the second virtual object accept the riding request, and the intimacy between the first virtual object and the master virtual object is greater than the intimacy between the second virtual object and the master virtual object, the first virtual object and the master virtual object can be controlled to ride the first virtual pet together.
[0238] In some embodiments, if both the first virtual object and the second virtual object accept the riding request, and the intimacy between the first virtual object and the master virtual object is less than that between the second virtual object and the master virtual object, the second virtual object and the master virtual object can be controlled to ride the first virtual pet together.
[0239] In some embodiments, the intimacy between the virtual object and the main virtual object can be determined by combining one or more of the following: the number of interactions, the number of days since the friendship was established, and the number of days of the conversation. The specific settings can be customized according to actual usage needs. In the interaction method within the virtual scene provided in this application embodiment, the virtual object that rides the first virtual pet together with the main virtual object can be determined by combining the intimacy between the virtual object accepting the riding request and the main virtual object. This approach enriches the scenarios of riding the first virtual pet together and improves the user's gaming experience.
[0240] In some embodiments, when both the first virtual object and the second virtual object accept the riding request, if the level of the first virtual object is greater than the level of the second virtual object, the first virtual object and the controlling virtual object can be controlled to ride the first virtual pet together. In some embodiments, when both the first virtual object and the second virtual object accept the riding request, if the level of the first virtual object is less than the level of the second virtual object, the second virtual object and the controlling virtual object can be controlled to ride the first virtual pet together.
[0241] In the virtual scene interaction method provided in this application embodiment, the virtual objects that ride the first virtual pet together with the main virtual object can be determined by combining the level of the virtual objects. This enriches the scenarios of riding the first virtual pet together and improves the user's gaming experience.
[0242] Regarding the situation where the virtual object that rides the first virtual pet with the main virtual object is determined by any one of the following factors: the time of accepting the riding request, the distance between the location of accepting the riding request and the location of the main virtual object, the relationship between the virtual object accepting the riding request and the main virtual object, the intimacy between the virtual object accepting the riding request and the main virtual object, and the level of the virtual object accepting the riding request, other methods can be used to determine the virtual object that rides the first virtual pet with the main virtual object if they are equal.
[0243] For example, in some embodiments, in response to a first virtual object accepting a riding request at a first moment and a second virtual object accepting a riding request at a second moment, and the first moment being equal to the second moment, the virtual object that will ride the first virtual pet together with the controlling virtual object is further determined by the position of the object accepting the riding request. In response to the first virtual object accepting a riding request at a first position and the second virtual object accepting a riding request at a second position, and the distance between the first position and the controlling virtual object being less than the distance between the second position and the controlling virtual object, the first virtual object is controlled to ride the first virtual pet together with the controlling virtual object. In this way, the object that will ride the first virtual pet together with the controlling virtual object can be accurately determined, improving the accuracy of joint riding.
[0244] The time of accepting the riding request, the distance between the location of accepting the riding request and the location of the master virtual object, the relationship between the virtual object accepting the riding request and the master virtual object, the intimacy level between the virtual object accepting the riding request and the master virtual object, and the level of the virtual object accepting the riding request are all elements that determine the virtual object that rides the first virtual pet together with the master virtual object.
[0245] By considering at least two of the following factors to determine which virtual object will share the first virtual pet with the main virtual object: the time of accepting the riding request, the distance between the location accepting the riding request and the location of the main virtual object, the relationship between the virtual object accepting the riding request and the main virtual object, the intimacy level between the virtual object accepting the riding request and the main virtual object, and the level of the virtual object accepting the riding request, different elements can be used to determine the candidate virtual objects that will share the first virtual pet with the main virtual object. If the candidate virtual objects corresponding to different elements are consistent, then the candidate virtual object is determined to be the virtual object that will share the first virtual pet with the main virtual object. In this way, the accuracy of determining which virtual object will share the first virtual pet with the main virtual object can be improved.
[0246] When different elements correspond to different candidate virtual objects, and different elements have priorities, the candidate virtual object corresponding to the element with the highest priority can be determined as the virtual object that rides the first virtual pet together with the main virtual object. The priority can be set according to actual usage requirements.
[0247] For example, the priority of accepting a riding request is higher than the distance between the location of the request and the location of the main virtual object; the priority of the distance between the request location and the main virtual object is higher than the relationship between the requesting virtual object and the main virtual object; the priority of the relationship between the requesting virtual object and the main virtual object is higher than the intimacy level between them; and the priority of the intimacy level is higher than the level of the requesting virtual object. In this way, the first virtual pet to ride together with the main virtual object can be accurately determined, improving the accuracy of co-riding.
[0248] In some embodiments, the number of candidate virtual objects can be counted, and virtual objects with a number greater than a threshold can be identified as those that will ride the first virtual pet together with the main virtual object. For example, the virtual object with the largest number of candidate virtual objects can be identified as the one that will ride the first virtual pet together with the main virtual object. After identifying the virtual objects that will ride the first virtual pet together with the main virtual object, the virtual object can be controlled to ride the first virtual pet together with the main virtual object. In this way, the accuracy of identifying virtual objects that will ride the first virtual pet together with the main virtual object can be improved.
[0249] The interaction method in the virtual scene provided in this application embodiment can use multiple methods to determine the virtual object that rides the first virtual pet together with the main virtual object. This can improve the accuracy of determining the virtual object and enrich the situations of riding the first virtual pet together, thereby improving the user's gaming experience.
[0250] The interaction method in the virtual scene provided in this application embodiment can display a virtual scene, which includes a master virtual object and at least one candidate virtual object. The master virtual object has a first virtual pet, and the at least one candidate virtual object includes the first virtual object. In response to the activation of the riding invitation function in the virtual scene, a crosshair for aiming in the virtual scene is displayed, which can improve the richness of the content displayed in the virtual scene. When the crosshair is aimed at the first virtual object, in response to the invitation command for the first virtual object, a riding request is sent to the first virtual object. In response to the first virtual object accepting the riding request, the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0251] In this embodiment, a riding request can be sent using an aiming method. For the user controlling the main virtual object, the user can control the crosshair to aim at the virtual object they want to ride together, increasing the autonomy in sending riding requests and enriching the diversity of interaction methods. Only when the first virtual object accepts the riding request will the user control the first virtual object and the main virtual object to ride the first virtual pet together. For the user controlling the first virtual object, they can determine whether to accept the riding request based on actual usage needs, increasing the autonomy in accepting riding requests, enhancing the diversity of interactions between different virtual objects, enriching the ways virtual objects can ride together, improving the resource utilization of electronic devices, thereby improving the user's gaming experience and solving technical problem 1.
[0252] In some embodiments, Figure 3 Following step 103, that is, after sending a ride request to the first virtual object, in response to the control command for the crosshair, the crosshair is controlled to aim at the first virtual object again. In response to the re-triggered invitation command for the first virtual object, if the time difference between the two invitation commands executed for the first virtual object is less than a time difference threshold, a first prompt message is displayed. The first prompt message indicates that the frequency of sending ride requests has reached a frequency threshold and that ride requests cannot be sent again.
[0253] For example, see Figure 19 , Figure 19 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 Sixth, in virtual scene 1901, a first virtual object 1902, a master virtual object 1904, and a first virtual pet 1903 are displayed. The master virtual object 1904 rides the first virtual pet 1903. In response to a re-triggered invitation command to the first virtual object 1902, if the time difference between the two invitation commands executed for the first virtual object 1902 is less than a time difference threshold, a first prompt message 1905 is displayed. The first prompt message 1905 is "Frequent operation, please try again later." Here, "frequent operation" means that the frequency of sending riding requests has reached the frequency threshold, and "please try again later" indicates that riding requests cannot be sent again at present. In this way, users can intuitively know whether the riding request was sent successfully and the reason for the failure of the riding request, which can improve the user experience.
[0254] In some embodiments, the first notification message can be displayed as a pop-up window or a floating layer. The first notification message can have a first display duration, and can be automatically canceled when the first display duration reaches the specified duration. For example, the first notification message could be "The frequency of sending ride requests has reached the frequency threshold; ride requests cannot be sent again." The first notification message can be automatically canceled when the first display duration reaches 5 seconds (the first duration). In this way, users can intuitively know whether a ride request was successfully sent and the reason for any failure, thus improving the user experience.
[0255] In some embodiments, the first prompt message may further include a first countdown. In response to the first countdown reaching 0, a re-invitation control for the first prompt message is displayed, or the re-invitation control is selected. In response to a triggering operation on the re-invitation control, an invitation command for the first virtual object can be triggered again. In response to the invitation command for the first virtual object, a riding request is sent to the first virtual object. In response to the first virtual object accepting the riding request, the first virtual object and the main virtual object are controlled to ride the first virtual pet together. This approach helps users improve the accuracy of resending riding requests, thereby enhancing the user's gaming experience.
[0256] In some embodiments, the first prompt message also includes a cancel control. In response to a triggering operation on the cancel control, the first prompt message can be canceled. In this way, the first prompt message can be canceled according to the user's actual usage needs, thereby improving the user's gaming experience.
[0257] In some embodiments, Figure 3 After step 103 shown, that is, after sending a ride request to the first virtual object, in the absence of the crosshair being aimed at any candidate virtual object, in response to the invitation command, a second prompt message is displayed, which is used to indicate that there is no invited candidate virtual object.
[0258] In some embodiments, when there are candidate virtual objects in the virtual scene, if the crosshair is not aimed at any candidate virtual object, it indicates that the user's movement of the crosshair is inaccurate. In response to the invitation command, a second prompt message is displayed. The second prompt message is used to indicate that there are no invited candidate virtual objects. In this case, the second prompt message may also include movement prompt message, which is used to assist the user in moving the crosshair. The movement prompt message can be determined based on the relative position of the position aimed at by the crosshair and the candidate virtual object closest to the crosshair.
[0259] For example, see Figure 20 , Figure 20 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 7. Regarding the situation where candidate virtual objects 2003 exist in virtual scene 2001, if the crosshair 2002 is not aimed at any candidate virtual object, it indicates that the user's movement of the crosshair is inaccurate. Since the crosshair is not aimed at any virtual object, there are no invited candidate virtual objects. In response to the invitation command, a second prompt message 2004 is displayed: "Not aimed at a virtual object, try moving to the left." Here, "Not aimed at a virtual object" indicates that there are no invited candidate virtual objects, and "try moving to the left" is a movement prompt. In this way, users can intuitively know whether the ride request was sent successfully and the reason for the failure, thus improving the user experience.
[0260] In some embodiments, when there are no candidate virtual objects in the virtual scene, and the crosshair is not aimed at any candidate virtual object, a second prompt message is displayed in response to the invitation command. The second prompt message indicates that there are no invited candidate virtual objects in the virtual scene. In this case, the second prompt message may further include location guidance information to guide the main virtual object to a location where candidate virtual objects exist. In this way, users can intuitively know whether the ride request was successfully sent and the reason for any failure, thus improving the user experience.
[0261] In some embodiments, for Figure 3 Step 104, as shown, responds to the first virtual object accepting a riding request within a target time period, controlling the first virtual object and the main virtual object to ride the first virtual pet together. That is, there is a corresponding target time period for each riding request. The target time period can be preset, or determined based on one or more of the following: the number of riding requests sent, the historical duration of riding requests received from the main virtual object, and the level of the first virtual pet. The duration corresponding to the target time period is greater than or equal to the historical duration, thereby increasing the probability of riding requests being accepted and improving the user's gaming experience.
[0262] In some embodiments, if the first virtual object does not accept a ride request within a target time period, it indicates that the first virtual object has a low willingness to accept the ride request, and therefore the ride request for the first virtual object can be cancelled. In this way, the ride request for the first virtual object can be automatically cancelled, which improves the cleanliness of the display interface for the terminal corresponding to the first virtual object, thereby enhancing the user's gaming experience.
[0263] In some embodiments, after controlling the first virtual object and the master virtual object to ride the first virtual pet together, a disband control can be displayed in the interface displaying the virtual scene. In response to the triggering operation of the disband control, the first virtual object and the master virtual object are removed from the first virtual pet.
[0264] For example, see Figure 21 , Figure 21 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 8. When the first virtual object 2102 and the main virtual object 2103 ride the first virtual pet 2101 together, a disband control 2104 is displayed in the virtual scene interface. In response to a trigger operation on the disband control 2104, the first virtual object 2102 and the main virtual object 2103 are removed from the first virtual pet 2101. In this way, it is possible to cancel the riding of the first virtual pet by virtual objects (including the first virtual object and the main virtual object) with one click, which can improve the efficiency of canceling the riding of the first virtual pet by virtual objects.
[0265] In some embodiments, the first virtual object and the main virtual object are controlled to ride the first virtual pet together. A pet switching control is displayed in the interface of the virtual scene. In response to the trigger operation of the pet switching control, the first virtual object and the main virtual object are removed from the first virtual pet, the first virtual pet is switched to the second virtual pet, and the main virtual object is controlled to ride the second virtual pet.
[0266] In some embodiments, a pet switching control may be displayed in the virtual scene. In response to a trigger operation on the pet switching control, at least one virtual pet owned by the player character may be displayed. In response to a selection operation on the second virtual pet among the at least one virtual pet, it is equivalent to responding to a trigger operation on the pet switching control, removing the first virtual object and the main virtual object from the first virtual pet, switching the first virtual pet to the second virtual pet, and controlling the main virtual object to ride the second virtual pet.
[0267] In some embodiments, multiple pet switching controls can be displayed in the virtual scene. Each pet switching control displays the identification information of a virtual pet. One pet switching control corresponds to one virtual pet, and one virtual pet corresponds to one identification information. The identification information can be one or more of the following: the virtual pet's avatar, the virtual pet's name, and the virtual pet's unique identifier. The specific settings can be configured according to actual usage requirements.
[0268] In response to the trigger operation of the pet switching control for the second virtual pet, it is equivalent to removing the first virtual object and the main virtual object from the first virtual pet, switching the first virtual pet to the second virtual pet, and controlling the main virtual object to ride the second virtual pet.
[0269] For example, see Figure 22 , Figure 22 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 10 9. The first virtual object 2202 and the main virtual object 2203 ride the first virtual pet 2201 together. Multiple pet switching controls can be displayed in the virtual scene. Figure 22 Only the pet switching control 2204 is marked. Each pet switching control displays the avatar of a virtual pet. The pet switching control 2204 is used to switch the first virtual pet 2201 to the second virtual pet 2205.
[0270] In response to the triggering operation of the pet switching control 2204 for the second virtual pet 2205, the first virtual object 2202 and the main virtual object 2203 are removed from the first virtual pet 2201, the first virtual pet 2201 is switched to the second virtual pet 2205, and the main virtual object 2203 is controlled to ride the second virtual pet 2205. In this way, the virtual pet ridden by the main virtual object can be switched, improving the interaction between the main virtual object and the virtual pet, thereby enhancing the user's gaming experience.
[0271] In some embodiments, the pet switching control can be a pet control. The pet control is described below. Multiple pet controls are displayed in the virtual scene interface. There is a one-to-one correspondence between the pet control and the virtual pet. Each pet control can display the identification information of the corresponding virtual pet. The identification information can be one or more of the following: the name of the virtual pet, the avatar of the virtual pet, and the unique identifier of the virtual pet. No specific limitation is made here.
[0272] In some embodiments, after controlling the first virtual object and the master virtual object to ride the first virtual pet together, in response to the selection instruction for the pet control corresponding to the second virtual pet, the first virtual object and the master virtual object are removed from the first virtual pet, the first virtual pet is switched to the second virtual pet, and the master virtual object is controlled to ride the second virtual pet.
[0273] In some embodiments, the second virtual pet resides within a second virtual container. In response to a selection command for the pet control corresponding to the second virtual pet, the first virtual object and the main virtual object can be removed from the first virtual pet, effectively discontinuing the shared riding. The main virtual object is then controlled to hold the second virtual container corresponding to the second virtual pet. In response to a throw command triggered by the main virtual object, the main virtual object throws the second virtual container into the virtual scene. Upon the second virtual container being thrown into the virtual scene, the second virtual pet is displayed in the virtual scene. Essentially, a selection command for the pet control can discontinuing the shared riding.
[0274] In some embodiments, a throwing command can be triggered by a throwing control. In response to a selection command for the pet control corresponding to the virtual pet, the virtual pet's identification information can be displayed in the associated area of the throwing control. Based on the throwing control, in response to a throwing command triggered on the main virtual object, the main virtual object is controlled to throw the virtual container into the virtual scene. In response to the virtual container being thrown into the virtual scene, the virtual pet is controlled to be displayed in the virtual scene. The aforementioned virtual pet can correspond to either a first virtual pet or a second virtual pet, and equivalent substitutions are possible.
[0275] In some embodiments, in response to a selection instruction for the pet control corresponding to the virtual pet, the throwing control can be displayed in the seventh style. In response to a throwing instruction triggered for the main virtual object, the display style of the throwing control can be switched from the seventh style to the eighth style. That is, after the virtual pet is displayed, the throwing control can be displayed in the eighth style.
[0276] In this game, the seventh style displays a throwing control used to throw virtual containers, while the eighth style displays a throwing control that allows the user to retrieve the corresponding virtual pet from the virtual container. Accordingly, by using the eighth style to display the throwing control to retrieve the first virtual pet and remove the first virtual object and the main virtual object from it, the methods for disbanding shared riding can be enriched, thereby improving the user's gaming experience. The seventh and eighth styles differ; for details, please refer to the explanations for the fifth and sixth styles and make equivalent substitutions. Further details will not be elaborated upon here.
[0277] When displaying the second virtual pet, its riding controls can be displayed simultaneously. This means displaying the second virtual pet and its riding controls within the virtual scene. In response to triggering the riding controls, the main virtual object can be controlled to ride the second virtual pet. This allows for the switching of the first virtual pet to the second, and the control of the main virtual object to ride the second virtual pet. This method enables switching between the virtual pets ridden by the main virtual object, enhancing the interaction between them and improving the user's gaming experience.
[0278] In some embodiments, after controlling the first virtual object and the master virtual object to ride the first virtual pet together, a removal control is displayed in the interface of the virtual scene. In response to the triggering operation of the removal control, the first virtual object is removed from the first virtual pet so that the master virtual object can ride the first virtual pet alone.
[0279] For example, see Figure 23 , Figure 23 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 The first virtual object 2302 and the main virtual object 2303 ride the first virtual pet 2301 together. A removal control 2304 is displayed in the virtual scene interface. In response to a trigger operation on the disband control 2304, the first virtual object 2302 is removed from the first virtual pet 2301, allowing the main virtual object 2303 to ride the first virtual pet 2301 alone. This method enables one-click removal of the first virtual object, effectively canceling the shared riding of the first virtual pet and allowing the main virtual object to ride the first virtual pet alone, thus improving the user's gaming experience.
[0280] In some embodiments, before controlling the master virtual object to ride the first virtual pet, the riding control can be displayed in a first style. After controlling the master virtual object to ride the first virtual pet, the display style of the riding control can be switched from the first style to the second style. In response to a trigger operation on the riding control in the second style, the master virtual object is removed from the first virtual pet.
[0281] The riding control, displayed in the first style, is used to control the main virtual object to ride the first virtual pet, while the riding control, displayed in the second style, is used to remove the main virtual object from the first virtual pet. The two controls serve different purposes; using different styles allows for both riding and removing the virtual pet, improving the cleanliness of the virtual scene's interface.
[0282] The first style and the second style are different. In some embodiments, at least one of the following may be different: the icon of the first style and the icon of the second style; the text of the first style and the text of the second style; the display area corresponding to the first style and the display area corresponding to the second style; the color of the first style and the color of the second style.
[0283] In some embodiments, after controlling the first virtual object and the main virtual object to ride the first virtual pet together, the first virtual pet is controlled to move within a target area. The target area can be a mutually visible area where the main virtual object and the candidate virtual objects can see each other. The area of the target area can be set according to actual usage requirements. The target area can be a regular shape or an irregular shape. If the target area is a regular shape, for example, a circle, the radius and diameter of the target area can be set according to actual usage requirements.
[0284] The first virtual pet's movement within the target area can be achieved through movement controls. When the first virtual pet moves within the target area, it is equivalent to the first virtual object and the main virtual object moving synchronously within the target area, which can improve the interaction between the first virtual object and the main virtual object and enhance the user's gaming experience.
[0285] When the distance between the first virtual pet and the boundary of the target area is less than the second distance threshold, a third prompt message is displayed. This third prompt message indicates that if the first virtual pet moves out of the target area, the shared riding relationship between the first virtual object and the main virtual object will be terminated. The third prompt message can be displayed as a pop-up window or a floating layer.
[0286] For example, see Figure 24 , Figure 24 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 First, the first virtual object 2402 and the main virtual object 2403 ride the first virtual pet 2401 together. When the distance between the first virtual pet 2401 and the boundary 2405 of the target area is less than a second distance threshold, a third prompt message 2406 is displayed, which reads "Leaving the target area ahead, the joint ride will be discontinued." In this way, users can easily and intuitively know whether they will leave the target area, while reducing the user's sense of separation and loss when leaving the target area, and establishing psychological expectations when leaving the target area.
[0287] In some embodiments, if there is activity in the target area, the activity is an activity involving shared riding, and the third prompt information may further include an activity start prompt, which is used to indicate that an activity is about to begin. In this way, users can easily and intuitively understand the activities in the target area, thereby improving the user's gaming experience.
[0288] In some embodiments, when the distance between the first virtual pet and the boundary of the target area is less than a second distance threshold, a boundary effect of the target area is displayed. This boundary effect can enhance the richness and diversity of the displayed content in the virtual scene, increasing visual impact and engagement. In this way, the diversity of content displayed in the virtual scene can be improved, and the user's gaming experience can be enhanced based on visual impact.
[0289] Boundary effects can be one or more of the following: lighting effects, particle effects, animation effects, interactive effects with virtual scenes, and sound effects. Lighting effects can include one or more of the following: adding a halo effect to a preset range of the target area, converging light rays from various directions of the virtual scene to the target area of the virtual pet, and adding lighting and shadow effects within a preset range of the target area.
[0290] Particle effects can be particles displayed within a preset range on the target area. These particles can be stars, snowflakes, petals, etc., and can move along preset trajectories. Particle effects can also be trajectories composed of particles. Animation effects can be animations that trigger interactive actions on the target area. Interaction effects with the virtual scene can be changes in the environment or weather within the virtual scene when an interactive action is performed on the target area. Sound effects can represent sound effects through visual effects; for example, adding the effect of sound waves propagating through the air to a virtual pet. Specific settings can be configured according to actual usage needs and are not specifically limited here.
[0291] In some embodiments, the size of the second distance threshold is positively correlated with the size of the target region; that is, the larger the second distance threshold, the larger the area of the target region, and the smaller the second distance threshold, the smaller the area of the target region. When the target region is circular, the larger the second distance threshold, the larger the diameter of the target region, and the smaller the second distance threshold, the smaller the diameter of the target region. Of course, the target region can also be other regular shapes, and the specific settings can be made according to actual usage requirements.
[0292] In some embodiments, in response to the duration of the distance being less than a second distance threshold reaching a duration threshold, the display style of the third prompt message is switched from the third style to the fourth style, and the prompt intensity corresponding to the fourth style is higher than the prompt intensity corresponding to the third style.
[0293] Display styles can include one or more of the following: bold, italic, font size, font color, font background fill color, display area of the third prompt, and the graphic corresponding to the third prompt. These can be set according to actual usage requirements. The third and fourth styles differ; please refer to the explanations for the first and second styles for details. Specific limitations are not provided here.
[0294] For example, the higher cue intensity of the fourth style compared to the third style could mean that the text corresponding to the third cue message is not bolded in the third style, while the text corresponding to the third cue message is bolded in the fourth style. In this way, the cue intensity of the third cue message can be increased, thereby more intuitively prompting the user with the content corresponding to the third cue message. This can increase the diversity of the displayed third cue message and also improve the user's gaming experience.
[0295] In some embodiments, in response to the distance being less than a second distance threshold and the distance gradually decreasing, the prompt intensity corresponding to the display style of the third prompt information can be gradually increased, thereby increasing the prompt intensity of the third prompt information, thereby further intuitively prompting the user with the content corresponding to the third prompt information, increasing the diversity of the displayed third prompt information, and also improving the user's gaming experience.
[0296] In some embodiments, after controlling the first virtual object and the master virtual object to ride the first virtual pet together, a riding request sent by the third virtual object is displayed. The riding request is used to request to join the joint riding of the first virtual pet. In response to the confirmation instruction for the riding request, the third virtual object is controlled to ride the first virtual pet together with the first virtual object and the master virtual object.
[0297] In some embodiments, a corresponding confirmation control exists for the riding request. In response to a trigger operation on the confirmation control, a confirmation command for the riding request can be triggered. In response to the confirmation command for the riding request, the third virtual object, the first virtual object, and the main virtual object are controlled to ride the first virtual pet together. This method increases the number of virtual objects that can ride together. Of course, the number of virtual objects that can ride together can also be set to a positive integer greater than 3 according to actual usage needs, which can enrich the interaction between the main virtual object and other virtual objects, thereby improving the user's gaming experience.
[0298] In some embodiments, in response to a determination instruction for a riding request, a first virtual object can be removed from the first virtual pet, and a third virtual object can be controlled to ride the first virtual pet together with the main virtual object. In this way, the virtual objects that are ridden together can be replaced, thereby enriching the interaction between the main virtual object and other virtual objects and improving the user's gaming experience.
[0299] In some embodiments, in response to a rejection command for a riding request, the first virtual object and the controlling virtual object can be kept riding the first virtual pet together. In this way, the user can control the number of virtual objects riding together based on actual usage requests, thereby improving the user's gaming experience.
[0300] In some embodiments, the riding positions of the first virtual object and the main virtual object when riding the first virtual pet differ for different virtual pets. In some embodiments, there may be at least two candidate riding positions for the first virtual pet. In response to a selection command for a target riding position among the at least two candidate riding positions, either the main virtual object or the first virtual object can be controlled to ride the first virtual pet at the target riding position. In this way, users can set the riding position according to their actual needs, thereby improving the user's gaming experience.
[0301] In some embodiments, the same virtual pet may have different forms, each corresponding to a different riding position. At least one candidate form of the virtual pet can be displayed. In response to a selection operation for a target form among the at least one candidate form, the virtual object can be controlled to ride the virtual pet in the target form. The number of virtual objects can be one or more. In this way, users can set the form of the virtual pet according to their actual needs, thereby enabling them to set the riding position and improving their gaming experience.
[0302] The following describes the interaction method in the virtual scene provided in the embodiments of this application. As mentioned above, the electronic device implementing the method of using virtual props in the embodiments of this application can be a terminal, a server, or a combination of both. See also Figure 25 , Figure 25 This is a flowchart illustrating the interaction method in a virtual scene provided in this application embodiment, shown below. Figure 25 The steps shown are illustrated using a terminal as an example to explain the interaction method in a virtual scene provided in the embodiments of this application.
[0303] In step 2501, the virtual scene is displayed.
[0304] Among them, step 2501 and Figure 3 The steps shown are identical to 101, the only difference being the electronic devices displayed. The electronic device corresponding to step 2501 is the second electronic device, while the electronic device corresponding to step 101 is the first electronic device. The virtual scene includes a first virtual object, which corresponds to the second electronic device.
[0305] In step 2502, the riding request sent by the master virtual object is displayed.
[0306] The riding request is used to invite the first virtual object and the main virtual object to ride the first virtual pet of the main virtual object. The riding request can be displayed with a confirm control and a refuse control. In response to the trigger operation of the refuse control, a refuse instruction for the riding request can be triggered, and the riding request sent by the main virtual object can be canceled.
[0307] In some embodiments, during the display of a ride request, a countdown timer for the ride request is displayed. When the countdown timer reaches zero, it indicates that the user controlling the first virtual object has a low willingness to accept the ride request. Therefore, the display of the ride request can be canceled. In this way, the display of the ride request can be automatically canceled, which can improve the cleanliness of the virtual scene interface and enhance the user's gaming experience.
[0308] In step 2503, in response to the confirmation instruction for the riding request, the first virtual object is transmitted to the location of the first virtual pet, and the first virtual object and the main virtual object are controlled to ride the first virtual pet together.
[0309] In some embodiments, in response to a triggering operation on a designated control, a confirmation command for a riding request can be triggered, which can transport the first virtual object to the location of the first virtual pet and control the first virtual object and the main virtual object to ride the first virtual pet together. The confirmation command can also be triggered via keyboard shortcuts, voice commands, body language, etc., without specific limitations here.
[0310] In some embodiments, the first virtual object and the first virtual pet are located in different positions. In order to enable the first virtual object and the main virtual object to ride the first virtual pet together, the process of moving the first virtual object from its current position to the location of the first virtual pet can be displayed in the virtual scene, thereby improving the diversity of content displayed in the virtual scene.
[0311] In some embodiments, for a first virtual pet, there may be at least two candidate riding positions. In response to a selection instruction for a target riding position among the at least two candidate riding positions, a first virtual object can be transported to the target riding position of the first virtual pet, and the first virtual object and the main virtual object can be controlled to ride the first virtual pet together. In this way, users can set the riding position according to their actual needs, thereby improving the user's gaming experience.
[0312] The interaction method in the virtual scene provided in this application embodiment can display a virtual scene, which includes a master virtual object and at least one candidate virtual object. The master virtual object has a first virtual pet, and the at least one candidate virtual object includes the first virtual object. In response to the activation of the riding invitation function in the virtual scene, a crosshair for aiming in the virtual scene is displayed, which can improve the richness of the content displayed in the virtual scene. When the crosshair is aimed at the first virtual object, in response to the invitation command for the first virtual object, a riding request is sent to the first virtual object. In response to the first virtual object accepting the riding request, the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0313] In this embodiment, a riding request can be sent using an aiming method. For the user controlling the main virtual object, the user can control the crosshair to aim at the virtual object they want to ride together, increasing the autonomy in sending riding requests and enriching the diversity of interaction methods. Only when the first virtual object accepts the riding request will the user control the first virtual object and the main virtual object to ride the first virtual pet together. For the user controlling the first virtual object, they can determine whether to accept the riding request based on actual usage needs, increasing the autonomy in accepting riding requests, enhancing the diversity of interactions between different virtual objects, enriching the ways virtual objects can ride together, improving the resource utilization of electronic devices, thereby improving the user's gaming experience and solving technical problem 1.
[0314] In some embodiments, a leave control is displayed in the virtual scene interface, and in response to a trigger operation on the leave control, the first virtual object is controlled to leave the first virtual pet. In this way, it is possible to cancel shared riding based on the user's actual needs, thereby improving the user experience.
[0315] In some embodiments, to facilitate intuitive access to user information for both the master virtual object and the user corresponding to the first virtual object, information about the first virtual object can be displayed in the associated area of the first electronic device corresponding to the master virtual object after both the master virtual object and the first virtual object ride the first virtual object. This information may include one or more of the following: the first virtual object's name, level, title, affiliated organization, and gender; these are not specifically limited here. The associated area of the virtual object can be a pre-set area or an area where the distance to the virtual object is less than a third distance threshold.
[0316] In the display interface of the second electronic device corresponding to the first virtual object, after both the master virtual object and the first virtual object ride the first virtual object, the master virtual object's information can be displayed in the associated area. This information may include one or more of the following: the master virtual object's name, level, title, affiliated organization, and gender; no specific limitations are imposed here. This approach increases the diversity of content displayed in the virtual scene and enhances the user's gaming experience.
[0317] The following are examples illustrating the content displayed by the second electronic device; for example, see [link to example]. Figure 26 , Figure 26 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 Second, the first virtual object 2601 is displayed on the display interface of the second electronic device, along with the riding request 2602 sent by the main virtual object. For the riding request 2602, a countdown message 2603 is displayed, including the countdown timer and a description of the countdown. The countdown message 2603 states "Expires after countdown ends (15 seconds)". When the countdown reaches zero, the display of the riding request 2602 is canceled. Figure 26 (The process is illustrated in the image).
[0318] join Figure 27 , Figure 27 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 Third, the first virtual object 2702 and the main virtual object 2703 ride the first virtual pet 2701 together. In the interface displaying the virtual scene, a disengagement control 2704 is displayed. In response to a trigger operation on the disengagement control 2704, the first virtual object 2702 is controlled to disengage from the first virtual pet 2704, allowing the main virtual object 2703 to ride the first virtual pet 2701 alone. Figure 27 (The image shows the process of leaving). In this way, it is possible to leave the shared ride with one click, which can improve the user's gaming experience.
[0319] In some embodiments, a list of objects to be requested can be displayed. These objects are those waiting for other virtual objects to join in riding. The list shows at least one object to be requested. In response to a selection instruction for a target object among the at least one object to be requested, a first virtual object can be controlled to send a riding request to the target object. In response to the target object agreeing to the riding request, i.e., in response to a confirmation instruction for the riding request, the first virtual object and the target object can jointly ride the target object's virtual pet. This method enables the active sending of riding requests, improving the user's gaming experience.
[0320] To facilitate understanding of the interaction methods of the virtual scenes provided in the embodiments of this application, the interaction methods of the virtual scenes provided in the embodiments of this application are illustrated below. See also Figure 28 , Figure 28 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 Four, Figure 28 The display shows a main virtual object 2801, three pet controls (including pet control 2802), a throwing control 2803, a skill control 2804, a riding control 2805, a jumping control 2806, and a dash control 2807.
[0321] The pet control 2802 displays the avatar of the first virtual pet. In response to a selection command for the pet control, the avatar of the first virtual pet can be displayed in the associated area of the throwing control 2803. This process is not performed within... Figure 28 As shown in, Figure 28 The 2803 throwing control uses the seventh style for display.
[0322] In response to a trigger operation on skill control 2804, the main virtual object 2801 can be controlled to release the skill corresponding to skill control 2804. In response to a trigger operation on jump control 2806, the main virtual object 2801 can be controlled to perform a jump operation. In response to a trigger operation on sprint control 2807, the main virtual object 2801 can be controlled to perform a sprint operation. A sprint operation is a movement operation, and the speed corresponding to the sprint operation is greater than a speed threshold. Figure 28 If the first virtual pet is not displayed, the riding control 2805 can also be hidden. The specific settings can be adjusted according to actual usage requirements.
[0323] See Figure 29 , Figure 29 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 Fifth, in response to Figure 28 The throwing command triggered by the throwing control 2803 shown is in... Figure 29 The first virtual pet 2901 is displayed, and the display style of the throwing control 2803 is changed by... Figure 28 The seventh style shown is switched to the eighth style.
[0324] exist Figure 29 In the middle, the riding control 2805 is displayed using the first style, see [link / reference]. Figure 30 , Figure 30 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 Sixth, in response to Figure 29 The riding control 2805 shown is triggered to control the main virtual object 2801 to ride the first virtual pet 2901, and the display style of the riding control 2805 is changed from... Figure 29 The first style shown is switched to Figure 30 The second style is shown. In some embodiments, in response to a triggered operation on the riding controls displayed using the second style, the master virtual object can be removed from the first virtual pet.
[0325] See also Figure 30 When the main virtual object 2801 is riding the first virtual pet 2901, a riding invitation control 3001 can be displayed. Figure 30 In the middle, the riding invitation control 3001 is displayed using the fifth style.
[0326] See Figure 31 , Figure 31 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 7. Response to Figure 30 The press operation of the ride invitation control 3001, displayed in the fifth style, shown activates the ride invitation function in the virtual scene, controlling the ride invitation control 3001 to use... Figure 31 The sixth style shown indicates that, during the press operation, in response to a drag operation on the riding invitation control 3001 displayed in the sixth style, the position of the crosshair 3101 in the virtual scene is adjusted to aim at the first virtual object 3103. Figure 31 The system also displays a close control 3102, which is used to close the ride invitation function. In response to the trigger operation of the close control 3102, the ride invitation function can be closed.
[0327] Accept Figure 31 In response to the press being released, an invitation command is triggered, in response to... Figure 31 The invitation command shown in the first virtual object 3102 is directed to... Figure 31 The first virtual object 3102 shown sends a riding request, see [link to documentation]. Figure 32 , Figure 32 This is a schematic diagram of the virtual scene provided in the embodiments of this application. Figure 20 8. In response to the first virtual object 3103 accepting the riding request, control the first virtual object 3103 and the main virtual object 2801 to ride the first virtual pet 2901 together, and... Figure 31 The sixth style shown displays a ride invitation control 3001 that switches to a removal control 3201, and in Figure 32 In the middle, the riding control 2805 displayed in the second style is equivalent to the dismount control.
[0328] In response to a trigger operation for removing the control, the first virtual object is removed from the first virtual pet, allowing the master virtual object to ride the first virtual pet alone. In response to a trigger operation for disbanding the control, both the first virtual object and the master virtual object are removed from the first virtual pet.
[0329] In this embodiment, a riding request can be sent using an aiming method. For the user controlling the main virtual object, the user can control the crosshair to aim at the virtual object they want to ride together, increasing the autonomy in sending riding requests and enriching the diversity of interaction methods. Only when the first virtual object accepts the riding request will the user control the first virtual object and the main virtual object to ride the first virtual pet together. For the user controlling the first virtual object, they can determine whether to accept the riding request based on actual usage needs, increasing the autonomy in accepting riding requests and enhancing the diversity of interactions between different virtual objects, enriching the ways virtual objects can ride together, improving the resource utilization of electronic devices, and thus improving the user's gaming experience. Furthermore, in this embodiment, the controls can automatically change according to different situations, improving control accuracy and the cleanliness of the virtual scene display interface, thereby further enhancing the user's gaming experience.
[0330] To facilitate understanding of the interaction methods of the virtual scenes provided in the embodiments of this application, the interaction methods of the virtual scenes provided in the embodiments of this application are illustrated below. In some embodiments, in the interaction methods of the virtual scenes provided in the embodiments of this application, a targeting method can be used to invite a first virtual object to ride a first virtual pet. For example, long-pressing the riding invitation control can enable the riding invitation function of the virtual scene, which is equivalent to the main virtual object entering the aiming state.
[0331] In response to the activation of the ride invitation function in the virtual scene, a crosshair for aiming in the virtual scene is displayed. In response to movement commands triggered by the movement controls, the crosshair is moved in the virtual scene to aim at the first virtual object.
[0332] For example, the movement control is a virtual joystick, which can also serve as a skill joystick. Responding to dragging operations on the virtual joystick, the crosshair moves synchronously within the virtual scene to aim at a first virtual object. If the first virtual object can be invited, a first invitation marker corresponding to the first virtual object can be displayed at the crosshair's aiming position. If the first virtual object cannot be invited, a second invitation marker corresponding to the first virtual object can be displayed at the crosshair's aiming position. For details, please refer to the corresponding explanation; further elaboration is omitted here.
[0333] For example, if the first virtual object can be invited, a white triangle corresponding to the first virtual object can be displayed at the aiming position of the crosshair; if the first virtual object cannot be invited, a red triangle corresponding to the first virtual object can be displayed at the aiming position of the crosshair.
[0334] When the crosshair is aimed at the first virtual object, in response to an invitation command for the first virtual object, a riding request is sent to the first virtual object. For example, when the crosshair is aimed at the first virtual object, in response to the release of the drag operation on the virtual joystick, that is, after the virtual joystick is released, an invitation command can be triggered, and in response to an invitation command for the first virtual object, a riding request is sent to the first virtual object.
[0335] In some embodiments, the master virtual object can send riding requests to multiple candidate virtual objects. When inviting multiple candidate virtual objects, the virtual object that accepts the riding request first can ride the first virtual object together with the master virtual object. That is, the virtual object that accepts the riding request first can enter a riding state between the two virtual objects (i.e., a joint riding state).
[0336] If a ride request is successfully sent, the system will display "Ride request sent successfully". If the first virtual object cannot enter the shared ride state, the system will display "The first virtual object is temporarily busy, please try again later". Each ride request has a time limit. Within the time limit, a ride request cannot be sent repeatedly to the same virtual object. That is, in response to a re-triggered invitation command for the first virtual object, if the time difference between two invitation commands executed for the first virtual object is less than the time difference threshold (time limit), a first prompt message will be displayed. If there are no candidate virtual objects to be invited, a second prompt message will be displayed in response to the invitation command, indicating that no invited candidate virtual object exists.
[0337] For the first virtual object, the first virtual object can accept the riding request before the countdown resets, and then the first virtual object and the main virtual object can ride the first virtual pet together. When the countdown resets, the riding request will be canceled.
[0338] In some embodiments, a disband control is displayed in the virtual scene interface. In response to a trigger operation on the disband control, the first virtual object and the master virtual object are removed from the first virtual pet. A pet switching control is displayed in the virtual scene interface. In response to a trigger operation on the pet switching control, the first virtual object and the master virtual object are removed from the first virtual pet, the first virtual pet is switched to a second virtual pet, and the master virtual object is controlled to ride the second virtual pet. That is, the user controlling the master virtual object can actively disband the shared riding or change virtual pets.
[0339] In some embodiments, a remove control is displayed in the virtual scene interface. In response to a trigger operation on the remove control, the first virtual object is removed from the first virtual pet, allowing the main virtual object to ride the first virtual pet independently. That is, the user controlling the main virtual object can remove the first virtual object. In some embodiments, a leave control is displayed in the virtual scene interface. In response to a trigger operation on the leave control, the first virtual object is controlled to leave the first virtual pet. That is, the user controlling the first virtual object can actively control the first virtual object to leave the first virtual pet.
[0340] In the interaction method in the virtual scene provided in the embodiments of this application, only some scenes in the game are areas where the main virtual object and the candidate virtual object can see each other (i.e., target areas). In related technologies, the target area does not have obvious boundary prompts in the game, that is, the range of the target area is a hidden range. When riding in a two-person vehicle, if the two-person vehicle accidentally leaves the mutually visible area (i.e., target area), the two-person vehicle will be forcibly disbanded. Due to the random plane of the server, the main virtual object and the candidate virtual object may never meet again, which reduces the user's game experience.
[0341] In this embodiment, a pop-up notification area can be added within the actual range of the mutual visibility zone. The size of the pop-up notification area is scaled down proportionally to the current mutual visibility zone. When the first virtual pet enters the pop-up notification area in a two-person riding state, it will continuously display a notification informing the players that it is about to leave the mutual visibility zone (i.e., displaying the third notification information), and display the boundary effects of the actual mutual visibility zone. For example, see... Figure 33 , Figure 33 This is a schematic diagram of the target area provided in the embodiments of this application. Figure 33 The area filled with the pattern is the area where the third prompt message will pop up (corresponding to the pop-up prompt range).
[0342] See Figure 34 , Figure 34 This is a flowchart illustrating the interaction method in a virtual scene provided in the embodiments of this application. Figure 3In step 3401, the ride invitation control is triggered. Step 3401 enables the ride invitation function. In step 3402, the first virtual object is targeted. This is equivalent to responding to the activation of the ride invitation function in the virtual scene, displaying a crosshair for aiming in the virtual scene, and controlling the crosshair to aim at the first virtual object. In step 3403, a ride request is sent to the first virtual object. That is, with the crosshair aimed at the first virtual object, in response to the invitation command for the first virtual object, a ride request is sent to the first virtual object. In step 3404, the first virtual object accepts the ride request. In step 3405, the first virtual pet is ridden together. That is, in response to the first virtual object accepting the ride request, the first virtual object and the main virtual object are controlled to ride the first virtual pet together.
[0343] In the interaction method in the virtual scene provided in the embodiments of this application, virtual objects riding the first virtual pet together is a gameplay that allows users to travel with other players in the open world game. This enhances the emotional communication and bond between the main virtual object and at least one candidate virtual object, while reducing the sense of separation and loss of the first virtual pet when leaving the mutual visibility area and establishing psychological expectations when leaving the mutual visibility area.
[0344] The following description continues to illustrate the exemplary structure of the interactive device 455 in the virtual scene provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2A As shown, the software modules in the interactive device 455 stored in the virtual scene of the memory 450 may include:
[0345] The first display module 4551 is used to display a virtual scene, the virtual scene including a main virtual object and at least one candidate virtual object, the main virtual object having a first virtual pet, and the at least one candidate virtual object including the first virtual object;
[0346] The first response module 4552 is used to respond to the activation of the riding invitation function in the virtual scene and display a crosshair for aiming in the virtual scene.
[0347] The first response module 4552 is further configured to, in response to an invitation command for the first virtual object, send a riding request to the first virtual object when the crosshair is aimed at the first virtual object;
[0348] The first response module 4552 is further configured to respond to the first virtual object accepting the riding request and control the first virtual object and the main control virtual object to ride the first virtual pet together.
[0349] In some embodiments, the first response module 4552 is further configured to display a ride invitation control in the interface of the virtual scene; and to enable the ride invitation function of the virtual scene in response to a trigger operation on the ride invitation control.
[0350] In some embodiments, the first response module 4552 is further configured to activate the ride invitation function of the virtual scene in response to a press operation on the ride invitation control.
[0351] The first response module 4552 is further configured to, after enabling the riding invitation function of the virtual scene, adjust the position of the crosshair in the virtual scene and aim at the first virtual object in response to the drag operation of the riding invitation control during the pressing operation; and trigger the invitation command in response to the release of the pressing operation.
[0352] In some embodiments, the first response module 4552 is further configured to display the first virtual pet in the virtual scene and display a riding control; in response to a trigger operation on the riding control, control the main virtual object to ride the first virtual pet and display the riding invitation control.
[0353] In some embodiments, the first response module 4552 is further configured to display a pet control in the interface of the virtual scene, wherein the pet control has a one-to-one correspondence with the virtual pet; and to display the first virtual pet in the virtual scene in response to a trigger operation on the pet control corresponding to the first virtual pet.
[0354] In some embodiments, the first response module 4552 is further configured to display the riding control using a first style;
[0355] The first response module 4552 is further configured to control the main virtual object to ride the first virtual pet, and then switch the display style of the riding control from the first style to the second style; in response to a trigger operation on the riding control of the second style, remove the main virtual object from the first virtual pet.
[0356] In some embodiments, the first response module 4552 is further configured to display a movement control for the crosshair in response to the activation of the riding invitation function in the virtual scene; and to control the crosshair to move in the virtual scene in response to a movement command triggered based on the movement control, so as to aim at the first virtual object.
[0357] In some embodiments, the number of crosshairs is multiple, and the multiple crosshairs are used to aim at multiple candidate virtual objects, wherein the distance between any two candidate virtual objects being aimed is less than a first distance threshold; the first response module 4552 is further configured to respond to a movement command triggered based on the movement control, and control the multiple crosshairs to move synchronously in the virtual scene to aim at the multiple first virtual objects.
[0358] In some embodiments, the number of crosshairs is multiple, and the multiple crosshairs are used to aim at multiple candidate virtual objects, wherein the distance between any two candidate virtual objects being aimed is less than a first distance threshold; the first response module 4552 is further configured to, after displaying the crosshairs used for aiming in the virtual scene, control the multiple crosshairs to move synchronously in the virtual scene in response to a movement command for the crosshairs, so as to aim at the multiple first virtual objects.
[0359] In some embodiments, the movement control includes a virtual joystick, and the movement command is triggered by a drag operation on the virtual joystick; the first response module 4552 is further configured to, in response to the drag operation on the virtual joystick, control the crosshair to move synchronously in the virtual scene to aim at the first virtual object; and to trigger the invitation command in response to the release of the drag operation on the virtual joystick.
[0360] In some embodiments, the first response module 4552 is further configured to, in response to the activation of the riding invitation function in the virtual scene, display a virtual joystick in the interface of the virtual scene; in response to a drag operation on the virtual joystick, control the crosshair to move synchronously in the virtual scene to aim at the first virtual object; and in response to the release of the drag operation on the virtual joystick, trigger the invitation command.
[0361] In some embodiments, the first response module 4552 is further configured to, in response to the activation of the ride invitation function in the virtual scene, display the object status of each candidate virtual object at the associated location of each candidate virtual object; wherein, the object status includes an inviteable status and an uninvitable status;
[0362] The first response module 4552 is further configured to, in response to an invitation command for the first virtual object, send a riding request to the first virtual object when the crosshair is aimed at the first virtual object and the object state of the first virtual object is the inviteable state.
[0363] In some embodiments, the first response module 4552 is further configured to display an invitation mark corresponding to the first virtual object at the aiming position of the crosshair when the crosshair is aimed at the first virtual object, the invitation mark being used to indicate whether the first virtual object can be invited;
[0364] The first response module 4552 is further configured to send a ride request to the first virtual object in response to an invitation instruction for the first virtual object when the invitation mark indicates that the first virtual object can be invited.
[0365] In some embodiments, the invitation marker includes a first invitation marker and a second invitation marker; the first response module 4552 is further configured to display a first invitation marker corresponding to the first virtual object at the aiming position of the crosshair if the first virtual object can be invited; and to display a second invitation marker corresponding to the first virtual object at the aiming position of the crosshair if the first virtual object cannot be invited; wherein the pattern of the first invitation marker is different from the pattern of the second invitation marker, or the color of the first invitation marker is different from the color of the second invitation marker.
[0366] In some embodiments, at least one candidate virtual object further includes a second virtual object, and the first response module 4552 is further configured to send a riding request to the second virtual object in response to an invitation command for the second virtual object after sending a riding request to the first virtual object and the crosshair is aimed at the second virtual object;
[0367] The first response module 4552 is further configured to respond to the first virtual object accepting the riding request at a first moment, the second virtual object accepting the riding request at a second moment, and the first moment being earlier than the second moment, by controlling the first virtual object and the main control virtual object to ride the first virtual pet together.
[0368] Alternatively, in response to the first virtual object accepting the riding request at a first location, the second virtual object accepting the riding request at a second location, and the distance between the first location and the master virtual object being less than the distance between the second location and the master virtual object, the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0369] In some embodiments, the first response module 4552 is further configured to, after sending a riding request to the first virtual object, control the crosshair to aim at the first virtual object again in response to a control command for the crosshair; and, in response to a re-triggered invitation command for the first virtual object, display a first prompt message if the time difference between the two invitation commands executed for the first virtual object is less than a time difference threshold; the first prompt message is configured to indicate that the sending frequency of the riding request has reached a frequency threshold and the riding request cannot be sent again.
[0370] In some embodiments, the first response module 4552 is further configured to display a second prompt message in response to an invitation command after displaying a crosshair for aiming in the virtual scene, provided that the crosshair is not aimed at any of the candidate virtual objects. The second prompt message is used to indicate that there are no invited candidate virtual objects.
[0371] In some embodiments, the first response module 4552 is further configured to respond to the first virtual object accepting the riding request within a target time period, and control the first virtual object and the master virtual object to ride the first virtual pet together;
[0372] The first response module 4552 is further configured to cancel the riding request for the first virtual object in response to the first virtual object not accepting the riding request within the target time period.
[0373] In some embodiments, the first response module 4552 is further configured to control the first virtual object and the master virtual object to ride the first virtual pet together, and then display a disband control in the interface of the virtual scene; in response to a trigger operation on the disband control, remove the first virtual object and the master virtual object from the first virtual pet.
[0374] In some embodiments, the interface of the virtual scene displays multiple pet controls, and the pet controls have a one-to-one correspondence with virtual pets; the first response module 4552 is further configured to, after controlling the first virtual object and the main virtual object to ride the first virtual pet together, in response to the trigger operation of the pet control corresponding to the second virtual pet, remove the first virtual object and the main virtual object from the first virtual pet; switch the first virtual pet to the second virtual pet, and control the main virtual object to ride the second virtual pet.
[0375] In some embodiments, the first response module 4552 is further configured to display a removal control in the interface of the virtual scene after controlling the first virtual object and the master virtual object to ride the first virtual pet together; and to remove the first virtual object from the first virtual pet in response to a trigger operation on the removal control, so that the master virtual object rides the first virtual pet alone.
[0376] In some embodiments, the first response module 4552 is further configured to control the first virtual object and the master virtual object to ride the first virtual pet together, and then control the first virtual pet to move within the target area; when the distance between the first virtual pet and the boundary of the target area is less than a second distance threshold, a third prompt message is displayed; wherein the third prompt message is used to indicate that if the first virtual pet moves out of the target area, the joint riding of the first virtual pet by the first virtual object and the master virtual object is cancelled.
[0377] In some embodiments, the first display module 4551 is further configured to display a boundary effect of the target area when the distance between the first virtual pet and the boundary of the target area is less than a second distance threshold.
[0378] In some embodiments, the size of the second distance threshold is positively correlated with the size of the target area; the first response module 4552 is further configured to switch the display style of the third prompt information from the third style to the fourth style in response to the duration of the distance being less than the second distance threshold reaching a duration threshold, wherein the prompt intensity corresponding to the fourth style is higher than the prompt intensity corresponding to the third style.
[0379] In some embodiments, the first response module 4552 is further configured to control the first virtual object and the master virtual object to ride the first virtual pet together, and then display a riding request sent by the third virtual object, wherein the riding request is used to request to join the joint riding of the first virtual pet; and in response to a confirmation instruction for the riding request, control the third virtual object to ride the first virtual pet together with the first virtual object and the master virtual object.
[0380] The following description continues to illustrate the exemplary structure of the interactive device 456 in the virtual scene provided in the embodiments of this application as a software module. In some embodiments, such as Figure 2B As shown, the software modules in the interactive device 456 stored in the virtual scene of the memory 450 may include:
[0381] The second display module 4561 is used to display a virtual scene, the virtual scene including a first virtual object;
[0382] The second display module 4561 is also used to display a riding request sent by the master virtual object, the riding request being used to invite the first virtual object and the master virtual object to ride the first virtual pet of the master virtual object together;
[0383] The second response module 4562 is used to respond to a determination instruction for the riding request, to transmit the first virtual object to the location of the first virtual pet, and to control the first virtual object and the main virtual object to ride the first virtual pet together.
[0384] In some embodiments, the second response module 4562 is further configured to control the first virtual object and the main virtual object to ride the first virtual pet together, and then display a leave control in the interface of the virtual scene; in response to a trigger operation on the leave control, control the first virtual object to leave the first virtual pet.
[0385] In some embodiments, the second display module 4561 is further configured to display a countdown for the riding request during the display of the riding request; and to cancel the display of the riding request when the countdown is cleared.
[0386] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer-executable instructions from the computer-readable storage medium and executes the computer-executable instructions, causing the electronic device to perform the interaction method in the virtual scene described above in this application embodiment.
[0387] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the interaction method in the virtual scene provided in this application embodiment, for example, such as... Figure 3 The interactive methods shown in the virtual scene.
[0388] In some embodiments, the computer-readable storage medium may be a memory such as RAM, ROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or it may be a variety of devices including one or any combination of the above-mentioned memories.
[0389] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0390] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a Hyper Text Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).
[0391] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located at one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0392] The interaction method in the virtual scene provided in this application embodiment can display a virtual scene, which includes a master virtual object and at least one candidate virtual object. The master virtual object has a first virtual pet, and the at least one candidate virtual object includes the first virtual object. In response to the activation of the riding invitation function in the virtual scene, a crosshair for aiming in the virtual scene is displayed, which can improve the richness of the content displayed in the virtual scene. When the crosshair is aimed at the first virtual object, in response to the invitation command for the first virtual object, a riding request is sent to the first virtual object. In response to the first virtual object accepting the riding request, the first virtual object and the master virtual object are controlled to ride the first virtual pet together.
[0393] In this embodiment, a riding request can be sent using an aiming method. For the user controlling the main virtual object, the user can control the crosshair to aim at the virtual object they want to ride together, increasing the autonomy in sending riding requests and enriching the diversity of interaction methods. Only when the first virtual object accepts the riding request will the user control the first virtual object and the main virtual object to ride the first virtual pet together. For the user controlling the first virtual object, they can determine whether to accept the riding request based on actual usage needs, increasing the autonomy in accepting riding requests, enhancing the diversity of interactions between different virtual objects, enriching the ways virtual objects can ride together, improving the resource utilization of electronic devices, thereby improving the user's gaming experience and solving technical problem 1.
[0394] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. An interaction method in a virtual scene, characterized in that, The method includes: Display a virtual scene, the virtual scene including a main virtual object and at least one candidate virtual object, the main virtual object having a first virtual pet, and the at least one candidate virtual object including the first virtual object; In response to a press operation of the ride invitation control displayed in the interface of the virtual scene, the ride invitation function of the virtual scene is activated, and a crosshair for aiming in the virtual scene is displayed. During the pressing operation, in response to the dragging operation of the riding invitation control, the position of the crosshair in the virtual scene is adjusted to aim at the first virtual object; When the crosshair is aimed at the first virtual object, in response to the release of the press operation, an invitation command is triggered for the first virtual object, and a riding request is sent to the first virtual object; In response to the first virtual object accepting the riding request, control the first virtual object and the main virtual object to ride the first virtual pet together; Control the first virtual pet to move within the mutual visibility area, where the mutual visibility area is the region in the virtual scene where the main virtual object and the candidate virtual object are mutually visible to each other. When the distance between the first virtual pet and the boundary of the mutual visibility area is less than the second distance threshold, a third prompt message is displayed; wherein, the third prompt message is used to indicate that if the first virtual pet moves out of the mutual visibility area, the shared riding of the first virtual object and the master virtual object for the first virtual pet is canceled.
2. The method according to claim 1, characterized in that, Prior to a press operation on a ride invitation control displayed in the interface for the virtual scene, the method further includes: The first virtual pet is displayed in the virtual scene, along with riding controls; In response to a trigger operation on the riding control, the main virtual object is controlled to ride the first virtual pet, and the riding invitation control is displayed.
3. The method according to claim 2, characterized in that, Displaying the first virtual pet in the virtual scene includes: Pet controls are displayed in the interface of the virtual scene, and there is a one-to-one correspondence between the pet controls and the virtual pets; In response to a selection command for the pet control of the first virtual pet, the first virtual pet is controlled to be displayed in the virtual scene.
4. The method according to claim 2, characterized in that, The display riding control includes: The riding controls are displayed using the first style; After controlling the master virtual object to ride the first virtual pet, the method further includes: Switch the display style of the riding control from the first style to the second style; In response to a trigger operation for the riding control of the second style, the master virtual object is removed from the first virtual pet.
5. The method according to claim 1, characterized in that, The number of crosshairs is multiple, and the multiple crosshairs are used to aim at multiple candidate virtual objects, wherein the distance between any two candidate virtual objects being aimed at is less than a first distance threshold. After displaying the crosshair used for aiming in the virtual scene, the method further includes: In response to a movement command for the crosshairs, multiple crosshairs are controlled to move synchronously in the virtual scene to aim at multiple first virtual objects.
6. The method according to claim 1, characterized in that, The method further includes: In response to the activation of the ride invitation function in the virtual scene, the object status of each candidate virtual object is displayed at the associated location of each candidate virtual object. The object status includes an inviteable status and an uninvitable status; When the crosshair is aimed at the first virtual object, in response to the release of the press operation, an invitation command is triggered for the first virtual object, and a riding request is sent to the first virtual object, including: When the crosshair is aimed at the first virtual object and the object status of the first virtual object is the inviteable state, in response to the invitation command for the first virtual object, a ride request is sent to the first virtual object.
7. The method according to any one of claims 1-6, characterized in that, The method further includes: When the crosshair is aimed at the first virtual object, an invitation mark corresponding to the first virtual object is displayed at the aiming position of the crosshair. The invitation mark is used to indicate whether the first virtual object can be invited. The step of triggering the invitation command for the first virtual object and sending a ride request to the first virtual object includes: If the invitation marker indicates that the first virtual object can be invited, a ride request is sent to the first virtual object in response to the invitation instruction for the first virtual object.
8. The method according to claim 7, characterized in that, The invitation marker includes a first invitation marker and a second invitation marker; displaying the invitation marker corresponding to the first virtual object at the aiming position of the crosshair includes: If the first virtual object can be invited, a first invitation mark corresponding to the first virtual object will be displayed at the aiming position of the crosshair; If the first virtual object cannot be invited, a second invitation mark corresponding to the first virtual object is displayed at the aiming position of the crosshair; The pattern of the first invitation mark is different from the pattern of the second invitation mark, or the color of the first invitation mark is different from the color of the second invitation mark.
9. The method according to any one of claims 1-6, characterized in that, After sending the riding request to the first virtual object, the method further includes: In response to a control command for the crosshair, the crosshair is controlled to aim at the first virtual object again; In response to a re-triggered invitation command for the first virtual object, if the time difference between the two invitation commands executed for the first virtual object is less than a time difference threshold, a first prompt message is displayed. The first prompt message is used to indicate that the frequency of sending the ride request has reached a frequency threshold and the ride request cannot be sent again.
10. The method according to any one of claims 1-6, characterized in that, After displaying the crosshair used for aiming in the virtual scene, the method further includes: If the crosshair is not aimed at any of the candidate virtual objects, in response to the invitation command, a second prompt message is displayed, which indicates that there are no invited candidate virtual objects.
11. The method according to any one of claims 1-6, characterized in that, The step of responding to the first virtual object accepting the riding request and controlling the first virtual object and the main virtual object to ride the first virtual pet together includes: In response to the first virtual object accepting the riding request within the target time period, control the first virtual object and the main virtual object to ride the first virtual pet together; The method further includes: in response to the first virtual object not accepting the riding request during the target time period, canceling the riding request for the first virtual object.
12. The method according to any one of claims 1-6, characterized in that, After controlling the first virtual object and the main virtual object to ride the first virtual pet together, the method further includes: A disband control is displayed in the interface of the virtual scene; In response to a trigger operation on the disband control, the first virtual object and the master virtual object are removed from the first virtual pet.
13. The method according to any one of claims 1-6, characterized in that, The virtual scene interface displays multiple pet controls, and there is a one-to-one correspondence between the pet controls and the virtual pets; After controlling the first virtual object and the main virtual object to ride the first virtual pet together, the method further includes: In response to a selection command for the pet control corresponding to the second virtual pet, the first virtual object and the main virtual object are removed from the first virtual pet; Switch the first virtual pet to the second virtual pet, and control the main virtual object to ride the second virtual pet.
14. The method according to any one of claims 1-6, characterized in that, After controlling the first virtual object and the main virtual object to ride the first virtual pet together, the method further includes: A removal control is displayed in the interface of the virtual scene; In response to a triggered operation on the removal control, the first virtual object is removed from the first virtual pet, so that the master virtual object rides the first virtual pet alone.
15. The method according to claim 1, characterized in that, The method further includes: When the distance between the first virtual pet and the boundary of the mutual visibility area is less than the second distance threshold, the boundary effect of the mutual visibility area is displayed.
16. An interaction method in a virtual scene, characterized in that, The method includes: Display a virtual scene, wherein the virtual scene includes a first virtual object; The display shows a riding request sent by the master virtual object. The riding request is used to invite the first virtual object and the master virtual object to ride the master virtual object's first virtual pet together. The riding request is sent in the following way: in response to the pressing operation of the riding invitation control displayed in the interface of the virtual scene, the riding invitation function of the virtual scene is enabled, and a crosshair for aiming in the virtual scene is displayed; during the execution of the pressing operation, in response to the dragging operation of the riding invitation control, the position of the crosshair in the virtual scene is adjusted to aim at the first virtual object; when the crosshair is aiming at the first virtual object, in response to the release of the pressing operation, an invitation command is triggered for the first virtual object, and a riding request is sent to the first virtual object. In response to a confirmation command for the riding request, the first virtual object is transmitted to the location of the first virtual pet, and the first virtual object and the master virtual object are controlled to ride the first virtual pet together; Control the first virtual pet to move within the mutual visibility area, where the mutual visibility area is the area in the virtual scene where the main virtual object and the first virtual object can see each other; When the distance between the first virtual pet and the boundary of the mutual visibility area is less than the second distance threshold, a third prompt message is displayed; wherein, the third prompt message is used to indicate that if the first virtual pet moves out of the mutual visibility area, the shared riding of the first virtual object and the master virtual object for the first virtual pet is canceled.
17. The method according to claim 16, characterized in that, After controlling the first virtual object and the main virtual object to ride the first virtual pet together, the method further includes: A leave control is displayed in the interface of the virtual scene; In response to a trigger operation on the leave control, the first virtual object is controlled to leave the first virtual pet.
18. The method according to claim 16, characterized in that, The method further includes: During the display of the ride request, a countdown timer for the ride request is displayed; When the countdown reaches zero, the ride request will be removed from the display.
19. An interactive device in a virtual scene, characterized in that, The device includes: A first display module is used to display a virtual scene, the virtual scene including a main virtual object and at least one candidate virtual object, the main virtual object having a first virtual pet, and the at least one candidate virtual object including the first virtual object; The first response module is used to respond to a press operation of the riding invitation control displayed in the interface of the virtual scene, the riding invitation function of the virtual scene is enabled, and a crosshair for aiming in the virtual scene is displayed; during the execution of the press operation, in response to a drag operation of the riding invitation control, the position of the crosshair in the virtual scene is adjusted to aim at the first virtual object. The first response module is further configured to, in response to the release of the pressing operation, trigger an invitation command for the first virtual object and send a riding request to the first virtual object when the crosshair is aimed at the first virtual object; The first response module is further configured to respond to the first virtual object accepting the riding request by controlling the first virtual object and the master virtual object to ride the first virtual pet together; controlling the first virtual pet to move within a mutual visibility area, the mutual visibility area being the area in the virtual scene where the master virtual object and the candidate virtual object are mutually visible; and displaying a third prompt message when the distance between the first virtual pet and the boundary of the mutual visibility area is less than a second distance threshold; wherein the third prompt message is used to indicate that if the first virtual pet moves out of the mutual visibility area, the joint riding of the first virtual pet by the first virtual object and the master virtual object is cancelled.
20. The apparatus according to claim 19, characterized in that, Before the press operation of the ride invitation control displayed in the interface for the virtual scene, the first response module is further configured to: The first virtual pet is displayed in the virtual scene, along with riding controls; In response to a trigger operation on the riding control, the main virtual object is controlled to ride the first virtual pet, and the riding invitation control is displayed.
21. An interactive device in a virtual scene, characterized in that, The device includes: The second display module is used to display a virtual scene, which includes a first virtual object; The second display module is further configured to display a riding request sent by the master virtual object. The riding request is used to invite the first virtual object and the master virtual object to ride the first virtual pet of the master virtual object together. The riding request is sent in the following manner: in response to a press operation of the riding invitation control displayed in the interface of the virtual scene, the riding invitation function of the virtual scene is enabled, and a crosshair for aiming in the virtual scene is displayed; during the execution of the press operation, in response to a drag operation of the riding invitation control, the position of the crosshair in the virtual scene is adjusted to aim at the first virtual object; when the crosshair is aiming at the first virtual object, in response to the release of the press operation, an invitation command for the first virtual object is triggered, and a riding request is sent to the first virtual object. The second response module is used to respond to a determination command for the riding request by transmitting the first virtual object to the location of the first virtual pet and controlling the first virtual object and the master virtual object to ride the first virtual pet together; controlling the first virtual pet to move within a mutual visibility area, which is the area in the virtual scene where the master virtual object and the first virtual object can see each other; and displaying a third prompt message when the distance between the first virtual pet and the boundary of the mutual visibility area is less than a second distance threshold; wherein the third prompt message is used to indicate that if the first virtual pet moves out of the mutual visibility area, the joint riding of the first virtual object and the master virtual object with respect to the first virtual pet will be canceled.
22. An electronic device, characterized in that, The electronic device includes: Memory is used to store executable instructions or computer programs. A processor, when executing computer-executable instructions or computer programs stored in the memory, implements the interaction method in the virtual scene as described in any one of claims 1 to 18.
23. A computer-readable storage medium storing computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the interaction method in the virtual scene as described in any one of claims 1 to 18.
24. A computer program product comprising computer-executable instructions or a computer program, characterized in that, When the computer-executable instructions or computer program are executed by a processor, they implement the interaction method in the virtual scene as described in any one of claims 1 to 18.