Virtual object control method and device, storage medium and electronic device
By displaying the pick button and list in the virtual scene and responding to the player's operations to control the virtual props held or placed in the backpack by the virtual character, the problem of inefficient virtual object management in the prior art is solved, and more efficient virtual object management is achieved.
Patent Information
- Application Number
- CN202111503905.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2041-12-09
AI Technical Summary
In the prior art, the virtual objects to be picked are less efficient in management, especially when multiple objects to be picked, the display area is limited, resulting in some objects being collapsed or unable to be fully displayed. Players need to frequently adjust the display progress bar to select the target object.
Response to the target virtual character moving to the target area in the virtual scene, display the pick button; respond to the pick button operation, display the pick list, including pick items, each pick item corresponds to a virtual prop to be picked; respond to the click or drag operation of the pick item in the pick list, control the virtual character to hold or put the props into the backpack.
It realizes moving the pickup items to different types of management areas through different operation types, thereby improving the management efficiency of virtual objects and solving the problem of inconvenience in object management caused by limited display areas.
Smart Images

Figure CN114404965B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a method and device for controlling a virtual object, a storage medium and an electronic device. Background Art
[0002] In game tasks of many game applications, objects such as props or supplies required by players are usually randomly dropped to any location in the game scene, so that players can directly pick up these dropped objects when they are close to the corresponding location.
[0003] When a target object to be picked up is detected, the game application often displays the picking prompt information of the target object, wherein the picking prompt information includes a "storage" control for storing the target object in the player's backpack. In response to a click operation on the "storage" control, the target object will be stored in the player's backpack. However, in the related art, at least two objects to be picked up are often detected, and the display area of the picking prompt information is limited. If a corresponding "storage" control is configured for each object, a large display space will be occupied. Therefore, some of the objects to be picked up in the display area will be folded up, and all objects cannot be directly and completely displayed. If the player needs to select a target object to pick up, the display progress bar of the display area must be adjusted frequently. In other words, since no reasonable control method is provided for the virtual object to be picked up, the problem of low object management efficiency is caused.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a method and device for controlling a virtual object, a storage medium, and an electronic device, so as to at least solve the technical problem that the prior art does not provide a reasonable control method for a virtual object to be picked up, resulting in low management efficiency of the virtual object.
[0006] According to one aspect of an embodiment of the present invention, a method for manipulating a virtual object is provided, comprising: in response to a target virtual character moving to a target area in a virtual scene, displaying a pick button; in response to an operation on the pick button, displaying a pick list, the pick list including at least one pick item, each pick item corresponding to a virtual prop to be picked up; in response to a click operation on a first pick item in the pick list, controlling the target virtual character to hold a first virtual prop corresponding to the first pick item; in response to a drag operation on a second pick item in the pick list and the second pick item being dragged to the first area in the pick list, placing a second virtual prop corresponding to the second pick item into the backpack of the target virtual character.
[0007] According to another aspect of an embodiment of the present invention, a device for controlling a virtual object is also provided, comprising: a first display unit, for displaying a pick-up button in response to a target virtual character moving to a target area in a virtual scene; a second display unit, for displaying a pick-up list in response to an operation on the pick-up button, the pick-up list comprising at least one pick-up item, each pick-up item corresponding to a virtual prop to be picked up; a first pick-up unit, for controlling the target virtual character to hold a first virtual prop corresponding to the first pick-up item in response to a click operation on a first pick-up item in the pick-up list; and a second pick-up unit, for placing a second virtual prop corresponding to the second pick-up item into the backpack of the target virtual character in response to a drag operation on a second pick-up item in the pick-up list and the second pick-up item being dragged to the first area in the pick-up list.
[0008] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for controlling a virtual object when running.
[0009] According to another aspect of the embodiments of the present application, a computer program product is provided, the computer program product including a computer program / instruction, the computer instruction being stored in a computer-readable storage medium. A processor of a computer device reads the computer program / instruction from the computer-readable storage medium, and the processor executes the computer program / instruction, so that the computer device executes the above virtual object manipulation method.
[0010] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the virtual object control method through the computer program.
[0011] In an embodiment of the present invention, a pick button is displayed in response to a target virtual character moving to a target area in a virtual scene; a pick list is displayed in response to an operation on the pick button, wherein the pick list includes at least one pick item, and each pick item corresponds to a virtual prop to be picked up; in response to a click operation on a first pick item in the pick list, the target virtual character is controlled to hold a first virtual prop corresponding to the first pick item; in response to a drag operation on a second pick item in the pick list and the second pick item is dragged to the first area in the pick list, a second virtual prop corresponding to the second pick item is placed in the backpack of the target virtual character, thereby achieving the goal of moving the pick items to different types of areas by setting control operations corresponding to different operation types, thereby solving the technical problem of low management efficiency of virtual objects in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0013] Figure 1 is a schematic diagram of a hardware environment of an optional virtual object control method according to an embodiment of the present invention;
[0014] Figure 2 is a flow chart of an optional method for controlling a virtual object according to an embodiment of the present invention;
[0015] Figure 3 is a schematic diagram of an optional method for controlling a virtual object according to an embodiment of the present invention;
[0016] Figure 4 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0017] Figure 5 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0018] Figure 6 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0019] Figure 7 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0020] Figure 8 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0021] Fig. 9 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0022] Fig.10 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0023] Fig.11 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0024] Fig.12 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0025] Fig.13 is a schematic diagram of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0026] Fig.14 is a flowchart of another optional method for controlling a virtual object according to an embodiment of the present invention;
[0027] Fig.15 is a schematic structural diagram of an optional virtual object control device according to an embodiment of the present invention;
[0028] Fig.16 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0031] According to one aspect of an embodiment of the present invention, a method for controlling a virtual object is provided. Optionally, as an optional implementation, the method for controlling a virtual object may be applied to, but is not limited to, Figure 1 The control system of the virtual object in the hardware environment shown in the figure, wherein the control system of the virtual object may include but is not limited to the terminal device 102, the network 104, the server 106, the database 108 and the terminal device 110. The terminal device 102 and the terminal device 110 respectively run the target client (such as Figure 1 As shown, the target client is a shooting game application client as an example). The terminal device 102 and the terminal device 110 respectively include a human-computer interaction screen, a processor and a memory. The human-computer interaction screen is used to display a virtual game scene (such as Figure 1The processor is used to generate an interaction instruction in response to the above-mentioned human-computer interaction operation, and send the interaction instruction to the server. The memory is used to store relevant attribute data, such as object attribute information of the controlled virtual object, and attribute information of the held virtual props, etc. The attribute information here may include but is not limited to information for identifying its identity and current location. Among them, a client that controls the first virtual object is running in the terminal device 102; optionally, in the case where the second virtual object is a virtual object controlled by the terminal device, a client that controls the second virtual object is running in the terminal device 110. The second virtual object here is in a different camp from the first virtual object. In an embodiment of the present application, the second virtual object can, but is not limited to, use a target shooting prop to aim at the first virtual object to perform an aiming and killing operation.
[0032] In addition, the server 106 includes a processing engine, which is used to perform storage or reading operations on the database 108. Specifically, the processing engine reads the positions of each virtual object and the aiming and shooting information of the shooting props used by each virtual object from the database 108.
[0033] The specific process is as follows: as in step S102, a virtual scene is displayed in a display interface, wherein the virtual scene includes a first virtual object located at a first position. As in steps S104-S106, in the client running in the terminal device 110, in response to the target virtual character moving to the target area in the virtual scene, a pick-up button is displayed; in response to the operation of the pick-up button, a pick-up list is displayed, wherein the pick-up list includes at least one pick-up item, and each pick-up item corresponds to a virtual prop to be picked up. Then, step S108 is executed to send touch operation information to the server 106 and the terminal device 110 through the network 104. The server 106 will execute steps S110-S112, and the server determines the control operation type according to the touch operation information, and then moves the virtual prop according to the control operation type. Then, as in step S114, the server 106 returns the virtual prop movement information to the terminal device 102 through the network 104. As shown in steps S116-S118, the terminal device 102 will respond to a click operation on the first pickup item in the pickup list, control the target virtual character to hold the first virtual prop corresponding to the first pickup item; respond to a drag operation on the second pickup item in the pickup list and the second pickup item is dragged to the first area in the pickup list, and put the second virtual prop corresponding to the second pickup item into the backpack of the target virtual character.
[0034] As another optional implementation, when the terminal device 102 has a relatively strong computing and processing capability, the above steps S110-S112 may also be completed by the terminal device 102. This is an example, and this embodiment does not impose any limitation on this.
[0035] Optionally, in this embodiment, the terminal device may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a client that supports providing shooting game tasks, such as a video client, an instant messaging client, a browser client, an educational client, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network, and a wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that implement wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and no limitation is made to this in this embodiment.
[0036] Optionally, in this embodiment, the above-mentioned method for manipulating virtual objects can be applied to, but not limited to, a game terminal application (Application, APP for short) that completes a predetermined confrontation game task in a virtual scene, such as a shooting game application in a multiplayer online tactical competitive game (Multiplayer Online Battle Arena, MOBA for short), wherein the above-mentioned confrontation game task can be, but not limited to, a game task completed by the current player through the control of a virtual object in a virtual scene by a human-computer interaction virtual object and the virtual object controlled by other players through confrontation interaction, and the confrontation game task here can be, but not limited to, running in an application (such as a non-independently running game APP) in the form of a plug-in or applet, or running in an application (such as an independently running game APP) in a game engine. The types of the above-mentioned game applications can include, but are not limited to, at least one of the following: two-dimensional (Two Dimension, 2D) game applications, three-dimensional (Three Dimension, 3D) game applications, virtual reality (Virtual Reality, VR for short) game applications, augmented reality (Augmented Reality, AR for short) game applications, mixed reality (Mixed Reality, MR for short) game applications. The above is just an example, and this embodiment does not make any limitation to this.
[0037] In an embodiment of the present invention, a pick button is displayed in response to a target virtual character moving to a target area in a virtual scene; a pick list is displayed in response to an operation on the pick button, wherein the pick list includes at least one pick item, and each pick item corresponds to a virtual prop to be picked up; in response to a click operation on a first pick item in the pick list, the target virtual character is controlled to hold a first virtual prop corresponding to the first pick item; in response to a drag operation on a second pick item in the pick list and the second pick item is dragged to the first area in the pick list, a second virtual prop corresponding to the second pick item is placed in the backpack of the target virtual character, thereby achieving the goal of moving the pick items to different types of areas by setting control operations corresponding to different operation types, thereby solving the technical problem of low management efficiency of virtual objects in the prior art.
[0038] As an optional implementation, Figure 2 As shown, the above-mentioned method for controlling the virtual object includes the following steps:
[0039] S202, in response to the target virtual character moving to the target area in the virtual scene, displaying a pick-up button;
[0040] S204, in response to the operation of the pick-up button, displaying a pick-up list, the pick-up list including at least one pick-up item, each pick-up item corresponding to a virtual prop to be picked up;
[0041] S206, in response to a click operation on a first pickup item in the pickup list, controlling the target virtual character to hold a first virtual item corresponding to the first pickup item;
[0042] S208: In response to a drag operation on the second pickup item in the pickup list and the second pickup item being dragged to the first area in the pickup list, placing a second virtual prop corresponding to the second pickup item into a backpack of the target virtual character.
[0043] Optionally, in this embodiment, the above-mentioned method for manipulating virtual objects can be applied in virtual shooting scenes provided for shooting applications, which may include but are not limited to: first-person shooting applications (First-person shooting game, FPS), third-person shooting applications (Third-person shooting game, TPS), etc., including but not limited to all games that use hot weapons for long-range attacks. Among them, the first-person shooting application belongs to a branch of the action application (Action Game, ACT). As the name suggests, the first-person shooting application is a shooting application that shoots from the subjective perspective of the operator (player). The third-person shooting application is also a kind of shooting application. The difference from the first-person shooting application is that the virtual control object controlled by the operator (player) will be directly displayed in the observation field of view.
[0044] Optionally, in this embodiment, the target virtual character may be, but is not limited to, a virtual object controlled by the current client. The virtual object may be, but is not limited to, a virtual person object, a virtual animal image, a virtual cartoon image, etc., which is used to represent the player to complete a game task in a virtual scene.
[0045] It is understood that the virtual props mentioned above may refer to virtual prop objects that are allowed to be obtained and used by the current target virtual character in the game application, including but not limited to virtual items, virtual weapons and other objects. Furthermore, the pick-up items may display the corresponding virtual props' prop identification, prop name and other related information, and the pick-up list may be used to display a pick-up item list composed of the pick-up items corresponding to the virtual props, that is, the pick-up list may display the relevant information of various virtual props in the virtual props set, including but not limited to the type, quantity, prop identification, prop attributes and other information of the virtual props in the props set.
[0046] Furthermore, the target area may refer to the location where the target virtual character is close to a specific location or specific item in the game scene, such as a virtual supply point, a virtual supply pack, or a bag of items left behind by an enemy virtual object displayed after killing the enemy virtual object. It is understandable that the virtual supply point, virtual supply pack, or bag of items left behind contains a certain number of the virtual props. In other words, the method may display a pick-up list of a virtual prop set corresponding to a specific location when the target virtual character is close to the location, and indicate the virtual prop set information that is allowed to be picked up and used by the target virtual character at the location through the displayed list information, so that the user can control the target virtual character to pick up the virtual props at the location according to actual needs based on the virtual prop information of the location.
[0047] Optionally, in response to a click operation on the first pick-up item in the pick-up list, when the target virtual character is controlled to hold the first virtual prop corresponding to the first pick-up item, the first virtual prop identifier corresponding to the first pick-up item can also be moved to the equipment area for display. In response to a drag operation on the second pick-up item in the pick-up list and the second pick-up item is dragged to the first area in the pick-up list, when the second virtual prop corresponding to the second pick-up item is placed in the backpack of the target virtual character, the second virtual prop identifier corresponding to the second pick-up item can also be moved to the backpack area corresponding to the backpack of the target virtual character for display. It can be understood that the equipment area corresponds to the candidate equipment area of the virtual character, the backpack area corresponds to the virtual backpack of the virtual character, and the equipment area and the backpack area are display areas of two different types of virtual prop identifiers corresponding to the click operation and the drag operation.
[0048] In one approach, different usage permissions can be set for different virtual props stored in the backpack according to their types. For example, virtual props equipped in the candidate equipment area are allowed to be directly acquired and used by virtual objects; weapon items stored in the backpack need to be moved to the equipment area before they are allowed to be used; and supply props stored in the backpack are allowed to be directly used by virtual objects.
[0049] Next, combine Figure 3 The above method is further described. Figure 3 In the game scene shown, the target virtual character 301 is displayed in the center of the interface, which is a virtual character image that performs game tasks. Figure 3 The interface shown also displays a shooting control 306 with a bullet pattern, which is used to control the target virtual character to perform shooting actions; a moving control 307 with a direction pattern, which is used to control the movement of the target virtual character in the game scene; an aiming control 308 with a crosshair pattern, which is used to control the target virtual character to perform aiming operations; and a backpack control 309 with a backpack pattern, which is used to control the display of the backpack area corresponding to the virtual backpack of the virtual object.
[0050] At the same time, in Figure 3 In the game scene shown, a virtual object 305 is displayed on the ground. In the game, the virtual object 305 can be a kind of item supply pack. It can be understood that the certain range where the virtual object 305 is located is a kind of target area. That is, when the target virtual character 301 is close to the virtual object 305, that is, when the target virtual character moves to the target area in the virtual scene, the pickup button ( Figure 3(not shown), and in response to the touch operation of the pick-up button, a pick-up list 302 corresponding to the target area, i.e., the location of the item supply pack, is displayed. It can be understood that the pick-up list 302 displays the virtual item collection information included in the item supply pack. Figure 3 As shown in the figure, the pick-up list 302 shows the pick-up items "item A", "item B" and "item C" and the corresponding virtual props logos. At the same time, the equipment area 303 is displayed below the pick-up list 302, and the first area 304 is displayed on the right side of the pick-up list 302. Further, in the case where it is detected that a click operation is performed on the pick-up item "item A", the target virtual character equipment is controlled to hold the virtual weapon corresponding to the pick-up item "item A" (not shown in the figure), and the circle logo corresponding to the pick-up item "item A" is controlled to move to the area shown in the equipment area 303 for display (the display interface after the move is not shown in the figure); in the case where it is detected that the pick-up item "item B" is dragged and dragged to the first area 304, the virtual props corresponding to "item B" are controlled to be placed in the backpack of the target virtual character, and the virtual prop logo corresponding to "item B" is displayed in the backpack area (the backpack area corresponding to the above backpack is not shown in the figure). It can be understood that the above embodiment is only an exemplary description and does not limit the present application. Through the embodiments provided by the present application, in response to the target virtual character moving to the target area in the virtual scene, a pick button is displayed; in response to the operation of the pick button, a pick list is displayed, the pick list includes at least one pick item, and each pick item corresponds to a virtual prop to be picked up; in response to the click operation on the first pick item in the pick list, the target virtual character is controlled to hold the first virtual prop corresponding to the first pick item; in response to the drag operation on the second pick item in the pick list and the second pick item is dragged to the first area in the pick list, the second virtual prop corresponding to the second pick item is placed in the backpack of the target virtual character, thereby achieving the virtual props corresponding to the pick item being moved to different types of management areas by setting control operations corresponding to different operation types, thereby solving the technical problem of low management efficiency of virtual props in the prior art.
[0051] As an optional solution, in response to the click operation on the first pickup item in the pickup list, controlling the target virtual character to hold the first virtual prop corresponding to the first pickup item includes:
[0052] S1, when a touch operation performed on a first picked-up item is detected and a touch displacement distance generated based on the touch operation is less than or equal to a first distance threshold, determining that a click operation is detected;
[0053] S2, moving a first virtual item identifier corresponding to a first pickup item from a pickup list to a first position in an equipment area, and removing the first pickup item from the pickup list;
[0054] S3, displaying the posture of the target virtual character holding the first virtual prop.
[0055] It should be understood that the above-mentioned equipment area is an equipment area that can be a candidate virtual prop, and the identification information displayed in the area indicates that the virtual prop corresponding to the identification in the area can be equipped on the target virtual character and allowed to be held and controlled by the target virtual character. Figure 4 As shown, the equipment area 401 can be displayed in the middle and lower part of the game interface, and can be specifically displayed as a "weapon bar" image style. Figure 4 In the form shown in the figure, the equipment area 401 can be further divided into two areas, namely the "weapon column 1" area and the "weapon column 2" area. It can be understood that the virtual props corresponding to the virtual props logo displayed in the equipment area 401 are set to be allowed to be equipped on the virtual character. Assuming that the prop logo of "item A" is displayed in the "weapon column 1" (the logo is not shown in the figure), it indicates that the virtual prop "item A" is allowed to be equipped by the target virtual character, and when the target virtual character holds the virtual prop, it is set to allow the target virtual character to use it directly.
[0056] Next, the above touch operation is explained. It is understandable that different touch operations on the same object can produce different displacements of the touch point. Taking the click operation as an example, ideally, the click operation on the target object will not cause the displacement of the touch point, but in actual applications, the user's operation often has jitter errors, so the click operation performed by the user on the target object will cause the displacement of the touch point, and the displacement of the touch point can be called touch displacement. Therefore, a first threshold value can be set, and when it is detected that the displacement of the touch point is less than the first threshold value, the touch operation is determined to be a click operation.
[0057] In an optional embodiment, the first threshold may be set to 5px (5 pixels in length), indicating that when the touch displacement of the touch operation is detected to be less than or equal to 5px, it is determined that a click operation is detected on the target object.
[0058] It can be understood that when a click operation is detected on the first pickup item, the first pickup item is moved from the pickup list to the first position in the equipment area in response to the click operation, and the posture of the target virtual character holding the first virtual prop is displayed.
[0059] Next, combine Figure 7The above method is described in detail. Figure 7 As shown, when the Figure 7 When the touch displacement distance generated by the touch operation performed on the pickup item "Item A" in Figure (a) is less than 5px, the touch operation is determined to be a click operation. In response to the click operation performed on the pickup item, the virtual prop corresponding to the pickup item "Item A" is controlled to be equipped to the target virtual character.
[0060] In an optional embodiment, in response to the click operation performed on the pickup item "item A", such as Figure 7 As shown in FIG. (b), the interface shows that the pickup items included in the pickup list 702 are "item B", "item C", and "item D", that is, the pickup item "item A" is deleted, and a circular mark indicating the pickup item "item A" is displayed in the equipment area 703, indicating that the virtual prop "item A" has been moved to the candidate equipment area of the virtual character. At the same time, the target virtual character 701 also displays the virtual equipment 708 corresponding to "item A", indicating that the target virtual character 701 already holds the virtual prop corresponding to the pickup item "item A".
[0061] In another alternative, such as Figure 7 As shown in FIG. 7(c), in response to the click operation on the pickup item "Item A", the pickup items included in the pickup list 706 are displayed as "Item B", "Item C", and "Item D", that is, the pickup item "Item A" is deleted, and a circular mark indicating "Item A" is displayed in the equipment area 705. At the same time, the target virtual character 704 is displayed in a frontal image posture, and it is displayed that the target virtual character 704 has already held the virtual equipment 707 corresponding to the pickup item "Item A".
[0062] In yet another embodiment, the above Figure 7 The figure (b) in the figure may be an interface figure actually displayed in the current game interface. Corresponding to the interface figure, the above Figure 7 Figure (c) may be a front view of the same virtual character displayed from the perspective of a third player.
[0063] Through the above-mentioned embodiments provided by the present application, when a touch operation performed on a first pickup item is detected and the touch displacement distance generated based on the touch operation is less than or equal to a first distance threshold, it is determined that a click operation is detected; the first virtual prop identifier corresponding to the first pickup item is moved from the pickup list to the first position in the equipment area, and the first pickup item is removed from the pickup list; and the posture of the target virtual character holding the first virtual prop is displayed, thereby solving the technical problem of low management efficiency of virtual props.
[0064] As an optional solution, before moving the first virtual item identifier corresponding to the first pickup item from the pickup list to the first position in the equipment area, the method further includes:
[0065] S1, when there is at least one idle position in the equipment area, determining a first position from the at least one idle position;
[0066] S2: When there is no free position in the equipment area, determine a first position according to the current object holding posture of the target virtual character.
[0067] It is understandable that there may be multiple sub-areas in the above-mentioned equipment area, and each sub-area is only allowed to be used to place one virtual prop identifier. Therefore, before moving the first virtual prop identifier corresponding to the above-mentioned first pickup item to the equipment area, it is necessary to first detect the sub-areas in the equipment area to determine in advance the sub-area for placing the target object. Therefore, in the case where there is an idle position in the equipment area, the first position for placing the virtual prop identifier is determined from the idle position.
[0068] In the case where there is no free position in the equipment area, that is, the number of prop identifiers placed in the equipment area has reached the upper limit of the number of prop identifiers that can be placed, when moving the pick-up item to the equipment area, it is necessary to determine a position from the multiple positions where the prop identifiers have been placed, and the original prop identifier object is moved out to place the new prop identifier. It can be understood that the pick-up item corresponding to the moved prop identifier will be re-displayed in the pick-up list, and the virtual prop corresponding to the prop identifier will be displayed in the current virtual scene at the same time, indicating that the virtual prop is allowed to be picked up.
[0069] Furthermore, when there are prop identifiers at all positions in all equipment areas, the first position can be determined by the current object holding posture of the target virtual object. In other words, the position where the prop identifier corresponding to the virtual prop is stored in the equipment area can be determined as the first position according to the virtual prop currently held by the target virtual character.
[0070] The following combination Figure 3 , Figure 8 , Fig. 9 The above embodiments are described in detail. Figure 3 As shown, there are two free positions "Weapon Column 1" and "Weapon Column 2" in the equipment area 303. In this case, the first position is determined from "Weapon Column 1" and "Weapon Column 2". Further, after the first position is determined from "Weapon Column 1" and "Weapon Column 2", the virtual item mark is moved to the first position for display.
[0071] like Figure 8As shown, the equipment area 705 includes two positions, "Weapon Column 1" and "Weapon Column 2", but a circular mark corresponding to "Item A" is displayed in "Weapon Column 1". In this case, "Weapon Column 2" without any prop mark can be directly determined as the first position. Therefore, the first virtual prop mark corresponding to the first pickup item can be moved to the position of "Weapon Column 2".
[0072] like Fig. 9 As shown in Figure (a), the two positions "Weapon Bar 1" and "Weapon Bar 2" displayed in the equipment area 901 both display prop identifiers corresponding to different virtual props, which means that there is no free position in the equipment area 901. In this case, it can be determined from the object holding posture of the target virtual character 904 that the virtual prop it holds is the virtual equipment 902, and the prop identifier object corresponding to the virtual equipment 902 is a circular identifier, then the position indicated by the circular identifier is the above-mentioned first position. Furthermore, in the case where the clicked pickup item is "Item C", the square prop identifier corresponding to "Item C" is moved to the position where the circular identifier is located, and the circular identifier is moved out of the above-mentioned position.
[0073] Through the above-mentioned embodiments provided by the present application, before the prop identifier corresponding to the pickup item is moved from the pickup list to the first position in the equipment area of the target virtual character, the first position for placing the above-mentioned prop identifier is pre-determined by different methods in two cases, thereby improving the efficiency of the manipulation of the virtual object.
[0074] As an optional solution, the above-mentioned determining the first position according to the current object holding posture of the target virtual character includes:
[0075] S1, when the object holding posture indicates that the target virtual character does not hold the virtual prop, the main position in the equipment area is determined as the first position, wherein, when the first virtual prop identifier corresponding to the first pickup item is moved to the first position, the virtual prop identifier displayed at the main position in the equipment area is moved out of the equipment area;
[0076] S2, when the object holding posture indicates that the target virtual character holds a virtual prop, the position of the virtual prop identifier corresponding to the virtual prop currently held by the target virtual character is determined as the first position, wherein, while the first virtual prop identifier corresponding to the first pickup item is moved to the first position, the virtual prop identifier corresponding to the virtual prop currently held by the target virtual character will be moved out of the equipment area.
[0077] It is understood that, when the item identifier corresponding to the currently held virtual item is removed from the equipment area, the pickup item corresponding to the item identifier will be redisplayed in the pickup list, and the virtual item will be displayed at the current position in the game scene. In other words, when the virtual item currently held by the virtual target character is replaced, the virtual item will be re-placed in the game scene for pickup.
[0078] The following combination Fig. 9 , Fig.10 The above embodiment is described. It is understandable that, when there is no free position in the equipment area, there are multiple methods for determining the first position according to the specific object holding posture of the target virtual character. Specifically, in an optional embodiment, Fig.10 As shown in (a) of FIG. 1 , both positions in the equipment area 1001 have displayed the marks corresponding to the virtual props, and when the target virtual character 1002 does not hold any virtual props, the first position can be determined according to the main position in the equipment area 1001. Assuming that the position indicated by the circular mark is the main position, the position indicated by the circular mark can be determined as the first position. Further, when the pickup item "Item C" is clicked, as shown in FIG. Fig.10 As shown in (b) of FIG. 1003 , the circular mark is moved out of the equipment area, the pickup item "item A" corresponding to the circular mark is displayed again in the pickup list, and the square mark corresponding to the pickup item "item C" is moved to the main position in the equipment area 1003. As shown in the figure, the square mark corresponding to "item C" is displayed at the main position, and at the same time, it is displayed that the target virtual character 1004 has the virtual equipment 1005 corresponding to the pickup item "item C".
[0079] In another optional embodiment, Fig. 9 As shown in (a) of FIG. 1 , the two positions in the equipment area 901 have displayed the marks corresponding to the virtual props, and when the target virtual character 904 holds the virtual equipment 902 (the virtual equipment 902 is the virtual prop corresponding to the circular mark), it can be determined that the position where the circular mark in the equipment area 901 is displayed is the first position. When the square mark corresponding to the pickup item "item C" is clicked, further, as Fig. 9 As shown in Figure (b), the circular mark is moved out of the above-mentioned equipment area, and the square mark corresponding to the above-mentioned pickup item "Item C" is moved to the position of the original circular mark in the above-mentioned equipment area 906, and the target virtual character 908 is displayed holding virtual equipment 907 (weapon 907 is a virtual prop corresponding to the pickup item "Item C").
[0080] Through the above-mentioned embodiments provided by the present application, when there is no free position in the equipment area, the first position is determined according to different methods that exist for different specific object holding postures of the virtual character, thereby avoiding the technical problem of being unable to accurately manage virtual props in special situations and improving the accuracy of the management of virtual props.
[0081] As an optional solution, after displaying the pick list in response to the operation on the pick button, the method further includes:
[0082] S1, in response to a click operation performed on a first area in a pick list, displaying a backpack area of a target virtual character;
[0083] S2, in response to a selection operation performed on the pickup list, moving the virtual item identifier corresponding to the selected pickup item to a third position in the backpack area of the target virtual character.
[0084] Next, the backpack area is explained. It is understandable that the backpack area is another prop storage area that is different from the equipment area, and corresponds to the backpack of the target virtual character. In an optional manner, the virtual props stored in this area are set to be prohibited from being directly equipped on the target virtual character, and are only allowed to be equipped on the target virtual character when they are further moved to the item equipment area. In a specific game scene, the backpack area corresponds to the backpack of the virtual character, and the virtual props stored in the backpack need to be "taken out" from the backpack to the item equipment area, or are directly held by the virtual character before they are allowed to be equipped and used.
[0085] It can be understood that in this embodiment, in response to the operation of dragging the pickup item to the first area, the prop mark corresponding to the pickup item can be placed in the backpack area, indicating that the virtual prop corresponding to the pickup item is placed in the backpack of the virtual object; it is also possible to further display the above backpack area in response to the click operation on the first area in the above pickup list, and then place the prop mark corresponding to the above pickup item in the above backpack area through subsequent operations.
[0086] like Figure 4 As shown, the first area can be displayed in the manner shown in the figure, on the right side of the pick-up list, i.e., the first area 402. That is, for the pick-up item dragged to the area described in the first area 402 in the figure, the corresponding prop mark will be moved to the backpack area, indicating that the virtual prop corresponding to the pick-up item will be controlled to be placed in the backpack of the virtual character.
[0087] In this embodiment, Figure 4The first area 402 in the figure may also be a control mark indicating a backpack area. After a click operation is performed on the first area 402, Figure 5 The backpack area 501 is shown. Specifically, the word "backpack" can be displayed in the backpack area 501 to indicate that the area is used to store the props. It can be understood that when the above Figure 4 When a click operation is performed on the first area 402 in Figure 5 The backpack area 501 shown in FIG. Figure 5 In the case of a click operation on the pickup item "Item A" displayed in the figure, the item mark of the pickup item "Item A" is moved to the second position 502 (the display interface after the movement is not shown).
[0088] Next, combine Figure 4 , Figure 6 The above method is further described. In an optional embodiment, Figure 4 As shown, the pick list includes pick items "item A", "item B", "item C", "item D", and "item E", which correspond to circular prop marks, triangular prop marks, square prop marks, elliptical prop marks, and rectangular prop marks, respectively (due to the limited display area, pick items "item D" and "item E" are not shown). When it is detected that a click operation is performed on the pick item "item A", and the pick item "item B" is dragged to the first area 402, as shown in FIG. Figure 6 As shown in FIG. 1 (a), a circular mark indicating the pickup item "item A" is displayed at the position indicated by the original "weapon column 1" in the equipment area 401, indicating that the virtual character holds the virtual prop corresponding to the pickup item "item A"; the prop mark of "item B" moves to the second position in the backpack area ( Figure 6 (a) in the figure is not specifically shown). At the same time, the pickup items "item A" and "item B" are cancelled from the pickup list, and the pickup items "item C", "item D" and "item E" are displayed. Further, when the first area 402 is clicked, the following is displayed: Figure 6 In the backpack area interface shown in FIG. (b), a triangle mark indicating the pickup item "item B" is displayed at the second position 502 in the backpack area 501, indicating that the virtual prop corresponding to the pickup item "item B" is moved to the backpack of the virtual character. At the same time, the remaining pickup items "item C", "item D" and "item E" are displayed in the pickup list.
[0089] In another optional embodiment, in combination Figure 4 , Figure 5 For explanation. Figure 4As shown, the pick list includes "item A", "item B", "item C", "item D", and "item E", which correspond to circular prop marks, triangular prop marks, square prop marks, elliptical prop marks, and rectangular prop marks, respectively (due to the limited display area of the pick list, "item D" and "item E" are not shown). When a click operation is performed on the first area 402, the display is as follows Figure 5 The interface shown in the figure. Figure 5 As shown, the pick-up list fully displays the pick-up items "item A", "item B", "item C", "item D", "item E" and their corresponding item identifiers. When a selection operation (such as a click operation) is performed on the above pick-up items, the item identifier corresponding to the selected pick-up item can be added to the backpack area 501.
[0090] Through the embodiments provided by the present application, in response to a click operation performed on a first area in a pickup list, a backpack area of a target virtual character is displayed; in response to a selection operation performed on the pickup list, a virtual prop identifier corresponding to the selected pickup item is moved to a second position in the backpack area of the target virtual character, thereby improving the management efficiency of virtual objects.
[0091] As an optional solution, in response to the dragging operation on the second pickup item in the pickup list and the second pickup item being dragged to the first area in the pickup list, placing the second virtual prop corresponding to the second pickup item into the backpack of the target virtual character includes:
[0092] S1, when a touch operation performed on a second picked-up item is detected and a touch displacement distance generated based on the touch operation is greater than a first distance threshold, determining that a drag operation is detected;
[0093] S2, when the second pickup item meets the storage trigger condition, moving the second virtual prop identifier corresponding to the second pickup item from the pickup list to the second position in the backpack area, so as to put the second virtual prop corresponding to the second pickup item into the backpack of the target virtual character;
[0094] S3, and remove the second pickup item from the pickup list.
[0095] Next, the above-mentioned dragging operation is explained. It can be understood that the displacement of the touch point that can be generated by different touch operations on the same object is different. Taking the drag operation as an example, the drag operation performed by the user on the target object will cause the displacement of the touch point, and the displacement of the touch point can be referred to as the touch displacement. Therefore, a first threshold value can be set, and when it is detected that the displacement of the touch point is greater than the first threshold value, the touch operation is determined to be a click operation. In an optional embodiment, the above-mentioned first threshold value can be set to 5px (5 pixels in length), indicating that when the touch displacement of the touch operation is detected to be greater than 5px, it is determined that a drag operation is detected on the target object.
[0096] It is understandable that when the touch operation is determined to be a drag operation by the above method, it is necessary to further detect whether the storage trigger condition of the picked-up object is met. When the storage trigger condition is met, the prop identifier corresponding to the picked-up item controlled by the above drag is moved to the second position in the backpack area, and the picked-up item is removed from the pick-up list.
[0097] Through the embodiments provided by the present application, when a touch operation performed on a second pickup item is detected and the touch displacement distance generated based on the touch operation is greater than a first distance threshold, it is determined that a drag operation is detected; when the second pickup item reaches a storage trigger condition, a second virtual prop identifier corresponding to the second pickup item is moved from a pickup list to a second position in a backpack area to place the second virtual prop corresponding to the second pickup item into the backpack of a target virtual character; and the second pickup item is removed from the pickup list, thereby realizing detection of the touch displacement to determine the drag operation, and then accurately managing objects according to the drag operation, thereby improving the management efficiency of virtual objects.
[0098] As an optional solution, before moving the second virtual item identifier corresponding to the second pickup item from the pickup list to the second position in the backpack area, the method further includes:
[0099] S1, when the change displacement distance of the target boundary of the second pickup item reaches a second distance threshold, triggering display of a trigger prompt area corresponding to the backpack area;
[0100] S2: When the end point of the dragging operation is located within the trigger prompt area, determining that a storage trigger condition is met.
[0101] It can be understood that the above-mentioned second distance threshold can be a value different from the above-mentioned first distance threshold. For example, when the above-mentioned first distance threshold is 5px, the above-mentioned second distance threshold can be set to 6px; optionally, the above-mentioned second distance threshold can also be the same value as the first distance threshold. For example, when the above-mentioned first distance threshold is 5px, the above-mentioned second distance threshold can also be set to 5px.
[0102] The following combination Fig.11 The above method is described in detail. Fig.11 As shown in Figure (a), it is detected that the pick-up item selected by touch is "Item A", and the touch point 1103 is near the right edge of the icon of the pick-up item "Item A". When it is detected that the change displacement 1101 of the graphic boundary of the "Item A" icon reaches the second distance threshold 5px, the trigger reminder area 1102 is displayed, and the text "Drag here" is displayed in the trigger reminder area 1102 to instruct the user to drag the selected object icon to this area to complete the object storage. As an optional method, the above-mentioned trigger reminder area can be directly displayed at the location of the original first area for change display. Fig.11 As shown in FIG. (b), the end point of the touch operation on the icon of "item A" is the position shown in the figure, and it is detected that the end point of the touch operation, that is, the touch point 1104 indicated in the figure, is located in the trigger reminder area 1102, then it is determined that the storage trigger condition is met. Further, when the above storage trigger condition is met, the circular item mark corresponding to "item A" is controlled to be moved to the backpack area.
[0103] Through the embodiments provided by the present application, when the change displacement distance of the target boundary of the icon of the target object reaches a second distance threshold, a trigger prompt area corresponding to the object storage area is triggered to be displayed, and when the operation end point of the touch operation is located in the trigger prompt area, it is determined that the storage trigger condition is met, thereby realizing the detection of the change displacement of the icon boundary and the operation end point of the touch operation to determine whether to move the target object, thereby achieving the technical effect of improving the management efficiency of virtual props.
[0104] As an optional solution, after triggering and displaying the trigger prompt area corresponding to the backpack area, the method further includes:
[0105] S1, when the operation end position of the drag operation is not located in the trigger prompt area, determining that the storage trigger condition is not met;
[0106] S2, retaining the position of the second pick-up item in the pick-up list and hiding the trigger prompt area.
[0107] The following combination Fig.12 To illustrate the above method, it is detected that the pick-up item selected by touch is "item A". When it is detected that the change displacement 1201 of the graphic boundary of the icon of "item A" reaches the second distance threshold 5px, a trigger reminder area 1202 is displayed, and the text "drag here" is displayed in the trigger reminder area 1202 to instruct the user to drag the selected pick-up item to the area to complete the object storage. Fig.12As shown in FIG. (b) of FIG. 1 , the end point of the touch operation on the icon of “item A” is the position indicated by the touch point 1203 in the figure, and it is detected that the position is not located in the trigger reminder area 1202, so it is determined that the storage trigger condition has not been met. Fig.12 As shown in Figure (b), when the above-mentioned storage trigger condition is not met, the position of the pickup item "Item A" in the pickup list is retained, the trigger prompt area is hidden, and the first area is restored to display, that is, the area shown as the "Compare Backpack" in the figure.
[0108] Through the embodiment provided by the present application, when the operation end position of the drag operation is not located in the trigger prompt area, it is determined that the storage trigger condition has not been met; the position of the second pick item in the pick list is retained, and the trigger prompt area is hidden, thereby improving the control efficiency of the virtual object.
[0109] As an optional solution, after moving the second virtual prop identifier corresponding to the second pickup item from the pickup list to the second position in the backpack area, it also includes: hiding the trigger prompt area and displaying storage prompt information, wherein the storage prompt information is used to prompt that the second virtual prop identifier corresponding to the second pickup item has been moved to the second position in the backpack area.
[0110] Continue to combine Fig.11 The above method is described below. After the circular mark of "Item A" is moved to the backpack area, Fig.11 As shown in FIG. (c), the storage reminder area 1102 is hidden, and the "Compare Backpack" area is restored, and a storage reminder message 1105 "Item A has been put into the backpack" is displayed. At the same time, the pick-up item "Item A" in the pick-up list has been removed, indicating that the item mark corresponding to the pick-up item "Item A" has been moved into the backpack area, and the virtual item corresponding to the pick-up item "Item A" is moved into the backpack of the virtual character.
[0111] Through the embodiment provided by the present application, after moving the second virtual prop identifier corresponding to the second pickup item from the pickup list to the second position in the backpack area, it also includes: hiding the trigger prompt area and displaying storage prompt information, wherein the storage prompt information is used to prompt that the second virtual prop identifier corresponding to the second pickup item has been moved to the second position in the backpack area, thereby improving the control efficiency of the virtual object.
[0112] As an optional solution, before displaying the pick list, it also includes: configuring a detection range for the pick list to detect drag operations, wherein the pick list is displayed within the detection range, and the difference between the area occupied by the detection range and the area of the display area of the pick list is less than a target threshold.
[0113] The following combination Fig.13 The above method is explained as follows: Fig.13 As shown, there is a detection box 1301 in the interface (not displayed in the actual interface), and the pick list is located in the detection box, so as to determine the detection range. It can be understood that the specific shape and area of the above detection box can be set according to actual needs, and at the same time, it is determined that the area difference between the detection range determined by the detection box and the display area of the pick list is less than a certain threshold.
[0114] Through the above-mentioned embodiments of the present application, by configuring the pick list with a detection range for detecting the second type of control operation, it is determined that the object icon controlled by the above-mentioned second type of control operation will only move in the specified area, thereby improving the control efficiency of the virtual object.
[0115] The following specific combination Fig.14 The process shown is used to illustrate the complete process of the virtual object control method provided by this application:
[0116] After starting any game mission with the user controlling the first virtual object:
[0117] When the user is close to a supply point, Figure 3 As shown, a pickup list is displayed in the interface, and information about items that can be picked up is displayed in the list.
[0118] In step S1402, a touch operation is detected; that is, a touch operation of a user is detected to determine that a certain object is selected through the touch operation.
[0119] Then, as in step S1404, it is determined whether the touch displacement distance is greater than the threshold. If the touch displacement distance is greater than the threshold, step S1416 is executed. If the touch displacement distance is less than or equal to the threshold, step S1406 is executed. It should be understood that there is no order of execution for the above steps S1416 and S1406;
[0120] When the touch displacement distance is less than or equal to the threshold, as in step S1406, it is determined whether the touch is terminated. When the touch is terminated, step S1408 is executed. When the touch is not terminated, the process returns to step S1402 to continue detecting the touch operation.
[0121] When it is determined that the touch displacement is less than or equal to the threshold value and the touch is ended, as in step S1408, the item is placed in the equipment column;
[0122] It is understandable that when the touch displacement is less than or equal to the threshold and the touch is ended, it can be determined that the player has performed a click operation on the pickup item, and the prop icon corresponding to the selected pickup item is placed in the equipment bar for display. Figure 3As shown in the equipment area 303.
[0123] Then, as in step S1410, it is determined whether the equipment bar is free. If the equipment bar is free, step S1412 is executed. If the equipment bar is not free, step S1414 is executed.
[0124] When the equipment bar is free, as in step S1412, the item is placed in the free position;
[0125] It is understandable that there may be multiple sub-areas in the equipment bar. In the case where there are free sub-areas, the selected item identifier may be directly placed in the free area.
[0126] If the equipment bar is not free, execute step S1414 to replace the corresponding item;
[0127] It is understandable that if a new item is added to the equipment bar when the equipment bar is not empty, it is necessary to determine the item to be replaced. Fig. 9 As shown in FIG. (a), both positions in the equipment area 901 have displayed the corresponding logos of the item objects, and when the target virtual character 904 holds the virtual equipment 902 (the virtual equipment 902 corresponds to the circular logo of "item A"), it can be determined that the position indicated by the circular logo in the equipment area 901 is the first position. Fig. 9 As shown in Figure (b), when the pickup item "Item C" is clicked, the circular mark is moved out of the above-mentioned equipment area, and the square mark corresponding to the above-mentioned pickup item "Item C" is moved to the position of the original circular mark in the above-mentioned equipment area 906, and at the same time, the target virtual character 908 is displayed holding the virtual equipment 907 (the virtual equipment 907 corresponds to the square mark of "Item C").
[0128] In step S1416, when the touch displacement distance is greater than the threshold, a prompt area is displayed;
[0129] Combination Fig.11 The above method is further described. Fig.11 As shown in (a) of FIG. 1 , it is detected that the picked-up item selected by touch is "item A", and the touch point 1103 is near the right edge of the icon of "item A". When it is detected that the change displacement 1101 of the graphic edge of the icon of "item A" reaches the second distance threshold of 5px, a trigger reminder area 1102 is displayed, and the text "drag here" is displayed in the trigger reminder area 1102 to instruct the user to drag the selected object icon to the area to complete the object storage.
[0130] Then, step S1418 is executed to end the touch control;
[0131] It can be understood that the end touch here is used to determine the position of the touch end point.
[0132] Then, step S1420 is executed to determine whether the touch endpoint is within the prompt area. If the touch endpoint is within the prompt area, step S1422 is executed; if the touch endpoint is not within the prompt area, step S1424 is executed.
[0133] When the touch endpoint is within the prompt area, step S1422 is executed to put the item into the backpack;
[0134] like Fig.11 As shown in FIG. (b), the end point of the touch operation on the icon of "item A" is the position shown in the figure, and it is detected that the end point of the touch operation, that is, the touch point 1104 indicated in the figure, is located in the trigger reminder area 1102, then it is determined that the storage trigger condition is met. Further, when the above storage trigger condition is met, the control moves "item A" to the item backpack;
[0135] If the touch endpoint is not within the prompt area, executing step S1424 to cancel the drag;
[0136] Combination Fig.12 To illustrate the above method, it is detected that the pickup item selected by touch is "item A". When it is detected that the change displacement 1201 of the "item A" graphic boundary reaches the second distance threshold 5px, a trigger reminder area 1202 is displayed, and the text "drag here" is displayed in the trigger reminder area 1202 to instruct the user to drag the selected pickup item icon to the area to complete the prop storage. Fig.12 As shown in FIG. (b) of FIG. 1 , the end point of the touch operation on the icon of “item A” is the position indicated by the touch point 1203 in the figure, and it is detected that the position is not located in the trigger reminder area 1202, so it is determined that the storage trigger condition has not been met. Fig.12 As shown in Figure (b), when the above-mentioned storage trigger condition is not met, the position of the pickup item "Item A" in the pickup list is retained, the trigger prompt area is hidden, and the "Compare Backpacks" area is restored.
[0137] Above Fig.14 The process shown is an example and is not limited in this embodiment.
[0138] In an embodiment of the present invention, by displaying a pick list that matches the current position of the target virtual character, in response to a control operation performed on the target object in the pick list, the target object is moved from the pick list to a control area of the virtual object corresponding to the operation type of the control operation, thereby achieving the goal of moving the target object to different types of management areas by setting control operations corresponding to different operation types, thereby solving the technical problem of low object management efficiency in the prior art.
[0139] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
[0140] According to another aspect of an embodiment of the present invention, a virtual object control device for implementing the above virtual object control method is also provided. Fig.15 As shown, the device comprises:
[0141] The first display unit 1502 is used to display a pick-up button in response to the target virtual character moving to the target area in the virtual scene;
[0142] The second display unit 1504 is used to display a pick-up list in response to an operation on the pick-up button, wherein the pick-up list includes at least one pick-up item, and each pick-up item corresponds to a virtual prop to be picked up;
[0143] The first picking unit 1506 is used to control the target virtual character to hold a first virtual prop corresponding to the first picking item in the picking list in response to a click operation on the first picking item;
[0144] The second picking unit 1508 is used to put the second virtual prop corresponding to the second picking item into the backpack of the target virtual character in response to the dragging operation on the second picking item in the picking list and the second picking item being dragged to the first area in the picking list.
[0145] Optionally, in this embodiment, the embodiments to be implemented by the above-mentioned various unit modules can refer to the above-mentioned various method embodiments, which will not be repeated here.
[0146] According to another aspect of the embodiments of the present invention, an electronic device for implementing the above-mentioned virtual object control method is also provided. The electronic device may be Fig.16 The terminal device or server shown in the figure. This embodiment is described by taking the electronic device as a terminal device as an example. Fig.16As shown, the electronic device includes a memory 1602 and a processor 1604. The memory 1602 stores a computer program, and the processor 1604 is configured to execute the steps in any of the above method embodiments through the computer program.
[0147] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0148] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0149] S1, in response to the target virtual character moving to the target area in the virtual scene, displaying a pick-up button;
[0150] S2, in response to the operation of the pick-up button, displaying a pick-up list, the pick-up list including at least one pick-up item, each pick-up item corresponding to a virtual prop to be picked up;
[0151] S3, in response to a click operation on a first pickup item in the pickup list, controlling the target virtual character to hold a first virtual prop corresponding to the first pickup item;
[0152] S4, in response to a drag operation on the second pickup item in the pickup list and the second pickup item being dragged to the first area in the pickup list, placing a second virtual prop corresponding to the second pickup item into a backpack of the target virtual character.
[0153] Alternatively, a person skilled in the art may understand that: Fig.16 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, and other terminal devices. Fig.16 The electronic device and the electronic equipment described above are not limited in structure. Fig.16 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.16 Different configurations are shown.
[0154] Among them, the memory 1602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for controlling virtual objects in the embodiments of the present invention. The processor 1604 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602, that is, realizing the above-mentioned method for controlling virtual objects. The memory 1602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1602 may further include a memory remotely arranged relative to the processor 1604, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1602 may be specifically used, but not limited to, to store information such as various elements in the scene screen, control information of virtual objects, and so on. As an example, such as Fig.16 As shown, the memory 1602 may include, but is not limited to, the first display unit 1502, the second display unit 1504, the first pickup unit 1506, and the second pickup unit 1508 in the virtual object manipulation device. In addition, other module units in the virtual object manipulation device may also be included but are not limited to, which will not be repeated in this example.
[0155] Optionally, the transmission device 1606 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1606 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1606 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0156] In addition, the electronic device further includes: a display 1608 for displaying a virtual scene in an interface; and a connection bus 1610 for connecting various module components in the electronic device.
[0157] In other embodiments, the terminal device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, the nodes may form a peer-to-peer (P2P, Peer To Peer) network, and any form of computing device, such as a server, terminal and other electronic devices, may become a node in the blockchain system by joining the peer-to-peer network.
[0158] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.
[0159] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0160] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned method for controlling a virtual object.
[0161] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0162] S1, in response to the target virtual character moving to the target area in the virtual scene, displaying a pick-up button;
[0163] S2, in response to the operation of the pick-up button, displaying a pick-up list, the pick-up list including at least one pick-up item, each pick-up item corresponding to a virtual prop to be picked up;
[0164] S3, in response to a click operation on a first pickup item in the pickup list, controlling the target virtual character to hold a first virtual prop corresponding to the first pickup item;
[0165] S4, in response to a drag operation on the second pickup item in the pickup list and the second pickup item being dragged to the first area in the pickup list, placing a second virtual prop corresponding to the second pickup item into a backpack of the target virtual character.
[0166] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0167] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the above methods of various embodiments of the present invention.
[0168] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0169] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0170] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0171] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0172] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for controlling a virtual object, characterized in that: include: In response to the target virtual character moving to the target area in the virtual scene, displaying a pick-up button; In response to the operation of the pick-up button, a pick-up list is displayed, wherein the pick-up list includes at least one pick-up item, and each pick-up item corresponds to a virtual prop to be picked up; When a touch operation is detected on a first pickup item in the pickup list, and a touch displacement distance generated based on the touch operation is less than or equal to a first distance threshold, determining that a click operation is detected; moving a first virtual item identifier corresponding to the first pickup item from the pickup list to a first position in an equipment area, and removing the first pickup item from the pickup list; Displaying a posture of the target virtual character holding the first virtual prop; When a touch operation is detected on a second pick-up item in the pick-up list, and a touch displacement distance generated based on the touch operation is greater than a first distance threshold, it is determined that a drag operation is detected; when the second pick-up item meets a storage trigger condition, a second virtual prop identifier corresponding to the second pick-up item is moved from the pick-up list to a second position in a backpack area to place the second virtual prop corresponding to the second pick-up item into the backpack of the target virtual character; and the second pick-up item is removed from the pick-up list.
2. The method according to claim 1, characterized in that Before moving the first virtual item identifier corresponding to the first pickup item from the pickup list to the first position in the equipment area, the method further includes: In a case where there is at least one free position in the equipment area, determining the first position from the at least one free position; In the case that there is no free position in the equipment area, the first position is determined according to the current object holding posture of the target virtual character.
3. The method according to claim 2, characterized in that Determining the first position according to the current object holding posture of the target virtual character includes: When the object holding posture indicates that the target virtual character does not hold a virtual prop, the main position in the equipment area is determined to be the first position, wherein when the first virtual prop identifier corresponding to the first pickup item is moved to the first position, the virtual prop identifier displayed at the main position in the equipment area is moved out of the equipment area; When the object holding posture indicates that the target virtual character holds a virtual prop, the position of the virtual prop identifier corresponding to the virtual prop currently held by the target virtual character is determined as the first position, wherein, while the first virtual prop identifier corresponding to the first pickup item is moved to the first position, the virtual prop identifier corresponding to the virtual prop currently held by the target virtual character will be moved out of the equipment area.
4. The method according to claim 1, characterized in that: After displaying the pick list in response to the operation of the pick button, the method further includes: In response to a click operation performed on a first area in the pickup list, displaying a backpack area of the target virtual character; In response to a selection operation performed on the pickup list, a virtual item identifier corresponding to the selected pickup item is moved to a second position in the backpack area of the target virtual character.
5. The method according to claim 1, characterized in that Before moving the second virtual item identifier corresponding to the second pickup item from the pickup list to the second position in the backpack area, the method further includes: When the change displacement distance of the target boundary of the second pickup item reaches a second distance threshold, triggering display of a trigger prompt area corresponding to the backpack area; When the operation end position of the drag operation is located within the trigger prompt area, it is determined that the storage trigger condition is met.
6. The method according to claim 5, characterized in that After triggering and displaying the trigger prompt area corresponding to the backpack area, the method further includes: When the operation end position of the drag operation is not located in the trigger prompt area, determining that the storage trigger condition is not met; The position of the second pick-up item in the pick-up list is retained, and the trigger prompt area is hidden.
7. The method according to claim 5, characterized in that After moving the second virtual item identifier corresponding to the second pickup item from the pickup list to the second position in the backpack area, the method further includes: The trigger prompt area is hidden, and storage prompt information is displayed, wherein the storage prompt information is used to prompt that the second virtual prop identifier corresponding to the second pickup item has been moved to the second position in the backpack area.
8. The method according to claim 1, characterized in that: Before displaying the pick list, the method further includes: A detection range for detecting the drag operation is configured for the pick list, wherein the pick list is displayed within the detection range, and a difference between an area occupied by the detection range and an area of a display region of the pick list is smaller than a target threshold.
9. A device for manipulating an object, characterized in that: include: A first display unit, configured to display a pick-up button in response to a target virtual character moving to a target area in a virtual scene; A second display unit, for displaying a pick-up list in response to an operation on the pick-up button, wherein the pick-up list includes at least one pick-up item, and each pick-up item corresponds to a virtual item to be picked up; A first picking unit is configured to, when a touch operation is detected on a first picking item in the picking list, and a touch displacement distance generated based on the touch operation is less than or equal to a first distance threshold, determine that a click operation is detected; move a first virtual item identifier corresponding to the first picking item from the picking list to a first position in an equipment area, and remove the first picking item from the picking list; Displaying a posture of the target virtual character holding the first virtual prop; The second picking unit is used to determine that a drag operation is detected when a touch operation is detected on a second picking item in the picking list and a touch displacement distance generated based on the touch operation is greater than a first distance threshold; when the second picking item meets a storage trigger condition, move a second virtual prop identifier corresponding to the second picking item from the picking list to a second position in a backpack area to place the second virtual prop corresponding to the second picking item into the backpack of the target virtual character; and remove the second picking item from the picking list.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 8 when executed.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
12. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 8 through the computer program.
Citation Information
Patent Citations
Method and device for picking up articles in game, electronic equipment and storage medium
CN111870943A
Virtual article processing method and device
CN112023392A