Interaction method and apparatus based on virtual item, device, and medium
By displaying operation prompts and shortcuts during the dragging of virtual items, users can change the position and shape of virtual items within a single operation phase, solving the problems of cumbersome operation and limited position in existing technologies, and achieving more efficient human-computer interaction.
Patent Information
- Application Number
- PCT/CN2025/084710
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-08
- Filing Date
- 2025-03-25
- Publication Date
- 2025-11-13
AI Technical Summary
Existing technologies involve cumbersome methods for changing the position and form of virtual items, resulting in low human-computer interaction efficiency. Furthermore, they cannot match virtual items after form changes in certain situations where location is limited.
By displaying operation prompts during the dragging of virtual items and supporting shortcuts for shape-changing operations, users can change the position and shape of virtual items within a single operation phase, including rotation, expansion, or compression. Operation prompts are implemented via keyboard shortcuts.
It enables smoother and more precise changes to the form and position of virtual items, reduces the learning cost and memory burden for users, is applicable to more common scenarios of changing the position of virtual items, and avoids the problem of position limitations.
Smart Images

Figure CN2025084710_13112025_PF_FP_ABST
Abstract
Description
Interaction methods, devices, equipment, and media based on virtual items
[0001] This application claims priority to Chinese Patent Application No. 202410565520.0, filed on May 8, 2024, entitled "Interactive Method, Apparatus, Device and Medium Based on Virtual Items", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of human-computer interaction, and in particular to an interaction method, apparatus, device and medium based on virtual items. Background Technology
[0003] In the gaming world, there are scenarios where the location of virtual items can be changed. For example, placing virtual items from a character's inventory in the game's warehouse, or picking up virtual items from a virtual airdrop crate and adding them to a character's backpack.
[0004] The related technology provides a PC game. In this game, there is a need to change the position of virtual items in the inventory. To change the position, the user must first click the status change option ("rotate" option) to change the shape of the virtual item at its current location. After the shape changes, the user can then click and drag the virtual item to another location using the mouse.
[0005] The methods for changing the position of items provided by related technologies are rather cumbersome, resulting in low efficiency in human-computer interaction. Summary of the Invention
[0006] This application provides an interaction method, apparatus, device, and medium based on virtual items, wherein changing the position and form of the item can be completed in only one operation stage. Compared with the multi-stage operation of related technologies, this application can change the form and position of virtual items more smoothly and accurately. The technical solution is as follows:
[0007] According to one aspect of this application, an interaction method based on virtual items is provided, the method comprising:
[0008] Display the first virtual item;
[0009] During the dragging of the first virtual item, operation prompts are displayed. These prompts indicate that shape-changing operations are supported during dragging, as well as shortcuts for shape-changing operations.
[0010] In response to receiving a form change operation, change the form of the first virtual item;
[0011] After the dragging process is complete, place the first virtual item according to its changed form.
[0012] According to another aspect of this application, an interactive device based on virtual items is provided, the device comprising:
[0013] The display module is used to display the first virtual item;
[0014] The display module is also used to display operation prompts during the dragging of the first virtual item. The operation prompts are used to indicate that the dragging process supports shape change operations, as well as shortcuts for shape change operations.
[0015] The display module is also used to change the form of the first virtual item in response to a received form change operation;
[0016] The processing module is used to place the first virtual item according to its changed form after the dragging process is completed.
[0017] According to one aspect of this application, a computer device is provided, the computer device comprising: a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the virtual item-based interaction method as described above.
[0018] According to another aspect of this application, a computer-readable storage medium is provided, the storage medium storing a computer program that is loaded and executed by a processor to implement the virtual item-based interaction method as described above.
[0019] According to another aspect of this application, a computer program product or computer program is provided, the computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the virtual item-based interaction method provided in the above aspect.
[0020] The beneficial effects of the technical solutions provided in this application include at least the following:
[0021] In this embodiment, during the dragging of the first virtual item, the user can perform a shape change operation. That is, the solution provided by this application can change the position and shape of the first virtual item in only one operation stage. Compared with the multi-stage operation of related technologies, this application can change the shape and position of the first virtual item more smoothly and accurately.
[0022] In related technologies, users need to change the form of a first virtual item at a first position before dragging it to a second position, or users need to drag the first virtual item to a second position before changing its form. However, in the former case, the first position may not match the changed form of the first virtual item, while in the latter case, the second position is required to match the original form of the first virtual item. These technologies have requirements on the positions before and after dragging, and thus, in some cases where positions are limited, users cannot place the changed form of the first virtual item at the second position.
[0023] The solution provided in this application allows users to change the form of the first virtual item during dragging, without requiring the first position to match the changed form or the second position to match the original form. The solution provided in this application is applicable to more common scenarios of changing the position of virtual items, and users will not encounter any obstacles when changing the position of the first virtual item.
[0024] Furthermore, this application will display operation prompts during the dragging of the first virtual item. These prompts will indicate to the user that a form change operation can be performed during dragging, eliminating the need for the user to explore the form change operation independently, thus reducing the user's learning cost. Additionally, this application will display shortcuts for the form change operation, eliminating the need for the user to memorize these shortcuts and reducing their memory burden. Attached Figure Description
[0025] Figure 1 shows a schematic diagram of a character wearing area and a virtual warehouse provided in an exemplary embodiment;
[0026] Figure 2 illustrates a schematic diagram of an interaction process based on virtual items provided in an exemplary embodiment;
[0027] Figure 3 shows a schematic diagram of a computer system provided in an exemplary embodiment;
[0028] Figure 4 shows a flowchart of an exemplary embodiment of a virtual item-based interaction method;
[0029] Figure 5 shows a schematic diagram of the interface during the item dragging process provided in an exemplary embodiment;
[0030] Figure 6 shows a flowchart of another exemplary embodiment of a virtual item-based interaction method;
[0031] Figure 7 shows a flowchart of another exemplary embodiment of a virtual item-based interaction method;
[0032] Figure 8 shows a flowchart of another exemplary embodiment of a virtual item-based interaction method;
[0033] Figure 9 shows a flowchart of another exemplary embodiment of a virtual item-based interaction method;
[0034] Figure 10 shows a flowchart of an interaction method based on virtual items provided by another exemplary embodiment;
[0035] Figure 11 illustrates the first two steps of organizing a warehouse according to an exemplary embodiment;
[0036] Figure 12 illustrates the last two steps of organizing a warehouse according to an exemplary embodiment;
[0037] Figure 13 shows a flowchart of an exemplary embodiment of a virtual item-based interaction method;
[0038] Figure 14 illustrates the first two steps of adapting an article according to an exemplary embodiment;
[0039] Figure 15 illustrates the last two steps of adapting an item according to an exemplary embodiment;
[0040] Figure 16 shows a flowchart of an exemplary embodiment of a virtual item-based interaction method;
[0041] Figure 17 illustrates the first two steps of obtaining an item according to an exemplary embodiment;
[0042] Figure 18 illustrates the last two steps of obtaining an item according to an exemplary embodiment;
[0043] Figure 19 shows a flowchart of an exemplary embodiment of a virtual item-based interaction method;
[0044] Figure 20 shows a structural block diagram of an interactive device based on virtual items provided in an exemplary embodiment;
[0045] Figure 21 shows a structural block diagram of a computer device provided in an exemplary embodiment. Detailed Implementation
[0046] First, a brief introduction to the terms used in the embodiments of this application:
[0047] Virtual character: refers to an active object in a virtual environment. This active object can be a virtual person, virtual animal, anime character, etc., such as a person or animal displayed in a 3D virtual environment. Optionally, the virtual character is a 3D model created based on animation skeletal technology. Each virtual character has its own shape and volume in the 3D virtual environment and occupies a portion of the space within the 3D virtual environment.
[0048] Virtual items: These refer to virtual items in a game. Examples include virtual backpacks, virtual clothing, virtual equipment, virtual healing kits, etc. Optionally, virtual items can be three-dimensional; each virtual item has its own shape and volume within the three-dimensional virtual environment, occupying a portion of that environment.
[0049] In the gaming world, there are scenarios where the location of virtual items needs to be changed. For example, placing virtual items from a virtual character's inventory into the game's storage, or retrieving virtual items from a virtual airdrop crate into a character's backpack. In these scenarios, it's necessary to change the virtual items' location. Typically, two container areas will be displayed on the interface: one is the virtual character's equipped area, and the other is the game's inventory. By dragging, the virtual item can be moved from the character's equipped area to the game inventory, and vice versa.
[0050] For example, one is the backpack storage area, and the other is the game warehouse. By dragging, you can move items such as candy, water, and bandages from the backpack storage area to the game warehouse, and vice versa.
[0051] This application aims to provide an interaction method based on virtual items.
[0052] In this application, the methods for changing the location of virtual items include the following two.
[0053] 1. In a virtual container, move a virtual item from a first position to a second position.
[0054] 2. Moving a virtual item from the first virtual container to the second virtual container within two virtual containers. Optionally, virtual containers may include virtual warehouses, character equipping areas, backpack storage areas, ammo storage areas, etc. Virtual containers have storage capabilities.
[0055] Figure 1 illustrates a schematic diagram of a character wearing area 110 and a virtual warehouse 120 provided in an exemplary embodiment of this application. The character wearing area 110 displays virtual items carried by the virtual character. Optionally, during a game, the virtual character can use the virtual items in the character wearing area 110.
[0056] Referring to Figure 1, the character's wearable area 110 includes head equipment slots, face equipment slots, main item slots, secondary item slots, headphone slots, bulletproof vest slots, holster slots, knife sheath slots, tactical ammunition slots, backpack slots, safe box slots, key chain slots, etc.
[0057] Headgear slot, used to hold headgear such as helmets and hats.
[0058] A facial equipment slot is used to hold facial protective equipment such as masks, goggles, and face shields.
[0059] The main item slot is used to hold the first long-range shooting item, which is usually the item held by the virtual character.
[0060] The secondary item slot is used to hold another long-range shooting item, which is often carried on the back of the virtual character.
[0061] Headphone slot, used to hold headphones, such as tactical headsets, communication devices used to simulate virtual characters in combat.
[0062] Bulletproof vest slot, used to hold bulletproof vests worn by virtual characters.
[0063] Holster slot, used to hold a short firing tool, such as a pistol.
[0064] The scabbard slot is used to hold close-combat tools, such as daggers.
[0065] The tactical ammunition rack is used to accommodate ammunition racks worn by the virtual character. Optionally, the ammunition rack also has a storage function. Referring to Figure 1, when the virtual character is wearing an ammunition rack, the ammunition rack storage area 130 will be displayed. The ammunition rack storage area 130 in Figure 1 includes 8 sub-storage areas, and each of the 8 sub-storage areas includes 2 storage compartments. Optionally, the storage capacity of the ammunition rack is related to the type of ammunition rack.
[0066] In this application, the volume of a virtual item can be measured by the number of grid cells, and the shape of a virtual item can be measured by the number of grid cells in its length and width directions. For example, the volume of a standard surgical kit is 2 (occupying two grid cells), and the shape of a standard surgical kit is 1*2, or it can be 2*1.
[0067] The backpack slot is used to accommodate the backpack worn by the virtual character. The backpack has storage functionality; referring to Figure 1, when the virtual character is wearing a backpack, the backpack storage area 140 will be displayed. The backpack storage area 140 in Figure 1 includes 4x4 storage compartments. Optionally, the backpack's storage capacity is related to the type of backpack.
[0068] A safety box slot is used to accommodate a safety box carried by a virtual character. Optionally, the safety box has a storage function; when the virtual character is equipped with a safety box, the safety box storage area will be displayed (not shown in Figure 1). Optionally, the storage capacity of the safety box is related to the type of safety box.
[0069] A keychain slot is used to hold the virtual character's keychain. Optionally, the keychain has a storage function. When the virtual character is equipped with a keychain, a keychain storage area will be displayed (not shown in Figure 1).
[0070] Virtual Warehouse 120 has a large storage capacity. Optionally, during a match, a virtual character can use virtual items in the character's wear area 110, but cannot use virtual items in Virtual Warehouse 120. Optionally, outside of a match, a user can place virtual items from the character's wear area 110 into Virtual Warehouse 120, or place virtual items from Virtual Warehouse 120 into the character's wear area 110.
[0071] Optionally, the storage capacity of the virtual warehouse 120 is measured by the number of cells. In Figure 1, the virtual warehouse 120 includes 500 storage cells. The shape of the virtual warehouse 120 is 20*25, and the unit is storage cells.
[0072] The game covered in this application includes the following scenario: Outside of a match, a user drags a target item from the virtual warehouse 120 and places it in the character's wearing area 110. The target item in the character's wearing area 110 will be carried into the match. The user can acquire other items during the match and place them in the character's wearing area 110. In response to the user completing a match or winning a match, other items acquired during the match will be taken out of the match. The user can then drag and drop other items acquired during the match from the character's wearing area 110 and place them in the virtual warehouse 120.
[0073] Figure 2 shows a schematic diagram of an interactive process based on virtual items provided in an exemplary embodiment of this application. Figure 2 shows a character wearing area 210 and a virtual warehouse 220.
[0074] Referring to Figure 2, the virtual backpack 230 in the virtual warehouse 220 is in a rolled-up state. The rolled-up backpack has a 1x2 shape, with each unit consisting of storage compartments. In response to a drag operation received by the virtual backpack 230, an operation prompt 240 will be displayed during the dragging process. The operation prompt 240 indicates that the virtual backpack 230 supports rotation during dragging and can be quickly rotated using the "R" key on the keyboard. The operation prompt 240 also indicates that the virtual backpack 230 supports unfolding during dragging and can be quickly unfolded using the "F" key on the keyboard.
[0075] Figure 2 shows the shape of the virtual backpack 230 after rotation. At this point, compared to before rotation, the virtual backpack 230 has rotated 90 degrees counterclockwise. It is understood that the rotation direction and angle can be set by the system or by the user; this application only uses a 90-degree clockwise rotation as an example. Furthermore, the virtual backpack 230 remains rolled up after rotation.
[0076] After rotation, an updated operation prompt 241 will be displayed. The updated operation prompt 241 indicates that the virtual backpack 230 supports rotation during dragging, and that the virtual backpack 230 can be quickly rotated using the "R" key on the keyboard. The updated operation prompt 241 also indicates that the virtual backpack 230 supports expansion during dragging, and that the virtual backpack 230 can be quickly expanded using the "F" key on the keyboard.
[0077] Figure 2 shows the shape of the virtual backpack 230 after it is unfolded. At this time, the virtual backpack 230 is in the unfolded state. The shape of the virtual backpack in the unfolded state is 4*4, and each unit is a storage compartment.
[0078] After unfolding, another updated operation prompt 242 will be displayed. This updated prompt 242 indicates that the virtual backpack 230 supports a roll-up operation during dragging, and that the virtual backpack 230 can be quickly rolled up using the "F" key on the keyboard. It should be noted that in this application, the unfolded virtual backpack is designed as a square and direct rotation does not perform well, so it cannot be rotated further. However, the rotation operation prompt will still be displayed after rotating the rolled-up virtual backpack.
[0079] Referring to Figure 2, in response to the virtual backpack 230 being dragged to the backpack slot 250, the virtual backpack 230 is equipped on the virtual character. Optionally, if the virtual backpack 230 is not dragged to the backpack slot 250, the operation of moving the virtual backpack 230 is abandoned. Optionally, in response to the virtual backpack 230 being dragged to the backpack slot 250, the virtual backpack 230 will automatically be in an unfolded state, displaying the backpack storage area.
[0080] Optionally, the virtual backpack 230 is displayed in a fixed form in the backpack slot 250, meaning that changes in form during dragging will not affect the backpack form displayed in the backpack slot 250.
[0081] Optionally, in response to the virtual backpack 230 being dragged to the backpack slot 250, the form of the virtual backpack 230 in the backpack slot 250 is determined according to the form of the virtual backpack 230 at the end of the drag. If the virtual backpack 230 is in a rolled-up form at the end of the drag, the backpack storage area is not displayed; if the virtual backpack 230 is in an unfolded form at the end of the drag, the backpack storage area is automatically displayed.
[0082] Understandably, during the dragging of the first virtual item, the user can perform a shape change operation. That is, the solution provided in this application can change the position and shape of the first virtual item in only one operation stage. Compared with the multi-stage operation of related technologies, this application can change the shape and position of the first virtual item more smoothly and accurately.
[0083] Furthermore, during the dragging of the first virtual item, operation prompts will be displayed. This application will prompt the user to perform form change operations during the dragging process, as well as shortcuts for form change operations, so that the user does not need to explore the form change operations on their own, thereby reducing the user's learning cost.
[0084] Figure 3 shows a structural block diagram of a computer system provided in an exemplary embodiment of this application. The computer system 300 includes: a first terminal 310, a server 320, and other terminals 330.
[0085] The first terminal 310 has a client 311 installed and running that supports a virtual environment. This client 311 can be a game client, optionally a PC game. When the first terminal 310 runs the client 311, the user interface of the client 311 is displayed on the screen of the first terminal 310. The first terminal 310 is the terminal used by the first user 312. The first user 312 uses the first terminal 310 to change the location of virtual items via a first external device (optionally a mouse) 313 and a second external device (optionally a keyboard) 314. For example, using the first external device 313, a virtual backpack in the warehouse can be dragged and placed in the character's wearing area; during the dragging process, the form of the virtual backpack can be changed via the second external device 314.
[0086] Optionally, the device type of the first terminal 310 includes at least one of the following: desktop computer, laptop computer, smart TV, smartphone, wearable device, vehicle terminal, and tablet computer. The following embodiments illustrate this by using a terminal including a desktop computer.
[0087] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal (i.e., the user plays against the artificial intelligence), or there may be six, eight, or more terminals. This application does not limit the number of terminals or the type of device.
[0088] Figure 3 shows only one terminal, but in different embodiments, multiple other terminals 330 can access the server 320. Optionally, one or more terminals 330 are terminals corresponding to developers, on which a development and editing platform supporting a virtual environment client is installed. Developers can edit and update the client on the terminal 330 and transmit the updated client installation package to the server 320 via wired or wireless network. The first terminal 310 can download the client installation package from the server 320 to update the client.
[0089] The first terminal 310 and other terminals 330 are connected to the server 320 via a wireless network or a wired network.
[0090] Server 320 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Server 320 is used to provide backend services for clients supporting a 3D virtual environment. Optionally, server 320 undertakes the primary computing task, and the terminal undertakes the secondary computing task; or, server 320 undertakes the secondary computing task, and the terminal undertakes the primary computing task; or, server 320 and the terminal use a distributed computing architecture for collaborative computing.
[0091] In an illustrative example, server 320 includes processor 322, user account database 323, battle service module 324, and user-facing input / output interface (I / O interface) 325. Processor 322 loads instructions stored in server 320 and processes data in user account database 323 and battle service module 324. User account database 323 stores data about user accounts used by the first terminal 310 and other terminals 330, such as user account avatars, nicknames, combat power indices, and the service area where the user account is located. Battle service module 324 provides multiple battle rooms for users to play against each other. User-facing I / O interface 325 establishes communication and exchanges data with the first terminal 310 via wireless or wired network.
[0092] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the item information involved in this application was obtained with full authorization.
[0093] Furthermore, when dealing with relevant information, the relevant information processor will adhere to the principles of legality, legitimacy, and necessity, clearly define the purpose, method, and scope of the relevant information processing, obtain the consent of the relevant information subject, and take necessary technical and organizational measures to ensure the security of the relevant information.
[0094] Figure 4 shows a flowchart of an exemplary embodiment of the interaction method based on virtual items provided in this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0095] Step 420: Display the first virtual item;
[0096] The first virtual item refers to an item that can be stored in the game. That is, the first virtual item refers to an item that can be placed in a container. Optionally, the first virtual item is represented in the container through icons, 3D models, text, etc. Optionally, the first virtual item includes backpacks, combat equipment, healing items, flare guns, currency, keys, special quest items, fruits, food, potions, etc.
[0097] In some embodiments, the first virtual item can be placed in the game warehouse, character wearing area, backpack storage area, pod storage area, safe storage area, boxes in the game scene, shelves, etc., all of which can be referred to as containers.
[0098] This schematically displays the first virtual item in the virtual warehouse. Optionally, the capacity of the virtual warehouse is measured by the number of storage slots; for example, the virtual warehouse capacity is 20*25 storage slots. Optionally, the first virtual item is an item occupying a certain volume, which is measured by the number of storage slots it occupies. For example, a volume of 1*2 means the first virtual item is 1 storage slot long and 2 storage slots wide; or, a volume of 2*1 means the first virtual item is 2 storage slots long and 1 storage slot wide. Both cases indicate that the first virtual item has a volume of 2 (two storage slots).
[0099] This section schematically displays the first virtual item in the character's equipped area. Optionally, the character's equipped area includes multiple equipment slots, such as headgear, face armor, main item, secondary item, earphone, body armor, holster, scabbard, tactical ammunition pouch, backpack, safe, and keychain. Optionally, items in equipment slots are not counted in volume. Optionally, if a backpack is placed in the backpack slot, the backpack storage area will be displayed. The capacity of the backpack storage area is measured by the number of storage compartments; for example, a 4x4 backpack storage area, where each compartment is a storage compartment.
[0100] This illustratively displays the first virtual item in the supply crate that spawns during a match. Optionally, the capacity of the supply crate is measured in terms of the number of storage slots; for example, the supply crate has a capacity of 10*10 storage slots.
[0101] Step 440: During the dragging of the first virtual item, an operation prompt is displayed. The operation prompt is used to indicate that the form change operation is supported during the dragging process, as well as the shortcut for the form change operation.
[0102] In the game, there is a need to change the location of the first virtual item. These needs can generally be divided into two types: 1. Moving the first virtual item from the first container to the second container via drag and drop. For example, dragging and dropping the first virtual item from the virtual warehouse to the character's equipped area;
[0103] 2. Drag and drop the first virtual item in the first position of a container to the second position of the same container. For example, drag and drop the first virtual item in the first position of a virtual warehouse to the second position of that virtual warehouse (to achieve the purpose of warehouse organization).
[0104] For example, drag and drop the first virtual item located in the first position of the backpack storage area to the second position of the backpack storage area (to achieve the purpose of organizing the backpack storage area).
[0105] In this application, only the dragging process of the first virtual item is addressed, and the container / position of the first virtual item before dragging or after dragging is not limited. That is, the method provided in this application can be applied to the above scenarios in which the position of the first virtual item is changed.
[0106] In one embodiment, the dragging process involves using a first external device connected to the first terminal via a wired or wireless connection to drag the first virtual object. Optionally, the first external device may include a mouse, a VR (Virtual Reality) / AR (Augmented Reality) device, a gesture sensing device, etc. Taking a mouse as an example, firstly, the cursor is positioned over the first virtual object. In response to a left-click operation, the first virtual object is selected. By continuously moving the cursor, the first virtual object moves with the cursor, thus achieving the dragging operation.
[0107] Shape-changing operations include rotation, unfolding, and compression. Optionally, the type of shape-changing operation is related to the type of the first virtual item. Only virtual items that support unfolding / compression operations can perform these operations during dragging, such as virtual backpacks, clothing, and slingshots.
[0108] Rotation operations refer to operations that change the rotational form of an object, such as rotating an upright backpack to make it lie flat. Unfolding operations refer to operations that change an item from a compressed state to an unfolded state, such as unfolding a rolled-up backpack or folding folded clothes. Compression operations refer to operations that change an item from an unfolded state to a compressed state, such as rolling up an unfolded backpack or folding unfolded clothes. Optionally, compression operations include rolling up operations (such as rolling up a backpack) and folding operations (such as folding clothes).
[0109] The operation prompts indicate that shape-changing operations are supported during dragging, and provide shortcuts for these operations. Shortcuts can optionally refer to pressing keyboard shortcuts. For example, rotating can be triggered by pressing the "R" key; expanding / compressing can be triggered by pressing the "F" key. Optionally, shortcuts can be preset by the game system or user-defined.
[0110] Optionally, the action prompt includes at least one element of text and graphic. Optionally, the action prompt has at least one attribute of color, border, blinking effect, shape, size, brightness, and transparency.
[0111] In one embodiment, the operation prompt is presented in a flashing state, as a flashing prompt is more likely to attract user attention. In another embodiment, the operation prompt is presented in a highlighted state, as a highlighted prompt is more likely to attract user attention. In yet another embodiment, the operation prompt has a border, as an operation prompt with a border is more likely to attract user attention.
[0112] In one embodiment, the operation prompt includes a text area and a graphic area, wherein the text area is used to indicate the shape change operations supported during dragging, and the graphic area is used to indicate shortcuts for shape change operations.
[0113] Schematic, referring to Figure 2, the operation prompt 240 in Figure 2 includes a text area displaying the text "Rotate" to indicate that rotation is supported during dragging, and a text area also displaying the text "Expand" to indicate that expansion is supported during dragging. The operation prompt 240 in Figure 2 also includes a graphic area showing the "R" key to indicate that pressing the "R" key on the keyboard triggers the rotation operation, and the graphic area also showing the "F" key to indicate that pressing the "F" key on the keyboard triggers the expansion operation.
[0114] In one embodiment, the operation prompt moves along with the dragging of the first virtual object, meaning there is no relative movement between the operation prompt and the first virtual object. The operation prompt is located near the first virtual object. Optionally, the operation prompt can be located above, below, to the left, to the right, at the top left corner, at the top right corner, at the bottom left corner, at the bottom right corner, etc., of the first virtual object. In Figure 2, the operation prompt 240 is located at the bottom right corner of the first virtual object.
[0115] Optionally, the operation prompts can be adaptively displayed near the first virtual object during dragging. For example, normally, the operation prompts will be displayed in the lower right corner of the first virtual object; if the operation prompts overlap with other visible elements during dragging, they will be displayed in the lower left corner of the first virtual object.
[0116] In the above embodiments, the operation prompt is located near the first virtual object and moves with the first virtual object. This helps the user to form an integrated perception of the operation prompt and the first virtual object. The user only needs to focus on a certain area on the screen, without having to pay attention to the operation prompt and the first virtual object.
[0117] Step 460: In response to receiving a form change operation, change the form of the first virtual item;
[0118] In one embodiment, before receiving a shape change operation, the first virtual item displays a folded shape, and in response to receiving an unfold operation, the first virtual item displays an unfolded shape.
[0119] In one embodiment, before receiving a shape change operation, the first virtual item displays an unfolded shape, and in response to receiving a folding operation, the first virtual item displays a folded shape.
[0120] In one embodiment, before receiving a shape change operation, the first virtual item displays a first rotated shape (such as an upright backpack), and in response to receiving a rotation operation, the first virtual item displays a second rotated shape (such as a horizontal backpack).
[0121] In one embodiment, the operation prompts are updated as the form of the first virtual item changes. For example, before the form changes, an unfold operation prompt is displayed; in response to receiving an unfold operation, the unfolded form of the first virtual item is displayed, and a fold operation prompt is displayed.
[0122] For example, before the form changes, a folding operation prompt is displayed; in response to receiving the folding operation, the first virtual item in the folded form is displayed, and an unfolding operation prompt is displayed.
[0123] That is, the operation prompts are updated in real time according to the form of the first virtual item.
[0124] In one embodiment, during the dragging of the first virtual item, the number of times the form changes is not limited; that is, there is a situation where the user continuously changes the form of the first virtual item before the user terminates the dragging operation.
[0125] In another embodiment, during the dragging of the first virtual item, the user can only perform a limited number of shape-changing operations; for example, the user can only change the shape of the first virtual item once.
[0126] In one embodiment, during the dragging process, the interface will display the shape of the first virtual item in real time, as well as the target container (the container to be used to place the first virtual item). The target container is divided into grids, and the shape of the first virtual item can also be represented by grids. Therefore, during the dragging process, the user can observe the fit between various item shapes and the target container in real time, and finally place the first virtual item in the expected position of the target container. At the same time, before ending the dragging operation, the user can clearly perceive the result after the dragging ends.
[0127] For example, if a user wants to roll up the 4x4 virtual backpack in the character's wearing area and place it in the 1x2 empty area of the virtual warehouse, the user can switch the backpack's form and adjust its position according to the real-time operation prompts displayed during the dragging process, and finally accurately place the item in the expected location.
[0128] Referring to Figure 5, which illustrates the process of dragging the virtual backpack 510 from the character's wearing area to the virtual warehouse, the virtual backpack 510 is initially in an unfolded state with a 4x4 shape, each unit being a storage compartment. During the dragging process, the user performs a roll-up operation, changing the shape of the virtual backpack 510 to 1x2, each unit being a storage compartment. If the user observes a blank area in the virtual warehouse that is exactly 1x2 in size, the user drags and places the virtual backpack 510 into this blank area. A blank area refers to an area that does not contain any items.
[0129] Step 480: After the dragging process is complete, place the first virtual item according to its changed form.
[0130] In one embodiment, in response to ending the drag operation in the container area, the first virtual item is placed in the container area according to the changed form of the first virtual item.
[0131] Optionally, in response to the end of the drag operation in the blank area of the container, the first virtual item is placed in the blank area according to the changed shape of the first virtual item.
[0132] Optionally, place the first virtual item according to its form when the drag operation ends. Optionally, in response to ending the drag operation in a non-container area or a non-empty area within a container, abandon the operation of placing the first virtual item.
[0133] In summary, by displaying operation prompts during the dragging of the first virtual item, this application will inform the user of the form change operation that can be performed during dragging, as well as the shortcut for the form change operation, so that the user does not need to explore the form change operation on their own, thereby reducing the user's learning cost.
[0134] Based on the alternative embodiment shown in Figure 4, step 420 can be replaced by: displaying the first virtual item in the first container. Step 480 can be replaced by: after the dragging process is completed, placing the first virtual item in the second container according to the changed form of the first virtual item.
[0135] In one embodiment, the capacity of both the first container and the second container is measured by the number of cells, and each container includes multiple cells; the volume of the first virtual item is measured by the number of cells, and the first virtual item occupies at least one cell when it is in a placed state.
[0136] Optionally, the first container is the storage space for the third virtual item, which is a virtual item with storage capabilities. The second container is the storage space designed by the game system. For illustration purposes, the first container could be the backpack storage area (where the third virtual item is the backpack), the ejector storage area (where the third virtual item is the ejector), etc., and the second container could be the virtual warehouse.
[0137] Optionally, the second container serves as storage space for the third virtual item, which is a virtual item with storage capabilities. The first container is the storage space designed by the game system. For illustration purposes, the second container might be a backpack storage area (in which case the third virtual item is the backpack), a slingshot storage area (in which case the third virtual item is the slingshot), etc., while the first container is a virtual warehouse.
[0138] In another embodiment, the first container is a slot dedicated to items of a first category, to which the first virtual item belongs. The capacity of the second container is measured by the number of cells, and the second container comprises multiple cells. The volume of the first virtual item is measured by the number of cells, and the first virtual item occupies at least one cell when placed.
[0139] Indicatively, the first container includes headgear slots, facegear slots, main item slots, secondary item slots, headphone slots, body armor slots, holster slots, knife sheath slots, tactical ammunition slots, backpack slots, safe box slots, key chain slots, etc. The second container includes virtual warehouses, virtual supply boxes, etc.
[0140] Based on the alternative embodiment shown in FIG4, step 440 can be replaced by S1 as follows, and step 460 can be replaced by S2 as follows.
[0141] S1, during the dragging of the first virtual item, n operation prompts corresponding to the first form are displayed. The n operation prompts are used to indicate that n form change operations are supported during the dragging process, as well as the shortcuts corresponding to the n form change operations. n is a positive integer.
[0142] The first form refers to the form of the first virtual item before the form change. Optionally, the first form includes a compressed / expanded form; optionally, the first form includes a first rotated form; optionally, the first form includes both a first rotated form and a compressed / expanded form. The first rotated form refers to the rotational posture of the first virtual item before rotation; the first rotated form is used to characterize that the first virtual item is in a rotatable state.
[0143] For illustrative purposes, the first form includes the first rotation form for items that only support rotation and not unfolding / compression. For example, healing items, currency, keys, special quest items, fruits, food, and potions only support rotation and do not support unfolding / compression.
[0144] To illustrate, for items that simultaneously support rotation and compression / expansion operations, the first form includes a first rotation form and a first compression / expansion form. For example, a backpack can support both rotation and compression / expansion operations.
[0145] For example, for items that only support compression / expansion operations and not rotation operations, the first form includes the compression / expansion form. For instance, a water reservoir only supports compression / expansion operations and not rotation operations.
[0146] In this embodiment, n operation prompts will be displayed according to the first form of the first virtual item. For example, if the first virtual item is in a first rotated form or a compressed form, rotation operation prompts and unfolding operation prompts will be displayed.
[0147] S2, in response to receiving any one of the n form change operations, changes the first virtual item from the first form to the second form.
[0148] The second form refers to the form of the first virtual item after the form change. Optionally, the second form includes a compressed / expanded form; optionally, the second form includes a second rotated form; optionally, the second form includes both a second rotated form and a compressed / expanded form. The second rotated form refers to the rotational posture of the second virtual item after rotation; the second rotated form is used to characterize that the first virtual item is in a rotatable state.
[0149] In one embodiment, in response to receiving any one of the n form change operations, the first virtual item is changed from a first form to a second form, and m operation prompts are displayed. These m prompts indicate that the dragging process supports m form change operations, and provide shortcuts corresponding to each of the m form change operations, where m is a positive integer. Furthermore, the m operation prompts correspond to the second form; that is, in the above embodiment, the corresponding m operation prompts will be displayed based on the second form of the first virtual item.
[0150] That is, the operation prompts in this embodiment are updated in real time.
[0151] In summary, in the above embodiments, the available form-changing operations for the user are determined based on the real-time form of the first virtual item. Once the form of the first virtual item changes, the available form-changing operations for the user are re-determined. Real-time operation prompts allow the user to quickly understand the available form-changing operations after the item's form changes during dragging.
[0152] Figure 6 shows a flowchart of an exemplary embodiment of the interaction method based on virtual items provided in this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0153] Step 610: Display the first virtual item;
[0154] Step 620: During the dragging of the first virtual item, when the first virtual item is in a compressed state, an unfold operation prompt is displayed. The unfold operation prompt is used to indicate that the unfold operation is supported during the dragging process, as well as the shortcut for the unfold operation.
[0155] This is an illustrative example. When the mouse cursor lands on the first virtual item, a left mouse button click confirms selection. The cursor's movement controls the virtual item's movement. During this movement, the virtual item may be in a compressed state, such as a rolled-up backpack or folded clothing.
[0156] For the first virtual item in compressed form, an expand operation prompt will be displayed on the interface. This expand operation prompt indicates that the item supports expanding during dragging and provides a shortcut for expanding. In other words, this embodiment provides a real-time operation prompt that changes in real-time based on the state of the first virtual item; if the first virtual item is in compressed form, an expand operation prompt will be displayed.
[0157] In one embodiment, the expand operation prompt includes an expand text area and an expand icon area. The expand text area indicates that the expand operation is supported during dragging, and the expand icon area indicates a shortcut for the expand operation. Illustratively, the expand text area displays the text "Expand," indicating that the expand operation is supported during dragging. The expand icon area shows the "F" key, indicating that the expand operation can be triggered by pressing the "F" key on the keyboard.
[0158] In one embodiment, the expand operation prompt moves with the dragging of the first virtual item, and the expand operation prompt is located near the first virtual item. Optionally, the expand operation prompt can be located above, below, to the left, to the right, at the top left corner, at the top right corner, at the bottom left corner, at the bottom right corner, etc., of the first virtual item.
[0159] In one embodiment, the unfolding operation prompt includes an unfolding operation animation, such as playing an animation of a finger pressing the "F" key on a keyboard to unfold the compressed backpack.
[0160] Step 630: In response to receiving the unfold operation prompt, change the first virtual item from compressed form to unfolded form;
[0161] Indicatively, in response to receiving an operation triggered by the "F" key on the keyboard, the virtual backpack changes from a rolled-up state to an unfolded state.
[0162] Indicatively, in response to receiving an operation triggered by the "F" key on the keyboard, the virtual clothing changes from a folded state to an unfolded state.
[0163] In one embodiment, the first virtual item occupies at least one storage slot when it is placed. A compressed first virtual item occupies a first number of slots when placed; an unfolded first virtual item occupies a second number of slots when placed; the first number is less than the second number. For example, a rolled-up virtual backpack occupies 1x2 slots when placed, and an unfolded virtual backpack occupies 4x4 slots when placed.
[0164] Step 640: After the dragging process is complete, place the first virtual item according to its changed form.
[0165] Figure 7 shows a flowchart of an exemplary embodiment of the interaction method based on virtual items provided in this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0166] Step 710: Display the first virtual item;
[0167] Step 720: During the dragging of the first virtual item, when the first virtual item is in an expanded state, a compression operation prompt is displayed. The compression operation prompt is used to indicate that compression operation is supported during dragging, as well as the shortcut for compression operation.
[0168] This is an illustrative example. When the mouse cursor lands on the first virtual item, a left mouse button click confirms selection. The cursor's movement controls the virtual item's movement. During this movement, the virtual item may be in an unfolded state, such as an unfolded backpack or unfolded clothing.
[0169] For the first virtual item in its expanded state, a compression operation prompt will be displayed on the interface. This prompt indicates that compression is supported during dragging and provides a shortcut for compression. In other words, this embodiment provides a real-time operation prompt that changes in real-time based on the state of the first virtual item; if the first virtual item is in its expanded state, a compression operation prompt will be displayed.
[0170] In one embodiment, the compression operation prompt includes a compression text area and a compression icon area. The compression text area indicates that compression is supported during dragging, and the compression icon area indicates a shortcut for compression. Illustratively, the compression text area displays the text "Compress," indicating that compression is supported during dragging. The compression icon area shows the "F" key, indicating that pressing the "F" key on the keyboard triggers the compression operation.
[0171] In one embodiment, the compression operation prompt moves along with the dragging of the first virtual item, and the compression operation prompt is located near the first virtual item. Optionally, the compression operation prompt can be positioned above, below, to the left, to the right, at the top left corner, at the top right corner, at the bottom left corner, at the bottom right corner, etc., of the first virtual item.
[0172] In one embodiment, the compression operation prompt includes a compression operation animation, such as playing an animation of a finger pressing the "F" key on a keyboard to compress the unfolded backpack.
[0173] Step 730: In response to receiving the compression operation prompt, change the first virtual item from the unfolded form to the compressed form.
[0174] Indicatively, in response to receiving an operation triggered by the "F" key on the keyboard, the virtual backpack changes from an unfolded state to a rolled-up state.
[0175] Indicatively, in response to receiving an operation triggered by the "F" key on the keyboard, the virtual clothing changes from an unfolded state to a folded state.
[0176] In one embodiment, the first virtual item occupies at least one storage slot when it is placed. A compressed first virtual item occupies a first number of slots when placed; an unfolded first virtual item occupies a second number of slots when placed; the first number is less than the second number. For example, a rolled-up virtual backpack occupies 1x2 slots when placed, and an unfolded virtual backpack occupies 4x4 slots when placed.
[0177] Step 740: After the dragging process is complete, place the first virtual item according to its changed form.
[0178] In one embodiment, the first virtual item is a virtual item with storage capabilities, and the second virtual item is stored within the first virtual item. After the dragging process is completed, the first virtual item is placed according to its modified form, and the second virtual item is placed separately.
[0179] To illustrate, drag the virtual backpack from the character's wearing area to the virtual warehouse. Before dragging, the virtual backpack in the character's wearing area still contains items such as water, bandages, and candy. During the dragging process, the virtual backpack is rolled up and placed in a 1*2 grid area in the virtual warehouse. The water, bandages, candy, and other items are taken out separately and placed in the virtual warehouse as well.
[0180] In one embodiment, the second virtual item is placed according to a preset placement rule. For example, after dragging is complete, the item is automatically placed in an empty area within the target container. Alternatively, it is automatically placed in an empty area within the source container.
[0181] To illustrate, the virtual backpack is dragged from the first virtual warehouse to the second virtual warehouse. Before dragging, the virtual backpack in the character's wearing area still contains items such as water, bandages, and candy. During the dragging process, the virtual backpack is rolled up. After the dragging is finished, the water, bandages, candy, and other items are placed in the second virtual warehouse or left in the first virtual warehouse.
[0182] Optionally, the first virtual warehouse can be the warehouse corresponding to the first role, and the second virtual warehouse can be the warehouse corresponding to the second role, where the second role is the virtual role controlled by the first terminal.
[0183] That is, the above embodiments provide a placement scheme for the first virtual item and the second virtual item when the first virtual item is moved and compressed, and the first virtual item stores the second virtual item.
[0184] In one embodiment, a confirmation pop-up is displayed, which includes a first option for confirming the clearing of the second virtual item from the first virtual item; in response to the first option receiving a trigger operation, it is determined that after the dragging process ends, the first virtual item is placed according to the changed form of the first virtual item, and the second virtual item is placed separately.
[0185] As an illustration, when performing a roll-up operation on a virtual backpack during dragging, if there are items in the virtual backpack, a secondary confirmation pop-up will be triggered after the dragging process ends. The secondary confirmation pop-up is used to ask the user whether to empty the items in the backpack and move the empty items to the warehouse. If the user selects "agree", the backpack will be emptied and rolled up. If the user selects "cancel", the roll-up operation will be canceled.
[0186] Figure 8 shows a flowchart of an exemplary embodiment of the interaction method based on virtual items provided in this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0187] Step 810: Display the first virtual item;
[0188] Step 820: During the dragging of the first virtual item, when the first virtual item is in the first rotation state, a rotation operation prompt is displayed. The rotation operation prompt is used to indicate that rotation operation is supported during dragging, as well as the shortcut for rotation operation.
[0189] This example illustrates how to control the mouse cursor to fall on the first virtual object. In response to a left mouse button click, the first virtual object is selected. Continuous cursor movement controls the movement of the first virtual object. During this movement, the first virtual object may be rotatable.
[0190] The first rotational state refers to the rotational posture of the first virtual item before rotation; for example, the first rotational state refers to the first virtual item's upright or lying-down posture before rotation. The first rotational state indicates that the first virtual item is in a rotatable state. For a first virtual item in the first rotational state, a rotation operation prompt will be displayed on the interface. The rotation operation prompt indicates that rotation is supported during dragging, and provides a shortcut for rotation. That is, this embodiment provides a real-time operation prompt, which changes in real-time based on the state of the first virtual item; if the first virtual item is in a rotatable state, a rotation operation prompt will be displayed.
[0191] In one embodiment, the rotation operation prompt includes a rotation text area and a rotation graphic area. The rotation text area indicates that rotation is supported during dragging, and the rotation graphic area indicates a shortcut for the rotation operation. Illustratively, the rotation text area displays the text "Rotate," indicating that rotation is supported during dragging. The rotation graphic area shows the "R" key, indicating that pressing the "R" key on the keyboard triggers the rotation operation.
[0192] In one embodiment, the rotation prompt moves along with the dragging of the first virtual object, and the rotation prompt is located near the first virtual object. Optionally, the rotation prompt can be positioned above, below, to the left, to the right, at the top left corner, at the top right corner, at the bottom left corner, at the bottom right corner, etc., of the first virtual object.
[0193] In one embodiment, the rotation prompt includes a rotation animation, such as playing an animation of a finger pressing the "R" key on a keyboard to rotate a virtual backpack.
[0194] Step 830: In response to receiving the rotation operation prompt, change the first virtual item from the first rotation form to the second rotation form.
[0195] The second rotational form refers to the rotational posture of the first virtual item after rotation. For example, the second rotational form refers to the first virtual item's upright posture, lying flat posture, etc. after rotation.
[0196] Indicatively, in response to the "R" key being pressed on the keyboard, the virtual backpack changes from a first rotational position to a second rotational position. The first rotational position is the virtual backpack in an upright position, and the second rotational position is the virtual backpack in a flat position.
[0197] In one embodiment, the first virtual item occupies at least one storage slot when it is in a placed state. When the first virtual item in a first rotated state is in a placed state, it occupies a p*q grid area; when the first virtual item in a second rotated state is in a placed state, it occupies a q*p grid area. A p*q grid area refers to an area with a length of p grids and a width of q grids, and a q*p grid area refers to an area with a length of q grids and a width of p grids, where p and q are both positive integers.
[0198] To illustrate, the virtual backpack occupies a 1*2 grid area when placed before rotation, and occupies a 2*1 grid area when placed after rotation. That is, each rotation operation will swap the number of grids occupied by the length and width dimensions.
[0199] Optionally, the rotation operation can be clockwise or counterclockwise. Optionally, for a virtual backpack in an upright position, performing one rotation operation will change the virtual backpack from an upright position to a flat position, and performing another rotation operation will return the virtual backpack to an upright position. That is, two rotation operations correspond to one rotation cycle.
[0200] Step 840: After the dragging process is complete, place the first virtual item according to its changed form.
[0201] Figure 9 shows a flowchart of an exemplary embodiment of the interaction method based on virtual items provided in this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0202] Step 910: Display the first virtual item;
[0203] Step 920: During the dragging of the first virtual item, when the first virtual item is in a compressed state, an expand operation prompt and a rotate operation prompt are displayed. The expand operation prompt is used to indicate that the expand operation is supported during dragging, as well as the shortcut for the expand operation. The rotate operation prompt is used to indicate that the rotate operation is supported during dragging, as well as the shortcut for the rotate operation.
[0204] This is an illustrative example. When the mouse cursor lands on the first virtual item, a left mouse button click confirms selection. The cursor's movement controls the virtual item's movement. During this movement, the virtual item may be in a compressed state, such as a rolled-up backpack or folded clothing.
[0205] For the first virtual item in compressed form, the interface will display expand and rotate operation prompts. The expand operation prompt indicates that the expand operation is supported during dragging, and provides a shortcut for expanding. The rotate operation prompt indicates that the rotate operation is supported during dragging, and provides a shortcut for rotating.
[0206] That is, this embodiment provides a real-time operation prompt. The operation prompt will change in real time based on the state of the first virtual item. When the first virtual item is in a compressed state, an unfold operation prompt and a rotate operation prompt will be displayed.
[0207] Step 930: In response to receiving the unfold operation prompt, change the first virtual item from compressed form to unfolded form, and cancel the display of the rotation operation prompt;
[0208] Indicatively, in response to receiving an operation triggered by the "F" key on the keyboard, the virtual backpack changes from a rolled-up state to an unfolded state.
[0209] Indicatively, in response to receiving an operation triggered by the "F" key on the keyboard, the virtual clothing changes from a folded state to an unfolded state.
[0210] In this embodiment, when the first virtual item is in the unfolded state, the rotation operation prompt will not be displayed. This is because the first virtual item is large in the unfolded state, and the performance after rotation is not good. In addition, in many designs, the unfolded first virtual item is square and will occupy the square grid area. In this case, rotation will not change the shape and will not affect the placement of the first virtual item.
[0211] Step 940: After the dragging process is complete, place the first virtual item according to its changed form.
[0212] The virtual item-based interaction method provided in this application can be applied to warehouse organization scenarios.
[0213] Figure 10 shows a flowchart of an exemplary embodiment of the interaction method based on virtual items provided in this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0214] Step 1001: Display the first virtual item in the character's equipped area;
[0215] Step 1002: During the dragging of the first virtual item, an operation prompt is displayed. The operation prompt is used to indicate that the dragging process supports shape change operations, as well as the shortcut for shape change operations.
[0216] Referring to Figure 11, part (A) of Figure 11 shows a schematic diagram of the interface before warehouse organization. Within part (A) of Figure 11, the left side is the character's outfitting area, and the right side is the virtual warehouse. At this time, the virtual character is wearing a virtual backpack in the outfitting area. In response to a drag operation received by the virtual backpack, part (B) of Figure 11 shows the virtual backpack during the dragging process; at this time, the virtual backpack is in an expanded state.
[0217] Referring to Figure 12, part (A) of Figure 12 shows the virtual backpack after the roll-up operation is performed during the dragging process, and the virtual backpack being dragged to an empty space in the warehouse. Part (B) of Figure 12 shows the virtual backpack placed in the warehouse after the dragging is completed.
[0218] Referring to Figures 11 and 12, when organizing the warehouse, the user wants to arrange different types of items neatly in alternating rows. The user manually divides the storage area of the warehouse, placing backpack-type items in the same row, with just two empty spaces on the far right of the row, enough for the user to fold up a 4*4 backpack and change it to a 1*2 shape before placing it.
[0219] In related technologies, users need to drag the backpack to an area large enough to accommodate 4x4 shaped items, then select the backpack, choose to roll it up and switch it to a 1x2 shape from the pop-up options, and then drag the 1x2 backpack to the final placement area. This process involves numerous and clunky steps.
[0220] Using the solution presented in this application, following the steps shown in Figures 11 and 12, users only need to perform two simple operations to complete the warehouse organization process from process 1 to process 4 shown in Figures 11 and 12:
[0221] Step 1: Drag the backpack to the desired location in the warehouse.
[0222] Step 2: Follow the roll-up instructions on the backpack during the dragging process, use the default or user-defined shortcut key to roll up the backpack, and then stop dragging.
[0223] Step 1003: In response to receiving a form change operation, change the form of the first virtual item;
[0224] Change the first virtual item from compressed form to expanded form.
[0225] Step 1004: After the dragging process is completed, place the first virtual item in the virtual warehouse according to the changed form of the first virtual item.
[0226] The virtual item-based interaction method provided in this application can be applied to scenarios where items are adapted to match the shape of a blank area by changing the shape of the item.
[0227] Figure 13 shows a flowchart of an interactive method based on virtual items provided in an exemplary embodiment of this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0228] Step 1301: Display the first virtual item in the virtual warehouse;
[0229] Step 1302: During the dragging of the first virtual item, an operation prompt is displayed. The operation prompt is used to indicate that the dragging process supports shape change operations, as well as the shortcut for shape change operations.
[0230] Referring to Figure 14, part (A) of Figure 14 shows a schematic diagram of the interface before the mobile healing pack is placed on the slingshot. The left side of part (A) of Figure 14 is the character's equipping area, and the right side is the virtual inventory. At this time, the virtual inventory contains healing packs. In response to a drag operation on the healing pack, part (B) of Figure 14 shows the healing pack during the dragging process. At this time, the healing pack has a 2*1 shape, with each unit being a storage slot.
[0231] Referring to Figure 15, part (A) of Figure 15 shows the healing pack after the rotation operation is performed during the dragging process, at which point the shape of the healing pack is 2*1. Part (B) of Figure 15 shows the healing pack placed in the sling after the dragging is completed.
[0232] Referring to Figures 14 and 15, when placing a healing pack, the user wants to move the 2*1 shaped healing pack in the virtual warehouse to the rightmost 1*2 space in the first row of the character's inventory area.
[0233] In related technologies, users need to drag the healing pack to a blank area larger than 2x2, with each area serving as a storage slot. Then, after selecting the healing pack, the user selects "rotate" from the pop-up options to change the shape of the healing pack to 1x2. Finally, the user drags the transformed healing pack to the desired location within the pop-up storage area. This process involves numerous and clunky interaction steps.
[0234] Using the solution proposed in this application, following the steps shown in Figures 14 and 15, users only need to perform two simple steps to complete the item adaptation solution from process 1 to process 4 in the figures:
[0235] Step 1: Drag the healing pack to the rightmost empty space in the first row of the pop-up menu.
[0236] Step 2: Follow the rotation prompts on the treatment pack during the dragging process, use the default or user-defined shortcut keys to rotate the treatment pack, and then stop dragging.
[0237] Step 1303: In response to receiving a form change operation, change the form of the first virtual item;
[0238] Change the first virtual item from compressed form to expanded form.
[0239] Step 1304: After the dragging process is completed, place the first virtual item in the character's wearing area according to the changed form of the first virtual item.
[0240] The interaction method based on virtual items provided in this application can be applied to scenarios involving item acquisition.
[0241] Figure 16 shows a flowchart of an interactive method based on virtual items provided in an exemplary embodiment of this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0242] Step 1601: Display the first virtual item in the supply crate;
[0243] Step 1602: During the dragging of the first virtual item, an operation prompt is displayed. The operation prompt is used to indicate that the form change operation is supported during the dragging process, as well as the shortcut for the form change operation.
[0244] Referring to Figure 17, part (A) of Figure 17 illustrates an interface diagram showing a large-capacity backpack found in a supply crate, but insufficient remaining space on the virtual character. In part (A) of Figure 17, the left side represents the character's wearing area, and the right side represents the supply crate. At this time, the supply crate contains the large-capacity backpack. In response to a drag operation on the large-capacity backpack, part (B) of Figure 17 shows the large-capacity backpack during the dragging process.
[0245] Referring to Figure 18, part (A) of Figure 18 shows the large-capacity backpack during the loading process after the roll-up operation is performed during the dragging process, and part (B) of Figure 18 shows a schematic diagram of placing the rolled-up large-capacity backpack into the backpack on the virtual character after the loading is completed.
[0246] In some embodiments, nested backpacks are supported, where one backpack is placed inside another. Large-capacity backpacks often have very high value, and if a user discovers a large-capacity backpack during a match while the virtual character is wearing one, they will likely take it. Related technologies either restrict this nested backpack interaction to a single method or prohibit nesting altogether, allowing the virtual character to carry only one backpack at a time during a match. The former makes accessing items from the innermost backpack after nesting becomes extremely cumbersome, while the latter can make users feel like they are missing out on significant rewards.
[0247] Referring to Figures 17 and 18, the solution provided in this application, while allowing for nesting, also allows users to take away high-value, large-capacity backpacks by sacrificing the fewest available slots through a rolling operation. Understandably, this application greatly helps users learn and understand the nesting gameplay and strategy by displaying compression operation prompts during the dragging process, providing greater strategic space and deeper gameplay.
[0248] Step 1603: In response to receiving a form change operation, change the form of the first virtual item;
[0249] Change the first virtual item from compressed form to expanded form.
[0250] Step 1604: After the dragging process is completed, place the first virtual item in the character's wearing area according to the changed form of the first virtual item.
[0251] Figure 19 shows a flowchart of an exemplary embodiment of the interaction method based on virtual items provided in this application, illustrated by an example of the method being executed by the first terminal 310 shown in Figure 3. The method includes:
[0252] Step 1901, Begin;
[0253] Step 1902: Received item drag operation;
[0254] Step 1903: Determine the operations that can be performed on the item based on the item type and the current environment during the dragging process;
[0255] When a user drags an item, the terminal determines, based on the type of the dragged item and the current environmental conditions, what actions can be performed on the item during the dragging process and what prompts are needed.
[0256] Step 1904: During the dragging process, the lower right corner of the item will display a text message combined with button prompts indicating the available actions for the user.
[0257] The terminal displays user-executable operations in the lower right corner of the item as shortcut keys and prompt text.
[0258] Step 1905, received the operation performed by the user?
[0259] The terminal determines whether it has received an operation performed by the user. If so, it proceeds to step 1906; otherwise, it proceeds to step 1907.
[0260] Step 1906: Switch the appearance of the item during dragging;
[0261] If the user performs an operation based on the shortcut key and the prompt text, the form of the item during the dragging process will be switched according to the corresponding operation. After the switch, the process will return to step 1903. That is, after the switch, the terminal will determine the operations that can be performed on the item based on the switched item type and the current environment.
[0262] In one embodiment, when outside the game, if a user performs a roll-up operation on the backpack during the dragging process, and if there are items in the backpack, a secondary confirmation pop-up will be triggered after the user stops dragging, asking the user whether to empty the items in the backpack and move the empty items to the warehouse. If the user selects to agree, the backpack will be emptied and rolled up; if the user cancels, the roll-up operation will be canceled.
[0263] Step 1907, received the "stop dragging" command?
[0264] The terminal determines whether it has received a stop drag operation. If so, it executes step 1908; otherwise, it executes step 1905.
[0265] Step 1908: Perform the judgment after stopping dragging;
[0266] The terminal determines whether the item can be placed in the current storage location based on the item's shape after dragging stops. If it can, the item is placed in the current storage location; if not, the item is not placed in the current storage location. Optionally, the item can be placed back in its original storage location.
[0267] Step 1909, End.
[0268] In summary, the above embodiments can help users quickly learn and master the operations that can be performed on the first virtual object during dragging with minimal operational cost in some games or applications. Even after the form of the first virtual object changes during dragging, users can still quickly understand its available or key operations. Furthermore, users can clearly perceive the result after ending the dragging operation before it ends.
[0269] Figure 20 shows a structural block diagram of an interactive device based on virtual items provided in an exemplary embodiment of this application. The device includes:
[0270] Display module 2001 is used to display the first virtual item;
[0271] The display module 2001 is also used to display operation prompts during the dragging of the first virtual item. The operation prompts are used to indicate that the dragging process supports shape change operations and shortcuts for shape change operations.
[0272] The display module 2001 is also used to change the form of the first virtual item in response to receiving a form change operation;
[0273] The processing module 2002 is used to place the first virtual item according to the changed form of the first virtual item after the dragging process is completed.
[0274] In an optional embodiment, the display module 2001 is further configured to display n operation prompts corresponding to the first form during the dragging process of the first virtual item. The n operation prompts are used to indicate that n form change operations are supported during the dragging process, as well as the shortcuts corresponding to the n form change operations, where n is a positive integer.
[0275] In response to receiving any one of the n form change operations, the first virtual item is changed from the first form to the second form.
[0276] In an optional embodiment, the display module 2001 is further configured to display an expand operation prompt when the first virtual item is in a compressed state during the dragging process of the first virtual item. The expand operation prompt is used to indicate that the expand operation is supported during the dragging process, as well as the shortcut for the expand operation.
[0277] In response to receiving the unfold operation prompt, the first virtual item is changed from compressed form to unfolded form.
[0278] In an optional embodiment, the display module 2001 is further configured to display a compression operation prompt when the first virtual item is in an expanded state during the dragging process of the first virtual item. The compression operation prompt is used to indicate that compression operation is supported during the dragging process, as well as a shortcut for the compression operation.
[0279] In response to receiving a compression operation prompt, the first virtual item is changed from its expanded form to its compressed form.
[0280] In an optional embodiment, the first virtual item in compressed form occupies a first number of grids when placed; the first virtual item in expanded form occupies a second number of grids when placed; the first number is less than the second number.
[0281] In an optional embodiment, the first virtual item is a virtual item with storage capacity, and the first virtual item stores the second virtual item; the display module 2001 is also used to place the first virtual item according to the changed form of the first virtual item after the dragging process is completed, and to place the second virtual item separately.
[0282] In an optional embodiment, the display module 2001 is further configured to display a confirmation pop-up window, the confirmation pop-up window including a first option, the first option being used to confirm clearing the second virtual item in the first virtual item;
[0283] The device also includes a determination module 2003. The determination module 2003 is configured to, in response to receiving a trigger operation for the first option, determine whether, after the dragging process is completed, the first virtual item is placed according to the changed form of the first virtual item, and the second virtual item is placed separately.
[0284] In an optional embodiment, the display module 2001 is further configured to display a rotation operation prompt when the first virtual item is in a first rotation state during the dragging process of the first virtual item. The rotation operation prompt is used to indicate that rotation operation is supported during the dragging process, as well as a shortcut for rotation operation.
[0285] In response to receiving a rotation operation prompt, the first virtual item is changed from its first rotation form to its second rotation form.
[0286] In an optional embodiment, when the first virtual item in the first rotation form is in the placement state, it occupies a p*q grid area; when the first virtual item in the second rotation form is in the placement state, it occupies a q*p grid area.
[0287] A p*q grid region refers to a region with a length of p and a width of q, and a q*p grid region refers to a region with a length of q and a width of p, where p and q are both positive integers.
[0288] In an optional embodiment, the display module 2001 is further configured to display an expand operation prompt and a rotate operation prompt during the dragging of the first virtual item, when the first virtual item is in a compressed state. The expand operation prompt is used to indicate that the expand operation is supported during the dragging process, as well as the shortcut for the expand operation. The rotate operation prompt is used to indicate that the rotate operation is supported during the dragging process, as well as the shortcut for the rotate operation.
[0289] In response to receiving the unfold operation prompt, the first virtual item is changed from compressed form to unfolded form;
[0290] Cancel the display of rotation operation prompts.
[0291] In an optional embodiment, the operation prompt moves along with the dragging of the first virtual item, and the operation prompt is located near the first virtual item.
[0292] In an optional embodiment, the display module 2001 is further configured to display the first virtual item in the first container; the processing module 2002 is further configured to place the first virtual item in the second container according to the changed form of the first virtual item after the dragging process ends.
[0293] In an optional embodiment, the capacity of both the first container and the second container is measured by the number of cells, and each container includes multiple cells; the volume of the first virtual item is measured by the number of cells, and the first virtual item occupies at least one cell when it is in a placed state.
[0294] In an optional embodiment, the first container is the storage space for a third virtual item, which is a virtual item with storage capabilities, and the second container is the storage space designed by the game system.
[0295] In an optional embodiment, the second container is the storage space for a third virtual item, which is a virtual item with storage capabilities, and the first container is the storage space designed by the game system.
[0296] In an optional embodiment, the first container is a slot dedicated to items of a first category, and the first virtual item belongs to the first category; the capacity of the second container is measured by the number of cells, and the second container includes multiple cells; the volume of the first virtual item is measured by the number of cells, and the first virtual item occupies at least one cell when it is in a placed state.
[0297] In an optional embodiment, the display module 2001 is further configured to display a first virtual item located at a first position in the first container;
[0298] After the dragging process is completed, place the first virtual item in the second position in the first container according to the changed form of the first virtual item.
[0299] In summary, by displaying operation prompts during the dragging of the first virtual item, this application informs the user of the form change operation that can be performed during dragging, as well as the shortcut for the form change operation. This informs the user of the existence of the form change operation and how to trigger it, eliminating the need for the user to explore the form change operation on their own, thereby reducing the user's learning cost.
[0300] Please refer to Figure 21, which shows a structural block diagram of a computer device 2100 provided in an exemplary embodiment of this application. The computer device 2100 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), or MP4 player (Moving Picture Experts Group Audio Layer IV). The computer device 2100 may also be referred to as a user device, portable terminal, head-mounted computer device, or other names.
[0301] Typically, computer device 2100 includes a processor 2101 and a memory 2102.
[0302] Processor 2101 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 2101 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 2101 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 2101 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 2101 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0303] The memory 2102 may include one or more computer-readable storage media, which may be tangible and non-transitory. The memory 2102 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 2102 are used to store at least one instruction, which is executed by the processor 2101 to implement the virtual item-based interaction method provided in the embodiments of this application.
[0304] In some embodiments, the computer device 2100 may also optionally include a peripheral device interface 2103 and at least one peripheral device. Specifically, the peripheral device includes at least one of a mouse 2104 and a keyboard 2105. The peripheral device interface 2103 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 2101 and the memory 2102. In some embodiments, the processor 2101, the memory 2102, and the peripheral device interface 2103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 2101, the memory 2102, and the peripheral device interface 2103 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0305] Those skilled in the art will understand that the structure shown in FIG21 does not constitute a limitation on the computer device 2100, and may include more or fewer components than shown, or combine certain components, or employ different component arrangements.
[0306] This application also provides a computer-readable storage medium storing a computer program that is executed by a computer device to implement the above-described interaction method based on virtual items.
[0307] Optionally, the computer-readable storage medium may include: read-only memory (ROM), random-access memory (RAM), solid-state drives (SSDs), or optical discs, etc. The random-access memory may include resistive random-access memory (ReRAM) and dynamic random-access memory (DRAM).
[0308] This application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the virtual item-based interaction method provided in the above-described method embodiments.
Claims
1. An interaction method based on virtual items, the method comprising: Display the first virtual item; During the dragging of the first virtual item, an operation prompt is displayed, which indicates that the dragging process supports a shape change operation and provides a shortcut for the shape change operation. In response to receiving the form change operation, the form of the first virtual item is changed; After the dragging process is completed, place the first virtual item according to its modified form.
2. The method according to claim 1, wherein, During the dragging of the first virtual item, operation prompts are displayed, including: During the dragging process of the first virtual item, n operation prompts corresponding to the first form are displayed. The n operation prompts are used to indicate that n form change operations are supported during the dragging process, as well as the shortcuts corresponding to the n form change operations, where n is a positive integer. The response to receiving the form change operation, changing the form of the first virtual item, includes: In response to receiving any one of the n form change operations, the first virtual item is changed from the first form to the second form.
3. The method according to claim 2, wherein, During the dragging process of the first virtual item, n operation prompts corresponding to the first form are displayed, including: During the dragging of the first virtual item, when the first virtual item is in a compressed state, an unfolding operation prompt is displayed. The unfolding operation prompt is used to indicate that the unfolding operation is supported during the dragging process, as well as the shortcut for the unfolding operation. The response to receiving any one of the n form change operations, changing the first virtual item from the first form to the second form, includes: In response to receiving the unfold operation prompt, the first virtual item is changed from the compressed form to the unfolded form.
4. The method according to claim 2, wherein, During the dragging process of the first virtual item, n operation prompts corresponding to the first form are displayed, including: During the dragging of the first virtual item, when the first virtual item is in an expanded state, a compression operation prompt is displayed. The compression operation prompt is used to indicate that compression operation is supported during the dragging process, as well as the shortcut for the compression operation. The response to receiving any one of the n form change operations, changing the first virtual item from the first form to the second form, includes: In response to receiving the compression operation prompt, the first virtual item is changed from its unfolded form to its compressed form.
5. The method according to claim 3 or 4, wherein, The first virtual item in its compressed form occupies a first number of grids when placed; the first virtual item in its expanded form occupies a second number of grids when placed; the first number is less than the second number.
6. The method according to claim 4, wherein, The first virtual item is a virtual item with storage capabilities, and the first virtual item stores the second virtual item; After the dragging process is completed, placing the first virtual item according to its changed form includes: After the dragging process is completed, place the first virtual item according to the changed form of the first virtual item, and place the second virtual item separately.
7. The method according to claim 6, wherein, The method further includes: A confirmation pop-up window is displayed, which includes a first option, which is used to confirm clearing the second virtual item from the first virtual item; In response to receiving a trigger operation for the first option, it is determined that after the dragging process is completed, the first virtual item is placed according to the changed form of the first virtual item, and the second virtual item is placed separately.
8. The method according to any one of claims 2 to 7, wherein, During the dragging process of the first virtual item, n operation prompts corresponding to the first form are displayed, including: During the dragging of the first virtual item, when the first virtual item is in a first rotation state, a rotation operation prompt is displayed. The rotation operation prompt is used to indicate that rotation operation is supported during the dragging process, as well as the shortcut for the rotation operation. The response to receiving any one of the n form change operations, changing the first virtual item from the first form to the second form, includes: In response to receiving the rotation operation prompt, the first virtual item is changed from the first rotation form to the second rotation form.
9. The method according to claim 8, wherein, When the first virtual item in the first rotation form is in the placement state, it occupies a p*q grid area; when the first virtual item in the second rotation form is in the placement state, it occupies a q*p grid area. The p*q grid region refers to a region with a length of p grids and a width of q grids, and the q*p grid region refers to a region with a length of q grids and a width of p grids, where p and q are both positive integers.
10. The method according to any one of claims 2 to 9, wherein, During the dragging process of the first virtual item, n operation prompts corresponding to the first form are displayed, including: During the dragging of the first virtual item, when the first virtual item is in a compressed state, an expand operation prompt and a rotate operation prompt are displayed. The expand operation prompt is used to indicate that the expand operation is supported during the dragging process, as well as the shortcut for the expand operation. The rotate operation prompt is used to indicate that the rotate operation is supported during the dragging process, as well as the shortcut for the rotate operation. The response to receiving any one of the n form change operations, changing the first virtual item from the first form to the second form, includes: In response to receiving the unfold operation prompt, the first virtual item is changed from the compressed form to the unfolded form. The method further includes: Cancel the display of the rotation operation prompt.
11. The method according to any one of claims 1 to 10, wherein, The operation prompts move along with the dragging of the first virtual item.
12. The method according to any one of claims 1 to 11, wherein, The display of the first virtual item includes: Display the first virtual item in the first container; After the dragging process is completed, placing the first virtual item according to its changed form includes: After the dragging process is completed, the first virtual item is placed in the second container according to the changed form of the first virtual item.
13. The method according to claim 12, wherein, The capacity of both the first and second containers is measured by the number of cells, and each container includes multiple cells; The volume of the first virtual item is measured by the number of grids, and the first virtual item occupies at least one grid when it is in a placed state.
14. The method according to claim 13, wherein, The first container is the storage space for the third virtual item, which is a virtual item with storage capabilities, and the second container is the storage space designed by the game system. or, The second container is the storage space for the third virtual item, which is a virtual item with storage capabilities, while the first container is the storage space designed by the game system.
15. The method according to claim 12, wherein, The first container is a slot specifically for items of the first category, and the first virtual item belongs to the first category; The capacity of the second container is measured by the number of cells, and the second container comprises multiple cells; The volume of the first virtual item is measured by the number of grids, and the first virtual item occupies at least one grid when it is in a placed state.
16. The method according to any one of claims 1 to 15, wherein, The display of the first virtual item includes: Display the first virtual item located at the first position in the first container; After the dragging process is completed, placing the first virtual item according to its changed form includes: After the dragging process is completed, the first virtual item is placed in the second position in the first container according to the changed form of the first virtual item.
17. An interactive device based on virtual items, the device comprising: The display module is used to display the first virtual item; The display module is also used to display operation prompts during the dragging of the first virtual item. The operation prompts are used to indicate that the dragging process supports shape change operations and the shortcuts for the shape change operations. The display module is also configured to change the form of the first virtual item in response to receiving the form change operation; The processing module is used to place the first virtual item according to the changed form of the first virtual item after the dragging process is completed.
18. A computer device, the computer device comprising: A processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the virtual item-based interaction method as described in any one of claims 1 to 16.
19. A computer-readable storage medium storing a computer program that is loaded and executed by a processor to implement the virtual item-based interaction method as described in any one of claims 1 to 16.
20. A computer program product storing a computer program that is loaded and executed by a processor to implement the virtual item-based interaction method as described in any one of claims 1 to 16.
Citation Information
Patent Citations
Virtual article control method and device, and storage medium
CN111744176A
Virtual prop control method, device and equipment and computer readable storage medium
CN112121432A
Virtual object control method and device, storage medium and electronic equipment
CN114404965A
Virtual article transfer method and device, electronic equipment and storage medium
CN117547807A