Method, device, terminal and computer program for controlling pickup of virtual props
By providing a prop pickup list with distinct controls for picking up and using or carrying virtual props, the method addresses accidental discarding issues, enhancing prop pickup efficiency in three-dimensional virtual environments.
Patent Information
- Application Number
- JP2024526865
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-01-24
- Filing Date
- 2022-11-15
- Publication Date
- 2024-11-13
- 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 of props, leading to low efficiency in prop pickup operations.
A method and apparatus that display a prop pickup list with distinct controls for different pickup methods, allowing users to select between picking up and using or carrying virtual props, thereby reducing accidental discarding by enabling precise control over prop states through specific operations.
The method simplifies and enhances the efficiency of prop pickup by allowing users to control virtual objects to pick up and equip props accurately without unnecessary state changes, reducing errors and improving overall prop management.
Smart Images

Figure 2024542138000001_ABST
Abstract
Description
[Technical field]
[0001] This application claims priority to 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 walk, run, climb, fight, and so on, and multiple users can also team up online to 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 holding state, i.e., controls the virtual object to discard the virtual prop currently being held, and then pick up and use a new virtual prop.
[0005] However, when the method in the related art is adopted, the virtual prop may be accidentally dropped, and the user must pick up the accidentally dropped virtual prop again, resulting in low prop pick-up efficiency. Summary of the Invention [Problem to be solved by the invention]
[0006] An object of the present invention 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 a 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 pick-up and use or pick-up and carry method (also referred to as a ``pick-up & use'' method (first method) or a ``pick-up & 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, the pick-up manner of the first virtual prop including a pick-up and use 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, the memory storing at least one program, the at least one program being configured to be loaded and executed by the processor to realize a method for controlling a virtual object to pick up a virtual prop, as described in the above 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, a processor of a terminal reading the computer instructions from the computer-readable storage medium and executing the computer instructions, causing the terminal to realize the method for controlling a virtual object to pick up a virtual prop, as provided in the above aspect. Effect of the Invention
[0012] The technical solutions provided in the embodiments of this application have at least the following advantageous effects:
[0013] In the 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 manners, the pickup manners including picking up and using or picking up and carrying, and the user can control the owned (held) props and the usage status of the first virtual prop through different operations according to actual needs. Compared with the related art's manner of controlling the virtual object to directly discard the 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 corresponding operation on the first prop pickup control once based on the required pickup manner, and the virtual object can be controlled to pick up the first virtual prop and equip the first virtual prop in a corresponding state, thereby simplifying the operation of picking up the virtual props and improving the efficiency of picking up the props. [Brief description of the drawings]
[0014] [Figure 1] FIG. 1 illustrates an implementation environment provided in one exemplary embodiment of the present application. [Diagram 2] 1 is a flowchart of a method for controlling a virtual subject to pick up a virtual prop, provided in an exemplary embodiment of the present application. [Diagram 3] FIG. 2 illustrates a virtual environment interface provided in one exemplary embodiment of the present application. [Figure 4] 11 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. [Diagram 5] FIG. 2 illustrates a virtual environment interface provided in another exemplary embodiment of the present application. [Figure 6] FIG. 2 illustrates a virtual environment interface provided in another exemplary embodiment of the present application. [Figure 7] FIG. 2 illustrates a virtual environment interface provided in another exemplary embodiment of the present application. [Figure 8] 1 is a flowchart of a slide event judgment process provided in an exemplary embodiment of the present application. [Figure 9] 1 is a flowchart of a slide event cancellation judgment process provided in an exemplary embodiment of the present application. [Figure 10] 11 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. 13 illustrates triggering the display of a prop replacement control provided in one exemplary embodiment of the present application. [Figure 12] 11 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] 11 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 an apparatus for controlling a virtual subject to pick up a virtual prop, provided in one exemplary embodiment of the present application. FIG. [Figure 15] FIG. 2 is a configuration block diagram of a terminal provided in an exemplary embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] First, the nouns (terms) related to the embodiments of the present application will be introduced.
[0016] 1) Virtual Environment It 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 completely 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. In the following embodiments, the virtual environment is described as a three-dimensional virtual environment, but is not limited thereto. Optionally, the virtual environment may further be used for a virtual environment 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 part of the 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 appearance images. In some implementations, the virtual character may be realized using a 2.5D or 2D model, but the embodiments of the present application are not limited thereto.
[0018] 3) Virtual Props A virtual prop refers to a prop that a virtual object may use in a virtual environment, including at least one of a functional prop and a virtual piece of equipment. Illustratively, in the present application, a virtual prop is used to change an attribute value of a virtual object in a virtual environment. For example, the virtual prop may include a projectile type virtual prop, a proximity type virtual prop, and a throwable type virtual prop.
[0019] 4) User Interface (UI) Controls This refers to any visible control or element that appears in the user interface of an application program, such as a picture, an input box, a text box, a button, a label, and other controls, 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, for example, any one of a multiplayer online battle arena (MOBA) game, a shooting game, and a simulation game (SLG). In the embodiment of the present application, the application program is an example of a shooting game. Games based on a virtual environment often consist of one or more game world maps, and the virtual environment in the game simulates a real-world scene, and a user can operate 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 technology, a user can control a virtual object to pick up a virtual prop from a virtual environment and then use the picked-up virtual prop. Usually, the number of virtual props that a virtual object can acquire is limited. When the number of owned props does not reach the upper limit of the number of props, the picked-up virtual prop can be placed in an empty position in the prop column. When the number of owned props reaches the upper limit of the number of props, a corresponding number of owned props must be discarded first, and the terminal directly replaces the virtual props in use, that is, controls the virtual object to discard the virtual prop currently used, and then controls the virtual object to pick up and use a new virtual prop. However, when the method in the related technology is adopted, when a user wants to replace a virtual prop in the prop column with a new virtual prop, the user must first control the virtual object to switch the corresponding virtual prop from a carrying state to a using state, and then pick up the new virtual prop; and 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 virtual prop picked up from a using state to a carrying state. In addition, if a user has a prop in use, the prop will be discarded unless the user switches the prop state in advance, and there are cases where the prop is mistakenly discarded because the user does not switch the prop state in a timely manner. Therefore, the prop is easily discarded by mistake, and the prop pick-up 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. The implementation environment may include a first terminal 110, a server 120, and a second terminal 130.
[0024] The first terminal 110 executes an application program (also called an app) 111 supporting the virtual environment, and when the first terminal executes the application program 111, the screen of the first terminal 110 displays a user interface of the application program 111. In this embodiment, the application program 111 is a multiplayer battle game. The first terminal 110 is a terminal used by a first user 112, and the first user 112 uses the first terminal 110 to control a first virtual object in the virtual environment to perform an activity, and the first virtual object may be called a main controlled virtual object of the first user 112. The activity of the first virtual object includes, but is not limited to, at least one of body posture adjustment, crawling, walking, running, riding, jumping, jumping, driving, picking up, attacking, throwing, and skill release. By way of example, the first virtual object is a first virtual person, for example, a simulated person or a cartoon person.
[0025] The second terminal 130 executes an application program 131 supporting the virtual environment, and 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 battle game. The second terminal 130 is a terminal used by a second user 132, and the second user 132 uses the second terminal 130 to control a second virtual object in the virtual environment to perform an activity, and the second virtual object may be called a main controlled virtual object of the second user 132. The activity of the second virtual object includes, but is not limited to, at least one of body posture adjustment, crawling, walking, running, riding, jumping, jumping, driving, picking up, attacking, throwing, and skill release. By way of example, the second virtual object is a second virtual person, such as a simulated person or a cartoon 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 rights. 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 a plurality of terminals, and the second terminal 130 may generally be another of a plurality of terminals, and in this embodiment, only the first terminal 110 and the second terminal 130 are taken as an example for description. The device types of the first terminal 110 and the second terminal 130 are the same or different, and the device types include at least one of a smartphone, a tablet computer, an e-reader, an MP3 player, an MP4 player, a notebook computer, and a desktop computer.
[0028] Although only two terminals are shown in FIG. 1, there are multiple other terminals that can access the server 120 in different embodiments. Optionally, there are one or more further 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 the server 120 via a wired or wireless network. The first terminal 110 and the second terminal 130 can realize the update of the application program by downloading the application program installation package from the server 120.
[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 includes at least one of a server, a server group 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 is responsible for primary computing tasks, and the terminal is responsible for secondary computing tasks, or the server 120 is responsible for secondary computing tasks, and the terminal is responsible for primary computing tasks, or the server 120 and the terminal may adopt 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 match service module 124, and a user-facing input / output interface (I / O interface) 125. Among them, the processor 122 is used to load instructions stored in the server 120 and process data in the user account database 123 and the match 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 avatars of user accounts, nicknames of user accounts, virtual props owned by user accounts, and service areas where user accounts are located, the match service module 124 is used to provide multiple match rooms for users to play matches, such as 1V1 matches, 3V3 matches, 5V5 matches, etc., and 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 may be 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 addition, the embodiments of the methods described below will be described taking the method 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 other terminals in the implementation environment. The method includes the following steps:
[0034] Step 201: Display the prop pickup list.
[0035] The prop pick-up list includes a prop pick-up 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 virtual prop can be picked up by both the controlled virtual object corresponding to the terminal and other virtual objects in the virtual environment, and the virtual prop becomes a prop owned by the virtual object (i.e., a prop owned by the virtual object) after being picked up by the virtual object.
[0036] In one possible implementation manner, when there are virtual props in the virtual environment around 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 it is detected that a virtual prop exists at a position less than 5 m away 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 the virtual object, and the user can operate the 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, and 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 embodiment of the present application is not limited thereto.
[0038] For illustration, refer to Fig. 3, which shows a virtual environment interface on which a prop pickup list is displayed. There are virtual props 302 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 a 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 a first prop pickup control, and the virtual prop that corresponds to the first prop pickup control is a first virtual prop. When the operation for the first prop pickup control is received, the terminal 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 start point is located within the first prop pickup control and whose operation type satisfies a control trigger condition, whereby different pick-up modes correspond to different control trigger conditions (operation types), and the terminal determines the pick-up mode according to the operation type after receiving the operation on the first prop pickup control.
[0042] Step 203: Based on a pick-up manner instructed by the operation, control the virtual object to pick up a first virtual prop, where the pick-up manner of the first virtual prop includes a pick-up and use manner (pick-up & use) or a pick-up and carry manner (pick-up & carry).
[0043] The props owned by a virtual object have two states, that is, a use state and a carry state. The props owned in the use state refer to props that the virtual object can directly use to change the attribute values of other virtual objects (e.g., held by hand, held by foot, bound or installed to a certain part of the virtual object), that is, when the terminal receives an operation for the prop use control, it controls the virtual object to change the attribute values of other virtual objects by the props owned in the use state. The props owned in the carry state refer to props that the virtual object cannot directly use to change the attribute values of other virtual objects (e.g., on the virtual object's back or hidden in the prop box). The props owned in the carry state can be switched to the use state, and the props owned in the use state can be switched to the carry state. The pick-up method for the virtual object to pick up a virtual prop includes a pick-up and use method and a pick-up and carry method. Among them, the pick-up and use method refers to picking up a virtual prop and equipping it in the use state, and the pick-up and carry method refers to picking up a virtual prop and equipping it in the carry state.
[0044] In one possible implementation manner, the terminal controls the virtual object to pick up the first virtual prop in the pick-up manner indicated by the operation, for example, the user single-clicks the first prop pick-up control, causing the terminal to control the controlled virtual object to pick up the first virtual prop and hold it in hand, the corresponding pick-up manner is pick-up and use, the user slides the first prop pick-up control right, causing the terminal to control the virtual object to pick up the first virtual prop and carry it on its back, 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 can report the received operation to the server, and the server can 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, the pickup manners including picking up and using or picking up and carrying, and the user can control the usage status of the owned props and the first virtual prop through different operations according to actual needs. Compared with the manner in which the virtual object is controlled to directly discard the virtual prop in use in the related art, 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 corresponding operation on the first prop pickup control once based on the required pickup manner, and the virtual object can be controlled to pick up the first virtual prop and equip the first virtual prop in a corresponding state, thereby simplifying the operation of picking up the virtual props and improving the efficiency of picking up the props.
[0047] In order to distinguish different pick-up methods, different operations are set for different pick-up methods. In one possible implementation, the operations for the first prop pick-up control include a first operation and a second operation, and the operation types of the two operations are different and correspond to different pick-up 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 pickup list.
[0050] For a specific implementation manner of step 401, reference can be made to step 201 described above, and 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 several types, that is, the first operation is a click operation, and the second operation is a slide operation.
[0053] For example, the first operation is a single click operation, a double click operation, a one-finger click operation, a two-finger click operation, etc., and the second operation is 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 are 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, and 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, and 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 is a left slide operation and the second operation is a right slide operation, or the first operation is a right slide operation and the second operation is a left slide operation, or the first operation is an up slide operation and the second operation is a down slide operation, or the first operation is a down slide operation and the second operation is an up slide operation. However, the embodiments of the present application are not limited to these.
[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 click counts.
[0058] For example, the first operation is a single click operation and the second operation is a double click operation, or the first operation is a double click operation and the second operation is a single click operation, or the first operation is a one-finger click operation and the second operation is a two-finger click operation, etc., but the embodiments of the present application are not limited thereto.
[0059] In other possible implementations, the first and second actions may be other types of actions, for example, the first action is a slide action and the second action is a click action, or the first action is a click action and the second action is a long press action.
[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 pick-up 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 manner of the first virtual prop.
[0064] When the first or second operation is a slide operation, when a slide operation whose slide start point is located within the first prop pick-up control and whose slide direction is consistent with the first or second operation is detected, the terminal displays a presentation control around (around) the prop pick-up list according to the slide direction, and the presentation control displays presentation information for instructing the pick-up method. The terminal displays the presentation control to present to 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 avoid the first virtual object being controlled to adopt an incorrect pick-up method due to an incorrect operation.
[0065] For example, as shown in Figures 5 and 6, the first operation is a left sliding operation, and the second operation is a right sliding operation. In order to present the user with pick-up modes 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 a prop away", which corresponds to the pick-up and carry mode. 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 mode.
[0066] In another implementation, the number of props owned by the virtual object has an upper limit, and when the number of the props owned reaches the upper limit, the virtual object needs to replace the props owned when picking up the virtual props again. When the first virtual prop is picked up in the pick-up manner instructed by the operation and the corresponding props owned need to be replaced, the presented information further includes the prop identifier (ID) of the props owned to be replaced. This is convenient for the user to know which props owned by the user are to be replaced, and the user does not need to observe and think about the prop replacement situation, which improves the efficiency of picking up props and avoids the user from accidentally discarding the necessary props owned. If the user does not want to replace the props owned, he or she 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 holding state. When receiving a second operation on the first prop pickup control 502, the terminal determines that the primary prop 504 in the holding state needs to be replaced, and displays a presentation control 503, in which the presentation control 503 includes presentation information “Replace primary prop”.
[0068] In the embodiment of the present application, by setting different types of operations for the two pick-up methods, a user can control the virtual object to pick up the first virtual prop and determine the prop state of the first virtual prop by only performing a single operation on the first prop pick-up control. Compared with the fixed prop pick-up 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: In response to the slide operation being completed and the slide distance being equal to or greater than the first distance threshold, determine that an operation for a first prop pickup control has been received.
[0073] The terminal determines whether a slide event is valid according to the slide distance of the slide operation, that is, whether the slide operation belongs to the first operation or the second operation. When the slide operation is completed 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 is 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 judge 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 sliding operation has ended and the sliding distance is less than the first distance threshold, it is determined that the sliding operation does not belong to the operation for the first prop pickup control.
[0077] For example, as shown in FIG. 8, a 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: determining that the slide event has failed; and Step 804: Determine that a slide event is enabled, and control the virtual subject 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 is changed, 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 is unsuccessful, 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 possibility of picking up the virtual prop by mistake.
[0081] Optionally, the second distance threshold may be equal to or smaller than the first distance threshold, i.e., a relatively large distance threshold is required to determine whether the 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 the slide event to be valid, improving the accuracy of determining that the slide event is a slide event actively initiated by the user, and avoiding erroneous prop pick-up operations due to mis-touching.
[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 an operation on the first prop pickup control.
[0083] Illustratively, as shown in FIG. 9, a process of determining whether the cancellation of a slide event is effective 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: Determining that the cancellation of the slide event has failed; and Step 904: It is determined that canceling the slide operation is enabled, and the operation of picking up the first virtual prop is canceled.
[0085] Rather than the pick-up manner of the props, 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 are replaced by the first virtual prop. In one possible implementation manner, the terminal provides a selection mechanism for the props to be replaced. The user can select the owned props to be replaced, and the terminal can automatically determine the pick-up manner according to the prop state of the prop to be replaced, and control the first virtual object to pick up the first virtual prop to 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 pickup list.
[0088] For the specific implementation manner of step 1001, reference can be made to step 201 described above, and 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 manner, when the operation on the first prop is a long press operation, a display of a prop replacement control 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 enable the terminal to display a prop replacement control corresponding to the first prop pickup control by long pressing the first prop pickup control corresponding to the first virtual prop. The prop replacement control is used to trigger the corresponding owned prop to be replaced 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. Among them, the first prop replacement control 1101a is used to trigger a corresponding primary prop 1102 to be replaced with a first virtual prop, and the second prop replacement control 1101b is used to trigger a corresponding secondary prop 1103 to be replaced with the first virtual prop. A prop indicator (image) of a corresponding owned prop may be displayed on the prop replacement control, so that the user can quickly determine a pickup manner and complete the operation.
[0092] In another possible implementation, the prop replacement controls have a one-to-one correspondence with the prop placement positions, and the prop replacement controls are used to trigger replacement of the owned props at the corresponding prop placement positions. When the prop placement positions are vacant, the prop replacement controls may display an vacant mark (the vacant mark is used to indicate that the corresponding prop placement positions are vacant).
[0093] Optionally, when the terminal displays the prop replacement controls, it may display corresponding prop replacement controls for all owned props, or it may display prop replacement controls for only some owned props to reduce the difficulty of the user selecting the prop replacement controls.
[0094] Optionally, when the terminal displays a prop replacement control for some owned props, it may select an owned prop waiting to be replaced from among all virtual props owned by the user's main control virtual object, and when selecting an owned prop to be replaced, it may select a virtual prop belonging to the same prop type as the first virtual prop, or may select a virtual prop similar to the attack type of the first virtual prop, or may select a virtual prop having the same usage method as the first virtual prop, or may preferentially select a virtual prop with a relatively low prop priority, and the prop priority may 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 may be related to the attack strength of the virtual prop (the lower the attack strength, the lower the prop priority), or may be related to the attack range of the virtual prop (the smaller the attack range, the lower the prop priority).
[0095] Step 1003: A selection operation for a first prop replacement control is received.
[0096] Optionally, the selection action may be a click action, a long press action, a slide action, a drag action, etc., but is not limited to these in the embodiments of the present application.
[0097] Step 1004: Determine a pickup manner 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 being picked up is consistent with the prop state of the owned prop to be replaced, thereby avoiding any influence on the owned prop under 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 manner is a pick-up and use manner.
[0101] Step 1004b: If the prop state is a non-use state, it is determined that the pick-up manner is a pick-up and carry manner.
[0102] Wherein, 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 value of another virtual object (e.g., held by hand, held by foot, bound or installed to a certain part of the virtual object), that is, when the terminal receives an operation for the prop use control, it controls the virtual object to change the attribute value of another virtual object by the prop owned in the use state. The prop not in use refers to a state in which a virtual object cannot directly use the virtual prop to change the attribute value of another virtual object (e.g., the virtual object is on its back or hidden in a prop box). The not in use state is also called a carried state, and the owned prop in the not in use state can be switched to the used state, and the owned prop in the use state can be switched to the not in use state.
[0103] The terminal determines the pickup manner such that the prop state of the first virtual prop after pickup is consistent with 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 main prop and one sub-prop, of which the main prop is in an unused state and the sub-prop is in an used state. After receiving a trigger operation on the prop replacement control corresponding to the main prop, when the main 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 that the pickup manner of the first virtual prop is a pick-up and carry manner. Optionally, after receiving a trigger operation on the prop replacement control corresponding to the sub-prop, when the sub-prop is in an used state, the replaced first virtual prop should also be in an used state, in this case, the terminal correspondingly determines that the pickup manner of the first virtual prop is a pick-up and use manner.
[0104] In another possible implementation, the prop replacement controls correspond one-to-one to the prop placement positions, and the prop replacement controls are used to trigger replacement of the owned props at the corresponding prop placement positions. When the prop placement positions are vacant, the prop replacement controls may display an vacant mark (the vacant mark is used to indicate that the corresponding prop placement positions are vacant).
[0105] Therefore, when there is an 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 that the pickup method is the pick up and carry method, and when there is no owned prop in a use state, the terminal determines that the pickup method is 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 a pick-up manner.
[0107] Optionally, the terminal controls the virtual object to pick up the first virtual prop and controls the virtual object to discard the owned prop corresponding to the first prop replacement control based on 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 of the owned props of the virtual object, and when the number of props of the owned props of the virtual object does not reach the upper limit of the prop number, the owned prop corresponding to the first prop replacement control can be switched from a used state to a non-used state without being discarded, and when the number of props of the owned props of the virtual object reaches the upper limit of the prop number, the owned prop corresponding to the first prop replacement control can be directly discarded.
[0109] In the embodiment of the present application, the pick-up method is determined based on the prop state 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 pick-up 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 an incorrect selection of the pick-up method; and the replacement of the owned prop and the pick-up 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: The prop pickup list is displayed.
[0112] Step 1202: Receive an operation on a first prop pickup control in the prop pickup list, where the first prop pickup control is a prop pickup control of a first virtual prop.
[0113] For the specific implementation manner 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 this application.
[0114] Step 1203: When 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 a first virtual prop according to a pick-up manner instructed by the operation.
[0115] The props owned by the virtual object have an upper limit in number, for example, when the upper limit of the number of props is 5, the virtual object can own a maximum of 5 virtual props. When the number of props owned by the virtual object does not reach the upper limit of the number of props, the virtual object can continue to pick up virtual props, and when the number of props owned by the virtual object reaches the upper limit of the number of props, the terminal needs to control the virtual object to first discard the corresponding number of virtual props owned and then pick up the first virtual prop. Therefore, after picking up the first virtual prop based on the pick-up manner instructed by the operation, it is further determined whether it is necessary to discard the second virtual prop among the props owned based on the relationship between the number of props owned by the virtual object and the upper limit of the number of props. When the number of props owned by the virtual object does not reach the upper limit of the number of props, it is not necessary to discard the second virtual prop when picking up the first virtual prop based on the pick-up manner, and conversely, when the number of props owned by the virtual object reaches the upper limit of the number of props, it may be necessary to discard the second virtual prop at the same time as picking up the first virtual prop based on the pick-up manner.
[0116] Note that 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 owned props in the use state is 1 and the pick-up manner is a pick-up and use manner, step 1203 includes the following steps:
[0118] Step 1203a: When 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 pick-up manner, if the pick-up 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 state of other virtual props needs to be changed according to whether the virtual object uses a virtual prop. In one possible implementation manner, 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, when the pick-up 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, a virtual object has at most one primary prop and one secondary prop. When the virtual object only has one primary prop and the primary prop is in an unused state, when 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 pick up a 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 pick-up mode is a pick-up and use mode, the virtual object cannot use multiple virtual props at the same time, so the terminal needs to control the virtual object to first switch the owned prop (i.e., the third virtual prop) in a use state to a non-use state, and then pick up and use the first virtual prop.
[0123] For example, a virtual object has at most one primary prop and one secondary prop. When a virtual object has only one primary prop and the primary prop is in a using state, upon receiving an operation in which the pick-up manner is a pick-up and use manner, the terminal controls the virtual object to switch the primary prop from a using state to a non-using state (e.g., from a holding state to a carrying 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 owned props does not reach the upper limit of the number of props, control is performed so that the virtual subject picks up and carries 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, when 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 has at most one main prop and one secondary prop. When the virtual object only has one main prop, when receiving an operation in which the pick-up 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: When the number of possessed props reaches the upper limit of the number of props, the virtual object is controlled to pick up the first virtual prop and discard the second virtual prop according to a 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 needs to 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 manner is a pick-up and use manner, if there is no owned prop in use, step 1104 includes the following steps:
[0131] Step 1204a: When the number of owned props has reached the upper limit of the number of props and the virtual object does not use any virtual prop, a second virtual prop is determined from among the owned props in an unused state.
[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 needs to control the first virtual object to continue picking up virtual props, and first to discard a corresponding number of owned props.When the virtual object does not use the virtual props, i.e., when there are no owned props in use, the terminal needs to determine a second virtual prop from the unused owned props, and then to control the virtual object to discard the second virtual prop and then pick up the first virtual prop.
[0135] For example, when the props owned by the virtual object include one main prop and one secondary prop, and the upper limit of the number of props is reached, when the virtual object does not use the virtual prop and the terminal receives an operation in which the pick-up manner is the pick-up and use manner, the terminal determines 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 main prop), or the terminal determines a second virtual prop from among the unused owned props based on the prop priority of each owned prop. The prop priority of the second virtual prop is lower than the prop priority of other owned props. Optionally, the prop priority may be determined according to the frequency of use of the owned prop (the less frequently it is used, 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 and that the terminal needs to control is determined based on the number of first virtual props that are picked 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 pick-up manner is a pick-up and use manner, if there is an owned prop in a 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 use state, control the virtual subject 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 a used state, upon receiving an operation in which the pick-up manner is a pick-up and use manner, the terminal determines the owned prop in a used state as the second virtual prop and controls the virtual object to pick up and use the first virtual prop after discarding the second virtual prop.
[0142] For example, 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 uses the main prop and the terminal receives an operation whose pick-up manner is a pick-up and use manner, the terminal controls the virtual object to drop the main prop, pick up a 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, and the user selects the pick-up mode to pick up and carry, 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 that the terminal determines a second virtual prop from among the owned props in non-use to avoid affecting the owned props in use.
[0148] In the above-mentioned last two prop pick-up scenes, after the terminal receives the operation on the first prop pick-up control, it needs to first determine the second virtual prop from the unused owned props. The process of determining the second virtual prop includes the following steps:
[0149] A second virtual prop is determined from among 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] Among them, 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, the 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 corresponding relationship between the prop type and the prop priority obtained based on the priority setting operation.
[0153] Optionally, the prop priority is positively correlated 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, a prop priority of a owned prop of the same type as the first virtual prop is lower than a 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 among the owned props of the same type as the first virtual prop.
[0155] In the embodiment of the present application, the terminal determines whether the owned prop needs to be replaced or discarded based on the pickup method instructed by the operation, the number of owned props of the virtual object, and whether the virtual object uses the virtual prop. When the number of owned props reaches the upper limit of the number of props, the terminal determines the second virtual prop or the third virtual prop that needs to be discarded based on the user's operation and the prop priority. Compared with the method of directly discarding the owned prop in use in the related art, the following operation is not required, that is, the user operates and controls the first virtual object to replace the used prop from the prop that needs to be used with the prop to be discarded multiple times, 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 that needs to be used again. This simplifies the prop pick-up operation and also makes it possible to avoid erroneous discarding of the owned prop due to an erroneous user operation.
[0156] In conjunction with the above-mentioned embodiments, in one illustrative example, a flow of a terminal controlling a virtual object to pick up a virtual prop is as shown in FIG. 13, which includes the following steps:
[0157] Step 1301: The prop pickup list is displayed.
[0158] Step 1302: An operation for a first prop pickup control in the prop pickup list is received.
[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 a first virtual prop to 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 drop 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 mode is a pick-up and use mode, 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 mode is a pick-up and carry mode, a 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 a first virtual prop to 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 mode is a pick-up and use mode, the third virtual prop in the used state is switched to a non-used state and the virtual object is controlled to pick up and use the first virtual prop; if the pick-up mode is a pick-up and carry mode, the virtual object does not need to change the prop states 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 for receiving 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 based on a pick-up manner instructed by the operation, and the pick-up manner of the first virtual prop includes picking up and using or picking up and carrying.
[0168] Optionally, the receiving module 1402 is further used for receiving a first operation for the first prop pickup control in the prop pickup list; or for receiving 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 for displaying a presentation control 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 manner of the first virtual prop.
[0173] Optionally, the receiving module 1402 further displays 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 is used to receive a selection operation on the first prop replacement control.
[0174] The control module 1403 is further used to determine the pickup manner based on a prop state of an 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 in use; and to determine that the pickup manner is a pick-up and carry manner when the prop state is in 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 manner instructed by the operation when the number of props owned by the virtual object has not reached the upper prop number limit; and to control the virtual object to pick up the first virtual prop and discard the second virtual prop based on the pickup manner instructed by the operation when the number of props owned by the virtual object has reached the upper prop number limit.
[0177] Optionally, the pick-up method is a pick-up and use method.
[0178] The control module 1403 is further used for: controlling 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 prop number and the virtual object does not use a virtual prop; and controlling the virtual object to switch the third virtual prop to a non-use state when the number of owned props does not reach the upper limit of the prop number and a third virtual prop is in a use state; and controlling 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: determining the second virtual prop from the unused owned props when the number of owned props reaches the upper limit of the prop number and the virtual object does not use a virtual prop, 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 for controlling the virtual object to discard the second virtual prop and controlling the virtual object to pick up and use the first virtual prop when the number of owned props reaches the upper limit of the prop number and the second virtual prop is in use.
[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 prop number limit, and 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 prop number limit; 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 among the unused owned props based on the prop priorities of the owned props, among which the prop priority of the second virtual prop is lower than the prop priorities 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 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 manners, the pickup manners including picking up and using or picking up and carrying, and the user can control the usage of the owned prop and the first virtual prop through different operations according to actual needs. Compared with the manner in which the virtual object is controlled to directly discard the virtual prop in use in the related art, when the user wants to control the virtual object to use another virtual prop, the user does not need to operate and control the virtual object to pick up the first virtual prop first, and then operate and control the virtual object to switch the first virtual prop to a carrying state, but only needs to perform a corresponding operation on the first prop pickup control once according to the required pickup manner, so that the virtual object can be controlled to pick up the first virtual prop and equip the first virtual prop in a corresponding state, thereby simplifying the operation of picking up the virtual prop and improving the efficiency of picking up the prop.
[0186] Please refer to Figure 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, a Moving Picture Experts Group Audio Layer III (MP3) player, a Moving Picture Experts Group Audio Layer IV (MP4) player, etc. The terminal 1500 may also be called other names such as a user device, a mobile terminal, etc.
[0187] The terminal 1500 typically includes a processor 1501 and a memory unit 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 Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 1501 may also include a main processor and a co-processor, 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 co-processor is a low-power processor that processes data in a standby state. In some embodiments, the processor 1501 is a Graphics Processing Unit (GPU). The processor 1501 may also include an integrated GPU (Graphics 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 storage 1502 may include one or more computer-readable storage media, which may be tangible and non-transitory. The storage 1502 may further include high-speed random access memory, and non-volatile memory, such as one or more magnetic disks, flash memory. In some embodiments, the non-transitory computer-readable storage medium of the storage 1502 is used to store at least one instruction that is executed by the processor 1501 to implement the method provided in the embodiments of the present application.
[0190] As one skilled in the art will appreciate, the configuration shown in FIG. 15 is not intended to limit terminal 1500 and 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, the computer-readable storage medium having at least one program instruction stored therein, the at least one program instruction being loaded and executed by a processor to realize the method of 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, a computer program product is provided, the computer program product including computer instructions stored in a computer-readable storage medium, a processor of a terminal reading the computer instructions from the computer-readable storage medium and executing the computer instructions to cause the terminal to perform the method of controlling a virtual object to pick up a virtual prop 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, 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 The method includes a step of 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.
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 a pick-up manner instructed by the operation includes: Controlling the virtual subject to pick up and use the first virtual prop based on the first manipulation; or based on the second operation, controlling the virtual subject to pick up and carry the first virtual prop.
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: The method includes the steps of: displaying a presentation control around the prop pickup list, a display position of the presentation control corresponding to a slide direction of the slide operation, and the presentation control displays prop pickup information, and the prop pickup information is used to indicate the pickup manner of the first virtual prop.
5. 2. The method of claim 1, 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 receiving a selection operation on a first prop replacement control; The step of controlling the virtual object to pick up the first virtual prop according to a pick-up manner instructed by the operation includes: determining the pickup strategy based on a 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 strategy.
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; determining that the pick-up manner is a pick-up and use manner if the prop state is a use state; and If the prop state is a non-use state, determining that the pickup manner is a pick up and carry manner.
7. 2. The method of claim 1, The step of controlling the virtual object to pick up the first virtual prop according to a 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, control 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 prop number limit.
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, the step of controlling the virtual object to pick up the first virtual prop according to the pick-up manner instructed by the operation is included in the step of: 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 a non-use state when the number of owned props does not reach the upper prop number limit and a third virtual prop is in a use 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, the step of 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 is included in the step of: 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 a step of controlling the virtual object to discard the second virtual prop when the number of owned props has reached the upper prop number limit and the second virtual prop is in use, 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, the step of controlling the virtual object to pick up the first virtual prop according to the pick-up manner instructed by the operation is included in the step of: 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, the step of 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 is included in the step of: determining the second virtual prop from among unused owned props when the number of owned props has reached the upper limit of the number of props; 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 a 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 priority 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 said prop priority is positively correlated with the prop effect strength of said 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 device comprising: a control module for controlling the virtual object to pick up the first virtual prop based on a pickup manner instructed by the operation, the pickup manner of the first virtual prop including a pick-up and use manner or a pick-up and carry manner.
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 subject to pick up and use the first virtual prop based on the first manipulation; or The apparatus is 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 click counts.
16. 16. The apparatus of claim 15, the first operation or the second operation is a slide operation, The device further includes a display module, wherein the display module is used for displaying a presentation control around the prop pickup list, a display position of the presentation control corresponds to a slide direction of the slide operation, and the presentation control displays prop pickup information, and the prop pickup information is used to indicate the pickup manner of the first virtual prop.
17. 14. The apparatus of claim 13, The receiving module further comprises: Displaying 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 Used to receive the selection operation for the first prop replacement control, The control module further comprises: determining the pickup strategy based on a prop state of an owned prop corresponding to the first prop replacement control; and The apparatus 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, 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
