Method, device, terminal and computer program for controlling pickup of virtual props
The method and apparatus enable efficient virtual prop pickup by allowing distinct operations for 'pick-up and use' or 'pick-up and carry', addressing the issue of accidental discarding and improving operational efficiency in three-dimensional virtual environments.
Patent Information
- Application Number
- JP2024526865
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-01-24
- Filing Date
- 2022-11-15
- Publication Date
- 2025-11-12
- Estimated Expiration
- 2042-11-15
AI Technical Summary
Existing methods for controlling virtual objects to pick up virtual props in three-dimensional virtual environments often result in accidental discarding, leading to low efficiency in prop pickup due to the need for manual switching between holding and using states.
A method and apparatus that allow users to control virtual objects to pick up virtual props through distinct operations for 'pick-up and use' or 'pick-up and carry', simplifying the process by eliminating the need for manual state switching.
This approach enhances prop pickup efficiency by allowing users to control virtual objects to pick up and equip props in the desired state with a single operation, reducing accidental discarding and simplifying the operation flow.
Smart Images

Figure 0007768607000001 
Figure 0007768607000002 
Figure 0007768607000003
Abstract
Description
[Technical Field]
[0001] This application claims priority from a Chinese patent application filed with the China Patent Office on January 24, 2022, bearing application number 202210077448.8 and entitled "Method, terminal and storage medium for controlling a virtual object to pick up a virtual prop," the entire contents of which are incorporated herein by reference.
[0002] The embodiments of the present application relate to the technical field of human-computer interaction, and in particular to a method, an apparatus, a terminal and a computer program for controlling a virtual subject (also called a virtual object) to pick up a virtual prop (also called a virtual item). [Background technology]
[0003] In application programs based on three-dimensional virtual environments, such as first-person fighting games, users can operate and control virtual objects in the virtual environment to perform actions such as walking, running, climbing, and fighting, and multiple users can also form teams online and cooperate in the same virtual environment to complete a certain mission (task).
[0004] In the related technology, a user can control a virtual object to pick up a virtual prop from a virtual environment and use the picked-up virtual prop. Upon receiving the pick-up operation, the terminal directly replaces the virtual prop in the gripping state, i.e., controls the virtual object to discard the virtual prop currently being gripped and pick up and use a new virtual prop.
[0005] However, when the method in the related art is adopted, there is a possibility that the virtual prop may be accidentally discarded, and the user must pick up the accidentally discarded virtual prop again, so the efficiency of picking up the prop is low. Summary of the Invention [Problem to be solved by the invention]
[0006] An object of the present application is to provide a method, an apparatus, a terminal, and a computer program for controlling a virtual object to pick up a virtual prop. [Means for solving the problem]
[0007] According to one aspect, an embodiment of the present application provides a method for controlling a virtual object to pick up a virtual prop, the method being executed by a terminal, the method comprising: displaying a prop pickup list, the prop pickup list including prop pickup controls for virtual props; receiving an operation on a first prop pickup control in the prop pickup list, the first prop pickup control being a prop pickup control for a first virtual prop; and Based on the pickup method instructed by the operation, the virtual object is controlled to pick up the first virtual prop, and the pickup method of the first virtual prop includes a pickup and use method or a pickup and carry method (also referred to as a "pick up and use" method (first method) or a "pick up and carry" method (second method)).
[0008] According to another aspect, an embodiment of the present application provides an apparatus for controlling a virtual object to pick up a virtual prop, the apparatus comprising: a first display module for displaying a prop pickup list, the prop pickup list including prop pickup controls for virtual props; a receiving module for receiving an operation on a first prop pickup control in the prop pickup list, the first prop pickup control being a prop pickup control of a first virtual prop; and The control module includes: a control module for controlling the virtual object to pick up the first virtual prop based on a pick-up manner instructed by the operation, wherein the pick-up manner of the first virtual prop includes a pick-up and use manner or a pick-up and carry manner.
[0009] According to another aspect, an embodiment of the present application provides a terminal, the terminal including a processor and a memory, wherein the memory stores at least one program, the at least one program being configured to be loaded and executed by the processor to realize the method for controlling a virtual object to pick up a virtual prop, as described in the previous aspect.
[0010] According to another aspect, an embodiment of the present application provides a computer-readable storage medium having stored thereon at least one computer program, the computer program being configured to be loaded and executed by a processor to implement the method for controlling a virtual object to pick up a virtual prop, as described in the previous aspect.
[0011] According to another aspect of the present application, there is provided a computer program product, the computer program product including computer instructions stored in a computer-readable storage medium, wherein a processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, thereby causing the terminal to implement the method for controlling a virtual object to pick up a virtual prop provided in the above aspect. [Effects of the Invention]
[0012] The technical solutions provided in the embodiments of this application have at least the following advantageous effects:
[0013] In an embodiment of the present application, different operations on the first prop pickup control can trigger the virtual object to pick up the first virtual prop in different pickup ways, including picking up and using and picking up and carrying. The user can control the owned (held) prop and the use status of the first virtual prop through different operations according to their actual needs. Compared with the related art method of directly controlling a virtual object to discard a virtual prop in use, when a user wants to control a virtual object to use another virtual prop, the user does not need to first operate and control the virtual object to pick up the first virtual prop and then operate and control the virtual object to switch the first virtual prop to a carrying state. Instead, by performing a corresponding operation on the first prop pickup control once based on the required pickup way, the virtual object can be controlled to pick up the first virtual prop and equip it in the corresponding state, which simplifies the operation of picking up virtual props and improves the efficiency of prop pickup. [Brief explanation of the drawings]
[0014] [Figure 1] FIG. 1 illustrates an implementation environment provided in one exemplary embodiment of the present application. [Figure 2] 1 is a flowchart of a method for controlling a virtual subject to pick up a virtual prop, provided in one exemplary embodiment of the present application. [Figure 3] FIG. 2 illustrates a virtual environment interface provided in one exemplary embodiment of the present application. [Figure 4] 10 is a flowchart of a method for controlling a virtual subject to pick up a virtual prop, provided in another exemplary embodiment of the present application. [Figure 5] FIG. 10 illustrates a virtual environment interface provided in another exemplary embodiment of the present application. [Figure 6] FIG. 10 illustrates a virtual environment interface provided in another exemplary embodiment of the present application. [Figure 7] FIG. 10 illustrates a virtual environment interface provided in another exemplary embodiment of the present application. [Figure 8] 1 is a flowchart of a slide event determination process provided in one exemplary embodiment of the present application. [Figure 9] 1 is a flowchart of a slide event cancellation judgment process provided in one exemplary embodiment of the present application. [Figure 10] 10 is a flowchart of a method for controlling a virtual subject to pick up a virtual prop, provided in another exemplary embodiment of the present application. [Figure 11] FIG. 10 illustrates triggering the display of a prop replacement control provided in one exemplary embodiment of the present application. [Figure 12] 10 is a flowchart of a method for controlling a virtual subject to pick up a virtual prop, provided in another exemplary embodiment of the present application. [Figure 13] 10 is a flowchart of a method for controlling a virtual subject to pick up a virtual prop, provided in another exemplary embodiment of the present application. [Figure 14] 1 is a block diagram of a device for controlling a virtual subject to pick up a virtual prop, provided in one exemplary embodiment of the present application. [Figure 15] FIG. 2 is a block diagram of a terminal provided in one exemplary embodiment of the present application. DETAILED DESCRIPTION OF THE INVENTION
[0015] First, nouns (terms) related to the embodiments of the present application will be introduced.
[0016] 1) Virtual Environment This refers to a virtual environment that is displayed (or provided) when an application program is executed on a terminal. The virtual environment may be a simulated real-world environment, a semi-simulated, semi-fictional three-dimensional environment, or a fully fictional three-dimensional environment. The virtual environment may be any one of a two-dimensional virtual environment, a two-and-a-half-dimensional virtual environment, and a three-dimensional virtual environment. Note that, in the following embodiments, the virtual environment is described as a three-dimensional virtual environment, but is not limited to this. Optionally, the virtual environment may further be used for a virtual battle between at least two virtual objects. Optionally, the virtual environment has virtual resources available for use by the at least two virtual objects.
[0017] 2) Virtual Object A virtual object refers to a movable object in a virtual scene. The movable object may be at least one of a virtual person, a virtual animal, and a cartoon character. Optionally, when the virtual scene is a 3D virtual scene, the virtual object may be a 3D solid model. Each virtual object has its own shape and volume in the 3D virtual scene and occupies a certain space in the 3D virtual scene. Optionally, the virtual character is a 3D character constructed based on 3D human skeleton technology, and the virtual character can wear different skins to achieve different appearances. In some implementations, the virtual character may be realized using a 2.5D or 2D model, but the embodiments of this application are not limited thereto.
[0018] 3) Virtual Props A virtual prop refers to a prop that a virtual object can use in a virtual environment, and includes, for example, at least one of a functional prop and a virtual piece of equipment. For example, in this application, a virtual prop is used to change an attribute value of a virtual object in a virtual environment. For example, a virtual prop may include a projectile virtual prop, a proximity-based virtual prop, and a throwable virtual prop.
[0019] 4) User Interface (UI) Control This refers to any visible control or element that appears in the user interface of an application program, such as a picture, input box, text box, button, label, etc., some of which may respond to user operations.
[0020] 5) Application programs that support virtual environments The application program may be a multiplayer online battle program, such as any one of a multiplayer online battle arena (MOBA) game, a shooting game, and a strategy simulation game (SLG). In the embodiments of the present application, the application program is described as a shooting game. Virtual environment-based games often consist of one or more game world maps, where the virtual environment in the game simulates a real-world scene, and users can manipulate and control virtual objects in the game to perform actions such as walking, running, jumping, shooting, fighting, driving, picking up virtual props, replacing the use of virtual props, and attacking other virtual objects with virtual props or virtual skills in the virtual environment.
[0021] In the related art, a user can control a virtual object to pick up a virtual prop from a virtual environment and then use the picked virtual prop. Typically, the number of virtual props that a virtual object can acquire is limited. When the number of owned props does not reach the prop limit, the picked virtual prop can be placed in an empty position in the prop field. When the number of owned props reaches the prop limit, a corresponding number of owned props must first be discarded, and the terminal directly replaces the virtual props in use, i.e., controls the virtual object to discard the virtual prop currently in use and then controls the virtual object to pick up and use a new virtual prop. However, when using the method in the related art, when a user wants to replace a virtual prop in the prop field with a new virtual prop, the user must first switch the corresponding virtual prop from a holding state to a using state, and then control the virtual object to pick up the new virtual prop. Furthermore, when the user wants to control the virtual object to use another virtual prop, the user must also control the virtual object to switch the picked-up virtual prop from a using state to a holding state. In addition, if a user has a prop in use, the prop will be discarded unless the user switches the prop status in advance, and there are cases where the prop is accidentally discarded because the user does not switch the prop status in a timely manner. Therefore, the prop is easily discarded by mistake, and the prop pickup efficiency is low.
[0022] To solve the above technical problems, an embodiment of the present application provides a method for controlling a virtual object to pick up a virtual prop.
[0023] 1 is a diagram illustrating an implementation environment provided in one embodiment of the present application, which may include a first terminal 110, a server 120, and a second terminal 130.
[0024] The first terminal 110 executes an application program (also referred to as an app) 111 supporting the virtual environment. When the first terminal executes the application program 111, the user interface of the application program 111 is displayed on the screen of the first terminal 110. In this embodiment, the application program 111 is a multiplayer competitive game. The first terminal 110 is used by a first user 112. The first user 112 uses the first terminal 110 to control a first virtual object in the virtual environment to perform an activity. The first virtual object may be referred to as the first user's 112's main controlled virtual object. The activity of the first virtual object may include, but is not limited to, at least one of body posture adjustment, crawling, walking, running, riding, jumping, hopping, driving, picking up, attacking, throwing, and skill release. By way of example, the first virtual object may be a first virtual person, such as a simulated person or an animated person.
[0025] The second terminal 130 executes an application program 131 supporting the virtual environment. When the second terminal 130 executes the application program 131, the user interface of the application program 131 is displayed on the screen of the second terminal 130. In this embodiment, the application program 131 is a multiplayer competitive game. The second terminal 130 is used by a second user 132. The second user 132 uses the second terminal 130 to control a second virtual object in the virtual environment to perform an activity. The second virtual object may be referred to as the main controlled virtual object of the second user 132. The activity of the second virtual object may include, but is not limited to, at least one of adjusting body posture, crawling, walking, running, riding, jumping, hopping, driving, picking up, attacking, throwing, and skill release. For example, the second virtual object may be a second virtual person, such as a simulated person or an animated person.
[0026] Optionally, the first virtual object and the second virtual object are located in the same virtual world. Optionally, the first virtual object and the second virtual object belong to the same faction, team or organization and have a friendship relationship or temporary communication privileges. Optionally, the first virtual object and the second virtual object belong to different factions, teams or organizations and have an adversarial relationship.
[0027] Optionally, the application programs installed on the first terminal 110 and the second terminal 130 are the same, or the application programs installed on the two terminals are application programs of the same type on different operating system platforms (Android or IOS). The first terminal 110 may generally be one of multiple terminals, and the second terminal 130 may generally be another of multiple terminals, and this embodiment will only illustrate the first terminal 110 and the second terminal 130. The device types of the first terminal 110 and the second terminal 130 may be the same or different, and the device types may include at least one of a smartphone, a tablet computer, an e-reader, an MP3 player, an MP4 player, a laptop, and a desktop computer.
[0028] Although only two terminals are shown in FIG. 1 , in different embodiments, there may be multiple other terminals that can access server 120. Optionally, there may be one or more additional terminals, such as a terminal corresponding to a developer, on which an application program development and editing platform supporting a virtual environment is installed. The developer can edit and update the application program on the terminal, and then transmit the updated application program installation package to server 120 via a wired or wireless network. First terminal 110 and second terminal 130 can download the application program installation package from server 120 to achieve application program updates.
[0029] The first terminal 110, the second terminal 130 and other terminals are connected to the server 120 via a wireless network or a wired network.
[0030] The server 120 may include at least one of a single server, a server cluster consisting of multiple servers, a cloud computing platform, and a virtualization center. The server 120 is used to provide background services to application programs supporting the 3D virtual environment. Optionally, the server 120 may perform primary computing tasks and the terminal may perform secondary computing tasks, or the server 120 may perform secondary computing tasks and the terminal may perform primary computing tasks, or the server 120 and the terminal may employ a distributed computing architecture to perform collaborative computing.
[0031] In one illustrative example, the server 120 includes a memory 121, a processor 122, a user account database 123, a battle service module 124, and a user-facing input / output interface (I / O interface) 125. The processor 122 is used to load instructions stored in the server 120 and process data in the user account database 123 and the battle service module 124. The user account database 123 is used to store data of user accounts used by the first terminal 110, the second terminal 130, and other terminals, such as user account avatars, user account nicknames, virtual props owned by the user accounts, and service areas where the user accounts are located. The battle service module 124 is used to provide multiple battle rooms for users to battle, such as 1V1 battles, 3V3 battles, 5V5 battles, etc. The user-facing I / O interface 125 is used to establish communication and exchange data with the first terminal 110 and / or the second terminal 130 via a wireless network or a wired network.
[0032] The method for controlling a virtual object to pick up a virtual prop according to the present application may be independently performed by a terminal supporting a virtual environment, or independently performed by a server corresponding to an application program supporting a virtual environment. The method may also be independently performed by the terminal and the server. In the following embodiments of the method, the method will be described with reference to the example in which the method is independently performed by a terminal.
[0033] 2 is a flowchart of a method for controlling a virtual object to pick up a virtual prop, provided in an exemplary embodiment of the present application. In this embodiment, the method is applied to the first terminal 110 or the second terminal 130 in the implementation environment shown in FIG. 1, or to other terminals in the implementation environment. The method includes the following steps:
[0034] Step 201: Display the prop pick-up list.
[0035] The prop pickup list includes a prop pickup control corresponding to a virtual prop, which refers to a virtual prop scattered in the virtual environment and not belonging to any virtual object, and the controlled virtual object corresponding to the terminal and other virtual objects in the virtual environment can both pick up the virtual prop, and after being picked up by the virtual object, the virtual prop becomes a prop owned by the virtual object (i.e., a prop owned by the virtual object).
[0036] In one possible implementation, when a virtual prop exists in the virtual environment around (surrounding) the virtual object, the terminal displays a prop pickup list through the virtual environment interface to present the user with virtual props that the virtual object can pick up at the current time. For example, when the terminal detects that a virtual prop exists at a distance of 5 m or less from the virtual object, the terminal displays the prop pickup list. The prop pickup list includes a prop pickup control corresponding to each virtual prop around (surrounding) the virtual object, and the user can operate a prop pickup control in the prop pickup list to cause the terminal to control the virtual prop corresponding to the first virtual object pickup.
[0037] Optionally, when the distance between the virtual object and the virtual prop is smaller than the distance threshold, the terminal automatically displays the prop pickup list, and when the distance between the virtual object and the virtual prop is larger than the distance threshold, the terminal automatically cancels the display of the prop pickup list. Alternatively, the user can manually control the terminal to display or cancel the display of the prop pickup list. When a trigger operation for the prop pickup list is received, the terminal displays the prop pickup list, and the trigger operation may be a trigger operation for a list display control, a trigger operation of a predetermined operation type, a voice trigger operation, etc. However, the embodiments of the present application are not limited to these.
[0038] For example, refer to Figure 3, which shows a virtual environment interface displaying a prop pickup list. Virtual props 302 exist around a virtual object 301, and the terminal displays a prop pickup list 303 through the virtual environment interface. The prop pickup list 303 includes a prop pickup control corresponding to each of the three virtual props 302.
[0039] Step 202: Receive an operation on a first prop pickup control in the prop pickup list, where the first prop pickup control is the prop pickup control of a first virtual prop.
[0040] There is a one-to-one correspondence between the prop pickup controls in the prop pickup list and the virtual props. The prop pickup control that receives the operation is the first prop pickup control, and the virtual prop corresponding to the first prop pickup control is the first virtual prop. When the terminal receives the operation for the first prop pickup control, it controls the virtual object to pick up the first virtual prop from the virtual environment.
[0041] In one possible implementation, the operation on the first prop pickup control is an operation whose operation starting point is located within the first prop pickup control and whose operation type satisfies the control trigger condition, whereby different pickup methods correspond to different control trigger conditions (operation types), and the terminal determines the pickup method according to the operation type after receiving the operation on the first prop pickup control.
[0042] Step 203: Based on the pick-up method instructed by the operation, the virtual object is controlled to pick up the first virtual prop, and the pick-up method of the first virtual prop includes a pick-up and use method (pick-up & use) or a pick-up and carry method (pick-up & carry).
[0043] A virtual object's props have two states: a use state and a carry state. A use state prop refers to a prop that the virtual object can directly use to change the attribute values of other virtual objects (e.g., held in the hand, held by the foot, or bound or installed to a part of the virtual object). That is, when the device receives an operation on the prop use control, it controls the virtual object to change the attribute values of other virtual objects using the prop in the use state. A carry state prop refers to a prop that the virtual object cannot directly use to change the attribute values of other virtual objects (e.g., when the virtual object is on its back or hidden in a prop box). A carry state prop can be switched to a use state, and a carry state prop can be switched to a carry state. Pickup methods for a virtual object to pick up a virtual prop include a pick-up and use method and a pick-up and carry method. The pick-up and use method refers to picking up a virtual prop and equipping it in a use state, and the pick-up and carry method refers to picking up a virtual prop and equipping it in a carry state.
[0044] In one possible implementation manner, the terminal controls the virtual object to pick up the first virtual prop in a pick-up manner indicated by the operation. For example, the user can single-click the first prop pick-up control to control the terminal to control the controlled virtual object to pick up the first virtual prop and hold it in its hand, and the corresponding pick-up manner is pick-up and use; the user can slide the first prop pick-up control to the right to control the terminal to control the virtual object to pick up the first virtual prop and carry it on its back, and the corresponding pick-up manner is pick-up and carry.
[0045] Optionally, the terminal may control the virtual object to pick up the first virtual prop based on the received operation, and the server may control the virtual object to pick up the first virtual prop, and the terminal may report the received operation to the server, and the server may determine a pick-up manner corresponding to the operation and control the first virtual object to pick up the first virtual prop, thereby feeding back a display screen of picking up the first virtual prop to the terminal, so that the terminal can display a screen display process of controlling the virtual object to pick up the first virtual prop.
[0046] In summary, in the embodiments of the present application, different operations on the first prop pickup control can trigger the virtual object to pick up the first virtual prop in different pickup manners, including picking up and using and picking up and carrying. The user can control the use of the owned prop and the first virtual prop through different operations according to their actual needs. Compared with the related art method of directly controlling the virtual object to discard a virtual prop in use, when the user wants to control the virtual object to use another virtual prop, the user does not need to first operate and control the virtual object to pick up the first virtual prop and then operate and control the virtual object to switch the first virtual prop to a carrying state. Instead, the user only needs to perform a single corresponding operation on the first prop pickup control based on the required pickup manner, which can control the virtual object to pick up the first virtual prop and equip it in a corresponding state, thereby simplifying the operation of picking up virtual props and improving the efficiency of prop pickup.
[0047] To distinguish between different pickup methods, different operations are assigned to the different pickup methods. In one possible implementation, the operations for the first prop pickup control include a first operation and a second operation, and the two operations have different operation types and correspond to different pickup methods. For example, the first operation can be a click operation, and the second operation can be a slide operation.
[0048] 4 is a flowchart of a method for controlling a virtual object to pick up a virtual prop provided in another exemplary embodiment of the present application. In this embodiment, the method is applied to the first terminal 110 or the second terminal 130 in the implementation environment shown in FIG. 1 or other terminals in the implementation environment, and the method includes the following steps:
[0049] Step 401: Display the prop pick-up list.
[0050] For the specific implementation manner of step 401, refer to step 201 described above, and the detailed description thereof will be omitted in the embodiments of this application.
[0051] Step 402: Receive a first operation for a first prop pickup control in the prop pickup list, or receive a second operation for a first prop pickup control in the prop pickup list.
[0052] The operation types of the first operation and the second operation are different, and the operation types of the first operation and the second operation include the following types: the first operation is a click operation, and the second operation is a slide operation.
[0053] For example, the first operation may be a single click operation, a double click operation, a one-finger click operation, a two-finger click operation, etc., and the second operation may be a right slide operation, a left slide operation, a one-finger slide operation, a two-finger slide operation, etc. The first operation and the second operation may be a combination of any click operation and any slide operation, such as a single click operation + a right slide operation, a single click operation + a left slide operation, a single click operation + a one-finger slide operation, a single click operation + a two-finger slide operation, a double click operation + a right slide operation, a double click operation + a left slide operation, a double click operation + a one-finger slide operation, a double click operation + a two-finger slide operation, etc., but is not limited to these in the embodiments of the present application. For example, the first operation is a single-click operation and the second operation is a right-sliding operation. When the user single-clicks the first prop pickup control, the terminal controls the first virtual object to pick up and use the first virtual prop; when the user performs a right-sliding operation on the first prop pickup control, the terminal controls the first virtual object to pick up and carry the first virtual prop.
[0054] Alternatively, the first operation is a first sliding operation, the second operation is a second sliding operation, and the sliding directions of the first sliding operation and the second sliding operation are different.
[0055] For example, the first operation may be a left-slide operation and the second operation may be a right-slide operation, or the first operation may be a right-slide operation and the second operation may be a left-slide operation, or the first operation may be an up-slide operation and the second operation may be a down-slide operation, or the first operation may be a down-slide operation and the second operation may be an up-slide operation, etc. However, the embodiments of the present application are not limited thereto.
[0056] Alternatively, the slide distances of the first slide operation and the second slide operation are different. For example, the first slide operation and the second slide operation are both slide operations to the left, but the first slide distance of the first slide operation is smaller than the second slide distance of the second slide operation, or the first slide distance of the first slide operation is larger than the second slide distance of the second slide operation.
[0057] Alternatively, the first operation is a first click operation, the second operation is a second click operation, and the first click operation and the second click operation have different numbers of clicks.
[0058] For example, the first operation may be a single click and the second operation may be a double click, or the first operation may be a double click and the second operation may be a single click, or the first operation may be a one-finger click and the second operation may be a two-finger click, but the embodiments of the present application are not limited thereto.
[0059] In other possible implementations, the first and second operations may be other types of operations, such as a slide operation and a click operation, or a click operation and a long press operation.
[0060] Step 403: Based on the first operation, control the virtual object to pick up and use the first virtual prop, or based on the second operation, control the virtual object to pick up and carry the first virtual prop.
[0061] The pickup manner corresponding to the first operation is a pick-up and use manner, and the pickup manner corresponding to the second operation is a pick-up and carry manner. The terminal determines whether the operation on the first prop pickup control belongs to the first operation (first operation) or the second operation (second operation) according to the operation type, and controls the virtual object to pick up and use the first virtual prop or pick up and carry the first virtual prop.
[0062] In one possible implementation manner, when the first operation or the second operation is a slide operation, the method for controlling a virtual object to pick up a virtual prop provided in the embodiments of the present application further includes the following steps:
[0063] A presentation control is displayed around the prop pick-up list, the display position of the presentation control corresponds to the sliding direction of the slide operation, and the presentation control displays prop pick-up information, which is used to indicate the pick-up method of the first virtual prop.
[0064] When the first or second operation is a slide operation, and the slide start point is located within the first prop pickup control and the slide direction is consistent with the first or second operation, the terminal displays a prompt control around the prop pickup list according to the slide direction, and the prompt control displays prompt information for instructing the pickup method. The terminal displays the prompt control to prompt the user how the virtual object will pick up the first virtual prop after the current operation is completed, which is beneficial to the user in deciding whether to continue the operation and can prevent the first virtual object from adopting an incorrect pickup method due to an erroneous operation.
[0065] 5 and 6, for example, the first operation is a left-sliding operation, and the second operation is a right-sliding operation. In order to present the user with pickup methods corresponding to the two operations, when a right-sliding operation is received on the first prop pickup control 502, the terminal displays a presentation control 503 on the right side of the prop pickup list 501, and the presentation information in the presentation control 503 is "put away a prop", which corresponds to the pick-up and carry method. When a left-sliding operation is received on the first prop pickup control 502, the terminal displays a presentation control 503 on the left side of the prop pickup list 501, and the presentation information in the presentation control 503 is "use a prop", which corresponds to the pick-up and use method.
[0066] In another implementation, the virtual object has a limit on the number of owned props, and when the limit is reached, the virtual object needs to replace the owned prop when picking up a virtual prop again. When a first virtual prop is picked up in a pickup manner instructed by an operation and the corresponding owned prop needs to be replaced, the presented information further includes the prop identifier (ID) of the owned prop to be replaced. This makes it convenient for the user to know which owned prop will be replaced, and the user does not need to observe or think about the prop replacement situation, thereby improving the efficiency of prop picking and preventing the user from accidentally discarding a needed owned prop. If the user does not want to replace the owned prop, they can stop continuing the operation.
[0067] 7, the current virtual object is using the secondary prop 505 among the owned props, and the primary prop 504 among the owned props is in a held state. When receiving a second operation on the first prop pickup control 502, the terminal determines that the primary prop 504 in the held state needs to be replaced, and displays a presentation control 503, which includes presentation information “Replace primary prop”.
[0068] In the embodiment of the present application, by setting different types of operations for the two pickup methods, the user can control the virtual object to pick up the first virtual prop and determine the prop state of the first virtual prop by performing only one operation on the first prop pickup control. Compared with the fixed prop pickup method, the user does not need to adjust the prop state of a owned prop so as not to affect other owned props, which simplifies the operation flow of controlling the virtual object to pick up a virtual prop and improves operation efficiency.
[0069] In one possible implementation manner, when the first operation or the second operation is a slide operation in a target direction, the above-mentioned step 202 includes the following steps:
[0070] Step 202a: Receive a slide operation in a target direction acting on a first prop pickup control.
[0071] When detecting a slide operation in a target direction acting on a first prop pickup control (the operation starting point is located within the first prop pickup control), the terminal detects the slide event and determines whether it belongs to the first operation or the second operation.
[0072] Step 202b: Determine that an operation for the first prop pickup control has been received according to the fact that the slide operation has ended and the slide distance is equal to or greater than the first distance threshold.
[0073] The terminal determines whether a slide event is valid based on the slide distance of the slide operation, i.e., whether the slide operation belongs to the first operation or the second operation. When the slide operation has ended and the slide distance is equal to or greater than the first distance threshold, the terminal determines that an operation for the first prop pickup control has been received.
[0074] The unit of slide distance is device independent pixels (DP). The calculation formula is DP coefficient = screen pixel density / 160. The advantage of using DP as the unit of slide distance is that when adapting to device types with different pixel densities in the application program development process, it is possible to ensure that the physical size of the same control displayed on terminals of each device type is unified, which makes it convenient to determine slide events using a unified distance threshold.
[0075] Accordingly, the method for controlling a virtual object to pick up a virtual prop provided in an embodiment of the present application further includes the following steps:
[0076] If the slide operation has ended and the slide distance is less than the first distance threshold, it is determined that the slide operation does not belong to the operation on the first prop pickup control.
[0077] For example, as shown in FIG. 8, the process of determining whether a slide event is enabled by a terminal includes the following steps:
[0078] Step 801: receiving a slide operation on a first prop pickup control; Step 802: Determine whether the sliding distance is greater than the distance threshold, if yes, execute step 804, if no, execute step 803; Step 803: Determine that the slide event has failed; and Step 804: Determine that the slide event is enabled, and control the virtual object to pick up the first virtual prop.
[0079] If a change occurs in the sliding direction of the sliding operation and the sliding distance after the direction change is equal to or greater than a second distance threshold, it is determined that the sliding operation does not belong to an operation for the first prop pickup control.
[0080] When the sliding operation is not completed, the sliding direction of the sliding operation changes, and the sliding distance after the direction change is equal to or greater than the second distance threshold, the terminal determines that the sliding event has failed and the sliding operation does not belong to the first operation or the second operation, that is, the user can cancel the first operation or the second operation by sliding in the opposite direction when the operation is not completed, thereby reducing the risk of accidentally picking up the virtual prop.
[0081] Optionally, the second distance threshold may be equal to or less than the first distance threshold, i.e., a relatively large distance threshold is required to determine whether a slide event is valid, and even if the slide distance is relatively small, as long as the slide direction changes, the slide event can be determined to be unsuccessful, thereby increasing the threshold for validating a slide event and improving the accuracy of determining that the slide event is a slide event initiated by the user, and avoiding erroneous prop pick-up operations due to accidental touches.
[0082] For example, when the second operation is a right sliding operation, and the terminal receives a right sliding operation on the first prop pickup control, and detects that the sliding operation has changed to a left sliding operation and the left sliding distance is greater than a second distance threshold, the terminal determines that the sliding operation does not belong to the operation on the first prop pickup control.
[0083] Illustratively, as shown in FIG. 9, the process of determining whether the cancellation of a slide event is enabled by a terminal includes the following steps:
[0084] Step 901: detecting that a change in the sliding direction of the sliding operation occurs in the sliding operation process; Step 902: Determine whether the sliding distance after the sliding direction change is greater than the distance threshold, and if yes, execute step 904; if no, execute step 903; and Step 903: Determine that the cancellation of the slide event has failed; and Step 904: It is determined that the cancellation of the slide operation is enabled, and the operation of picking up the first virtual prop is canceled.
[0085] Rather than the prop pick-up method, the user is more interested in the owned props that the virtual object needs to discard after picking up the first virtual prop and that will be replaced by the first virtual prop. In one possible implementation, the terminal provides a mechanism for selecting the prop to be replaced. The user can select the owned prop to be replaced, and the terminal can automatically determine the pick-up method based on the prop status of the prop to be replaced, and control the first virtual object to pick up the first virtual prop and replace the corresponding owned prop.
[0086] 10 is a flowchart of a method for controlling a virtual object to pick up a virtual prop provided in another exemplary embodiment of the present application. In this embodiment, the method is applied to the first terminal 110 or the second terminal 130 in the implementation environment shown in FIG. 1 or other terminals in the implementation environment, and the method includes the following steps:
[0087] Step 1001: Display the prop pick-up list.
[0088] The specific implementation method of step 1001 can be referred to above in step 201, and therefore detailed description thereof will be omitted in the embodiments of the present application.
[0089] Step 1002: In response to a long press operation on a first prop pickup control in the prop pickup list, display a prop replacement control, where different prop replacement controls correspond to different owned props.
[0090] In one possible implementation, when the operation on the first prop is a long press operation, a prop replacement control can be displayed and a selection operation on the prop replacement control can be triggered. After the user determines the first virtual prop to be picked up, the user can long press the first prop pickup control corresponding to the first virtual prop, thereby enabling the terminal to display the prop replacement control corresponding to the first prop pickup control. The prop replacement control is used to trigger the replacement of the corresponding owned prop with the first virtual prop.
[0091] 11, when a long press operation is received on a first prop pickup control 1101, the terminal switches the first prop pickup control 1101 to a first prop replacement control 1101a and a second prop replacement control 1101b. The first prop replacement control 1101a is used to trigger the replacement of a corresponding primary prop 1102 with a first virtual prop, and the second prop replacement control 1101b is used to trigger the replacement of a corresponding secondary prop 1103 with the first virtual prop. A prop indicator (image) of the corresponding owned prop may be displayed on the prop replacement control, allowing the user to quickly determine the pickup method and complete the operation.
[0092] In another possible implementation, the prop replacement control has a one-to-one correspondence with the prop placement position, and the prop replacement control is used to trigger the replacement of the owned prop at the corresponding prop placement position. When the prop placement position is vacant, the prop replacement control may display an vacant mark (the vacant mark is used to indicate that the corresponding prop placement position is vacant).
[0093] Optionally, when displaying prop replacement controls, the terminal may display corresponding prop replacement controls for all owned props, or may display prop replacement controls for only some owned props to reduce the difficulty for the user to select a prop replacement control.
[0094] Optionally, when the terminal displays the prop replacement control for some owned props, it can select owned props waiting to be replaced from among all virtual props owned by the user's primary control virtual object. When selecting owned props to be replaced, it can select virtual props belonging to the same prop type as the first virtual prop, or select virtual props similar to the attack type of the first virtual prop, or select virtual props having the same usage method as the first virtual prop, or preferentially select virtual props with relatively low prop priority, and the prop priority can be related to the frequency of past use of the virtual prop (the lower the frequency of past use, the lower the prop priority), or the attack strength of the virtual prop (the lower the attack strength, the lower the prop priority), or the attack range of the virtual prop (the smaller the attack range, the lower the prop priority).
[0095] Step 1003: A selection operation for the first prop replacement control is received.
[0096] Optionally, the selection operation may be a click operation, a long press operation, a slide operation, a drag operation, etc., but is not limited to these in the embodiments of the present application.
[0097] Step 1004: Determine a pickup method based on the prop state of the owned prop corresponding to the first prop replacement control.
[0098] Since the user's operation on the prop pickup control indicates the owned prop to be replaced, the terminal needs to determine the pickup method of the first virtual prop based on the prop state of the owned prop corresponding to the first prop replacement control, so that the state of the first virtual prop after pickup matches the prop state of the owned prop to be replaced, thereby avoiding affecting owned props in other states.
[0099] In one possible implementation, step 1004 includes the following steps:
[0100] Step 1004a: If the prop state is in use, determine that the pick-up method is a pick-up and use method.
[0101] Step 1004b: If the prop state is the non-use state, determine that the pick-up method is the pick-up and carry method.
[0102] The prop state being in use refers to a state in which a virtual object can directly use the virtual prop to change the attribute values of other virtual objects (e.g., held in hand, held by foot, bound or installed to a certain part of the virtual object), i.e., when the terminal receives an operation on the prop use control, it controls the virtual object to change the attribute values of other virtual objects using the virtual prop in the use state. The prop not being in use refers to a state in which a virtual object cannot directly use the virtual prop to change the attribute values of other virtual objects (e.g., the virtual object is on its back or hidden in a prop box). The not being in use state is also called a carried state, and a owned prop in the not being in use state can be switched to the used state, and a owned prop in the used state can be switched to the not being in use state.
[0103] The terminal determines the pickup mode so that the prop state of the first virtual prop after pickup matches the prop state of the owned prop corresponding to the first prop replacement control. For example, the owned props of the virtual object include one primary prop and one secondary prop, of which the primary prop is in an unused state and the secondary prop is in an used state. After receiving a trigger operation on the prop replacement control corresponding to the primary prop, when the primary prop is in an unused state, the replaced first virtual prop should also be in an unused state. In this case, the terminal correspondingly determines the pickup mode of the first virtual prop to be a pick-up and carry mode. Optionally, after receiving a trigger operation on the prop replacement control corresponding to the secondary prop, when the secondary prop is in a used state, the replaced first virtual prop should also be in a used state. In this case, the terminal correspondingly determines the pickup mode of the first virtual prop to be a pick-up and use mode.
[0104] In another possible implementation, the prop replacement control corresponds one-to-one with the prop placement position, and the prop replacement control is used to trigger the replacement of the owned prop at the corresponding prop placement position. When the prop placement position is vacant, the prop replacement control may display an vacant mark (the vacant mark is used to indicate that the corresponding prop placement position is vacant).
[0105] Therefore, when there is a owned prop corresponding to the first prop replacement control, the terminal executes step 1004a or step 1004b. When there is no owned prop corresponding to the first prop replacement control, the terminal determines the pickup method based on the prop status of other owned props. When there is an owned prop in a use state, the terminal determines the pickup method to be pick up and carry, and when there is no owned prop in a use state, the terminal determines the pickup method to be the default pickup method (pick up and use or pick up and carry).
[0106] Step 1005: Control the virtual object to pick up the first virtual prop according to the pick-up method.
[0107] Optionally, the terminal controls the virtual object to pick up the first virtual prop and to discard the owned prop corresponding to the first prop replacement control according to the pick-up manner, or switches the owned prop corresponding to the first prop replacement control from a use state to a non-use state when the pick-up manner is a pick-up and use manner.
[0108] Optionally, the state of the owned prop to be replaced can be determined based on the number of props owned by the virtual object; when the number of props owned by the virtual object does not reach the upper limit of the number of props, the owned prop corresponding to the first prop replacement control can be switched from a used state to an unused state without being discarded; when the number of props owned by the virtual object reaches the upper limit of the number of props, the owned prop corresponding to the first prop replacement control can be directly discarded.
[0109] In the embodiment of the present application, the pickup method is determined based on the prop status of the owned prop corresponding to the first prop replacement control, so that the user does not need to observe and think about how to select the pickup method, but can directly select the prop that needs to be replaced, thereby avoiding discarding the owned prop that still needs to be used due to selecting the wrong pickup method. Furthermore, the replacement of the owned prop and the pickup of the first virtual prop can be completed with only one operation, which further improves the efficiency and accuracy of controlling the virtual object to pick up the virtual prop.
[0110] 12 is a flowchart of a method for controlling a virtual object to pick up a virtual prop, provided in another exemplary embodiment of the present application. In this embodiment, the method is applied to the first terminal 110 or the second terminal 130 in the implementation environment shown in FIG. 1 or other terminals in the implementation environment, and the method includes the following steps:
[0111] Step 1201: Display the prop pick-up list.
[0112] Step 1202: Receive an operation on a first prop pickup control in the prop pickup list, where the first prop pickup control is the prop pickup control of a first virtual prop.
[0113] For the specific implementation of steps 1201 and 1202, reference can be made to the above-mentioned embodiments, and detailed description thereof will be omitted in the embodiments of the present application.
[0114] Step 1203: If the number of props owned by the virtual object does not reach the upper limit of the number of props, control the virtual object to pick up the first virtual prop according to the pick-up method instructed by the operation.
[0115] A virtual object may have an upper limit on the number of props it owns. For example, if the upper limit on the number of props is five, the virtual object can own a maximum of five virtual props. When the number of props owned by the virtual object is less than the upper limit, the virtual object can continue to pick up virtual props. When the number of props owned by the virtual object has reached the upper limit, the terminal must control the virtual object to first discard a corresponding number of virtual props it owns and then pick up the first virtual prop. Therefore, after picking up the first virtual prop according to the pickup method instructed by the operation, the terminal further determines whether to discard a second virtual prop among the owned props based on the relationship between the number of props owned by the virtual object and the upper limit on the number of props. When the number of props owned by the virtual object has not reached the upper limit, the second virtual prop does not need to be discarded when picking up the first virtual prop according to the pickup method. Conversely, when the number of props owned by the virtual object has reached the upper limit, the second virtual prop may need to be discarded simultaneously with picking up the first virtual prop according to the pickup method.
[0116] The number of owned props here is the number of virtual props that the virtual subject owns before picking up the first virtual prop.
[0117] In one possible implementation manner, when the upper limit of the number of owned props in use is 1 and the pick-up manner is a pick-up and use manner, step 1203 includes the following steps:
[0118] Step 1203a: If the number of possessed props does not reach the upper limit of the number of props and the virtual object does not use a virtual prop, control the virtual object to pick up and use a first virtual prop.
[0119] When picking up the first virtual prop according to the pickup manner, if the pickup manner of the first virtual prop is a pick-up and use manner, the virtual object cannot use two virtual props at the same time, so it is necessary to determine whether the prop states of other virtual props need to be changed based on whether the virtual object uses the virtual prop. In one possible implementation manner, if the number of owned props does not reach the upper limit of the number of props and the virtual object does not use the virtual prop, and the pickup manner is a pick-up and use manner, the terminal directly controls the virtual object to pick up and use the first virtual prop.
[0120] For example, if a virtual object has at most one main prop and one secondary prop, when the virtual object only has one main prop and the main prop is in an unused state, and the pick-up manner is a pick-up and use manner, upon receiving an operation, the terminal controls the virtual object to pick up the first virtual prop and use the first virtual prop as a secondary prop.
[0121] Step 1203b: If the number of owned props does not reach the upper limit of the number of props and the third virtual prop is in a used state, control the virtual object to switch the third virtual prop to a non-used state, and control the virtual object to pick up and use the first virtual prop.
[0122] When the number of owned props has not reached the upper limit of the number of props and the third virtual prop is in a use state, if the pickup mode is a pick-up and use mode, the virtual object cannot use multiple virtual props at the same time. Therefore, the terminal needs to control the virtual object to first switch the owned prop in a use state (i.e., the third virtual prop) to a non-use state, and then pick up and use the first virtual prop.
[0123] For example, if a virtual object has at most one primary prop and one secondary prop, and the primary prop is in a use state, when the virtual object receives an operation in which the pickup manner is a pick-up and use manner, the terminal controls the virtual object to switch the primary prop from a use state to a non-use state (e.g., from a hand-held state to a back-carried state), and then pick up a first virtual prop and use the first virtual prop as a secondary prop.
[0124] In one possible implementation manner, when the pick-up manner is a pick-up and carry manner, step 1103 includes the following steps:
[0125] Step 1203c: If the number of possessed props does not reach the upper limit of the number of props, control the virtual subject to pick up and carry the first virtual prop.
[0126] The pick-up method of picking up and carrying does not affect the owned props in use, that is, regardless of whether there are owned props in use or not, as long as the number of owned props does not reach the upper limit of the number of props, all virtual objects can directly pick up and carry the first virtual prop without changing the state of other owned props.
[0127] For example, a virtual object may have at most one main prop and one secondary prop. When the virtual object only has one main prop, upon receiving an operation in which the pickup manner is a pick-up and carry manner, the terminal controls the first virtual object to pick up the first virtual prop and carry the first virtual prop as a secondary prop.
[0128] Step 1204: If the number of possessed props reaches the upper limit of the number of props, control the virtual object to pick up the first virtual prop and discard the second virtual prop according to the pick-up manner instructed by the operation.
[0129] When the number of owned props reaches the upper limit of the number of props, the terminal cannot directly control the virtual object to continuously pick up virtual props, but must control the virtual object to first discard the second virtual prop and then pick up the first virtual prop.
[0130] When a different prop is equipped, the second virtual prop is different. In one possible implementation manner, when the pickup mode is a pickup and use mode, if there is no owned prop in use, step 1104 includes the following steps:
[0131] Step 1204a: When the number of possessed props reaches the upper limit of the number of props and the virtual object does not use any virtual props, a second virtual prop is determined from the possessed props that are not in use.
[0132] Step 1204b: Control the virtual subject to discard the second virtual prop.
[0133] Step 1204c: Control the virtual subject to pick up and use the first virtual prop.
[0134] When the number of owned props reaches the upper limit of the number of props, the terminal must first control the virtual object to discard a corresponding number of owned props before controlling the first virtual object to continue picking up virtual props.When the virtual object does not use the virtual props, i.e., when there are no owned props in use, the terminal must select a second virtual prop from the unused owned props and control the virtual object to discard the second virtual prop and then pick up the first virtual prop.
[0135] For example, if the props owned by a virtual object include one main prop and one secondary prop, and the number of props has reached the upper limit, when the virtual object does not use a virtual prop and the terminal receives an operation in which the pick-up manner is the pick-up and use manner, the terminal will determine a second virtual prop from the main prop and the secondary prop.
[0136] Optionally, the second virtual prop is a default prop (e.g., a primary prop), or the terminal determines the second virtual prop from among unused owned props based on the prop priority of each owned prop, where the prop priority of the second virtual prop is lower than the prop priorities of other owned props. Optionally, the prop priority may be determined according to the frequency of use of the owned prop (the lower the use frequency, the lower the prop priority), or the prop priority may be determined according to the prop effect strength of the owned prop (the stronger the prop effect strength, the higher the prop priority), or the prop priority may be determined according to the prop effect range of the owned prop (the larger the prop effect range, the higher the prop priority).
[0137] Optionally, the number of second virtual props that the virtual object needs to discard, which the terminal needs to control, is determined based on the number of first virtual props that it picks up, for example, when two first virtual props need to be picked up, two second virtual props need to be discarded.
[0138] In one possible implementation manner, when the pickup manner is a pickup and use manner, if there is a owned prop in use state, step 1204 includes the following steps:
[0139] Step 1204d: When the number of owned props reaches the upper limit of the number of props and the second virtual prop is in a used state, control the virtual object to discard the second virtual prop.
[0140] Step 1204e: Control the virtual subject to pick up and use the first virtual prop.
[0141] When the number of owned props reaches the upper limit of the number of props and there is a second virtual prop in use, upon receiving an operation in which the pick-up manner is a pick-up and use manner, the terminal determines the owned prop in use as the second virtual prop and controls the virtual object to discard the second virtual prop and then pick up and use the first virtual prop.
[0142] For example, if the virtual object's owned props include one main prop and one sub prop, and the number of props has reached the upper limit, when the virtual object is using the main prop and the terminal receives an operation in which the pick-up manner is a pick-up and use manner, the terminal controls the virtual object to drop the main prop, pick up the first virtual prop, and use the first virtual prop as the main prop.
[0143] In one possible implementation manner, when the pick-up manner is a pick-up and carry manner, step 1104 includes the following steps:
[0144] Step 1204f: If the number of owned props has reached the upper limit of the number of props, a second virtual prop is determined from the owned props that are not in use.
[0145] Step 1204g: The virtual subject is controlled to discard the second virtual prop.
[0146] Step 1204h: Control the virtual subject to pick up and carry the first virtual prop.
[0147] When the number of owned props reaches the upper limit of the number of props, if the user selects the pick-up method as the pick-up and carry method, the owned props in use are usually relatively important props, and the user is likely to control the virtual object to continue using the props, so in order to avoid affecting the owned props in use, the terminal selects a second virtual prop from the owned props in unused state.
[0148] In the last two prop pickup scenes mentioned above, after receiving the operation on the first prop pickup control, the terminal first needs to determine the second virtual prop from the unused owned props. The second virtual prop determination process includes the following steps:
[0149] A second virtual prop is determined from the unused owned props based on the prop priorities of the owned props, and the prop priority of the second virtual prop is lower than the prop priorities of the other owned props.
[0150] Wherein, the prop priority is determined based on a priority setting operation, or the prop priority of the owned prop of the same type as the first virtual prop is lower than the prop priority of the owned prop of a different type from the first virtual prop, or the prop priority is positively correlated with the prop effect strength of the owned prop, or the prop priority is positively correlated with the prop effect range of the owned prop.
[0151] The discarded owned prop is usually a virtual prop that the user does not need. In one possible implementation manner, the terminal determines the owned prop with the lowest prop priority as the second virtual prop.
[0152] Optionally, the prop priority is determined based on a priority setting operation, for example, a user can set a prop priority for each type of virtual prop, and the terminal determines a prop priority for each owned prop based on the prop type of the owned prop and the correspondence between the prop type and the prop priority obtained based on the priority setting operation.
[0153] Optionally, the prop priority has a positive correlation with at least one of the prop attribute values of the prop effect strength (e.g., the degree to which the attribute value of the virtual object is changed), the prop effect range, etc. The terminal determines the owned prop with the smallest prop effect strength or prop effect range as the second virtual prop.
[0154] Optionally, the prop priority of a owned prop of the same type as the first virtual prop is lower than the prop priority of a owned prop of a different type from the first virtual prop, that is, when the owned props include a prop of the same type as the first virtual prop, the terminal first determines a second virtual prop from the owned props of the same type as the first virtual prop.
[0155] In an embodiment of the present application, the terminal determines whether to replace or discard a virtual prop based on the pickup method instructed by the operation, the number of props owned by the virtual object, and whether the virtual object uses the virtual prop. If the number of owned props reaches the prop limit, the terminal determines the second or third virtual prop to be discarded based on the user's operation and the prop priority. Compared to the related art's method of directly discarding a used prop, the following operation is not required: the user operates and controls the first virtual object multiple times to replace the used prop from the prop to be used with the prop to be discarded, and then controls the first virtual object to pick up the first virtual prop, and may also replace the used prop from the first virtual prop with another prop to be used. This simplifies the prop pickup operation and prevents the user from accidentally discarding a used prop due to an incorrect user operation.
[0156] In conjunction with the above-mentioned embodiment, in one illustrative example, the flow of a terminal controlling a virtual object to pick up a virtual prop is as shown in FIG. 13, and the flow includes the following steps:
[0157] Step 1301: Display the prop pickup list.
[0158] Step 1302: Receive an operation on the first prop pickup control in the prop pickup list.
[0159] Step 1303: Determine whether the number of owned props has reached the upper limit of the number of props. If yes, execute step 1304 or step 1305; if no, execute step 1306 or step 1307.
[0160] Step 1304: If the pick-up manner is a pick-up and use manner, control the virtual object to pick up the first virtual prop and replace the owned prop in the use state.
[0161] Step 1305: If the pick-up manner is a pick-up and carry manner, control the virtual object to discard the second virtual prop and pick up and carry the first virtual prop.
[0162] When the number of owned props reaches the upper limit of the number of props, if the pick-up method is a pick-up and use method, the second virtual prop in use is directly discarded and the virtual object is controlled to pick up and use the first virtual prop; if the pick-up method is a pick-up and carry method, the second virtual prop is determined from the owned props in an unused state, the second virtual prop is discarded, and the virtual object is controlled to pick up and carry the first virtual prop.
[0163] Step 1306: If the pick-up manner is a pick-up and use manner, control the virtual object to pick up the first virtual prop and replace the owned prop in the use state.
[0164] Step 1307: If the pick-up manner is a pick-up and carry manner, control the virtual object to pick up and carry the first virtual prop.
[0165] When the number of owned props does not reach the upper limit of the number of props, if the pick-up method is a pick-up and use method, the third virtual prop in the use state is switched to the non-use state and the virtual object is controlled to pick up and use the first virtual prop; if the pick-up method is a pick-up and carry method, the virtual object does not need to change the prop state of other owned virtual props and is controlled to directly pick up and carry the first virtual prop.
[0166] 14 is a block diagram of a device for controlling a virtual object to pick up a virtual prop, provided in one exemplary embodiment of the present application. The device includes:
[0167] A display module 1401: used to display a prop pickup list, where the prop pickup list includes prop pickup controls of virtual props; a receiving module 1402: used to receive an operation for a first prop pickup control in the prop pickup list, the first prop pickup control being a prop pickup control of a first virtual prop; and A control module 1403 is used to control the virtual object to pick up the first virtual prop according to the pick-up manner indicated by the operation, where the pick-up manner of the first virtual prop includes picking it up and using it or picking it up and carrying it.
[0168] Optionally, the receiving module 1402 is further used to receive a first operation for the first prop pickup control in the prop pickup list; or to receive a second operation for the first prop pickup control in the prop pickup list, wherein the operation types of the first operation and the second operation are different.
[0169] The control module 1403 is further used to control the virtual object to pick up and use the first virtual prop based on the first operation; or to control the virtual object to pick up and carry the first virtual prop based on the second operation.
[0170] Optionally, the first operation is a click operation and the second operation is a slide operation; or the first operation is a first slide operation and the second operation is a second slide operation, and the slide directions of the first slide operation and the second slide operation are different; or the first operation is a first click operation and the second operation is a second click operation, and the number of clicks of the first click operation and the second click operation are different.
[0171] Optionally, the first operation or the second operation is a slide operation.
[0172] The display module 1401 is further used to display a presentation control around the prop pickup list, the display position of the presentation control corresponds to the sliding direction of the sliding operation, and the presentation control displays prop pickup information, which is used to indicate the pickup manner of the first virtual prop.
[0173] Optionally, the receiving module 1402 is further configured to display a prop replacement control in response to a long press operation on the first prop pickup control in the prop pickup list, where different prop replacement controls correspond to different owned props; and to receive a select operation on the first prop replacement control.
[0174] The control module 1403 is further used to determine the pickup manner based on the prop state of the owned prop corresponding to the first prop replacement control; and to control the virtual object to pick up the first virtual prop based on the pickup manner.
[0175] Optionally, the control module 1403 is further used to determine that the pickup manner is a pick-up and use manner when the prop state is a use state; and to determine that the pickup manner is a pick-up and carry manner when the prop state is a non-use state.
[0176] Optionally, the control module 1403 is further used to control the virtual object to pick up the first virtual prop based on the pickup method instructed by the operation when the number of props owned by the virtual object has not reached the upper limit of the number of props; and to control the virtual object to pick up the first virtual prop and discard the second virtual prop based on the pickup method instructed by the operation when the number of props owned by the virtual object has reached the upper limit of the number of props.
[0177] Optionally, the pick-up method is a pick-up and use method.
[0178] The control module 1403 is further used to control the virtual object to pick up and use the first virtual prop when the number of owned props does not reach the upper limit of the number of props and the virtual object does not use a virtual prop; and to control the virtual object to switch the third virtual prop to an unused state when the number of owned props does not reach the upper limit of the number of props and a third virtual prop is in a used state; and to control the virtual object to pick up and use the first virtual prop.
[0179] Optionally, the pick-up method is a pick-up and use method.
[0180] The control module 1403 is further used for: when the number of owned props reaches the upper limit of the number of props and the virtual object does not use a virtual prop, determining the second virtual prop from the unused owned props, controlling the virtual object to discard the second virtual prop, and controlling the virtual object to pick up and use the first virtual prop; and when the number of owned props reaches the upper limit of the number of props and the second virtual prop is in a using state, controlling the virtual object to discard the second virtual prop, and controlling the virtual object to pick up and use the first virtual prop.
[0181] Optionally, the pick-up method is a pick-up and carry method.
[0182] The control module 1403 is further used to control the virtual object to pick up and carry the first virtual prop when the number of owned props has not reached the upper limit of the number of props; the control module 1403 is further used to determine the second virtual prop from among the unused owned props when the number of owned props has reached the upper limit of the number of props; control the virtual object to discard the second virtual prop; and control the virtual object to pick up and carry the first virtual prop.
[0183] Optionally, the control module 1403 is further used to determine the second virtual prop from the unused owned props based on the prop priority of the owned prop, wherein the prop priority of the second virtual prop is lower than the prop priority of other owned props.
[0184] Optionally, the prop priority is determined based on a priority setting operation; or the prop priority of the owned prop of the same type as the first virtual prop is lower than the prop priority of the owned prop of a different type from the first virtual prop; or the prop priority is positively correlated with the prop effect strength of the owned prop; or the prop priority is positively correlated with the prop effect range of the owned prop.
[0185] In summary, in the embodiments of the present application, different operations on the first prop pickup control can trigger the virtual object to pick up the first virtual prop in different pickup ways, including picking up and using or picking up and carrying, allowing the user to control the use of the owned prop and the first virtual prop through different operations according to actual needs. Compared with the related art method of directly controlling the virtual object to discard a virtual prop in use, when the user wants to control the virtual object to use another virtual prop, the user does not need to first operate and control the virtual object to pick up the first virtual prop and then operate and control the virtual object to switch the first virtual prop to a carrying state. Instead, the user only needs to perform a single corresponding operation on the first prop pickup control based on the required pickup way, which can control the virtual object to pick up the first virtual prop and equip it in the corresponding state, thereby simplifying the operation of picking up virtual props and improving the efficiency of picking up props.
[0186] 15, which is a block diagram of a terminal 1500 provided in one exemplary embodiment of the present application. The terminal 1500 may be a portable mobile terminal, such as a smartphone, a tablet computer, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, etc. The terminal 1500 may also be referred to as a user device, a mobile terminal, or other names.
[0187] The terminal 1500 typically includes a processor 1501 and a memory 1502 .
[0188] The processor 1501 may include one or more processing cores, for example, a 4-core processor, an 8-core processor, etc. The processor 1501 may include a DSP (Digital Signal Processor). The processor 1501 may be implemented in the form of at least one of hardware such as a GPU (Graphics Processing Unit), a FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor, where the main processor is a processor that processes data in an active state and is also called a Central Processing Unit (CPU), and the coprocessor is a low-power processor that processes data in a standby state. In some embodiments, the processor 1501 is a GPU (Graphics Processing Unit). The processor 1501 may also include an integrated GPU (Graphical Processing Unit), where the GPU is used to render and draw content that needs to be displayed on the display. In some embodiments, the processor 1501 may further include an artificial intelligence (AI) processor, where the AI processor is used to process computational operations related to machine learning.
[0189] The memory 1502 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 1502 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disks, flash memory, etc. In some embodiments, the non-transitory computer-readable storage media in the memory 1502 are used to store at least one instruction that is executed by the processor 1501 to implement the methods provided in the embodiments of the present application.
[0190] As will be appreciated by those skilled in the art, the configuration shown in FIG. 15 is not intended to limit terminal 1500, and terminal 1500 may include more or fewer assemblies than shown, may combine some assemblies, or may employ different assembly arrangements.
[0191] In an embodiment of the present application, a computer-readable storage medium is further provided, which stores at least one program instruction, and the at least one program instruction can be loaded and executed by a processor to realize the method for controlling a virtual object to pick up a virtual prop as described in each of the above embodiments.
[0192] According to another aspect of the present application, there is provided a computer program product, the computer program product including computer instructions stored in a computer-readable storage medium, wherein a processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the terminal to perform the method for controlling a virtual object to pick up a virtual prop, as provided in each alternative implementation manner of the above-mentioned aspect.
[0193] Although the preferred embodiment of the present application has been described above, the present application is not limited to this embodiment, and any modification to the present application falls within the technical scope of the present application as long as it does not depart from the spirit of the present application.
Claims
1. A method for controlling a virtual object to pick up a virtual prop, executed by a terminal, comprising: displaying a prop pickup list, the prop pickup list including prop pickup controls for virtual props; receiving an operation on a first prop pickup control in the prop pickup list, the first prop pickup control being a prop pickup control for a first virtual prop; and controlling the virtual object to pick up the first virtual prop according to a pick-up manner indicated by the operation, wherein the pick-up manner of the first virtual prop includes a pick-up and use manner or a pick-up and carry manner; The step of receiving an operation on a first prop pickup control in the prop pickup list includes: displaying a prop replacement control in response to a long press on the first prop pickup control in the prop pickup list, where different prop replacement controls correspond to different owned props; and The method includes receiving a selection operation on a first prop replacement control.
2. 2. The method of claim 1, The step of receiving an operation on a first prop pickup control in the prop pickup list includes: receiving a first operation on the first prop pickup control in the prop pickup list; or receiving a second operation on the first prop pickup control in the prop pickup list; The operation types of the first operation and the second operation are different, The step of controlling the virtual object to pick up the first virtual prop according to the pick-up manner instructed by the operation includes: Controlling the virtual object to pick up and use the first virtual prop based on the first operation; or The method includes controlling the virtual subject to pick up and carry the first virtual prop based on the second operation.
3. 3. The method of claim 2, the first operation is a click operation and the second operation is a slide operation; or the first operation is a first sliding operation, the second operation is a second sliding operation, and the sliding directions of the first sliding operation and the second sliding operation are different; or The method, wherein the first operation is a first click operation, the second operation is a second click operation, and the first click operation and the second click operation have different click counts.
4. 4. The method of claim 3, the first operation or the second operation is a slide operation, The method further comprises: displaying a presentation control around the prop pickup list, the display position of the presentation control corresponding to the sliding direction of the slide operation, and displaying prop pickup information on the presentation control, the prop pickup information being used to indicate the pickup manner of the first virtual prop.
5. 2. The method of claim 1, The step of controlling the virtual object to pick up the first virtual prop according to the pick-up manner instructed by the operation includes: determining the pickup method based on the prop state of an owned prop corresponding to the first prop replacement control; and controlling the virtual subject to pick up the first virtual prop based on the pickup method.
6. 6. The method of claim 5, determining the pickup manner based on a prop state of an owned prop corresponding to the first prop replacement control; If the prop state is a use state, determining that the pickup manner is a pick-up and use manner; and If the prop state is a non-use state, determining that the pickup method is a pick-up and carry method.
7. 2. The method of claim 1, The step of controlling the virtual object to pick up the first virtual prop according to the pick-up manner instructed by the operation includes: When the number of props owned by the virtual object does not reach the upper limit of the number of props, controlling the virtual object to pick up the first virtual prop according to the pick-up manner instructed by the operation; and The method includes a step of controlling the virtual object to pick up the first virtual prop and discard the second virtual prop based on the pickup method instructed by the operation when the number of owned props has reached the upper limit of the number of props.
8. 8. The method of claim 7, The pickup method is a method of picking up and using, When the number of props owned by the virtual object does not reach the upper limit of the number of props, controlling the virtual object to pick up the first virtual prop according to the pick-up manner instructed by the operation, When the number of the owned props does not reach the upper limit of the number of props and the virtual object does not use a virtual prop, control the virtual object to pick up and use the first virtual prop; and The method includes a step of controlling the virtual object to switch the third virtual prop to an unused state when the number of owned props does not reach the upper limit of the number of props and a third virtual prop is in a used state, and controlling the virtual object to pick up and use the first virtual prop.
9. 8. The method of claim 7, The pickup method is a method of picking up and using, When the number of the owned props reaches the upper limit of the number of props, controlling the virtual object to pick up the first virtual prop and discard the second virtual prop according to the pick-up manner instructed by the operation includes: When the number of the owned props reaches the upper limit of the number of props and the virtual object does not use a virtual prop, determining the second virtual prop from the unused owned props, controlling the virtual object to discard the second virtual prop, and controlling the virtual object to pick up and use the first virtual prop; and The method includes the steps of: when the number of owned props has reached the upper limit of the number of props and the second virtual prop is in use, controlling the virtual object to discard the second virtual prop and controlling the virtual object to pick up and use the first virtual prop.
10. 8. The method of claim 7, The pickup method is a method of picking up and carrying, When the number of props owned by the virtual object does not reach the upper limit of the number of props, controlling the virtual object to pick up the first virtual prop according to the pick-up manner instructed by the operation, When the number of the owned props does not reach the upper limit of the number of props, controlling the virtual object to pick up and carry the first virtual prop; When the number of the owned props reaches the upper limit of the number of props, controlling the virtual object to pick up the first virtual prop and discard the second virtual prop according to the pick-up manner instructed by the operation includes: When the number of the owned props has reached the upper limit of the number of props, determining the second virtual prop from among the owned props that are not in use; controlling the virtual subject to discard the second virtual prop; and controlling the virtual subject to pick up and carry the first virtual prop.
11. 10. The method of claim 9, The step of determining the second virtual prop from among the unused owned props includes: determining the second virtual prop from among the unused owned props based on a prop priority of the owned prop, wherein the prop priority of the second virtual prop is lower than the prop priorities of other owned props.
12. 12. The method of claim 11, the prop priority is determined based on a priority setting operation; or the prop priority of the owned props of the same type as the first virtual prop is lower than the prop priority of the owned props of a different type than the first virtual prop; or The prop priority is positively correlated with the prop strength of the owned prop; or The method, wherein the prop priority is positively correlated with the prop effect range of the owned prop.
13. 1. An apparatus for controlling a virtual subject picking up a virtual prop, comprising: a display module for displaying a prop pickup list, the prop pickup list including prop pickup controls for virtual props; a receiving module for receiving an operation on a first prop pickup control in the prop pickup list, the first prop pickup control being a prop pickup control corresponding to a first virtual prop; and a control module for controlling the virtual object to pick up the first virtual prop according to a pick-up manner indicated by the operation, wherein the pick-up manner of the first virtual prop includes a pick-up and use manner or a pick-up and carry manner; The receiving module further comprises: Displaying a prop replacement control in response to a long press on the first prop pickup control in the prop pickup list, where different prop replacement controls correspond to different owned props; and A device used to receive selection operations for the first prop replacement control.
14. 14. The apparatus of claim 13, The receiving module further comprises: receiving a first operation on the first prop pickup control in the prop pickup list; or a second operation for receiving the first prop pickup control in the prop pickup list; The operation types of the first operation and the second operation are different, The control module further comprises: Controlling the virtual object to pick up and use the first virtual prop based on the first operation; or A device used to control the virtual subject to pick up and carry the first virtual prop based on the second operation.
15. 15. The apparatus of claim 14, the first operation is a click operation and the second operation is a slide operation; or the first operation is a first sliding operation, the second operation is a second sliding operation, and the sliding directions of the first sliding operation and the second sliding operation are different; or The device, wherein the first operation is a first click operation, the second operation is a second click operation, and the first click operation and the second click operation have different numbers of clicks.
16. 16. The apparatus of claim 15, the first operation or the second operation is a slide operation, The display module further includes a display module used to display a presentation control around the prop pickup list, a display position of the presentation control corresponding to a sliding direction of the slide operation, and prop pickup information displayed on the presentation control, the prop pickup information being used to indicate the pickup manner of the first virtual prop.
17. 14. The apparatus of claim 13, The control module further comprises: determining the pickup method based on a prop state of an owned prop corresponding to the first prop replacement control; and The device is used to control the virtual object to pick up the first virtual prop based on the pickup method.
18. A terminal including a processor and a memory connected to the processor, The storage device stores a computer program, 13. A method, wherein the processor is configured to execute the computer program to implement the method of any one of claims 1 to 12.
19. A program for causing a computer to execute the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Method and device for controlling virtual object to mark virtual item and medium
CN110270098A
Method and device for picking up props in game, electronic equipment and readable medium
CN113577762A
Method and device for picking up articles in game, storage medium and electronic equipment
CN113694513A
Game server, game control method, game program, game program recording medium, and game system
JP2015097707A
Method for displaying items in a virtual scene, its device, and storage medium
JP2021514267A